PluginProbe
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid / 5.0.4
The Post Grid – Shortcode, Gutenberg Blocks and Elementor Addon for Post Grid v5.0.4
7.9.4 7.9.3 7.9.2 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.2.0 4.2.1 4.2.2 4.2.3 5.0.0 5.0.1 5.0.2 5.0.3 5.0.4 All 87 releases
← All changes | app/Controllers/ScriptController.php +4 -6 4.2.25.0.4 View file →
@@ -34,11 +34,10 @@
34 34 * Class construct
35 35 */
36 36 public function __construct() {
37 37 $this->version = defined( 'WP_DEBUG' ) && WP_DEBUG ? time() : RT_THE_POST_GRID_VERSION;
38 -
39 - add_action( 'wp_head', [ &$this, 'header_scripts' ] );
40 - add_action( 'wp_enqueue_scripts', [ &$this, 'enqueue' ] );
38 + add_action( 'wp_head', [ $this, 'header_scripts' ] );
39 + add_action( 'wp_enqueue_scripts', [ $this, 'enqueue' ] );
41 40 add_action( 'init', [ $this, 'init' ] );
42 41 }
43 42
44 43 /**
@@ -77,9 +76,9 @@
77 76 $styles['rt-fontawsome'] = rtTPG()->get_assets_uri( 'vendor/font-awesome/css/font-awesome.min.css' );
78 77
79 78 // Plugin specific css.
80 79 $styles['rt-tpg'] = rtTPG()->tpg_can_be_rtl( 'css/thepostgrid' );
81 - $styles['rt-tpg-elementor'] = rtTPG()->tpg_can_be_rtl( 'css/tpg-elementor' );
80 + $styles['rt-tpg-block'] = rtTPG()->tpg_can_be_rtl( 'css/tpg-block' );
82 81 $styles['rt-tpg-shortcode'] = rtTPG()->tpg_can_be_rtl( 'css/tpg-shortcode' );
83 82
84 83 if ( is_admin() ) {
85 84 $scripts[] = [
@@ -121,9 +120,8 @@
121 120 * @return void
122 121 */
123 122 public function enqueue() {
124 123 $block_type = isset( $this->settings['tpg_block_type'] ) ? $this->settings['tpg_block_type'] : 'default';
125 -
126 124 wp_enqueue_script( 'jquery' );
127 125
128 126 if ( ! isset( $this->settings['tpg_load_script'] ) ) {
129 127 wp_enqueue_style( 'rt-fontawsome' );
@@ -132,9 +130,9 @@
132 130 wp_enqueue_style( 'rt-tpg' );
133 131 }
134 132
135 133 if ( 'elementor' === $block_type ) {
136 - wp_enqueue_style( 'rt-tpg-elementor' );
134 + wp_enqueue_style( 'rt-tpg-block' );
137 135 }
138 136
139 137 if ( 'shortcode' === $block_type ) {
140 138 wp_enqueue_style( 'rt-tpg-shortcode' );