• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP ot_register_settings函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中ot_register_settings函数的典型用法代码示例。如果您正苦于以下问题:PHP ot_register_settings函数的具体用法?PHP ot_register_settings怎么用?PHP ot_register_settings使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了ot_register_settings函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: vestalite_wp_register_export_import_page

/**
 * Registers import & export theme options admin page.
 */
function vestalite_wp_register_export_import_page()
{
    // Only execute in admin & if OT is installed
    if (current_user_can('manage_options') && function_exists('ot_register_settings')) {
        ot_register_settings(array(array('id' => '', 'pages' => array(array('id' => 'vestalite_wp_theme_advanced', 'parent_slug' => apply_filters('ot_theme_options_parent_slug', 'themes.php'), 'page_title' => 'Theme Options Backup/Restore', 'menu_title' => 'Theme Options Backup/Restore', 'capability' => 'edit_theme_options', 'menu_slug' => 'vestalite-options-export-import', 'icon_url' => null, 'position' => null, 'updated_message' => __('Options updated.', 'vestalite'), 'reset_message' => __('Options reset.', 'vestalite'), 'button_text' => __('Save Changes', 'vestalite'), 'show_buttons' => false, 'contextual_help' => null, 'sections' => array(array('id' => 'sec_export', 'title' => __('Export Options', 'vestalite')), array('id' => 'sec_import', 'title' => __('Import Options', 'vestalite'))), 'settings' => array(array('id' => 'export_data_text', 'label' => __('Export Theme Options', 'vestalite'), 'desc' => __('Theme Options', 'vestalite'), 'std' => '', 'type' => 'export-data', 'section' => 'sec_export', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => ''), array('id' => 'import_data_text', 'label' => __('Import Theme Options', 'vestalite'), 'desc' => __('Theme Options', 'vestalite'), 'std' => '', 'type' => 'import-data', 'section' => 'sec_import', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '')))))));
    }
}
开发者ID:mahdiyazdani,项目名称:vesta-lite-free-minimal-wordpress-blog-theme,代码行数:10,代码来源:inc-import-export-theme-options.php


示例2: register_options_pages

/**
 * Registers all the required admin pages.
 */
function register_options_pages()
{
    // Only execute in admin & if OT is installed
    if (is_admin() && function_exists('ot_register_settings')) {
        // Register the pages
        ot_register_settings(array(array('id' => 'import_export', 'pages' => array(array('id' => 'import_export', 'parent_slug' => 'themes.php', 'page_title' => 'Theme Options Backup/Restore', 'menu_title' => 'Options Backup', 'capability' => 'edit_theme_options', 'menu_slug' => 'tmq-theme-backup', 'icon_url' => null, 'position' => null, 'updated_message' => 'Options updated.', 'reset_message' => 'Options reset.', 'button_text' => 'Save Changes', 'show_buttons' => false, 'screen_icon' => 'themes', 'contextual_help' => null, 'sections' => array(array('id' => 'tmq_import_export', 'title' => __('Import/Export', 'yourtextdomain'))), 'settings' => array(array('id' => 'import_data_text', 'label' => 'Import Theme Options', 'desc' => __('Theme Options', 'yourtextdomain'), 'std' => '', 'type' => 'import-data', 'section' => 'tmq_import_export', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => ''), array('id' => 'export_data_text', 'label' => 'Export Theme Options', 'desc' => __('Theme Options', 'yourtextdomain'), 'std' => '', 'type' => 'export-data', 'section' => 'tmq_import_export', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '')))))));
    }
}
开发者ID:niceit,项目名称:rockets,代码行数:11,代码来源:ava_theme_options.php


示例3: register_options_pages

/**
 * Registers all the required admin pages.
 */
function register_options_pages()
{
    // Only execute in admin & if OT is installed
    if (is_admin() && function_exists('ot_register_settings')) {
        // Register the pages
        ot_register_settings(array(array('id' => 'import_export', 'pages' => array(array('id' => 'import_export', 'page_title' => 'Kentooz Options Import/Export', 'menu_title' => 'Import export', 'capability' => 'edit_theme_options', 'menu_slug' => 'kentooz-import-export', 'icon_url' => OT_URL . '/assets/images/ktz-logo-mini.png', 'position' => 62, 'updated_message' => 'Options updated.', 'reset_message' => 'Options reset.', 'button_text' => 'Save Changes', 'show_buttons' => false, 'screen_icon' => null, 'contextual_help' => null, 'sections' => array(array('id' => 'kentooz_import_export', 'title' => __('Import/Export', ktz_theme_textdomain))), 'settings' => array(array('id' => 'import_data_text', 'label' => 'Import Theme Options', 'desc' => __('Theme Options', ktz_theme_textdomain), 'std' => '', 'type' => 'import-data', 'section' => 'kentooz_import_export', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => ''), array('id' => 'export_data_text', 'label' => 'Export Theme Options', 'desc' => __('Theme Options', ktz_theme_textdomain), 'std' => '', 'type' => 'export-data', 'section' => 'kentooz_import_export', 'rows' => '', 'post_type' => '', 'taxonomy' => '', 'class' => '')))))));
    }
}
开发者ID:gigikir,项目名称:adebe,代码行数:11,代码来源:_core_ktz.php


示例4: exit

<?php

if (!defined('OT_VERSION')) {
    exit('No direct script access allowed');
}
/**
 * Builds the Setting & Documentation UI.
 *
 * @uses      ot_register_settings()
 *
 * @package   OptionTree
 * @author    Derek Herman <[email protected]>
 * @copyright Copyright (c) 2012, Derek Herman
 */
if (function_exists('ot_register_settings')) {
    ot_register_settings(array(array('id' => 'option_tree_settings', 'pages' => apply_filters('ot_register_pages_array', array(array('id' => 'ot', 'page_title' => __('OptionTree', 'unitedthemes'), 'menu_title' => __('OptionTree', 'unitedthemes'), 'capability' => 'manage_options', 'menu_slug' => 'ot-settings', 'icon_url' => OT_URL . '/assets/images/ot-logo-mini.png', 'position' => 61, 'hidden_page' => true), array('id' => 'settings', 'parent_slug' => 'ot-settings', 'page_title' => __('Settings', 'unitedthemes'), 'menu_title' => __('Settings', 'unitedthemes'), 'capability' => 'edit_theme_options', 'menu_slug' => 'ot-settings', 'icon_url' => null, 'position' => null, 'updated_message' => __('Theme Options updated.', 'unitedthemes'), 'reset_message' => __('Theme Options reset.', 'unitedthemes'), 'button_text' => __('Save Settings', 'unitedthemes'), 'show_buttons' => false, 'screen_icon' => 'themes', 'sections' => array(array('id' => 'create_setting', 'title' => __('Theme Options UI', 'unitedthemes')), array('id' => 'import', 'title' => __('Import', 'unitedthemes')), array('id' => 'export', 'title' => __('Export', 'unitedthemes')), array('id' => 'layouts', 'title' => __('Layouts', 'unitedthemes'))), 'settings' => array(array('id' => 'theme_options_ui_text', 'label' => __('Theme Options UI Builder', 'unitedthemes'), 'type' => 'theme_options_ui', 'section' => 'create_setting'), array('id' => 'import_xml_text', 'label' => __('Settings XML', 'unitedthemes'), 'type' => 'import-xml', 'section' => 'import'), array('id' => 'import_settings_text', 'label' => __('Settings', 'unitedthemes'), 'type' => 'import-settings', 'section' => 'import'), array('id' => 'import_data_text', 'label' => __('Theme Options', 'unitedthemes'), 'type' => 'import-data', 'section' => 'import'), array('id' => 'import_layouts_text', 'label' => __('Layouts', 'unitedthemes'), 'type' => 'import-layouts', 'section' => 'import'), array('id' => 'export_settings_file_text', 'label' => __('Settings PHP File', 'unitedthemes'), 'type' => 'export-settings-file', 'section' => 'export'), array('id' => 'export_settings_text', 'label' => __('Settings', 'unitedthemes'), 'type' => 'export-settings', 'section' => 'export'), array('id' => 'export_data_text', 'label' => __('Theme Options', 'unitedthemes'), 'type' => 'export-data', 'section' => 'export'), array('id' => 'export_layout_text', 'label' => __('Layouts', 'unitedthemes'), 'type' => 'export-layouts', 'section' => 'export'), array('id' => 'modify_layouts_text', 'label' => __('Add, Activate, & Remove Layouts', 'unitedthemes'), 'type' => 'modify-layouts', 'section' => 'layouts'))), array('id' => 'documentation', 'parent_slug' => 'ot-settings', 'page_title' => __('Documentation', 'unitedthemes'), 'menu_title' => __('Documentation', 'unitedthemes'), 'capability' => 'edit_theme_options', 'menu_slug' => 'ot-documentation', 'icon_url' => null, 'position' => null, 'updated_message' => __('Theme Options updated.', 'unitedthemes'), 'reset_message' => __('Theme Options reset.', 'unitedthemes'), 'button_text' => __('Save Settings', 'unitedthemes'), 'show_buttons' => false, 'screen_icon' => 'themes', 'sections' => array(array('id' => 'creating_options', 'title' => __('Creating Options', 'unitedthemes')), array('id' => 'option_types', 'title' => __('Option Types', 'unitedthemes')), array('id' => 'functions', 'title' => __('Function References', 'unitedthemes')), array('id' => 'theme_mode', 'title' => __('Theme Mode', 'unitedthemes')), array('id' => 'meta_boxes', 'title' => __('Meta Boxes', 'unitedthemes')), array('id' => 'examples', 'title' => __('Code Examples', 'unitedthemes')), array('id' => 'layouts_overview', 'title' => __('Layouts Overview', 'unitedthemes'))), 'settings' => array(array('id' => 'creating_options_text', 'label' => __('Overview of available Theme Option fields.', 'unitedthemes'), 'type' => 'creating-options', 'section' => 'creating_options'), array('id' => 'option_types_text', 'label' => __('Option types in alphabetical order & hooks to filter them.', 'unitedthemes'), 'type' => 'option-types', 'section' => 'option_types'), array('id' => 'functions_ot_get_option', 'label' => __('Function Reference:ot_get_option()', 'unitedthemes'), 'type' => 'ot-get-option', 'section' => 'functions'), array('id' => 'functions_get_option_tree', 'label' => __('Function Reference:get_option_tree()', 'unitedthemes'), 'type' => 'get-option-tree', 'section' => 'functions'), array('id' => 'theme_mode_text', 'label' => __('Theme Mode', 'unitedthemes'), 'type' => 'theme-mode', 'section' => 'theme_mode'), array('id' => 'meta_boxes_text', 'label' => __('Meta Boxes', 'unitedthemes'), 'type' => 'meta-boxes', 'section' => 'meta_boxes'), array('id' => 'example_text', 'label' => __('Code examples for front-end development.', 'unitedthemes'), 'type' => 'examples', 'section' => 'examples'), array('id' => 'layouts_overview_text', 'label' => __('What\'s a layout anyhow?', 'unitedthemes'), 'type' => 'layouts-overview', 'section' => 'layouts_overview'))))))));
}
/* End of file ot-ui-admin.php */
/* Location: ./option-tree/ot-ui-admin.php */
开发者ID:amptdesign,项目名称:ampt-2016,代码行数:19,代码来源:ot-ui-admin.php


示例5: ot_register_settings_page

 function ot_register_settings_page()
 {
     global $ot_has_custom_theme_options;
     // Display UI Builder admin notice
     if (OT_SHOW_OPTIONS_UI == true && isset($_REQUEST['page']) && $_REQUEST['page'] == 'ot-settings' && ($ot_has_custom_theme_options == true || has_action('admin_init', 'custom_theme_options'))) {
         function ot_has_custom_theme_options()
         {
             echo '<div class="error"><p>' . __('The Theme Options UI Builder is being overridden by a custom file in your theme. Any changes you make via the UI Builder will not be saved.', 'option-tree') . '</p></div>';
         }
         add_action('admin_notices', 'ot_has_custom_theme_options');
     }
     // Create the filterable pages array
     $ot_register_pages_array = array(array('id' => 'ot', 'page_title' => __('OptionTree', 'option-tree'), 'menu_title' => __('OptionTree', 'option-tree'), 'capability' => 'edit_theme_options', 'menu_slug' => 'ot-settings', 'icon_url' => null, 'position' => 61, 'hidden_page' => true), array('id' => 'settings', 'parent_slug' => 'ot-settings', 'page_title' => __('Settings', 'option-tree'), 'menu_title' => __('Settings', 'option-tree'), 'capability' => 'edit_theme_options', 'menu_slug' => 'ot-settings', 'icon_url' => null, 'position' => null, 'updated_message' => __('Theme Options updated.', 'option-tree'), 'reset_message' => __('Theme Options reset.', 'option-tree'), 'button_text' => __('Save Settings', 'option-tree'), 'show_buttons' => false, 'screen_icon' => 'themes', 'sections' => array(array('id' => 'create_setting', 'title' => __('Theme Options UI', 'option-tree')), array('id' => 'import', 'title' => __('Import', 'option-tree')), array('id' => 'export', 'title' => __('Export', 'option-tree')), array('id' => 'layouts', 'title' => __('Layouts', 'option-tree'))), 'settings' => array(array('id' => 'theme_options_ui_text', 'label' => __('Theme Options UI Builder', 'option-tree'), 'type' => 'theme_options_ui', 'section' => 'create_setting'), array('id' => 'import_xml_text', 'label' => __('Settings XML', 'option-tree'), 'type' => 'import-xml', 'section' => 'import'), array('id' => 'import_settings_text', 'label' => __('Settings', 'option-tree'), 'type' => 'import-settings', 'section' => 'import'), array('id' => 'import_data_text', 'label' => __('Theme Options', 'option-tree'), 'type' => 'import-data', 'section' => 'import'), array('id' => 'import_layouts_text', 'label' => __('Layouts', 'option-tree'), 'type' => 'import-layouts', 'section' => 'import'), array('id' => 'export_settings_file_text', 'label' => __('Settings PHP File', 'option-tree'), 'type' => 'export-settings-file', 'section' => 'export'), array('id' => 'export_settings_text', 'label' => __('Settings', 'option-tree'), 'type' => 'export-settings', 'section' => 'export'), array('id' => 'export_data_text', 'label' => __('Theme Options', 'option-tree'), 'type' => 'export-data', 'section' => 'export'), array('id' => 'export_layout_text', 'label' => __('Layouts', 'option-tree'), 'type' => 'export-layouts', 'section' => 'export'), array('id' => 'modify_layouts_text', 'label' => __('Layout Management', 'option-tree'), 'type' => 'modify-layouts', 'section' => 'layouts'))), array('id' => 'documentation', 'parent_slug' => 'ot-settings', 'page_title' => __('Documentation', 'option-tree'), 'menu_title' => __('Documentation', 'option-tree'), 'capability' => 'edit_theme_options', 'menu_slug' => 'ot-documentation', 'icon_url' => null, 'position' => null, 'updated_message' => __('Theme Options updated.', 'option-tree'), 'reset_message' => __('Theme Options reset.', 'option-tree'), 'button_text' => __('Save Settings', 'option-tree'), 'show_buttons' => false, 'screen_icon' => 'themes', 'sections' => array(array('id' => 'creating_options', 'title' => __('Creating Options', 'option-tree')), array('id' => 'option_types', 'title' => __('Option Types', 'option-tree')), array('id' => 'functions', 'title' => __('Function References', 'option-tree')), array('id' => 'theme_mode', 'title' => __('Theme Mode', 'option-tree')), array('id' => 'meta_boxes', 'title' => __('Meta Boxes', 'option-tree')), array('id' => 'examples', 'title' => __('Code Examples', 'option-tree')), array('id' => 'layouts_overview', 'title' => __('Layouts Overview', 'option-tree'))), 'settings' => array(array('id' => 'creating_options_text', 'label' => __('Overview of available Theme Option fields.', 'option-tree'), 'type' => 'creating-options', 'section' => 'creating_options'), array('id' => 'option_types_text', 'label' => __('Option types in alphabetical order & hooks to filter them.', 'option-tree'), 'type' => 'option-types', 'section' => 'option_types'), array('id' => 'functions_ot_get_option', 'label' => __('Function Reference:ot_get_option()', 'option-tree'), 'type' => 'ot-get-option', 'section' => 'functions'), array('id' => 'functions_get_option_tree', 'label' => __('Function Reference:get_option_tree()', 'option-tree'), 'type' => 'get-option-tree', 'section' => 'functions'), array('id' => 'theme_mode_text', 'label' => __('Theme Mode', 'option-tree'), 'type' => 'theme-mode', 'section' => 'theme_mode'), array('id' => 'meta_boxes_text', 'label' => __('Meta Boxes', 'option-tree'), 'type' => 'meta-boxes', 'section' => 'meta_boxes'), array('id' => 'example_text', 'label' => __('Code examples for front-end development.', 'option-tree'), 'type' => 'examples', 'section' => 'examples'), array('id' => 'layouts_overview_text', 'label' => __('What\'s a layout anyhow?', 'option-tree'), 'type' => 'layouts-overview', 'section' => 'layouts_overview'))));
     // Loop over the settings and remove as needed.
     foreach ($ot_register_pages_array as $key => $page) {
         // Remove various options from the Settings UI.
         if ($page['id'] == 'settings') {
             // Remove the Theme Options UI
             if (OT_SHOW_OPTIONS_UI == false) {
                 foreach ($page['sections'] as $section_key => $section) {
                     if ($section['id'] == 'create_setting') {
                         unset($ot_register_pages_array[$key]['sections'][$section_key]);
                     }
                 }
                 foreach ($page['settings'] as $setting_key => $setting) {
                     if ($setting['section'] == 'create_setting') {
                         unset($ot_register_pages_array[$key]['settings'][$setting_key]);
                     }
                 }
             }
             // Remove parts of the Imports UI
             if (OT_SHOW_SETTINGS_IMPORT == false) {
                 foreach ($page['settings'] as $setting_key => $setting) {
                     if ($setting['section'] == 'import' && in_array($setting['id'], array('import_xml_text', 'import_settings_text'))) {
                         unset($ot_register_pages_array[$key]['settings'][$setting_key]);
                     }
                 }
             }
             // Remove parts of the Export UI
             if (OT_SHOW_SETTINGS_EXPORT == false) {
                 foreach ($page['settings'] as $setting_key => $setting) {
                     if ($setting['section'] == 'export' && in_array($setting['id'], array('export_settings_file_text', 'export_settings_text'))) {
                         unset($ot_register_pages_array[$key]['settings'][$setting_key]);
                     }
                 }
             }
             // Remove the Layouts UI
             if (OT_SHOW_NEW_LAYOUT == false) {
                 foreach ($page['sections'] as $section_key => $section) {
                     if ($section['id'] == 'layouts') {
                         unset($ot_register_pages_array[$key]['sections'][$section_key]);
                     }
                 }
                 foreach ($page['settings'] as $setting_key => $setting) {
                     if ($setting['section'] == 'layouts') {
                         unset($ot_register_pages_array[$key]['settings'][$setting_key]);
                     }
                 }
             }
         }
         // Remove the Documentation UI.
         if (OT_SHOW_DOCS == false && $page['id'] == 'documentation') {
             unset($ot_register_pages_array[$key]);
         }
     }
     $ot_register_pages_array = apply_filters('ot_register_pages_array', $ot_register_pages_array);
     // Register the pages.
     ot_register_settings(array(array('id' => ot_settings_id(), 'pages' => $ot_register_pages_array)));
 }
开发者ID:ElectricEasel,项目名称:reflection,代码行数:69,代码来源:ot-functions-admin.php


示例6: exit

<?php

if (!defined('OT_VERSION')) {
    exit('No direct script access allowed');
}
/**
 * Builds the Theme Option UI.
 *
 * @uses      ot_register_settings()
 *
 * @package   OptionTree
 * @author    Derek Herman <[email protected]>
 * @copyright Copyright (c) 2012, Derek Herman
 */
/* get the settings array */
$get_settings = get_option('option_tree_settings');
/* sections array */
$sections = isset($get_settings['sections']) ? $get_settings['sections'] : array();
/* settings array */
$settings = isset($get_settings['settings']) ? $get_settings['settings'] : array();
/* contexual_help array */
$contextual_help = isset($get_settings['contextual_help']) ? $get_settings['contextual_help'] : array();
/* build the Theme Options */
if (function_exists('ot_register_settings')) {
    ot_register_settings(array(array('id' => 'option_tree', 'pages' => array(array('id' => 'ot_theme_options', 'parent_slug' => apply_filters('ot_theme_options_parent_slug', 'themes.php'), 'page_title' => apply_filters('ot_theme_options_page_title', __('Theme Options', 'option-tree')), 'menu_title' => apply_filters('ot_theme_options_menu_title', __('Theme Options', 'option-tree')), 'capability' => apply_filters('ot_theme_options_capability', 'edit_theme_options'), 'menu_slug' => 'ot-theme-options', 'icon_url' => apply_filters('ot_theme_options_icon_url', null), 'position' => apply_filters('ot_theme_options_position', null), 'updated_message' => apply_filters('ot_theme_options_updated_message', __('Theme Options updated.', 'option-tree')), 'reset_message' => apply_filters('ot_theme_options_reset_message', __('Theme Options reset.', 'option-tree')), 'button_text' => apply_filters('ot_theme_options_button_text', __('Save Changes', 'option-tree')), 'screen_icon' => 'themes', 'contextual_help' => $contextual_help, 'sections' => $sections, 'settings' => $settings)))));
}
/* End of file ot-ui-theme-options.php */
/* Location: ./option-tree/ot-ui-theme-options.php */
开发者ID:JeffreyBue,项目名称:jb,代码行数:28,代码来源:ot-ui-theme-options.php


示例7: register_pattern_settings_page

 /**
  * Registers a new global pattern settings page.
  *
  * @since    0.0.1
  */
 public function register_pattern_settings_page()
 {
     // Only execute in admin & if OT is installed
     if (is_admin() && function_exists('ot_register_settings')) {
         // Register the page
         ot_register_settings(array(array('id' => 'wpcb_global_settings', 'pages' => array(array('id' => 'wpcb-pattern-settings', 'parent_slug' => 'edit.php?post_type=pattern', 'page_title' => __('WP Craft Blogger - Global Settings', 'wp-craft-blogger'), 'menu_title' => __('Settings', 'wp-craft-blogger'), 'capability' => 'edit_theme_options', 'menu_slug' => 'wpcb-settings', 'icon_url' => null, 'position' => null, 'updated_message' => __('Settings updated', 'wp-craft-blogger'), 'reset_message' => __('Settings reset', 'wp-craft-blogger'), 'button_text' => __('Save changes', 'wp-craft-blogger'), 'show_buttons' => true, 'screen_icon' => 'options-general', 'contextual_help' => null, 'sections' => array(array('id' => 'wpcb-general', 'title' => __('General', 'wp-craft-blogger')), array('id' => 'wpcb-ravelry-integration', 'title' => __('Ravelry Integration', 'wp-craft-blogger'))), 'settings' => array(array('id' => 'wpcb-primary-craft', 'label' => __('Primary craft', 'wp-craft-blogger'), 'desc' => __('Will be selected automatically when adding a new pattern.', 'wp-craft-blogger'), 'std' => 'knitting', 'type' => 'radio', 'choices' => array(array('label' => __('Crochet', 'wp-craft-blogger'), 'value' => 'crochet'), array('label' => __('Knitting', 'wp-craft-blogger'), 'value' => 'knitting')), 'section' => 'wpcb-general'), array('id' => 'wpcb-custom-css', 'label' => __('Custom CSS', 'wp-craft-blogger'), 'desc' => __('Advanced users can change the look and feel of patterns by adding your custom styles here. ' . 'The container div for patterns is .wpcb-pattern', 'wp-craft-blogger'), 'type' => 'css', 'section' => 'wpcb-general'), array('id' => 'wpcb-ravelry-integration-notice', 'label' => __('Ravelry', 'wp-craft-blogger'), 'desc' => __('Coming soon!', 'wp-craft-blogger'), 'type' => 'textblock_titled', 'section' => 'wpcb-ravelry-integration')))))));
     }
 }
开发者ID:shellbot,项目名称:WP-Craft-Blogger,代码行数:13,代码来源:class-wpcb-admin.php


示例8: exit

<?php

if (!defined('OT_VERSION')) {
    exit('No direct script access allowed');
}
/**
 * Builds the Theme Option UI.
 *
 * @uses      ot_register_settings()
 *
 * @package   OptionTree
 * @author    Derek Herman <[email protected]>
 * @copyright Copyright (c) 2012, Derek Herman
 */
/* get the settings array */
$get_settings = get_option('option_tree_settings');
/* sections array */
$sections = isset($get_settings['sections']) ? $get_settings['sections'] : array();
/* settings array */
$settings = isset($get_settings['settings']) ? $get_settings['settings'] : array();
/* contexual_help array */
$contextual_help = isset($get_settings['contextual_help']) ? $get_settings['contextual_help'] : array();
/* build the Theme Options */
if (function_exists('ot_register_settings')) {
    ot_register_settings(array(array('id' => 'option_tree', 'pages' => array(array('id' => 'ot_theme_options', 'page_title' => apply_filters('ot_theme_options_page_title', __('Theme Options', 'option-tree')), 'menu_title' => apply_filters('ot_theme_options_menu_title', __('Theme Options', 'option-tree')), 'capability' => apply_filters('ot_theme_options_capability', 'edit_theme_options'), 'menu_slug' => 'ot-theme-options', 'icon_url' => ETHEME_CODE_CSS_URL . '/images/etheme.png', 'position' => '58.925', 'updated_message' => apply_filters('ot_theme_options_updated_message', __('Theme Options updated.', 'option-tree')), 'reset_message' => apply_filters('ot_theme_options_reset_message', __('Theme Options reset.', 'option-tree')), 'button_text' => apply_filters('ot_theme_options_button_text', __('Save Changes', 'option-tree')), 'screen_icon' => 'themes', 'contextual_help' => $contextual_help, 'sections' => $sections, 'settings' => $settings, 'theme_name' => THEME_LOGO)))));
}
/* End of file ot-ui-theme-options.php */
/* Location: ./option-tree/ot-ui-theme-options.php */
开发者ID:donpapa26,项目名称:bakancslistad,代码行数:28,代码来源:ot-ui-theme-options.php



注:本文中的ot_register_settings函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP ot_remove_old_css函数代码示例发布时间:2022-05-15
下一篇:
PHP ot_register_meta_box函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap