homeonly == 1 && $core->url->type != 'default') ||
($w->homeonly == 2 && $core->url->type == 'default')) {
return;
}
$value = isset($GLOBALS['_search']) ? html::escapeHTML($GLOBALS['_search']) : '';
return
($w->content_only ? '' : '
class ? ' class="'.html::escapeHTML($w->class).'"' : '').'>').
($w->title ? '
' : '').
'
'.
($w->content_only ? '' : '
');
}
public static function navigation($w)
{
global $core;
if (($w->homeonly == 1 && $core->url->type != 'default') ||
($w->homeonly == 2 && $core->url->type == 'default')) {
return;
}
$res =
($w->content_only ? '' : '').
($w->title ? '
'.html::escapeHTML($w->title).'
' : '').
'
'.($w->content_only ? '' : '
');
return $res;
}
public static function lastcomments($w)
{
global $core;
if (($w->homeonly == 1 && $core->url->type != 'default') ||
($w->homeonly == 2 && $core->url->type == 'default')) {
return;
}
$params['limit'] = abs((integer) $w->limit);
$params['order'] = 'comment_dt desc';
$rs = $core->blog->getComments($params);
if ($rs->isEmpty()) {
return;
}
$res = ($w->content_only ? '' : '');
return $res;
}
}
?>
'.html::escapeHTML($w->title).'
' : ''). ''; while ($rs->fetch()) { $res .= '- '.
html::escapeHTML($rs->post_title).' - '.
html::escapeHTML($rs->comment_author).
'
';
}
$res .= '
'.($w->content_only ? '' : '