Esempio n. 1
0
 public function meta_sections()
 {
     global $calibrefx_current_section, $calibrefx_target_form;
     $calibrefx_target_form = apply_filters('calibrefx_target_form', 'options.php');
     calibrefx_clear_meta_section();
     calibrefx_add_meta_section('general', __('General Settings', 'calibrefx'), $calibrefx_target_form, 1, 'cfxicon-generalsetting');
     calibrefx_add_meta_section('layout', __('Layout Settings', 'calibrefx'), $calibrefx_target_form, 2, 'cfxicon-layoutsetting');
     calibrefx_add_meta_section('social', __('Social Settings', 'calibrefx'), $calibrefx_target_form, 10, 'cfxicon-share2');
     calibrefx_add_meta_section('system', __('System Information', 'calibrefx'), $calibrefx_target_form, 60, 'fa fa-cogs');
     if (current_user_can('edit_theme_options')) {
         calibrefx_add_meta_section('modules', __('Available Modules', 'calibrefx'), '', 50);
         calibrefx_add_meta_section('tosgen', __('Legal Generator', 'calibrefx'), '', 70, 'fa fa-rocket');
         calibrefx_add_meta_section('importexport', __('Import / Export Settings', 'calibrefx'), '', 80, 'fa fa-share-square-o');
     }
     do_action('calibrefx_theme_settings_meta_section');
     $calibrefx_current_section = 'general';
     if (!empty($_GET['section'])) {
         $calibrefx_current_section = sanitize_text_field($_GET['section']);
     }
 }
Esempio n. 2
0
function contact_meta_sections()
{
    global $calibrefx_target_form;
    calibrefx_add_meta_section('contact', __('Contact Settings', 'calibrefx'), $calibrefx_target_form, 20);
}
Esempio n. 3
0
/**
 * 	Mini CFX Settings
 */
function minicfx_meta_section()
{
    global $calibrefx_target_form;
    calibrefx_add_meta_section('minicfx_settings', __('Mini CFX Settings', 'calibrefx'), $calibrefx_target_form, 13);
}
Esempio n. 4
0
function webfont_meta_boxes()
{
    global $calibrefx;
    $calibrefx_target_form = apply_filters('calibrefx_target_form', 'options.php');
    calibrefx_add_meta_section('design', __('Design Settings', 'calibrefx'), $calibrefx_target_form, 5);
    calibrefx_add_meta_box('design', 'basic', 'webfont-typography', __('Typography Settings', 'calibrefx'), 'webfont_typography', $calibrefx->theme_settings->pagehook, 'main', 'low');
}