Plugin Directory

Changeset 3457917


Ignore:
Timestamp:
02/10/2026 11:22:40 AM (7 weeks ago)
Author:
samuelsilvapt
Message:

Fullscreen Menu - 3.0.1

Location:
animated-fullscreen-menu
Files:
864 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • animated-fullscreen-menu/trunk/animated-fullscreen-menu.php

    r3447876 r3457917  
    55 * Description: Fullscreen Menu for your Website. Create a fullscreen menu with a nice animation effect and a mobile friendly navigation. Customize the menu colors, fonts, background, animations, buttons and more.
    66 * Author: Samuel Silva
    7  * Version: 3.0.0
     7 * Version: 3.0.1
    88 * Author URI: https://wp-fullscreen-menu.com/
    99 * Text Domain: animated-fullscreen-menu
     
    2222
    2323// Define plugin constants.
    24 define( 'ANIMATEDFSM_VERSION', '3.0.0' );
     24define( 'ANIMATEDFSM_VERSION', '3.0.1' );
    2525define( 'ANIMATEDFSM_PLUGIN_FILE', __FILE__ );
    2626define( 'ANIMATEDFSM_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • animated-fullscreen-menu/trunk/readme.txt

    r3447876 r3457917  
    55Tested up to: 6.9
    66Requires at least: 5.0
    7 Stable tag: 3.0.0
     7Stable tag: 3.0.1
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    111111
    112112== Changelog ==
     113= 3.0.1 =
     114* **Fixed:** Resolved `_load_textdomain_just_in_time` warning triggered by Freemius i18n override
     115* **Fixed:** Changed `register_nav_menu` hook from `init` to `after_setup_theme` (WordPress recommended)
     116
    113117= 3.0.0 =
    114118* **Major Release:** Complete codebase modernization for better performance and future WordPress Block Editor (Site Editor) compatibility
  • animated-fullscreen-menu/trunk/src/Integrations/Freemius.php

    r3447876 r3457917  
    8585        do_action( 'animatedfsm_loaded' );
    8686
    87         // Override i18n strings.
    88         $this->override_i18n();
     87        // Override i18n strings (defer to init to avoid "too early" translation notice).
     88        add_action( 'init', array( $this, 'override_i18n' ) );
    8989    }
    9090
     
    9494     * @return void
    9595     */
    96     private function override_i18n(): void {
     96    public function override_i18n(): void {
    9797        if ( null === self::$freemius ) {
    9898            return;
  • animated-fullscreen-menu/trunk/src/Plugin.php

    r3447876 r3457917  
    2424     * @var string
    2525     */
    26     public const VERSION = '3.0.0';
     26    public const VERSION = '3.0.1';
    2727
    2828    /**
     
    111111        add_action( 'init', array( $this, 'load_textdomain' ) );
    112112
    113         // Register menu location.
    114         add_action( 'init', array( $this, 'register_menu_location' ) );
     113        // Register menu location (after_setup_theme is the recommended hook for register_nav_menu).
     114        add_action( 'after_setup_theme', array( $this, 'register_menu_location' ) );
    115115
    116116        // Check version and run migrations.
  • animated-fullscreen-menu/trunk/vendor/cmb2-tabs/js/tabs.js

    r2720766 r3457917  
    44{
    55    'use strict';
     6
     7    var storageKey = 'cmb2_active_tab';
     8
     9    // Function to activate a tab by panel name
     10    function activateTab( panel ) {
     11        var $li = $( '.cmb-tab-nav li[data-panel="' + panel + '"]' );
     12
     13        if ( $li.length ) {
     14            var $wrapper = $li.parents( '.cmb-tabs' ).find( '.cmb2-wrap-tabs' );
     15            var $panel = $wrapper.find( '.cmb-tab-panel-' + panel );
     16
     17            $li.addClass( 'cmb-tab-active' ).siblings().removeClass( 'cmb-tab-active' );
     18            $panel.addClass( 'show' ).siblings().removeClass( 'show' );
     19        }
     20    }
     21
     22    // On page load, restore the active tab from localStorage
     23    var savedTab = localStorage.getItem( storageKey );
     24    if ( savedTab ) {
     25        activateTab( savedTab );
     26    }
     27
     28    // On tab click, save the active tab to localStorage
    629    $( '.cmb-tab-nav' ).on( 'click', 'a', function ( e )
    730    {
     
    1033        var $li = $( this ).parent(),
    1134            panel = $li.data( 'panel' ),
    12             $wrapper = $li.parents( ".cmb-tabs" ).find( '.cmb2-wrap-tabs' ),
     35            $wrapper = $li.parents( '.cmb-tabs' ).find( '.cmb2-wrap-tabs' ),
    1336            $panel = $wrapper.find( '.cmb-tab-panel-' + panel );
    1437
    1538        $li.addClass( 'cmb-tab-active' ).siblings().removeClass( 'cmb-tab-active' );
     39        $panel.addClass( 'show' ).siblings().removeClass( 'show' );
    1640
    17         $panel.addClass('show').siblings().removeClass('show');
     41        // Save the active tab to localStorage
     42        localStorage.setItem( storageKey, panel );
    1843    } );
    19 
    20    
    2144});
Note: See TracChangeset for help on using the changeset viewer.