Пример #1
0
function template_view($args)
{
    template_common_prologue(array('norobots' => $args['archive'], 'title' => $args['page'], 'heading' => '', 'headlink' => $args['page'], 'headsufx' => $args['archive'] ? ' (' . html_timestamp($args['timestamp']) . ')' : '', 'toolbar' => 1));
    ?>
<div id="body" align="left">
<?php 
    print $args['html'];
    ?>
</div>
<?php 
    template_common_epilogue(array('twin' => $args['page'], 'edit' => $args['page'], 'editver' => !$args['editable'] ? -1 : ($args['archive'] ? $args['version'] : 0), 'history' => $args['page'], 'timestamp' => $args['timestamp'], 'nosearch' => 0));
}
Пример #2
0
function template_view($args)
{
    template_common_prologue(array('heading' => '', 'headlink' => $args['page'], 'headsufx' => $args['archive'] ? ' (' . html_timestamp($args['timestamp']) . ')' : '', 'norobots' => $args['archive'], 'quote' => 1, 'redirect_from' => $args['redirect_from'], 'title' => $args['page'], 'toolbar' => 1, 'tree' => 1, 'button_selected' => $args['view_source'] ? '' : 'view', 'button_view' => 1, 'timestamp' => $args['timestamp'], 'editver' => $args['editver'], 'button_backlinks' => 1));
    ?>

<div class="content">
<?php 
    print $args['html'];
    // Aligns the browser with an HTML anchor, showing the last added comment (or
    // quote). See: action/save.php, template/save.php, template/view.php.
    ?>

<a name="pageContentBottom">
</div>
<?php 
    template_common_epilogue(array('subscribe' => $args['page'], 'twin' => $args['page'], 'edit' => $args['page'], 'editver' => !$args['editable'] ? -1 : ($args['archive'] ? $args['version'] : 0), 'history' => $args['page'], 'euser' => $args['edituser'], 'timestamp' => $args['timestamp'], 'page_length' => $args['page_length'], 'toolbar' => 1, 'headlink' => $args['page'], 'button_selected' => $args['view_source'] ? '' : 'view', 'button_view' => 1, 'button_backlinks' => 1));
}
Пример #3
0
function html_category($time, $page, $host, $user, $comment, $lang = '')
{
    global $pagestore;
    $text = '(' . html_timestamp($time) . ') (' . '<a href="' . historyURL($page) . '">' . lang('history') . '</a>) ' . html_ref($lang ? array('title' => $page, 'lang' => $lang) : $page, $page);
    if (count($twin = $pagestore->twinpages($page))) {
        foreach ($twin as $site) {
            $text = $text . ' ' . html_twin($site[0], $site[1]);
        }
    }
    $text = $text . ' . . . . ' . ($user == '' ? $host : html_ref($user, $user, $host));
    if ($comment != '') {
        $text = $text . ' ' . html_bold_start() . '[' . str_replace('<', '&lt;', str_replace('&', '&amp;', $comment)) . ']' . html_bold_end();
    }
    return $text;
}
Пример #4
0
function html_category($time, $page, $host, $user, $comment, $version, $hotPages, $newPages)
{
    global $pagestore, $UserName, $UseHotPages;
    $text = '(' . html_timestamp($time) . ') (' . '<a href="' . historyURL($page) . '">history</a>) ' . html_ref($page, $page, '', "&{$version}");
    if (in_array($page, $newPages)) {
        $text .= '<img src="images/new.png" alt="New!" title="New!" width="28" height="11" border="0">';
    }
    if ($UseHotPages && in_array($page, $hotPages)) {
        $text .= '<img src="images/hot.png" alt="Hot!" title="Hot!" width="16" height="15" border="0">';
    }
    $text = $text . ' . . . . ' . ($user == '' ? $host : (validate_page($user) ? html_ref($user, $user, $host) : $user));
    if ($comment != '') {
        $text = $text . ' ' . html_bold_start() . '[' . str_replace('<', '&lt;', str_replace('&', '&amp;', $comment)) . ']' . html_bold_end();
    }
    return $text;
}