當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。