function calibrefx_branding_box()
{
    global $calibrefx;
    calibrefx_add_meta_group('themebranding-settings', 'branding-settings', __('Brand Settings', 'calibrefx'));
    add_action('themebranding-settings_options', function () {
        calibrefx_add_meta_option('branding-settings', 'header_logo_desc', __('Set logo', 'calibrefx'), array('option_type' => 'blank', 'option_description' => __('You can upload configure your logo using from the Appereance > Header.', 'calibrefx')), 1);
        calibrefx_add_meta_option('branding-settings', 'favicon', __('Set Favicon', 'calibrefx'), array('option_type' => 'upload', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('You can upload your favicon. Best size 32x32px in .ico format', 'calibrefx')), 5);
    });
    calibrefx_do_meta_options($calibrefx->theme_settings, 'themebranding-settings');
}
Example #2
0
function contact_settings()
{
    global $calibrefx;
    calibrefx_add_meta_group('contact-info-settings', 'contact-info-settings', __('Contact Info', 'calibrefx'));
    add_action('contact-info-settings_options', function () {
        calibrefx_add_meta_option('contact-info-settings', 'contact_name', __('Contact Name', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => get_bloginfo('name'), 'option_filter' => 'safe_text', 'option_description' => __('Fill with your company name', 'calibrefx')), 5);
        calibrefx_add_meta_option('contact-info-settings', 'contact_email', __('Contact Email', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => get_bloginfo('admin_email'), 'option_filter' => 'safe_text', 'option_description' => __('Fill with your company email', 'calibrefx')), 10);
        calibrefx_add_meta_option('contact-info-settings', 'contact_phone', __('Contact Phone Number', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_text', 'option_description' => __('Fill with your company phone number', 'calibrefx')), 15);
        calibrefx_add_meta_option('contact-info-settings', 'contact_mobile_phone', __('Contact Mobile Number', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_text', 'option_description' => __('Fill with your company mobile number', 'calibrefx')), 20);
        calibrefx_add_meta_option('contact-info-settings', 'contact_address', __('Contact Address', 'calibrefx'), array('option_type' => 'textarea', 'option_default' => '', 'option_filter' => 'safe_html', 'option_description' => __('Fill with your company address', 'calibrefx')), 25);
        calibrefx_add_meta_option('contact-info-settings', 'contact_map', __('Contact Map Coordinate', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_text', 'option_description' => sprintf(__('Fill with your company map coordinate, format example: -6.163851,106.823506. Please find your coordinate <a target="_blank" href="%s">here</a>', 'calibrefx'), 'http://www.mapcoordinates.net/en')), 25);
    });
    calibrefx_do_meta_options($calibrefx->theme_settings, 'contact-info-settings');
}
Example #3
0
 /**
  * This function socials_integrated_box is to show social media setting
  */
 function socials_integrated_box()
 {
     global $calibrefx;
     calibrefx_add_meta_group('themesocial-settings', 'facebook-settings', __('Facebook Settings', 'calibrefx'));
     calibrefx_add_meta_group('themesocial-settings', 'social-settings', __('Social URL Settings', 'calibrefx'));
     calibrefx_add_meta_group('themesocial-settings', 'feed-settings', __('RSS Feed Settings', 'calibrefx'));
     add_action('themesocial-settings_options', function () {
         calibrefx_add_meta_option('facebook-settings', 'facebook_admins', __('Facebook Admin ID', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => 'anyvalue', 'option_filter' => 'safe_text', 'option_description' => __("This will be use for Facebook Insight. <br/>This will output: <code>&lt;meta property=\"fb:admins\" content=\"YOUR ADMIN ID HERE\"/></code> Read More about this <a href='https://developers.facebook.com/docs/insights/' target='_blank'>here</a>.", 'calibrefx')), 1);
         calibrefx_add_meta_option('facebook-settings', 'facebook_og_type', __('Facebook Page Type', 'calibrefx'), array('option_type' => 'select', 'option_items' => apply_filters('calibrefx_facebook_og_types', array('article' => 'Article', 'website' => 'Website', 'blog' => 'Blog', 'movie' => 'Movie', 'song' => 'Song', 'product' => 'Product', 'book' => 'Book', 'food' => 'Food', 'drink' => 'Drink', 'activity' => 'Activity', 'sport' => 'Sport')), 'option_default' => 'website', 'option_filter' => 'safe_text', 'option_description' => __('This is open graph protocol that helo to identify your content. <br/>This will output: <code>&lt;meta property="og:type" content="TYPE"/></code>', 'calibrefx')), 5);
     });
     add_action('themesocial-settings_options', function () {
         calibrefx_add_meta_option('social-settings', 'gplus_profile', __('Google+ Profile URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('This will output <code>&lt;link rel="author" href="YOUR GOOGLE+ URL HERE"/></code> in html head.', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 1);
         calibrefx_add_meta_option('social-settings', 'gplus_page', __('Google+ Page URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('This will use for Google Page For Business url, and it will show if using the Social Widget', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 5);
         calibrefx_add_meta_option('social-settings', 'facebook_fanpage', __('Facebook Page URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('This will use for Facebook Page url, and it will show if using the Social Widget', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 10);
         calibrefx_add_meta_option('social-settings', 'twitter_profile', __('Twitter Profile URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('This will use for Twitter url, and it will show if using the Social Widget', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 15);
         calibrefx_add_meta_option('social-settings', 'youtube_channel', __('Youtube Channel URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('This will use for Youtube Channel url, and it will show if using the Social Widget', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 20);
         calibrefx_add_meta_option('social-settings', 'linkedin_profile', __('Linkedin Profile URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('This will use for Linkedin url, and it will show if using the Social Widget', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 25);
         calibrefx_add_meta_option('social-settings', 'pinterest_profile', __('Pinterest Profile URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('This will use for Pinterest url, and it will show if using the Social Widget', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 30);
         calibrefx_add_meta_option('social-settings', 'instagram_profile', __('Instagram Profile URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('This will use for Instagram url, and it will show if using the Social Widget', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 35);
         calibrefx_add_meta_option('social-settings', 'github_profile', __('Github Profile URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_url', 'option_description' => __('This will use for Github url, and it will show if using the Social Widget', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 40);
     });
     add_action('themesocial-settings_options', function () {
         calibrefx_add_meta_option('feed-settings', 'feed_uri', __('Main Feed URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_text', 'option_description' => __('You can replace WordPress builtin Feed URL using this options. For sample you want to use feedburner instead. <br/>Sample: <code>http://feeds2.feedburner.com/calibrefx.</code>', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 1);
         calibrefx_add_meta_option('feed-settings', 'comments_feed_uri', __('Comment Feed URL', 'calibrefx'), array('option_type' => 'textinput', 'option_default' => '', 'option_filter' => 'safe_text', 'option_description' => __('You can replace WordPress builtin Feed URL using this options. For sample you want to use feedburner instead. <br/>Sample: <code>http://feeds2.feedburner.com/calibrefxcomment.</code>', 'calibrefx'), 'option_attr' => array('class' => 'fullwidth')), 2);
     });
     calibrefx_do_meta_options($calibrefx->theme_settings, 'themesocial-settings');
 }
Example #4
0
function minicfx_metabox_func()
{
    global $calibrefx;
    calibrefx_add_meta_group('minicfx_settings', 'minicfx-mobile-settings', __('Default Behaviour', 'calibrefx'));
    calibrefx_add_meta_group('minicfx_settings', 'minicfx-loading-settings', __('Loading Behaviour', 'calibrefx'));
    add_action('minicfx_settings_options', function () {
        /*	Default Behaviour Group
         */
        // 	Enable or disable ajaxload
        calibrefx_add_meta_option('minicfx-mobile-settings', 'minicfx_ajaxenabled', __('Enable ajax loading for page transitions', 'calibrefx'), array('option_type' => 'select', 'option_items' => array('enable' => __('Enable', 'calibrefx'), 'disable' => __('Disable', 'calibrefx')), 'option_default' => 'enable', 'option_filter' => 'safe_text'), 1);
        /*	Loading Behaviour
         */
        // 	Ajax animation
        calibrefx_add_meta_option('minicfx-loading-settings', 'minicfx_defaultPageTransition', __('Transition Effect', 'calibrefx'), array('option_type' => 'select', 'option_items' => array('fade' => __('Fade', 'calibrefx'), 'pop' => __('Pop', 'calibrefx'), 'flip' => __('Flip', 'calibrefx'), 'turn' => __('Turn', 'calibrefx'), 'flow' => __('Flow', 'calibrefx'), 'slidefade' => __('Slidefade', 'calibrefx'), 'slide' => __('Slide', 'calibrefx'), 'slideup' => __('Slideup', 'calibrefx'), 'slidedown' => __('Slidedown', 'calibrefx'), 'none' => __('None', 'calibrefx')), 'option_default' => '', 'option_filter' => 'safe_text'), 1);
        // 	Enable or disable text
        calibrefx_add_meta_option('minicfx-loading-settings', 'minicfx_showloadingtext', __('Enable or disable loading custom HTML', 'calibrefx'), array('option_type' => 'select', 'option_items' => array('enable' => __('Enable', 'calibrefx'), 'disable' => __('Disable', 'calibrefx')), 'option_default' => 'enable', 'option_filter' => 'safe_text'), 5);
        /* 	Loading Text
        		calibrefx_add_meta_option(
        			// 	Group id
        			'minicfx-loading-settings',
        			// 	Field id and option name
        			'minicfx_loadingtext',
        			// 	Label
        			__( 'Loading Text', 'calibrefx' ),
        			// 	Options
        			array(
        				'option_type'			=> 'textinput',
        				'option_default'		=> '',
        				'option_filter'			=> 'safe_text',
        				'option_description'	=> __( 'The text that appears on page load.', 'calibrefx' ),
        			),
        			// 	Priority
        			10
        		);
        		*/
        // 	Loading Text
        calibrefx_add_meta_option('minicfx-loading-settings', 'minicfx_loadinghtml', __('Loading Custom HTML', 'calibrefx'), array('option_type' => 'textarea', 'option_default' => '', 'option_filter' => 'safe_html', 'option_attr' => array('class' => 'minicfx_loadinghtml')), 10);
        /* 	Premade Theme ( Currently not working )
        		calibrefx_add_meta_option(
        			// 	Group id
        			'minicfx-loading-settings',
        			// 	Field id and option name
        			'minicfx_loadingtheme',
        			// 	Label
        			__( 'Choose premade theme', 'calibrefx' ), 
        			// 	Options
        			array(
        				'option_type'  	=> 'select',
        				'option_items' 	=> array(
        					'a' 	=> __( 'Dark Grey', 'calibrefx' ),
        					'b' 	=> __( 'Bootstrap Blue', 'calibrefx' ),
        					'c' 	=> __( 'Top Silver', 'calibrefx' ),
        					'd' 	=> __( 'Light Ember', 'calibrefx' ),
        				),
        				'option_default'=> 'a',
        				'option_filter' => 'safe_text',
        			),
        			// 	Priority
        			5
        		);*/
    });
    calibrefx_do_meta_options($calibrefx->theme_settings, 'minicfx_settings');
}
Example #5
0
function webfont_typography()
{
    global $calibrefx;
    $font_color = esc_attr(calibrefx_get_option('custom_font_color'));
    $permalink_color = esc_attr(calibrefx_get_option('custom_permalink_color'));
    $permalink_hover_color = esc_attr(calibrefx_get_option('custom_permalink_hover_color'));
    calibrefx_add_meta_group('typography-header-text-settings', 'typography-header-text-settings', __('Header Text Typography', 'calibrefx'));
    add_action('typography-header-text-settings_options', function () {
        global $fonts;
        $font_values = array();
        foreach ($fonts as $font => $value) {
            $font_values[$font] = $font;
        }
        calibrefx_add_meta_option('typography-header-text-settings', 'custom_header_font_family', __('', 'calibrefx'), array('option_type' => 'select', 'option_items' => $font_values, 'option_default' => 'Titillium Web', 'option_filter' => 'safe_text', 'option_description' => __('This setting is for all the header (h1, h2, etc.) text. Sizes will vary according to the css file', 'calibrefx')), 1);
    });
    calibrefx_do_meta_options($calibrefx->theme_settings, 'typography-header-text-settings');
    calibrefx_add_meta_group('typography-body-text-settings', 'typography-body-text-settings', __('Body Text Typography', 'calibrefx'));
    add_action('typography-body-text-settings_options', function () {
        calibrefx_add_meta_option('typography-body-text-settings', 'custom_font_size', __('Font Size', 'calibrefx'), array('option_type' => 'select', 'option_items' => array('9' => '9px', '10' => '10px', '11' => '11px', '12' => '12px', '13' => '13px', '14' => '14px', '15' => '15px', '16' => '16px', '17' => '17px', '18' => '18px', '19' => '19px', '20' => '20px', '21' => '21px', '22' => '22px', '23' => '23px', '24' => '24px'), 'option_default' => '16', 'option_filter' => 'safe_text', 'option_description' => ''), 1);
        global $fonts;
        $font_values = array();
        foreach ($fonts as $font => $value) {
            $font_values[$font] = $font;
        }
        calibrefx_add_meta_option('typography-body-text-settings', 'custom_font_family', __('Font Family', 'calibrefx'), array('option_type' => 'select', 'option_items' => $font_values, 'option_default' => 'Titillium Web', 'option_filter' => 'safe_text', 'option_description' => ''), 1);
        calibrefx_add_meta_option('typography-body-text-settings', 'custom_font_color', __('Font Color', 'calibrefx'), array('option_type' => 'colorpicker', 'option_default' => '#414141', 'option_filter' => 'no_html', 'option_description' => __('Please set this option if you want to use your custom styling for body text paragraph', 'calibrefx')), 1);
    });
    calibrefx_do_meta_options($calibrefx->theme_settings, 'typography-body-text-settings');
    calibrefx_add_meta_group('typography-permalinks-settings', 'typography-permalinks-settings', __('Permalinks Setting', 'calibrefx'));
    add_action('typography-permalinks-settings_options', function () {
        calibrefx_add_meta_option('typography-permalinks-settings', 'custom_permalink_color', __('Permalinks Color', 'calibrefx'), array('option_type' => 'colorpicker', 'option_default' => '', 'option_filter' => 'no_html', 'option_description' => __('define your permalinks color here, please leave it blank by removing the color code, if you want to use pre-defined color.', 'calibrefx')), 1);
        calibrefx_add_meta_option('typography-permalinks-settings', 'custom_permalink_hover_color', __('Permalinks Hover Color', 'calibrefx'), array('option_type' => 'colorpicker', 'option_default' => '', 'option_filter' => 'no_html', 'option_description' => __('define your permalinks hover color here, please leave it blank by removing thecolor code, if you want to use pre-defined color.', 'calibrefx')), 1);
    });
    calibrefx_do_meta_options($calibrefx->theme_settings, 'typography-permalinks-settings');
}