options = $options; add_action('admin_menu', array(&$this, 'ar_add_menu')); // Action that triggers function below } public function ar_add_menu() { add_menu_page(__(MENU_TITLE), __(MENU_TITLE), 'administrator', 'ar_options' . MENU_SLUG, array(&$this, 'ar_display_page'), MAIN_PLUGIN_DIR . 'images/icon.png'); } /* Function That Generates Main Content */ public function ar_display_page() { ?> save_options(); ?>

Plugin:

Author:

Version:

options as $option): ?>

options as $item) { if ($item['under_section'] == $under_section) { switch ($item['type']) { case "text": $this->display_text($item); break; case "color": $this->display_color($item); break; case "small_heading": $this->display_small_heading($item); break; case "textarea": $this->display_textarea($item); break; case "image": $this->display_image($item); break; case "checkbox": $this->display_checkbox($item); break; case "checkbox_image": $this->display_checkbox_image($item); break; case "radio": $this->display_radio($item); break; case "toggle_div_start": $this->display_toggle_div_start($item); break; case "toggle_div_end": $this->display_toggle_div_end(); break; case "radio_image": $this->display_radio_image($item); break; case "select": $this->display_select($item); break; } } } ?>
"text" */ public function display_text($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> class="separator">
class="ar-fullwidth" id="" name="" type="text" value="" />

"color") */ public function display_color($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> class="separator">
class="ar-color-picker" id="" name="" type="text" value="" />

"image") */ public function display_image($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> class="separator">
class="ar-fullwidth" type="text" value="" name="" /> Upload image Remove image

"textarea") */ public function display_textarea($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> class="separator">
id="" name="" cols="70" rows="8">

"select") */ public function display_select($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> class="separator">

"checkbox") */ public function display_checkbox($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> class="separator">

"checkbox_image") */ public function display_checkbox_image($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> class="separator">

"radio") */ public function display_radio($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> class="separator">

"radio_image") */ public function display_radio_image($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> class="separator">

class="separator">

"toggle_div_start" */ public function display_toggle_div_start($value) { $rel = ""; if ($value['display_checkbox_id']) $rel = " rel=".$value['display_checkbox_id']; else $rel = ""; ?> > "toggle_div_end" */ public function display_toggle_div_end() { ?> options as $value) { $the_type = $value['type']; if ($the_type == "heading" || $the_type == "section" || $the_type == "small_heading") continue; else if ($the_type != "checkbox" && $the_type != "checkbox_image") { update_option($value['id'], $_POST[$value['id']]); } else if ($the_type == "checkbox" || $the_type == "checkbox_image") { $i = 0; foreach ($value['options'] as $box) { $curr_id = $value['id'][$i]; if (isset($_POST[$curr_id])) update_option($curr_id, 'true'); else update_option($curr_id, 'false'); $i++; } } } } } } } ?>