本文整理汇总了PHP中Overrider类的典型用法代码示例。如果您正苦于以下问题:PHP Overrider类的具体用法?PHP Overrider怎么用?PHP Overrider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Overrider类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
public static function render($layout, $displayData)
{
if ($file = Overrider::getOverride('lyt.' . $layout, '', true)) {
$layoutHelper = new JLayoutHelper();
$layoutHelper->doRender($layout, $displayData, $file);
}
}
示例2: defined
<?php
/**
* @version $Id: default.php 22355 2011-11-07 05:11:58Z github_bot $
* @package Joomla.Site
* @subpackage mod_menu
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
$app = JFactory::getApplication();
require_once JPATH_THEMES . '/' . $app->getTemplate() . '/' . 'wright' . '/' . 'html' . '/' . 'overrider.php';
include Overrider::getOverride('com_content.category', 'blog_children');
示例3:
<?php
/*
* You can change this to a normal override. This is just in place to help manage
* the default set of overrides we have in our template framework.
*/
$app = JFactory::getApplication();
require_once JPATH_THEMES . '/' . $app->getTemplate() . '/' . 'wright' . '/' . 'html' . '/' . 'overrider.php';
require Overrider::getOverride('mod_articles_category');
示例4: defined
<?php
/**
* @package Wright
* @subpackage HTML Layouts
*
* @copyright Copyright (C) 2005 - 2015 Joomlashack. Meritage Assets. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
$app = JFactory::getApplication();
require_once JPATH_THEMES . '/' . $app->getTemplate() . '/' . 'wright' . '/' . 'html' . '/' . 'overrider.php';
include Overrider::getOverride('lyt.joomla.content.info_block.create_date');
示例5: defined
<?php
/**
* @version $Id: default.php 22355 2011-11-07 05:11:58Z github_bot $
* @package Joomla.Site
* @subpackage mod_menu
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
$app = JFactory::getApplication();
require_once JPATH_THEMES . '/' . $app->getTemplate() . '/' . 'wright' . '/' . 'html' . '/' . 'overrider.php';
include Overrider::getOverride('com_finder.search');
示例6: defined
<?php
/**
* @package Wright
* @subpackage Overrider
*
* @copyright Copyright (C) 2005 - 2015 Joomlashack. Meritage Assets. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
$app = JFactory::getApplication();
require_once JPATH_THEMES . '/' . $app->getTemplate() . '/' . 'wright' . '/' . 'html' . '/' . 'overrider.php';
require Overrider::getOverride('mod_search');
示例7: defined
<?php
/**
* @package Wright
* @subpackage Overrider
*
* @copyright Copyright (C) 2005 - 2015 Joomlashack. Meritage Assets. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
$app = JFactory::getApplication();
require_once JPATH_THEMES . '/' . $app->getTemplate() . '/' . 'wright' . '/' . 'html' . '/' . 'overrider.php';
include Overrider::getOverride('com_contact.contact', 'default_links');
示例8: defined
<?php
/**
* @package Wright
* @subpackage Overrider
*
* @copyright Copyright (C) 2005 - 2015 Joomlashack. Meritage Assets. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
$app = JFactory::getApplication();
require_once JPATH_THEMES . '/' . $app->getTemplate() . '/' . 'wright' . '/' . 'html' . '/' . 'overrider.php';
include Overrider::getOverride('com_newsfeeds.newsfeed');
示例9: defined
<?php
/**
* @package Wright
* @subpackage Overrider
*
* @copyright Copyright (C) 2005 - 2015 Joomlashack. Meritage Assets. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// No direct access.
defined('_JEXEC') or die;
$app = JFactory::getApplication();
require_once JPATH_THEMES . '/' . $app->getTemplate() . '/' . 'wright' . '/' . 'html' . '/' . 'overrider.php';
require Overrider::getOverride('mod_menu', 'default_url');
示例10: getVersion
public static function getVersion()
{
if (!isset(self::$version)) {
jimport('joomla.version');
$version = new JVersion();
self::$version = explode('.', $version->RELEASE);
}
return self::$version;
}