Plugin Directory

Changeset 2942673


Ignore:
Timestamp:
07/24/2023 03:56:57 PM (3 years ago)
Author:
RAD_
Message:

v1.2.0

Location:
simple-lazy-load-videos/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • simple-lazy-load-videos/trunk/includes/class-resources.php

    r2908117 r2942673  
    3636         */
    3737        public function load_textdomain() {
    38             load_plugin_textdomain( 'simple-lazy-load-videos', false, SLLV_PLUGIN_DIRNAME . '/languages/' );
     38            load_plugin_textdomain(
     39                'simple-lazy-load-videos',
     40                false,
     41                SLLV_PLUGIN_DIRNAME . '/languages/'
     42            );
    3943        }
    4044
     
    4751        public function enqueue_scripts() {
    4852            if ( file_exists( SLLV_PATH . 'assets/js/scripts.js' ) ) {
    49                 wp_enqueue_script( 'sllv-js-main', SLLV_URL . 'assets/js/scripts.js', array( 'jquery' ), SLLV_VERSION, true );
     53                wp_enqueue_script(
     54                    'sllv-main',
     55                    SLLV_URL . 'assets/js/scripts.js',
     56                    array(),
     57                    SLLV_VERSION,
     58                    true
     59                );
    5060            }
    5161        }
     
    5969        public function enqueue_styles() {
    6070            if ( file_exists( SLLV_PATH . 'assets/css/main.min.css' ) ) {
    61                 wp_enqueue_style( 'sllv-css-main', SLLV_URL . 'assets/css/main.min.css', false, SLLV_VERSION );
     71                wp_enqueue_style(
     72                    'sllv-main',
     73                    SLLV_URL . 'assets/css/main.min.css',
     74                    false,
     75                    SLLV_VERSION
     76                );
    6277            }
    6378        }
  • simple-lazy-load-videos/trunk/includes/class-template.php

    r2908117 r2942673  
    4949         */
    5050        public function get_youtube_button() {
    51             return $this->youtube;
     51            /**
     52             * Filters the YouTube button code
     53             *
     54             * @since 1.2.0
     55             *
     56             * @param string $this->youtube YouTube button SVG
     57             */
     58            return apply_filters( 'sllv_youtube_button', $this->youtube );
    5259        }
    5360
     
    6168         */
    6269        public function get_vimeo_button() {
    63             return $this->vimeo;
     70            /**
     71             * Filters the Vimeo button code
     72             *
     73             * @since 1.2.0
     74             *
     75             * @param string $this->vimeo Vimeo button SVG
     76             */
     77            return apply_filters( 'sllv_vimeo_button', $this->vimeo );
    6478        }
    6579
     
    142156
    143157            <?php
    144             $return = ob_get_clean();
    145             return $return;
     158            $output = ob_get_clean();
     159
     160            /**
     161             * Filters the video container HTML
     162             *
     163             * @since 1.2.0
     164             *
     165             * @param string $output Returned video HTML
     166             * @param array  $args   Arguments
     167             */
     168            return apply_filters( 'sllv_video_template', $output, $args );
    146169        }
    147170
  • simple-lazy-load-videos/trunk/languages/simple-lazy-load-videos.pot

    r2908117 r2942673  
    44"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
    55"Project-Id-Version: Simple Lazy Load Videos\n"
    6 "POT-Creation-Date: 2023-05-04 18:25+0300\n"
     6"POT-Creation-Date: 2023-07-24 18:49+0300\n"
    77"PO-Revision-Date: 2020-01-08 15:52+0200\n"
    88"Last-Translator: \n"
     
    4343msgstr ""
    4444
    45 #: includes/class-template.php:102
     45#: includes/class-template.php:116
    4646msgid "Video"
    4747msgstr ""
    4848
    49 #: includes/class-template.php:140
     49#: includes/class-template.php:154
    5050msgid "Play Video"
    5151msgstr ""
  • simple-lazy-load-videos/trunk/readme.txt

    r2908117 r2942673  
    44Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=V5Q9SBB54LMDC&source=url
    55Requires at least: 4.9
    6 Tested up to: 6.2
     6Tested up to: 6.3
    77Requires PHP: 5.6
    8 Stable tag: 1.1.0
     8Stable tag: 1.2.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141
    4242== Changelog ==
     43= 1.2.0 =
     44* Add filters: 'sllv_youtube_button', 'sllv_vimeo_button', 'sllv_video_template'
     45* Remove jQuery from depends scripts
     46* Rename CSS & JS handles
     47* Tested up to WordPress 6.3
     48
    4349= 1.1.0 =
    4450* Refactoring
  • simple-lazy-load-videos/trunk/simple-lazy-load-videos.php

    r2908117 r2942673  
    44 * Plugin URI:        https://github.com/radkill/simple-lazy-load-videos
    55 * Description:       Simple Lazy Load for embedded video from Youtube and Vimeo.
    6  * Version:           1.1.0
     6 * Version:           1.2.0
    77 * Requires at least: 4.9
    88 * Requires PHP:      5.6
     
    5757    // include file with function 'get_plugin_data' if not exists
    5858    if ( ! function_exists( 'get_plugin_data' ) ) {
    59         require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
     59        require_once ABSPATH . 'wp-admin/includes/plugin.php';
    6060    }
    6161
     
    6969 * Classes
    7070 */
    71 require_once( SLLV_PATH . 'includes/class-actions.php' );
    72 require_once( SLLV_PATH . 'includes/class-plugin.php' );
    73 require_once( SLLV_PATH . 'includes/class-resources.php' );
    74 require_once( SLLV_PATH . 'includes/class-oembed-cache.php' );
    75 require_once( SLLV_PATH . 'includes/class-template.php' );
    76 require_once( SLLV_PATH . 'includes/class-options.php' );
    77 require_once( SLLV_PATH . 'includes/class-functions.php' );
     71require_once SLLV_PATH . 'includes/class-actions.php';
     72require_once SLLV_PATH . 'includes/class-plugin.php';
     73require_once SLLV_PATH . 'includes/class-resources.php';
     74require_once SLLV_PATH . 'includes/class-oembed-cache.php';
     75require_once SLLV_PATH . 'includes/class-template.php';
     76require_once SLLV_PATH . 'includes/class-options.php';
     77require_once SLLV_PATH . 'includes/class-functions.php';
    7878
    7979
Note: See TracChangeset for help on using the changeset viewer.