Exemple #1
0
 * In this files the framework register default metaboxes.
 *
 * @package WordPress
 * @subpackage Your Inspiration Themes
 * @author Your Inspiration Themes Team <*****@*****.**>
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

yit_register_metabox( 'yit-page-settings', __( 'Page settings', 'yit' ), 'page' );
yit_register_metabox( 'yit-post-settings', __( 'Post settings', 'yit' ), 'post' );
yit_register_metabox( 'yit-testimonial-site', __( 'Other Testimonial info', 'yit' ), 'testimonial' );
yit_register_metabox( 'yit-page-extra-content', __( 'Extra content', 'yit' ), 'page' );
/**
 * SETTINGS TAB
 */
$options = array(
    'title' => __( 'Show title', 'yit' ),
    'desc' =>  __( 'Show or not the title of the page.', 'yit' ),
);
yit_add_option_metabox( 'yit-page-settings', __( 'Settings', 'yit' ), '_show-title', 'checkbox', $options );
yit_metaboxes_sep( 'yit-page-settings', __( 'Settings', 'yit' ) );

$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 );
Exemple #2
0
 */
yit_metaboxes_sep('yit-page-settings', __('Settings', 'yit'));
$options = array('title' => __('Slogan Icon', 'yit'), 'desc' => __('Select an image for the slogan.', 'yit'));
yit_add_option_metabox('yit-page-settings', __('Settings', 'yit'), '_slogan-icon-image', 'upload', $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
*/
$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);
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);
if (yit_get_admin_post_type() != 'product') {
    // move up the background slider option
    function yit_move_up_background_slider($options)
    {
        if (isset($options['yit-page-settings']['Body Background'])) {
            $tmp_options = $options['yit-page-settings']['Body Background'];
            $last = array();
            $last[] = array_pop($tmp_options);