本文整理汇总了PHP中Channel::out方法的典型用法代码示例。如果您正苦于以下问题:PHP Channel::out方法的具体用法?PHP Channel::out怎么用?PHP Channel::out使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Channel
的用法示例。
在下文中一共展示了Channel::out方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
function display($file, $wrap = true, $cache_id = null, $compile_id = null)
{
if ($wrap && !$this->is_channel) {
$this->assign('webapp_page_title', $this->page_title);
$this->assign('webapp_app_title', $this->app_title);
$this->assign('webapp_content_classes', implode(' ', $this->content_classes));
if (isset($this->body_style_classes)) {
if (is_array($this->body_style_classes)) {
$this->assign('body_style_classes', implode(' ', $this->body_style_classes));
} else {
$this->assign('body_style_classes', $this->body_style_classes);
}
} else {
$this->assign('body_style_classes', basename($file, '.tpl'));
}
if (isset($this->body_id)) {
$this->assign('body_id', $this->body_id);
}
$this->addCSS('/app/core/css/all960.css');
if ($this->fluid) {
$this->addCSS('/app/core/css/fluid960.css');
}
//end if
$this->addCSS('/app/core/css/style.css?v=1.2');
if (\PSU::isDev() && $_SESSION['username'] == 'mtbatchelder') {
$this->addCSS('/app/core/css/mtbatchelder.css');
}
//end if
if ($GLOBALS['BASE_URL'] == 'http://' . $_SERVER['HTTP_HOST'] . '/webapp/style') {
if ($_GET['old']) {
$this->addCSS('/app/core/css/old_webapp_style.css');
}
//end if
} else {
}
//end if
if ($GLOBALS['channel_styles']) {
$this->addCSS('/webapp/my/templates/override.css');
$this->addCSS('/webapp/my/templates/channels.css');
}
//end if
$this->addJS('http' . ($_SERVER['HTTPS'] ? 's' : '') . '://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.js', array('head' => true));
// psu-standard scripts
if (defined('SCRIPT_DEBUG') && SCRIPT_DEBUG) {
$this->addJS('/app/core/js/amplify.js');
$this->addJS('/app/core/js/jquery-plugins/jquery.multi-ddm.min.js');
$this->addJS('/app/core/js/behavior.js');
$this->addJS('/app/core/js/jquery-plugins/jquery.ba-dotimeout.js');
$this->addJS('/app/core/js/jquery-plugins/waypoints.js');
} else {
$this->addJS('/app/core/js/standard/psu-standard.min.js');
}
$this->addJS('/app/core/js/bootstrap/bootstrap.min.js');
if ($this->channel_container) {
$this->addJS('/js/jquery-plugins/shadowbox/shadowbox.js');
$this->addCSS('/js/jquery-plugins/shadowbox/shadowbox.css');
$this->addJS('/webapp/my/js/combined.js?v=1');
$this->addJS('/webapp/portal/myjs/index.php?v=1.6');
$this->addJS('/webapp/my/js/loaded.js?v=1');
}
//end if
$this->webapp_content('css');
$this->webapp_content('host_js');
$this->webapp_content('pre_js');
$this->webapp_content('js');
$this->webapp_content('head');
$this->webapp_content('nav');
$this->webapp_content('avant_body');
$this->webapp_content('body', $this->fetch($file, $cache_id, $compile_id, false));
$this->webapp_content('apres_body');
$this->webapp_content('foot');
$this->webapp_content('apres_foot', $this->fetch(PSU_BASE_DIR . '/app/core/templates/apres_foot.tpl', $cache_id, $compile_id, false));
$this->webapp_content('apres_foot_center');
if (!$GLOBALS['suppress_theme']) {
$this->addCSS('/webapp/themes/my/my.php');
$this->addJS('/webapp/themes/my/js.php');
}
//end if
$this->fetch(PSU_BASE_DIR . '/app/core/templates/main.tpl', $cache_id, $compile_id, true);
} else {
$this->fetch($file, $cache_id, $compile_id, true);
}
//end else
if ($this->is_channel) {
$params = array('callback' => $this->channel_callback ? $this->channel_callback : '$.my.channelLoad', 'channel_id' => $this->channel_id ? $this->channel_id : $_GET['channel_id']);
if ($this->channel_js_callback) {
$params['js_callback'] = $this->channel_js_callback;
}
//end if
if ($this->state) {
$params['state'] = $this->state;
}
//end if
if ($this->title) {
$params['title'] = $this->title;
}
//end if
$this->addJS('http' . ($_SERVER['HTTPS'] ? 's' : '') . '://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', array('head' => true));
$this->addJS('/webapp/portal/myjs/index.php');
$this->addJS('http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js');
//.........这里部分代码省略.........