Plugin Directory

Changeset 3078627


Ignore:
Timestamp:
04/29/2024 11:20:59 AM (22 months ago)
Author:
LiveComposer
Message:

release 1.5.42

Location:
live-composer-page-builder/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • live-composer-page-builder/trunk/ds-live-composer.php

    r3060485 r3078627  
    55 * Description: Page builder for WordPress with drag and drop header/footer editing.
    66 * Author: Live Composer Team
    7  * Version: 1.5.41
     7 * Version: 1.5.42
    88 * Author URI: https://livecomposerplugin.com
    99 * License: GPL3
     
    4242     */
    4343
    44     define( 'DS_LIVE_COMPOSER_VER', '1.5.41' );
     44    define( 'DS_LIVE_COMPOSER_VER', '1.5.42' );
    4545
    4646    define( 'DS_LIVE_COMPOSER_SHORTNAME', __( 'Live Composer', 'live-composer-page-builder' ) );
  • live-composer-page-builder/trunk/includes/display-functions.php

    r3041715 r3078627  
    14891489        }
    14901490
    1491         // Remove the file type extension.
    1492         $atts['bg_video'] = str_replace( '.mp4', '', $atts['bg_video'] );
    1493         $atts['bg_video'] = str_replace( '.webm', '', $atts['bg_video'] );
    1494 
    1495         // The HTML.
    1496         $bg_video = '
    1497         <div class="dslc-bg-video">
     1491       
     1492
     1493       
     1494        $current_site_url = home_url();
     1495       
     1496        // Get the URL to check
     1497        $url_to_check = $atts['bg_video'];
     1498       
     1499        // Parse the URLs to get their host/domain
     1500        $current_site_host = parse_url($current_site_url, PHP_URL_HOST);
     1501        $url_to_check_host = parse_url($url_to_check, PHP_URL_HOST);
     1502       
     1503        // Check if the hosts are the same
     1504        if ($current_site_host === $url_to_check_host) {
     1505//                  $atts['bg_video'] = str_replace( '.mp4', '', $atts['bg_video'] );
     1506//      $atts['bg_video'] = str_replace( '.webm', '', $atts['bg_video'] );
     1507        $bg_video = '
     1508           
     1509                    <div class="dslc-bg-video">
    14981510            <div class="dslc-bg-video-inner">
    1499                 <video muted="muted">
    1500                     <source type="video/mp4" src="' . $atts['bg_video'] . '.mp4" />
    1501                     <source type="video/webm" src="' . $atts['bg_video'] . '.webm" />
    1502                 </video>
    1503             </div>
     1511   
     1512       
     1513       
     1514        <video autoplay loop muted playsinline id="video-background">
     1515    <source src="'.$atts['bg_video'].'" type="video/mp4">
     1516        <source type="video/webm" src="' . $atts['bg_video'] . '.webm" />
     1517</video>
     1518                </div>
    15041519            <div class="dslc-bg-video-overlay" style="' . $overlay_style . '"></div>
    1505         </div>';
     1520        </div>
     1521       
     1522        ';
     1523//       
     1524
     1525        } else {
     1526                    $atts['bg_video'] = 'https://www.youtube.com/watch?v=3GsmXHPCo_w';
     1527           
     1528                // The HTML.
     1529                    $bg_video = '
     1530                <div class="dslc-bg-video">
     1531                    <div class="dslc-bg-video-inner">
     1532                                <div class="hp-hero" style="backgroundz-index: 0;   "></div>
     1533                    </div>
     1534                    <div class="dslc-bg-video-overlay" style="' . $overlay_style . '"></div>
     1535                </div>
     1536               
     1537               
     1538                <div class="bgndVideo player mb_YTPlayer isMuted" data-property="{videoURL:\'' . $atts['bg_video'] . '\',containment:\'.hp-hero\',autoPlay:true,mobileFallbackImage:\'https://demo.flawlessthemes.com/hotelinn-pro2/wp-content/uploads/2021/04/la-pota-4096087_1280.jpg\' ,showControls:false, mute:true, startAt:0, opacity:1}"></div>
     1539           
     1540               
     1541            <script src="https://code.jquery.com/jquery-3.6.0.miny.js"></script>
     1542           
     1543            <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mb.YTPlayer/3.3.9/jquery.mb.YTPlayer.js" integrity="sha512-QEsEUG6vCJ4YMCLGNXn9zScVK2FYKyMSntIS5s3P8h1c5kz5320OE5nij835WZqfTt3JrfyyoOTm0JhVWoqJPA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
     1544            <script>
     1545            jQuery(document).ready(function(){
     1546            jQuery(".bgndVideo").YTPlayer();
     1547            });
     1548            </script>
     1549            <style>
     1550            .hp-hero {
     1551            position: initial !important;
     1552            }
     1553            </style>
     1554               
     1555                ';
     1556
     1557        }
     1558       
     1559
     1560
    15061561
    15071562    }
  • live-composer-page-builder/trunk/readme.txt

    r3060485 r3078627  
    44Requires at least: 4.7
    55Tested up to: 6.5
    6 Stable tag: 1.5.41
     6Stable tag: 1.5.42
    77License: GPLv3
    88
     
    5858* 🦊 [Check out our WooCommerce Page Builder Extension](https://livecomposerplugin.com/downloads/woocommerce-page-builder/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=woo-integration)
    5959* 👀 [We keep updating and improving our extensions pack](https://livecomposerplugin.com/downloads/extensions/?utm_source=wp-admin&utm_medium=changelog&utm_campaign=add-ons) ACF + CPT + MegaMenu + 9 more add-ons.
     60
     61= 1.5.42 - Apr 29 2024 =
     62* Bug fixed: Background video rendering issue in iPhone
    6063
    6164= 1.5.41 - Mar 28 2024 =
Note: See TracChangeset for help on using the changeset viewer.