function plugin_righthere_calendar($args = array())
 {
     //------------
     $defaults = array('id' => 'rhc', 'tdom' => 'rhc', 'plugin_code' => 'RHC', 'options_varname' => 'rhc_options', 'options_parameters' => array(), 'options_capability' => 'manage_options', 'options_panel_version' => '2.0.5', 'post_info_shortcode' => 'post_info', 'debug_menu' => false);
     foreach ($defaults as $property => $default) {
         $this->{$property} = isset($args[$property]) ? $args[$property] : $default;
     }
     //-----------
     $this->options = get_option($this->options_varname);
     $this->options = is_array($this->options) ? $this->options : array();
     //-----------
     $plugins_loaded_hook = '1' == $this->get_option('ignore_wordpress_standard', false, true) ? 'plugins_loaded' : 'after_setup_theme';
     add_action($plugins_loaded_hook, array(&$this, 'plugins_loaded'));
     add_action('init', array(&$this, 'init'));
     //--- taxonomy metadata support based on code by mitcho (Michael Yoshitaka Erlewine), sirzooro
     add_action('init', array(&$this, 'taxonomy_metadata_wpdbfix'));
     add_action('switch_blog', array(&$this, 'taxonomy_metadata_wpdbfix'));
     //--------
     if (is_admin()) {
         require_once RHC_PATH . 'options-panel/load.pop.php';
         rh_register_php('options-panel', RHC_PATH . 'options-panel/class.PluginOptionsPanelModule.php', $this->options_panel_version);
     }
     add_filter('rhc-ui-theme', array(&$this, 'rhc_ui_theme'), 10, 1);
     //--
     if ('1' == $this->get_option('enable_debug', false, true)) {
         $this->debug_menu = true;
     }
 }
 function plugin_calendarizeit_editor()
 {
     // Integration point #1
     // Register the bundled righthere_css module.
     require_once RHCE_PATH . 'righthere-css/load.php';
     //this file contains the same as load.pop.php from options panel, so only one needs be loaded.
     rh_register_php('righthere-css', RHCE_PATH . 'righthere-css/class.module_righthere_css.php', $this->righthere_css_version);
     rh_register_php('righthere-css-frontend', RHCE_PATH . 'righthere-css/class.righthere_css_frontend.php', $this->righthere_css_version);
     rh_register_php('rh-google-fonts-admin', RHCE_PATH . 'righthere-css/class.google_web_fonts_admin.php', '1.0.0');
     rh_register_php('rh-functions', RHCE_PATH . 'righthere-css/rh-functions.php', '1.0.0');
     rh_register_php('rh-edit-admin-bar', RHCE_PATH . 'righthere-css/class.admin_bar_editor_access.php', $this->righthere_css_version);
     rh_register_php('rhcss-options', RHCE_PATH . 'righthere-css/class.rhcss_pop_options.php', $this->righthere_css_version);
     //-----------
     $this->options = get_option($this->options_varname);
     $this->options = is_array($this->options) ? $this->options : array();
     //-----------
     add_action('plugins_loaded', array(&$this, 'plugins_loaded'), 9);
 }
 function custom_shortcode_styling($args = array())
 {
     $option_overwrite = isset($args['options']) && is_array($args['options']) ? $args['options'] : array();
     $this->options = get_option('sws_options');
     if (is_array($option_overwrite) && count($option_overwrite) > 0) {
         foreach ($option_overwrite as $field => $value) {
             $this->options[$field] = $value;
         }
     }
     //------------
     $defaults = array('plugin_code' => 'SWS', 'show_ui' => true, 'options_parameters' => array(), 'editor_parameters' => $this->get_editor_parameters(), 'options_panel_version' => '2.6.7', 'load_footer_resources' => true, 'ajax_content_support' => true, 'autoupdate' => true);
     foreach ($defaults as $property => $default) {
         $this->{$property} = isset($args[$property]) ? $args[$property] : $default;
     }
     //-----------
     $this->ajax_content_support = '1' == $this->get_option('ajax_content_support', '0', true) ? true : false;
     //-----------
     $this->options_parameters = $this->get_options_parameters();
     //-----------
     add_action('plugins_loaded', array(&$this, 'plugins_loaded'));
     add_action('init', array(&$this, 'init'));
     add_action('admin_init', array(&$this, 'handle_multisite_subsite_bundle'));
     if (isset($this->options['disable_autop']) && $this->options['disable_autop'] == 1) {
         remove_filter('the_content', 'wpautop');
     }
     if (isset($this->options['increase_pcre']) && $this->options['increase_pcre'] == 1) {
         try {
             if (@ini_get('pcre.backtrack_limit') < 10000001) {
                 @ini_set('pcre.backtrack_limit', 10000001);
             }
             if (@ini_get('pcre.recursion_limit') < 20000002) {
                 @ini_set('pcre.recursion_limit', 20000002);
             }
         } catch (Exception $e) {
         }
     }
     if (is_admin()) {
         require_once WPCSS_PATH . 'options-panel/load.pop.php';
         rh_register_php('options-panel', WPCSS_PATH . 'options-panel/class.PluginOptionsPanelModule.php', $this->options_panel_version);
         rh_register_php('rh-functions', WPCSS_PATH . 'options-panel/rh-functions.php', $this->options_panel_version);
     }
 }
 function handle_addons_load()
 {
     //-- nexgt gen gallery compat fix.
     if (defined('NGG_PLUGIN')) {
         require_once $this->pop_path . 'load.pop.php';
         rh_register_php('options-panel', WLB_PATH . 'options-panel/class.PluginOptionsPanelModule.php', $this->options_panel_version);
     }
     //---
     $upload_dir = wp_upload_dir();
     $addons_path = $upload_dir['basedir'] . '/' . $this->resources_path . '/';
     $addons_url = $upload_dir['baseurl'] . '/' . $this->resources_path . '/';
     $addons = $this->get_option('addons', array(), true);
     if (is_array($addons) && !empty($addons)) {
         define('WLB_ADDON_PATH', $addons_path);
         define('WLB_ADDON_URL', $addons_url);
         foreach ($addons as $addon) {
             try {
                 @(include_once $addons_path . $addon);
             } catch (Exception $e) {
                 $current = get_option($this->options_varname, array());
                 $current = is_array($current) ? $current : array();
                 $current['addons'] = is_array($current['addons']) ? $current['addons'] : array();
                 //----
                 $current['addons'] = array_diff($current['addons'], array($addon));
                 update_option($this->options_varname, $current);
             }
         }
     }
 }
 function handle_addons_load()
 {
     //-- nexgt gen gallery compat fix.
     if (defined('NGG_PLUGIN')) {
         rh_register_php('options-panel', EASY_TRANSLATION_MANAGER_OPTIONPANEL . 'options-panel/class.PluginOptionsPanelModule.php', '2.3.2');
     }
     //---
     $upload_dir = wp_upload_dir();
     $addons_path = $upload_dir['basedir'] . '/easy-translation-manager/';
     $addons_url = $upload_dir['baseurl'] . '/easy-translation-manager/';
     $addons = etm_tools_retrive_options('addons');
     if (is_array($addons) && !empty($addons)) {
         define('ETM_ADDON_PATH', $addons_path);
         define('ETM_ADDON_URL', $addons_url);
         foreach ($addons as $addon) {
             try {
                 @(include_once $addons_path . $addon);
             } catch (Exception $e) {
                 $current = etm_tools_retrive_options($this->options_varname);
                 $current = is_array($current) ? $current : array();
                 $current['addons'] = is_array($current['addons']) ? $current['addons'] : array();
                 //----
                 $current['addons'] = array_diff($current['addons'], array($addon));
                 update_option($this->options_varname, $current);
             }
         }
     }
 }