Definition at line 260 of file blog_view.inc.
◆ DefaultBlogViewHandler()
BookBlogViewHandler::DefaultBlogViewHandler |
( |
| ) |
|
◆ drawArticle()
BookBlogViewHandler::drawArticle |
( |
|
$blog, |
|
|
|
$article_id |
|
) |
| |
Draw the specific article in the blog.
- Parameters
-
Implements IBlogViewHandler.
Definition at line 330 of file blog_view.inc.
336 echo
"<div class='chapter'>\n";
349 <a href=
"<?echo $blog->identifier?>?article_id=<?echo $articles[$idx+1]->article_id?>" class=
"button" style=
"float: right"><?echo ellipsis(
$articles[$idx+1]->
title, 60,
true)?> »</a>
356 <a href=
"<?echo $blog->identifier?>?article_id=<?echo $articles[$idx-1]->article_id?>" class=
"button" style=
"float: left">« <?echo ellipsis(
$articles[$idx-1]->
title, 60,
true)?></a>
362 <a href=
"<?echo $blog->identifier?>" class=
"button" style=
"float: left">« Back
to Contents
Page</a>
366 echo
"<div style='clear:both'> </div></div>";
Defines the Article class.
◆ drawArticleList()
BookBlogViewHandler::drawArticleList |
( |
|
$blog, |
|
|
|
$year = false , |
|
|
|
$month = false , |
|
|
|
$term_id = null |
|
) |
| |
Definition at line 272 of file blog_view.inc.
287 $constraint .=
" AND MONTH(publish_date) = $month";
293 $constraint .=
" AND article_id IN (SELECT id FROM taxonomy_term_association where class='Article' AND term_id=$term_id)";
299 echo
"<div id='blog_description' class='Book'>{$blog->description}</div>";
304 $list->CSSclass =
"Standard";
305 $list->styles =
"clear: both; width: 100%";
static inlineEditingControls($blog)
◆ formatArticle()
BookBlogViewHandler::formatArticle |
( |
|
$article | ) |
|
Definition at line 312 of file blog_view.inc.
314 $out =
"<div class='article_summary'>";
319 $out .=
"<img src='/action/image/iconize?image_id={$article->image_id}&size=120' alt='{$image->ALT_tag}' align='left'/>";
322 $out .=
"<h4><a href='{$this->blog->identifier}?article_id={$article->article_id}'>";
323 $out .=
"{$article->title}</a></h4>";
◆ register()
static BookBlogViewHandler::register |
( |
|
$view | ) |
|
|
static |
The documentation for this class was generated from the following file: