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


PHP theme::get方法代码示例

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


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

示例1: initObjects

 /**
  * Init objects theme module & page
  */
 private function initObjects()
 {
     $this->theme = \theme::get(\app::$request->getParam('THEMEMODULE'), \app::$request->getParam('THEME'));
     $this->module = \app::getModule(\app::$request->getParam('MODULE'));
     $IDPage = \app::$request->getParam('IDPage');
     if ($IDPage && is_numeric($IDPage)) {
         \app::$response->page = $this->page = $this->module->getPage($IDPage);
     }
 }
开发者ID:saitinet,项目名称:parsimony,代码行数:12,代码来源:module.php

示例2:

<?php

echo View::factory('themes/' . theme::get() . '/pages/index')->set('pages', $pages);
开发者ID:ready4god2513,项目名称:scs,代码行数:3,代码来源:index_ajax.php

示例3: callBlockAction

 /**
  * Call a method of block
  * @param string $idpage
  * @param string $theme
  * @param string $id
  * @param string $method
  * @return mixed
  */
 public function callBlockAction($idPage, $theme, $id, $method)
 {
     if (empty($theme)) {
         $blockObj =& $this->getPage($idPage)->searchBlock($id);
     } else {
         $theme = \theme::get($this->name, $theme);
         $blockObj = $theme->searchBlock($id, $theme);
     }
     if (method_exists($blockObj, $method . 'Action')) {
         return $this->callMethod($blockObj, $method . 'Action');
     }
     return FALSE;
 }
开发者ID:saitinet,项目名称:parsimony,代码行数:21,代码来源:module.php

示例4: home

 /**
  * Set the home page
  * @Developer brandon
  * @Date Oct 11, 2010
  */
 public function home()
 {
     meta::set_title('Welcome');
     $this->template->set('content', View::factory('themes/' . theme::get() . '/home'));
 }
开发者ID:ready4god2513,项目名称:scs,代码行数:10,代码来源:static.php

示例5: getTheme

 /**
  * Get theme name
  * @return string
  */
 public function getTheme()
 {
     /* Without theme ? */
     if ($this->theme === FALSE || \app::$request->getParam('nostructure')) {
         return '';
     }
     /* Define THEME, perm 8 = choose a theme */
     if ($_SESSION['permissions'] & 8 && isset($_COOKIE['THEME']) && isset($_COOKIE['THEMEMODULE'])) {
         return \theme::get($_COOKIE['THEMEMODULE'], $_COOKIE['THEME']);
     } else {
         if (empty($this->theme)) {
             return \theme::get(app::$config['THEMEMODULE'], app::$config['THEME']);
         } else {
             $themeParts = explode('_', $this->theme, 2);
             return \theme::get($themeParts[0], $themeParts[1]);
         }
     }
 }
开发者ID:saitinet,项目名称:parsimony,代码行数:22,代码来源:page.php

示例6:

<?php

echo View::factory('themes/' . theme::get() . '/products/index')->set('products', $products);
开发者ID:ready4god2513,项目名称:scs,代码行数:3,代码来源:index.php

示例7: t

 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 */
app::$response->addJSFile('admin/blocks/tree/block.js', 'footer');
?>
<div id="config_tree_selector" class="none">
	<span class="spanDND sprite sprite-csspickerlittle cssblock floatleft" data-action="onDesign"></span>
	<?php 
if ($_SESSION['permissions'] & 128) {
    ?>
		<span class="floatleft ui-icon ui-icon-wrench configure_block" rel="getViewConfigBlock" data-action="onConfigure" title="<?php 
    echo t('Configuration');
    ?>
"></span>
		<?php 
    if ($_SESSION['permissions'] & 256) {
        ?>
		<span draggable="true" class="floatleft move_block ui-icon ui-icon-arrow-4"></span>
		<span class="ui-icon ui-icon-trash config_destroy floatleft" data-action="onDelete"></span>
		<?php 
    }
}
?>
</div>
<div id="tree"> 
	<?php 
$IDPage = \app::$request->getParam('IDPage');
if ($IDPage && is_numeric($IDPage)) {
    echo \app::getModule('admin')->structureTree(\theme::get(\app::$request->getParam('THEMEMODULE'), \app::$request->getParam('THEME')));
}
?>
</div>
开发者ID:saitinet,项目名称:parsimony,代码行数:31,代码来源:view.php

示例8:

<?php

echo View::factory('themes/' . theme::get() . '/pages/show')->set('page', $page);
开发者ID:ready4god2513,项目名称:scs,代码行数:3,代码来源:show.php

示例9:

<?php

echo View::factory('themes/' . theme::get() . '/errors/404');
开发者ID:ready4god2513,项目名称:scs,代码行数:3,代码来源:404.php

示例10: foreach

<h2>Shopping Cart</h2>
<?php 
if (!cart::get()->cart_contents_count()) {
    ?>
	<?php 
    echo View::factory('themes/' . theme::get() . '/carts/cart_empty');
} else {
    ?>
	<table>
		<thead>
			<tr>
				<th>Product</th>
				<th>Quantity</th>
				<th>Price</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="2">Order Subtotal</td>
				<td><?php 
    echo format::dollar_format(cart::get()->subtotal());
    ?>
</td>
			</tr>
		</tfoot>
		<tbody>
			<?php 
    foreach (cart::get()->cart_items as $cart_item) {
        ?>
				<tr id="cart-item-<?php 
        echo $cart_item;
开发者ID:ready4god2513,项目名称:scs,代码行数:31,代码来源:index.php

示例11: __construct

 /**
  * Set the view to use
  * @developer Brandon Hansen
  * @date Oct 13, 2010
  */
 public function __construct()
 {
     parent::__construct();
     $this->template = View::factory('themes/' . theme::get() . '/theme');
 }
开发者ID:ready4god2513,项目名称:scs,代码行数:10,代码来源:application.php


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