Skip to content

Commit 6487443

Browse files
committed
Merge branch 'release/0.22.4'
2 parents 9466b32 + d453f69 commit 6487443

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.22.4] - 2024-05-07
4+
5+
### Added
6+
- added Font Awesome 5 as a library to codeview
7+
8+
39
## [0.22.3] - 2023-04-14
410

511
### Fixed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "templateq",
3-
"version": "0.22.3",
3+
"version": "0.22.4",
44
"description": "Wordpress theme to power qnipsel",
55
"main": "webpack.config.js",
66
"scripts": {

src/fractals/bulma/codeview.php

+13
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ function templateq_codeview_block($title, $html, $css, $css_libs, $js, $js_libs)
3737
</div>
3838
<?php endif; ?>
3939

40+
<?php if (in_array('fa5', $css_libs)) : ?>
41+
<div class="control">
42+
<div class="tags has-addons">
43+
<div class="tag is-dark">CSS</div>
44+
<div class="tag is-black">FA5</div>
45+
</div>
46+
</div>
47+
<?php endif; ?>
48+
4049
<?php if (in_array('mmenu', $css_libs)) : ?>
4150
<div class="control">
4251
<div class="tags has-addons">
@@ -154,6 +163,10 @@ function templateq_codeview_block($title, $html, $css, $css_libs, $js, $js_libs)
154163
iframeDocument.write('<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css">');
155164
<?php endif; ?>
156165

166+
<?php if (in_array('fa5', $css_libs)) : ?>
167+
iframeDocument.write('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css">');
168+
<?php endif; ?>
169+
157170
<?php if (in_array('mmenu', $css_libs)) : ?>
158171
iframeDocument.write('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jQuery.mmenu/7.3.3/jquery.mmenu.all.css">');
159172
<?php endif; ?>

src/functions.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/** Set version
44
* Used for cachebusting JS/CSS
55
*/
6-
$GLOBALS['qnipsel_version'] = '0.22.3';
6+
$GLOBALS['qnipsel_version'] = '0.22.4';
77

88
/** Custom Fields
99
* Set up the Custom Fields plugin and define some fields.

src/include/fields.php

+1
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ function templateq_message_field()
106106
Field::make('multiselect', 'css_libs', 'CSS Libraries')
107107
->add_options(array(
108108
'bootstrap' => 'Bootstrap',
109+
'fa5' => 'Font Awesome 5',
109110
'mmenu' => 'mmenu',
110111
'slick' => 'Slick',
111112
'swiper' => 'Swiper'

0 commit comments

Comments
 (0)