コード例 #1
0
ファイル: index.php プロジェクト: leowmjw/twfy
        $COMMENTLIST = new COMMENTLIST();
        $args['user_id'] = get_http_var('u');
        $args['epobject_id'] = $WHALLLIST->epobject_id();
        $COMMENTLIST->display('ep', $args);
        $PAGE->stripe_end();
        $PAGE->stripe_start('side', 'addcomment');
        $commendata = array('epobject_id' => $WHALLLIST->epobject_id(), 'gid' => get_http_var('id'), 'return_page' => $this_page);
        $PAGE->comment_form($commendata);
        if ($THEUSER->isloggedin()) {
            $sidebar = array(array('type' => 'include', 'content' => 'comment'));
            $PAGE->stripe_end($sidebar);
        } else {
            $PAGE->stripe_end();
        }
        $TRACKBACK = new TRACKBACK();
        $TRACKBACK->display('epobject_id', $commendata);
    }
} else {
    // No date or debate id. Show recent years with debates on.
    $this_page = "whallfront";
    $PAGE->page_start();
    $PAGE->stripe_start();
    ?>
				<h4>Busiest Westminster Hall debates from the most recent week</h4>
<?php 
    $WHALLLIST = new WHALLLIST();
    $WHALLLIST->display('biggest_debates', array('days' => 7, 'num' => 20));
    $rssurl = $DATA->page_metadata($this_page, 'rss');
    $PAGE->stripe_end(array(array('type' => 'nextprev'), array('type' => 'include', 'content' => 'calendar_whalldebates'), array('type' => 'include', 'content' => "whalldebates"), array('type' => 'html', 'content' => '<div class="block">
<h4>RSS feed</h4>
<p><a href="' . WEBPATH . $rssurl . '"><img alt="RSS feed" border="0" align="middle" src="http://www.openaustralia.org/images/rss.gif"></a>
コード例 #2
0
ファイル: trackbacks.php プロジェクト: leowmjw/twfy
<?php

include_once "../../includes/easyparliament/init.php";
include_once INCLUDESPATH . "easyparliament/commentreportlist.php";
$this_page = "admin_trackbacks";
$PAGE->page_start();
$PAGE->stripe_start();
$TRACKBACK = new TRACKBACK();
$TRACKBACK->display('recent', array('num' => 30));
$menu = $PAGE->admin_menu();
$PAGE->stripe_end(array(array('type' => 'html', 'content' => $menu)));
$PAGE->page_end();