Plugin Directory

Changeset 3472263


Ignore:
Timestamp:
03/01/2026 09:39:23 PM (4 weeks ago)
Author:
badhonrocks
Message:

Update to version 3.0.0 from GitHub

Location:
wow-carousel-for-divi-lite
Files:
166 added
46 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wow-carousel-for-divi-lite/tags/3.0.0/readme.txt

    r3417061 r3472263  
    1 === Divi Carousel Free – Turn any Divi module, row, or section into a carousel ===
     1=== Divi Carousel Free ===
    22
    33Contributors: plugpressco, badhonrocks, divipeople
    4 Tags: divi, carousel, divi carousel, logo carousel, image carousel, slider
    5 Tested up to: 6.8
    6 Stable tag: 2.1.5
     4Tags: divi, carousel, divi carousel, logo carousel, image carousel
     5Requires at least: 5.0
     6Tested up to: 6.9
     7Stable tag: 3.0.0
    78Requires PHP: 7.4
    89License: GPLv2
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     10License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1011
    11 Divi Carousel Free lets you turn any Divi module, row, or section into a responsive, touch-friendly carousel in just a few clicks — no code needed.
     12Create beautiful, responsive image and logo carousels for the Divi Builder — no code required.
    1213
    1314== Description ==
    1415
    15 **Divi Carousel Free** is a powerful carousel plugin designed exclusively for the Divi Theme and Divi Builder. Create stunning, responsive carousels in minutes without any coding knowledge.
     16**Divi Carousel Free** is a carousel plugin designed exclusively for the Divi Theme and Divi Builder. Create stunning, responsive carousels in minutes without writing a single line of code.
    1617
    17 Whether you need an image or logo carousel or want to turn any Divi module into one, this plugin makes it simple and intuitive. Perfect for showcasing portfolios, client logos, testimonials, products, and more.
     18Whether you need an image gallery carousel or a logo showcase, this plugin integrates seamlessly with Divi's visual builder interface.
    1819
    19 👉 [Try Live Demo](https://divipeople.com/divi-carousel-free/)
    20 👉 [View Documentation](https://divipeople.com/docs-category/carousel-pro/)
    21 👉 [Upgrade to Divi Carousel Pro](https://divipeople.com/divi-carousel-pro/)
    22 👉 [Buy Divi Slider Pro](https://divipeople.com/divi-slider-pro/)(Recommended)
     20= Why Choose Divi Carousel Free? =
    2321
    24 ### Why Choose Divi Carousel?
     22* **Easy to Use** – Built for Divi with a familiar drag-and-drop interface
     23* **Lightning Fast** – Optimized for performance with minimal resource loading
     24* **Fully Responsive** – Adapts to desktop, tablet, and mobile screen sizes
     25* **Touch-Enabled** – Swipe gestures for smooth mobile navigation
     26* **Customizable** – Full control over layout, design, and behavior
     27* **Divi 5 Ready** – Compatible with both Divi 4 and Divi 5
    2528
    26 **Easy to Use** – Built specifically for Divi with a drag-and-drop interface
    27 **Lightning Fast** – Optimized code ensures fast loading times
    28 **Fully Responsive** – Works perfectly on desktop, tablet, and mobile devices
    29 **Touch-Enabled** – Swipe gestures for smooth mobile navigation
    30 **Highly Customizable** – Complete control over design and functionality
    31 **SEO Friendly** – Clean, semantic code for better search rankings
     29= Included Modules =
    3230
    33 ### Included Modules
     31**Image Carousel**
     32Create image carousels with customizable transitions, autoplay, navigation arrows, and pagination dots. Ideal for photo galleries, product showcases, and portfolio presentations.
    3433
    35 **Image Carousel Module**
    36 Create beautiful image carousels with customizable transitions, autoplay, navigation arrows, and pagination dots. Perfect for photo galleries, product showcases, and portfolio presentations.
     34**Logo Carousel**
     35Display client logos, partner brands, or sponsor images in a professional carousel layout. Includes custom links, hover effects, and flexible spacing controls.
    3736
    38 **Logo Carousel Module**
    39 Display client logos, partner brands, or sponsor images in a professional carousel. Add custom links, hover effects, and control spacing for the perfect presentation.
     37= Divi Carousel Pro =
    4038
    41 **Carousel Maker Module**
    42 Transform any Divi module into a carousel. This powerful feature gives you unlimited creative possibilities – use it with testimonials, blog posts, team members, pricing tables, or any custom module.
     39Upgrade to [Divi Carousel Pro](https://divipeople.com/divi-carousel-pro/) for additional modules and advanced features:
    4340
    44 ### Divi Slider Pro Features
     41* Content Carousel – Custom content with icons and call-to-action buttons
     42* Post Carousel – Blog posts with featured images and excerpts
     43* Testimonial Carousel – Customer reviews and testimonials
     44* Team Carousel – Team members with bios and social links
     45* WooCommerce Carousel – Product showcases with add-to-cart buttons
     46* Coverflow and creative 3D effects
     47* Advanced navigation and pagination styles
     48* Lazy loading for improved performance
     49* Priority email support
    4550
    46 Upgrade to **Divi Slider Pro** to unlock premium modules and advanced features:
     51[Learn more about Divi Carousel Pro](https://divipeople.com/divi-carousel-pro/)
    4752
    48 **Premium Carousel Modules**
    49 - [Divi Testimonial Slider](https://divipeople.com/divi-slider-pro/divi-testimonial-slider/) – Display customer reviews and testimonials
    50 - Divi Product Slider – WooCommerce product slider with cart integration
    51 - Divi Team Carousel – Showcase team members with bios and social links
    52 - Divi Video Carousel – Embed YouTube and Vimeo videos
    53 - Blog Post Carousel – Latest posts with featured images and excerpts
     53= Compatibility =
    5454
    55 **Advanced Features**
    56 - 3D Effects (cube, coverflow, flip)
    57 - Lightbox integration for images and videos
    58 - Vertical slide direction
    59 - Center mode with partial slides
    60 - Multiple carousels per page
    61 - Custom animation effects
    62 - Advanced navigation styles
    63 - Priority email support
     55* WordPress 5.0 or higher
     56* Divi Theme or Divi Builder plugin by Elegant Themes
     57* Divi 4 and Divi 5
     58* PHP 7.4 or higher
     59* All modern browsers
    6460
    65 👉 [Buy Divi Slider Pro](https://divipeople.com/divi-slider-pro/) (Recommended)
    66 👉 [Upgrade to Divi Carousel Pro](https://divipeople.com/divi-carousel-pro/)
     61= Links =
    6762
    68 ### Compatibility
    69 
    70 - WordPress 5.0 or higher
    71 - Divi Theme by Elegant Themes
    72 - Divi Builder plugin
    73 - PHP 7.4 or higher
    74 - All modern browsers
    75 
    76 ### Useful Links
    77 
    78 👉 [Official Website](https://divipeople.com)
    79 👉 [Divi Slider Pro](https://divipeople.com/divi-slider-pro/)
    80 👉 [Live Demo](https://demo.divipeople.com/divi-slider-pro/)
    81 👉 [Documentation](https://divipeople.com/docs)
    82 👉 [Video Tutorials](https://www.youtube.com/@plugpreshq)
    83 👉 [Support Forum](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/)
    84 👉 [Facebook Community](https://facebook.com/groups/plugpress)
     63* [Official Website](https://divipeople.com)
     64* [Documentation](https://divipeople.com/docs)
     65* [Support Forum](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/)
    8566
    8667== Installation ==
    8768
    88 ### Automatic Installation
     69= Automatic Installation =
    8970
    90 1. Log in to your WordPress dashboard
    91 2. Navigate to Plugins > Add New
    92 3. Search for "Divi Carousel Free."
    93 4. Click "Install Now" and then "Activate."
    94 5. Start using the carousel modules in Divi Builder
     711. Log in to your WordPress dashboard.
     722. Navigate to Plugins > Add New.
     733. Search for "Divi Carousel Free".
     744. Click "Install Now" and then "Activate".
     755. Open the Divi Builder and search for "Carousel" to start using the modules.
    9576
    96 ### Manual Installation
     77= Manual Installation =
    9778
    98 1. Download the plugin zip file
    99 2. Go to Plugins > Add New > Upload Plugin
    100 3. Choose the downloaded zip file
    101 4. Click "Install Now" and then "Activate Plugin."
    102 5. Access the carousel modules through Divi Builder
    103 
    104 ### Getting Started
    105 
    106 1. Edit any page with Divi Builder (Visual Builder or Backend Builder)
    107 2. Add a new section or row
    108 3. Click to add a new module
    109 4. Search for "Carousel" in the module search
    110 5. Select Image Carousel, Logo Carousel, or Carousel Maker
    111 6. Configure your carousel settings
    112 7. Add your content (images, logos, or child modules)
    113 8. Customize the design using Divi's design options
    114 9. Save and view your beautiful carousel
    115 
    116 For detailed instructions, visit our documentation at: https://divipeople.com/docs
     791. Download the plugin zip file.
     802. Go to Plugins > Add New > Upload Plugin.
     813. Choose the downloaded zip file.
     824. Click "Install Now" and then "Activate Plugin".
     835. Access the carousel modules through Divi Builder.
    11784
    11885== Frequently Asked Questions ==
     
    12087= Does Divi Carousel work with any WordPress theme? =
    12188
    122 No, Divi Carousel is built exclusively for the Divi Theme and Divi Builder by Elegant Themes. You must have either Divi Theme or Divi Builder plugin installed to use this carousel plugin.
     89No. Divi Carousel requires the Divi Theme or Divi Builder plugin by Elegant Themes to function.
    12390
    12491= Is Divi Carousel responsive? =
    12592
    126 Yes, absolutely! Divi Carousel is fully responsive and mobile-friendly. All carousels automatically adapt to different screen sizes and include touch-swipe gestures for mobile devices.
    127 
    128 = Can I use any Divi module inside the Carousel Maker? =
    129 
    130 Yes! The Carousel Maker module allows you to use any Divi module – including custom modules and third-party modules – inside a carousel layout.
     93Yes. All carousels are fully responsive and include touch-swipe gestures for mobile devices.
    13194
    13295= Will Divi Carousel slow down my website? =
    13396
    134 No. Divi Carousel is optimized for performance with lightweight code, efficient JavaScript, and optimized loading. It only loads the resources needed for the carousels on your page.
     97No. The plugin only loads resources on pages where carousels are used, keeping your site fast.
    13598
    136 = What's the difference between the free and pro versions? =
     99= What is the difference between the free and pro versions? =
    137100
    138 The free version includes the Image Carousel, Logo Carousel, and Carousel Maker modules, each with core carousel features. Divi Carousel Pro adds premium modules (Testimonial, Team, Video, Product, Blog Post, Twitter Feed, Google Reviews, Instagram Feed) and advanced features like 3D effects, lightbox, vertical mode, and priority support.
    139 
    140 = Do I need coding knowledge to use Divi Carousel? =
    141 
    142 Not at all! Divi Carousel is designed to be user-friendly with a visual interface. All settings and customizations are done through Divi's intuitive builder interface.
    143 
    144 = Can I display WooCommerce products in a carousel? =
    145 
    146 The Product Carousel module is available in Divi Carousel Pro. It allows you to display WooCommerce products with add-to-cart buttons, prices, ratings, and more.
     101The free version includes the Image Carousel and Logo Carousel modules with core carousel features. Divi Carousel Pro adds additional modules (Content, Post, Testimonial, Team, WooCommerce) and advanced features like 3D effects, custom pagination styles, and priority support.
    147102
    148103= Does Divi Carousel support RTL languages? =
    149104
    150 Yes, Divi Carousel includes full support for RTL (Right-to-Left) languages like Arabic and Hebrew.
     105Yes. Full RTL (Right-to-Left) support is included for languages like Arabic and Hebrew.
    151106
    152107= Where can I get support? =
    153108
    154 Free support is available through the WordPress.org support forum. Divi Carousel Pro users receive priority email support with faster response times.
    155 
    156 = Can I use Divi Carousel on client websites? =
    157 
    158 Yes! You can use Divi Carousel Free on unlimited websites. Divi Carousel Pro also includes a commercial license for client projects.
    159 
    160 = Is there a money-back guarantee for the pro version? =
    161 
    162 Yes, Divi Carousel Pro includes a 30-day money-back guarantee. If you're not satisfied, you can request a full refund within 30 days of purchase.
     109Free support is available through the [WordPress.org support forum](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/). Pro users receive priority email support.
    163110
    164111== Screenshots ==
    165112
    166 1. Image Carousel with multiple slides and navigation controls
     1131. Image Carousel with navigation controls
    1671142. Logo Carousel showcasing client brands
    168 3. Carousel Maker with Divi modules
    169 4. Module settings in Divi Builder
    170 5. Responsive design on mobile devices
    171 6. Dashboard settings panel
     1153. Module settings in Divi Builder
     1164. Responsive design on mobile devices
     1175. Admin dashboard settings panel
    172118
    173119== Changelog ==
    174120
     121= 3.0.0 =
     122* New: Divi 5 compatibility
     123* New: Redesigned admin dashboard
     124* New: Module manager to enable or disable carousel modules
     125* Update: Upgraded to Swiper for improved performance
     126* Update: Modernized codebase
     127
    175128= 2.1.5 - 2025-01-27 =
    176 * Update: Enhanced WordPress 6.8 compatibility
     129* Update: WordPress 6.8 compatibility
    177130* Update: Improved performance and loading speed
    178 * Fix: Minor bug fixes and improvements
     131* Fix: Minor bug fixes
    179132
    180133= 2.1.4 =
    181134* Update: Plugin renamed to Divi Carousel Free
    182 * Update: Improved branding and consistency
    183135
    184136= 2.1.3 =
     
    192144
    193145= 2.1.0 =
    194 * New: Carousel Maker module added
     146* New: Carousel Maker module
    195147* Update: Redesigned admin dashboard
    196 * Fix: Resolved plugin conflict issues
     148* Fix: Plugin conflict issues resolved
    197149* Update: WordPress 6.7.1 compatibility
    198 * Improvement: Overall performance enhancements
    199150
    200151= 2.0.4 =
     
    203154
    204155= 2.0.0 =
    205 * Update: Major codebase cleanup
     156* Update: Major codebase overhaul
    206157* New: Default dummy data for quick setup
    207158* Update: WordPress 6.4 compatibility
    208 * Improvement: Code optimization
    209159
    210160= 1.2.14 =
     
    216166
    217167= 1.2.8 =
    218 * Update: Full RTL support added
     168* Update: Full RTL support
    219169* Fix: PHP 8 warnings resolved
    220170
    221171= 1.0.0 =
    222 * Initial release of Divi Carousel
     172* Initial release
    223173
    224174== Upgrade Notice ==
    225175
    226 = 2.1.5 =
    227 Important update with WordPress 6.8 compatibility and performance improvements. Recommended for all users.
    228 
    229 = 2.1.0 =
    230 Major update with new Carousel Maker module, redesigned dashboard, and enhanced compatibility. Highly recommended upgrade.
    231 
    232 == Support ==
    233 
    234 For support, documentation, and feature requests:
    235 
    236 👉 [Support Forum](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/)
    237 👉 [Documentation](https://divipeople.com/docs)
    238 👉 [Video Tutorials](https://www.youtube.com/@plugpresshq)
    239 👉 [Facebook Community](https://facebook.com/groups/plugpress)
    240 
    241 Enjoying Divi Carousel? Please leave a review to help others discover it!
    242 
    243 👉 [Leave a Review](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/reviews/)
     176= 3.0.0 =
     177Major update with Divi 5 support, redesigned admin dashboard, and module manager. Recommended for all users.
  • wow-carousel-for-divi-lite/tags/3.0.0/wow-divi-carousel-lite.php

    r3405168 r3472263  
    11<?php
    2 /*
    3 Plugin Name: Divi Carousel Free
    4 Plugin URI:  https://divistack.io/divi-slider-pro/
    5 Description: Divi Carousel plugin to create beautiful carousels with any modules.
    6 Version:     2.1.5
    7 Author:      DiviStack
    8 Author URI:  https://divistack.io
    9 License:     GPL2
    10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
    11 Text Domain: divi-carousel-free
    12 Domain Path: /languages
    13 */
     2
     3/**
     4 * Plugin Name:       Divi Carousel Free
     5 * Plugin URI:        https://DiviPeople.com
     6 * Description:       Divi Carousel plugin to create beautiful carousels with any modules.
     7 * Version:           3.0.0
     8 * Author:            DiviPeople
     9 * Author URI:        https://DiviPeople.com
     10 * License:           GPL2
     11 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     12 * Text Domain:       divi-carousel-free
     13 * Domain Path:       /languages
     14 * Requires at least: 6.0
     15 * Requires PHP:      7.4
     16 *
     17 * @package Divi_Carousel_Free
     18 */
    1419
    1520if (!defined('ABSPATH')) {
     
    1722}
    1823
    19 // Prevent duplicate plugin activation
    20 function dcf_check_plugin_conflict()
    21 {
    22     $conflicts = ['divi-carousel-free/divi-carousel-free.php', 'wow-carousel-for-divi-lite/wow-divi-carousel-lite.php'];
     24// ── Conflict Detection ─────────────────────────────────────────────
     25
     26// Bail immediately if another version already loaded its constants.
     27if (defined('DCF_PLUGIN_FILE')) {
     28    add_action('admin_notices', function () {
     29        echo '<div class="notice notice-error is-dismissible"><p>'
     30            . esc_html__('Divi Carousel Free could not load because another version of Divi Carousel is already active. Please deactivate one of them.', 'divi-carousel-free')
     31            . '</p></div>';
     32    });
     33    return;
     34}
     35
     36$dcf_conflicts = [
     37    'divi-carousel-free/divi-carousel-free.php',
     38    'wow-carousel-for-divi-lite/wow-divi-carousel-lite.php',
     39];
     40
     41register_activation_hook(__FILE__, function () use ($dcf_conflicts) {
    2342    $current = plugin_basename(__FILE__);
    2443
    25     foreach ($conflicts as $plugin) {
     44    foreach ($dcf_conflicts as $plugin) {
    2645        if ($plugin !== $current && is_plugin_active($plugin)) {
    2746            deactivate_plugins($current);
    2847            wp_die(
    29                 __('Another version of Divi Carousel is already active. Please deactivate it first.', 'divi-carousel-free'),
    30                 __('Plugin Conflict', 'divi-carousel-free'),
     48                esc_html__('Another version of Divi Carousel is already active. Please deactivate it first.', 'divi-carousel-free'),
     49                esc_html__('Plugin Conflict', 'divi-carousel-free'),
    3150                ['back_link' => true]
    3251            );
    3352        }
    3453    }
    35 }
     54});
    3655
    37 register_activation_hook(__FILE__, 'dcf_check_plugin_conflict');
    38 
    39 add_action('plugins_loaded', function () {
     56add_action('plugins_loaded', function () use ($dcf_conflicts) {
    4057    if (!function_exists('is_plugin_active')) {
    4158        require_once ABSPATH . 'wp-admin/includes/plugin.php';
    4259    }
    4360
    44     $conflicts = ['divi-carousel-free/divi-carousel-free.php', 'wow-carousel-for-divi-lite/wow-divi-carousel-lite.php'];
    4561    $current = plugin_basename(__FILE__);
    4662
    47     foreach ($conflicts as $plugin) {
     63    foreach ($dcf_conflicts as $plugin) {
    4864        if ($plugin !== $current && is_plugin_active($plugin)) {
    4965            deactivate_plugins($current, true);
    5066            add_action('admin_notices', function () {
    51                 echo '<div class="notice notice-error"><p>' . __('Divi Carousel has been deactivated due to a conflict with another version.', 'divi-carousel-free') . '</p></div>';
     67                echo '<div class="notice notice-error is-dismissible"><p>'
     68                    . esc_html__('Divi Carousel has been deactivated due to a conflict with another version.', 'divi-carousel-free')
     69                    . '</p></div>';
    5270            });
    5371            return;
     
    5674}, 1);
    5775
    58 define('DCF_PLUGIN_VERSION', '2.1.5');
    59 define('DCF_PLUGIN_DIR', plugin_dir_path(__FILE__));
    60 define('DCF_PLUGIN_URL', plugin_dir_url(__FILE__));
    61 define('DCF_PLUGIN_ASSETS', trailingslashit(DCF_PLUGIN_URL . 'assets'));
     76// ── Configuration ──────────────────────────────────────────────────
     77
    6278define('DCF_PLUGIN_FILE', __FILE__);
    63 define('DCF_PLUGIN_BASE', plugin_basename(__FILE__));
     79require_once __DIR__ . '/config.php';
    6480
    65 // Freemius flag (et = false, fs = true)
    66 define('DCF_FS_ENABLE', true);
     81// ── Load Plugin ────────────────────────────────────────────────────
    6782
    68 // Freemius – only load when enabled and file exists
    69 if (DCF_FS_ENABLE && file_exists(__DIR__ . '/freemius.php')) {
    70     require_once __DIR__ . '/freemius.php';
    71 }
     83require_once DCF_PLUGIN_DIR . 'includes/functions.php';
     84require_once DCF_PLUGIN_DIR . 'includes/class-plugin.php';
     85require_once DCF_PLUGIN_DIR . 'includes/class-assets.php';
     86require_once DCF_PLUGIN_DIR . 'includes/class-rest-api.php';
     87require_once DCF_PLUGIN_DIR . 'includes/class-dp-menu.php';
     88require_once DCF_PLUGIN_DIR . 'includes/class-admin.php';
     89require_once DCF_PLUGIN_DIR . 'includes/class-upgrade-notice.php';
    7290
    73 // SPL Autoloader for Divi_Carousel_Free namespace
    74 spl_autoload_register(function ($class) {
    75     $namespace = 'Divi_Carousel_Free\\';
     91register_activation_hook(DCF_PLUGIN_FILE, ['Divi_Carousel_Free\Plugin', 'activation']);
    7692
    77     if (strpos($class, $namespace) !== 0) {
    78         return;
    79     }
    80 
    81     $class_name = str_replace($namespace, '', $class);
    82     $base_dir = DCF_PLUGIN_DIR . 'includes/';
    83 
    84     $file = $base_dir . strtolower(str_replace('_', '-', $class_name)) . '.php';
    85 
    86     if (file_exists($file)) {
    87         require_once $file;
    88     }
    89 });
    90 
    91 use Divi_Carousel_Free\Plugin;
    92 
    93 // Run activation logic when the plugin is activated.
    94 register_activation_hook(DCF_PLUGIN_FILE, array(Plugin::class, 'activation'));
    95 
    96 // Bootstrap the plugin.
    97 new Plugin();
     93new Divi_Carousel_Free\Plugin();
  • wow-carousel-for-divi-lite/trunk/readme.txt

    r3417061 r3472263  
    1 === Divi Carousel Free – Turn any Divi module, row, or section into a carousel ===
     1=== Divi Carousel Free ===
    22
    33Contributors: plugpressco, badhonrocks, divipeople
    4 Tags: divi, carousel, divi carousel, logo carousel, image carousel, slider
    5 Tested up to: 6.8
    6 Stable tag: 2.1.5
     4Tags: divi, carousel, divi carousel, logo carousel, image carousel
     5Requires at least: 5.0
     6Tested up to: 6.9
     7Stable tag: 3.0.0
    78Requires PHP: 7.4
    89License: GPLv2
    9 License URI: http://www.gnu.org/licenses/gpl-2.0.html
     10License URI: https://www.gnu.org/licenses/gpl-2.0.html
    1011
    11 Divi Carousel Free lets you turn any Divi module, row, or section into a responsive, touch-friendly carousel in just a few clicks — no code needed.
     12Create beautiful, responsive image and logo carousels for the Divi Builder — no code required.
    1213
    1314== Description ==
    1415
    15 **Divi Carousel Free** is a powerful carousel plugin designed exclusively for the Divi Theme and Divi Builder. Create stunning, responsive carousels in minutes without any coding knowledge.
     16**Divi Carousel Free** is a carousel plugin designed exclusively for the Divi Theme and Divi Builder. Create stunning, responsive carousels in minutes without writing a single line of code.
    1617
    17 Whether you need an image or logo carousel or want to turn any Divi module into one, this plugin makes it simple and intuitive. Perfect for showcasing portfolios, client logos, testimonials, products, and more.
     18Whether you need an image gallery carousel or a logo showcase, this plugin integrates seamlessly with Divi's visual builder interface.
    1819
    19 👉 [Try Live Demo](https://divipeople.com/divi-carousel-free/)
    20 👉 [View Documentation](https://divipeople.com/docs-category/carousel-pro/)
    21 👉 [Upgrade to Divi Carousel Pro](https://divipeople.com/divi-carousel-pro/)
    22 👉 [Buy Divi Slider Pro](https://divipeople.com/divi-slider-pro/)(Recommended)
     20= Why Choose Divi Carousel Free? =
    2321
    24 ### Why Choose Divi Carousel?
     22* **Easy to Use** – Built for Divi with a familiar drag-and-drop interface
     23* **Lightning Fast** – Optimized for performance with minimal resource loading
     24* **Fully Responsive** – Adapts to desktop, tablet, and mobile screen sizes
     25* **Touch-Enabled** – Swipe gestures for smooth mobile navigation
     26* **Customizable** – Full control over layout, design, and behavior
     27* **Divi 5 Ready** – Compatible with both Divi 4 and Divi 5
    2528
    26 **Easy to Use** – Built specifically for Divi with a drag-and-drop interface
    27 **Lightning Fast** – Optimized code ensures fast loading times
    28 **Fully Responsive** – Works perfectly on desktop, tablet, and mobile devices
    29 **Touch-Enabled** – Swipe gestures for smooth mobile navigation
    30 **Highly Customizable** – Complete control over design and functionality
    31 **SEO Friendly** – Clean, semantic code for better search rankings
     29= Included Modules =
    3230
    33 ### Included Modules
     31**Image Carousel**
     32Create image carousels with customizable transitions, autoplay, navigation arrows, and pagination dots. Ideal for photo galleries, product showcases, and portfolio presentations.
    3433
    35 **Image Carousel Module**
    36 Create beautiful image carousels with customizable transitions, autoplay, navigation arrows, and pagination dots. Perfect for photo galleries, product showcases, and portfolio presentations.
     34**Logo Carousel**
     35Display client logos, partner brands, or sponsor images in a professional carousel layout. Includes custom links, hover effects, and flexible spacing controls.
    3736
    38 **Logo Carousel Module**
    39 Display client logos, partner brands, or sponsor images in a professional carousel. Add custom links, hover effects, and control spacing for the perfect presentation.
     37= Divi Carousel Pro =
    4038
    41 **Carousel Maker Module**
    42 Transform any Divi module into a carousel. This powerful feature gives you unlimited creative possibilities – use it with testimonials, blog posts, team members, pricing tables, or any custom module.
     39Upgrade to [Divi Carousel Pro](https://divipeople.com/divi-carousel-pro/) for additional modules and advanced features:
    4340
    44 ### Divi Slider Pro Features
     41* Content Carousel – Custom content with icons and call-to-action buttons
     42* Post Carousel – Blog posts with featured images and excerpts
     43* Testimonial Carousel – Customer reviews and testimonials
     44* Team Carousel – Team members with bios and social links
     45* WooCommerce Carousel – Product showcases with add-to-cart buttons
     46* Coverflow and creative 3D effects
     47* Advanced navigation and pagination styles
     48* Lazy loading for improved performance
     49* Priority email support
    4550
    46 Upgrade to **Divi Slider Pro** to unlock premium modules and advanced features:
     51[Learn more about Divi Carousel Pro](https://divipeople.com/divi-carousel-pro/)
    4752
    48 **Premium Carousel Modules**
    49 - [Divi Testimonial Slider](https://divipeople.com/divi-slider-pro/divi-testimonial-slider/) – Display customer reviews and testimonials
    50 - Divi Product Slider – WooCommerce product slider with cart integration
    51 - Divi Team Carousel – Showcase team members with bios and social links
    52 - Divi Video Carousel – Embed YouTube and Vimeo videos
    53 - Blog Post Carousel – Latest posts with featured images and excerpts
     53= Compatibility =
    5454
    55 **Advanced Features**
    56 - 3D Effects (cube, coverflow, flip)
    57 - Lightbox integration for images and videos
    58 - Vertical slide direction
    59 - Center mode with partial slides
    60 - Multiple carousels per page
    61 - Custom animation effects
    62 - Advanced navigation styles
    63 - Priority email support
     55* WordPress 5.0 or higher
     56* Divi Theme or Divi Builder plugin by Elegant Themes
     57* Divi 4 and Divi 5
     58* PHP 7.4 or higher
     59* All modern browsers
    6460
    65 👉 [Buy Divi Slider Pro](https://divipeople.com/divi-slider-pro/) (Recommended)
    66 👉 [Upgrade to Divi Carousel Pro](https://divipeople.com/divi-carousel-pro/)
     61= Links =
    6762
    68 ### Compatibility
    69 
    70 - WordPress 5.0 or higher
    71 - Divi Theme by Elegant Themes
    72 - Divi Builder plugin
    73 - PHP 7.4 or higher
    74 - All modern browsers
    75 
    76 ### Useful Links
    77 
    78 👉 [Official Website](https://divipeople.com)
    79 👉 [Divi Slider Pro](https://divipeople.com/divi-slider-pro/)
    80 👉 [Live Demo](https://demo.divipeople.com/divi-slider-pro/)
    81 👉 [Documentation](https://divipeople.com/docs)
    82 👉 [Video Tutorials](https://www.youtube.com/@plugpreshq)
    83 👉 [Support Forum](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/)
    84 👉 [Facebook Community](https://facebook.com/groups/plugpress)
     63* [Official Website](https://divipeople.com)
     64* [Documentation](https://divipeople.com/docs)
     65* [Support Forum](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/)
    8566
    8667== Installation ==
    8768
    88 ### Automatic Installation
     69= Automatic Installation =
    8970
    90 1. Log in to your WordPress dashboard
    91 2. Navigate to Plugins > Add New
    92 3. Search for "Divi Carousel Free."
    93 4. Click "Install Now" and then "Activate."
    94 5. Start using the carousel modules in Divi Builder
     711. Log in to your WordPress dashboard.
     722. Navigate to Plugins > Add New.
     733. Search for "Divi Carousel Free".
     744. Click "Install Now" and then "Activate".
     755. Open the Divi Builder and search for "Carousel" to start using the modules.
    9576
    96 ### Manual Installation
     77= Manual Installation =
    9778
    98 1. Download the plugin zip file
    99 2. Go to Plugins > Add New > Upload Plugin
    100 3. Choose the downloaded zip file
    101 4. Click "Install Now" and then "Activate Plugin."
    102 5. Access the carousel modules through Divi Builder
    103 
    104 ### Getting Started
    105 
    106 1. Edit any page with Divi Builder (Visual Builder or Backend Builder)
    107 2. Add a new section or row
    108 3. Click to add a new module
    109 4. Search for "Carousel" in the module search
    110 5. Select Image Carousel, Logo Carousel, or Carousel Maker
    111 6. Configure your carousel settings
    112 7. Add your content (images, logos, or child modules)
    113 8. Customize the design using Divi's design options
    114 9. Save and view your beautiful carousel
    115 
    116 For detailed instructions, visit our documentation at: https://divipeople.com/docs
     791. Download the plugin zip file.
     802. Go to Plugins > Add New > Upload Plugin.
     813. Choose the downloaded zip file.
     824. Click "Install Now" and then "Activate Plugin".
     835. Access the carousel modules through Divi Builder.
    11784
    11885== Frequently Asked Questions ==
     
    12087= Does Divi Carousel work with any WordPress theme? =
    12188
    122 No, Divi Carousel is built exclusively for the Divi Theme and Divi Builder by Elegant Themes. You must have either Divi Theme or Divi Builder plugin installed to use this carousel plugin.
     89No. Divi Carousel requires the Divi Theme or Divi Builder plugin by Elegant Themes to function.
    12390
    12491= Is Divi Carousel responsive? =
    12592
    126 Yes, absolutely! Divi Carousel is fully responsive and mobile-friendly. All carousels automatically adapt to different screen sizes and include touch-swipe gestures for mobile devices.
    127 
    128 = Can I use any Divi module inside the Carousel Maker? =
    129 
    130 Yes! The Carousel Maker module allows you to use any Divi module – including custom modules and third-party modules – inside a carousel layout.
     93Yes. All carousels are fully responsive and include touch-swipe gestures for mobile devices.
    13194
    13295= Will Divi Carousel slow down my website? =
    13396
    134 No. Divi Carousel is optimized for performance with lightweight code, efficient JavaScript, and optimized loading. It only loads the resources needed for the carousels on your page.
     97No. The plugin only loads resources on pages where carousels are used, keeping your site fast.
    13598
    136 = What's the difference between the free and pro versions? =
     99= What is the difference between the free and pro versions? =
    137100
    138 The free version includes the Image Carousel, Logo Carousel, and Carousel Maker modules, each with core carousel features. Divi Carousel Pro adds premium modules (Testimonial, Team, Video, Product, Blog Post, Twitter Feed, Google Reviews, Instagram Feed) and advanced features like 3D effects, lightbox, vertical mode, and priority support.
    139 
    140 = Do I need coding knowledge to use Divi Carousel? =
    141 
    142 Not at all! Divi Carousel is designed to be user-friendly with a visual interface. All settings and customizations are done through Divi's intuitive builder interface.
    143 
    144 = Can I display WooCommerce products in a carousel? =
    145 
    146 The Product Carousel module is available in Divi Carousel Pro. It allows you to display WooCommerce products with add-to-cart buttons, prices, ratings, and more.
     101The free version includes the Image Carousel and Logo Carousel modules with core carousel features. Divi Carousel Pro adds additional modules (Content, Post, Testimonial, Team, WooCommerce) and advanced features like 3D effects, custom pagination styles, and priority support.
    147102
    148103= Does Divi Carousel support RTL languages? =
    149104
    150 Yes, Divi Carousel includes full support for RTL (Right-to-Left) languages like Arabic and Hebrew.
     105Yes. Full RTL (Right-to-Left) support is included for languages like Arabic and Hebrew.
    151106
    152107= Where can I get support? =
    153108
    154 Free support is available through the WordPress.org support forum. Divi Carousel Pro users receive priority email support with faster response times.
    155 
    156 = Can I use Divi Carousel on client websites? =
    157 
    158 Yes! You can use Divi Carousel Free on unlimited websites. Divi Carousel Pro also includes a commercial license for client projects.
    159 
    160 = Is there a money-back guarantee for the pro version? =
    161 
    162 Yes, Divi Carousel Pro includes a 30-day money-back guarantee. If you're not satisfied, you can request a full refund within 30 days of purchase.
     109Free support is available through the [WordPress.org support forum](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/). Pro users receive priority email support.
    163110
    164111== Screenshots ==
    165112
    166 1. Image Carousel with multiple slides and navigation controls
     1131. Image Carousel with navigation controls
    1671142. Logo Carousel showcasing client brands
    168 3. Carousel Maker with Divi modules
    169 4. Module settings in Divi Builder
    170 5. Responsive design on mobile devices
    171 6. Dashboard settings panel
     1153. Module settings in Divi Builder
     1164. Responsive design on mobile devices
     1175. Admin dashboard settings panel
    172118
    173119== Changelog ==
    174120
     121= 3.0.0 =
     122* New: Divi 5 compatibility
     123* New: Redesigned admin dashboard
     124* New: Module manager to enable or disable carousel modules
     125* Update: Upgraded to Swiper for improved performance
     126* Update: Modernized codebase
     127
    175128= 2.1.5 - 2025-01-27 =
    176 * Update: Enhanced WordPress 6.8 compatibility
     129* Update: WordPress 6.8 compatibility
    177130* Update: Improved performance and loading speed
    178 * Fix: Minor bug fixes and improvements
     131* Fix: Minor bug fixes
    179132
    180133= 2.1.4 =
    181134* Update: Plugin renamed to Divi Carousel Free
    182 * Update: Improved branding and consistency
    183135
    184136= 2.1.3 =
     
    192144
    193145= 2.1.0 =
    194 * New: Carousel Maker module added
     146* New: Carousel Maker module
    195147* Update: Redesigned admin dashboard
    196 * Fix: Resolved plugin conflict issues
     148* Fix: Plugin conflict issues resolved
    197149* Update: WordPress 6.7.1 compatibility
    198 * Improvement: Overall performance enhancements
    199150
    200151= 2.0.4 =
     
    203154
    204155= 2.0.0 =
    205 * Update: Major codebase cleanup
     156* Update: Major codebase overhaul
    206157* New: Default dummy data for quick setup
    207158* Update: WordPress 6.4 compatibility
    208 * Improvement: Code optimization
    209159
    210160= 1.2.14 =
     
    216166
    217167= 1.2.8 =
    218 * Update: Full RTL support added
     168* Update: Full RTL support
    219169* Fix: PHP 8 warnings resolved
    220170
    221171= 1.0.0 =
    222 * Initial release of Divi Carousel
     172* Initial release
    223173
    224174== Upgrade Notice ==
    225175
    226 = 2.1.5 =
    227 Important update with WordPress 6.8 compatibility and performance improvements. Recommended for all users.
    228 
    229 = 2.1.0 =
    230 Major update with new Carousel Maker module, redesigned dashboard, and enhanced compatibility. Highly recommended upgrade.
    231 
    232 == Support ==
    233 
    234 For support, documentation, and feature requests:
    235 
    236 👉 [Support Forum](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/)
    237 👉 [Documentation](https://divipeople.com/docs)
    238 👉 [Video Tutorials](https://www.youtube.com/@plugpresshq)
    239 👉 [Facebook Community](https://facebook.com/groups/plugpress)
    240 
    241 Enjoying Divi Carousel? Please leave a review to help others discover it!
    242 
    243 👉 [Leave a Review](https://wordpress.org/support/plugin/wow-carousel-for-divi-lite/reviews/)
     176= 3.0.0 =
     177Major update with Divi 5 support, redesigned admin dashboard, and module manager. Recommended for all users.
  • wow-carousel-for-divi-lite/trunk/wow-divi-carousel-lite.php

    r3405168 r3472263  
    11<?php
    2 /*
    3 Plugin Name: Divi Carousel Free
    4 Plugin URI:  https://divistack.io/divi-slider-pro/
    5 Description: Divi Carousel plugin to create beautiful carousels with any modules.
    6 Version:     2.1.5
    7 Author:      DiviStack
    8 Author URI:  https://divistack.io
    9 License:     GPL2
    10 License URI: https://www.gnu.org/licenses/gpl-2.0.html
    11 Text Domain: divi-carousel-free
    12 Domain Path: /languages
    13 */
     2
     3/**
     4 * Plugin Name:       Divi Carousel Free
     5 * Plugin URI:        https://DiviPeople.com
     6 * Description:       Divi Carousel plugin to create beautiful carousels with any modules.
     7 * Version:           3.0.0
     8 * Author:            DiviPeople
     9 * Author URI:        https://DiviPeople.com
     10 * License:           GPL2
     11 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     12 * Text Domain:       divi-carousel-free
     13 * Domain Path:       /languages
     14 * Requires at least: 6.0
     15 * Requires PHP:      7.4
     16 *
     17 * @package Divi_Carousel_Free
     18 */
    1419
    1520if (!defined('ABSPATH')) {
     
    1722}
    1823
    19 // Prevent duplicate plugin activation
    20 function dcf_check_plugin_conflict()
    21 {
    22     $conflicts = ['divi-carousel-free/divi-carousel-free.php', 'wow-carousel-for-divi-lite/wow-divi-carousel-lite.php'];
     24// ── Conflict Detection ─────────────────────────────────────────────
     25
     26// Bail immediately if another version already loaded its constants.
     27if (defined('DCF_PLUGIN_FILE')) {
     28    add_action('admin_notices', function () {
     29        echo '<div class="notice notice-error is-dismissible"><p>'
     30            . esc_html__('Divi Carousel Free could not load because another version of Divi Carousel is already active. Please deactivate one of them.', 'divi-carousel-free')
     31            . '</p></div>';
     32    });
     33    return;
     34}
     35
     36$dcf_conflicts = [
     37    'divi-carousel-free/divi-carousel-free.php',
     38    'wow-carousel-for-divi-lite/wow-divi-carousel-lite.php',
     39];
     40
     41register_activation_hook(__FILE__, function () use ($dcf_conflicts) {
    2342    $current = plugin_basename(__FILE__);
    2443
    25     foreach ($conflicts as $plugin) {
     44    foreach ($dcf_conflicts as $plugin) {
    2645        if ($plugin !== $current && is_plugin_active($plugin)) {
    2746            deactivate_plugins($current);
    2847            wp_die(
    29                 __('Another version of Divi Carousel is already active. Please deactivate it first.', 'divi-carousel-free'),
    30                 __('Plugin Conflict', 'divi-carousel-free'),
     48                esc_html__('Another version of Divi Carousel is already active. Please deactivate it first.', 'divi-carousel-free'),
     49                esc_html__('Plugin Conflict', 'divi-carousel-free'),
    3150                ['back_link' => true]
    3251            );
    3352        }
    3453    }
    35 }
     54});
    3655
    37 register_activation_hook(__FILE__, 'dcf_check_plugin_conflict');
    38 
    39 add_action('plugins_loaded', function () {
     56add_action('plugins_loaded', function () use ($dcf_conflicts) {
    4057    if (!function_exists('is_plugin_active')) {
    4158        require_once ABSPATH . 'wp-admin/includes/plugin.php';
    4259    }
    4360
    44     $conflicts = ['divi-carousel-free/divi-carousel-free.php', 'wow-carousel-for-divi-lite/wow-divi-carousel-lite.php'];
    4561    $current = plugin_basename(__FILE__);
    4662
    47     foreach ($conflicts as $plugin) {
     63    foreach ($dcf_conflicts as $plugin) {
    4864        if ($plugin !== $current && is_plugin_active($plugin)) {
    4965            deactivate_plugins($current, true);
    5066            add_action('admin_notices', function () {
    51                 echo '<div class="notice notice-error"><p>' . __('Divi Carousel has been deactivated due to a conflict with another version.', 'divi-carousel-free') . '</p></div>';
     67                echo '<div class="notice notice-error is-dismissible"><p>'
     68                    . esc_html__('Divi Carousel has been deactivated due to a conflict with another version.', 'divi-carousel-free')
     69                    . '</p></div>';
    5270            });
    5371            return;
     
    5674}, 1);
    5775
    58 define('DCF_PLUGIN_VERSION', '2.1.5');
    59 define('DCF_PLUGIN_DIR', plugin_dir_path(__FILE__));
    60 define('DCF_PLUGIN_URL', plugin_dir_url(__FILE__));
    61 define('DCF_PLUGIN_ASSETS', trailingslashit(DCF_PLUGIN_URL . 'assets'));
     76// ── Configuration ──────────────────────────────────────────────────
     77
    6278define('DCF_PLUGIN_FILE', __FILE__);
    63 define('DCF_PLUGIN_BASE', plugin_basename(__FILE__));
     79require_once __DIR__ . '/config.php';
    6480
    65 // Freemius flag (et = false, fs = true)
    66 define('DCF_FS_ENABLE', true);
     81// ── Load Plugin ────────────────────────────────────────────────────
    6782
    68 // Freemius – only load when enabled and file exists
    69 if (DCF_FS_ENABLE && file_exists(__DIR__ . '/freemius.php')) {
    70     require_once __DIR__ . '/freemius.php';
    71 }
     83require_once DCF_PLUGIN_DIR . 'includes/functions.php';
     84require_once DCF_PLUGIN_DIR . 'includes/class-plugin.php';
     85require_once DCF_PLUGIN_DIR . 'includes/class-assets.php';
     86require_once DCF_PLUGIN_DIR . 'includes/class-rest-api.php';
     87require_once DCF_PLUGIN_DIR . 'includes/class-dp-menu.php';
     88require_once DCF_PLUGIN_DIR . 'includes/class-admin.php';
     89require_once DCF_PLUGIN_DIR . 'includes/class-upgrade-notice.php';
    7290
    73 // SPL Autoloader for Divi_Carousel_Free namespace
    74 spl_autoload_register(function ($class) {
    75     $namespace = 'Divi_Carousel_Free\\';
     91register_activation_hook(DCF_PLUGIN_FILE, ['Divi_Carousel_Free\Plugin', 'activation']);
    7692
    77     if (strpos($class, $namespace) !== 0) {
    78         return;
    79     }
    80 
    81     $class_name = str_replace($namespace, '', $class);
    82     $base_dir = DCF_PLUGIN_DIR . 'includes/';
    83 
    84     $file = $base_dir . strtolower(str_replace('_', '-', $class_name)) . '.php';
    85 
    86     if (file_exists($file)) {
    87         require_once $file;
    88     }
    89 });
    90 
    91 use Divi_Carousel_Free\Plugin;
    92 
    93 // Run activation logic when the plugin is activated.
    94 register_activation_hook(DCF_PLUGIN_FILE, array(Plugin::class, 'activation'));
    95 
    96 // Bootstrap the plugin.
    97 new Plugin();
     93new Divi_Carousel_Free\Plugin();
Note: See TracChangeset for help on using the changeset viewer.