PluginProbe
Posts Table with Search & Sort / 1.4.13
Posts Table with Search & Sort v1.4.13
1.4.13 trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2 1.3 1.3.1 1.3.1-v2 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 All 40 releases
← All changes | src/Frontend_Scripts.php +11 -10 1.3.61.4.13 View file →
@@ -1,12 +1,12 @@
1 1 <?php
2 2
3 3 namespace Barn2\Plugin\Posts_Table_Search_Sort;
4 4
5 -use Barn2\PTS_Lib\Plugin\Plugin;
6 -use Barn2\PTS_Lib\Registerable;
7 -use Barn2\PTS_Lib\Service;
8 -use Barn2\PTS_Lib\Util;
5 +use Barn2\Plugin\Posts_Table_Search_Sort\Dependencies\Lib\Plugin\Plugin;
6 +use Barn2\Plugin\Posts_Table_Search_Sort\Dependencies\Lib\Registerable;
7 +use Barn2\Plugin\Posts_Table_Search_Sort\Dependencies\Lib\Service\Standard_Service;
8 +use Barn2\Plugin\Posts_Table_Search_Sort\Dependencies\Lib\Util;
9 9
10 10 /**
11 11 * Registers the frontend styles and scripts for the post tables.
12 12 *
@@ -14,11 +14,11 @@
14 14 * @author Barn2 Plugins <support@barn2.com>
15 15 * @license GPL-3.0
16 16 * @copyright Barn2 Media Ltd
17 17 */
18 -class Frontend_Scripts implements Registerable, Service {
18 +class Frontend_Scripts implements Registerable, Standard_Service {
19 19
20 - const DATATABLES_VERSION = '1.10.21';
20 + const DATATABLES_VERSION = '1.11.3';
21 21
22 22 private $plugin;
23 23
24 24 public function __construct( Plugin $plugin ) {
@@ -32,17 +32,17 @@
32 32
33 33 public function register_styles() {
34 34 $suffix = Util::get_script_suffix();
35 35
36 - wp_register_style( 'jquery-data-tables', plugins_url( 'assets/js/datatables/datatables.min.css', $this->plugin->get_file() ), [], self::DATATABLES_VERSION );
37 - wp_register_style( 'posts-data-table', plugins_url( "assets/css/posts-data-table{$suffix}.css", $this->plugin->get_file() ), [ 'jquery-data-tables' ], $this->plugin->get_version() );
36 + wp_register_style( 'jquery-datatables-pss', plugins_url( 'assets/js/datatables/datatables.min.css', $this->plugin->get_file() ), [], self::DATATABLES_VERSION );
37 + wp_register_style( 'posts-data-table', plugins_url( "assets/css/posts-data-table-main.css", $this->plugin->get_file() ), [ 'jquery-datatables-pss' ], $this->plugin->get_version() );
38 38 }
39 39
40 40 public function register_scripts() {
41 41 $suffix = Util::get_script_suffix();
42 42
43 - wp_register_script( 'jquery-data-tables', plugins_url( 'assets/js/datatables/datatables.min.js', $this->plugin->get_file() ), [ 'jquery' ], self::DATATABLES_VERSION, true );
44 - wp_register_script( 'posts-data-table', plugins_url( "assets/js/posts-data-table{$suffix}.js", $this->plugin->get_file() ), [ 'jquery-data-tables' ], $this->plugin->get_version(), true );
43 + wp_register_script( 'jquery-datatables-pss', plugins_url( "assets/js/datatables/datatables{$suffix}.js", $this->plugin->get_file() ), [ 'jquery' ], self::DATATABLES_VERSION, true );
44 + wp_register_script( 'posts-data-table', plugins_url( "assets/js/posts-data-table-main.js", $this->plugin->get_file() ), [ 'jquery', 'jquery-datatables-pss' ], $this->plugin->get_version(), true );
45 45
46 46 $locale = get_locale();
47 47 $supported_locales = $this->get_supported_locales();
48 48
@@ -77,8 +77,9 @@
77 77 'de_DE' => $lang_file_base_url . 'German.json',
78 78 'de_CH' => $lang_file_base_url . 'German.json',
79 79 'el' => $lang_file_base_url . 'Greek.json',
80 80 'el_EL' => $lang_file_base_url . 'Greek.json',
81 + 'zh_TW' => $lang_file_base_url . 'Taiwan.json',
81 82 ]
82 83 );
83 84 }
84 85