$theme = wp_get_theme(); $theme_name = $theme->get('Name'); $footer_default = 'Modify this text from "appearance => customise"'; $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
$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_panel($theme_name . ': Header Settings', 215, 'All of the controls in this section directly relate to the header and logos of ' . $theme_name); $ebor_options->add_panel($theme_name . ': Blog Settings', 225, 'All of the controls in this section directly relate to the control of blog items within ' . $theme_name); $ebor_options->add_panel($theme_name . ': Team Settings', 235, 'All of the controls in this section directly relate to the control of team items within ' . $theme_name); $ebor_options->add_panel($theme_name . ': Footer Settings', 290, 'All of the controls in this section directly relate to the control of the footer within ' . $theme_name); /** * Sections * * add_section($name, $title, $priority, $panel, $description) * * @since 1.0.0 * @author tommusrhodus */ //Demo Data $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 />'); //Styling Sections $ebor_options->add_section('fonts_section', 'Fonts', 5, $theme_name . ': Styling Settings', $fonts_description); $ebor_options->add_section('colours_section', 'Colours', 10, $theme_name . ': Styling Settings'); $ebor_options->add_section('spacing_section', 'Spacing', 15, $theme_name . ': Styling Settings'); $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'); //Blog Sections $ebor_options->add_section('blog_settings', 'Blog Settings', 1, $theme_name . ': Blog Settings'); $ebor_options->add_section('blog_text_section', 'Blog Texts', 5, $theme_name . ': Blog Settings'); //Header Settings $ebor_options->add_section('header_layout_section', 'Header Layout', 5, $theme_name . ': Header Settings', 'This setting controls the theme header site-wide. If you need to you can override this setting on specific posts and pages from within that posts edit screen.'); $ebor_options->add_section('logo_settings_section', 'Logo Settings', 10, $theme_name . ': Header Settings'); $ebor_options->add_section('header_social_settings_section', 'Header Icons Settings', 40, $theme_name . ': Header Settings', 'These social icons are only shown in certain header layouts.'); //Footer Settings $ebor_options->add_section('subfooter_settings_section', 'Sub-Footer Settings', 30, $theme_name . ': Footer Settings');