当前位置: 首页>>代码示例>>PHP>>正文


PHP Options_Framework_Admin类代码示例

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


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

示例1: optionsframework_init

function optionsframework_init()
{
    $path = get_template_directory() . '/options-framework/';
    //  If user can't edit theme options, exit
    if (!current_user_can('edit_theme_options')) {
        return;
    }
    // Load translation files
    //load_plugin_textdomain( 'options-framework', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    // Loads the required Options Framework classes.
    require $path . 'includes/class-options-framework.php';
    require $path . 'includes/class-options-framework-admin.php';
    require $path . 'includes/class-options-interface.php';
    require $path . 'includes/class-options-media-uploader.php';
    require $path . 'includes/class-options-sanitization.php';
    // Instantiate the main plugin class.
    $options_framework = new Options_Framework();
    $options_framework->init();
    // Instantiate the options page.
    $options_framework_admin = new Options_Framework_Admin();
    $options_framework_admin->init();
    // Instantiate the media uploader class
    $options_framework_media_uploader = new Options_Framework_Media_Uploader();
    $options_framework_media_uploader->init();
}
开发者ID:k2jysy,项目名称:mergeshop,代码行数:25,代码来源:options-framework.php

示例2: optionsframework_init

 function optionsframework_init()
 {
     //  If user can't edit theme options, exit
     if (!current_user_can('edit_theme_options')) {
         return;
     }
     // Loads the required Options Framework classes.
     require __DIR__ . 'options/class-options-framework.php';
     require __DIR__ . 'options/class-options-framework-admin.php';
     require __DIR__ . 'options/class-options-interface.php';
     require __DIR__ . 'options/class-options-media-uploader.php';
     require __DIR__ . 'options/class-options-sanitization.php';
     // Instantiate the options page.
     $options_framework_admin = new Options_Framework_Admin();
     $options_framework_admin->init();
     // Instantiate the media uploader class
     $options_framework_media_uploader = new Options_Framework_Media_Uploader();
     $options_framework_media_uploader->init();
 }
开发者ID:ycms,项目名称:theme-cutlass,代码行数:19,代码来源:options-framework.php

示例3: optionsframework_init

 function optionsframework_init()
 {
     //  If user can't edit theme options, exit
     if (!current_user_can('edit_theme_options')) {
         return;
     }
     // Include the required files
     require plugin_dir_path(__FILE__) . 'includes/class-options-framework.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-framework-admin.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-interface.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-media-uploader.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-sanitize.php';
     // Instantiate the options page.
     $options_framework_admin = new Options_Framework_Admin();
     $options_framework_admin->init();
     // Instantiate the media uploader class
     $options_framework_media_uploader = new Options_Framework_Media_Uploader();
     $options_framework_media_uploader->init();
 }
开发者ID:tatakauashi,项目名称:meiteampower,代码行数:19,代码来源:options-framework.php

示例4: optionsframework_init

 function optionsframework_init()
 {
     //  If user can't edit theme options, exit
     if (!current_user_can('edit_theme_options')) {
         return;
     }
     // Loads the required Options Framework classes.
     require get_template_directory() . '/inc/includes/class-options-framework.php';
     require get_template_directory() . '/inc/includes/class-options-framework-admin.php';
     require get_template_directory() . '/inc/includes/class-options-interface.php';
     require get_template_directory() . '/inc/includes/class-options-media-uploader.php';
     require get_template_directory() . '/inc/includes/class-options-sanitization.php';
     //trailingslashit( get_template_directory() . '/inc/meta-box/' )
     // Instantiate the options page.
     $options_framework_admin = new Options_Framework_Admin();
     $options_framework_admin->init();
     // Instantiate the media uploader class
     $options_framework_media_uploader = new Options_Framework_Media_Uploader();
     $options_framework_media_uploader->init();
 }
开发者ID:adamestafford,项目名称:glorytrading.com,代码行数:20,代码来源:options-framework.php

示例5: optionsframework_init

 function optionsframework_init()
 {
     //  If user can't edit theme options, exit
     if (!current_user_can('edit_theme_options')) {
         return;
     }
     // Loads the required Options Framework classes.
     tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-framework.php');
     tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-framework-admin.php');
     tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-interface.php');
     tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-media-uploader.php');
     tokopress_require_file(plugin_dir_path(__FILE__) . 'includes/class-options-sanitization.php');
     // Instantiate the main plugin class.
     $options_framework = new Options_Framework();
     $options_framework->init();
     // Instantiate the options page.
     $options_framework_admin = new Options_Framework_Admin();
     $options_framework_admin->init();
     // Instantiate the media uploader class
     $options_framework_media_uploader = new Options_Framework_Media_Uploader();
     $options_framework_media_uploader->init();
 }
开发者ID:Artgorae,项目名称:wp-artgorae,代码行数:22,代码来源:options-framework.php

示例6: optionsframework_media_scripts

 /**
  * Enqueue scripts for file uploader
  */
 function optionsframework_media_scripts($hook)
 {
     $menu = Options_Framework_Admin::menu_settings();
     if (substr($hook, -strlen($menu['menu_slug'])) !== $menu['menu_slug']) {
         return;
     }
     if (function_exists('wp_enqueue_media')) {
         wp_enqueue_media();
     }
     wp_register_script('of-media-uploader', plugin_dir_url(dirname(__FILE__)) . 'js/media-uploader.js', array('jquery'), Options_Framework::VERSION);
     wp_enqueue_script('of-media-uploader');
     wp_localize_script('of-media-uploader', 'optionsframework_l10n', array('upload' => __('Upload', 'options-framework'), 'remove' => __('Remove', 'options-framework')));
 }
开发者ID:eminozlem,项目名称:honey-thick,代码行数:16,代码来源:class-ske-media-uploader.php

示例7: optionsframework_init

 function optionsframework_init()
 {
     //  If user can't edit theme options, exit
     if (!current_user_can('edit_theme_options')) {
         return;
     }
     // Loads the required Options Framework classes.
     require plugin_dir_path(__FILE__) . 'includes/class-options-framework.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-framework-admin.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-interface.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-media-uploader.php';
     require plugin_dir_path(__FILE__) . 'includes/class-options-sanitization.php';
     // Instantiate the main plugin class.
     $options_framework = new Options_Framework();
     $options_framework->init();
     // Instantiate the options page.
     $options_framework_admin = new Options_Framework_Admin();
     $options_framework_admin->init();
     // Instantiate the media uploader class
     $options_framework_media_uploader = new Options_Framework_Media_Uploader();
     $options_framework_media_uploader->init();
     wp_enqueue_style('optionsframework', OPTIONS_FRAMEWORK_DIRECTORY . 'css/optionsframework.css');
 }
开发者ID:carpliyz,项目名称:9IPHP,代码行数:23,代码来源:options-framework.php

示例8: optionsframework_media_scripts

 /**
  * Enqueue scripts for file uploader
  */
 function optionsframework_media_scripts($hook)
 {
     $menu = Options_Framework_Admin::menu_settings();
     if ('appearance_page_' . $menu['menu_slug'] != $hook) {
         return;
     }
     if (function_exists('wp_enqueue_media')) {
         wp_enqueue_media();
     }
     wp_register_script('of-media-uploader', OPTIONS_FRAMEWORK_DIRECTORY . 'js/media-uploader.js', array('jquery'), Options_Framework::VERSION);
     wp_enqueue_script('of-media-uploader');
     wp_localize_script('of-media-uploader', 'optionsframework_l10n', array('upload' => 'Upload', 'remove' => 'Remove'));
 }
开发者ID:jimdough,项目名称:Roadmaster,代码行数:16,代码来源:class-options-media-uploader.php

示例9: optionsframework_media_scripts

 /**
  * Enqueue scripts for file uploader
  */
 function optionsframework_media_scripts($hook)
 {
     $menu = Options_Framework_Admin::menu_settings();
     if (substr($hook, -strlen($menu['menu_slug'])) !== $menu['menu_slug']) {
         return;
     }
     if (function_exists('wp_enqueue_media')) {
         wp_enqueue_media();
     }
     wp_register_script('of-media-uploader', OPTIONS_FRAMEWORK_DIRECTORY . 'js/media-uploader.js', array('jquery'), Options_Framework::VERSION);
     wp_enqueue_script('of-media-uploader');
     wp_localize_script('of-media-uploader', 'optionsframework_l10n', array('upload' => __('Upload', 'accesspress-store'), 'remove' => __('Remove', 'accesspress-store')));
 }
开发者ID:denMicon777,项目名称:my_repository,代码行数:16,代码来源:class-options-media-uploader.php

示例10: optionsframework_media_scripts

 /**
  * Enqueue scripts for file uploader
  */
 function optionsframework_media_scripts($hook)
 {
     $menu = Options_Framework_Admin::menu_settings();
     if (substr($hook, -strlen($menu['menu_slug'])) !== $menu['menu_slug']) {
         return;
     }
     if (function_exists('wp_enqueue_media')) {
         wp_enqueue_media();
     }
     wp_register_script('of-media-uploader', get_template_directory_uri() . '/lib/settings_panel/js/media-uploader.js', array('jquery'), Options_Framework::VERSION);
     wp_enqueue_script('of-media-uploader');
     wp_localize_script('of-media-uploader', 'optionsframework_l10n', array('upload' => __('Upload', 'options-framework'), 'remove' => __('Remove', 'options-framework')));
 }
开发者ID:mclesceri,项目名称:webworkerme-Framework,代码行数:16,代码来源:class-options-media-uploader.php


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