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


PHP G::addToRender方法代码示例

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


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

示例1: renderImagesList

 private function renderImagesList()
 {
     G::addToRender("forms/admin_copy_image_form.php", BLOCK_PRE_CONTENT, CODE);
     G::addToRender("admin/mimages_images_table.php", BLOCK_PRE_CONTENT, CODE);
     //G::addToRender("forms/admin_product_edit_form.php", BLOCK_CONTENT, CODE);
     G::addToRender("forms/admin_upload_image_form.php", BLOCK_CONTENT, CODE);
 }
开发者ID:elijahGraff,项目名称:stoma-dental,代码行数:7,代码来源:MImages.php

示例2: init

 public function init()
 {
     // prerender visual (overtop) block
     G::addToRender("blocks/overtop.php", BLOCK_OVERTOP, CODE);
     // required CSS
     $this->requiredCSSFiles = array();
     $this->requiredCSSFiles[] = CSS_ADMIN_FILE;
     $this->requiredCSSFiles[] = "cropper.css";
     // init MODULE
     $this->initModule();
     // required JS
     $this->requiredJSFiles = array();
     if ($this->getCurrent()) {
         $filenames = $this->getCurrent()->getRequiredJSFilenames();
         foreach ($filenames as $filename) {
             if (file_exists($_SERVER["DOCUMENT_ROOT"] . PATH_SCRIPTS . $filename)) {
                 $this->requiredJSFiles[] = $filename;
             }
         }
     }
 }
开发者ID:elijahGraff,项目名称:stoma-dental,代码行数:21,代码来源:AdminModulesManager.php

示例3: renderProductsList

 private function renderProductsList()
 {
     G::addToRender("admin/mcatalog_products_table.php", BLOCK_PRE_CONTENT, CODE);
     G::addToRender("forms/admin_product_edit_form.php", BLOCK_CONTENT, CODE);
     G::addToRender("admin/admin_product_preview.php", BLOCK_SIDEBAR_LEFT, CODE);
 }
开发者ID:elijahGraff,项目名称:stoma-dental,代码行数:6,代码来源:MCatalog.php

示例4: load

 public function load()
 {
     $result = $this->loadPageData();
     // page not found
     if (!$result) {
         # if ajax return error
         if (G::$dataType == G::DATATYPE_AJAX) {
             G::fatalError("Page '" . $this->getAddress() . "' not found!");
         }
         # index not found
         if ($_SESSION["current_page"] == PAGE_INDEX) {
             G::fatalError("INDEX NOT FOUND :: " . DATABASE_ERROR_MESSAGE);
         }
         # 404 not found
         if ($_SESSION["current_page"] == PAGE_PAGE404) {
             $this->redirect(PAGE_INDEX);
             exit;
         }
         # regular page not found
         $this->redirect(PAGE_PAGE404);
         exit;
     }
     // USER have access?
     if (!G::$user->isOrHigher($this->data["access"])) {
         if (G::$dataType == G::DATATYPE_AJAX) {
             G::fatalError("Access denied!");
         } else {
             // MAy NOT REDIRECT BUY RELOAD A_D!!!!!!!!!!!!!!!!!!!!!!!!!!
             $this->redirect(PAGE_ACCESS_DENIED);
             exit;
         }
     }
     // SPEC access
     if (G::$user->isOrHigher(U_MODERATOR)) {
         $this->modulesManager->init();
     }
     /* FINALIZE load ---------------------- */
     # content
     if ($this->getAddress("type") != P_TYPE_CATALOGUE && !empty($this->data["content"])) {
         $class = "content-white-back";
         if ($this->getAddress("type") == P_TYPE_ARTICLE) {
             $class = "content-white-back-article";
         }
         G::addToRender("<div class='{$class}'>", BLOCK_CONTENT);
         G::addToRender($this->data["content"], BLOCK_CONTENT);
         G::addToRender("<p style='clear:both;'></p>", BLOCK_CONTENT);
         G::addToRender("</div>", BLOCK_CONTENT);
     }
     G::addToRender(META_FILE, HEAD, CODE);
     $this->renderMeta();
     # css
     $this->renderCSS();
     # js
     $this->renderJS();
 }
开发者ID:elijahGraff,项目名称:stoma-dental,代码行数:55,代码来源:PageData.php

示例5: UserData

// User data (auth) ---------------------------------------------------------------
G::$user = new UserData();
G::$user->loadFromCookies();
// localization -------------------------------------------------------------------
G::$language = new Language();
G::$language->setLanguage(G::$user->languageId ? G::$user->languageId : G::$pageData->getSetting("default_language_id"));
// plug in ADMIN MODULES ----------------------------------------------------------
if (G::$user->isOrHigher(U_MODERATOR)) {
    include_once ROOT . PATH_MODULES . "config.php";
}
// init page render ---------------------------------------------------------------
G::initPageRender();
G::addToRender("<div class=\"overtop-block\">", BLOCK_OVERTOP);
// load page data -----------------------------------------------------------------
G::$pageData->load();
// ------- HEAD --------------------
//
// ------ OVERTOP ------------------
G::addToRender("</div>", BLOCK_OVERTOP);
//
// ------ HEADER ------------------
G::addToRender("blocks/header_top_menu.php", BLOCK_TOP_MENU, CODE);
G::addToRender("blocks/header_search_block.php", BLOCK_SEARCH, CODE);
G::addToRender("blocks/header_middle_menu.php", BLOCK_MIDDLE_MENU, CODE);
#G::addToRender("blocks/header_auth_and_cart.php", BLOCK_AUTH, CODE);
G::addToRender("blocks/header_s_cart.php", BLOCK_SCART, CODE);
G::addToRender("blocks/carousel.php", BLOCK_CAROUSEL, CODE);
// ------ FOOTER -----------------
G::addToRender("blocks/footer.php", BLOCK_FOOTER, CODE);
#addToRender("external/pluso.php", BLOCK_FOOTER, CODE);
//
开发者ID:elijahGraff,项目名称:stoma-dental,代码行数:31,代码来源:Main.php

示例6: renderLocalMenu

 private function renderLocalMenu()
 {
     G::addToRender("admin/mpages_tabs.php", BLOCK_CONTENT, CODE);
 }
开发者ID:elijahGraff,项目名称:stoma-dental,代码行数:4,代码来源:MPages.php


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