Created
April 25, 2014 05:29
-
-
Save ivankristianto/11278488 to your computer and use it in GitHub Desktop.
Calibrefx Concept Settings Hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
calibrefx_add_meta_group('themeoption-settings', 'breadcrumb', __('Breadcrumb', 'calibrefx')); | |
calibrefx_add_meta_group('themeoption-settings', 'content-archive', __('Content Archives', 'calibrefx')); | |
calibrefx_add_meta_group('themeoption-settings', 'comments', __('Comments', 'calibrefx')); | |
calibrefx_add_meta_option( | |
'breadcrumb', // group id | |
'gplus_profile', // field id and option name | |
__('Google Plus Profile'), // Label | |
array( | |
'option_type' => 'text', | |
'option_type' => 'required|safe_url', | |
'option_description' => __("This will output <code><link rel='author' href='YOUR GOOGLE+ LINK HERE'/></code> in html head", 'calibrefx'), | |
), // Settings config | |
10 //Priority | |
); | |
calibrefx_add_meta_option( | |
'breadcrumb', // group id | |
'facebook_og_type', // field id and option name | |
__('Facebok Open Graph Type'), // Label | |
array( | |
'option_type' => 'dropdown', | |
'option_items' => array('choice1', 'choice3'), | |
'option_default' => 'anyvalue', | |
'option_type' => 'safe_text', | |
'option_description' => __("This will output <code><link rel='author' href='YOUR GOOGLE+ LINK HERE'/></code> in html head", 'calibrefx'), | |
), // Settings config | |
15 //Priority | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment