function ebor_custom_metaboxes($meta_boxes)
 {
     $prefix = '_ebor_';
     $social_options = ebor_get_social_icons();
     /**
      * Social Icons for Team Members
      */
     $meta_boxes[] = array('id' => 'team_social_metabox', 'title' => __('Social Icons: Click To Add More', 'meetup'), 'object_types' => array('team'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Job Title', 'meetup'), 'desc' => '(Optional) Enter a Job Title for this Team Member', 'id' => $prefix . 'the_job_title', 'type' => 'text'), array('id' => $prefix . 'team_social_icons', 'type' => 'group', 'options' => array('add_button' => __('Add Another Icon', 'meetup'), 'remove_button' => __('Remove Icon', 'meetup'), 'sortable' => true), 'fields' => array(array('name' => 'Social Icon', 'desc' => 'What icon would you like for this team members first social profile?', 'id' => $prefix . 'social_icon', 'type' => 'select', 'options' => $social_options), array('name' => __('URL for Social Icon', 'meetup'), 'desc' => __("Enter the URL for Social Icon 1 e.g www.google.com", 'meetup'), 'id' => $prefix . 'social_icon_url', 'type' => 'text_url')))));
     /**
      * Social Icons for Users
      */
     $meta_boxes[] = array('id' => 'social_metabox', 'title' => __('Social Icons: Click To Add More', 'meetup'), 'object_types' => array('user'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('id' => $prefix . 'user_social_icons', 'type' => 'group', 'options' => array('add_button' => __('Add Another Icon', 'meetup'), 'remove_button' => __('Remove Icon', 'meetup'), 'sortable' => true), 'fields' => array(array('name' => 'Social Icon', 'desc' => 'What icon would you like for this team members first social profile?', 'id' => $prefix . 'social_icon', 'type' => 'select', 'options' => $social_options), array('name' => __('URL for Social Icon', 'meetup'), 'desc' => __("Enter the URL for Social Icon 1 e.g www.google.com", 'meetup'), 'id' => $prefix . 'social_icon_url', 'type' => 'text')))));
     /**
      * Quote Format Metaboxes
      */
     $meta_boxes[] = array('id' => 'post_format_metabox_quote', 'title' => __('Quote Details', 'meetup'), 'object_types' => array('post'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Quote Author', 'meetup'), 'desc' => __("Enter an author for the quote.", 'meetup'), 'id' => $prefix . 'quote_author', 'type' => 'text'), array('name' => __('Quote Date', 'meetup'), 'desc' => __("Enter a date for the quote.", 'meetup'), 'id' => $prefix . 'quote_date', 'type' => 'text')));
     /**
      * Video Format Metaboxes
      */
     $meta_boxes[] = array('id' => 'post_format_metabox_video', 'title' => __('Videos & oEmbeds', 'meetup'), 'object_types' => array('post'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('id' => $prefix . 'videos', 'type' => 'group', 'options' => array('add_button' => __('Add Another oEmbed', 'meetup'), 'remove_button' => __('Remove oEmbed', 'meetup'), 'sortable' => true), 'fields' => array(array('name' => 'oEmbed', 'desc' => 'Enter a youtube, twitter, or instagram URL. Supports services listed at <a href="http://codex.wordpress.org/Embeds">http://codex.wordpress.org/Embeds</a>.', 'id' => $prefix . 'the_oembed', 'type' => 'oembed')))));
     $meta_boxes[] = array('id' => 'clients_metabox', 'title' => __('Client URL', 'meetup'), 'object_types' => array('client'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('URL for this client (optional)', 'meetup'), 'desc' => __("Enter a URL for this client, if left blank, client logo will open into a lightbox.", 'meetup'), 'id' => $prefix . 'client_url', 'type' => 'text')));
     return $meta_boxes;
 }
Exemplo n.º 2
0
/**
 * 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
     * 
     * add_panel($name, $priority, $description)
     * 
     * @since 1.0.0
     * @author tommusrhodus
     */
    $ebor_options->add_panel($theme_name . ': Demo Data', 5, '');