mirror of
https://ghproxy.net/https://github.com/AlxMedia/magaziner.git
synced 2025-08-27 12:55:43 +08:00
3.1.1
This commit is contained in:
parent
b3f8c93498
commit
0cd8c43f84
6 changed files with 39 additions and 21 deletions
|
@ -41,7 +41,7 @@
|
|||
<?php if ( has_nav_menu('footer') ): ?>
|
||||
<div id="wrap-nav-footer" class="wrap-nav">
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -98,7 +98,7 @@ add_action( 'after_setup_theme', 'magaziner_setup' );
|
|||
/* ------------------------------------ */
|
||||
add_action( 'wp', function() {
|
||||
require_once 'functions/nav.php';
|
||||
$nav = new \AlxMedia\Nav();
|
||||
$nav = new \Magaziner\Nav();
|
||||
$nav->enqueue(
|
||||
[
|
||||
'script' => 'js/nav.js',
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* An accessible and mobile-friendly implementation for navigation menus.
|
||||
*/
|
||||
|
||||
namespace AlxMedia;
|
||||
namespace Magaziner;
|
||||
|
||||
/**
|
||||
* Object containing all methods and hooks to modify default menus.
|
||||
|
@ -46,7 +46,7 @@ class Nav {
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $handle_prefix = 'alxmedia-nav';
|
||||
protected $handle_prefix = 'magaziner-nav';
|
||||
|
||||
/**
|
||||
* Init.
|
||||
|
@ -56,7 +56,7 @@ class Nav {
|
|||
* @return void
|
||||
*/
|
||||
public function init() {
|
||||
if ( apply_filters( 'alxmedia_disable_nav_mods', false ) ) {
|
||||
if ( apply_filters( 'magaziner_disable_nav_mods', false ) ) {
|
||||
return;
|
||||
}
|
||||
add_filter( 'walker_nav_menu_start_el', [ $this, 'add_nav_sub_menu_buttons' ], 10, 4 );
|
||||
|
|
|
@ -18,7 +18,7 @@ $updater = new EDD_Theme_Updater_Admin(
|
|||
'remote_api_url' => 'https://alx.media', // Site where EDD is hosted
|
||||
'item_name' => 'Magaziner', // Name of theme
|
||||
'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
|
||||
'download_id' => '', // Optional, used for generating a license renewal link
|
||||
'renew_url' => '', // Optional, allows for a custom license renewal link
|
||||
|
|
|
@ -34,13 +34,13 @@
|
|||
|
||||
<?php if ( has_nav_menu('mobile') ): ?>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( has_nav_menu('topbar') ): ?>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
|
||||
|
@ -86,7 +86,7 @@
|
|||
|
||||
<?php if ( has_nav_menu('header') ): ?>
|
||||
<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' ): ?>
|
||||
<div class="search-trap-focus">
|
||||
|
|
42
readme.txt
42
readme.txt
|
@ -1,7 +1,7 @@
|
|||
=== Magaziner ===
|
||||
Contributors: alxmedia
|
||||
Requires at least: 5.0
|
||||
Tested up to: 5.5
|
||||
Tested up to: 5.6
|
||||
License: GPLv3
|
||||
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
|
||||
|
@ -23,7 +23,7 @@ http://alx.media/documentation/
|
|||
|
||||
== Copyright ==
|
||||
|
||||
Magaziner WordPress Theme, Copyright 2019 AlxMedia
|
||||
Magaziner WordPress Theme, Copyright 2021 AlxMedia
|
||||
Magaziner is distributed under the terms of the GNU GPL
|
||||
|
||||
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:
|
||||
|
||||
Font Awesome, Copyright Dave Gandy
|
||||
Font Awesome
|
||||
Copyright (c) Dave Gandy
|
||||
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
|
||||
License: SIL Open Font License, version 1.1.
|
||||
Titillium Font
|
||||
Copyright (c) Accademia di Belle Arti di Urbino
|
||||
License: SIL OFL 1.1
|
||||
Source: http://www.campivisivi.net/titillium/
|
||||
|
||||
Flexslider, Copyright WooThemes
|
||||
Flexslider
|
||||
Copyright (c) WooThemes
|
||||
License: GPLv2 or later
|
||||
Source: http://flexslider.woothemes.com/
|
||||
|
||||
OwlCarousel, Copyright Bartosz Wojciechowski
|
||||
OwlCarousel
|
||||
Copyright (c) Bartosz Wojciechowski
|
||||
License: MIT
|
||||
Source: http://www.owlgraphic.com/owlcarousel/
|
||||
|
||||
FitVids, Copyright Chris Coyier
|
||||
FitVids
|
||||
Copyright (c) Chris Coyier
|
||||
License: WTFPL
|
||||
Source: http://fitvidsjs.com/
|
||||
|
||||
Kirki, Copyright Aristeides Stathopoulos
|
||||
Kirki
|
||||
Copyright (c) David Vongries
|
||||
License: MIT
|
||||
Source: https://github.com/aristath/kirki
|
||||
Source: https://kirki.org/
|
||||
|
||||
Screenshot images
|
||||
License: CC0 1.0 Universal (CC0 1.0)
|
||||
Source: http://pixabay.com/
|
||||
Source: https://stocksnap.io
|
||||
|
||||
== 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 =
|
||||
* Added and made search button visible for mobile header menu
|
||||
* Fixed broken icons for archive headings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue