本文整理汇总了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);
}
}
示例2:
<?php
echo View::factory('themes/' . theme::get() . '/pages/index')->set('pages', $pages);
示例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;
}
示例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'));
}
示例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]);
}
}
}
示例6:
<?php
echo View::factory('themes/' . theme::get() . '/products/index')->set('products', $products);
示例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>
示例8:
<?php
echo View::factory('themes/' . theme::get() . '/pages/show')->set('page', $page);
示例9:
<?php
echo View::factory('themes/' . theme::get() . '/errors/404');
示例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;
示例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');
}