本文整理匯總了PHP中PageLayout::getBodyElementId方法的典型用法代碼示例。如果您正苦於以下問題:PHP PageLayout::getBodyElementId方法的具體用法?PHP PageLayout::getBodyElementId怎麽用?PHP PageLayout::getBodyElementId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類PageLayout
的用法示例。
在下文中一共展示了PageLayout::getBodyElementId方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: if
<? if (is_object($GLOBALS['perm']) && $GLOBALS['perm']->have_perm('autor') && PersonalNotifications::isActivated()) : ?>
STUDIP.jsupdate_enable = true;
<? endif ?>
STUDIP.URLHelper.parameters = <?php
echo json_encode(studip_utf8encode(URLHelper::getLinkParams()));
?>
;
</script>
<?php
// needs to be included in lib/include/html_head.inc.php as well
include 'app/views/WysiwygHtmlHead.php';
?>
</head>
<body id="<?php
echo $body_id ? $body_id : PageLayout::getBodyElementId();
?>
">
<div id="layout_wrapper">
<? 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']]));
示例2: htmlReady
?>
";
String.locale = "<?php
echo htmlReady(strtr($_SESSION['_language'], '_', '-'));
?>
";
<? if (is_object($GLOBALS['perm']) && PersonalNotifications::isActivated() && $GLOBALS['perm']->have_perm("autor")) : ?>
STUDIP.jsupdate_enable = true;
<? endif ?>
STUDIP.URLHelper.parameters = <?php
echo json_encode(studip_utf8encode(URLHelper::getLinkParams()));
?>
;
</script>
<?php
// needs to be included in templates/layouts/base.php as well
include 'app/views/WysiwygHtmlHead.php';
?>
</head>
<body id="<?php
echo PageLayout::getBodyElementId();
?>
">
<div id="layout_wrapper">
<? SkipLinks::insertContainer() ?>
<?php
echo PageLayout::getBodyElements();
?>
<? PageLayout::clearMessages() ?>