当前位置: 首页>>代码示例>>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;未经允许,请勿转载。