PluginProbe ʕ •ᴥ•ʔ
Translate WordPress – Google Language Translator / 3.0.5
Translate WordPress – Google Language Translator v3.0.5
trunk 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.7 4.0.8 4.0.9 5.0 5.0.0 5.0.01 5.0.02 5.0.03 5.0.04 5.0.05 5.0.06 5.0.07 5.0.08 5.0.09 5.0.10 5.0.11 5.0.12 5.0.13 5.0.14 5.0.15 5.0.16 5.0.17 5.0.18 5.0.19 5.0.20 5.0.21 5.0.22 5.0.23 5.0.24 5.0.25 5.0.26 5.0.27 5.0.28 5.0.29 5.0.30 5.0.31 5.0.32 5.0.33 5.0.34 5.0.35 5.0.36 5.0.37 5.0.38 5.0.39 5.0.40 5.0.41 5.0.42 5.0.43 5.0.44 5.0.45 5.0.46 5.0.47 5.0.48 5.0.49 6.0.0 6.0.1 6.0.10 6.0.11 6.0.12 6.0.13 6.0.14 6.0.15 6.0.16 6.0.19 6.0.2 6.0.20 6.0.3 6.0.4 6.0.5 6.0.6 6.0.7 6.0.8 6.0.9
google-language-translator / glt_scripts.php
google-language-translator Last commit date
css 12 years ago images 12 years ago admin.js 12 years ago flags.js 12 years ago glt_activate.php 12 years ago glt_css.php 12 years ago glt_horizontal.php 12 years ago glt_scripts.php 12 years ago glt_settings_display.php 12 years ago glt_settings_init.php 12 years ago glt_vertical.php 12 years ago glt_widget.php 12 years ago google-language-translator.php 12 years ago load-toolbar.js 12 years ago readme.txt 12 years ago toolbar.js 12 years ago
glt_scripts.php
44 lines
1 <?php
2
3 function scripts($hook_suffix) {
4 global $p;
5 if ($p == $hook_suffix) {
6 wp_enqueue_script( 'my-admin-script', plugins_url('/admin.js',__FILE__), array('jquery'));
7 wp_enqueue_script( 'my-flag-script', plugins_url('/flags.js',__FILE__), array('jquery'));
8 wp_enqueue_script( 'my-toolbar-script', plugins_url('/toolbar.js',__FILE__), array('jquery'));
9 wp_enqueue_script( 'my-load-toolbar-script', plugins_url('/load-toolbar.js',__FILE__), array('jquery'));
10 wp_register_style( 'toolbar.css', plugins_url('css/toolbar.css', __FILE__) );
11 wp_register_style( 'bootstrap-icons.css', plugins_url('css/bootstrap-icons.css', __FILE__) );
12 wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
13 wp_enqueue_style( 'style.css' );
14 wp_enqueue_style( 'toolbar.css' );
15 wp_enqueue_style( 'bootstrap-icons.css' );
16 }
17 }
18
19 function flags() {
20 wp_enqueue_script( 'flags', plugins_url('/flags.js',__FILE__), array('jquery'));
21 wp_enqueue_script( 'my-toolbar-script', plugins_url('/toolbar.js',__FILE__), array('jquery'));
22 wp_enqueue_script( 'my-load-toolbar-script', plugins_url('/load-toolbar.js',__FILE__), array('jquery'));
23 wp_register_style( 'toolbar.css', plugins_url('css/toolbar.css', __FILE__) );
24 wp_register_style( 'bootstrap-icons.css', plugins_url('css/bootstrap-icons.css', __FILE__) );
25 wp_register_style( 'style.css', plugins_url('css/style.css', __FILE__) );
26 wp_enqueue_style( 'style.css' );
27 wp_enqueue_style( 'toolbar.css' );
28 wp_enqueue_style( 'bootstrap-icons.css' );
29 }
30
31 if (!is_admin()) {
32 add_action('init', 'flags');
33 }
34
35 function page_layout (){
36 global $p;
37
38 add_action( 'admin_enqueue_scripts', 'scripts');
39
40 $p = add_options_page('Google Language Translator', 'Google Language Translator', 'manage_options', 'google_language_translator', 'page_layout_cb');
41 }
42 add_action('admin_menu', 'page_layout');
43
44 ?>