Plugin Directory

Changeset 3322143


Ignore:
Timestamp:
07/04/2025 07:30:20 AM (8 months ago)
Author:
xpro
Message:

V 1.4.14 – 04 July 2025

  • Fix: Corrected issues causing the Starter Sites menu and options to display improperly.
  • Fix: Fixed minor bugs in the Contact Form widget to enhance functionality and reliability.
Location:
xpro-elementor-addons/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • xpro-elementor-addons/trunk/changelog.txt

    r3309561 r3322143  
     1= V 1.4.14 – 04 July 2025
     2
     3- Fix: Corrected issues causing the Starter Sites menu and options to display improperly.
     4- Fix: Fixed minor bugs in the Contact Form widget to enhance functionality and reliability.
     5
     6
    17= V 1.4.13 – 11 June 2025
    28
  • xpro-elementor-addons/trunk/libs/starter-sites/classes/class-starter-sites-admin.php

    r3258187 r3322143  
    13251325
    13261326        // Assign the static front page and the blog page.
    1327         $front_page = xpro_get_page_by_title( 'Home' );
    1328         $blog_page  = xpro_get_page_by_title( 'Blog' );
    1329 
    1330         update_option( 'show_on_front', 'page' );
    1331         update_option( 'page_on_front', $front_page->ID );
    1332         update_option( 'page_for_posts', $blog_page->ID );
     1327        // $front_page = xpro_get_page_by_title( 'Home' );
     1328        // $blog_page  = xpro_get_page_by_title( 'Blog' );
     1329
     1330        // update_option( 'show_on_front', 'page' );
     1331        // update_option( 'page_on_front', $front_page->ID );
     1332        // update_option( 'page_for_posts', $blog_page->ID );
     1333
     1334        // Set up static front page with multiple possible title variations
     1335        $front_page = false;
     1336        $possible_home_titles = ['Home', 'HOME', 'Main', 'MAIN', 'Front Page'];
     1337        foreach ($possible_home_titles as $title) {
     1338            $front_page = xpro_get_page_by_title($title);
     1339            if ($front_page) break;
     1340        }
     1341
     1342        // Set up blog page with multiple possible title variations
     1343        $blog_page = false;
     1344        $possible_blog_titles = ['Blog', 'BLOG', 'Blogs', 'BLOGS', 'News', 'NEWS', 'Articles'];
     1345        foreach ($possible_blog_titles as $title) {
     1346            $blog_page = xpro_get_page_by_title($title);
     1347            if ($blog_page) break;
     1348        }
     1349
     1350        // Verify required pages before updating settings
     1351        if ($front_page && $blog_page) {
     1352            update_option('show_on_front', 'page');
     1353            update_option('page_on_front', $front_page->ID);
     1354            update_option('page_for_posts', $blog_page->ID);
     1355        } else {
     1356            // If either page is not found, log a warning
     1357            $this->log( esc_html__( 'Warning: Front page or blog page not found. Please check your theme setup.', 'xpro-elementor-addons' ) );
     1358        }
    13331359
    13341360        /*it includes options and menu data*/
     
    13391365        $this->update_elementor_post_images_meta();
    13401366
     1367        // Ensure $theme_options is always an array
     1368        $theme_options = is_array($theme_options) ? $theme_options : [];
     1369
    13411370        /*options data*/
    1342         $custom_options = $theme_options['options'] ? $theme_options['options'] : array();
     1371        $custom_options = array_key_exists('options', $theme_options)
     1372            ? (array) $theme_options['options']
     1373            : [];
    13431374
    13441375        /*menu data*/
    1345         $menu_ids = $theme_options['menu'] ? $theme_options['menu'] : array();
     1376        $menu_ids = array_key_exists('menu', $theme_options)
     1377            ? (array) $theme_options['menu']
     1378            : [];
     1379
     1380        /*options data*/
     1381        // $custom_options = $theme_options['options'] ? $theme_options['options'] : array();
     1382
     1383        /*menu data*/
     1384        // $menu_ids = $theme_options['menu'] ? $theme_options['menu'] : array();
    13461385
    13471386        /*we also want to update the widget area manager options.*/
  • xpro-elementor-addons/trunk/readme.txt

    r3309561 r3322143  
    11=== 140+ Widgets | Xpro Addons For Elementor - FREE ===
    22Plugin Name: Xpro Addons For Elementor (140+ Widgets & Free Theme Builder)
    3 Version: 1.4.13
     3Version: 1.4.14
    44Contributors: Xpro
    55Tags: elementor, widgets for elementor, elementor widgets, addons for elementor, woocommerce elementor
     
    266266== Changelog ==
    267267
     268= V 1.4.14 – 04 July 2025
     269
     270- Fix: Corrected issues causing the Starter Sites menu and options to display improperly.
     271- Fix: Fixed minor bugs in the Contact Form widget to enhance functionality and reliability.
     272
     273
    268274= V 1.4.13 – 11 June 2025
    269275
  • xpro-elementor-addons/trunk/widgets/contact-form/layout/frontend.php

    r3306431 r3322143  
    7575    <div class="xpro-contact-form-item xpro-contact-form-item-type-submit">
    7676        <button type="submit" class="xpro-contact-form-submit-button">
    77 
    78                 <?php if ( $settings['icon']['value'] && ($settings['show_button_icon']=='yes')) { ?>
     77                    <?php if ( !empty($settings['icon']['value']) && !empty($settings['show_button_icon']) && $settings['show_button_icon'] === 'yes' ) { ?>
    7978                    <span class="xpro-elementor-button-inner xpro-align-icon-<?php echo ( 'left' === $settings['icon_align'] ) ? 'left' : 'right'; ?>">
    8079                          <span class="xpro-elementor-button-media"><?php Icons_Manager::render_icon( $settings['icon'], array( 'aria-hidden' => 'true' ) ); ?></span>
     
    8584                          <i aria-hidden="true" class="fas fa-circle-notch"></i>
    8685                    <?php } ?>
    87 
    8886            </button>
    89 
    9087    </div>
    9188</form>
  • xpro-elementor-addons/trunk/xpro-elementor-addons.php

    r3309561 r3322143  
    44 * Description: A complete Elementor Addons Pack to enhance your web designing experience. Create amazing websites with 50+ FREE Widgets, Extensions & more.
    55 * Plugin URI:  https://elementor.wpxpro.com/
    6  * Version:     1.4.13
     6 * Version:     1.4.14
    77 * Author:      Xpro
    88 * Author URI:  https://www.wpxpro.com/
    99 * Developer:   Xpro Team
    1010 * Text Domain: xpro-elementor-addons
    11  * Elementor tested up to: 3.29.2
     11 * Elementor tested up to: 3.30.0
    1212 */
    1313
    1414defined( 'ABSPATH' ) || die();
    1515
    16 define( 'XPRO_ELEMENTOR_ADDONS_VERSION', '1.4.13' );
     16define( 'XPRO_ELEMENTOR_ADDONS_VERSION', '1.4.14' );
    1717define( 'XPRO_ELEMENTOR_ADDONS__FILE__', __FILE__ );
    1818define( 'XPRO_ELEMENTOR_ADDONS_BASE', plugin_basename( __FILE__ ) );
     
    6666     * @var string The plugin version.
    6767     */
    68     const VERSION = '1.4.13';
     68    const VERSION = '1.4.14';
    6969
    7070    /**
Note: See TracChangeset for help on using the changeset viewer.