mirror of
https://ghproxy.net/https://github.com/AlxMedia/magaziner.git
synced 2025-08-27 20:36:31 +08:00
3.0.9
This commit is contained in:
parent
6cbe7ef4a5
commit
bef357a7b3
5 changed files with 20 additions and 12 deletions
|
@ -96,15 +96,17 @@ add_action( 'after_setup_theme', 'magaziner_setup' );
|
||||||
|
|
||||||
/* Custom navigation
|
/* Custom navigation
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
require_once 'functions/nav.php';
|
add_action( 'wp', function() {
|
||||||
$nav = new \AlxMedia\Nav();
|
require_once 'functions/nav.php';
|
||||||
$nav->enqueue(
|
$nav = new \AlxMedia\Nav();
|
||||||
[
|
$nav->enqueue(
|
||||||
'script' => 'js/nav.js',
|
[
|
||||||
'inline' => false,
|
'script' => 'js/nav.js',
|
||||||
]
|
'inline' => false,
|
||||||
);
|
]
|
||||||
$nav->init();
|
);
|
||||||
|
$nav->init();
|
||||||
|
} );
|
||||||
|
|
||||||
|
|
||||||
/* Custom logo
|
/* Custom logo
|
||||||
|
|
|
@ -46,7 +46,7 @@ class Nav {
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $handle_prefix = 'alexmedia-nav';
|
protected $handle_prefix = 'alxmedia-nav';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Init.
|
* Init.
|
||||||
|
@ -56,6 +56,9 @@ class Nav {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function init() {
|
public function init() {
|
||||||
|
if ( apply_filters( 'alxmedia_disable_nav_mods', false ) ) {
|
||||||
|
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 );
|
||||||
add_filter( 'nav_menu_item_title', [ $this, 'nav_menu_item_title' ], 10, 4 );
|
add_filter( 'nav_menu_item_title', [ $this, 'nav_menu_item_title' ], 10, 4 );
|
||||||
}
|
}
|
||||||
|
|
|
@ -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.0.8', // The current version of this theme
|
'version' => '3.0.9', // 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
|
||||||
|
|
|
@ -68,6 +68,9 @@ Source: http://pixabay.com/
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 3.0.9 - 2020-09-01 =
|
||||||
|
* Added option to disable custom navigation in child themes
|
||||||
|
|
||||||
= 3.0.8 - 2020-08-28 =
|
= 3.0.8 - 2020-08-28 =
|
||||||
* Improved a11y
|
* Improved a11y
|
||||||
* Added new menu
|
* Added new menu
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Theme Name: Magaziner
|
Theme Name: Magaziner
|
||||||
Theme URI: http://alx.media/themes/magaziner/
|
Theme URI: http://alx.media/themes/magaziner/
|
||||||
Version: 3.0.8
|
Version: 3.0.9
|
||||||
Requires at least: 5.0
|
Requires at least: 5.0
|
||||||
Requires PHP: 5.6
|
Requires PHP: 5.6
|
||||||
Tested up to: 5.5
|
Tested up to: 5.5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue