'desc' => __( 'Show comments of the song.', 'yit' ) ); yit_add_option_metabox( 'yit-post-settings', __( 'Post formats', 'yit' ), '_format_audio_comments', 'onoff', $options ); $options = array( 'title' => __( 'Auto play', 'yit' ), 'desc' => __( 'Automatically play the sond.', 'yit' ) ); yit_add_option_metabox( 'yit-post-settings', __( 'Post formats', 'yit' ), '_format_audio_autoplay', 'onoff', $options ); $options = array( 'title' => __( 'Color', 'yit' ), 'desc' => __( 'Template color.', 'yit' ) ); yit_add_option_metabox( 'yit-post-settings', __( 'Post formats', 'yit' ), '_format_audio_color', 'colorpicker', $options ); yit_metaboxes_sep( 'yit-post-settings', __( 'Post formats', 'yit' ) ); $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' ),
$options = array( 'title' => __( 'Link', 'yit' ), 'desc' => __( 'Insert the link for Logo.', 'yit' ), ); yit_add_option_metabox( 'yit-logo-site', __( 'Settings', 'yit' ), '_site-link', 'text', $options ); /** * SITEMAP */ $options = array( 'title' => __( 'Hide in Sitemap', 'yit' ), 'desc' => __( 'Do not show in Sitemap.', 'yit' ), ); 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 */
/** * 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' => __('Show breadcrumb', 'yit'), 'desc' => __('Show or not the breadcrumb.', 'yit')); yit_add_option_metabox('yit-page-settings', __('Settings', 'yit'), '_show-breadcrumb', 'checkbox', $options); yit_metaboxes_sep('yit-page-settings', __('Settings', 'yit')); $options = array('title' => __('Sidebar', 'yit'), 'desc' => __('Select the sidebar layout and the sidebar to use.', 'yit')); yit_add_option_metabox('yit-page-settings', __('Settings', 'yit'), '_sidebar-layout', 'sidebar-layout', $options); yit_add_option_metabox('yit-post-settings', __('Settings', 'yit'), '_sidebar-layout', 'sidebar-layout', $options); /** * HEADER TAB */ $options = array('title' => __('Use static image', 'yit'), 'desc' => __('Set YES if you want a static header.', 'yit'), 'std' => 0); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_use_static_image', 'onoff', $options); $options = array('title' => __('Static image', 'yit'), 'desc' => __('Upload here the image to use for the static header, only if you have set to YES the option above.', 'yit'), 'std' => ''); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_static_image', 'upload', $options); $options = array('title' => __('Static image Link', 'yit'), 'desc' => __('The URL where the fixed image will link.', 'yit'), 'std' => ''); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_static_image_link', 'text', $options); $options = array('title' => __('Static image target', 'yit'), 'desc' => __('How to open the link of the static image.', 'yit'), 'options' => array('_self' => __('Default', 'yit'), '_parent' => __('Parent frameset', 'yit'), '_top' => __('Full body of the window', 'yit'), '_blank' => __('In a new window', 'yit'))); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_static_image_target', 'select', $options); /** * TESTIMONIAL */ $options = array('title' => __('Label', 'yit'), 'desc' => __('Insert the label used for testimonial if Website Url is set.', 'yit')); yit_add_option_metabox('yit-testimonial-site', __('Settings', 'yit'), '_site-label', 'text', $options); yit_metaboxes_sep('yit-testimonial-site', __('Settings', 'yit')); $options = array('title' => __('Web Site URL', 'yit'), 'desc' => __('Insert the url referred to Testimonial.', 'yit')); yit_add_option_metabox('yit-testimonial-site', __('Settings', 'yit'), '_site-url', 'text', $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';