Make WordPress Themes

Changeset 222168 for bond-construction


Ignore:
Timestamp:
03/25/2024 01:32:52 PM (20 months ago)
Author:
themedropbox
Message:

New version of Bond Construction - 1.0.1

Location:
bond-construction/1.0.1
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • bond-construction/1.0.1/assets/js/custom.js

    r221557 r222168  
    3030            MAIN NAVIGATION
    3131------------------------------------------------*/
    32     menu_toggle.click(function(){
    33         nav_menu.slideToggle();
    34          $(this).toggleClass('active');
    35        $('.main-navigation').toggleClass('menu-open');
    36        $('.menu-overlay').toggleClass('active');
     32   
     33    $('.menu-toggle').click(function() {
     34        $(this).toggleClass('active');
     35        $(this).parent().find('ul.nav-menu').slideToggle();
     36        $(this).parent().find('div.nav-menu > ul').slideToggle();
     37        $('#masthead button.dropdown-toggle').removeClass('active');
     38        $('#masthead').find('.sub-menu').slideUp();
    3739    });
    3840
    39     dropdown_toggle.click(function() {
     41    $('.dropdown-toggle').click(function() {
    4042        $(this).toggleClass('active');
    41        $(this).parent().find('.sub-menu').first().slideToggle();
     43        $(this).parent().find('.sub-menu').first().slideToggle();
     44        $(this).parent().find('.children').first().slideToggle();
    4245    });
    4346
    44 
    45 /*--------------------------------------------------------------
    46  Keyboard Navigation
    47 ----------------------------------------------------------------*/
    4847    if( $(window).width() < 1024 ) {
    49         $('#primary-menu').find("li").last().bind( 'keydown', function(e) {
     48        $('#site-navigation .nav-menu').find("li").last().bind( 'keydown', function(e) {
    5049            if( !e.shiftKey && e.which === 9 ) {
    5150                e.preventDefault();
    52                 $('#masthead').find('.menu-toggle').focus();
     51                $('.site-header').find('.menu-toggle').focus();
     52            }
     53        });
     54
     55        $('button.dropdown-toggle').focus(function() {
     56            $(this).addClass('active');
     57            $(this).parent().find('.sub-menu').first().slideDown();
     58
     59            if( $('button.dropdown-toggle').hasClass('active') ) {
     60                $(this).addClass('active');
     61                $(this).parent().find('.sub-menu').first().slideDown();
    5362            }
    5463        });
    5564    }
    5665    else {
    57         $('#primary-menu').find("li").unbind('keydown');
     66        $('#site-navigation .nav-menu').find("li").unbind('keydown');
    5867    }
    5968
    6069    $(window).resize(function() {
    6170        if( $(window).width() < 1024 ) {
    62             $('#primary-menu').find("li").last().bind( 'keydown', function(e) {
     71            $('#site-navigation .nav-menu').find("li").last().bind( 'keydown', function(e) {
    6372                if( !e.shiftKey && e.which === 9 ) {
    6473                    e.preventDefault();
    65                     $('#masthead').find('.menu-toggle').focus();
     74                    $('.site-header').find('.menu-toggle').focus();
     75                }
     76            });
     77
     78            $('button.dropdown-toggle').focus(function() {
     79                $(this).addClass('active');
     80                $(this).parent().find('.sub-menu').first().slideDown();
     81
     82                if( $('button.dropdown-toggle').hasClass('active') ) {
     83                    $(this).addClass('active');
     84                    $(this).parent().find('.sub-menu').first().slideDown();
    6685                }
    6786            });
    6887        }
    6988        else {
    70             $('#primary-menu').find("li").unbind('keydown');
     89            $('#site-navigation .nav-menu').find("li").unbind('keydown');
    7190        }
    7291    });
     
    7998            if ( shiftKey && tabKey ) {
    8099                e.preventDefault();
    81                 $('#primary-menu').find("li:last-child > a").focus();
    82                 $('#primary-menu').find("li").last().bind( 'keydown', function(e) {
     100                $('#site-navigation .nav-menu').find("li:last-child > a").focus();
     101                $('#site-navigation .nav-menu').find("li").last().bind( 'keydown', function(e) {
    83102                    if( !e.shiftKey && e.which === 9 ) {
    84103                        e.preventDefault();
    85                         $('#masthead').find('.menu-toggle').focus();
     104                        $('.site-header').find('.menu-toggle').focus();
    86105                    }
    87106                });
    88             };
     107            }
    89108        }
    90109    });
    91 
    92110
    93111/*------------------------------------------------
  • bond-construction/1.0.1/readme.txt

    r221557 r222168  
    44Requires at least: 5.6
    55Tested up to: 6.2
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GNU General Public License v2 or later
    88License URI: LICENSE
     
    7474* Initial release
    7575
     76= 1.0.1 =
     77* Issue Fixed
     78
    7679== Credits ==
    7780
  • bond-construction/1.0.1/style.css

    r221557 r222168  
    55Author URI: https://wildthemes.com/
    66Description: Bond Construction is an extraordinary Wordpress theme that is perfectly suitable for any type of website, building, construction, roofing, industry, business, corporate, portfolio etc.Bond Construction has a fully responsive layout. It fits perfectly on various displays and resolutions from regular desktop screens to tablets, iPads, iPhones and small mobile devices. It is packed with amazing features that can be customized so as to meet your requirements. Build your website effortlessly with Bond Construction!
    7 Version: 1.0.0
     7Version: 1.0.1
    88Requires PHP: 5.6
    99Tested up to: 6.2
     
    18041804#secondary a {
    18051805    color: #333;
     1806}
     1807ul li a {
    18061808    text-decoration: none;
    18071809}
     
    48414843        background-color: #ffc925;
    48424844    }
     4845    .site-title a:hover,
     4846    .site-title a:focus {
     4847        color: #fff;
     4848    }
    48434849    .secondary-menu ul {
    48444850        float: none;
     
    50905096        transform: none;
    50915097    }
    5092     .menu-toggle.active {
    5093         margin-right: -22px;
    5094     }
    50955098    .site-logo img {
    50965099        margin-right: 10px;
Note: See TracChangeset for help on using the changeset viewer.