Plugin Directory

Changeset 3429371


Ignore:
Timestamp:
12/30/2025 02:34:52 AM (2 weeks ago)
Author:
noruzzaman
Message:

v1.1.5 - Fix fade effect initial load glitch, improved readme

Location:
gslider-blocks
Files:
105 added
8 edited

Legend:

Unmodified
Added
Removed
  • gslider-blocks/trunk/build/blocks/flexi-content/view.asset.php

    r3334869 r3429371  
    1 <?php return array('dependencies' => array(), 'version' => 'e7dfeb5782b05c7345e8');
     1<?php return array('dependencies' => array(), 'version' => 'b9701e6a008dc1945b19');
  • gslider-blocks/trunk/build/blocks/flexi-content/view.js

    r3334869 r3429371  
    1 document.addEventListener("DOMContentLoaded",()=>{const e=()=>{document.querySelectorAll(".gslider-flexi-content-wrapper").forEach(e=>{try{const o=e.dataset.swiperSettings;if(o){const r=JSON.parse(o);new Swiper(e.querySelector(".swiper"),r)}}catch(e){console.error("Error initializing slider:",e)}})};e(),window.wp&&window.wp.hooks&&window.wp.hooks.addAction("blocks.blockRendered","gslider",()=>{e()})});
     1document.addEventListener("DOMContentLoaded",()=>{const e=()=>{document.querySelectorAll(".gslider-flexi-content-wrapper").forEach(e=>{try{const r=e.dataset.swiperSettings;if(r){const t=JSON.parse(r);if("fade"===t.effect){const r=e.querySelector(".swiper"),n=r?.querySelector(".swiper-wrapper"),o=r?.querySelectorAll(".swiper-slide");n&&(n.style.transition="none"),o&&o.forEach(e=>{e.style.transition="none"}),t.on={...t.on,init:function(){requestAnimationFrame(()=>{requestAnimationFrame(()=>{n&&(n.style.transition=""),o&&o.forEach(e=>{e.style.transition=""})})})}}}new Swiper(e.querySelector(".swiper"),t)}}catch(e){console.error("Error initializing slider:",e)}})};e(),window.wp&&window.wp.hooks&&window.wp.hooks.addAction("blocks.blockRendered","gslider",()=>{e()})});
  • gslider-blocks/trunk/gslider-blocks.php

    r3423291 r3429371  
    55 * Author:      Noruzzaman
    66 * Author URI:  https://github.com/noruzzamans/
    7  * Version:     1.1.4
     7 * Version:     1.1.5
    88 * Text Domain: gslider-blocks
    99 * Domain Path: /languages
     
    1515
    1616if (!defined('ABSPATH')) {
    17     exit;
     17    exit;
    1818}
    1919
     
    2222 */
    2323if (file_exists(__DIR__ . '/vendor/autoload.php')) {
    24     require_once __DIR__ . '/vendor/autoload.php';
     24    require_once __DIR__ . '/vendor/autoload.php';
    2525}
    2626
     
    5858            define('GSLIDER_FILE', __FILE__);
    5959            define('GSLIDER_SLUG', 'gslider-blocks');
    60             define('GSLIDER_VERSION', '1.1.4');
     60            define('GSLIDER_VERSION', '1.1.5');
    6161            define('GSLIDER_DIR_PATH', plugin_dir_path(__FILE__));
    62             define('GSLIDER_PLUGIN_URL', plugin_dir_url(__FILE__)); 
     62            define('GSLIDER_PLUGIN_URL', plugin_dir_url(__FILE__));
    6363            define('GSLIDER_WP_VERSION', (float) get_bloginfo('version'));
    6464            define('GSLIDER_PHP_VERSION', (float) phpversion());
     
    8686 * Initialize the plugin
    8787 */
    88 GSliderBlocks(); 
     88GSliderBlocks();
  • gslider-blocks/trunk/includes/Assets/AdminAssets.php

    r3323177 r3429371  
    44
    55use GSlider\Traits\SingletonTrait;
     6
     7if (!defined('ABSPATH')) {
     8    exit;
     9}
    610
    711class AdminAssets {
  • gslider-blocks/trunk/includes/Assets/FrontendAssets.php

    r3315641 r3429371  
    44
    55use GSlider\Traits\SingletonTrait;
     6
     7if (!defined('ABSPATH')) {
     8    exit;
     9}
    610
    711class FrontendAssets {
  • gslider-blocks/trunk/includes/Classes/FontLoader.php

    r3423291 r3429371  
    101101                esc_url($font_url),
    102102                [],
    103                 defined('GSLIDER_VERSION') ? GSLIDER_VERSION : '1.1.4',
     103                defined('GSLIDER_VERSION') ? GSLIDER_VERSION : '1.1.5',
    104104            );
    105105
  • gslider-blocks/trunk/includes/Classes/RegistrationBlocks.php

    r3320883 r3429371  
    5656
    5757            if (!is_readable($block_dir)) {
    58                 throw new \Exception("Build directory not readable: {$block_dir}");
     58                throw new \Exception("Build directory not readable: " . esc_html($block_dir));
    5959            }
    6060
    6161            if (!file_exists($block_dir . 'block.json')) {
    62                 throw new \Exception("block.json not found for {$block}");
     62                throw new \Exception("block.json not found for " . esc_html($block));
    6363            }
    6464
    6565            if (false === register_block_type($block_dir)) {
    66                 throw new \Exception("Block registration failed for {$block}");
     66                throw new \Exception("Block registration failed for " . esc_html($block));
    6767            }
    6868        }
  • gslider-blocks/trunk/readme.txt

    r3423291 r3429371  
    44Requires at least: 5.0
    55Tested up to: 6.9
    6 Stable tag: 1.1.4
     6Stable tag: 1.1.5
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    1313== Description ==
    1414
    15 The **gslider Blocks** plugin allows you to easily add customizable and responsive sliders to your WordPress website. Perfect for both beginners and developers, this plugin provides a simple yet powerful slider block for the WordPress editor (Gutenberg). Customize slider content, transitions, navigation, and more, while enjoying full control over slider styling and functionality.
    16 
    17 == Key Features: ==
    18 
    19 - **Customizable Slider Settings:** Easily adjust your slider's behavior including autoplay, speed, loop, and transition effects.
    20 - **Multiple Slide Support:** Add as many slides as you need with full content customization for each slide.
    21 - **Navigation Controls:** Choose to display pagination dots, navigation arrows, or both for intuitive user interaction.
    22 - **Responsive Design:** Ensure your sliders look great on all devices with automatic adjustments for different screen sizes.
    23 - **Content Positioning:** Control the alignment and positioning of content within each slide for perfect presentation.
    24 - **Advanced Styling Options:** Tailor the slider's design to match your site's theme by adjusting colors, sizes, spacing, and more.
    25 - **User-Friendly Interface:** Seamlessly integrate with the WordPress block editor (Gutenberg), making slider customization intuitive without the need for coding.
    26 - **Performance Optimized:** Built with performance in mind to ensure smooth transitions and minimal impact on page load times.
    27 - **Swiper.js Integration:** Powered by the popular Swiper.js library for reliable and smooth slider functionality.
     15The **gslider Blocks** plugin allows you to easily add customizable and responsive sliders to your WordPress website. Perfect for both beginners and developers, this plugin provides powerful slider blocks for the WordPress block editor (Gutenberg). Customize slider content, transitions, navigation, and more, while enjoying full control over slider styling and functionality.
     16
     17== Available Blocks ==
     18
     19**1. Base Slider Block**
     20Create stunning hero sliders with predefined content elements. Perfect for homepage banners, promotional sliders, and featured content showcases.
     21
     22* Pre-built slide structure with Title, Subtitle, Description, and Button
     23* Multiple transition effects (Slide, Fade, Cube, Coverflow, Flip, Cards, Creative)
     24* Full background image/color support with overlay options
     25* Responsive navigation arrows and pagination controls
     26* Content alignment and positioning controls
     27* Custom spacing and padding options
     28
     29**2. Flexi Content Block**
     30Build completely custom slides using any Gutenberg blocks. Ultimate flexibility for creative slider designs.
     31
     32* Use ANY WordPress blocks inside slides (images, text, buttons, galleries, etc.)
     33* Full creative control with InnerBlocks support
     34* Multiple slide effects including Fade, Slide, Cube, and more
     35* Responsive height options (Fixed, Auto, Minimum height)
     36* Loop, autoplay, and touch/swipe support
     37* Keyboard and mousewheel navigation
     38
     39**3. Logo Carousel Block**
     40Display client logos, partner brands, or sponsor images in a beautiful, animated carousel.
     41
     42* Easy logo management with drag & drop reordering
     43* Hover effects: Grayscale-to-color, opacity, scale, and lift animations
     44* Clickable logos with custom URLs and link settings
     45* Tooltips and captions with full styling options
     46* Responsive slides per view configuration
     47* Lazy loading for optimized performance
     48
     49== Key Features ==
     50
     51* **Multiple Transition Effects:** Slide, Fade, Cube, Coverflow, Flip, Cards, and Creative effects
     52* **Fully Responsive:** Separate settings for Desktop, Tablet, and Mobile
     53* **Navigation Controls:** Customizable arrows (icons or images) and pagination (bullets, fraction, progressbar)
     54* **Performance Optimized:** Built with Swiper.js for smooth, hardware-accelerated animations
     55* **Accessibility Ready:** Keyboard navigation, ARIA labels, and touch support
     56* **Custom Styling:** Full control over colors, typography, spacing, borders, and shadows
     57* **Google Fonts:** Built-in typography options with Google Fonts integration
    2858
    2959== Support ==
     
    5484Yes, gslider Blocks is designed to work with any WordPress theme that supports the block editor.
    5585
     86= What is the difference between Base Slider and Flexi Content? =
     87
     88Base Slider has pre-built content elements (title, subtitle, description, button) for quick setup. Flexi Content allows you to use any Gutenberg blocks inside slides for complete creative freedom.
     89
     90= Why do my slides show overlapping content with Creative, Cube, Cards, or Flip effects? =
     91
     92These are 3D transition effects where slides are stacked in layers. If your slides have transparent backgrounds, content from slides behind will show through. To fix this, add a background color or background image to each slide in your slider settings.
     93
    5694== Screenshots ==
    5795
    5896== Changelog ==
     97
     98= 1.1.5 – December 30, 2025 =
     99**Fixed: Fade effect initial load glitch**
     100- Resolved an issue where the first slide would briefly animate from right to left when using the fade effect on page load
     101- Improved slider initialization to disable transitions during initial positioning
     102- Fix applies to both wrapper and individual slide elements for consistent behavior
    59103
    60104= 1.1.4 – December 19, 2025 =
Note: See TracChangeset for help on using the changeset viewer.