本文整理汇总了PHP中PageLayout::isHeaderEnabled方法的典型用法代码示例。如果您正苦于以下问题:PHP PageLayout::isHeaderEnabled方法的具体用法?PHP PageLayout::isHeaderEnabled怎么用?PHP PageLayout::isHeaderEnabled使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PageLayout
的用法示例。
在下文中一共展示了PageLayout::isHeaderEnabled方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: first_decision
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
// +---------------------------------------------------------------------------+
/* ---
* Mögliche Datenschutz-/Sichtbarkeitsentscheidung: Beim ersten Login wird ein
* informierender Text mit Entscheidungsmöglichkeit: "Ich will sichtbar sein" oder
* "Ich will unsichtbar sein" angezeigt.
*
* Bei Nutzung dieser Funktion unbedingt die Texte unter locale/de/LC_HELP/visibility_decision.php bzw.
* locale/en/LC_HELP/visibility_decision.php an die lokalen Verhältnisse anpassen!
*/
if ($GLOBALS['USER_VISIBILITY_CHECK'] && is_object($GLOBALS['user']) && $GLOBALS['user']->id != 'nobody') {
require_once 'lib/user_visible.inc.php';
first_decision($GLOBALS['user']->id);
}
if (PageLayout::isHeaderEnabled()) {
$header_template = $GLOBALS['template_factory']->open('header');
$header_template->current_page = PageLayout::getTitle();
$header_template->link_params = array_fill_keys(array_keys(URLHelper::getLinkParams()), NULL);
if (is_object($GLOBALS['user']) && $GLOBALS['user']->id != 'nobody') {
// only mark course if user is logged in and free access enabled
if (get_config('ENABLE_FREE_ACCESS') && Navigation::hasItem('/course') && Navigation::getItem('/course')->isActive()) {
// indicate to the template that this course is publicly visible
// need to handle institutes separately (always visible)
if ($GLOBALS['SessSemName']['class'] == 'inst') {
$header_template->public_hint = _('öffentliche Einrichtung');
} else {
if (Course::findCurrent()->lesezugriff == 0) {
$header_template->public_hint = _('öffentliche Veranstaltung');
}
}
示例2: if
<? SkipLinks::insertContainer() ?>
<? SkipLinks::addIndex(_("Hauptinhalt"), 'layout_content', 100, true) ?>
<?php
echo PageLayout::getBodyElements();
?>
<? include 'lib/include/header.php' ?>
<div id="layout_page">
<? if (PageLayout::isHeaderEnabled() && is_object($GLOBALS['user']) && $GLOBALS['user']->id != 'nobody' && Navigation::hasItem('/course') && Navigation::getItem('/course')->isActive() && $_SESSION['seminar_change_view_'.$GLOBALS['SessionSeminar']]) : ?>
<?php
echo $this->render_partial('change_view', array('changed_status' => $_SESSION['seminar_change_view_' . $GLOBALS['SessionSeminar']]));
?>
<? endif ?>
<? if (PageLayout::isHeaderEnabled() && isset($navigation)) : ?>
<?php
echo $this->render_partial('tabs', compact("navigation"));
?>
<? endif ?>
<?php
echo Helpbar::get()->render();
?>
<div id="layout_container">
<?php
echo Sidebar::get()->render();
?>
<div id="layout_content">
<?php
echo implode(PageLayout::getMessages());