예제 #1
0
 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);
 }
 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);
 }
 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);
 }
 /**
  * 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);
 }
예제 #5
0
 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);
 }
 /**
  * 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);
 }
 /**
  * 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);
 }
 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")))));
 }
예제 #9
0
 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);
 }
예제 #10
0
 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);
 }
예제 #11
0
 /**
  * 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);
 }
 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);
 }
예제 #13
0
 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);
 }
 /**
  * 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);
 }
 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'))))));
 }
 /**
  * Register add-on scripts.
  *
  * @access protected
  * @since 1.0.0
  *
  * @return array
  */
 public function scripts()
 {
     $scripts = array(array('handle' => 'gfiframe-settings', 'src' => $this->get_base_url() . '/assets/scripts/settings.js', 'version' => $this->_version, 'deps' => array('jquery'), 'enqueue' => array(array('admin_page' => array('form_settings'), 'tab' => 'gfiframe'))));
     return array_merge(parent::scripts(), $scripts);
 }
 public function scripts()
 {
     $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')))));
     return array_merge(parent::scripts(), $scripts);
 }
 public function styles()
 {
     $styles = array(array('handle' => 'gfwebap_settings', 'src' => GFCommon::get_base_url() . '/includes/webapi/css/gfwebapi_settings.css', 'version' => $this->_version, 'deps' => array('thickbox'), 'enqueue' => array(array('admin_page' => array('plugin_settings')))));
     return array_merge(parent::scripts(), $styles);
 }
예제 #19
0
파일: webapi.php 프로젝트: tlandn/akvo-web
 public function styles()
 {
     $styles = array(array("handle" => "gfwebap_settings", "src" => GFCommon::get_base_url() . "/includes/webapi/css/gfwebapi_settings.css", "version" => $this->_version, "deps" => array("thickbox"), "enqueue" => array(array("admin_page" => array("plugin_settings")))));
     return array_merge(parent::scripts(), $styles);
 }
예제 #20
0
 protected 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' => __("First Choice", "gravityformspolls"), 'secondChoice' => __("Second Choice", "gravityformspolls"), 'thirdChoice' => __("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);
 }