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


PHP GFAddOn::scripts方法代碼示例

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


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

示例1: scripts

 public function scripts()
 {
     $gsurvey_js_deps = array('jquery', 'jquery-ui-sortable');
     if (wp_is_mobile()) {
         $gsurvey_js_deps[] = 'jquery-touch-punch';
     }
     $scripts = array(array('handle' => 'gsurvey_form_editor_js', 'src' => $this->get_base_url() . '/js/gsurvey_form_editor.js', 'version' => $this->_version, 'deps' => array('jquery'), 'callback' => array($this, 'localize_scripts'), 'enqueue' => array(array('admin_page' => array('form_editor')))), array('handle' => 'gsurvey_js', 'src' => $this->get_base_url() . '/js/gsurvey.js', 'version' => $this->_version, 'deps' => $gsurvey_js_deps, 'enqueue' => array(array('admin_page' => array('form_editor', 'results', 'entry_view', 'entry_detail', 'entry_edit')), array('field_types' => array('survey')))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:qhuit,項目名稱:dcosta,代碼行數:9,代碼來源:class-gf-survey.php

示例2: scripts

 public function scripts()
 {
     $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG || isset($_GET['gform_debug']) ? '' : '.min';
     $scripts = array(array('handle' => 'gform_form_admin', 'enqueue' => array(array('admin_page' => array('form_settings')))), array('handle' => 'gform_gravityforms', 'enqueue' => array(array('admin_page' => array('form_settings')))), array('handle' => 'gform_forms', 'enqueue' => array(array('admin_page' => array('form_settings')))), array('handle' => 'json2', 'enqueue' => array(array('admin_page' => array('form_settings')))), array('handle' => 'gform_placeholder', 'enqueue' => array(array('admin_page' => array('form_settings'), 'field_types' => array('feed_condition')))));
     if ($this->_supports_feed_ordering) {
         $scripts[] = array('handle' => 'gaddon_feedorder', 'src' => $this->get_gfaddon_base_url() . "/js/gaddon_feedorder{$min}.js", 'version' => GFCommon::$version, 'deps' => array('jquery', 'jquery-ui-sortable'), 'in_footer' => false, 'enqueue' => array(array('admin_page' => array('form_settings'))), 'strings' => array('addon' => $this->_slug, 'nonce' => wp_create_nonce('gform_feed_order')));
     }
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:fjbeteiligung,項目名稱:development,代碼行數:9,代碼來源:class-gf-feed-addon.php

示例3: scripts

 public function scripts()
 {
     $scripts = array(array('handle' => 'maskedinput', 'src' => GFCommon::get_base_url() . '/js/jquery.maskedinput-1.3.1.min.js', 'version' => GFCommon::$version, 'deps' => array('jquery'), 'enqueue' => array(array('admin_page' => array('form_editor')))), array('handle' => 'super_signature_script', 'src' => $this->get_base_url() . '/super_signature/ss.js', 'version' => $this->_version, 'deps' => array('jquery'), 'enqueue' => array(array('field_types' => array('signature')))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:ajay786singh,項目名稱:viriditas-1,代碼行數:5,代碼來源:class-gf-signature.php

示例4: scripts

 /**
  * Include admin scripts
  *
  */
 public function scripts()
 {
     $scripts = array(array("handle" => "sticky_list_js", "src" => $this->get_base_url() . "/js/sticky-list_scripts.js", "version" => $this->_version, "deps" => array("jquery"), "enqueue" => array(array("admin_page" => array("form_settings"), "tab" => "sticky-list"))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:Ezyva2015,項目名稱:SMSF-Academy-Wordpress,代碼行數:9,代碼來源:class-sticky-list.php

示例5: scripts

 public function scripts()
 {
     $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG || isset($_GET['gform_debug']) ? '' : '.min';
     $scripts = array(array('handle' => 'gfwebapi_hmac_sha1', 'src' => GFCommon::get_base_url() . '/includes/webapi/js/hmac-sha1.min.js', 'enqueue' => array(array('admin_page' => array('plugin_settings')))), array('handle' => 'gfwebapi_enc_base64', 'src' => GFCommon::get_base_url() . '/includes/webapi/js/enc-base64-min.js', 'deps' => array('gfwebapi_hmac_sha1'), 'callback' => array($this, 'localize_form_settings_scripts'), 'enqueue' => array(array('admin_page' => array('plugin_settings')))), array('handle' => 'gfwebapi_settings.js', 'src' => GFCommon::get_base_url() . "/includes/webapi/js/gfwebapi_settings{$min}.js", 'version' => $this->_version, 'deps' => array('jquery', 'thickbox'), 'enqueue' => array(array('admin_page' => array('plugin_settings')))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:SayenkoDesign,項目名稱:ividf,代碼行數:6,代碼來源:webapi.php

示例6: scripts

 /**
  * Return the scripts which should be enqueued.
  *
  * @return array
  */
 public function scripts()
 {
     $scripts = array(array('handle' => 'gpoll_form_editor_js', 'src' => $this->get_base_url() . '/js/gpoll_form_editor.js', 'version' => $this->_version, 'deps' => array('jquery'), 'strings' => array('firstChoice' => esc_html__('First Choice', 'gravityformspolls'), 'secondChoice' => esc_html__('Second Choice', 'gravityformspolls'), 'thirdChoice' => esc_html__('Third Choice', 'gravityformspolls')), 'enqueue' => array(array('admin_page' => array('form_editor')))), array('handle' => 'gpoll_form_settings_js', 'src' => $this->get_base_url() . '/js/gpoll_form_settings.js', 'version' => $this->_version, 'deps' => array('jquery'), 'enqueue' => array(array('admin_page' => array('form_settings'), 'tab' => 'gravityformspolls'))), array('handle' => 'gpoll_js', 'src' => $this->get_base_url() . '/js/gpoll.js', 'version' => $this->_version, 'deps' => array('jquery'), 'callback' => array($this, 'localize_scripts'), 'enqueue' => array(array('field_types' => array('poll')))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:GravityPDF,項目名稱:gravityformspolls,代碼行數:10,代碼來源:class-gf-polls.php

示例7: scripts

 /**
  * Enqueue scripts
  * @return [type] [description]
  */
 public function scripts()
 {
     $script_debug = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
     $scripts = array(array("handle" => "business_hours_app", "src" => $this->get_base_url() . "/assets/js/public{$script_debug}.js", "version" => $this->_version, "deps" => array("jquery"), 'callback' => array($this, 'localize_scripts'), "enqueue" => array(array("field_types" => array("business_hours")), array("admin_page" => array("entry_edit", "entry_detail")))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:hughc,項目名稱:Gravity-Forms-Business-Hours,代碼行數:10,代碼來源:gravity-forms-business-hours.php

示例8: scripts

 public function scripts()
 {
     parent::scripts();
     return array(array("handle" => "gfdo-scripts", "src" => $this->get_base_url() . "/js/gfdo.js", "version" => GFCommon::$version, "enqueue" => array(array("admin_page" => array("form_settings")))));
 }
開發者ID:BAY-A,項目名稱:Gravity-Forms-DigitalOcean,代碼行數:5,代碼來源:gravityforms-digitalocean.php

示例9: scripts

 public function scripts()
 {
     $scripts = array(array("handle" => "gf_repeater_js_admin", "src" => $this->get_base_url() . "/js/gf-repeater-admin.js", "version" => $this->_version, "deps" => array('jquery'), "in_footer" => false, "callback" => array($this, 'localize_scripts'), "strings" => array('page' => rgget('page'), 'debug' => GF_REPEATER_DEBUG), "enqueue" => array(array("admin_page" => array('form_editor', 'entry_view', 'entry_detail')))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:kodie,項目名稱:gravityforms-repeater,代碼行數:5,代碼來源:repeater.php

示例10: scripts

 protected function scripts()
 {
     $scripts = array(array("handle" => "maskedinput", "src" => GFCommon::get_base_url() . "/js/jquery.maskedinput-1.3.1.min.js", "version" => GFCommon::$version, "deps" => array("jquery"), "enqueue" => array(array("admin_page" => array("form_editor")))), array("handle" => "super_signature_script", "src" => $this->get_base_url() . "/super_signature/ss.js", "version" => $this->_version, "deps" => array("jquery"), "enqueue" => array(array("field_types" => array("signature")))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:macconsultinggroup,項目名稱:WordPress,代碼行數:5,代碼來源:signature.php

示例11: scripts

 /**
  * Return the scripts which should be enqueued.
  *
  * @return array
  */
 public function scripts()
 {
     $scripts = array(array('handle' => 'gquiz_form_editor_js', 'src' => $this->get_base_url() . '/js/gquiz_form_editor.js', 'version' => $this->_version, 'deps' => array('jquery'), 'callback' => array($this, 'localize_form_editor_scripts'), 'enqueue' => array(array('admin_page' => array('form_editor')))), array('handle' => 'gquiz_form_settings_js', 'src' => $this->get_base_url() . '/js/gquiz_form_settings.js', 'version' => $this->_version, 'deps' => array('jquery', 'jquery-ui-sortable', 'gform_json'), 'callback' => array($this, 'localize_form_settings_scripts'), 'enqueue' => array(array('admin_page' => array('form_settings'), 'tab' => 'gravityformsquiz'))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:GravityPDF,項目名稱:gravityformsquiz,代碼行數:10,代碼來源:class-gf-quiz.php

示例12: scripts

 public function scripts()
 {
     $scripts = array(array("handle" => "my_script_js", "src" => $this->get_base_url() . "/js/my_script.js", "version" => $this->_version, "deps" => array("jquery"), "strings" => array('first' => __("First Choice", "multientry"), 'second' => __("Second Choice", "multientry"), 'third' => __("Third Choice", "multientry")), "enqueue" => array(array("admin_page" => array("form_settings"), "tab" => "multientry"))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:pauldowlin,項目名稱:gravity_forms_multi_entry,代碼行數:5,代碼來源:class-gf-multi-entry.php

示例13: scripts

 public function scripts()
 {
     $scripts = array(array('handle' => 'gfwebapi_hmac_sha1', 'src' => 'https://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/hmac-sha1.js', 'enqueue' => array(array('admin_page' => array('plugin_settings')))), array('handle' => 'gfwebapi_enc_base64', 'src' => 'https://crypto-js.googlecode.com/svn/tags/3.1.2/build/components/enc-base64-min.js', 'deps' => array('gfwebapi_hmac_sha1'), 'callback' => array($this, 'localize_form_settings_scripts'), 'enqueue' => array(array('admin_page' => array('plugin_settings')))), array('handle' => 'gfwebapi_settings.js', 'src' => GFCommon::get_base_url() . '/includes/webapi/js/gfwebapi_settings.js', 'version' => $this->_version, 'deps' => array('jquery', 'thickbox'), 'enqueue' => array(array('admin_page' => array('plugin_settings')))));
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:Nguyenkain,項目名稱:strida.vn,代碼行數:5,代碼來源:webapi.php

示例14: scripts

 /**
  * Load the scripts required by the plugin
  *
  * @return void
  * @author 
  **/
 public function scripts()
 {
     $scripts = [['handle' => 'intuit_ipp_anywhere', 'src' => 'https://appcenter.intuit.com/Content/IA/intuit.ipp.anywhere.js', 'version' => null, 'in_footer' => false, 'callback' => [], 'enqueue' => [['admin_page' => 'plugin_settings']]], ['handle' => 'gf_quickbooks_online_intuit', 'src' => $this->get_base_url() . '/admin/js/gf-quickbooks-online-intuit.js', 'deps' => ['intuit_ipp_anywhere'], 'strings' => ['grantUrl' => admin_url('admin.php?page=' . $_GET['page'] . (isset($_GET['subview']) ? '&subview=' . $_GET['subview'] : '') . '&qbconnect')], 'enqueue' => [['admin_page' => 'plugin_settings']]]];
     return array_merge(parent::scripts(), $scripts);
 }
開發者ID:appsol,項目名稱:gf-quickbooks-online,代碼行數:11,代碼來源:class-gf-quickbooks-online-addon.php

示例15: scripts

 public function scripts()
 {
     return array_merge(parent::scripts(), array(array('handle' => 'gravity_forms_section_tabs_main', 'src' => $this->get_base_url() . '/js/main.js', 'version' => $this->_version, 'deps' => array('jquery'), 'in_footer' => true, 'enqueue' => array(array('field_types' => array('section'))))));
 }
開發者ID:andresglx,項目名稱:gravity-forms-section-tabs,代碼行數:4,代碼來源:gravityforms-section-tabs.php


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