Skip to content

Commit

Permalink
Merge branch 'release/0.22.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrst committed May 7, 2024
2 parents 9466b32 + d453f69 commit 6487443
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 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.4] - 2024-05-07

### Added
- added Font Awesome 5 as a library to codeview


## [0.22.3] - 2023-04-14

### Fixed
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.3",
"version": "0.22.4",
"description": "Wordpress theme to power qnipsel",
"main": "webpack.config.js",
"scripts": {
Expand Down
13 changes: 13 additions & 0 deletions src/fractals/bulma/codeview.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ function templateq_codeview_block($title, $html, $css, $css_libs, $js, $js_libs)
</div>
<?php endif; ?>

<?php if (in_array('fa5', $css_libs)) : ?>
<div class="control">
<div class="tags has-addons">
<div class="tag is-dark">CSS</div>
<div class="tag is-black">FA5</div>
</div>
</div>
<?php endif; ?>

<?php if (in_array('mmenu', $css_libs)) : ?>
<div class="control">
<div class="tags has-addons">
Expand Down Expand Up @@ -154,6 +163,10 @@ function templateq_codeview_block($title, $html, $css, $css_libs, $js, $js_libs)
iframeDocument.write('<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">');
<?php endif; ?>

<?php if (in_array('fa5', $css_libs)) : ?>
iframeDocument.write('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">');
<?php endif; ?>

<?php if (in_array('mmenu', $css_libs)) : ?>
iframeDocument.write('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jQuery.mmenu/7.3.3/jquery.mmenu.all.css">');
<?php endif; ?>
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.3';
$GLOBALS['qnipsel_version'] = '0.22.4';

/** Custom Fields
* Set up the Custom Fields plugin and define some fields.
Expand Down
1 change: 1 addition & 0 deletions src/include/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ function templateq_message_field()
Field::make('multiselect', 'css_libs', 'CSS Libraries')
->add_options(array(
'bootstrap' => 'Bootstrap',
'fa5' => 'Font Awesome 5',
'mmenu' => 'mmenu',
'slick' => 'Slick',
'swiper' => 'Swiper'
Expand Down

0 comments on commit 6487443

Please sign in to comment.