Make your site outlines work the same across all browsers!
'; } function settings_outlines_show(){ $this->radio('outlines_show','do you to style your website form elements focus pseudo class'); } function settings_outlines_admin(){ $this->radio('outlines_admin','do you to style your admin panels form elements focus pseudo class'); } function settings_outlines_width(){ $this->textbox('outlines_width','width of your outline in pixels'); } function settings_outlines_offset(){ $this->textbox('outlines_offset','offset of your outline in pixels !!! CSS3 ONLY !!!'); } function settings_outlines_color(){ $this->colorpicker('outlines_color','color of your outline'); } function settings_outlines_style(){ $this->style_select('outlines_style','style of your outline'); } function radio($name,$hint) { $value = get_option($name); echo 'Yes '; } else { echo ' />'; } echo 'No '; } else { echo ' />'; } echo '('.$hint.')'; } function textbox($name,$hint) { echo ''; echo '('.$hint.')'; } function colorpicker($name,$hint) { echo ''; echo '('.$hint.')'; } function style_select($name,$hint) { $value = get_option($name); $styles = array('dotted','dashed','solid','double','groove','ridge','inset','outset'); echo ''; echo '('.$hint.')'; } function on_activation(){ $settings = $this->settings_list(); foreach ($settings as $setting) { add_option($setting['name'], $setting['value']); } } function on_deactivation(){ $settings = $this->settings_list(); foreach ($settings as $setting) { delete_option($setting['name']); } } function settings_list() { $settings = array( array( 'display' => 'Add Styles to Website', 'name' => 'outlines_show', 'value' => '0', ), array( 'display' => 'Add Styles to Admin', 'name' => 'outlines_admin', 'value' => '0', ), array( 'display' => 'Outline Width', 'name' => 'outlines_width', 'value' => '1', ), array( 'display' => 'Outline Offset', 'name' => 'outlines_offset', 'value' => '0', ), array( 'display' => 'Outline Color', 'name' => 'outlines_color', 'value' => '#1E90FF', ), array( 'display' => 'Outline Style', 'name' => 'outlines_style', 'value' => 'solid', ), ); return $settings; } function plugin_data($key){ //[Name],[PluginURI],[Version],[Description] ,[Author],[AuthorURI],[TextDomain],[DomainPath],[Network],[Title],[AuthorName] $data = get_plugin_data(__FILE__); return $data[$key]; } function settings_link($links) { $support_link = 'Support'; array_unshift($links, $support_link); $settings_link = 'Settings'; array_unshift($links, $settings_link); return $links; } }