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


PHP add_page_content函数代码示例

本文整理汇总了PHP中add_page_content函数的典型用法代码示例。如果您正苦于以下问题:PHP add_page_content函数的具体用法?PHP add_page_content怎么用?PHP add_page_content使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: sample

 public function sample()
 {
     add_page_info("title", " Home " . ($this->type ? "- " . $this->type : ""));
     add_page_info("stylesheet", "main", "main-style");
     add_page_info("javascript", "main", "main-script");
     add_page_content("container", "container");
     add_page_content("top_nav", 'sample/top_nav/content');
     add_page_content("user_nav", 'sample/top_nav/user_nav/content');
     add_page_content("page_header", 'sample/page_header/content');
     add_page_content("page_top_menu", 'sample/page_top_menu/content');
     add_page_content("page_content", 'sample/page_content/content');
     add_page_content("left_sidebar", 'sample/page_content/left_sidebar/content');
     add_page_content("right_sidebar", 'sample/page_content/right_sidebar/content');
     add_page_content("page_footer", 'sample/page_footer/content');
     set_active("collapse_side_nav_link", true);
     $this->load->view('template/frame', $this->data);
 }
开发者ID:shemehs,项目名称:shine19395,代码行数:17,代码来源:home.php

示例2: add_page_content

<?php

add_page_content("dashboard_curriculums_content", "management/dashboard/curriculums/settings/page_content/container");
add_page_content("dashboard_curriculums_content_title", "Curriculum Settings");
add_page_content("curriculums_settings_sub_mennu", "management/dashboard/curriculums/settings/page_sub_menu/content");
set_link_url("backlink", site_url("dashboard/curriculums"));
set_hide_this("backlink", false);
set_hide_this("refreshlink", false);
set_active("settingslink", true);
$breadcrumb = array("name" => "bdcsettingslink", "text" => 'Settings', "uri" => "dashboard/curriculums/settings");
add_breadcrumb($breadcrumb);
$this->load->view("management/dashboard/curriculums/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:12,代码来源:view.php

示例3: add_page_content

<?php

//add_page_info("javascript","newcurriculumscript","add-curriculum-script");
add_page_content("dashboard_curriculums_content", "management/dashboard/curriculums/page_content/content");
add_page_content("dashboard_curriculums_content_title", "Active Curriculums");
set_link_url("backlink", site_url("dashboard"));
set_hide_this("backlink", false);
set_hide_this("refreshlink", false);
set_active("bdcurriculumslink", true);
$this->load->view("management/dashboard/curriculums/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:10,代码来源:pre_view.php

示例4: add_page_info

<?php

add_page_info("title", "Dashboard");
add_page_content("dashboard_content", 'management/dashboard/page_content/content');
add_page_content("dashboard_content_title", "Dashboard");
set_active("collapse_side_nav_link", true);
$this->load->view("management/dashboard/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:7,代码来源:pre_view.php

示例5: add_page_content

<?php

add_page_content("curriculum_settings_content", "management/dashboard/curriculums/settings/types/add/page_content/content");
$breadcrumb = array("name" => "bdcstaddlink", "text" => 'Add', "uri" => "dashboard/curriculums/settings/types/add");
add_breadcrumb($breadcrumb);
set_active("bdcstaddlink", true);
$this->load->view("management/dashboard/curriculums/settings/types/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:7,代码来源:view.php

示例6: add_page_info

<?php

add_page_info("title", " Dashboard - Curriculums");
add_page_info("javascript", "dcurriculumscript", "dashboard-curriculum-script");
add_page_content("curriculum_page_sub_menu", "management/dashboard/curriculums/page_sub_menu/content");
add_page_content("dashboard_header_subtitle", "Curriculums");
add_page_content("page_content", 'management/dashboard/curriculums/page_content/container');
set_active("dcurriculums", true);
$breadcrumb = array("name" => "bdcurriculumslink", "text" => ' Curriculums', "uri" => "dashboard/curriculums");
add_breadcrumb($breadcrumb);
set_active("collapse_side_nav_link", false);
set_page_links("curriculum_sub_menu_links", array(array("name" => "settingslink", "text" => ' <span class="glyphicon glyphicon-wrench"> ', "attributes" => array("class" => ' btn btn-sm btn-primary ' . (is_active("settingslink") ? " active " : " "), "title" => 'Settings'), "uri" => "dashboard/curriculums/settings"), array("name" => "createlink", "text" => ' <span class="glyphicon glyphicon-plus"> ', "attributes" => array("class" => ' btn btn-sm btn-primary ' . (is_active("createlink") ? " active " : " "), "title" => 'Create '), "uri" => "dashboard/curriculums/create"), array("name" => "listlink", "text" => ' <span class="glyphicon glyphicon-list"> ', "attributes" => array("class" => ' btn btn-sm btn-primary ' . (is_active("listlink") ? " active " : " "), "title" => 'List '), "uri" => "dashboard/curriculums/list")));
$this->load->view("management/dashboard/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:13,代码来源:view.php

示例7: add_page_content

<?php

add_page_content("curriculum_settings_content", "management/dashboard/curriculums/settings/yearlevels/edit/page_content/content");
$this->load->view("management/dashboard/curriculums/settings/yearlevels/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:4,代码来源:view.php

示例8: add_page_info

<?php

add_page_info("stylesheet", "main", "main-style");
add_page_info("javascript", "main", "main-script");
add_page_content("container", "container-fluid");
add_page_content("top_nav", 'management/dashboard/top_nav/content');
add_page_content("user_nav", 'management/dashboard/top_nav/user_nav/content');
add_page_content("collapse_side_nav", 'management/dashboard/top_nav/collapse_side_nav/content');
add_page_content("page_header", "management/dashboard/page_header/content");
add_page_content("page_top_menu", 'management/dashboard/page_top_menu/content');
add_page_content("page_content", 'management/dashboard/page_content/container');
$breadcrumb = array("name" => "bdashboardlink", "text" => 'Dashboard', "uri" => "dashboard");
add_breadcrumb($breadcrumb);
add_page_content("page_footer", 'management/dashboard/page_footer/content');
$this->load->view('management/template/frame');
开发者ID:shemehs,项目名称:shine19395,代码行数:15,代码来源:view.php

示例9: generate_content_layout


//.........这里部分代码省略.........
         // no problems so far, start creating the layout containers
         $fields = $layout['layout_fields'];
         // loop through the containers
         $f = 1;
         foreach ((array) $fields as $container) {
             echo '<div id="' . $layout['key'] . '_c' . $f . '" class="clearfix">' . PHP_EOL;
             // with line break
             // loop through the columns in each container
             $c = 1;
             foreach ((array) $container as $column) {
                 // set container class
                 $columnClass = preg_replace('!\\s+!', ' ', $column['class']) . ' clearfix';
                 if (count($container) > 1 && count($container) == $c) {
                     $columnClass .= ' last';
                 }
                 // set container ID
                 $columnID = $layout['key'] . '_c' . $f . '_' . str_replace(array('col-left-brdr', 'col-right-brdr', ' '), "", $column['class']) . '_' . $c;
                 // Set responsive visibility classes
                 $is_responsive = get_theme_var('options,responsive', 'active') !== 'inactive' ? true : false;
                 if ($is_responsive && isset($column['options'])) {
                     $responsive = array();
                     foreach ((array) $column['options'][1] as $option) {
                         $responsive[$option['name']] = true;
                     }
                     // Set the visible combo tags
                     $visible = '';
                     if (isset($responsive['visible_phone'])) {
                         $visible .= "P";
                     }
                     // P for Phone
                     if (isset($responsive['visible_tablet'])) {
                         $visible .= "T";
                     }
                     // T for Tablet
                     if (isset($responsive['visible_desktop'])) {
                         $visible .= "D";
                     }
                     // D for Desktop
                     // Select the correct class
                     switch ($visible) {
                         case 'P':
                             // Phone only
                             $columnClass .= ' visible-phone';
                             break;
                         case 'T':
                             // Tablet only
                             $columnClass .= ' visible-tablet';
                             break;
                         case 'D':
                             // Desktop only
                             $columnClass .= ' visible-desktop';
                             break;
                         case 'TD':
                             // Tablet and Desktop
                             $columnClass .= ' hidden-phone';
                             break;
                         case 'PD':
                             // Phone and Desktop
                             $columnClass .= ' hidden-tablet';
                             break;
                         case 'PT':
                             // Phone and Tablet
                             $columnClass .= ' hidden-desktop';
                             break;
                         default:
                             // Nothing to set.
                             // If nothing is selected as visible... assume the user screwed up?
                             break;
                     }
                 }
                 // End - $is_responsive
                 // print container
                 echo '	<div id="' . $columnID . '" class="' . $columnClass . '" >';
                 // wrapper containers for shadow border effect
                 echo '<div class="brd-l-main"><div class="brd-r-main">';
                 // loop through content items in each column
                 $i = 0;
                 foreach ((array) $column['items'] as $items) {
                     // print each item
                     echo '<div class="i' . $i . ' ugc">';
                     // each item can have multiple content blocks
                     for ($n = 0; $n < count($items); ++$n) {
                         echo add_page_content($items[$n], $context);
                     }
                     echo '</div>';
                     $i++;
                 }
                 // END - closing wrapper containers for shadow border effect
                 echo '</div></div>';
                 // Bottom containers for shadow border effect
                 echo '<div class="brd-l-bottom"><div class="brd-r-bottom"></div></div>';
                 echo '</div> <!-- END id=' . $columnID . ' class=' . $column['class'] . ' -->' . PHP_EOL;
                 $c++;
             }
             echo '</div> <!-- END id=' . $layout['key'] . '_container_' . $f . ' -->' . PHP_EOL . PHP_EOL;
             $f++;
         }
         return true;
     }
 }
开发者ID:perusoa,项目名称:anthony-peruso-website,代码行数:101,代码来源:layout-and-design.php

示例10: add_page_content

<?php

add_page_content("curriculum_settings_content", "management/dashboard/curriculums/settings/classtypes/info/edit/page_content/content");
$classtypeinfo = isset($classtypeinfo) ? $classtypeinfo : false;
$breadcrumb = array("name" => "bdcsctieditlink", "text" => "Edit", "uri" => "dashboard/curriculums/settings/classtypes/" . ($classtypeinfo ? $classtypeinfo->getClasstypeid() : 0) . "/edit");
add_breadcrumb($breadcrumb);
set_active("bdcsctieditlink", true);
$this->load->view("management/dashboard/curriculums/settings/classtypes/info/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:8,代码来源:view.php

示例11: add_page_info

<?php

add_page_info("stylesheet", "spinner/bootstrap-spinner", "spinner-style");
add_page_info("javascript", "spinner/jquery.spinner", "spinner-script");
$curriculuminfo = isset($curriculuminfo) ? $curriculuminfo : false;
$curriculumsubjectinfo = isset($curriculumsubjectinfo) ? $curriculumsubjectinfo : false;
set_active("bdcisclasstypeslink", true);
set_link_url("backlink", site_url("dashboard/curriculums/" . ($curriculuminfo ? $curriculuminfo->getCurriculumid() : 0) . "/subjects/" . ($curriculumsubjectinfo ? $curriculumsubjectinfo->getCurriculumsubjectid() : 0)));
set_hide_this("backlink", false);
set_hide_this("refreshlink", false);
add_page_info("javascript", "select-all-checkbox", "select-all-checkbox-script");
//add_page_content("page_action_menu","management/dashboard/curriculums/info/subjects/info/page_action_menu/content");
add_page_content("dashboard_curriculums_content", "management/dashboard/curriculums/info/subjects/info/page_content/content");
add_page_content("dashboard_curriculums_content_title", "Curriculum subject information");
$this->load->view("management/dashboard/curriculums/info/subjects/info/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:15,代码来源:pre_view.php

示例12: add_page_info

<?php

add_page_info("javascript", "newcurriculumscript", "add-curriculum-script");
add_page_content("dashboard_curriculums_content", "management/dashboard/curriculums/create/page_content/content");
add_page_content("dashboard_curriculums_content_title", "Create Curriculum");
set_link_url("backlink", site_url("dashboard/curriculums"));
set_hide_this("backlink", false);
set_hide_this("refreshlink", false);
set_active("createlink", true);
$breadcrumb = array("name" => "bdccreatelink", "text" => ' New ', "uri" => "dashboard/curriculums/create");
add_breadcrumb($breadcrumb);
$this->load->view("management/dashboard/curriculums/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:12,代码来源:view.php

示例13: add_page_info

<?php

add_page_info("title", " Login ");
add_page_info("stylesheet", "main", "main-style");
add_page_info("javascript", "main", "main-script");
add_page_info("stylesheet", "login", "custom-style");
add_page_info("javascript", "login", "custom-script");
add_page_content("container", "container");
add_page_content("top_nav", 'main/top_nav/content');
add_page_content("user_nav", 'main/login/top_nav/user_nav/content');
add_page_content("page_header", 'main/page_header/content');
add_page_content("page_content_container", 'main/login/page_content/container');
add_page_content("page_footer", 'main/page_footer/content');
$this->load->view('template/frame');
开发者ID:shemehs,项目名称:shine19395,代码行数:14,代码来源:view.php

示例14: set_active

<?php

set_active("loginasstudent", true);
add_page_content("page_content", 'main/login/students/page_content/content');
$this->load->view("main/login/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:5,代码来源:view.php

示例15: add_page_content

<?php

add_page_content("curriculum_settings_content", "management/dashboard/curriculums/settings/subjects/page_content/content");
set_active("bdcssubjectslink", true);
$this->load->view("management/dashboard/curriculums/settings/subjects/view");
开发者ID:shemehs,项目名称:shine19395,代码行数:5,代码来源:pre_view.php


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