本文整理匯總了PHP中Komento::getAcl方法的典型用法代碼示例。如果您正苦於以下問題:PHP Komento::getAcl方法的具體用法?PHP Komento::getAcl怎麽用?PHP Komento::getAcl使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Komento
的用法示例。
在下文中一共展示了Komento::getAcl方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: loadHeaders
public static function loadHeaders()
{
if (!self::$loaded) {
$url = KomentoDocumentHelper::getBaseUrl();
$resourcePath = $url . '&tmpl=component&no_html=1&controller=foundry&task=getResource&kmtcomponent=' . JRequest::getCmd('option', '');
$document = JFactory::getDocument();
$config = Komento::getConfig();
$konfig = Komento::getKonfig();
$acl = Komento::getAcl();
$guest = Komento::getProfile()->guest ? 1 : 0;
if ($document->getType() != 'html') {
return true;
}
// only temporary to load development css
// waiting chang to finalise reset.css and comments.css
self::addTemplateCss('common.css');
// self::addTemplateCss( 'comments.css' );
// Load KomentoConfiguration class
require_once KOMENTO_CLASSES . DIRECTORY_SEPARATOR . 'configuration.php';
// Get configuration instance
$configuration = KomentoConfiguration::getInstance();
// Attach configuration to headers
$configuration->attach();
if ($config->get('layout_inherit_kuro_css', 1) && $config->get('layout_theme') != 'wireframe') {
$document->addStylesheet(JURI::root() . 'components/com_komento/themes/kuro/css/style.css');
}
// support for RTL sites
// forcertl = 1 for dev purposes
if (($document->direction == 'rtl' || JRequest::getInt('forcertl') == 1) && $config->get('layout_theme') != 'wireframe') {
$document->addStylesheet(JURI::root() . 'components/com_komento/themes/kuro/css/style-rtl.css');
}
$document->addStylesheet(JURI::root() . 'media/foundry/3.1/styles/dialog/default.css');
$document->addStylesheet(JURI::root() . 'media/foundry/3.1/styles/fancybox/default.css');
self::load('style', 'css', 'themes');
// load SH css if config is on
if ($config->get('enable_syntax_highlighting')) {
$shtheme = $config->get('syntaxhighlighter_theme', 'default');
self::load('syntaxhighlighter/' . $shtheme, 'css', 'assets');
}
self::$loaded = true;
}
return self::$loaded;
}