PluginProbe
GSpeech TTS – WordPress Text To Speech Plugin / 3.1.7
GSpeech TTS – WordPress Text To Speech Plugin v3.1.7
3.21.5 3.21.4 3.21.3 3.21.1 3.21.2 3.20.8 3.21.0 3.20.7 3.20.6 3.20.4 3.20.5 3.20.3 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.10.0 3.10.1 3.10.2 3.10.3 3.11.0 3.11.1 3.11.2 3.12.0 All 161 releases
gspeech / includes / scripts.php

scripts.php in GSpeech TTS – WordPress Text To Speech Plugin 3.1.7, at includes/scripts.php

40 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 // no direct access!
4 defined('ABSPATH') or die("No direct access");
5
6 /******************************
7 * script control
8 ******************************/
9
10 function wpgs_load_scripts() {
11
12 global $plugin_version;
13 global $version_index_1;
14 global $lazy_load;
15 global $gsp_widget_id;
16 global $s_enc;
17 global $h_enc;
18 global $hh_enc;
19
20 if($gsp_widget_id == "") {
21
22 wp_enqueue_style('wpgs-styles1', plugin_dir_url( __FILE__ ) . 'css/gspeech.css?g_version=' . $plugin_version);
23 wp_enqueue_style('wpgs-styles12', plugin_dir_url( __FILE__ ) . 'css/the-tooltip.css?g_version=' . $plugin_version);
24 wp_enqueue_script("jquery");
25 wp_enqueue_script('wpgs-script4', plugin_dir_url( __FILE__ ) . 'js/color.js?g_version=' . $plugin_version, array('jquery'));
26 wp_enqueue_script('wpgs-script5', plugin_dir_url( __FILE__ ) . 'js/jQueryRotate.2.1.js?g_version=' . $plugin_version, array('jquery'));
27 wp_enqueue_script('wpgs-script7', plugin_dir_url( __FILE__ ) . 'js/easing.js?g_version=' . $plugin_version, array('jquery'));
28 wp_enqueue_script('wpgs-script6', plugin_dir_url( __FILE__ ) . 'js/mediaelement-and-player.min.js?g_version=' . $plugin_version, array('jquery'));
29 }
30 else {
31
32 $gsp_index = "gspeech_front_script_n127";
33
34 wp_enqueue_script("jquery");
35 wp_enqueue_script('wpgs-script777', plugin_dir_url( __FILE__ ) . 'js/gspeech_front.js?g_indexsp___eq' . $gsp_index . 'gsp___delg_versiongsp___eq' . $plugin_version . 'gsp___delw_idgsp___eq' . $gsp_widget_id . 'gsp___dels_encgsp___eq' . $s_enc . 'gsp___delh_encgsp___eq' . $h_enc . 'gsp___delhh_encgsp___eq' . $hh_enc . 'gsp___dellazy_loadgsp___eq' . $lazy_load .'gsp___delvv_indexgsp___eq' . $version_index_1, array('jquery'));
36 }
37 }
38
39 add_action('wp_enqueue_scripts', 'wpgs_load_scripts');
40