本文整理汇总了PHP中plugins::getTplHeaders方法的典型用法代码示例。如果您正苦于以下问题:PHP plugins::getTplHeaders方法的具体用法?PHP plugins::getTplHeaders怎么用?PHP plugins::getTplHeaders使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类plugins
的用法示例。
在下文中一共展示了plugins::getTplHeaders方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
/**
* Main constructor
*
* @param plugins $plugins Galette's plugins
* @param I18n $i18n Galette's I18n
* @param Preferences $preferences Galette's preferences
* @param Logo $logo Galette's logo
* @param Login $login Galette's login
* @param array $session Galette's session
*/
function __construct($plugins, $i18n, $preferences, $logo, $login, $session)
{
parent::__construct();
//paths configuration
$this->setTemplateDir(GALETTE_ROOT . GALETTE_TPL_SUBDIR);
$this->setCompileDir(GALETTE_COMPILE_DIR);
$this->setConfigDir(GALETTE_CONFIG_PATH);
$this->setCacheDir(GALETTE_CACHE_DIR);
/*if ( GALETTE_MODE !== 'DEV' ) {
//enable caching
$this->caching = \Smarty::CACHING_LIFETIME_CURRENT;
$this->setCompileCheck(false);
}*/
$this->addPluginsDir(GALETTE_ROOT . 'includes/smarty_plugins');
$this->assign('login', $login);
$this->assign('logo', $logo);
$this->assign('template_subdir', GALETTE_BASE_PATH . GALETTE_TPL_SUBDIR);
foreach ($plugins->getTplAssignments() as $k => $v) {
$this->assign($k, $v);
}
$this->assign('tpl', $this);
$this->assign('headers', $plugins->getTplHeaders());
$this->assign('plugin_actions', $plugins->getTplAdhActions());
$this->assign('plugin_batch_actions', $plugins->getTplAdhBatchActions());
$this->assign('plugin_detailled_actions', $plugins->getTplAdhDetailledActions());
$this->assign('jquery_dir', GALETTE_BASE_PATH . 'includes/jquery/');
$this->assign('jquery_version', JQUERY_VERSION);
$this->assign('jquery_migrate_version', JQUERY_MIGRATE_VERSION);
$this->assign('jquery_ui_version', JQUERY_UI_VERSION);
$this->assign('jquery_markitup_version', JQUERY_MARKITUP_VERSION);
$this->assign('jquery_jqplot_version', JQUERY_JQPLOT_VERSION);
$this->assign('scripts_dir', GALETTE_BASE_PATH . 'includes/');
$this->assign('PAGENAME', basename($_SERVER['SCRIPT_NAME']));
$this->assign('galette_base_path', GALETTE_BASE_PATH);
$this->assign('GALETTE_VERSION', GALETTE_VERSION);
$this->assign('GALETTE_MODE', GALETTE_MODE);
/** galette_lang should be removed and languages used instead */
$this->assign('galette_lang', $i18n->getAbbrev());
$this->assign('languages', $i18n->getList());
$this->assign('plugins', $plugins);
$this->assign('preferences', $preferences);
$this->assign('pref_slogan', $preferences->pref_slogan);
$this->assign('pref_theme', $preferences->pref_theme);
$this->assign('pref_editor_enabled', $preferences->pref_editor_enabled);
$this->assign('pref_mail_method', $preferences->pref_mail_method);
$this->assign('existing_mailing', isset($session['mailing']));
$this->assign('require_tabs', null);
$this->assign('require_cookie', null);
$this->assign('contentcls', null);
$this->assign('require_tabs', null);
$this->assign('require_cookie', false);
$this->assign('additionnal_html_class', null);
$this->assign('require_calendar', null);
$this->assign('head_redirect', null);
$this->assign('error_detected', null);
$this->assign('warning_detected', null);
$this->assign('success_detected', null);
$this->assign('color_picker', null);
$this->assign('require_sorter', null);
$this->assign('require_dialog', null);
$this->assign('require_tree', null);
$this->assign('html_editor', null);
$this->assign('require_charts', null);
}