This commit is contained in:
Alexander Agnarson 2021-03-05 17:09:06 +01:00
parent 0940e98848
commit e4562467f8
6 changed files with 38 additions and 20 deletions

View file

@ -47,7 +47,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 \Featureon\Nav::nav_menu(array('theme_location'=>'footer','menu_id' => 'nav-footer','fallback_cb'=> false)); ?>
</div>
</div>
<?php endif; ?>

View file

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

View file

@ -3,7 +3,7 @@
* An accessible and mobile-friendly implementation for navigation menus.
*/
namespace AlxMedia;
namespace Featureon;
/**
* Object containing all methods and hooks to modify default menus.
@ -46,7 +46,7 @@ class Nav {
*
* @var string
*/
protected $handle_prefix = 'alexmedia-nav';
protected $handle_prefix = 'featureon-nav';
/**
* Init.
@ -56,7 +56,7 @@ class Nav {
* @return void
*/
public function init() {
if ( apply_filters( 'alxmedia_disable_nav_mods', false ) ) {
if ( apply_filters( 'featureon_disable_nav_mods', false ) ) {
return;
}
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
'item_name' => 'Featureon', // Name of theme
'theme_slug' => 'featureon', // Theme slug
'version' => '2.4.1', // The current version of this theme
'version' => '2.4.2', // 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

View file

@ -30,14 +30,14 @@
<?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 \Featureon\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">
<div class="container">
<?php \AlxMedia\Nav::nav_menu(array('theme_location'=>'topbar','menu_id' => 'nav-topbar','fallback_cb'=> false)); ?>
<?php \Featureon\Nav::nav_menu(array('theme_location'=>'topbar','menu_id' => 'nav-topbar','fallback_cb'=> false)); ?>
</div>
</div>
<?php endif; ?>
@ -91,7 +91,7 @@
<div class="group pad">
<?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 \Featureon\Nav::nav_menu(array('theme_location'=>'header','menu_id' => 'nav-header','fallback_cb'=> false)); ?>
</div>
<?php endif; ?>
</div><!--/.pad-->

View file

@ -23,7 +23,7 @@ http://alx.media/documentation/
== Copyright ==
Featureon WordPress Theme, Copyright 2018 AlxMedia
Featureon WordPress Theme, Copyright 2021 AlxMedia
Featureon 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.
Featureon 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 ==
= 2.4.2 - 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
= 2.4.1 - 2020-08-28 =
* Improved a11y
* Added new menu