Changeset 2908117
- Timestamp:
- 05/04/2023 03:42:37 PM (3 years ago)
- Location:
- simple-lazy-load-videos/trunk
- Files:
-
- 1 added
- 1 deleted
- 9 edited
-
includes/class-actions.php (modified) (1 diff)
-
includes/class-functions.php (modified) (2 diffs)
-
includes/class-main.php (deleted)
-
includes/class-oembed-cache.php (modified) (2 diffs)
-
includes/class-options.php (modified) (3 diffs)
-
includes/class-plugin.php (added)
-
includes/class-resources.php (modified) (2 diffs)
-
includes/class-template.php (modified) (3 diffs)
-
languages/simple-lazy-load-videos.pot (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
simple-lazy-load-videos.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-lazy-load-videos/trunk/includes/class-actions.php
r2882593 r2908117 1 1 <?php 2 if ( ! class_exists( 'SLLV_Actions' ) ) { 2 /** 3 * Class Actions 4 * 5 * @package simple-lazy-load-videos 6 * @since 0.6.0 7 */ 8 9 namespace SLLV; 10 11 if ( ! class_exists( '\SLLV\Actions' ) ) { 3 12 /** 4 13 * Plugin actions 5 14 * 6 * Activation, deactivation , uninstalling15 * Activation, deactivation and uninstalling actions 7 16 * 8 17 * @since 0.6.0 9 18 */ 10 class SLLV_Actions {19 class Actions { 11 20 12 21 /** -
simple-lazy-load-videos/trunk/includes/class-functions.php
r2882593 r2908117 1 1 <?php 2 if ( ! class_exists( 'SLLV_Functions' ) ) { 2 /** 3 * Class Functions 4 * 5 * @package simple-lazy-load-videos 6 * @since 0.8.0 7 */ 8 9 namespace SLLV; 10 11 if ( ! class_exists( '\SLLV\Functions' ) ) { 3 12 /** 4 13 * Functions … … 6 15 * @since 0.8.0 7 16 */ 8 class SLLV_Functions {17 class Functions { 9 18 10 19 /** -
simple-lazy-load-videos/trunk/includes/class-oembed-cache.php
r2882593 r2908117 1 1 <?php 2 if ( ! class_exists( 'SLLV_Oembed_Cache' ) ) { 2 /** 3 * Class Oembed_Cache 4 * 5 * @package simple-lazy-load-videos 6 * @since 0.2.0 7 */ 8 9 namespace SLLV; 10 11 if ( ! class_exists( '\SLLV\Oembed_Cache' ) ) { 3 12 /** 4 13 * Oembed Cache … … 6 15 * @since 0.2.0 7 16 */ 8 class SLLV_Oembed_Cache {17 class Oembed_Cache { 9 18 10 19 /** -
simple-lazy-load-videos/trunk/includes/class-options.php
r2882593 r2908117 1 1 <?php 2 if ( ! class_exists( 'SLLV_Options' ) ) { 2 /** 3 * Class Options 4 * 5 * @package simple-lazy-load-videos 6 * @since 0.7.0 7 */ 8 9 namespace SLLV; 10 11 if ( ! class_exists( '\SLLV\Options' ) ) { 3 12 /** 4 13 * Options page … … 6 15 * @since 0.7.0 7 16 */ 8 class SLLV_Options {17 class Options { 9 18 10 19 /** … … 34 43 */ 35 44 public function plugin_action_links( $actions, $plugin_file ) { 36 if ( false === strpos( $plugin_file, SLLV_PLUGIN_ FILE ) ) {45 if ( false === strpos( $plugin_file, SLLV_PLUGIN_BASENAME ) ) { 37 46 return $actions; 38 47 } -
simple-lazy-load-videos/trunk/includes/class-resources.php
r2882593 r2908117 1 1 <?php 2 if ( ! class_exists( 'SLLV_Resources' ) ) { 2 /** 3 * Class Resources 4 * 5 * @package simple-lazy-load-videos 6 * @since 0.7.2 7 */ 8 9 namespace SLLV; 10 11 if ( ! class_exists( '\SLLV\Resources' ) ) { 3 12 /** 4 13 * Resources … … 6 15 * @since 0.7.2 7 16 */ 8 class SLLV_Resources {17 class Resources { 9 18 10 19 /** -
simple-lazy-load-videos/trunk/includes/class-template.php
r2882593 r2908117 1 1 <?php 2 if ( ! class_exists( 'SLLV_Template' ) ) { 2 /** 3 * Class Template 4 * 5 * @package simple-lazy-load-videos 6 * @since 0.2.0 7 */ 8 9 namespace SLLV; 10 11 if ( ! class_exists( '\SLLV\Template' ) ) { 3 12 /** 4 13 * Template … … 6 15 * @since 0.2.0 7 16 */ 8 class SLLV_Template {17 class Template { 9 18 10 19 /** … … 71 80 ) ); 72 81 73 $functions = new SLLV_Functions();82 $functions = new \SLLV\Functions(); 74 83 75 84 $output = false; -
simple-lazy-load-videos/trunk/languages/simple-lazy-load-videos.pot
r2874846 r2908117 4 4 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 5 5 "Project-Id-Version: Simple Lazy Load Videos\n" 6 "POT-Creation-Date: 2023-0 3-05 03:43+0200\n"6 "POT-Creation-Date: 2023-05-04 18:25+0300\n" 7 7 "PO-Revision-Date: 2020-01-08 15:52+0200\n" 8 8 "Last-Translator: \n" … … 22 22 "X-Poedit-SearchPathExcluded-0: *.js\n" 23 23 24 #: includes/class-main.php:130 includes/class-main.php:208 25 msgid "Video" 26 msgstr "" 27 28 #: includes/class-options.php:40 includes/class-options.php:98 24 #: includes/class-options.php:49 includes/class-options.php:107 29 25 msgid "Settings" 30 26 msgstr "" 31 27 32 28 #. Plugin Name of the plugin/theme 33 #: includes/class-options.php: 53 includes/class-options.php:5429 #: includes/class-options.php:62 includes/class-options.php:63 34 30 msgid "Simple Lazy Load Videos" 35 31 msgstr "" 36 32 37 #: includes/class-options.php:1 0333 #: includes/class-options.php:112 38 34 msgid "YouTube Thumbnail Size" 39 35 msgstr "" 40 36 41 #: includes/class-options.php:1 1137 #: includes/class-options.php:120 42 38 msgid "Vimeo Thumbnail Size" 43 39 msgstr "" 44 40 45 #: includes/class-template.php:83 41 #: includes/class-plugin.php:213 42 msgid "GitHub" 43 msgstr "" 44 45 #: includes/class-template.php:102 46 msgid "Video" 47 msgstr "" 48 49 #: includes/class-template.php:140 46 50 msgid "Play Video" 47 51 msgstr "" … … 52 56 53 57 #. Description of the plugin/theme 54 msgid "Simple Lazy Load for embedded video from Youtube and Vimeo "58 msgid "Simple Lazy Load for embedded video from Youtube and Vimeo." 55 59 msgstr "" 56 60 -
simple-lazy-load-videos/trunk/readme.txt
r2882593 r2908117 6 6 Tested up to: 6.2 7 7 Requires PHP: 5.6 8 Stable tag: 1. 0.08 Stable tag: 1.1.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 41 41 42 42 == Changelog == 43 = 1.1.0 = 44 * Refactoring 45 * Add GitHub link to plugin meta 46 43 47 = 1.0.0 = 44 48 * Add Gutenberg support -
simple-lazy-load-videos/trunk/simple-lazy-load-videos.php
r2882593 r2908117 3 3 * Plugin Name: Simple Lazy Load Videos 4 4 * Plugin URI: https://github.com/radkill/simple-lazy-load-videos 5 * Description: Simple Lazy Load for embedded video from Youtube and Vimeo 6 * Version: 1. 0.05 * Description: Simple Lazy Load for embedded video from Youtube and Vimeo. 6 * Version: 1.1.0 7 7 * Requires at least: 4.9 8 8 * Requires PHP: 5.6 … … 15 15 */ 16 16 17 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); // Exit if accessed directly 17 /** 18 * Exit if accessed directly 19 */ 20 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 18 21 22 23 /** 24 * Exit if a duplicate of plugin is activated 25 */ 19 26 if ( isset( $sllv ) ) { 20 27 return; 28 } 29 30 31 /** 32 * Constants 33 * 34 * SLLV_PATH = plugin dir path, like '/var/www/html/wp-content/plugins/simple-lazy-load-videos/' 35 * SLLV_URL = plugin url, like 'https://sitename.com/wp-content/plugins/simple-lazy-load-videos/' 36 * SLLV_PLUGIN_DIRNAME = plugin dirname, like 'simple-lazy-load-videos' 37 * SLLV_PLUGIN_BASENAME = plugin main file basename, like 'simple-lazy-load-videos.php' 38 * SLLV_VERSION = plugin version 39 */ 40 if ( ! defined( 'SLLV_PATH' ) ) { 41 define( 'SLLV_PATH', plugin_dir_path( __FILE__ ) ); 21 42 } 22 43 … … 25 46 } 26 47 27 if ( ! defined( 'SLLV_PATH' ) ) {28 define( 'SLLV_PATH', plugin_dir_path( __FILE__ ) );29 }30 31 48 if ( ! defined( 'SLLV_PLUGIN_DIRNAME' ) ) { 32 49 define( 'SLLV_PLUGIN_DIRNAME', dirname( plugin_basename( __FILE__ ) ) ); 33 50 } 34 51 35 if ( ! defined( 'SLLV_PLUGIN_ FILE' ) ) {36 define( 'SLLV_PLUGIN_ FILE', basename( __FILE__ ) );52 if ( ! defined( 'SLLV_PLUGIN_BASENAME' ) ) { 53 define( 'SLLV_PLUGIN_BASENAME', basename( __FILE__ ) ); 37 54 } 38 55 39 56 if ( ! defined( 'SLLV_VERSION' ) ) { 40 require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 57 // include file with function 'get_plugin_data' if not exists 58 if ( ! function_exists( 'get_plugin_data' ) ) { 59 require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); 60 } 61 62 // get plugin version from main plugin file 41 63 $plugin_data = get_plugin_data( __FILE__ ); 42 64 define( 'SLLV_VERSION', $plugin_data['Version'] ); … … 48 70 */ 49 71 require_once( SLLV_PATH . 'includes/class-actions.php' ); 50 require_once( SLLV_PATH . 'includes/class-main.php' ); 72 require_once( SLLV_PATH . 'includes/class-plugin.php' ); 73 require_once( SLLV_PATH . 'includes/class-resources.php' ); 51 74 require_once( SLLV_PATH . 'includes/class-oembed-cache.php' ); 52 require_once( SLLV_PATH . 'includes/class-resources.php' );53 75 require_once( SLLV_PATH . 'includes/class-template.php' ); 54 76 require_once( SLLV_PATH . 'includes/class-options.php' ); … … 59 81 * Activation, deactivation and uninstalling actions 60 82 */ 61 register_activation_hook( __FILE__, array( 'SLLV _Actions', 'activate' ) );62 register_deactivation_hook( __FILE__, array( 'SLLV _Actions', 'deactivate' ) );63 register_uninstall_hook( __FILE__, array( 'SLLV _Actions', 'uninstall' ) );83 register_activation_hook( __FILE__, array( 'SLLV\Actions', 'activate' ) ); 84 register_deactivation_hook( __FILE__, array( 'SLLV\Actions', 'deactivate' ) ); 85 register_uninstall_hook( __FILE__, array( 'SLLV\Actions', 'uninstall' ) ); 64 86 65 87 … … 70 92 global $sllv; 71 93 72 $sllv = new SLLV_Main();94 $sllv = new \SLLV\Plugin(); 73 95 } );
Note: See TracChangeset
for help on using the changeset viewer.