Changeset 2013975
- Timestamp:
- 01/17/2019 09:17:33 AM (7 years ago)
- Location:
- yt-no-cookie-embed/trunk
- Files:
-
- 3 edited
-
includes/class-yt-no-cookie-embed.php (modified) (1 diff)
-
public/class-yt-no-cookie-embed-public.php (modified) (7 diffs)
-
yt-no-cookie-embed.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
yt-no-cookie-embed/trunk/includes/class-yt-no-cookie-embed.php
r1971348 r2013975 71 71 $this->version = YT_NO_COOKIE_EMBED_VERSION; 72 72 } else { 73 $this->version = '1.0. 0';73 $this->version = '1.0.1'; 74 74 } 75 75 $this->plugin_name = 'yt-no-cookie-embed'; -
yt-no-cookie-embed/trunk/public/class-yt-no-cookie-embed-public.php
r1971348 r2013975 45 45 * 46 46 * @since 1.0.0 47 * @param string $plugin_name The name of the plugin.48 * @param string $version The version of this plugin.47 * @param string $plugin_name The name of the plugin. 48 * @param string $version The version of this plugin. 49 49 */ 50 50 public function __construct( $plugin_name, $version ) { 51 51 52 52 $this->plugin_name = $plugin_name; 53 $this->version = $version;53 $this->version = $version; 54 54 55 55 add_filter( 'pb_fusion_attr_youtube-shortcode', array( $this, 'attr' ) ); … … 77 77 */ 78 78 79 wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/yt-no-cookie-embed-public.css', array(), $this->version, 'all' ); 80 79 // wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/yt-no-cookie-embed-public.css', array(), $this->version, 'all' ); 81 80 } 82 81 … … 100 99 */ 101 100 102 wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/yt-no-cookie-embed-public.js', array( 'jquery' ), $this->version, false ); 103 101 // wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/yt-no-cookie-embed-public.js', array( 'jquery' ), $this->version, false ); 104 102 } 105 103 … … 115 113 public function render( $args, $content = '' ) { 116 114 117 if ( !class_exists( 'FusionBuilder' ) ) return; 115 if ( ! class_exists( 'FusionBuilder' ) ) { 116 return; 117 } 118 118 119 119 $defaults = FusionBuilder::set_shortcode_defaults( … … 129 129 'width' => 600, 130 130 131 ), $args 131 ), 132 $args 132 133 ); 133 134 … … 165 166 166 167 $attr = fusion_builder_visibility_atts( 167 $this->args['hide_on_mobile'], array( 168 $this->args['hide_on_mobile'], 169 array( 168 170 'class' => 'fusion-video fusion-youtube', 169 171 ) … … 222 224 */ 223 225 public function add_scripts() { 224 if ( !class_exists( 'Fusion_Dynamic_JS' ) ) return; 226 if ( ! class_exists( 'Fusion_Dynamic_JS' ) ) { 227 return; 228 } 225 229 Fusion_Dynamic_JS::enqueue_script( 'fusion-video' ); 226 230 } -
yt-no-cookie-embed/trunk/yt-no-cookie-embed.php
r1971348 r2013975 35 35 * Rename this for your plugin and update it as you release new versions. 36 36 */ 37 define( 'YT_NO_COOKIE_EMBED_VERSION', '1.0. 0' );37 define( 'YT_NO_COOKIE_EMBED_VERSION', '1.0.1' ); 38 38 39 39 /**
Note: See TracChangeset
for help on using the changeset viewer.