當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Options_Framework_Admin::init方法代碼示例

本文整理匯總了PHP中Options_Framework_Admin::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Options_Framework_Admin::init方法的具體用法?PHP Options_Framework_Admin::init怎麽用?PHP Options_Framework_Admin::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Options_Framework_Admin的用法示例。


在下文中一共展示了Options_Framework_Admin::init方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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:

 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:

 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:

 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:

 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:

 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


注:本文中的Options_Framework_Admin::init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。