Source for file _linkblog.php
Documentation is available at _linkblog.php
* This is the template that displays the linkblog
* This file is not meant to be called directly.
* It is meant to be called by an include in the _main.php template.
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
if( !isset
( $linkblog ) )
{ // No link blog explicitely specified, we use default:
$linkblog =
$Blog->get('links_blog_ID');
{ // No linkblog blog requested for this blog
# maximum number of linkblog entries to display:
if(!isset
($linkblog_limit)) $linkblog_limit =
20;
# global linkblog delimiters:
if(!isset
($linkblog_main_start)) $linkblog_main_start =
'<div class="bSideItem"><h3>'.
if(!isset
($linkblog_main_end)) $linkblog_main_end =
'</div>';
if(!isset
($linkblog_catname_before)) $linkblog_catname_before =
'<h4>';
if(!isset
($linkblog_catname_after)) $linkblog_catname_after =
'</h4><ul>';
if(!isset
($linkblog_catlist_end)) $linkblog_catlist_end =
'</ul>';
if(!isset
($linkblog_item_before)) $linkblog_item_before =
'<li>';
if(!isset
($linkblog_item_after)) $linkblog_item_after =
'</li>';
// Load the linkblog blog:
$LinkblogList =
& new ItemList( $linkblog, array(), '', '', '', $linkblog_cat, $linkblog_catsel, '', 'ASC', 'category title', '', '', '', '', '', '', '', '', $linkblog_limit, 'posts', $timestamp_min, $timestamp_max );
// Dirty trick until we get everything into objects:
echo
$linkblog_main_start;
while( $Item =
$LinkblogList->get_category_group() )
echo
$linkblog_catname_before;
echo
$linkblog_catname_after;
while( $Item =
$LinkblogList->get_item() )
echo
$linkblog_item_before;
$Item->content( 1, 0, T_('more'), '[', ']' ); // Description + more link
<a href="
<?php $Item->permalink() ?>" title="
<?php echo
T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="
<?php echo
T_('Permalink') ?>" width="12" height="9" class="middle" /></a>
echo
$linkblog_item_after;
echo
$linkblog_catlist_end;
// Restore after dirty trick: