function mce_buttons($buttons) { if (count($this->buttons) && Conferencer_Shortcode::$first_button) { $buttons[] = "|"; Conferencer_Shortcode::$first_button = false; } foreach ($this->buttons as $button) { $buttons[] = 'conferencer_' . $button; } return $buttons; }
function prep_options() { parent::prep_options(); if (!in_array($this->options['column_type'], array('track', 'room'))) { $this->options['column_type'] = false; } if ($this->options['show_empty_cells'] != null) { $this->options['show_empty_rows'] = $this->options['show_empty_cells']; $this->options['show_empty_columns'] = $this->options['show_empty_cells']; } }
function prep_options() { parent::prep_options(); if (!$this->options['post_id'] && isset($GLOBALS['post'])) { $this->options['post_id'] = $GLOBALS['post']->ID; } if ($this->options['link_all'] === false) { $this->options['link_title'] = false; $this->options['link_speaker'] = false; $this->options['link_company'] = false; } }
function save() { if (isset($_POST['conferencer_cache_settings']) && check_admin_referer('nonce_conferencer_cache')) { if (isset($_POST['conferencer_disable_cache'])) { update_option('conferencer_caching', false); Conferencer::add_admin_notice("Caching disabled."); } else { if (isset($_POST['conferencer_enable_cache'])) { update_option('conferencer_caching', true); Conferencer::add_admin_notice("Caching enabled."); } else { if (isset($_POST['conferencer_clear_cache'])) { Conferencer_Shortcode::clear_cache(); Conferencer::add_admin_notice("Cach cleared."); } } } header("Location: " . $_SERVER['REQUEST_URI']); die; } }