Skip to content

Instantly share code, notes, and snippets.

@ivankristianto
Created April 25, 2014 05:29
Show Gist options
  • Save ivankristianto/11278488 to your computer and use it in GitHub Desktop.
Save ivankristianto/11278488 to your computer and use it in GitHub Desktop.
Calibrefx Concept Settings Hook
<?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>&lt;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>&lt;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