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


PHP Theme::Theme方法代码示例

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


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

示例1: ThemeSchoolyard

 /** construct a ThemeSchoolyard object
  *
  * First we do the regular initialisation, and subsequently we set a few parameters
  * (very un-exciting).
  *
  * @param array $theme_record the record straight from the database
  * @param int $area_id the area of interest
  * @param int $node_id the node that will be displayed
  * @return void
  */
 function ThemeSchoolyard($theme_record, $area_id, $node_id)
 {
     parent::Theme($theme_record, $area_id, $node_id);
     $this->quicktop_separator = '|';
     //  override default values in parent
     $this->quickbottom_separator = '|';
     $this->breadcrumb_separator = '-';
 }
开发者ID:BackupTheBerlios,项目名称:websiteatschool,代码行数:18,代码来源:schoolyard.class.php

示例2: MyTheme

 /**
  * The Theme is primarily responsible for display of:
  *  - An HTML header preamble, including references to style sheets
  *  - A page header, graphically presenting the system
  *    - possibly with a menu bar
  *  - An optional LH Sidebar, containing various possible items
  *  - A content area, where goes all the real meat.
  *  - An optional RH Sidebar, containing other items
  *  - An optional menu at the bottom of the page
  *  - A page footer, completing the page.
  */
 function MyTheme()
 {
     global $c;
     parent::Theme();
     $this->stylesheets[0] = "andrew.css";
     $this->images = "catimg";
     $c->images = "catimg";
 }
开发者ID:Br3nda,项目名称:wrms,代码行数:19,代码来源:Catalyst.php

示例3: MyTheme

 /**
  * The Theme is primarily responsible for display of:
  *  - An HTML header preamble, including references to style sheets
  *  - A page header, graphically presenting the system
  *    - possibly with a menu bar
  *  - An optional LH Sidebar, containing various possible items
  *  - A content area, where goes all the real meat.
  *  - An optional RH Sidebar, containing other items
  *  - An optional menu at the bottom of the page
  *  - A page footer, completing the page.
  */
 function MyTheme()
 {
     global $c;
     parent::Theme();
     $this->stylesheets[0] = "/fleximg/flexwrms.css";
     $this->images = "fleximg";
     $this->favicon = "/fleximg/flexible.ico";
     $c->images = "fleximg";
 }
开发者ID:Br3nda,项目名称:wrms,代码行数:20,代码来源:Flexible.php

示例4:

 function Theme_Sidebar($theme_name = 'Sidebar')
 {
     parent::Theme($theme_name);
     $this->calendarInit(true);
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:5,代码来源:themeinfo.php

示例5: MyTheme

 /**
  * The Theme is primarily responsible for display of:
  *  - An HTML header preamble, including references to style sheets
  *  - A page header, graphically presenting the system
  *    - possibly with a menu bar
  *  - An optional LH Sidebar, containing various possible items
  *  - A content area, where goes all the real meat.
  *  - An optional RH Sidebar, containing other items
  *  - An optional menu at the bottom of the page
  *  - A page footer, completing the page.
  */
 function MyTheme()
 {
     global $c;
     parent::Theme();
     $this->stylesheets[0] = "eduforge.css";
     $this->images = "images/eduforge";
     $c->images = "images/eduforge";
     // Compatibilty with AWL... :-)
     $this->colors = array("bg1" => "#ffffff", "fg1" => "#000000", "link1" => "#205070", "bg2" => "#6C859F", "fg2" => "#ffffff", "bg3" => "#000000", "fg3" => "#ffffff", "hv1" => "#30a070", "hv2" => "#40f0a0", "row0" => "#ffffff", "row1" => "#F5F8FA", "link2" => "#333333", "bghelp" => "#ffffff", "fghelp" => "#000000", 8 => "#583818", 9 => "#f5f8fa", 10 => "#50a070", "blockfront" => "black", "blockback" => "white", "blockbg2" => "white", "blocktitle" => "white", "blocksides" => "#ffffff", "blockextra" => "#660000");
     $this->fonts = array("tahoma", "verdana", "help" => "times", "quote" => "times new roman, times, serif", "narrow" => "arial narrow, helvetica narrow, times new roman, times", "fixed" => "courier, fixed", "block" => "tahoma");
     // block font
 }
开发者ID:Br3nda,项目名称:wrms,代码行数:23,代码来源:Eduforge.php

示例6: ThemeRosalina

 /** construct a ThemeRosalina object
  *
  * First we do the regular initialisation, and subsequently we calculate the
  * areas available to this user in $this->jumps; Also we set all hvmenu-parameters
  * that are not already set in $this->config. This makes it possible to drop certain
  * parameters from the configuration (see {@link rosalina_install()}) and still
  * construct a valid hvmenu config.
  *
  * Finally we pre-calculate the limits $menu_top and $menu_width for use in the
  * treewalker (see {@link rosalina_show_tree_walk()}).
  *
  * @param array $theme_record the record straight from the database
  * @param int $area_id the area of interest
  * @param int $node_id the node that will be displayed
  * @return void
  */
 function ThemeRosalina($theme_record, $area_id, $node_id)
 {
     global $USER;
     parent::Theme($theme_record, $area_id, $node_id);
     // Make sure all parameters will exist in $this->config even when not in theme properties table
     $hvmenu_defaults = array('LowBgColor' => "#FFFFFF", 'LowSubBgColor' => "#FFFFFF", 'HighBgColor' => "#0000FF", 'HighSubBgColor' => "#FF0000", 'FontLowColor' => "#000000", 'FontSubLowColor' => "#000000", 'FontHighColor' => "#FFFFFF", 'FontSubHighColor' => "#FFFFFF", 'BorderColor' => "#FF0000", 'BorderSubColor' => "#0000FF", 'BorderWidth' => 2, 'BorderBtwnElmnts' => TRUE, 'FontFamily' => "verdana,sans-serif", 'FontSize' => 9.0, 'FontBold' => TRUE, 'FontItalic' => FALSE, 'MenuTextCentered' => "left", 'MenuCentered' => "left", 'MenuVerticalCentered' => "top", 'ChildOverlap' => 0.0, 'ChildVerticalOverlap' => 0.0, 'StartTop' => 0, 'StartLeft' => 0, 'VerCorrect' => 0, 'HorCorrect' => 0, 'LeftPaddng' => 6, 'TopPaddng' => 2, 'FirstLineHorizontal' => TRUE, 'MenuFramesVertical' => FALSE, 'DissapearDelay' => 1000, 'TakeOverBgColor' => TRUE, 'FirstLineFrame' => "self", 'SecLineFrame' => "self", 'DocTargetFrame' => "self", 'TargetLoc' => "hvmenu", 'HideTop' => FALSE, 'MenuWrap' => TRUE, 'RightToLeft' => FALSE, 'UnfoldsOnClick' => FALSE, 'WebMasterCheck' => FALSE, 'ShowArrow' => FALSE, 'KeepHilite' => TRUE, 'Arrws' => 'tri.gif,5,10,' . 'tridown.gif,10,5,' . 'trileft.gif,5,10');
     foreach ($hvmenu_defaults as $k => $v) {
         if (!isset($this->config['hvmenu_' . $k])) {
             $this->config['hvmenu_' . $k] = $v;
         }
     }
     $limits = isset($this->config['menu_top']) ? explode(',', $this->config['menu_top']) : '';
     $this->menu_top = array(isset($limits[0]) ? intval($limits[0]) : 120, isset($limits[1]) ? intval($limits[1]) : 8, isset($limits[2]) ? intval($limits[2]) : 300, isset($limits[3]) ? intval($limits[3]) : 20);
     $limits = isset($this->config['menu_sub']) ? explode(',', $this->config['menu_sub']) : '';
     $this->menu_sub = array(isset($limits[0]) ? intval($limits[0]) : 150, isset($limits[1]) ? intval($limits[1]) : 8, isset($limits[2]) ? intval($limits[2]) : 500, isset($limits[3]) ? intval($limits[3]) : 20);
     $this->quicktop_separator = '|';
     $this->quickbottom_separator = '|';
     $this->breadcrumb_separator = '-';
 }
开发者ID:BackupTheBerlios,项目名称:websiteatschool,代码行数:35,代码来源:rosalina.class.php

示例7: ThemeCornelia

 function ThemeCornelia($theme_record, $area_id, $node_id)
 {
     parent::Theme($theme_record, $area_id, $node_id);
     $this->quickbottom_separator = '|';
 }
开发者ID:BackupTheBerlios,项目名称:websiteatschool,代码行数:5,代码来源:cornelia.class.php

示例8: ColorTheme

 function ColorTheme($themeType = '')
 {
     parent::Theme($themeType);
     $this->colorName = $themeType;
     $this->colorNumber = GetColorNumber($this->colorName);
 }
开发者ID:alafighting,项目名称:javagit,代码行数:6,代码来源:color_theme.php

示例9: MyTheme

 /**
  * The DefaultTheme is a fallback that won't be used often.
  */
 function MyTheme()
 {
     parent::Theme();
 }
开发者ID:Br3nda,项目名称:wrms,代码行数:7,代码来源:Default.php


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