PluginProbe
Posts Table with Search & Sort / 1.4.11
Posts Table with Search & Sort v1.4.11
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 +7 -7 1.3.71.4.11 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,9 +14,9 @@
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 20 const DATATABLES_VERSION = '1.11.3';
21 21
22 22 private $plugin;
@@ -33,9 +33,9 @@
33 33 public function register_styles() {
34 34 $suffix = Util::get_script_suffix();
35 35
36 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{$suffix}.css", $this->plugin->get_file() ), [ 'jquery-datatables-pss' ], $this->plugin->get_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();
@@ -40,9 +40,9 @@
40 40 public function register_scripts() {
41 41 $suffix = Util::get_script_suffix();
42 42
43 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{$suffix}.js", $this->plugin->get_file() ), [ 'jquery', 'jquery-datatables-pss' ], $this->plugin->get_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