This commit is contained in:
Alexander Agnarson 2021-03-05 17:09:53 +01:00
parent b3f8c93498
commit 0cd8c43f84
6 changed files with 39 additions and 21 deletions

View file

@ -41,7 +41,7 @@
<?php if ( has_nav_menu('footer') ): ?> <?php if ( has_nav_menu('footer') ): ?>
<div id="wrap-nav-footer" class="wrap-nav"> <div id="wrap-nav-footer" class="wrap-nav">
<div class="container"> <div class="container">
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'footer','menu_id' => 'nav-footer','fallback_cb'=> false)); ?> <?php \Magaziner\Nav::nav_menu(array('theme_location'=>'footer','menu_id' => 'nav-footer','fallback_cb'=> false)); ?>
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>

View file

@ -98,7 +98,7 @@ add_action( 'after_setup_theme', 'magaziner_setup' );
/* ------------------------------------ */ /* ------------------------------------ */
add_action( 'wp', function() { add_action( 'wp', function() {
require_once 'functions/nav.php'; require_once 'functions/nav.php';
$nav = new \AlxMedia\Nav(); $nav = new \Magaziner\Nav();
$nav->enqueue( $nav->enqueue(
[ [
'script' => 'js/nav.js', 'script' => 'js/nav.js',

View file

@ -3,7 +3,7 @@
* An accessible and mobile-friendly implementation for navigation menus. * An accessible and mobile-friendly implementation for navigation menus.
*/ */
namespace AlxMedia; namespace Magaziner;
/** /**
* Object containing all methods and hooks to modify default menus. * Object containing all methods and hooks to modify default menus.
@ -46,7 +46,7 @@ class Nav {
* *
* @var string * @var string
*/ */
protected $handle_prefix = 'alxmedia-nav'; protected $handle_prefix = 'magaziner-nav';
/** /**
* Init. * Init.
@ -56,7 +56,7 @@ class Nav {
* @return void * @return void
*/ */
public function init() { public function init() {
if ( apply_filters( 'alxmedia_disable_nav_mods', false ) ) { if ( apply_filters( 'magaziner_disable_nav_mods', false ) ) {
return; return;
} }
add_filter( 'walker_nav_menu_start_el', [ $this, 'add_nav_sub_menu_buttons' ], 10, 4 ); add_filter( 'walker_nav_menu_start_el', [ $this, 'add_nav_sub_menu_buttons' ], 10, 4 );

View file

@ -18,7 +18,7 @@ $updater = new EDD_Theme_Updater_Admin(
'remote_api_url' => 'https://alx.media', // Site where EDD is hosted 'remote_api_url' => 'https://alx.media', // Site where EDD is hosted
'item_name' => 'Magaziner', // Name of theme 'item_name' => 'Magaziner', // Name of theme
'theme_slug' => 'magaziner', // Theme slug 'theme_slug' => 'magaziner', // Theme slug
'version' => '3.1.0', // The current version of this theme 'version' => '3.1.1', // The current version of this theme
'author' => 'AlxMedia', // The author of this theme 'author' => 'AlxMedia', // The author of this theme
'download_id' => '', // Optional, used for generating a license renewal link 'download_id' => '', // Optional, used for generating a license renewal link
'renew_url' => '', // Optional, allows for a custom license renewal link 'renew_url' => '', // Optional, allows for a custom license renewal link

View file

@ -34,13 +34,13 @@
<?php if ( has_nav_menu('mobile') ): ?> <?php if ( has_nav_menu('mobile') ): ?>
<div id="wrap-nav-mobile" class="wrap-nav"> <div id="wrap-nav-mobile" class="wrap-nav">
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'mobile','menu_id' => 'nav-mobile','fallback_cb'=> false)); ?> <?php \Magaziner\Nav::nav_menu(array('theme_location'=>'mobile','menu_id' => 'nav-mobile','fallback_cb'=> false)); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php if ( has_nav_menu('topbar') ): ?> <?php if ( has_nav_menu('topbar') ): ?>
<div id="wrap-nav-topbar" class="wrap-nav"> <div id="wrap-nav-topbar" class="wrap-nav">
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'topbar','menu_id' => 'nav-topbar','fallback_cb'=> false)); ?> <?php \Magaziner\Nav::nav_menu(array('theme_location'=>'topbar','menu_id' => 'nav-topbar','fallback_cb'=> false)); ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
@ -86,7 +86,7 @@
<?php if ( has_nav_menu('header') ): ?> <?php if ( has_nav_menu('header') ): ?>
<div id="wrap-nav-header" class="wrap-nav"> <div id="wrap-nav-header" class="wrap-nav">
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'header','menu_id' => 'nav-header','fallback_cb'=> false)); ?> <?php \Magaziner\Nav::nav_menu(array('theme_location'=>'header','menu_id' => 'nav-header','fallback_cb'=> false)); ?>
<?php if ( get_theme_mod( 'header-search', 'on' ) == 'on' ): ?> <?php if ( get_theme_mod( 'header-search', 'on' ) == 'on' ): ?>
<div class="search-trap-focus"> <div class="search-trap-focus">

View file

@ -1,7 +1,7 @@
=== Magaziner === === Magaziner ===
Contributors: alxmedia Contributors: alxmedia
Requires at least: 5.0 Requires at least: 5.0
Tested up to: 5.5 Tested up to: 5.6
License: GPLv3 License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: blog, one-column, two-columns, three-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background Tags: blog, one-column, two-columns, three-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
@ -23,7 +23,7 @@ http://alx.media/documentation/
== Copyright == == Copyright ==
Magaziner WordPress Theme, Copyright 2019 AlxMedia Magaziner WordPress Theme, Copyright 2021 AlxMedia
Magaziner is distributed under the terms of the GNU GPL Magaziner is distributed under the terms of the GNU GPL
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
@ -38,36 +38,54 @@ GNU General Public License for more details.
Magaziner bundles the following third-party resources: Magaziner bundles the following third-party resources:
Font Awesome, Copyright Dave Gandy Font Awesome
Copyright (c) Dave Gandy
License: SIL OFL 1.1 (Fonts); MIT (CSS) License: SIL OFL 1.1 (Fonts); MIT (CSS)
Source: http://fontawesome.com/ Source: https://fontawesome.com/
Titillium font, Copyright Accademia di Belle Arti di Urbino Titillium Font
License: SIL Open Font License, version 1.1. Copyright (c) Accademia di Belle Arti di Urbino
License: SIL OFL 1.1
Source: http://www.campivisivi.net/titillium/ Source: http://www.campivisivi.net/titillium/
Flexslider, Copyright WooThemes Flexslider
Copyright (c) WooThemes
License: GPLv2 or later License: GPLv2 or later
Source: http://flexslider.woothemes.com/ Source: http://flexslider.woothemes.com/
OwlCarousel, Copyright Bartosz Wojciechowski OwlCarousel
Copyright (c) Bartosz Wojciechowski
License: MIT License: MIT
Source: http://www.owlgraphic.com/owlcarousel/ Source: http://www.owlgraphic.com/owlcarousel/
FitVids, Copyright Chris Coyier FitVids
Copyright (c) Chris Coyier
License: WTFPL License: WTFPL
Source: http://fitvidsjs.com/ Source: http://fitvidsjs.com/
Kirki, Copyright Aristeides Stathopoulos Kirki
Copyright (c) David Vongries
License: MIT License: MIT
Source: https://github.com/aristath/kirki Source: https://kirki.org/
Screenshot images Screenshot images
License: CC0 1.0 Universal (CC0 1.0) License: CC0 1.0 Universal (CC0 1.0)
Source: http://pixabay.com/ Source: https://stocksnap.io
== Changelog == == Changelog ==
= 3.1.1 - 2021-03-05 =
* Fixed: mobile menu tabbing will enter in the menu even when it's closed
* Fixed: trap focus in search popup
* Fixed: prefix for custom menu names and classes
* Fixed: readme format to declare license information
* Fixed: make sure that the pingback_url is conditional since pings can be turned off
* Fixed: added no minified font awesome css
* Increased menu dropdown width
* Added option to disable custom navigation in child themes
* Updated language files
* Updated to Font Awesome Free 5.15.2
= 3.1.0 - 2020-12-05 = = 3.1.0 - 2020-12-05 =
* Added and made search button visible for mobile header menu * Added and made search button visible for mobile header menu
* Fixed broken icons for archive headings * Fixed broken icons for archive headings