* Variables */ $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)