當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PageLayout::getBodyElementId方法代碼示例

本文整理匯總了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']]));
開發者ID:ratbird,項目名稱:hope,代碼行數:31,代碼來源:base.php

示例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() ?>
開發者ID:ratbird,項目名稱:hope,代碼行數:30,代碼來源:html_head.inc.php


注:本文中的PageLayout::getBodyElementId方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。