* TESTIMONIALS */ yit_metaboxes_sep('yit-testimonial-site', __('Settings', 'yit')); $options = array('title' => __('Small quote', 'yit'), 'desc' => __('Insert the text to show with blockquote', 'yit')); yit_add_option_metabox('yit-testimonial-site', __('Settings', 'yit'), '_small-quote', 'text', $options); /* HEADER */ yit_metaboxes_sep('yit-page-settings', __('Header', 'yit')); $options = array('title' => __('Enable custom header background', 'yit'), 'desc' => __('Set YES if you want to customize the header background.', 'yit'), 'std' => 0); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_enable_custom_header', 'onoff', $options); /* $options = array( 'title' => __( 'Header Min-Height', 'yit' ), 'desc' => __( 'Select the min-height of the header.', 'yit' ), 'std' => 0 ); yit_add_option_metabox( 'yit-page-settings', __( 'Header', 'yit' ), '_header-height', 'number', $options ); */ $options = array('title' => __('Header background color', 'yit'), 'desc' => __('Select a background color for the header.', 'yit')); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_background-header', 'colorpicker', $options); $options = array('title' => __('Header background image', 'yit'), 'desc' => __('Select a background image for the header.', 'yit')); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_background-header-image', 'upload', $options); $options = array('title' => __('Background repeat', 'yit'), 'desc' => __('Select the repeat mode for the background image.', 'yit'), 'options' => array('' => __('Default', 'yit'), 'repeat' => __('Repeat', 'yit'), 'repeat-x' => __('Repeat Horizontally', 'yit'), 'repeat-y' => __('Repeat Vertically', 'yit'), 'no-repeat' => __('No Repeat', 'yit'))); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_background-header-repeat', 'select', $options); $options = array('title' => __('Background position', 'yit'), 'desc' => __('Select the position for the background image.', 'yit'), 'options' => array('' => __('Default', 'yit'), 'center' => __('Center', 'yit'), 'top left' => __('Top left', 'yit'), 'top center' => __('Top center', 'yit'), 'top right' => __('Top right', 'yit'), 'bottom left' => __('Bottom left', 'yit'), 'bottom center' => __('Bottom center', 'yit'), 'bottom right' => __('Bottom right', 'yit'))); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_background-header-position', 'select', $options); $options = array('title' => __('Background attachment', 'yit'), 'desc' => __('Select the attachment for the background image.', 'yit'), 'options' => array('' => __('Default', 'yit'), 'scroll' => __('Scroll', 'yit'), 'fixed' => __('Fixed', 'yit'))); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_background-header-attachment', 'select', $options); yit_metaboxes_sep('yit-page-settings', __('Header', 'yit')); $options = array('title' => __('Border bottom of header', 'yit'), 'desc' => __('Select what you want to do for the border bottom of the header, for this page.', 'yit'), 'options' => array('default' => __('Default', 'yit'), 'enable' => __('Enable', 'yit'), 'remove' => __('Remove', 'yit'))); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_header-border-bottom-custom', 'select', $options);
$options = array( 'title' => __( 'Video ID', 'yit' ), 'desc' => __( 'Insert the video URL.', 'yit' ) ); yit_add_option_metabox( 'yit-post-settings', __( 'Post formats', 'yit' ), '_format_video', 'text', $options ); $options = array( 'title' => __( 'Host', 'yit' ), 'desc' => __( 'Select where is the video hosted.', 'yit' ), 'options' => array( 'youtube' => __( 'YouTube', 'yit' ), 'vimeo' => __( 'Vimeo', 'yit' ), 'dailymotion' => __( 'DailyMotion', 'yit' ), 'yahoo' => __( 'Yahoo!', 'yit' ), 'bliptv' => __( 'Blip TV', 'yit' ), 'viddler' => __( 'Viddler', 'yit' ), 'veoh' => __( 'Veoh', 'yit' ) ) ); yit_add_option_metabox( 'yit-post-settings', __( 'Post formats', 'yit' ), '_format_video_host', 'select', $options ); /** * EXTRA CONTENT */ $options = array( 'desc' => __( 'Put here the content you want to show after content and sidebar.', 'yit' ), ); yit_add_option_metabox( 'yit-page-extra-content', __( 'Extra content', 'yit' ), '_extra-content', 'textarea-editor', $options ); include_once YIT_THEME_FUNC_DIR . '/metaboxes.php';
yit_metaboxes_sep( 'yit-page-settings', __( 'Settings', 'yit' ) ); yit_add_option_metabox( 'yit-page-settings', __( 'Settings', 'yit' ), '_exclude-sitemap', 'checkbox', $options ); yit_metaboxes_sep( 'yit-post-settings', __( 'Settings', 'yit' ) ); yit_add_option_metabox( 'yit-post-settings', __( 'Settings', 'yit' ), '_exclude-sitemap', 'checkbox', $options ); /** * PRODUCT SIDEBAR LAYOUT */ yit_register_metabox ( 'yit-custom-product-settings', __( 'Product Page Settings', 'yit' ), 'product' ); /** * PRODUCT CUSTOM TABS */ $options = array( 'title' => __( 'Show ask info form?', 'yit' ), 'desc' => __( 'Set YES if you want a tab with the "Ask Info" form.', 'yit' ), 'std' => (yit_get_option('shop-products-details-contact-form') != -1) ? 1 : 0 , // -1 No from selected ); yit_add_option_metabox( 'yit-custom-product-settings', __( 'Tabs', 'yit' ), '_use_ask_info', 'onoff', $options ); $options = array( 'title' => __( 'Tabs', 'yit' ), 'desc' => __( 'Insert a custom tab.', 'yit' ), ); yit_add_option_metabox ( 'yit-custom-product-settings', __( 'Tabs', 'yit' ), '_custom_tabs', 'customtabs', $options );