当前位置: 首页>>代码示例>>PHP>>正文


PHP Plugin::getAllSettings方法代码示例

本文整理汇总了PHP中Plugin::getAllSettings方法的典型用法代码示例。如果您正苦于以下问题:PHP Plugin::getAllSettings方法的具体用法?PHP Plugin::getAllSettings怎么用?PHP Plugin::getAllSettings使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Plugin的用法示例。


在下文中一共展示了Plugin::getAllSettings方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: themer_customize_admin_theme

 function themer_customize_admin_theme($path)
 {
     $admin_theme = Setting::get("theme");
     $settings = Plugin::getAllSettings("themer");
     if ($admin_theme == "wordpress-3.8") {
         echo new View(THEMER . DS . "views" . DS . "head", array("color" => $settings["color"], "sidebar_width" => $settings["sidebar_width"]));
     }
     return $path;
 }
开发者ID:svanlaere,项目名称:wolfcms-wordpress-admintheme,代码行数:9,代码来源:index.php

示例2: settings

 function settings()
 {
     $settings = Plugin::getAllSettings('tinymce');
     if (!$settings) {
         Flash::set('error', 'TinyMCE - ' . __('unable to retrieve plugin settings.'));
         return;
     }
     $this->display('tinymce/views/settings', $settings);
 }
开发者ID:nowotny,项目名称:tinymce,代码行数:9,代码来源:TinymceController.php

示例3: __construct

 public function __construct()
 {
     $this->cookie = AuthUser::COOKIE_KEY;
     $this->session = AuthUser::SESSION_KEY;
     $this->fields = new pawUserFields();
     $this->blacklist = new pawBlacklist();
     $this->permissions = new pawPermissions();
     $config = Plugin::getAllSettings("paw_users");
     $this->config = paw_unserializer($config, true);
 }
开发者ID:pawedWolf,项目名称:wolfcms-pawusers,代码行数:10,代码来源:class.users.php

示例4: __construct

 public function __construct()
 {
     $this->theme = Setting::get("theme");
     $this->settings = Plugin::getAllSettings("themer");
     // This allows us to check if we're being called in the front or the back.
     if (defined("CMS_BACKEND")) {
         $this->setLayout("backend");
         $this->assignToLayout("sidebar", new View("../../plugins/themer/views/sidebar"));
     }
 }
开发者ID:pawedWolf,项目名称:wolfcms-fox-admintheme,代码行数:10,代码来源:ThemerController.php

示例5: settings

 function settings()
 {
     /** You can do this...
         $tmp = Plugin::getAllSettings('skeleton');
         $settings = array('my_setting1' => $tmp['setting1'],
                           'setting2' => $tmp['setting2'],
                           'a_setting3' => $tmp['setting3']
                          );
         $this->display('comment/views/settings', $settings);
          *
          * Or even this...
          */
     $this->display('skeleton/views/settings', Plugin::getAllSettings('skeleton'));
 }
开发者ID:julpi,项目名称:FreshCMS,代码行数:14,代码来源:SkeletonController.php

示例6: settings

 public function settings()
 {
     if (!$this->_isInternal()) {
         page_not_found();
     }
     $settings = Plugin::getAllSettings('image');
     if (!$settings) {
         Flash::setNow('error', 'Image - ' . __('unable to retrieve plugin settings.'));
     }
     if (!isset($settings['path'])) {
         $settings['path'] = '';
     }
     $this->display('image/views/settings', $settings);
 }
开发者ID:sindotnet,项目名称:canareef,代码行数:14,代码来源:ImageController.php

示例7: __construct

 public function __construct($id)
 {
     $settings = Plugin::getAllSettings('ssp');
     $this->id = $id;
     $sql = "SELECT * FROM ssp_images WHERE id=" . $id;
     $query = Record::getConnection()->query($sql);
     $image = $query->fetch();
     foreach ($image as $k => $v) {
         $this->{$k} = $v;
     }
     $this->src = URL_PUBLIC . $settings['path'] . DS . "albums" . DS . "album-" . $this->aid . DS . "lg" . DS . $this->src;
     if (!(strpos('http://', $this->link) > -1) && $this->link[0] !== '/' && isset($this->link)) {
         $this->link = 'http://' . $this->link;
     }
 }
开发者ID:ariksavage,项目名称:wolf_ssp,代码行数:15,代码来源:SSP_Image.php

示例8: filemanager

 public function filemanager($params)
 {
     $settings = Plugin::getAllSettings('ckeditor') or array();
     // Set translation if available
     $settings['lang'] = $this->_filemanager_lang();
     // Set defaults
     if (empty($settings)) {
         $settings['filemanager_view'] = 'grid';
         $settings['filemanager_browse_only'] = false;
         $settings['filemanager_base'] = rtrim(URL_PUBLIC, '/') . '/public';
         $settings['filemanager_thumbs'] = true;
         $settings['filemanager_images'] = array('gif', 'jpg', 'jpeg', 'png');
     }
     header("Content-type: text/html; charset=utf8");
     $this->display('fm_index', array('settings' => $settings));
 }
开发者ID:sindotnet,项目名称:dashhotel,代码行数:16,代码来源:CkeditorController.php

示例9: filemanager_config

function filemanager_config()
{
    $settings = Plugin::getAllSettings('ckeditor');
    $culture = filemanager_lang();
    // Set all defaults
    $config = array('culture' => $culture, 'doc_root' => CMS_ROOT, 'plugin' => null, 'date' => 'd M Y H:i', 'icons' => array('path' => 'images/fileicons/', 'directory' => '_Open.png', 'default' => 'default.png'), 'unallowed_files' => array('.htaccess'), 'unallowed_dirs' => array('_thumbs', '.CDN_ACCESS_LOGS', 'cloudservers'), 'upload' => array('overwrite' => true, 'imagesonly' => false, 'size' => false), 'images' => array('gif', 'jpg', 'jpeg', 'png'));
    // database settings
    if ($settings) {
        $config['date'] = $settings['filemanager_dateformat'];
        $config['images'] = unserialize($settings['filemanager_images']);
        $config['upload']['overwrite'] = (bool) $settings['filemanager_upload_overwrite'];
        $config['upload']['imagesonly'] = (bool) $settings['filemanager_upload_images_only'];
        $config['upload']['size'] = $settings['filemanager_upload_size'] == '0' || empty($settings['filemanager_upload_size']) ? false : (int) $settings['filemanager_upload_size'];
    }
    return $config;
}
开发者ID:sindotnet,项目名称:cona,代码行数:16,代码来源:filemanager.config.php

示例10: themer_customize_admin_theme

 function themer_customize_admin_theme($path)
 {
     $theme = Setting::get("theme");
     $settings = Plugin::getAllSettings("themer");
     if ($theme == "wordpress-3.8") {
         $settings = unserialize($settings["wordpress-3.8"]);
     } else {
         if ($theme == "wint") {
             $settings = unserialize($settings["wint"]);
         } else {
             if ($theme == "fox") {
                 $settings = unserialize($settings["fox"]);
             }
         }
     }
     $settings = array_merge(array("theme" => $theme), $settings);
     echo new View(THEMER . DS . "views" . DS . "head", $settings);
     return $path;
 }
开发者ID:pawedWolf,项目名称:wolfcms-fox-admintheme,代码行数:19,代码来源:index.php

示例11: __construct

 public function __construct()
 {
     AuthUser::load();
     if (!AuthUser::isLoggedIn()) {
         redirect(get_url("login"));
         die;
     }
     // GET SETTINGS
     $settings = array_merge(array("grid-size" => 3, "widget-position" => serialize(array("events" => array("part" => 1, "order" => 1), "rss_reader" => array("part" => 2, "order" => 1)))), Plugin::getAllSettings("dashboard"));
     // UNSERIALIZE SETTINGS
     foreach ($settings as $key => $value) {
         if (is_string($value)) {
             if (@unserialize($value) !== false) {
                 $settings[$key] = unserialize($value);
             }
         }
     }
     $this->settings = $settings;
     // OBSERVER
     DashboardWidgets::init($settings["widget-position"]);
     Observer::observe("view_backend_layout_head", "DashboardController::loadFiles");
 }
开发者ID:pawedWolf,项目名称:wolfcms-dashboard,代码行数:22,代码来源:DashboardController.php

示例12: __settings

	/**
	 * Puts all settings into $this->settings
	 */
	private function __settings() {
		if (!$this->settings = Plugin::getAllSettings('banner')) {
			Flash::set('error', 'Banners - '.__('unable to retrieve plugin settings.'));
			redirect(get_url('setting'));
			return;
		}
	}//*/
开发者ID:realslacker,项目名称:Banner-Plugin,代码行数:10,代码来源:BannerController.php

示例13: __load_settings

	private function __load_settings() {
		if (!$this->settings = Plugin::getAllSettings('facts')) {
			Flash::set('error', __('Unable to retrieve plugin settings.'));
			redirect(get_url('setting'));
			return;
		}
	}//*/
开发者ID:realslacker,项目名称:Facts-Plugin,代码行数:7,代码来源:FactsController.php

示例14: defined

<?php

defined('IN_CMS') || exit;
$images = serialize(array('gif', 'jpg', 'jpeg', 'png'));
$settings = array('version' => '2.1.0', 'filemanager_enabled' => '1', 'filemanager_base' => 'public/images', 'filemanager_view' => 'grid', 'filemanager_images' => $images, 'filemanager_dateformat' => 'd M Y H:i', 'filemanager_browse_only' => '0', 'filemanager_upload_overwrite' => '0', 'filemanager_upload_images_only' => '0', 'filemanager_upload_size' => '0');
$old = Plugin::getAllSettings('ckeditor');
//Other ckeditor filter
if (isset($old['fileBrowserRootUri'])) {
    $settings['filemanager_base'] = trim($old['fileBrowserRootUri'], '/');
} else {
    if (isset($old['filemanager_base'])) {
        $settings = $old;
        $settings['version'] = '2.1.0';
    }
}
// Remove all settings from db
Plugin::deleteAllSettings('ckeditor');
// Insert the new ones
if (Plugin::setAllSettings($settings, 'ckeditor')) {
    Flash::setNow('success', __('CKEditor - plugin settings initialized.'));
}
if (!defined('USE_MOD_REWRITE') || !USE_MOD_REWRITE) {
    Flash::set('info', __('FileManager will not ne ebabled if "MOD_REWRITE" is set to false'));
} else {
    Flash::setNow('error', __('CKEditor - unable to store plugin settings!'));
}
开发者ID:sindotnet,项目名称:cona,代码行数:26,代码来源:enable.php

示例15: settings

 public function settings()
 {
     $this->display('easysnippet/views/settings', Plugin::getAllSettings('easysnippet'));
 }
开发者ID:svanlaere,项目名称:easysnippet,代码行数:4,代码来源:EasysnippetController.php


注:本文中的Plugin::getAllSettings方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。