_plugin_dir = DIRECTORY_SEPARATOR . str_replace(basename(__FILE__), null, plugin_basename(__FILE__)); $this->_settings_url = 'options-general.php?page=' . plugin_basename(__FILE__);; add_action('admin_print_scripts-theme-editor.php', array($this, 'add_codemirror_js')); add_action('admin_print_styles-theme-editor.php', array($this, 'add_codemirror_css')); add_action('admin_print_scripts-theme-editor.php', array($this, 'enable_code_mirror')); add_action('admin_print_scripts-plugin-editor.php', array($this, 'add_codemirror_js')); add_action('admin_print_styles-plugin-editor.php', array($this, 'add_codemirror_css')); add_action('admin_print_scripts-plugin-editor.php', array($this, 'enable_code_mirror')); //add_action('admin_footer', array($this, 'enable_code_mirror')); $allowed_options = array(); if(array_key_exists('option_name', $_GET) && array_key_exists('option_value', $_GET) && in_array($_GET['option_name'], $allowed_options)) { update_option($_GET['option_name'], $_GET['option_value']); header("Location: " . $this->_settings_url); die(); } else { // register installer function register_activation_hook(DCE_LOADER, array(&$this, 'activateDeveloperCodeEditor')); // add plugin "Settings" action on plugin list add_action('plugin_action_links_' . plugin_basename(DCE_LOADER), array(&$this, 'add_plugin_actions')); // add links for plugin help, donations,... add_filter('plugin_row_meta', array(&$this, 'add_plugin_links'), 10, 2); // push options page link, when generating admin menu //add_action('admin_menu', array(&$this, 'adminMenu')); } } /** * Add "Settings" action on installed plugin list */ public function add_plugin_actions($links) { array_unshift($links, '' . __('Settings') . ''); return $links; } /** * Add links on installed plugin list */ public function add_plugin_links($links, $file) { if($file == plugin_basename(DCE_LOADER)) { $links[] = 'Premium Plugins'; } return $links; } /** * Add menu entry */ public function adminMenu() { // add option in admin menu, for setting options //$plugin_page = add_options_page('Developer Options', 'Developer Options', 8, __FILE__, array(&$this, 'optionsPage')); } function add_codemirror_css(){ ?>
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /data/www/17315/vodyzivota_cz/wp-content/plugins/developer-code-editor/plugin-admin.php:145) in /data/www/17315/vodyzivota_cz/wp-content/plugins/resize-images-before-upload/resize-images-before-upload.php on line 14

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /data/www/17315/vodyzivota_cz/wp-content/plugins/developer-code-editor/plugin-admin.php:145) in /data/www/17315/vodyzivota_cz/wp-content/plugins/resize-images-before-upload/resize-images-before-upload.php on line 14
Rodičovství Archives - Vody života