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


PHP Options_Framework_Admin::menu_settings方法代碼示例

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


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

示例1: 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

示例2: 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

示例3: 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

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