当前位置: 首页>>代码示例>>PHP>>正文


PHP XoopsTpl::display方法代码示例

本文整理汇总了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");
}
开发者ID:BackupTheBerlios,项目名称:peakxoops-svn,代码行数:7,代码来源:draw_functions.php

示例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");
}
开发者ID:nouphet,项目名称:rata,代码行数:7,代码来源:draw_functions.php

示例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;
     }
 }
开发者ID:hiro1173,项目名称:legacy,代码行数:37,代码来源:SiteClose.class.php

示例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);
 }
开发者ID:BackupTheBerlios,项目名称:peakxoops-svn,代码行数:7,代码来源:block_functions.php

示例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');
}
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:8,代码来源:marquee_bloc.php

示例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');
}
开发者ID:osw17,项目名称:oledrion,代码行数:11,代码来源:oledrion_mostviewed_lists.php

示例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());
 }
开发者ID:nouphet,项目名称:rata,代码行数:8,代码来源:PicoControllerAbstract.class.php

示例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');
}
开发者ID:osw17,项目名称:oledrion,代码行数:13,代码来源:oledrion_recentlysold.php

示例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');
}
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:8,代码来源:news_topics.php

示例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');
}
开发者ID:naao,项目名称:myshop,代码行数:8,代码来源:myshop_promotion.php

示例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');
}
开发者ID:osw17,项目名称:oledrion,代码行数:11,代码来源:oledrion_promotion.php

示例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');
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:11,代码来源:oledrion_categoy_lists.php

示例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');
}
开发者ID:naao,项目名称:myshop,代码行数:11,代码来源:myshop_categories.php

示例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');
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:11,代码来源:oledrion_random.php

示例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');
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:9,代码来源:news_moderate.php


注:本文中的XoopsTpl::display方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。