Changeset 2733067
- Timestamp:
- 05/28/2022 10:33:10 AM (4 years ago)
- Location:
- easy-lightbox-wp
- Files:
-
- 13 added
- 1 deleted
- 2 edited
-
tags/1.1 (added)
-
tags/1.1/css (added)
-
tags/1.1/css/litebox.css (added)
-
tags/1.1/imgs (added)
-
tags/1.1/imgs/litebox-close.png (added)
-
tags/1.1/imgs/litebox-next.png (added)
-
tags/1.1/imgs/litebox-prev.png (added)
-
tags/1.1/js (added)
-
tags/1.1/js/images-loaded.min.js (added)
-
tags/1.1/js/litebox.min.js (added)
-
tags/1.1/plugin-main.php (added)
-
tags/1.1/readme.txt (added)
-
trunk/css/litebox.css (deleted)
-
trunk/css/litebox.min.css (added)
-
trunk/plugin-main.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-lightbox-wp/trunk/plugin-main.php
r1942902 r2733067 1 1 <?php 2 /* 3 Plugin Name: Easy Lightbox 4 Plugin URI: https://wordpress.org/plugins/easy-lightbox-wp 5 Description: This plugin will enable an awesome Lightbox in your WordPress site. 6 Author: ShapedPlugin 7 Author URI: https://shapedplugin.com 8 Version: 1.1 9 */ 2 /** 3 * Plugin Name: Easy Lightbox 4 * Plugin URI: https://wordpress.org/plugins/easy-lightbox-wp 5 * Description: This plugin will enable an awesome Lightbox in your WordPress site. 6 * Author: ShapedPlugin 7 * Author URI: https://shapedplugin.com 8 * Version: 1.1.1 9 * 10 * @package Easy_Lightbox 11 * 12 * @category Core 13 */ 10 14 11 /* Adding Latest jQuery from WordPress */ 15 if ( ! defined( 'ABSPATH' ) ) { 16 exit; // Exit if accessed directly. 17 } 18 19 /** 20 * Enqueue jQuery. 21 * 22 * @return void 23 */ 12 24 function lazy_p_wp_lightobx_free_jquery() { 13 wp_enqueue_script( 'jquery');25 wp_enqueue_script( 'jquery' ); 14 26 } 15 add_action( 'init', 'lazy_p_wp_lightobx_free_jquery');27 add_action( 'init', 'lazy_p_wp_lightobx_free_jquery' ); 16 28 17 29 /*Some Set-up*/ 18 define('LAZY_P_WP_LIGBTBOX_FREE', plugin_dir_url( __FILE__ ) ); 30 define( 'LAZY_P_WP_LIGBTBOX_FREE', plugin_dir_url( __FILE__ ) ); 31 define( 'EASY_LIGHTBOX_VERSION', '1.1.1' ); 19 32 20 21 22 /* Including all files */ 33 /** 34 * Include JavaScript and CSS files. 35 * 36 * @return void 37 */ 23 38 function lazy_p_wp_lightbox_free_files() { 24 wp_enqueue_script('lazy-p-lightbox-image-l-js', LAZY_P_WP_LIGBTBOX_FREE.'js/images-loaded.min.js', array('jquery'), 1.0, true);25 wp_enqueue_script('lazy-p-lightbox-main-js', LAZY_P_WP_LIGBTBOX_FREE.'js/litebox.min.js', array('jquery'), 1.0, true);26 wp_enqueue_style('lazy-p-lightbox-main-css', LAZY_P_WP_LIGBTBOX_FREE.'css/litebox.css');39 wp_enqueue_script( 'lazy-p-lightbox-image-l-js', LAZY_P_WP_LIGBTBOX_FREE . 'js/images-loaded.min.js', array( 'jquery' ), EASY_LIGHTBOX_VERSION, true ); 40 wp_enqueue_script( 'lazy-p-lightbox-main-js', LAZY_P_WP_LIGBTBOX_FREE . 'js/litebox.min.js', array( 'jquery' ), EASY_LIGHTBOX_VERSION, true ); 41 wp_enqueue_style( 'lazy-p-lightbox-main-css', LAZY_P_WP_LIGBTBOX_FREE . 'css/litebox.min.css', array(), EASY_LIGHTBOX_VERSION, false ); 27 42 } 28 43 add_action( 'wp_enqueue_scripts', 'lazy_p_wp_lightbox_free_files' ); 29 44 45 /** 46 * Initialize Lightbox 47 * 48 * @return void 49 */ 50 function lughtbox_hin_head() { 51 ?> 52 <script type="text/javascript"> 53 jQuery(document).ready(function() { 54 jQuery(".litebox").liteBox(); 55 jQuery("div[id^=gallery] a").liteBox(); 30 56 31 function lughtbox_hin_head() {?> 32 <script type="text/javascript"> 33 jQuery(document).ready(function() { 34 jQuery(".litebox").liteBox(); 35 jQuery("div[id^=gallery] a").liteBox(); 36 37 jQuery('div.gallery a').attr('data-litebox-group', 'galone'); 38 39 }); 40 </script> 41 <?php 42 57 jQuery('div.gallery a').attr('data-litebox-group', 'galone'); 58 }); 59 </script> 60 <?php 43 61 } 44 add_action( 'wp_head', 'lughtbox_hin_head');62 add_action( 'wp_head', 'lughtbox_hin_head' ); -
easy-lightbox-wp/trunk/readme.txt
r2570785 r2733067 3 3 Tags: lightbox, jquery lightbox, video lightbox, popup, popup video 4 4 Requires at least: 4.0 5 Tested up to: 5.8 5 Tested up to: 6.0 6 Stable tag: 1.1.1 6 7 License: GPLv2 or later 7 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 71 72 == Changelog == 72 73 74 = 1.1.1 - May 28, 2022 = 75 * Tested: WordPress 6.0 compatibility. 76 73 77 = 1.1 = 74 78 * Fix: Loading scripts from unauthenticated sources on SSL server.
Note: See TracChangeset
for help on using the changeset viewer.