| @@ -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 | |