ONO::ToolBox::Blog

Functions

comments();

Display comments within a blog.

ONO::ToolBox::Blog->comments( $db, $community, $TABLE, $id, $BLK_ref, $vars_ref, $sql_ref );
returns: $FEED

resize();

This is probably DEPRECATED

ONO::ToolBox::Blog->resize( );
returns: ($w,$h)

screen();

This is the ONO blog display engine.

Available switches:

-a display teachers (used by AutoWebsite)
-A alternative table, if defined under $sql{'alt_sql_table'}
-b use blog as entry page (used by AutoWebsite)
-c comma list view
-d use dailyword as entry page (used by AutoWebsite)
-e editor mode
-f news feed (used by AutoWebsite)
-g grab app data (used by AutoWebsite)
-h allow help texts
-H smaller headers (used by website widgets)
-i make single images smaller
-I make single images even smaller
-l list view (1 entry per row)
-L large text
-m media & photos (used by AutoWebsite)
-M don't display the menu (used by AutoWebsite)
-w website (or schoolweb) mode (used by AutoWebsite)
-s use schedule as entry page (used by AutoWebsite)
-S no sidebar (used by AutoWebsite)
-t use texts as entry page (used by AutoWebsite)
-T don't show page titles (used by AutoWebsite)
-u display students (used by AutoWebsite)
-U user mode (ignore author, show all posts, but discard website posts etc)
-V virclass mode
-w website mode (?)
-W website mode (?)
-X virschool mode
-Y virclass multi mode (used by AutoWebsite)
-Z avoid single image in one row if possible

Type switches:

-b only blog
-n only news
-r only reviews
-x don't display at all

Blog_widget_switches:

-C allow registered users to write comments
-g show category
-i make single images smaller
-I make single images even smaller
-j single images align left
-J single images align right (reserved, but not implemented yet)
-s show source
-q show school

ONO::ToolBox::Blog->screen( $db, $community, $author, $lang, $script_url, $BLK_ref, $vars_ref, $sql_ref, $switches, $type_filter, $max_items, $target_page, $virclass_target_page, $max_files_per_entry );
returns: qq~\n\n<!-- ONOToolBoxBlog:Start -->\n\n$MAIN\n\n<!-- ONOToolBoxBlog:End-->\n\n~

view();

This feature has been deprecated since July 2021

ONO::ToolBox::Blog->view( );

Sub-Modules

none

Dependencies