本文整理汇总了PHP中NewsStory::topicalign方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsStory::topicalign方法的具体用法?PHP NewsStory::topicalign怎么用?PHP NewsStory::topicalign使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsStory
的用法示例。
在下文中一共展示了NewsStory::topicalign方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sprintf
$story['morelink'] = '';
$story['adminlink'] = '';
unset($isadmin);
if (is_object($xoopsUser)) {
if ($xoopsUser->isAdmin($xoopsModule->getVar('mid')) || news_getmoduleoption('authoredit') && $article->uid() == $xoopsUser->getVar('uid')) {
$isadmin = true;
$story['adminlink'] = $article->adminlink();
}
}
$story['topicid'] = $article->topicid();
$story['topic_color'] = '#' . $myts->displayTarea($article->topic_color);
$story['imglink'] = '';
$story['align'] = '';
if ($article->topicdisplay()) {
$story['imglink'] = $article->imglink();
$story['align'] = $article->topicalign();
}
$story['hits'] = $article->counter();
$story['mail_link'] = 'mailto:?subject=' . sprintf(_NW_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_NW_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . XOOPS_URL . '/modules/news/article.php?storyid=' . $article->storyid();
$xoopsTpl->assign('lang_printerpage', _NW_PRINTERFRIENDLY);
$xoopsTpl->assign('lang_sendstory', _NW_SENDSTORY);
$xoopsTpl->assign('lang_pdfstory', _NW_MAKEPDF);
$xoopsTpl->assign('lang_on', _ON);
$xoopsTpl->assign('lang_postedby', _POSTEDBY);
$xoopsTpl->assign('lang_reads', _READS);
$xoopsTpl->assign('mail_link', 'mailto:?subject=' . sprintf(_NW_INTARTICLE, $xoopsConfig['sitename']) . '&body=' . sprintf(_NW_INTARTFOUND, $xoopsConfig['sitename']) . ': ' . XOOPS_URL . '/modules/news/article.php?storyid=' . $article->storyid());
if (xoops_trim($article->picture()) != '') {
$xoopsTpl->assign('articlePicture', XOOPS_URL . '/modules/news/images/topics/' . $article->picture());
} else {
$xoopsTpl->assign('articlePicture', '');
}
示例2: isset
$hometext = $story->hometext('InForm');
if ($approveprivilege) {
$bodytext = $story->bodytext('InForm');
$ihome = $story->ihome();
$description = $story->description('E');
$keywords = $story->keywords('E');
}
//Display post preview
$newsauthor = $story->uid();
$p_title = $story->title('Preview');
$p_hometext = $story->hometext('Preview');
if ($approveprivilege) {
$p_bodytext = $story->bodytext('Preview');
$p_hometext .= '<br /><br />' . $p_bodytext;
}
$topicalign2 = isset($story->topicalign) ? 'align="' . $story->topicalign() . '"' : '';
$p_hometext = $xt->topic_imgurl() != '' && $topicdisplay ? '<img src="images/topics/' . $xt->topic_imgurl() . '" ' . $topicalign2 . ' alt="" />' . $p_hometext : $p_hometext;
themecenterposts($p_title, $p_hometext);
//Display post edit form
$returnside = intval($_POST['returnside']);
include_once XOOPS_ROOT_PATH . '/modules/news/include/storyform.inc.php';
break;
case 'post':
$nohtml_db = isset($_POST['nohtml']) ? $_POST['nohtml'] : 1;
if (is_object($xoopsUser)) {
$uid = $xoopsUser->getVar('uid');
if ($approveprivilege) {
$nohtml_db = empty($_POST['nohtml']) ? 0 : 1;
}
if (isset($_POST['author']) && ($approveprivilege || $xoopsUser->isAdmin($xoopsModule->mid()))) {
$uid = intval($_POST['author']);
示例3: newSubmissions
$hometext = $story->hometext("Edit");
$bodytext = $story->bodytext("Edit");
$nohtml = $story->nohtml();
$nosmiley = $story->nosmiley();
$ihome = $story->ihome();
$topicid = $story->topicid();
if ($story->published() != 0) {
$published = $story->published();
}
if ($story->expired() != 0) {
$expired = $story->expired();
}
// $notifypub = $story->notifypub();
$type = $story->type();
$topicdisplay = $story->topicdisplay();
$topicalign = $story->topicalign(false);
$isedit = 1;
include "storyform.inc.php";
echo "</td></tr></table>";
break;
case "newarticle":
xoops_cp_header();
echo "<h4>" . _AM_CONFIG . "</h4>";
include_once XOOPS_ROOT_PATH . "/class/module.textsanitizer.php";
// $xoopsModule->printAdminMenu();
// echo "<br />";
newSubmissions();
autoStories();
lastStories();
expStories();
echo "<br />";