Exemple #1
0
 $social_options = ebor_get_icons();
 $portfolio_layouts = array_flip(ebor_get_portfolio_layouts());
 /**
  * Default stuff
  * 
  * Each of these is a default option that appears in each theme, demo data, favicons and a custom css input
  * 
  * @since 1.0.0
  * @author tommusrhodus
  */
 $ebor_options->add_panel($theme_name . ': Demo Data', 5, '');
 $ebor_options->add_panel($theme_name . ': Styling Settings', 205, 'All of the controls in this section directly relate to the styling page of ' . $theme_name);
 $ebor_options->add_section('demo_data_section', 'Import Demo Data', 10, $theme_name . ': Demo Data', '<strong>Please read this before importing demo data via this control:</strong><br /><br />The demo data this will install includes images from my demo site with <strong>heavy blurring applied</strong> this is due to licensing restrictions. Simply replace these images with your own.<br /><br />Note that this process can take up to 15mins on slower servers, go make a cup of tea. If you havn\'t had a notification in 30mins, use the fallback method outlined in the written documentation.<br /><br />');
 $ebor_options->add_section('favicon_section', 'Favicons', 30, $theme_name . ': Styling Settings');
 $ebor_options->add_section('custom_css_section', 'Custom CSS', 40, $theme_name . ': Styling Settings');
 $ebor_options->add_setting('image', 'custom_favicon', 'Custom Favicon Upload (Use .png)', 'favicon_section', '', 10);
 $ebor_options->add_setting('image', 'mobile_favicon', 'Mobile Favicon Upload (Use .png)', 'favicon_section', '', 15);
 $ebor_options->add_setting('image', '72_favicon', '72x72px Favicon Upload (Use .png)', 'favicon_section', '', 20);
 $ebor_options->add_setting('image', '114_favicon', '114x114px Favicon Upload (Use .png)', 'favicon_section', '', 25);
 $ebor_options->add_setting('image', '144_favicon', '144x144px Favicon Upload (Use .png)', 'favicon_section', '', 30);
 $ebor_options->add_setting('demo_import', 'demo_import', 'Import Demo Data', 'demo_data_section', '', 10);
 $ebor_options->add_setting('textarea', 'custom_css', 'Custom CSS', 'custom_css_section', '', 30);
 /**
  * Panels
  * 
  * add_panel($name, $priority, $description)
  * 
  * @since 1.0.0
  * @author tommusrhodus
  */
 $ebor_options->add_panel($theme_name . ': Header Settings', 215, 'All of the controls in this section directly relate to the header and logos of ' . $theme_name);
 //Footer Settings
 $ebor_options->add_section('subfooter_settings_section', 'Sub-Footer Settings', 30, $theme_name . ': Footer Settings');
 //Team Settings
 $ebor_options->add_section('team_text_section', 'Team Texts', 5, $theme_name . ': Team Settings');
 $ebor_options->add_section('team_settings_section', 'Team Layout Settings', 10, $theme_name . ': Team Settings');
 /**
  * Settings (The Actual Options)
  * Repeated settings are stepped using a for() loop and counter
  * 
  * add_setting($type, $option, $title, $section, $default, $priority, $select_options)
  * 
  * @since 1.0.0
  * @author tommusrhodus
  */
 //Favicons
 $ebor_options->add_setting('image', 'custom_favicon', 'Custom Favicon Upload (Use .png)', 'favicon_section', '', 10);
 $ebor_options->add_setting('image', 'mobile_favicon', 'Mobile Favicon Upload (Use .png)', 'favicon_section', '', 15);
 $ebor_options->add_setting('image', '72_favicon', '72x72px Favicon Upload (Use .png)', 'favicon_section', '', 20);
 $ebor_options->add_setting('image', '114_favicon', '114x114px Favicon Upload (Use .png)', 'favicon_section', '', 25);
 $ebor_options->add_setting('image', '144_favicon', '144x144px Favicon Upload (Use .png)', 'favicon_section', '', 30);
 //Demo Data
 $ebor_options->add_setting('demo_import', 'demo_import', 'Import Demo Data', 'demo_data_section', '', 10);
 //Fonts
 $ebor_options->add_setting('input', 'body_font', 'Body Font', 'fonts_section', 'Open Sans', 10);
 $ebor_options->add_setting('textarea', 'body_font_url', 'Body Font URL Parameter', 'fonts_section', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,400,300,600,700', 15);
 $ebor_options->add_setting('input', 'heading_font', 'Heading Font', 'fonts_section', 'Open Sans', 20);
 $ebor_options->add_setting('textarea', 'heading_font_url', 'Heading Font URL Parameter', 'fonts_section', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,400,300,600,700', 25);
 //Colour Options
 $ebor_options->add_setting('color', 'color-primary', 'Primary Colour', 'colours_section', '#0072bc', 5);
 $ebor_options->add_setting('color', 'color-muted', 'Muted Background Colour', 'colours_section', '#f5f5f5', 20);
 $ebor_options->add_setting('color', 'color-text', 'Text Colour', 'colours_section', '#777777', 30);