<?php /** * Build theme options * Uses the Ebor_Options class found in the ebor-framework plugin * Panels are WP 4.0+!!! * * @since 1.0.0 * @author tommusrhodus */ if (class_exists('Ebor_Options')) { $ebor_options = new Ebor_Options(); /** * 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 />');
function ebor_theme_customize($wp_customize) { $wp_customize->remove_section('colors'); } add_action('customize_register', 'ebor_theme_customize', 99999); /** * Build theme options * Uses the Ebor_Options class found in the ebor-framework plugin * Panels are WP 4.0+!!! * * @since 1.0.0 * @author tommusrhodus */ if (class_exists('Ebor_Options')) { $ebor_options = new Ebor_Options(); /** * Variables */ $theme = wp_get_theme(); $theme_name = $theme->get('Name'); $social_options = ebor_get_social_icons(); $footer_default = 'Copyright 2014 TommusRhodus'; $subtitle_default = 'Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta.'; $team_layouts = array('team-tiny' => 'Tiny (4 Columns)', 'team-small' => 'Small (3 Columns)', 'team-large' => 'Large (2 Columns)'); $fonts_description = 'Fonts: ' . $theme_name . ' uses Google Fonts, <a href="https://www.google.com/fonts" target="_blank">all of which are viewable here</a>. Unlike some themes, ' . $theme_name . ' does not load all of these fonts into these options, in avoiding this ' . $theme_name . ' can work faster and more reliably.<br /><br /> To customize the fonts on your website use the URL above and the inputs below accordingly. Full details of this process (and the default values) can be found in the theme documentation!'; /** * Panels *