コード例 #1
0
ファイル: discussion.php プロジェクト: caidongyun/vanilla
<?php

if (!defined('APPLICATION')) {
    exit;
}
$Session = Gdn::session();
if (!function_exists('WriteDiscussion')) {
    include $this->fetchViewLocation('helper_functions', 'discussions');
}
WriteDiscussion($Discussion, $this, $Session, '');
コード例 #2
0
ファイル: discussions.php プロジェクト: sheldon/Garden
<?php

if (!defined('APPLICATION')) {
    exit;
}
$Session = Gdn::Session();
if (!function_exists('WriteDiscussion')) {
    include $this->FetchViewLocation('helper_functions', 'discussions', 'vanilla');
}
$Alt = '';
if (property_exists($this, 'AnnounceData')) {
    foreach ($this->AnnounceData->Result() as $Discussion) {
        $Alt = $Alt == ' Alt' ? '' : ' Alt';
        WriteDiscussion($Discussion, $this, $Session, $Alt);
    }
}
$Alt = '';
foreach ($this->DiscussionData->Result() as $Discussion) {
    $Alt = $Alt == ' Alt' ? '' : ' Alt';
    WriteDiscussion($Discussion, $this, $Session, $Alt);
}