Plugin Directory

Changeset 2733067


Ignore:
Timestamp:
05/28/2022 10:33:10 AM (4 years ago)
Author:
shapedplugin
Message:

Release 1.1.1 version

Location:
easy-lightbox-wp
Files:
13 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • easy-lightbox-wp/trunk/plugin-main.php

    r1942902 r2733067  
    11<?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 */
    1014
    11 /* Adding Latest jQuery from WordPress */
     15if ( ! defined( 'ABSPATH' ) ) {
     16    exit; // Exit if accessed directly.
     17}
     18
     19/**
     20 * Enqueue jQuery.
     21 *
     22 * @return void
     23 */
    1224function lazy_p_wp_lightobx_free_jquery() {
    13     wp_enqueue_script('jquery');
     25    wp_enqueue_script( 'jquery' );
    1426}
    15 add_action('init', 'lazy_p_wp_lightobx_free_jquery');
     27add_action( 'init', 'lazy_p_wp_lightobx_free_jquery' );
    1628
    1729/*Some Set-up*/
    18 define('LAZY_P_WP_LIGBTBOX_FREE', plugin_dir_url( __FILE__ ) );
     30define( 'LAZY_P_WP_LIGBTBOX_FREE', plugin_dir_url( __FILE__ ) );
     31define( 'EASY_LIGHTBOX_VERSION', '1.1.1' );
    1932
    20 
    21 
    22 /* Including all files */
     33/**
     34 * Include JavaScript and CSS files.
     35 *
     36 * @return void
     37 */
    2338function 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 );
    2742}
    2843add_action( 'wp_enqueue_scripts', 'lazy_p_wp_lightbox_free_files' );
    2944
     45/**
     46 * Initialize Lightbox
     47 *
     48 * @return void
     49 */
     50function 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();
    3056
    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
    4361}
    44 add_action('wp_head', 'lughtbox_hin_head');
     62add_action( 'wp_head', 'lughtbox_hin_head' );
  • easy-lightbox-wp/trunk/readme.txt

    r2570785 r2733067  
    33Tags: lightbox, jquery lightbox, video lightbox, popup, popup video
    44Requires at least: 4.0
    5 Tested up to: 5.8
     5Tested up to: 6.0
     6Stable tag: 1.1.1
    67License: GPLv2 or later
    78License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7172== Changelog ==
    7273
     74= 1.1.1 - May 28, 2022 =
     75* Tested: WordPress 6.0 compatibility.
     76
    7377= 1.1 =
    7478* Fix: Loading scripts from unauthenticated sources on SSL server.
Note: See TracChangeset for help on using the changeset viewer.