'desc' => __( 'Description for this page.', 'yit' ), ); yit_add_option_metabox( 'yit-page-settings', __( 'SEO', 'yit' ), '_seo-description', 'text', $options ); yit_add_option_metabox( 'yit-post-settings', __( 'SEO', 'yit' ), '_seo-description', 'text', $options ); if( is_shop_installed() ) { yit_add_option_metabox( 'yit-custom-product-settings', __( 'SEO', 'yit' ), '_seo-description', 'text', $options ); } yit_metaboxes_sep( 'yit-page-settings', __( 'SEO', 'yit' ) ); /** * HEADER TAB */ $options = array( 'title' => __( 'Slider', 'yit' ), 'options' => array( '' => __( 'Default', 'yit' ), 'none' => __( 'None', 'yit' ) ) + yit_get_sliders(), 'desc' => __( 'Select the slider that you want to use in the page.', 'yit' ), ); yit_add_option_metabox( 'yit-page-settings', __( 'Header', 'yit' ), '_slider_name', 'select', $options ); yit_metaboxes_sep( 'yit-page-settings', __( 'Header', 'yit' ) ); $options = array( 'title' => __( 'Use static image', 'yit' ), 'desc' => __( 'Set YES if you want a static header, instead of the slider.', 'yit' ), 'std' => 0 ); yit_add_option_metabox( 'yit-page-settings', __( 'Header', 'yit' ), '_use_static_image', 'onoff', $options ); $options = array( 'title' => __( 'Static image', 'yit' ),
$options = array('title' => __('Title', 'yit'), 'desc' => __('This title will be used when a user visit the page.', 'yit')); yit_add_option_metabox('yit-page-settings', __('SEO', 'yit'), '_seo-title', 'text', $options); yit_add_option_metabox('yit-post-settings', __('SEO', 'yit'), '_seo-title', 'text', $options); yit_metaboxes_sep('yit-page-settings', __('SEO', 'yit')); $options = array('title' => __('Keywords', 'yit'), 'desc' => __('Keywords for this page.', 'yit')); yit_add_option_metabox('yit-page-settings', __('SEO', 'yit'), '_seo-keywords', 'text', $options); yit_add_option_metabox('yit-post-settings', __('SEO', 'yit'), '_seo-keywords', 'text', $options); yit_metaboxes_sep('yit-page-settings', __('SEO', 'yit')); $options = array('title' => __('Description', 'yit'), 'desc' => __('Description for this page.', 'yit')); yit_add_option_metabox('yit-page-settings', __('SEO', 'yit'), '_seo-description', 'text', $options); yit_add_option_metabox('yit-post-settings', __('SEO', 'yit'), '_seo-description', 'text', $options); yit_metaboxes_sep('yit-page-settings', __('SEO', 'yit')); /** * HEADER TAB */ $options = array('title' => __('Slider', 'yit'), 'options' => array('' => __('Default', 'yit'), 'none' => __('None', 'yit')) + yit_get_sliders(), 'desc' => __('Select the slider that you want to use in the page.', 'yit')); yit_add_option_metabox('yit-page-settings', __('Header', 'yit'), '_slider_name', 'select', $options); yit_metaboxes_sep('yit-page-settings', __('Header', 'yit')); $options = array('title' => __('Use static image', 'yit'), 'desc' => __('Set YES if you want a static header, instead of the slider.', '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); /** * BACKGROUND TAB */ $options = array('title' => __('Background color', 'yit'), 'desc' => __('Select the background color of the body (leave empty to use default, defined in Theme Options -> Colors -> General).', 'yit')); yit_add_option_metabox('yit-page-settings', __('Body Background', 'yit'), '_bg_color', 'colorpicker', $options); yit_metaboxes_sep('yit-page-settings', __('Body Background', 'yit')); $options = array('title' => __('Background image', 'yit'), 'desc' => __('Select the background image (leave empty to use default, defined in Theme Options -> Colors -> General).', 'yit')); yit_add_option_metabox('yit-page-settings', __('Body Background', 'yit'), '_bg_image', 'upload', $options); $options = array('title' => __('Background repeat', 'yit'), 'desc' => __('Select the repeat mode for the background image (default is defined in Theme Options -> Colors -> General).', 'yit'), 'options' => array('' => __('Default', 'yit'), 'repeat' => __('Repeat', 'yit'), 'repeat-x' => __('Repeat Horizontally', 'yit'), 'repeat-y' => __('Repeat Vertically', 'yit'), 'no-repeat' => __('No Repeat', 'yit')));