Skip to content

Commit

Permalink
Merge branch 'release/0.22.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrst committed Apr 14, 2023
2 parents 83ad360 + 1665233 commit 9466b32
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [0.22.3] - 2023-04-14

### Fixed
- fixed bug in mmenu logo


## [0.22.2] - 2023-04-14

### Added
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "templateq",
"version": "0.22.2",
"version": "0.22.3",
"description": "Wordpress theme to power qnipsel",
"main": "webpack.config.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/** Set version
* Used for cachebusting JS/CSS
*/
$GLOBALS['qnipsel_version'] = '0.22.2';
$GLOBALS['qnipsel_version'] = '0.22.3';

/** Custom Fields
* Set up the Custom Fields plugin and define some fields.
Expand Down
9 changes: 5 additions & 4 deletions src/js/mmenu-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,24 +148,25 @@ $(function () {
}

// Show logo instead of title
let navTitle = "Navigation";
let navTitle = "title";
let navHeight = 1;
if ($("#mmenu-generator #show-logo").is(":checked")) {
let logoURL = $("#mmenu-generator input[name='logo-url']").val();
navTitle = `<img style='max-height:100%' src='${logoURL}'>`
navTitle = `<img style='max-height:100%;margin:0 auto' src='${logoURL}'>`
navHeight = 2
} else {
options["navbar"] = { title: "Navigation" };
}

/** Create output object */
let output = {
...{
extensions: extensions,
navbar: { title: navTitle},
navbars: [
{
position: "top",
height: navHeight,
content: ["prev", "title", "close"]
content: ["prev", navTitle, "close"]
},
{
position: "bottom",
Expand Down
2 changes: 1 addition & 1 deletion src/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Theme Name: templateQ
Author: Christian Brassat
Description: Theme for templateQ
Version: 0.22.2
Version: 0.22.3
*/

// Configure Bulma
Expand Down

0 comments on commit 9466b32

Please sign in to comment.