Plugin Directory

Changeset 2013975


Ignore:
Timestamp:
01/17/2019 09:17:33 AM (7 years ago)
Author:
foack
Message:

Removed unused JS/CSS files being enqueued in frontend

Location:
yt-no-cookie-embed/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • yt-no-cookie-embed/trunk/includes/class-yt-no-cookie-embed.php

    r1971348 r2013975  
    7171            $this->version = YT_NO_COOKIE_EMBED_VERSION;
    7272        } else {
    73             $this->version = '1.0.0';
     73            $this->version = '1.0.1';
    7474        }
    7575        $this->plugin_name = 'yt-no-cookie-embed';
  • yt-no-cookie-embed/trunk/public/class-yt-no-cookie-embed-public.php

    r1971348 r2013975  
    4545     *
    4646     * @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.
    4949     */
    5050    public function __construct( $plugin_name, $version ) {
    5151
    5252        $this->plugin_name = $plugin_name;
    53         $this->version = $version;
     53        $this->version     = $version;
    5454
    5555        add_filter( 'pb_fusion_attr_youtube-shortcode', array( $this, 'attr' ) );
     
    7777         */
    7878
    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' );
    8180    }
    8281
     
    10099         */
    101100
    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 );
    104102    }
    105103
     
    115113    public function render( $args, $content = '' ) {
    116114
    117         if ( !class_exists( 'FusionBuilder' ) ) return;
     115        if ( ! class_exists( 'FusionBuilder' ) ) {
     116            return;
     117        }
    118118
    119119        $defaults = FusionBuilder::set_shortcode_defaults(
     
    129129                'width'          => 600,
    130130
    131             ), $args
     131            ),
     132            $args
    132133        );
    133134
     
    165166
    166167        $attr = fusion_builder_visibility_atts(
    167             $this->args['hide_on_mobile'], array(
     168            $this->args['hide_on_mobile'],
     169            array(
    168170                'class' => 'fusion-video fusion-youtube',
    169171            )
     
    222224     */
    223225    public function add_scripts() {
    224         if ( !class_exists( 'Fusion_Dynamic_JS' ) ) return;
     226        if ( ! class_exists( 'Fusion_Dynamic_JS' ) ) {
     227            return;
     228        }
    225229        Fusion_Dynamic_JS::enqueue_script( 'fusion-video' );
    226230    }
  • yt-no-cookie-embed/trunk/yt-no-cookie-embed.php

    r1971348 r2013975  
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'YT_NO_COOKIE_EMBED_VERSION', '1.0.0' );
     37define( 'YT_NO_COOKIE_EMBED_VERSION', '1.0.1' );
    3838
    3939/**
Note: See TracChangeset for help on using the changeset viewer.