Пример #1
0
 function getBanner()
 {
     if (!$this->banner_inherit && $this->banner != "" || !$this->topic_pid()) {
         return $this->banner;
     }
     $parent_topic = new AmsTopic($this->table, $this->topic_pid());
     return $parent_topic->getBanner();
 }
Пример #2
0
    $xoopsTpl->assign('topics', $smarty_topics);
    $xoopsTpl->assign('columns', $column_count);
    $xoopsTpl->assign('breadcrumb', '');
}
if (XOOPS_COMMENT_APPROVENONE != $xoopsModuleConfig['com_rule']) {
    $showcomments = 1;
} else {
    $showcomments = 0;
}
$xoopsTpl->assign('showcomments', $showcomments);
$xoopsTpl->assign('xoops_pagetitle', $pagetitle);
$xoopsTpl->assign('lang_go', _GO);
$xoopsTpl->assign('lang_on', _ON);
$xoopsTpl->assign('lang_printerpage', _AMS_NW_PRINTERFRIENDLY);
$xoopsTpl->assign('lang_sendstory', _AMS_NW_SENDSTORY);
$xoopsTpl->assign('lang_postedby', _POSTEDBY);
$xoopsTpl->assign('lang_reads', _READS);
$xoopsTpl->assign('lang_morereleases', _AMS_NW_MORERELEASES);
$xoopsTpl->assign('lang_postnewarticle', _AMS_NW_POSTNEWARTICLE);
if ($xoopsOption['storytopic'] > 0) {
    $topic = new AmsTopic($xoopsDB->prefix('ams_topics'), $xoopsOption['storytopic']);
    $xoopsTpl->assign('topicbanner', $myts->displayTarea($topic->getBanner(), 1));
}
include_once XOOPS_ROOT_PATH . '/footer.php';
function findKey($array, $suggested_key)
{
    if (isset($array[$suggested_key])) {
        return findKey($array, $suggested_key + 1);
    }
    return $suggested_key;
}