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


PHP PageManager::getPageContent方法代码示例

本文整理汇总了PHP中PageManager::getPageContent方法的典型用法代码示例。如果您正苦于以下问题:PHP PageManager::getPageContent方法的具体用法?PHP PageManager::getPageContent怎么用?PHP PageManager::getPageContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PageManager的用法示例。


在下文中一共展示了PageManager::getPageContent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

    <body>
        <div id="top">
            <div class="centerContainer">
                <?php 
echo $pMgr->navigation();
?>

                <div id="header">
                    <h1>The Three Little Pigs - A Siri Server That Needs To Be Fed</h1>
                </div>
            </div>
        </div>
        <div id="middle">
            <div class="centerContainer">
                <?php 
echo $pMgr->getPageContent();
?>
            </div>
            <div id="fixFooter"></div>
        </div>
        <div id="bottom">
            <div class="centerContainer">
                <div class="left">
                    <div class="left">
                        <h3>Follow us for news &amp; updates!</h3>
                        <ul>
                            <li><a href="https://twitter.com/WouterDS" class="twitter-follow-button" data-show-count="true" style="width: 250px;">Follow @WouterDS</a></li>
                            <li><a href="https://twitter.com/JimmyKane9" class="twitter-follow-button" data-show-count="true" style="width: 250px;">Follow @JimmyKane9</a></li>
                            <li><a href="https://twitter.com/thpryrchn" class="twitter-follow-button" data-show-count="true" style="width: 250px;">Follow @thpryrchn </a></li>
                            <li><a href="https://twitter.com/HisyamNasir" class="twitter-follow-button" data-show-count="true" style="width: 250px;">Follow @HisyamNasir </a></li>
                        </ul>
开发者ID:raphaelcosta,项目名称:The-Three-Little-Pigs-Siri-Proxy,代码行数:31,代码来源:index.php

示例2: PageManager

 include_once "inc/Statistics.class.php";
 include_once "inc/PageManager.class.php";
 include_once "inc/Announcement.class.php";
 include_once "inc/WebsiteProperty.class.php";
 /* Build content
  ******************************************************************/
 $pMgr = new PageManager("pages", "page");
 $websiteProperty = new WebsiteProperty();
 $ban = new Ban();
 $layout = new Layout($websiteProperty->getProperty('website_title') . ' :: ' . $pMgr->getTitle(), $pMgr->navigation());
 echo $layout->buildTop();
 if ($ban->checkBan()) {
     echo '<p class="notification red">Your IP has been banned on ' . $ban->checkBan("dtime") . '<br />Reason: ' . $ban->checkBan("reason") . '</p>';
 } else {
     if ($_GET['page'] == 'admin') {
         $pMgr->getPageContent();
     } else {
         $announcement = new Announcement();
         $dataArr = $announcement->getAnnouncements();
         if ($dataArr !== false) {
             foreach ($dataArr as $data) {
                 echo '<p class="notification ' . strtolower($data['announcement_type']) . '">[' . $data['date_added'] . '] ' . stripslashes($data['announcement_text']) . '</p>';
             }
         }
         echo ads();
         $pMgr->getPageContent();
         echo supportMe();
         echo ads();
     }
 }
 echo $layout->buildBottom();
开发者ID:rabih96,项目名称:The-Three-Little-Pigs-Siri-Proxy,代码行数:31,代码来源:index.php


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