本文整理汇总了PHP中XoopsTpl::display方法的典型用法代码示例。如果您正苦于以下问题:PHP XoopsTpl::display方法的具体用法?PHP XoopsTpl::display怎么用?PHP XoopsTpl::display使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XoopsTpl
的用法示例。
在下文中一共展示了XoopsTpl::display方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: myalbum_footer
function myalbum_footer()
{
global $mod_copyright, $mydirnumber;
$tpl = new XoopsTpl();
$tpl->assign(array('mod_copyright' => $mod_copyright));
$tpl->display("db:myalbum{$mydirnumber}_footer.html");
}
示例2: gnavi_footer
function gnavi_footer()
{
global $mod_copyright, $mydirname;
$tpl = new XoopsTpl();
$tpl->assign(array('mod_copyright' => $mod_copyright));
$tpl->display("db:{$mydirname}_footer.html");
}
示例3: callbackSetupUser
/**
* Checks whether the site is closed now, and whether all of must modules
* have been installed. This function is called through delegates.
* @var XoopsUser &$xoopsUser
* @see preBlockFilter()
*/
function callbackSetupUser(&$principal, &$controller, &$context)
{
$accessAllowFlag = false;
$xoopsConfig = $controller->mRoot->mContext->getXoopsConfig();
if (!empty($_POST['xoops_login'])) {
$controller->checkLogin();
return;
} else {
if (@$_GET['op'] == 'logout') {
// GIJ
$controller->logout();
return;
} elseif (is_object($context->mXoopsUser)) {
foreach ($context->mXoopsUser->getGroups() as $group) {
if (in_array($group, $xoopsConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) {
$accessAllowFlag = true;
break;
}
}
}
}
if (!$accessAllowFlag) {
require_once XOOPS_ROOT_PATH . '/class/template.php';
$xoopsTpl = new XoopsTpl();
$xoopsTpl->assign(array('xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']), 'xoops_isuser' => is_object($context->mXoopsUser), 'xoops_themecss' => xoops_getcss(), 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/', 'lang_login' => _LOGIN, 'lang_username' => _USERNAME, 'lang_password' => _PASSWORD, 'lang_siteclosemsg' => $xoopsConfig['closesite_text']));
$xoopsTpl->compile_check = true;
// @todo filebase template with absolute file path
$xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/legacy/templates/legacy_site_closed.html');
exit;
}
}
示例4: display
function display($resource_name, $cache_id = null, $compile_id = null)
{
if (substr($resource_name, 0, 8) == 'dbtheme:') {
$resource_name = 'db:' . substr($resource_name, 8, strpos($resource_name, "\n") - 8);
}
parent::display($resource_name, $cache_id, $compile_id);
}
示例5: b_marquee_custom
function b_marquee_custom($options)
{
$options = explode('|', $options);
$block =& b_marquee_show($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('db:marquee_block.html');
}
示例6: b_oledrion_mostviewed_lists_duplicatable
/**
* Bloc à la volée
*/
function b_oledrion_mostviewed_lists_duplicatable($options)
{
$options = explode('|', $options);
$block = b_oledrion_mostviewed_lists_show($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('oledrion_block_mostviewed_lists.tpl');
}
示例7: render
function render($target = null)
{
require_once XOOPS_ROOT_PATH . '/class/template.php';
$tpl = new XoopsTpl();
$tpl->assign($this->getAssign());
$tpl->assign('xoops_module_header', pico_main_render_moduleheader($this->mydirname, $GLOBALS['xoopsModuleConfig'], $this->getHtmlHeader()));
$tpl->display($this->getTemplateName());
}
示例8: b_oledrion_recentlysold_duplicatable
/**
* Bloc à la volée
* @param string $options
* @return string
*/
function b_oledrion_recentlysold_duplicatable($options)
{
$options = explode('|', $options);
$block = b_oledrion_bestsales_show($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('db:oledrion_block_recentlysold.tpl');
}
示例9: b_news_topics_onthefly
function b_news_topics_onthefly($options)
{
$options = explode('|', $options);
$block =& b_news_topics_show($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('db:news_block_topics.html');
}
示例10: b_myshop_promotion_show_duplicatable
function b_myshop_promotion_show_duplicatable($options)
{
$options = explode('|', $options);
$block =& b_myshop_promotion_show($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('db:myshop_block_promotion.html');
}
示例11: b_oledrion_promotion_show_duplicatable
/**
* Bloc à la volée
*/
function b_oledrion_promotion_show_duplicatable($options)
{
$options = explode('|', $options);
$block = b_oledrion_promotion_show($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('db:oledrion_block_promotion.tpl');
}
示例12: b_oledrion_category_lists_duplicatable
/**
* Bloc à la volée
*/
function b_oledrion_category_lists_duplicatable($options)
{
$options = explode('|', $options);
$block =& b_oledrion_category_lists_show($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('oledrion_block_category_lists.html');
}
示例13: b_myshop_category_duplicatable
/**
* Random block
*/
function b_myshop_category_duplicatable($options)
{
$options = explode('|', $options);
$block =& b_myshop_category($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('db:myshop_block_categories.html');
}
示例14: b_oledrion_random_show_duplicatable
/**
* Bloc à la volée
*/
function b_oledrion_random_show_duplicatable($options)
{
$options = explode('|', $options);
$block =& b_oledrion_random_show($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('db:oledrion_block_random.html');
}
示例15: nw_b_news_topics_moderate_onthefly
function nw_b_news_topics_moderate_onthefly($options)
{
$options = explode('|',$options);
$block = & nw_b_news_topics_moderate($options);
$tpl = new XoopsTpl();
$tpl->assign('block', $block);
$tpl->display('db:nw_news_block_moderate.html');
}