Beispiel #1
0
$meta_boxes[] = array('id' => 'post_meta_box', 'title' => __('Post Meta', $text_domain), 'pages' => array('post'), 'context' => 'normal', 'fields' => array(array('name' => '', 'title' => __('Custom Excerpt', $text_domain), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', $text_domain), 'desc' => __("You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated. If you use the page builder, then you'll want to add content to this box.", $text_domain), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Main Detail Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Full Width Media Display', $text_domain), 'id' => "{$prefix}full_width_display", 'type' => 'checkbox', 'desc' => __('Check this box to show the detail media above the page content / sidebar config, rather than inside the page content.', $text_domain), 'std' => 0), array('name' => __('Include author info', $text_domain), 'id' => "{$prefix}author_info", 'type' => 'checkbox', 'desc' => __('Check this box to show the author info box on the detail page.', $text_domain), 'std' => $default_include_author_info), array('name' => __('Include social sharing', $text_domain), 'id' => "{$prefix}social_sharing", 'type' => 'checkbox', 'desc' => __('Check this box to show social sharing icons on the detail page.', $text_domain), 'std' => 1), array('name' => __('Include related articles', $text_domain), 'id' => "{$prefix}related_articles", 'type' => 'checkbox', 'desc' => __('Check this box to show related articles on the detail page.', $text_domain), 'std' => 1), array('name' => '', 'title' => __('Sidebar Options', $text_domain), 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => __('Sidebar configuration', $text_domain), 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => __('No Sidebars', $text_domain), 'left-sidebar' => __('Left Sidebar', $text_domain), 'right-sidebar' => __('Right Sidebar', $text_domain), 'both-sidebars' => __('Both Sidebars', $text_domain)), 'multiple' => false, 'std' => $default_sidebar_config, 'desc' => __('Choose the sidebar configuration for the detail page of this post.', $text_domain)), array('name' => __('Left Sidebar', $text_domain), 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_left_sidebar), array('name' => __('Right Sidebar', $text_domain), 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_right_sidebar), array('name' => '', 'title' => __('Swift Slider Entry Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Slide background image', $text_domain), 'desc' => __('The image that will be used as the slide image in the Swift Slider.', $text_domain), 'id' => "{$prefix}posts_slider_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Caption Position', $text_domain), 'id' => "{$prefix}caption_position", 'type' => 'select', 'options' => array('caption-left' => __('Left', $text_domain), 'caption-right' => __('Right', $text_domain)), 'multiple' => false, 'std' => 'caption-right', 'desc' => __('Choose which side you would like to display the caption over the slide.', $text_domain)), array('name' => '', 'title' => __('Misc. Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Extra page class', $text_domain), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove promo bar', $text_domain), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', $text_domain), 'std' => 0)));
/*  for PRO users! -  Product Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'product_meta_box', 'title' => __('Product Meta', $text_domain), 'pages' => array('product'), 'context' => 'normal', 'fields' => array(array('name' => '', 'title' => __('Product Description', $text_domain), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Product Short Description', $text_domain), 'desc' => __("You can optionally write a short description here, which shows above the variations/shopping bag options.", $text_domain), 'id' => "{$prefix}product_short_description", 'type' => 'wysiwyg', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => __('Product Description', $text_domain), 'desc' => __("You can optionally write a product description here, which shows under the description accordion heading if you have the page builder enabled for product pages.", $text_domain), 'id' => "{$prefix}product_description", 'type' => 'wysiwyg', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Sidebar Options', $text_domain), 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => __('Sidebar configuration', $text_domain), 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => __('No Sidebars', $text_domain), 'left-sidebar' => __('Left Sidebar', $text_domain), 'right-sidebar' => __('Right Sidebar', $text_domain), 'both-sidebars' => __('Both Sidebars', $text_domain)), 'multiple' => false, 'std' => $default_product_sidebar_config, 'desc' => __('Choose the sidebar configuration for the detail page of this product.', $text_domain)), array('name' => __('Left Sidebar', $text_domain), 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_product_left_sidebar), array('name' => __('Right Sidebar', $text_domain), 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_product_right_sidebar), array('name' => '', 'title' => __('Misc. Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Extra page class', $text_domain), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove promo bar', $text_domain), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', $text_domain), 'std' => 0)));
/*  for PRO users! -  Team Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'team_meta_box', 'title' => __('Team Member Meta', $text_domain), 'pages' => array('team'), 'fields' => array(array('name' => '', 'title' => __('Custom Excerpt', $text_domain), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', $text_domain), 'desc' => __("You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated (this is needed if you use the page builder above).", $text_domain), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Team Member Details', $text_domain), 'id' => "{$prefix}heading_team_member_details", 'type' => 'section'), array('name' => __('Position', $text_domain), 'id' => $prefix . 'team_member_position', 'desc' => __("Enter the team member's position within the team.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Email Address', $text_domain), 'id' => $prefix . 'team_member_email', 'desc' => __("Enter the team member's email address.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Phone Number', $text_domain), 'id' => $prefix . 'team_member_phone_number', 'desc' => __("Enter the team member's phone number.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Twitter', $text_domain), 'id' => $prefix . 'team_member_twitter', 'desc' => __("Enter the team member's Twitter username.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Facebook', $text_domain), 'id' => $prefix . 'team_member_facebook', 'desc' => __("Enter the team member's Facebook URL.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('LinkedIn', $text_domain), 'id' => $prefix . 'team_member_linkedin', 'desc' => __("Enter the team member's LinkedIn URL.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Google+', $text_domain), 'id' => $prefix . 'team_member_google_plus', 'desc' => __("Enter the team member's Google+ URL.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Skype', $text_domain), 'id' => $prefix . 'team_member_skype', 'desc' => __("Enter the team member's Skype username.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Instagram', $text_domain), 'id' => $prefix . 'team_member_instagram', 'desc' => __("Enter the team member's Instragram URL (e.g. http://hashgr.am/).", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Dribbble', $text_domain), 'id' => $prefix . 'team_member_dribbble', 'desc' => __("Enter the team member's Dribbble username.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Xing', $text_domain), 'id' => $prefix . 'team_member_xing', 'desc' => __("Enter the team member's Xing URL.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => '')));
/*  for PRO users! -  Clients Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'client_meta_box', 'title' => __('Client Meta', $text_domain), 'pages' => array('clients'), 'fields' => array(array('name' => __('Client Link', $text_domain), 'id' => $prefix . 'client_link', 'desc' => __("Enter the link for the client if you want the image to be clickable.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Link to same window', $text_domain), 'id' => "{$prefix}client_link_same_window", 'type' => 'checkbox', 'desc' => __('Check this box to set the client link to open in the same browser window/tab.', $text_domain), 'std' => 1)));
/*  for PRO users! -  Testimonials Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'testimonials_meta_box', 'title' => __('Testimonial Meta', $text_domain), 'pages' => array('testimonials'), 'fields' => array(array('name' => __('Testimonial Cite', $text_domain), 'id' => $prefix . 'testimonial_cite', 'desc' => __("Enter the cite name for the testimonial.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Testimonial Cite Subtext', $text_domain), 'id' => $prefix . 'testimonial_cite_subtext', 'desc' => __("Enter the cite subtext for the testimonial (optional).", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Testimonial Cite Image', $text_domain), 'desc' => __('Enter the cite image for the testimonial (optional).', $text_domain), 'id' => "{$prefix}testimonial_cite_image", 'type' => 'image_advanced', 'max_file_uploads' => 1)));
/*  for PRO users! -  Slider Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'slider_meta_box', 'title' => __('Page Slider Options', $text_domain), 'pages' => array('page'), 'fields' => array(array('name' => __('Show Swift Slider', $text_domain), 'id' => "{$prefix}posts_slider", 'type' => 'checkbox', 'desc' => __('Show the Swift Slider at the top of the page.', $text_domain), 'std' => 0), array('name' => __('Swift Slider Type', $text_domain), 'id' => "{$prefix}posts_slider_type", 'type' => 'select', 'options' => array('post' => __('Posts', $text_domain), 'portfolio' => __('Portfolio', $text_domain), 'hybrid' => __('Hybrid', $text_domain)), 'multiple' => false, 'std' => 'post', 'desc' => __('Choose the post type to display in the Swift Slider.', $text_domain)), array('name' => __('Swift Slider category', $text_domain), 'id' => "{$prefix}posts_slider_category", 'type' => 'select', 'desc' => __('Select the category for which the Swift Slider should show posts from.', $text_domain), 'options' => sf_get_category_list_key_array('category'), 'std' => ''), array('name' => __('Swift Slider portfolio category', $text_domain), 'id' => "{$prefix}posts_slider_portfolio_category", 'type' => 'select', 'desc' => __('Select the category for which the Swift Slider should show portfolio items from.', $text_domain), 'options' => sf_get_category_list_key_array('portfolio-category'), 'std' => ''), array('name' => __('Swift Slider count', $text_domain), 'id' => $prefix . 'posts_slider_count', 'desc' => __("The number of posts to show in the Swift Slider.", $text_domain), 'type' => 'text', 'std' => '5'), array('name' => __('Revolution slider alias', $text_domain), 'id' => $prefix . 'rev_slider_alias', 'desc' => __("Enter the revolution slider alias for the slider that you want to show. NOTE: If you have the Swift Slider enabled above, then this will be ignored.", $text_domain), 'type' => 'text', 'std' => ''), array('name' => __('LayerSlider ID', $text_domain), 'id' => $prefix . 'layerslider_id', 'desc' => __("Enter the LayerSlider ID for the slider that you want to show. NOTE: If you have the Swift Slider enabled above, then this will be ignored.", $text_domain), 'type' => 'text', 'std' => '')));
/*  for PRO users! -  Page Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'page_meta_box', 'title' => __('Page Meta', $text_domain), 'pages' => array('page'), 'fields' => array(array('name' => '', 'title' => __('Header Options', $text_domain), 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => __('Enable Naked Header', $text_domain), 'id' => "{$prefix}enable_naked_header", 'type' => 'select', 'options' => array('' => __('Standard Header', $text_domain), 'naked-light' => __('Naked (Light)', $text_domain), 'naked-dark' => __('Naked (Dark)', $text_domain)), 'desc' => __('Enable naked header on this page. NOTE: It is important that you use a page slider for the naked header to be shown over.', $text_domain), 'std' => ''), array('name' => '', 'title' => __('Sidebar Options', $text_domain), 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => __('Sidebar configuration', $text_domain), 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => __('No Sidebars', $text_domain), 'left-sidebar' => __('Left Sidebar', $text_domain), 'right-sidebar' => __('Right Sidebar', $text_domain), 'both-sidebars' => __('Both Sidebars', $text_domain)), 'multiple' => false, 'std' => $default_sidebar_config, 'desc' => __('Choose the sidebar configuration for the detail page of this page.', $text_domain)), array('name' => __('Left Sidebar', $text_domain), 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_left_sidebar), array('name' => __('Right Sidebar', $text_domain), 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_right_sidebar), array('name' => '', 'title' => __('One Page Options', $text_domain), 'id' => "{$prefix}heading_onepage", 'type' => 'section'), array('name' => __('Enable One Page Navigation', $text_domain), 'id' => "{$prefix}enable_one_page_nav", 'type' => 'checkbox', 'desc' => __('Enable the one page nav which appears on the right of the page.', $text_domain), 'std' => 0), array('name' => '', 'title' => __('Misc. Options', $text_domain), 'id' => "{$prefix}heading_misc", 'type' => 'section'), array('name' => __('Page Menu', 'swift-framework-admin'), 'id' => "{$prefix}page_menu", 'type' => 'select', 'options' => sf_get_menu_list(), 'multiple' => false, 'std' => '', 'desc' => __('Optionally you can choose to override the menu that is used on the page. This is ideal if you want to create a page with a anchor link scroll menu.', 'swift-framework-admin')), array('name' => __('Extra page class', $text_domain), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove promo bar', $text_domain), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', $text_domain), 'std' => 0), array('name' => __('Remove top spacing', $text_domain), 'id' => "{$prefix}no_top_spacing", 'type' => 'checkbox', 'desc' => __('Remove the spacing at the top of the page.', $text_domain), 'std' => 0), array('name' => __('Remove bottom spacing', $text_domain), 'id' => "{$prefix}no_bottom_spacing", 'type' => 'checkbox', 'desc' => __('Remove the spacing at the bottom of the page.', $text_domain), 'std' => 0)));
/*  for PRO users! -  Gallery Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'gallery_meta_box', 'title' => __('Gallery Options', $text_domain), 'pages' => array('galleries'), 'context' => 'normal', 'fields' => array(array('name' => __('Gallery Images', $text_domain), 'desc' => __('The images that will be used in the gallery.', $text_domain), 'id' => "{$prefix}gallery_images", 'type' => 'image_advanced', 'max_file_uploads' => 200)));
/*  for PRO users! - ******************** META BOX REGISTERING ***********************/
/*  for PRO users! - *
 * Register meta boxes
 *
 * @return void
 */
function sf_register_meta_boxes()
{
    global $meta_boxes;
Beispiel #2
0
function sf_register_meta_boxes()
{
    $prefix = 'sf_';
    global $meta_boxes;
    $sf_options = get_option('sf_atelier_options');
    $meta_boxes = array();
    $default_show_page_heading = $sf_options['default_show_page_heading'];
    $default_sidebar_config = $sf_options['default_sidebar_config'];
    $default_left_sidebar = $sf_options['default_left_sidebar'];
    $default_right_sidebar = $sf_options['default_right_sidebar'];
    $default_title_style = 'standard';
    $default_title_text_style = 'dark';
    $default_title_text_align = 'left';
    if (isset($sf_options['default_page_title_style'])) {
        $default_title_style = $sf_options['default_page_title_style'];
    }
    if (isset($sf_options['default_page_heading_style'])) {
        $default_title_style = $sf_options['default_page_heading_style'];
    }
    if (isset($sf_options['default_page_heading_text_style'])) {
        $default_title_text_style = $sf_options['default_page_heading_text_style'];
    }
    if (isset($sf_options['default_page_heading_text_align'])) {
        $default_title_text_align = $sf_options['default_page_heading_text_align'];
    }
    if ($default_show_page_heading == "") {
        $default_show_page_heading = 1;
    }
    if ($default_sidebar_config == "") {
        $default_sidebar_config = "no-sidebars";
    }
    if ($default_left_sidebar == "") {
        $default_left_sidebar = "Sidebar-1";
    }
    if ($default_right_sidebar == "") {
        $default_right_sidebar = "Sidebar-1";
    }
    /* PRODUCT SIDEBARS */
    $default_product_sidebar_config = $sf_options['default_product_sidebar_config'];
    $default_product_left_sidebar = $sf_options['default_product_left_sidebar'];
    $default_product_right_sidebar = $sf_options['default_product_right_sidebar'];
    if ($default_product_sidebar_config == "") {
        $default_product_sidebar_config = "no-sidebars";
    }
    if ($default_product_left_sidebar == "") {
        $default_product_left_sidebar = "Sidebar-1";
    }
    if ($default_product_right_sidebar == "") {
        $default_product_right_sidebar = "Sidebar-1";
    }
    /* POST META */
    $default_post_sidebar_config = $sf_options['default_post_sidebar_config'];
    $default_post_left_sidebar = $sf_options['default_post_left_sidebar'];
    $default_post_right_sidebar = $sf_options['default_post_right_sidebar'];
    $default_include_author = $sf_options['default_include_author'];
    $default_include_social = $sf_options['default_include_social'];
    $default_include_related = $sf_options['default_include_related'];
    $default_thumb_media = $sf_options['default_thumb_media'];
    $default_detail_media = $sf_options['default_detail_media'];
    if ($default_post_sidebar_config == "") {
        $default_post_sidebar_config = "right-sidebar";
    }
    if ($default_post_left_sidebar == "") {
        $default_post_left_sidebar = "Sidebar-1";
    }
    if ($default_post_right_sidebar == "") {
        $default_post_right_sidebar = "Sidebar-1";
    }
    if ($default_include_author == "") {
        $default_include_author = 1;
    }
    if ($default_include_social == "") {
        $default_include_social = 1;
    }
    if ($default_include_related == "") {
        $default_include_related = 1;
    }
    /* PAGE MENU */
    $menu_list = array();
    if (function_exists('sf_get_menu_list')) {
        $menu_list = sf_get_menu_list();
    }
    /* SWIFT SLIDER */
    $swift_slider_categories = array();
    if (function_exists('sf_get_category_list_key_array')) {
        $swift_slider_categories = sf_get_category_list_key_array('swift-slider-category');
    }
    /* Thumbnail Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'thumbnail_meta_box', 'title' => __('Thumbnail', 'swiftframework'), 'pages' => array('post'), 'context' => 'normal', 'fields' => array(array('name' => __('Thumbnail type', 'swiftframework'), 'id' => "{$prefix}thumbnail_type", 'type' => 'select', 'options' => array('none' => 'None', 'image' => 'Image', 'video' => 'Video', 'slider' => 'Slider', 'audio' => 'Audio', 'sh-video' => 'Self Hosted Video'), 'multiple' => false, 'std' => $default_thumb_media, 'desc' => __('Choose what will be used for the item thumbnail.', 'swiftframework')), array('name' => __('Thumbnail image', 'swiftframework'), 'desc' => __('The image that will be used as the thumbnail image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Thumbnail video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_url', 'desc' => __('Enter the video url for the thumbnail. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail audio URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_audio_url', 'desc' => __('Enter the audio url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video MP4 URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_mp4', 'desc' => __('Enter the video mp4 url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video WEBM URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_webm', 'desc' => __('Enter the video webm url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video OGG URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_ogg', 'desc' => __('Enter the video ogg url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail gallery', 'swiftframework'), 'desc' => __('The images that will be used in the thumbnail gallery.', 'swiftframework'), 'id' => "{$prefix}thumbnail_gallery", 'type' => 'image_advanced', 'max_file_uploads' => 50), array('name' => __('Thumbnail link type', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_type", 'type' => 'select', 'options' => array('link_to_post' => __('Link to item', 'swiftframework'), 'link_to_url' => __('Link to URL', 'swiftframework'), 'link_to_url_nw' => __('Link to URL (New Window)', 'swiftframework'), 'lightbox_thumb' => __('Lightbox to the thumbnail image', 'swiftframework'), 'lightbox_image' => __('Lightbox to image (select below)', 'swiftframework'), 'lightbox_video' => __('Fullscreen Video Overlay (input below)', 'swiftframework')), 'multiple' => false, 'std' => 'link-to-post', 'desc' => __('Choose what link will be used for the image(s) and title of the item.', 'swiftframework')), array('name' => __('Thumbnail link URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_url', 'desc' => __('Enter the url for the thumbnail link.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail link lightbox image', 'swiftframework'), 'desc' => __('The image that will be used as the lightbox image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_image", 'type' => 'thickbox_image'), array('name' => __('Thumbnail link lightbox video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_video_url', 'desc' => __('Enter the video url for the thumbnail lightbox. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => '')));
    /* Thumbnail Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'alt_thumbnail_meta_box', 'title' => __('Thumbnail', 'swiftframework'), 'pages' => array('download'), 'context' => 'normal', 'fields' => array(array('name' => __('Thumbnail type', 'swiftframework'), 'id' => "{$prefix}thumbnail_type", 'type' => 'select', 'options' => array('none' => 'None', 'image' => 'Image', 'video' => 'Video', 'slider' => 'Slider', 'sh-video' => 'Self Hosted Video'), 'multiple' => false, 'std' => 'image', 'desc' => __('Choose what will be used for the item thumbnail.', 'swiftframework')), array('name' => __('Thumbnail image', 'swiftframework'), 'desc' => __('The image that will be used as the thumbnail image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Thumbnail video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_url', 'desc' => __('Enter the video url for the thumbnail. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video MP4 URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_mp4', 'desc' => __('Enter the video mp4 url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video WEBM URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_webm', 'desc' => __('Enter the video webm url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video OGG URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_ogg', 'desc' => __('Enter the video ogg url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail gallery', 'swiftframework'), 'desc' => __('The images that will be used in the thumbnail gallery.', 'swiftframework'), 'id' => "{$prefix}thumbnail_gallery", 'type' => 'image_advanced', 'max_file_uploads' => 50), array('name' => __('Thumbnail link type', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_type", 'type' => 'select', 'options' => array('link_to_post' => __('Link to item', 'swiftframework'), 'link_to_url' => __('Link to URL', 'swiftframework'), 'link_to_url_nw' => __('Link to URL (New Window)', 'swiftframework'), 'lightbox_thumb' => __('Lightbox to the thumbnail image', 'swiftframework'), 'lightbox_image' => __('Lightbox to image (select below)', 'swiftframework'), 'lightbox_video' => __('Fullscreen Video Overlay (input below)', 'swiftframework')), 'multiple' => false, 'std' => 'link-to-post', 'desc' => __('Choose what link will be used for the image(s) and title of the item.', 'swiftframework')), array('name' => __('Thumbnail link URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_url', 'desc' => __('Enter the url for the thumbnail link.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail link lightbox image', 'swiftframework'), 'desc' => __('The image that will be used as the lightbox image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_image", 'type' => 'thickbox_image'), array('name' => __('Thumbnail link lightbox video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_video_url', 'desc' => __('Enter the video url for the thumbnail lightbox. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => '')));
    /* Thumbnail Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'alt_thumbnail_meta_box', 'title' => __('Thumbnail', 'swiftframework'), 'pages' => array('portfolio'), 'context' => 'normal', 'fields' => array(array('name' => __('Thumbnail type', 'swiftframework'), 'id' => "{$prefix}thumbnail_type", 'type' => 'select', 'options' => array('none' => 'None', 'image' => 'Image', 'video' => 'Video', 'slider' => 'Slider'), 'multiple' => false, 'std' => 'image', 'desc' => __('Choose what will be used for the item thumbnail.', 'swiftframework')), array('name' => __('Thumbnail image', 'swiftframework'), 'desc' => __('The image that will be used as the thumbnail image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Thumbnail video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_url', 'desc' => __('Enter the video url for the thumbnail. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail gallery', 'swiftframework'), 'desc' => __('The images that will be used in the thumbnail gallery.', 'swiftframework'), 'id' => "{$prefix}thumbnail_gallery", 'type' => 'image_advanced', 'max_file_uploads' => 50), array('name' => __('Thumbnail link type', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_type", 'type' => 'select', 'options' => array('link_to_post' => __('Link to item', 'swiftframework'), 'link_to_url' => __('Link to URL', 'swiftframework'), 'link_to_url_nw' => __('Link to URL (New Window)', 'swiftframework'), 'lightbox_thumb' => __('Lightbox to the thumbnail image', 'swiftframework'), 'lightbox_image' => __('Lightbox to image (select below)', 'swiftframework'), 'lightbox_video' => __('Fullscreen Video Overlay (input below)', 'swiftframework')), 'multiple' => false, 'std' => 'link-to-post', 'desc' => __('Choose what link will be used for the image(s) and title of the item.', 'swiftframework')), array('name' => __('Thumbnail link URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_url', 'desc' => __('Enter the url for the thumbnail link.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail link lightbox image', 'swiftframework'), 'desc' => __('The image that will be used as the lightbox image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_image", 'type' => 'thickbox_image'), array('name' => __('Thumbnail link lightbox video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_video_url', 'desc' => __('Enter the video url for the thumbnail lightbox. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Hover Background Color', 'swiftframework'), 'id' => $prefix . 'port_hover_bg_color', 'desc' => __("Optionally set an alternate background colour for the thumbnail hover.", 'swiftframework'), 'type' => 'color', 'std' => ''), array('name' => __('Thumbnail Hover Text Color', 'swiftframework'), 'id' => $prefix . 'port_hover_text_color', 'desc' => __("Optionally set an alternate text colour for the thumbnail hover.", 'swiftframework'), 'type' => 'color', 'std' => '')));
    /* Portfolio Masonry Thumbnail Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'masonry_thumbnail_meta_box', 'title' => __('Masonry Thumbnail', 'swiftframework'), 'pages' => array('portfolio'), 'context' => 'normal', 'fields' => array(array('name' => __('Masonry Thumbnail Size', 'swiftframework'), 'id' => "{$prefix}masonry_thumb_size", 'type' => 'select', 'options' => array('standard' => 'Standard', 'wide' => 'Wide', 'tall' => 'Tall', 'wide-tall' => 'Wide & Tall'), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose the size that you would like the item to show as with the Multi-Size Masonry setup. This will only affect the display in an asset with that display type.', 'swiftframework'))));
    /* Detail Media Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'detail_media_meta_box', 'title' => __('Detail Media', 'swiftframework'), 'pages' => array('post', 'portfolio', 'download'), 'context' => 'normal', 'fields' => array(array('name' => __('Use the thumbnail content', 'swiftframework'), 'id' => "{$prefix}thumbnail_content_main_detail", 'type' => 'checkbox', 'desc' => __('Uncheck this box if you wish to select different media for the main detail display.', 'swiftframework'), 'std' => 0), array('name' => __('Detail type', 'swiftframework'), 'id' => "{$prefix}detail_type", 'type' => 'select', 'options' => array('none' => __('None', 'swiftframework'), 'image' => __('Image', 'swiftframework'), 'video' => __('Video', 'swiftframework'), 'slider' => __('Standard Slider', 'swiftframework'), 'gallery-stacked' => __('Stacked Gallery', 'swiftframework'), 'layer-slider' => __('Revolution/Layer Slider', 'swiftframework'), 'audio' => __('Audio', 'swiftframework'), 'sh-video' => __('Self Hosted Video', 'swiftframework'), 'custom' => __('Custom', 'swiftframework')), 'multiple' => false, 'std' => $default_detail_media, 'desc' => __('Choose what will be used for the item detail media.', 'swiftframework')), array('name' => __('Detail image', 'swiftframework'), 'desc' => __('The image that will be used as the detail image.', 'swiftframework'), 'id' => "{$prefix}detail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Detail video URL', 'swiftframework'), 'id' => $prefix . 'detail_video_url', 'desc' => __('Enter the video url for the detail display. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Detail audio URL', 'swiftframework'), 'id' => $prefix . 'detail_audio_url', 'desc' => __('Enter the audio url for the detail display.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Detail Self Hosted Video MP4 URL', 'swiftframework'), 'id' => $prefix . 'detail_video_mp4', 'desc' => __('Enter the video mp4 url for the detail display.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Detail Self Hosted Video WEBM URL', 'swiftframework'), 'id' => $prefix . 'detail_video_webm', 'desc' => __('Enter the video webm url for the detail display.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Detail Self Hosted Video OGG URL', 'swiftframework'), 'id' => $prefix . 'detail_video_ogg', 'desc' => __('Enter the video ogg url for the detail display.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Post detail gallery', 'swiftframework'), 'desc' => __('The images that will be used in the detail gallery.', 'swiftframework'), 'id' => "{$prefix}detail_gallery", 'type' => 'image_advanced', 'max_file_uploads' => 50), array('name' => __('Revolution slider alias', 'swiftframework'), 'id' => $prefix . 'detail_rev_slider_alias', 'desc' => __("Enter the revolution slider alias for the slider that you want to show.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Layer Slider alias', 'swiftframework'), 'id' => $prefix . 'detail_layer_slider_alias', 'desc' => __("Enter the Layer Slider ID for the slider that you want to show.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Custom detail display', 'swiftframework'), 'desc' => __("If you'd like to provide your own detail media, please add it here", 'swiftframework'), 'id' => "{$prefix}custom_media", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8')));
    /* Page Title Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'page_heading_meta_box', 'title' => __('Page Title', 'swiftframework'), 'pages' => array('post', 'page', 'portfolio', 'product', 'team', 'galleries'), 'context' => 'normal', 'fields' => array(array('name' => __('Show page title', 'swiftframework'), 'id' => "{$prefix}page_title", 'type' => 'checkbox', 'desc' => __('Show the page title at the top of the page.', 'swiftframework'), 'std' => $default_show_page_heading), array('name' => __('Page Title Background Color', 'swiftframework'), 'id' => $prefix . 'page_title_bg_color', 'desc' => __("Optionally set a background color for the page title.", 'swiftframework'), 'type' => 'color', 'std' => ''), array('name' => __('Page Title Text Color', 'swiftframework'), 'id' => $prefix . 'page_title_text_color', 'desc' => __("Optionally set a text color for the page title.", 'swiftframework'), 'type' => 'color', 'std' => ''), array('name' => __('Page Title Style', 'swiftframework'), 'id' => "{$prefix}page_title_style", 'type' => 'select', 'options' => array('standard' => __('Standard', 'swiftframework'), 'fancy' => __('Hero', 'swiftframework'), 'fancy-tabbed' => __('Hero Tabbed', 'swiftframework')), 'multiple' => false, 'std' => $default_title_style, 'desc' => __('Choose the heading style.', 'swiftframework')), array('name' => __('Page Title', 'swiftframework'), 'id' => $prefix . 'page_title_one', 'desc' => __("Enter a custom page title if you'd like.", 'swiftframework'), 'type' => 'text', 'std' => ''), array('name' => __('Page Subtitle', 'swiftframework'), 'id' => $prefix . 'page_subtitle', 'desc' => __("Enter a custom page title if you'd like (Hero Page Title Style Only).", 'swiftframework'), 'type' => 'text', 'std' => ''), array('name' => __('Hero Overlay Color', 'swiftframework'), 'id' => "{$prefix}bg_color_title", 'desc' => __("Set an overlay color for hero heading image.", 'swiftframework'), 'type' => 'color', 'std' => ''), array('name' => __('Overlay Opacity', 'swiftframework'), 'id' => "{$prefix}bg_opacity_title", 'desc' => __('Set the opacity level of the overlay. This will lighten or darken the image depening on the color selected.', 'swiftframework'), 'clone' => false, 'type' => 'slider', 'prefix' => '', 'js_options' => array('min' => 0, 'max' => 100, 'step' => 1)), array('name' => __('Hero Heading Background Image', 'swiftframework'), 'desc' => __('The image that will be used as the background for the hero header.', 'swiftframework'), 'id' => "{$prefix}page_title_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Hero Heading Overlay Effect', 'swiftframework'), 'id' => "{$prefix}page_title_overlay_effect", 'type' => 'select', 'options' => array('none' => __('None', 'swiftframework'), 'circles' => __('Falling Circles', 'swiftframework'), 'geometric' => __('Geometric', 'swiftframework')), 'multiple' => false, 'std' => 'none', 'desc' => __('Optionally have an animated canvas overlay on the hero heading background.', 'swiftframework')), array('name' => __('Hero Heading Text Style', 'swiftframework'), 'id' => "{$prefix}page_title_text_style", 'type' => 'select', 'options' => array('light' => __('Light', 'swiftframework'), 'dark' => __('Dark', 'swiftframework')), 'multiple' => false, 'std' => $default_title_text_style, 'desc' => __('If you uploaded an image in the option above, choose light/dark styling for the text heading text here.', 'swiftframework')), array('name' => __('Hero Heading Text Align', 'swiftframework'), 'id' => "{$prefix}page_title_text_align", 'type' => 'select', 'options' => array('left' => __('Left', 'swiftframework'), 'center' => __('Center', 'swiftframework'), 'right' => __('Right', 'swiftframework')), 'multiple' => false, 'std' => $default_title_text_align, 'desc' => __('Choose the text alignment for the hero heading.', 'swiftframework')), array('name' => __('Hero Heading Height', 'swiftframework'), 'id' => "{$prefix}page_title_height", 'desc' => __("Set the height for the Hero Heading (no px).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => '400'), array('name' => __('Remove breadcrumbs', 'swiftframework'), 'id' => "{$prefix}no_breadcrumbs", 'type' => 'checkbox', 'desc' => __('Remove the breadcrumbs from under the page title on this page.', 'swiftframework'), 'std' => 0)));
    /* Portfolio Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'portfolio_meta_box', 'title' => __('Portfolio Meta', 'swiftframework'), 'pages' => array('portfolio'), 'context' => 'normal', 'fields' => array(array('name' => '', 'title' => __('Portfolio Header Options', 'swiftframework'), 'id' => "{$prefix}heading_header", 'type' => 'section'), array('name' => __('Portfolio Header Type', 'swiftframework'), 'id' => "{$prefix}page_header_type", 'type' => 'select', 'options' => array('standard' => __('Standard', 'swiftframework'), 'naked-light' => __('Naked (Light)', 'swiftframework'), 'naked-dark' => __('Naked (Dark)', 'swiftframework')), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose the type of header that is shown on this portfolio. NOTE: The naked options are only possible when you have the hero heading enabled, or the media display below set to "Full Width Media" & no heading shown.', 'swiftframework')), array('name' => '', 'title' => __('Portfolio Item Details', 'swiftframework'), 'id' => "{$prefix}heading_item_details", 'type' => 'section'), array('name' => __('Client', 'swiftframework'), 'id' => $prefix . 'portfolio_client', 'desc' => __("Enter a client for use within the portfolio item index (optional).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Subtitle', 'swiftframework'), 'id' => $prefix . 'portfolio_subtitle', 'desc' => __("Enter a subtitle for use within the portfolio item index (optional).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('External Link', 'swiftframework'), 'id' => $prefix . 'portfolio_external_link', 'desc' => __("Enter an external link for the item  (optional) (NOTE: INCLUDE HTTP://).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => '', 'title' => __('Custom Excerpt', 'swiftframework'), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', 'swiftframework'), 'desc' => __("You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated. If you use the page builder, then you'll want to add content to this box.", 'swiftframework'), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Main Detail Options', 'swiftframework'), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Media Display', 'swiftframework'), 'id' => "{$prefix}fw_media_display", 'type' => 'select', 'options' => array('fw-media' => __('Full Width Media', 'swiftframework'), 'split' => __('Split Media / Description', 'swiftframework'), 'standard' => __('Standard', 'swiftframework')), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose how you would like to display your selected media - full width (edge to edge), split, or standard (media with content below).', 'swiftframework')), array('name' => __('Media Image Height', 'swiftframework'), 'id' => $prefix . 'media_height', 'desc' => __("If you are using the image detail type, and would like to set a height for the image - then please do so here (no px).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Item Sidebar Content', 'swiftframework'), 'desc' => __("You can optionally add some content here to display in the details column, including shortcodes etc. Only visible on Standard and Full Width Media display types.", 'swiftframework'), 'id' => "{$prefix}item_sidebar_content", 'type' => 'wysiwyg', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => __('Hide item details bar', 'swiftframework'), 'id' => "{$prefix}hide_details", 'type' => 'checkbox', 'desc' => __('Check this box to hide the item details on the detail page.', 'swiftframework'), 'std' => 0), array('name' => __('Include social sharing', 'swiftframework'), 'id' => "{$prefix}social_sharing", 'type' => 'checkbox', 'desc' => __('Check this box to show social sharing icons on the detail page.', 'swiftframework'), 'std' => 1), array('name' => '', 'title' => __('One Page Options', 'swiftframework'), 'id' => "{$prefix}heading_onepage", 'type' => 'section'), array('name' => __('Enable One Page Navigation', 'swiftframework'), 'id' => "{$prefix}enable_one_page_nav", 'type' => 'checkbox', 'desc' => __('Enable the one page nav which appears on the right of the page.', 'swiftframework'), 'std' => 0), array('name' => '', 'title' => __('Misc. Options', 'swiftframework'), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Extra page class', 'swiftframework'), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove top spacing', 'swiftframework'), 'id' => "{$prefix}no_top_spacing", 'type' => 'checkbox', 'desc' => __('Remove the spacing at the top of the page.', 'swiftframework'), 'std' => 0), array('name' => __('Remove promo bar', 'swiftframework'), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', 'swiftframework'), 'std' => 0)));
    /* Page Layout Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'page_style_meta_box', 'title' => __('Page Style', 'swiftframework'), 'pages' => array('page', 'post'), 'context' => 'normal', 'fields' => array(array('name' => __('Page Design Style', 'swiftframework'), 'id' => "{$prefix}page_design_style", 'type' => 'select', 'options' => array('standard' => __('Standard', 'swiftframework'), 'boxed-inner-page' => __('Boxed Inner Page', 'swiftframework'), 'hero-content-split' => __('Hero / Content Split', 'swiftframework')), 'multiple' => false, 'std' => 'standard', 'desc' => __('Select the design style for the page. NOTE: if using the "Hero / Content Split" style, then please make sure you have the page title style set to "Hero" and that you have set the background image for it there.', 'swiftframework'))));
    /* Page Background Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'page_background_meta_box', 'title' => __('Page Background', 'swiftframework'), 'pages' => array('post', 'portfolio', 'product', 'page'), 'context' => 'normal', 'fields' => array(array('name' => __('Background Image', 'swiftframework'), 'desc' => __('The image that will be used as the OUTER page background image.', 'swiftframework'), 'id' => "{$prefix}background_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Background Image Size', 'swiftframework'), 'desc' => __('For fullscreen images, choose Cover. For repeating patterns, choose Auto.', 'swiftframework'), 'id' => "{$prefix}background_image_size", 'type' => 'select', 'options' => array('cover' => 'Cover', 'auto' => 'Auto'), 'multiple' => false, 'std' => 'cover'), array('name' => __('Inner Background Image', 'swiftframework'), 'desc' => __('The image that will be used as the INNER page background image.', 'swiftframework'), 'id' => "{$prefix}inner_background_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Inner Background Image Size', 'swiftframework'), 'desc' => __('For fullscreen images, choose Cover. For repeating patterns, choose Auto.', 'swiftframework'), 'id' => "{$prefix}inner_background_image_size", 'type' => 'select', 'options' => array('cover' => 'Cover', 'auto' => 'Auto'), 'multiple' => false, 'std' => 'auto'), array('name' => __('Inner Background Color', 'swiftframework'), 'id' => $prefix . 'inner_background_color', 'desc' => __("Optionally set a background color for the inner page background.", 'swiftframework'), 'type' => 'color', 'std' => '')));
    /* Download Options Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'download_meta_box', 'title' => __('Download Options', 'swiftframework'), 'pages' => array('post'), 'context' => 'normal', 'priority' => 'low', 'fields' => array(array('name' => __('Show Download Button', 'swiftframework'), 'id' => "{$prefix}download_button", 'type' => 'checkbox', 'desc' => __('Enable a download button on the detail and index for the post.', 'swiftframework'), 'std' => 0), array('name' => __('Download File', 'swiftframework'), 'desc' => __('The file that the download button will link to.', 'swiftframework'), 'id' => "{$prefix}download_file", 'type' => 'file_advanced', 'max_file_uploads' => 1), array('name' => __('Download shortcode', 'swiftframework'), 'desc' => __("Alternatively, you can provide a shortcode here for your download, for example from the Easy Digital Downloads plugin.", 'swiftframework'), 'id' => "{$prefix}download_shortcode", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8')));
    /* Post Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'post_meta_box', 'title' => __('Post Meta', 'swiftframework'), 'pages' => array('post'), 'context' => 'normal', 'fields' => array(array('name' => '', 'title' => __('Custom Excerpt', 'swiftframework'), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', 'swiftframework'), 'desc' => __("You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated. If you use the page builder, then you'll want to add content to this box.", 'swiftframework'), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Main Detail Options', 'swiftframework'), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Post Header Type', 'swiftframework'), 'id' => "{$prefix}page_header_type", 'type' => 'select', 'options' => array('standard' => __('Standard', 'swiftframework'), 'naked-light' => __('Naked (Light)', 'swiftframework'), 'naked-dark' => __('Naked (Dark)', 'swiftframework')), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose the type of header that is shown on this post. NOTE: The naked options are only possible when you have the hero heading enabled, or the media display below set to "Full Width with Title Overlay".', 'swiftframework')), array('name' => __('Media Display', 'swiftframework'), 'id' => "{$prefix}fw_media_display", 'type' => 'select', 'options' => array('fw-media-title' => __('Full Width with Title Overlay', 'swiftframework'), 'fw-media' => __('Full Width', 'swiftframework'), 'standard-above' => __('Standard (Above content)', 'swiftframework'), 'standard' => __('Standard', 'swiftframework')), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose how you would like to display your selected media - full width (edge to edge) with or without the title overlay, or standard. If you choose the title overlay option, it is recommended that you hide the page title in the page title meta options.', 'swiftframework')), array('name' => __('Title Overlay Min Height', 'swiftframework'), 'id' => $prefix . 'media_height', 'desc' => __("If you are using the 'Full Width with Title Overlay' media display type, you can set a min-height for it here (no px).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => '500'), array('name' => __('Title Overlay Text Color', 'swiftframework'), 'id' => $prefix . 'title_overlay_text_color', 'desc' => __("Optionally set a text color for the title overlay text.", 'swiftframework'), 'type' => 'color', 'std' => ''), array('name' => __('Extra Paragraph Spacing', 'swiftframework'), 'id' => "{$prefix}extra_paragraph_spacing", 'type' => 'checkbox', 'desc' => __('Check this box to enable extra spacing around paragraph elements within the post content. Only for posts with no sidebars.', 'swiftframework'), 'std' => 0), array('name' => __('Include author info', 'swiftframework'), 'id' => "{$prefix}author_info", 'type' => 'checkbox', 'desc' => __('Check this box to show the author info box on the detail page.', 'swiftframework'), 'std' => $default_include_author), array('name' => __('Include social sharing', 'swiftframework'), 'id' => "{$prefix}social_sharing", 'type' => 'checkbox', 'desc' => __('Check this box to show social sharing icons on the detail page.', 'swiftframework'), 'std' => $default_include_social), array('name' => __('Remove article pagination', 'swiftframework'), 'id' => "{$prefix}remove_next_prev", 'type' => 'checkbox', 'desc' => __('Check this box to remove the next/previous article pagination on the detail page.', 'swiftframework'), 'std' => $default_include_author), array('name' => __('Include related articles', 'swiftframework'), 'id' => "{$prefix}related_articles", 'type' => 'checkbox', 'desc' => __('Check this box to show related articles on the detail page.', 'swiftframework'), 'std' => $default_include_related), array('name' => '', 'title' => __('Misc. Options', 'swiftframework'), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Extra page class', 'swiftframework'), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove promo bar', 'swiftframework'), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', 'swiftframework'), 'std' => 0), array('name' => __('Remove top spacing', 'swiftframework'), 'id' => "{$prefix}no_top_spacing", 'type' => 'checkbox', 'desc' => __('Remove the spacing at the top of the page.', 'swiftframework'), 'std' => 0), array('name' => __('Remove bottom spacing', 'swiftframework'), 'id' => "{$prefix}no_bottom_spacing", 'type' => 'checkbox', 'desc' => __('Remove the spacing at the bottom of the page.', 'swiftframework'), 'std' => 0)));
    /* Product Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'product_meta_box', 'title' => __('Product Meta', 'swiftframework'), 'pages' => array('product'), 'context' => 'normal', 'fields' => array(array('name' => '', 'title' => __('Product Display', 'swiftframework'), 'id' => "{$prefix}heading_product_display", 'type' => 'section'), array('name' => __('Page Display Type', 'swiftframework'), 'id' => "{$prefix}product_layout", 'type' => 'select', 'options' => array('standard' => __('Standard', 'swiftframework'), 'fw-split' => __('Fullscreen Split', 'swiftframework')), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose the layout for the product detail display.', 'swiftframework')), array('name' => __('Fullscreen Display Background Color', 'swiftframework'), 'id' => $prefix . 'fw_split_bg_color', 'desc' => __("Optionally set a background colour for product display slider (ONLY when using the Fullscreen Split display type above).", 'swiftframework'), 'type' => 'color', 'std' => ''), array('name' => '', 'title' => __('Product Description', 'swiftframework'), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Product Short Description', 'swiftframework'), 'desc' => __("You can optionally write a short description here, which shows above the variations/cart options.", 'swiftframework'), 'id' => "{$prefix}product_short_description", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => __('Product Description', 'swiftframework'), 'desc' => __("You can optionally write a product description here, which shows under the description accordion heading if you have the page builder enabled for product pages.", 'swiftframework'), 'id' => "{$prefix}product_description", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Misc. Options', 'swiftframework'), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Extra page class', 'swiftframework'), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove promo bar', 'swiftframework'), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', 'swiftframework'), 'std' => 0)));
    /* Product Masonry Thumbnail Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'masonry_thumbnail_meta_box', 'title' => __('Masonry Thumbnail', 'swiftframework'), 'pages' => array('product'), 'context' => 'normal', 'fields' => array(array('name' => __('Masonry Thumbnail Size', 'swiftframework'), 'id' => "{$prefix}masonry_thumb_size", 'type' => 'select', 'options' => array('standard' => 'Standard', 'large' => 'Large', 'tall' => 'Tall'), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose the size that you would like the item to show as with the Multi-Size Masonry setup. This will only affect the display in an asset with that display type.', 'swiftframework'))));
    /* Team Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'team_meta_box', 'title' => __('Team Member Meta', 'swiftframework'), 'pages' => array('team'), 'fields' => array(array('name' => __('Thumbnail image', 'swiftframework'), 'desc' => __('The image that will be used as the thumbnail image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => '', 'title' => __('Custom Excerpt', 'swiftframework'), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', 'swiftframework'), 'desc' => __("You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated (this is needed if you use the page builder above).", 'swiftframework'), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Team Member Details', 'swiftframework'), 'id' => "{$prefix}heading_team_member_details", 'type' => 'section'), array('name' => __('Position', 'swiftframework'), 'id' => $prefix . 'team_member_position', 'desc' => __("Enter the team member's position within the team.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Email Address', 'swiftframework'), 'id' => $prefix . 'team_member_email', 'desc' => __("Enter the team member's email address.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Phone Number', 'swiftframework'), 'id' => $prefix . 'team_member_phone_number', 'desc' => __("Enter the team member's phone number.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Twitter', 'swiftframework'), 'id' => $prefix . 'team_member_twitter', 'desc' => __("Enter the team member's Twitter username.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Facebook', 'swiftframework'), 'id' => $prefix . 'team_member_facebook', 'desc' => __("Enter the team member's Facebook URL.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('LinkedIn', 'swiftframework'), 'id' => $prefix . 'team_member_linkedin', 'desc' => __("Enter the team member's LinkedIn URL.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Google+', 'swiftframework'), 'id' => $prefix . 'team_member_google_plus', 'desc' => __("Enter the team member's Google+ URL.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Skype', 'swiftframework'), 'id' => $prefix . 'team_member_skype', 'desc' => __("Enter the team member's Skype username.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Instagram', 'swiftframework'), 'id' => $prefix . 'team_member_instagram', 'desc' => __("Enter the team member's Instragram URL (e.g. http://hashgr.am/).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Dribbble', 'swiftframework'), 'id' => $prefix . 'team_member_dribbble', 'desc' => __("Enter the team member's Dribbble username.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => '')));
    /* Clients Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'client_meta_box', 'title' => __('Client Meta', 'swiftframework'), 'pages' => array('clients'), 'fields' => array(array('name' => __('Client Link', 'swiftframework'), 'id' => $prefix . 'client_link', 'desc' => __("Enter the link for the client if you want the image to be clickable.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => '')));
    /* Testimonials Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'testimonials_meta_box', 'title' => __('Testimonial Meta', 'swiftframework'), 'pages' => array('testimonials'), 'fields' => array(array('name' => __('Testimonial Cite', 'swiftframework'), 'id' => $prefix . 'testimonial_cite', 'desc' => __("Enter the cite name for the testimonial.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Testimonial Cite Subtext', 'swiftframework'), 'id' => $prefix . 'testimonial_cite_subtext', 'desc' => __("Enter the cite subtext for the testimonial (optional).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Testimonial Cite Image', 'swiftframework'), 'desc' => __('Enter the cite image for the testimonial (optional).', 'swiftframework'), 'id' => "{$prefix}testimonial_cite_image", 'type' => 'image_advanced', 'max_file_uploads' => 1)));
    /* Slider Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'page_header_meta_box', 'title' => __('Page Header / Slider', 'swiftframework'), 'pages' => array('page'), 'fields' => array(array('name' => __('Page Header Type', 'swiftframework'), 'id' => "{$prefix}page_header_type", 'type' => 'select', 'options' => array('standard' => __('Standard', 'swiftframework'), 'standard-overlay' => __('Standard (Overlay)', 'swiftframework'), 'naked-light' => __('Naked (Light)', 'swiftframework'), 'naked-dark' => __('Naked (Dark)', 'swiftframework'), 'below-slider' => __('Below Slider', 'swiftframework')), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose the type of header that is shown on this page. If you choose one of the Naked header options, then the header will be overlaid over the slider/area below it. NOTE: These options are only applicable for non-vertical headers.', 'swiftframework')), array('name' => __('Use Alt Logo', 'swiftframework'), 'id' => "{$prefix}page_header_alt_logo", 'type' => 'checkbox', 'std' => 0, 'desc' => __('Choose if you would like to use the ALT logo on this page (the logo will revert to the standard logo for the sticky header if you are using it).', 'swiftframework')), array('name' => __('Page Menu', 'swiftframework'), 'id' => "{$prefix}page_menu", 'type' => 'select', 'options' => $menu_list, 'multiple' => false, 'std' => '', 'desc' => __('Optionally you can choose to override the menu that is used on the page. This is ideal if you want to create a page with a anchor link scroll menu.', 'swiftframework')), array('name' => __('Page Slider', 'swiftframework'), 'id' => "{$prefix}page_slider", 'type' => 'select', 'options' => array('none' => __('None', 'swiftframework'), 'swift-slider' => __('Swift Slider', 'swiftframework'), 'revslider' => __('Revolution Slider', 'swiftframework'), 'layerslider' => __('LayerSlider', 'swiftframework'), 'masterslider' => __('Master Slider', 'swiftframework')), 'multiple' => false, 'std' => 'none', 'desc' => __('Choose the type of slider you would like to display at the top of the page, if any. You can then set the slider settings below.', 'swiftframework')), array('name' => '', 'title' => __('Swift Slider Options', 'swiftframework'), 'id' => "{$prefix}ss_options", 'class' => 'pageslider-swift-slider', 'type' => 'section'), array('name' => __('Swift Slider Type', 'swiftframework'), 'id' => "{$prefix}ss_type", 'type' => 'select', 'options' => array('slider' => __('Standard Slider', 'swiftframework'), 'curtain' => __('Curtain Slider', 'swiftframework')), 'multiple' => false, 'std' => 'none', 'class' => 'pageslider-swift-slider', 'desc' => __('Choose if you would like to display the Swift Slider in horizontal slider mode, or vertical curtain slider format.', 'swiftframework')), array('name' => __('Swift Slider Slide Category', 'swiftframework'), 'id' => "{$prefix}ss_category", 'type' => 'select', 'options' => $swift_slider_categories, 'multiple' => false, 'std' => 'none', 'class' => 'pageslider-swift-slider', 'desc' => __('Choose the category of slide that you would like to show, or all.', 'swiftframework')), array('name' => __('Swift Slider Random', 'swiftframework'), 'id' => "{$prefix}ss_random", 'type' => 'checkbox', 'std' => 0, 'class' => 'pageslider-swift-slider', 'desc' => __('Choose if you would like the slider to show slides in random order.', 'swiftframework')), array('name' => __('Swift Slider Slides', 'swiftframework'), 'id' => "{$prefix}ss_slides", 'desc' => __("Set the number of slides to show. If blank then all will show.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'class' => 'pageslider-swift-slider', 'std' => '5'), array('name' => __('Swift Slider Fullscreen', 'swiftframework'), 'id' => "{$prefix}ss_fs", 'type' => 'checkbox', 'std' => 0, 'class' => 'pageslider-swift-slider', 'desc' => __('Choose if you would like the slider to be window height.', 'swiftframework')), array('name' => __('Swift Slider Max Height', 'swiftframework'), 'id' => "{$prefix}ss_maxheight", 'desc' => __("Set the maximum height that the Swift Slider should display at (optional) (no px).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'class' => 'pageslider-swift-slider', 'std' => '600'), array('name' => __('Swift Slider Autoplay', 'swiftframework'), 'id' => "{$prefix}ss_autoplay", 'desc' => __("If you would like the slider to auto-rotate, then set the autoplay rotate time in ms here. I.e. you would enter '5000' for the slider to rotate every 5 seconds.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'class' => 'pageslider-swift-slider', 'std' => ''), array('name' => __('Swift Slider Transition', 'swiftframework'), 'id' => "{$prefix}ss_transition", 'type' => 'select', 'options' => array('slide' => __('Slide', 'swiftframework'), 'fade' => __('Fade', 'swiftframework')), 'multiple' => false, 'std' => 'slide', 'class' => 'pageslider-swift-slider', 'desc' => __('Choose the transition type for the slider.', 'swiftframework')), array('name' => __('Swift Slider Loop', 'swiftframework'), 'id' => "{$prefix}ss_loop", 'type' => 'checkbox', 'std' => 1, 'class' => 'pageslider-swift-slider', 'desc' => __('Choose if you would like the slider to loop (not possible on curtain slider).', 'swiftframework')), array('name' => __('Swift Slider Navigation', 'swiftframework'), 'id' => "{$prefix}ss_nav", 'type' => 'checkbox', 'std' => 1, 'class' => 'pageslider-swift-slider', 'desc' => __('Choose if you would like to display the left/right arrows on the slider (only if slider type is set to "Slider").', 'swiftframework')), array('name' => __('Swift Slider Pagination', 'swiftframework'), 'id' => "{$prefix}ss_pagination", 'type' => 'checkbox', 'std' => 1, 'class' => 'pageslider-swift-slider', 'desc' => __('Choose if you would like to display the slider pagination.', 'swiftframework')), array('name' => __('Swift Slider Continue', 'swiftframework'), 'id' => "{$prefix}ss_continue", 'type' => 'checkbox', 'std' => 1, 'class' => 'pageslider-swift-slider', 'desc' => __('Choose if you would like to display the continue button on Curtain slider type to progress to the content. If you want to only display the slider on the page, and no content, then make sure you set this to NO.', 'swiftframework')), array('name' => '', 'title' => __('Revolution Slider Options', 'swiftframework'), 'id' => "{$prefix}rs_options", 'class' => 'pageslider-revslider', 'type' => 'section'), array('name' => __('Revolution slider alias', 'swiftframework'), 'id' => $prefix . 'rev_slider_alias', 'desc' => __("Enter the revolution slider alias for the slider that you want to show.", 'swiftframework'), 'type' => 'text', 'class' => 'pageslider-revslider', 'std' => ''), array('name' => '', 'title' => __('LayerSlider Options', 'swiftframework'), 'id' => "{$prefix}ls_options", 'class' => 'pageslider-layerslider', 'type' => 'section'), array('name' => __('LayerSlider ID', 'swiftframework'), 'id' => $prefix . 'layerslider_id', 'desc' => __("Enter the LayerSlider ID for the slider that you want to show.", 'swiftframework'), 'type' => 'text', 'class' => 'pageslider-layerslider', 'std' => ''), array('name' => '', 'title' => __('Master Slider Options', 'swiftframework'), 'id' => "{$prefix}ms_options", 'class' => 'pageslider-masterslider', 'type' => 'section'), array('name' => __('Master Slider ID', 'swiftframework'), 'id' => $prefix . 'masterslider_id', 'desc' => __("Enter the Master Slider ID for the slider that you want to show.", 'swiftframework'), 'type' => 'text', 'class' => 'pageslider-masterslider', 'std' => '')));
    /* Page Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'page_meta_box', 'title' => __('Page Meta', 'swiftframework'), 'pages' => array('page'), 'fields' => array(array('name' => '', 'title' => __('One Page Options', 'swiftframework'), 'id' => "{$prefix}heading_onepage", 'type' => 'section'), array('name' => __('Enable One Page Navigation', 'swiftframework'), 'id' => "{$prefix}enable_one_page_nav", 'type' => 'checkbox', 'desc' => __('Enable the one page nav which appears on the right of the page.', 'swiftframework'), 'std' => 0), array('name' => '', 'title' => __('Custom Excerpt', 'swiftframework'), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', 'swiftframework'), 'desc' => __("You can optionally write a custom excerpt here to display content when pages show up in search results.", 'swiftframework'), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Misc. Options', 'swiftframework'), 'id' => "{$prefix}heading_misc", 'type' => 'section'), array('name' => __('Extra page class', 'swiftframework'), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Enable Newsletter Bar', 'swiftframework'), 'id' => "{$prefix}enable_newsletter_bar", 'type' => 'checkbox', 'desc' => __('Enable the newsletter bar, you can configure this in the theme options.', 'swiftframework'), 'std' => 0), array('name' => __('Remove promo bar', 'swiftframework'), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', 'swiftframework'), 'std' => 0), array('name' => __('Remove top spacing', 'swiftframework'), 'id' => "{$prefix}no_top_spacing", 'type' => 'checkbox', 'desc' => __('Remove the spacing at the top of the page.', 'swiftframework'), 'std' => 0), array('name' => __('Remove bottom spacing', 'swiftframework'), 'id' => "{$prefix}no_bottom_spacing", 'type' => 'checkbox', 'desc' => __('Remove the spacing at the bottom of the page.', 'swiftframework'), 'std' => 0)));
    /* Sidebar Meta Box Page
    		================================================== */
    $meta_boxes[] = array('id' => 'sidebar_meta_box_page', 'title' => __('Sidebar Options', 'swiftframework'), 'pages' => array('page'), 'priority' => 'low', 'fields' => array(array('name' => __('Sidebar configuration', 'swiftframework'), 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => __('No Sidebars', 'swiftframework'), 'left-sidebar' => __('Left Sidebar', 'swiftframework'), 'right-sidebar' => __('Right Sidebar', 'swiftframework'), 'both-sidebars' => __('Both Sidebars', 'swiftframework')), 'multiple' => false, 'std' => $default_sidebar_config, 'desc' => __('Choose the sidebar configuration for the detail page of this page.', 'swiftframework')), array('name' => __('Left Sidebar', 'swiftframework'), 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_left_sidebar), array('name' => __('Right Sidebar', 'swiftframework'), 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_right_sidebar)));
    /* Sidebar Meta Box Post
    		================================================== */
    $meta_boxes[] = array('id' => 'sidebar_meta_box_post', 'title' => __('Sidebar Options', 'swiftframework'), 'pages' => array('post'), 'priority' => 'low', 'fields' => array(array('name' => __('Sidebar configuration', 'swiftframework'), 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => __('No Sidebars', 'swiftframework'), 'left-sidebar' => __('Left Sidebar', 'swiftframework'), 'right-sidebar' => __('Right Sidebar', 'swiftframework')), 'multiple' => false, 'std' => $default_post_sidebar_config, 'desc' => __('Choose the sidebar configuration for the detail page of this post.', 'swiftframework')), array('name' => __('Left Sidebar', 'swiftframework'), 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_post_left_sidebar), array('name' => __('Right Sidebar', 'swiftframework'), 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_post_right_sidebar)));
    /* Sidebar Meta Box Product
    		================================================== */
    $meta_boxes[] = array('id' => 'sidebar_meta_box_product', 'title' => __('Sidebar Options', 'swiftframework'), 'pages' => array('product'), 'priority' => 'low', 'fields' => array(array('name' => __('Sidebar configuration', 'swiftframework'), 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => __('No Sidebars', 'swiftframework'), 'left-sidebar' => __('Left Sidebar', 'swiftframework'), 'right-sidebar' => __('Right Sidebar', 'swiftframework'), 'both-sidebars' => __('Both Sidebars', 'swiftframework')), 'multiple' => false, 'std' => $default_product_sidebar_config, 'desc' => __('Choose the sidebar configuration for the detail page of this product.', 'swiftframework')), array('name' => __('Left Sidebar', 'swiftframework'), 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_product_left_sidebar), array('name' => __('Right Sidebar', 'swiftframework'), 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_product_right_sidebar)));
    /* ==================================================
    	
    		Reviews Meta Box
    	
    		================================================== */
    $review_format = $review_cat_1 = $review_cat_2 = $review_cat_3 = $review_cat_4 = $review_suffix = $review_max = $review_step = "";
    if (isset($sf_options['review_format'])) {
        $review_format = $sf_options['review_format'];
    }
    if (isset($sf_options['review_cat_1'])) {
        $review_cat_1 = __($sf_options['review_cat_1'], 'swiftframework');
    }
    if (isset($sf_options['review_cat_2'])) {
        $review_cat_2 = __($sf_options['review_cat_2'], 'swiftframework');
    }
    if (isset($sf_options['review_cat_3'])) {
        $review_cat_3 = __($sf_options['review_cat_3'], 'swiftframework');
    }
    if (isset($sf_options['review_cat_4'])) {
        $review_cat_4 = __($sf_options['review_cat_4'], 'swiftframework');
    }
    if ($review_format == "" || $review_format == "percentage") {
        $review_suffix = " %";
        $review_max = 100;
        $review_step = 1;
    } else {
        $review_suffix = "";
        $review_max = 10;
        $review_step = 0.1;
    }
    $meta_boxes[] = array('id' => 'reviews_meta_box', 'title' => 'Review Meta', 'priority' => 'low', 'pages' => array('post'), 'fields' => array(array('name' => 'Review Post', 'id' => "{$prefix}review_post", 'type' => 'checkbox', 'std' => 0, 'desc' => 'Select this checkbox if this is a review post.'), array('name' => 'Review Category 1 - Name', 'id' => $prefix . 'review_cat_1', 'desc' => 'Enter the name for review category 1.', 'clone' => false, 'type' => 'text', 'std' => $review_cat_1), array('name' => 'Review Category 1 - Value', 'id' => $prefix . 'review_cat_1_value', 'desc' => 'Select the value for review category 1.', 'clone' => false, 'type' => 'slider', 'prefix' => '', 'suffix' => $review_suffix, 'js_options' => array('min' => 0, 'max' => $review_max, 'step' => $review_step)), array('name' => 'Review Category 2 - Name', 'id' => $prefix . 'review_cat_2', 'desc' => 'Enter the name for review category 2.', 'clone' => false, 'type' => 'text', 'std' => $review_cat_2), array('name' => 'Review Category 2 - Value', 'id' => $prefix . 'review_cat_2_value', 'desc' => 'Select the value for review category 2.', 'clone' => false, 'type' => 'slider', 'prefix' => '', 'suffix' => $review_suffix, 'js_options' => array('min' => 0, 'max' => $review_max, 'step' => $review_step)), array('name' => 'Review Category 3 - Name', 'id' => $prefix . 'review_cat_3', 'desc' => 'Enter the name for review category 3.', 'clone' => false, 'type' => 'text', 'std' => $review_cat_3), array('name' => 'Review Category 3 - Value', 'id' => $prefix . 'review_cat_3_value', 'desc' => 'Select the value for review category 3.', 'clone' => false, 'type' => 'slider', 'prefix' => '', 'suffix' => $review_suffix, 'js_options' => array('min' => 0, 'max' => $review_max, 'step' => $review_step)), array('name' => 'Review Category 4 - Name', 'id' => $prefix . 'review_cat_4', 'desc' => 'Enter the name for review category 4.', 'clone' => false, 'type' => 'text', 'std' => $review_cat_4), array('name' => 'Review Category 4 - Value', 'id' => $prefix . 'review_cat_4_value', 'desc' => 'Select the value for review category 4.', 'clone' => false, 'type' => 'slider', 'prefix' => '', 'suffix' => $review_suffix, 'js_options' => array('min' => 0, 'max' => $review_max, 'step' => $review_step)), array('name' => 'Summary Text', 'desc' => "You can write the summary text here to display next to the overall score.", 'id' => "{$prefix}review_summary", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8')));
    /* Gallery Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'gallery_meta_box', 'title' => __('Gallery Options', 'swiftframework'), 'pages' => array('galleries'), 'context' => 'normal', 'fields' => array(array('name' => __('Gallery Images', 'swiftframework'), 'desc' => __('The images that will be used in the gallery.', 'swiftframework'), 'id' => "{$prefix}gallery_images", 'type' => 'image_advanced', 'max_file_uploads' => 200), array('name' => __('Gallery Subtitle', 'swiftframework'), 'id' => $prefix . 'gallery_subtitle', 'desc' => __("Enter a subtitle for use within the galleries list (optional).", 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Gallery Excerpt', 'swiftframework'), 'desc' => __("You can write an excerpt here which will display on the galleries list if you have it set to show.", 'swiftframework'), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => __('Include social sharing', 'swiftframework'), 'id' => "{$prefix}gallery_share", 'type' => 'checkbox', 'desc' => __('Check this box to show social sharing on the detail page.', 'swiftframework'), 'std' => 1)));
    /* Directory Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'directory_meta_box', 'title' => __('Directory Options', 'swiftframework'), 'pages' => array('directory'), 'context' => 'normal', 'fields' => array(array('name' => __('Address', 'swiftframework'), 'id' => $prefix . 'directory_address', 'desc' => __('Enter the address that you would like to show on the map here, i.e. "Cupertino".', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Generate Coordinates', 'swiftframework'), 'id' => $prefix . 'directory_calculate_coordinates', 'desc' => __('Will automatically generate the latitude/longitude coordinates witht the given address.', 'swiftframework'), 'clone' => false, 'type' => 'button', 'std' => 'Generate Coordinates'), array('name' => __('Latitude Coordinate', 'swiftframework'), 'id' => $prefix . 'directory_lat_coord', 'desc' => __('Enter the Latitude coordinate of the Directory Item.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Longitude Coordinate', 'swiftframework'), 'id' => $prefix . 'directory_lng_coord', 'desc' => __('Enter the Longitude coordinate of the Directory Item.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Custom Map Pin', 'swiftframework'), 'desc' => __('Choose an image to use as the custom pin for the address on the map. Upload your custom map pin, the image size must be 150px x 75px.', 'swiftframework'), 'id' => "{$prefix}directory_map_pin", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Pin Link', 'swiftframework'), 'id' => $prefix . 'directory_pin_link', 'desc' => __('Enter the Link url of the location marker.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Pin Button Text', 'swiftframework'), 'id' => $prefix . 'directory_pin_button_text', 'desc' => __('Enter the text of the Pin Button.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => '', 'title' => __('Custom Excerpt', 'swiftframework'), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', 'swiftframework'), 'desc' => __("You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated. If you use the page builder, then you'll want to add content to this box.", 'swiftframework'), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8')));
    return $meta_boxes;
}
}
if ($default_include_social == "") {
    $default_include_social = 1;
}
if ($default_include_related == "") {
    $default_include_related = 1;
}
/* PAGE MENU */
$menu_list = array();
if (function_exists('sf_get_menu_list')) {
    $menu_list = sf_get_menu_list();
}
/* SWIFT SLIDER */
$swift_slider_categories = array();
if (function_exists('sf_get_category_list_key_array')) {
    $swift_slider_categories = sf_get_category_list_key_array('swift-slider-category');
}
/* Thumbnail Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'thumbnail_meta_box', 'title' => __('Thumbnail', 'swiftframework'), 'pages' => array('post'), 'context' => 'normal', 'fields' => array(array('name' => __('Thumbnail type', 'swiftframework'), 'id' => "{$prefix}thumbnail_type", 'type' => 'select', 'options' => array('none' => 'None', 'image' => 'Image', 'video' => 'Video', 'slider' => 'Slider', 'audio' => 'Audio', 'sh-video' => 'Self Hosted Video'), 'multiple' => false, 'std' => $default_thumb_media, 'desc' => __('Choose what will be used for the item thumbnail.', 'swiftframework')), array('name' => __('Thumbnail image', 'swiftframework'), 'desc' => __('The image that will be used as the thumbnail image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Thumbnail video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_url', 'desc' => __('Enter the video url for the thumbnail. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail audio URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_audio_url', 'desc' => __('Enter the audio url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video MP4 URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_mp4', 'desc' => __('Enter the video mp4 url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video WEBM URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_webm', 'desc' => __('Enter the video webm url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video OGG URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_ogg', 'desc' => __('Enter the video ogg url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail gallery', 'swiftframework'), 'desc' => __('The images that will be used in the thumbnail gallery.', 'swiftframework'), 'id' => "{$prefix}thumbnail_gallery", 'type' => 'image_advanced', 'max_file_uploads' => 50), array('name' => __('Thumbnail link type', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_type", 'type' => 'select', 'options' => array('link_to_post' => __('Link to item', 'swiftframework'), 'link_to_url' => __('Link to URL', 'swiftframework'), 'link_to_url_nw' => __('Link to URL (New Window)', 'swiftframework'), 'lightbox_thumb' => __('Lightbox to the thumbnail image', 'swiftframework'), 'lightbox_image' => __('Lightbox to image (select below)', 'swiftframework'), 'lightbox_video' => __('Fullscreen Video Overlay (input below)', 'swiftframework')), 'multiple' => false, 'std' => 'link-to-post', 'desc' => __('Choose what link will be used for the image(s) and title of the item.', 'swiftframework')), array('name' => __('Thumbnail link URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_url', 'desc' => __('Enter the url for the thumbnail link.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail link lightbox image', 'swiftframework'), 'desc' => __('The image that will be used as the lightbox image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_image", 'type' => 'thickbox_image'), array('name' => __('Thumbnail link lightbox video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_video_url', 'desc' => __('Enter the video url for the thumbnail lightbox. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => '')));
/* Thumbnail Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'alt_thumbnail_meta_box', 'title' => __('Thumbnail', 'swiftframework'), 'pages' => array('download'), 'context' => 'normal', 'fields' => array(array('name' => __('Thumbnail type', 'swiftframework'), 'id' => "{$prefix}thumbnail_type", 'type' => 'select', 'options' => array('none' => 'None', 'image' => 'Image', 'video' => 'Video', 'slider' => 'Slider', 'sh-video' => 'Self Hosted Video'), 'multiple' => false, 'std' => 'image', 'desc' => __('Choose what will be used for the item thumbnail.', 'swiftframework')), array('name' => __('Thumbnail image', 'swiftframework'), 'desc' => __('The image that will be used as the thumbnail image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Thumbnail video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_url', 'desc' => __('Enter the video url for the thumbnail. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video MP4 URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_mp4', 'desc' => __('Enter the video mp4 url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video WEBM URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_webm', 'desc' => __('Enter the video webm url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Self Hosted Video OGG URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_ogg', 'desc' => __('Enter the video ogg url for the thumbnail.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail gallery', 'swiftframework'), 'desc' => __('The images that will be used in the thumbnail gallery.', 'swiftframework'), 'id' => "{$prefix}thumbnail_gallery", 'type' => 'image_advanced', 'max_file_uploads' => 50), array('name' => __('Thumbnail link type', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_type", 'type' => 'select', 'options' => array('link_to_post' => __('Link to item', 'swiftframework'), 'link_to_url' => __('Link to URL', 'swiftframework'), 'link_to_url_nw' => __('Link to URL (New Window)', 'swiftframework'), 'lightbox_thumb' => __('Lightbox to the thumbnail image', 'swiftframework'), 'lightbox_image' => __('Lightbox to image (select below)', 'swiftframework'), 'lightbox_video' => __('Fullscreen Video Overlay (input below)', 'swiftframework')), 'multiple' => false, 'std' => 'link-to-post', 'desc' => __('Choose what link will be used for the image(s) and title of the item.', 'swiftframework')), array('name' => __('Thumbnail link URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_url', 'desc' => __('Enter the url for the thumbnail link.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail link lightbox image', 'swiftframework'), 'desc' => __('The image that will be used as the lightbox image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_image", 'type' => 'thickbox_image'), array('name' => __('Thumbnail link lightbox video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_video_url', 'desc' => __('Enter the video url for the thumbnail lightbox. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => '')));
/* Thumbnail Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'alt_thumbnail_meta_box', 'title' => __('Thumbnail', 'swiftframework'), 'pages' => array('portfolio'), 'context' => 'normal', 'fields' => array(array('name' => __('Thumbnail type', 'swiftframework'), 'id' => "{$prefix}thumbnail_type", 'type' => 'select', 'options' => array('none' => 'None', 'image' => 'Image', 'video' => 'Video', 'slider' => 'Slider'), 'multiple' => false, 'std' => 'image', 'desc' => __('Choose what will be used for the item thumbnail.', 'swiftframework')), array('name' => __('Thumbnail image', 'swiftframework'), 'desc' => __('The image that will be used as the thumbnail image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Thumbnail video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_video_url', 'desc' => __('Enter the video url for the thumbnail. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail gallery', 'swiftframework'), 'desc' => __('The images that will be used in the thumbnail gallery.', 'swiftframework'), 'id' => "{$prefix}thumbnail_gallery", 'type' => 'image_advanced', 'max_file_uploads' => 50), array('name' => __('Thumbnail link type', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_type", 'type' => 'select', 'options' => array('link_to_post' => __('Link to item', 'swiftframework'), 'link_to_url' => __('Link to URL', 'swiftframework'), 'link_to_url_nw' => __('Link to URL (New Window)', 'swiftframework'), 'lightbox_thumb' => __('Lightbox to the thumbnail image', 'swiftframework'), 'lightbox_image' => __('Lightbox to image (select below)', 'swiftframework'), 'lightbox_video' => __('Fullscreen Video Overlay (input below)', 'swiftframework')), 'multiple' => false, 'std' => 'link-to-post', 'desc' => __('Choose what link will be used for the image(s) and title of the item.', 'swiftframework')), array('name' => __('Thumbnail link URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_url', 'desc' => __('Enter the url for the thumbnail link.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail link lightbox image', 'swiftframework'), 'desc' => __('The image that will be used as the lightbox image.', 'swiftframework'), 'id' => "{$prefix}thumbnail_link_image", 'type' => 'thickbox_image'), array('name' => __('Thumbnail link lightbox video URL', 'swiftframework'), 'id' => $prefix . 'thumbnail_link_video_url', 'desc' => __('Enter the video url for the thumbnail lightbox. Only links from Vimeo & YouTube are supported.', 'swiftframework'), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail Hover Background Color', 'swiftframework'), 'id' => $prefix . 'port_hover_bg_color', 'desc' => __("Optionally set an alternate background colour for the thumbnail hover.", 'swiftframework'), 'type' => 'color', 'std' => ''), array('name' => __('Thumbnail Hover Text Color', 'swiftframework'), 'id' => $prefix . 'port_hover_text_color', 'desc' => __("Optionally set an alternate text colour for the thumbnail hover.", 'swiftframework'), 'type' => 'color', 'std' => '')));
/* Portfolio Masonry Thumbnail Meta Box
	================================================== */
$meta_boxes[] = array('id' => 'masonry_thumbnail_meta_box', 'title' => __('Masonry Thumbnail', 'swiftframework'), 'pages' => array('portfolio'), 'context' => 'normal', 'fields' => array(array('name' => __('Masonry Thumbnail Size', 'swiftframework'), 'id' => "{$prefix}masonry_thumb_size", 'type' => 'select', 'options' => array('standard' => 'Standard', 'wide' => 'Wide', 'tall' => 'Tall', 'wide-tall' => 'Wide & Tall'), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose the size that you would like the item to show as with the Multi-Size Masonry setup. This will only affect the display in an asset with that display type.', 'swiftframework'))));
/* Detail Media Meta Box
	================================================== */
Beispiel #4
0
function sf_register_meta_boxes()
{
    $prefix = 'sf_';
    $text_domain = "swift-framework-admin";
    global $meta_boxes;
    $meta_boxes = array();
    $options = get_option('sf_dante_options');
    $default_page_heading_bg_alt = $options['default_page_heading_bg_alt'];
    $default_show_page_heading = $options['default_show_page_heading'];
    $default_sidebar_config = $options['default_sidebar_config'];
    $default_left_sidebar = $options['default_left_sidebar'];
    $default_right_sidebar = $options['default_right_sidebar'];
    if (!$default_page_heading_bg_alt || $default_page_heading_bg_alt == "") {
        $default_page_heading_bg_alt = "none";
    }
    if ($default_show_page_heading == "") {
        $default_show_page_heading = 1;
    }
    if ($default_sidebar_config == "") {
        $default_sidebar_config = "no-sidebars";
    }
    if ($default_left_sidebar == "") {
        $default_left_sidebar = "Sidebar-1";
    }
    if ($default_right_sidebar == "") {
        $default_right_sidebar = "Sidebar-1";
    }
    $default_product_sidebar_config = $default_product_left_sidebar = $default_product_right_sidebar = "";
    $default_include_author_info = true;
    if (isset($options['default_product_sidebar_config'])) {
        $default_product_sidebar_config = $options['default_product_sidebar_config'];
    }
    if (isset($options['default_product_left_sidebar'])) {
        $default_product_left_sidebar = $options['default_product_left_sidebar'];
    }
    if (isset($options['default_product_right_sidebar'])) {
        $default_product_right_sidebar = $options['default_product_right_sidebar'];
    }
    if (isset($options['default_include_author_info'])) {
        $default_include_author_info = $options['default_include_author_info'];
    }
    if ($default_product_sidebar_config == "") {
        $default_product_sidebar_config = "no-sidebars";
    }
    if ($default_product_left_sidebar == "") {
        $default_product_left_sidebar = "Sidebar-1";
    }
    if ($default_product_right_sidebar == "") {
        $default_product_right_sidebar = "Sidebar-1";
    }
    $registered_menus = array('' => '');
    $registered_menus = array_merge($registered_menus, get_registered_nav_menus());
    /* Thumbnail Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'thumbnail_meta_box', 'title' => __('Thumbnail Options', $text_domain), 'pages' => array('post', 'portfolio'), 'context' => 'normal', 'fields' => array(array('name' => __('Thumbnail type', $text_domain), 'id' => "{$prefix}thumbnail_type", 'type' => 'select', 'options' => array('none' => 'None', 'image' => 'Image', 'video' => 'Video', 'slider' => 'Slider'), 'multiple' => false, 'std' => 'image', 'desc' => __('Choose what will be used for the item thumbnail.', $text_domain)), array('name' => __('Thumbnail image', $text_domain), 'desc' => __('The image that will be used as the thumbnail image.', $text_domain), 'id' => "{$prefix}thumbnail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Thumbnail video URL', $text_domain), 'id' => $prefix . 'thumbnail_video_url', 'desc' => __('Enter the video url for the thumbnail. Only links from Vimeo & YouTube are supported.', $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail gallery', $text_domain), 'desc' => __('The images that will be used in the thumbnail gallery.', $text_domain), 'id' => "{$prefix}thumbnail_gallery", 'type' => 'image_advanced', 'max_file_uploads' => 50), array('name' => __('Thumbnail link type', $text_domain), 'id' => "{$prefix}thumbnail_link_type", 'type' => 'select', 'options' => array('link_to_post' => __('Link to item', $text_domain), 'link_to_url' => __('Link to URL', $text_domain), 'link_to_url_nw' => __('Link to URL (New Window)', $text_domain), 'lightbox_thumb' => __('Lightbox to the thumbnail image', $text_domain), 'lightbox_image' => __('Lightbox to image (select below)', $text_domain), 'lightbox_video' => __('Fullscreen Video Overlay (input below)', $text_domain)), 'multiple' => false, 'std' => 'link-to-post', 'desc' => __('Choose what link will be used for the image(s) and title of the item.', $text_domain)), array('name' => __('Thumbnail link URL', $text_domain), 'id' => $prefix . 'thumbnail_link_url', 'desc' => __('Enter the url for the thumbnail link.', $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Thumbnail link lightbox image', $text_domain), 'desc' => __('The image that will be used as the lightbox image.', $text_domain), 'id' => "{$prefix}thumbnail_link_image", 'type' => 'thickbox_image'), array('name' => __('Thumbnail link lightbox video URL', $text_domain), 'id' => $prefix . 'thumbnail_link_video_url', 'desc' => __('Enter the video url for the thumbnail lightbox. Only links from Vimeo & YouTube are supported.', $text_domain), 'clone' => false, 'type' => 'text', 'std' => '')));
    /* Detail Media Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'detail_media_meta_box', 'title' => __('Detail Media Options', $text_domain), 'pages' => array('post', 'portfolio'), 'context' => 'normal', 'fields' => array(array('name' => __('Use the thumbnail content', $text_domain), 'id' => "{$prefix}thumbnail_content_main_detail", 'type' => 'checkbox', 'desc' => __('Uncheck this box if you wish to select different media for the main detail display.', $text_domain), 'std' => 0), array('name' => __('Post detail type', $text_domain), 'id' => "{$prefix}detail_type", 'type' => 'select', 'options' => array('none' => __('None', $text_domain), 'image' => __('Image', $text_domain), 'video' => __('Video', $text_domain), 'slider' => __('Standard Slider', $text_domain), 'layer-slider' => __('Revolution/Layer Slider', $text_domain), 'custom' => __('Custom', $text_domain)), 'multiple' => false, 'std' => 'image', 'desc' => __('Choose what will be used for the post item detail.', $text_domain)), array('name' => __('Post detail image', $text_domain), 'desc' => __('The image that will be used as the post detail image.', $text_domain), 'id' => "{$prefix}detail_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Post detail video URL', $text_domain), 'id' => $prefix . 'detail_video_url', 'desc' => __('Enter the video url for the post thumbnail. Only links from Vimeo & YouTube are supported.', $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Post detail gallery', $text_domain), 'desc' => __('The images that will be used in the post detail gallery.', $text_domain), 'id' => "{$prefix}detail_gallery", 'type' => 'image_advanced', 'max_file_uploads' => 50), array('name' => __('Revolution slider alias', $text_domain), 'id' => $prefix . 'detail_rev_slider_alias', 'desc' => __("Enter the revolution slider alias for the slider that you want to show.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Layer Slider alias', $text_domain), 'id' => $prefix . 'detail_layer_slider_alias', 'desc' => __("Enter the Layer Slider ID for the slider that you want to show.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Custom detail display', $text_domain), 'desc' => __("If you'd like to provide your own detail media, please add it here", $text_domain), 'id' => "{$prefix}custom_media", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8')));
    /* Page Heading Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'page_heading_meta_box', 'title' => __('Page Heading Options', $text_domain), 'pages' => array('post', 'portfolio', 'page', 'product', 'team', 'galleries'), 'context' => 'normal', 'fields' => array(array('name' => __('Show page title', $text_domain), 'id' => "{$prefix}page_title", 'type' => 'checkbox', 'desc' => __('Show the page title at the top of the page.', $text_domain), 'std' => $default_show_page_heading), array('name' => __('Page Title Style', $text_domain), 'id' => "{$prefix}page_title_style", 'type' => 'select', 'options' => array('standard' => __('Standard', $text_domain), 'fancy' => __('Fancy', $text_domain)), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose the heading style.', $text_domain)), array('name' => __('Page Title', $text_domain), 'id' => $prefix . 'page_title_one', 'desc' => __("Enter a custom page title if you'd like.", $text_domain), 'type' => 'text', 'std' => ''), array('name' => __('Page Subtitle', $text_domain), 'id' => $prefix . 'page_subtitle', 'desc' => __("Enter a custom page title if you'd like (Fancy Page Title Style Only).", $text_domain), 'type' => 'text', 'std' => ''), array('name' => __('Remove breadcrumbs', $text_domain), 'id' => "{$prefix}no_breadcrumbs", 'type' => 'checkbox', 'desc' => __('Remove the breadcrumbs on the page (only shown on standard page titles).', $text_domain), 'std' => 0), array('name' => __('Page Title Background', $text_domain), 'id' => "{$prefix}page_title_bg", 'type' => 'select', 'options' => array('none' => __('None', $text_domain), 'alt-one' => __('Alt 1', $text_domain), 'alt-two' => __('Alt 2', $text_domain), 'alt-three' => __('Alt 3', $text_domain), 'alt-four' => __('Alt 4', $text_domain), 'alt-five' => __('Alt 5', $text_domain), 'alt-six' => __('Alt 6', $text_domain), 'alt-seven' => __('Alt 7', $text_domain), 'alt-eight' => __('Alt 8', $text_domain), 'alt-nine' => __('Alt 9', $text_domain), 'alt-ten' => __('Alt 10', $text_domain)), 'multiple' => false, 'std' => $default_page_heading_bg_alt, 'desc' => __('Choose the background for the page title (configured in the Dante Options panel).', $text_domain)), array('name' => '', 'id' => "{$prefix}altbg-preview", 'type' => 'altbgpreview'), array('name' => __('Fancy Heading Background Image', $text_domain), 'desc' => __('The image that will be used as the background for the fancy header. This will override the alt background selection.', $text_domain), 'id' => "{$prefix}page_title_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Fancy Heading Text Style', $text_domain), 'id' => "{$prefix}page_title_text_style", 'type' => 'select', 'options' => array('light' => __('Light', $text_domain), 'dark' => __('Dark', $text_domain)), 'multiple' => false, 'std' => 'light', 'desc' => __('If you uploaded an image in the option above, choose light/dark styling for the text heading text here.', $text_domain))));
    /* Portfolio Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'portfolio_meta_box', 'title' => __('Portfolio Meta', $text_domain), 'pages' => array('portfolio'), 'context' => 'normal', 'fields' => array(array('name' => '', 'title' => __('Portfolio Item Details', $text_domain), 'id' => "{$prefix}heading_item_details", 'type' => 'section'), array('name' => __('Subtitle', $text_domain), 'id' => $prefix . 'portfolio_subtitle', 'desc' => __("Enter a subtitle for use within the portfolio item index (optional).", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('External Link', $text_domain), 'id' => $prefix . 'portfolio_external_link', 'desc' => __("Enter an external link for the item  (optional) (NOTE: INCLUDE HTTP://).", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => '', 'title' => __('Custom Excerpt', $text_domain), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', $text_domain), 'desc' => __("You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated. If you use the page builder, then you'll want to add content to this box.", $text_domain), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Main Detail Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Media Display', $text_domain), 'id' => "{$prefix}fw_media_display", 'type' => 'select', 'options' => array('fw-media' => __('Full Width Media', $text_domain), 'split' => __('Split Media / Description', $text_domain), 'standard' => __('Standard', $text_domain)), 'multiple' => false, 'std' => 'standard', 'desc' => __('Choose how you would like to display your selected media - full width (edge to edge), split, or standard (media with content below).', $text_domain)), array('name' => __('Item Sidebar Content', $text_domain), 'desc' => __("You can optionally add some content here to display in the details column, including shortcodes etc. Only visible on Standard and Full Width Media display types.", $text_domain), 'id' => "{$prefix}item_sidebar_content", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => __('Hide item details bar', $text_domain), 'id' => "{$prefix}hide_details", 'type' => 'checkbox', 'desc' => __('Check this box to hide the item details on the detail page.', $text_domain), 'std' => 0), array('name' => __('Include social sharing', $text_domain), 'id' => "{$prefix}social_sharing", 'type' => 'checkbox', 'desc' => __('Check this box to show social sharing icons on the detail page.', $text_domain), 'std' => 1), array('name' => '', 'title' => __('Swift Slider Entry Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Slide background image', $text_domain), 'desc' => __('The image that will be used as the slide image in the Swift Slider.', $text_domain), 'id' => "{$prefix}posts_slider_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Caption Position', $text_domain), 'id' => "{$prefix}caption_position", 'type' => 'select', 'options' => array('caption-left' => __('Left', $text_domain), 'caption-right' => __('Right', $text_domain)), 'multiple' => false, 'std' => 'caption-right', 'desc' => __('Choose which side you would like to display the caption over the slide.', $text_domain)), array('name' => '', 'title' => __('Misc. Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Extra page class', $text_domain), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove promo bar', $text_domain), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', $text_domain), 'std' => 0)));
    /* Page Background Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'page_background_meta_box', 'title' => __('Page Background Options', $text_domain), 'pages' => array('post', 'portfolio', 'page'), 'context' => 'normal', 'fields' => array(array('name' => __('Background Image', $text_domain), 'desc' => __('The image that will be used as the OUTER page background image.', $text_domain), 'id' => "{$prefix}background_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Background Image Size', $text_domain), 'desc' => __('For fullscreen images, choose Cover. For repeating patterns, choose Auto.', $text_domain), 'id' => "{$prefix}background_image_size", 'type' => 'select', 'options' => array('cover' => 'Cover', 'auto' => 'Auto'), 'multiple' => false, 'std' => 'cover'), array('name' => __('Inner Background Image', $text_domain), 'desc' => __('The image that will be used as the INNER page background image.', $text_domain), 'id' => "{$prefix}inner_background_image", 'type' => 'image_advanced', 'max_file_uploads' => 1)));
    /* Post Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'post_meta_box', 'title' => __('Post Meta', $text_domain), 'pages' => array('post'), 'context' => 'normal', 'fields' => array(array('name' => '', 'title' => __('Custom Excerpt', $text_domain), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', $text_domain), 'desc' => __("You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated. If you use the page builder, then you'll want to add content to this box.", $text_domain), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Main Detail Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Full Width Media Display', $text_domain), 'id' => "{$prefix}full_width_display", 'type' => 'checkbox', 'desc' => __('Check this box to show the detail media above the page content / sidebar config, rather than inside the page content.', $text_domain), 'std' => 0), array('name' => __('Include author info', $text_domain), 'id' => "{$prefix}author_info", 'type' => 'checkbox', 'desc' => __('Check this box to show the author info box on the detail page.', $text_domain), 'std' => $default_include_author_info), array('name' => __('Include social sharing', $text_domain), 'id' => "{$prefix}social_sharing", 'type' => 'checkbox', 'desc' => __('Check this box to show social sharing icons on the detail page.', $text_domain), 'std' => 1), array('name' => __('Include related articles', $text_domain), 'id' => "{$prefix}related_articles", 'type' => 'checkbox', 'desc' => __('Check this box to show related articles on the detail page.', $text_domain), 'std' => 1), array('name' => '', 'title' => __('Sidebar Options', $text_domain), 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => __('Sidebar configuration', $text_domain), 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => __('No Sidebars', $text_domain), 'left-sidebar' => __('Left Sidebar', $text_domain), 'right-sidebar' => __('Right Sidebar', $text_domain), 'both-sidebars' => __('Both Sidebars', $text_domain)), 'multiple' => false, 'std' => $default_sidebar_config, 'desc' => __('Choose the sidebar configuration for the detail page of this post.', $text_domain)), array('name' => __('Left Sidebar', $text_domain), 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_left_sidebar), array('name' => __('Right Sidebar', $text_domain), 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_right_sidebar), array('name' => '', 'title' => __('Swift Slider Entry Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Slide background image', $text_domain), 'desc' => __('The image that will be used as the slide image in the Swift Slider.', $text_domain), 'id' => "{$prefix}posts_slider_image", 'type' => 'image_advanced', 'max_file_uploads' => 1), array('name' => __('Caption Position', $text_domain), 'id' => "{$prefix}caption_position", 'type' => 'select', 'options' => array('caption-left' => __('Left', $text_domain), 'caption-right' => __('Right', $text_domain)), 'multiple' => false, 'std' => 'caption-right', 'desc' => __('Choose which side you would like to display the caption over the slide.', $text_domain)), array('name' => '', 'title' => __('Misc. Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Extra page class', $text_domain), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove promo bar', $text_domain), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', $text_domain), 'std' => 0)));
    /* Product Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'product_meta_box', 'title' => __('Product Meta', $text_domain), 'pages' => array('product'), 'context' => 'normal', 'fields' => array(array('name' => '', 'title' => __('Product Description', $text_domain), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Product Short Description', $text_domain), 'desc' => __("You can optionally write a short description here, which shows above the variations/shopping bag options.", $text_domain), 'id' => "{$prefix}product_short_description", 'type' => 'wysiwyg', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => __('Product Description', $text_domain), 'desc' => __("You can optionally write a product description here, which shows under the description accordion heading if you have the page builder enabled for product pages.", $text_domain), 'id' => "{$prefix}product_description", 'type' => 'wysiwyg', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Sidebar Options', $text_domain), 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => __('Sidebar configuration', $text_domain), 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => __('No Sidebars', $text_domain), 'left-sidebar' => __('Left Sidebar', $text_domain), 'right-sidebar' => __('Right Sidebar', $text_domain), 'both-sidebars' => __('Both Sidebars', $text_domain)), 'multiple' => false, 'std' => $default_product_sidebar_config, 'desc' => __('Choose the sidebar configuration for the detail page of this product.', $text_domain)), array('name' => __('Left Sidebar', $text_domain), 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_product_left_sidebar), array('name' => __('Right Sidebar', $text_domain), 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_product_right_sidebar), array('name' => '', 'title' => __('Misc. Options', $text_domain), 'id' => "{$prefix}heading_detail", 'type' => 'section'), array('name' => __('Extra page class', $text_domain), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove promo bar', $text_domain), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', $text_domain), 'std' => 0)));
    /* Team Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'team_meta_box', 'title' => __('Team Member Meta', $text_domain), 'pages' => array('team'), 'fields' => array(array('name' => '', 'title' => __('Custom Excerpt', $text_domain), 'id' => "{$prefix}heading_custom_excerpt", 'type' => 'section'), array('name' => __('Custom excerpt', $text_domain), 'desc' => __("You can optionally write a custom excerpt here to display instead of the excerpt that is automatically generated (this is needed if you use the page builder above).", $text_domain), 'id' => "{$prefix}custom_excerpt", 'type' => 'textarea', 'std' => "", 'cols' => '40', 'rows' => '8'), array('name' => '', 'title' => __('Team Member Details', $text_domain), 'id' => "{$prefix}heading_team_member_details", 'type' => 'section'), array('name' => __('Position', $text_domain), 'id' => $prefix . 'team_member_position', 'desc' => __("Enter the team member's position within the team.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Email Address', $text_domain), 'id' => $prefix . 'team_member_email', 'desc' => __("Enter the team member's email address.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Phone Number', $text_domain), 'id' => $prefix . 'team_member_phone_number', 'desc' => __("Enter the team member's phone number.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Twitter', $text_domain), 'id' => $prefix . 'team_member_twitter', 'desc' => __("Enter the team member's Twitter username.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Facebook', $text_domain), 'id' => $prefix . 'team_member_facebook', 'desc' => __("Enter the team member's Facebook URL.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('LinkedIn', $text_domain), 'id' => $prefix . 'team_member_linkedin', 'desc' => __("Enter the team member's LinkedIn URL.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Google+', $text_domain), 'id' => $prefix . 'team_member_google_plus', 'desc' => __("Enter the team member's Google+ URL.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Skype', $text_domain), 'id' => $prefix . 'team_member_skype', 'desc' => __("Enter the team member's Skype username.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Instagram', $text_domain), 'id' => $prefix . 'team_member_instagram', 'desc' => __("Enter the team member's Instragram URL (e.g. http://hashgr.am/).", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Dribbble', $text_domain), 'id' => $prefix . 'team_member_dribbble', 'desc' => __("Enter the team member's Dribbble username.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Xing', $text_domain), 'id' => $prefix . 'team_member_xing', 'desc' => __("Enter the team member's Xing URL.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => '')));
    /* Clients Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'client_meta_box', 'title' => __('Client Meta', $text_domain), 'pages' => array('clients'), 'fields' => array(array('name' => __('Client Link', $text_domain), 'id' => $prefix . 'client_link', 'desc' => __("Enter the link for the client if you want the image to be clickable.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Link to same window', $text_domain), 'id' => "{$prefix}client_link_same_window", 'type' => 'checkbox', 'desc' => __('Check this box to set the client link to open in the same browser window/tab.', $text_domain), 'std' => 1)));
    /* Testimonials Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'testimonials_meta_box', 'title' => __('Testimonial Meta', $text_domain), 'pages' => array('testimonials'), 'fields' => array(array('name' => __('Testimonial Cite', $text_domain), 'id' => $prefix . 'testimonial_cite', 'desc' => __("Enter the cite name for the testimonial.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Testimonial Cite Subtext', $text_domain), 'id' => $prefix . 'testimonial_cite_subtext', 'desc' => __("Enter the cite subtext for the testimonial (optional).", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Testimonial Cite Image', $text_domain), 'desc' => __('Enter the cite image for the testimonial (optional).', $text_domain), 'id' => "{$prefix}testimonial_cite_image", 'type' => 'image_advanced', 'max_file_uploads' => 1)));
    /* Slider Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'slider_meta_box', 'title' => __('Page Slider Options', $text_domain), 'pages' => array('page'), 'fields' => array(array('name' => __('Show Swift Slider', $text_domain), 'id' => "{$prefix}posts_slider", 'type' => 'checkbox', 'desc' => __('Show the Swift Slider at the top of the page.', $text_domain), 'std' => 0), array('name' => __('Swift Slider Type', $text_domain), 'id' => "{$prefix}posts_slider_type", 'type' => 'select', 'options' => array('post' => __('Posts', $text_domain), 'portfolio' => __('Portfolio', $text_domain), 'hybrid' => __('Hybrid', $text_domain)), 'multiple' => false, 'std' => 'post', 'desc' => __('Choose the post type to display in the Swift Slider.', $text_domain)), array('name' => __('Swift Slider category', $text_domain), 'id' => "{$prefix}posts_slider_category", 'type' => 'select', 'desc' => __('Select the category for which the Swift Slider should show posts from.', $text_domain), 'options' => sf_get_category_list_key_array('category'), 'std' => ''), array('name' => __('Swift Slider portfolio category', $text_domain), 'id' => "{$prefix}posts_slider_portfolio_category", 'type' => 'select', 'desc' => __('Select the category for which the Swift Slider should show portfolio items from.', $text_domain), 'options' => sf_get_category_list_key_array('portfolio-category'), 'std' => ''), array('name' => __('Swift Slider count', $text_domain), 'id' => $prefix . 'posts_slider_count', 'desc' => __("The number of posts to show in the Swift Slider.", $text_domain), 'type' => 'text', 'std' => '5'), array('name' => __('Revolution slider alias', $text_domain), 'id' => $prefix . 'rev_slider_alias', 'desc' => __("Enter the revolution slider alias for the slider that you want to show. NOTE: If you have the Swift Slider enabled above, then this will be ignored.", $text_domain), 'type' => 'text', 'std' => ''), array('name' => __('LayerSlider ID', $text_domain), 'id' => $prefix . 'layerslider_id', 'desc' => __("Enter the LayerSlider ID for the slider that you want to show. NOTE: If you have the Swift Slider enabled above, then this will be ignored.", $text_domain), 'type' => 'text', 'std' => '')));
    /* Page Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'page_meta_box', 'title' => __('Page Meta', $text_domain), 'pages' => array('page'), 'fields' => array(array('name' => '', 'title' => __('Header Options', $text_domain), 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => __('Enable Naked Header', $text_domain), 'id' => "{$prefix}enable_naked_header", 'type' => 'select', 'options' => array('' => __('Standard Header', $text_domain), 'naked-light' => __('Naked (Light)', $text_domain), 'naked-dark' => __('Naked (Dark)', $text_domain)), 'desc' => __('Enable naked header on this page. NOTE: It is important that you use a page slider for the naked header to be shown over.', $text_domain), 'std' => ''), array('name' => '', 'title' => __('Sidebar Options', $text_domain), 'id' => "{$prefix}heading_sidebar", 'type' => 'section'), array('name' => __('Sidebar configuration', $text_domain), 'id' => "{$prefix}sidebar_config", 'type' => 'select', 'options' => array('no-sidebars' => __('No Sidebars', $text_domain), 'left-sidebar' => __('Left Sidebar', $text_domain), 'right-sidebar' => __('Right Sidebar', $text_domain), 'both-sidebars' => __('Both Sidebars', $text_domain)), 'multiple' => false, 'std' => $default_sidebar_config, 'desc' => __('Choose the sidebar configuration for the detail page of this page.', $text_domain)), array('name' => __('Left Sidebar', $text_domain), 'id' => "{$prefix}left_sidebar", 'type' => 'sidebars', 'std' => $default_left_sidebar), array('name' => __('Right Sidebar', $text_domain), 'id' => "{$prefix}right_sidebar", 'type' => 'sidebars', 'std' => $default_right_sidebar), array('name' => '', 'title' => __('One Page Options', $text_domain), 'id' => "{$prefix}heading_onepage", 'type' => 'section'), array('name' => __('Enable One Page Navigation', $text_domain), 'id' => "{$prefix}enable_one_page_nav", 'type' => 'checkbox', 'desc' => __('Enable the one page nav which appears on the right of the page.', $text_domain), 'std' => 0), array('name' => '', 'title' => __('Misc. Options', $text_domain), 'id' => "{$prefix}heading_misc", 'type' => 'section'), array('name' => __('Page Menu', 'swift-framework-admin'), 'id' => "{$prefix}page_menu", 'type' => 'select', 'options' => sf_get_menu_list(), 'multiple' => false, 'std' => '', 'desc' => __('Optionally you can choose to override the menu that is used on the page. This is ideal if you want to create a page with a anchor link scroll menu.', 'swift-framework-admin')), array('name' => __('Extra page class', $text_domain), 'id' => $prefix . 'extra_page_class', 'desc' => __("If you wish to add extra classes to the body class of the page (for custom css use), then please add the class(es) here.", $text_domain), 'clone' => false, 'type' => 'text', 'std' => ''), array('name' => __('Remove promo bar', $text_domain), 'id' => "{$prefix}remove_promo_bar", 'type' => 'checkbox', 'desc' => __('Remove the promo bar at the bottom of the page.', $text_domain), 'std' => 0), array('name' => __('Remove top spacing', $text_domain), 'id' => "{$prefix}no_top_spacing", 'type' => 'checkbox', 'desc' => __('Remove the spacing at the top of the page.', $text_domain), 'std' => 0), array('name' => __('Remove bottom spacing', $text_domain), 'id' => "{$prefix}no_bottom_spacing", 'type' => 'checkbox', 'desc' => __('Remove the spacing at the bottom of the page.', $text_domain), 'std' => 0)));
    /* Gallery Meta Box
    		================================================== */
    $meta_boxes[] = array('id' => 'gallery_meta_box', 'title' => __('Gallery Options', $text_domain), 'pages' => array('galleries'), 'context' => 'normal', 'fields' => array(array('name' => __('Gallery Images', $text_domain), 'desc' => __('The images that will be used in the gallery.', $text_domain), 'id' => "{$prefix}gallery_images", 'type' => 'image_advanced', 'max_file_uploads' => 200)));
    return $meta_boxes;
}