Skip to content

Commit 0b80e62

Browse files
authored
Merge pull request #1388 from templaza/v3
v3.3.9
2 parents 63b9f8d + 2db74f0 commit 0b80e62

131 files changed

Lines changed: 5504 additions & 8498 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

astroid.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<name>Astroid Framework</name>
44
<libraryname>astroid</libraryname>
55
<author>Astroid Framework Team</author>
6-
<creationDate>January 2026</creationDate>
7-
<version>3.3.8</version>
6+
<creationDate>February 2026</creationDate>
7+
<version>3.3.9</version>
88
<url>https://astroidframe.work/</url>
99
<copyright>Copyright (C) 2026 TemPlaza, Inc. All rights reserved.</copyright>
1010
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>

astroid_framework.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<updates>
22
<update>
33
<name>Astroid Framework</name>
4-
<version>3.3.8</version>
4+
<version>3.3.9</version>
55
<infourl title="Astroid Framework">https://astroidframe.work/</infourl>
66
<element>astroid</element>
77
<type>library</type>
88
<client>0</client>
99
<downloads>
10-
<downloadurl type="full" format="zip">https://github.com/templaza/astroid-framework/releases/download/v3.3.8/astroid-framework-3.3.8.zip</downloadurl>
10+
<downloadurl type="full" format="zip">https://github.com/templaza/astroid-framework/releases/download/v3.3.9/astroid-framework-3.3.9.zip</downloadurl>
1111
</downloads>
1212
<tags>
1313
<tag>stable</tag>

framework/library/astroid/Component/Utility.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,16 +533,22 @@ public static function article(): void
533533
$params = Framework::getTemplate()->getParams();
534534
// Article listing
535535
$lead_heading_fontsize = $params->get('article_listing_lead_heading_fontsize', '');
536+
if (Helper::isJsonString($lead_heading_fontsize)) {
537+
$lead_heading_fontsize = json_decode($lead_heading_fontsize, true);
538+
}
536539
$intro_heading_fontsize = $params->get('article_listing_intro_heading_fontsize', '');
540+
if (Helper::isJsonString($intro_heading_fontsize)) {
541+
$intro_heading_fontsize = json_decode($intro_heading_fontsize, true);
542+
}
537543
if (!empty($lead_heading_fontsize)) {
538544
$article = new Style('.items-leading .article-title .page-header h2', '', true);
539-
$article->addResponsiveCSS('font-size', $lead_heading_fontsize,'px');
545+
$article->addResponsiveCSS('font-size', $lead_heading_fontsize,!empty($lead_heading_fontsize['postfix']) ? $lead_heading_fontsize['postfix'] : 'px');
540546
$article->render();
541547
}
542548

543549
if (!empty($intro_heading_fontsize)) {
544550
$article = new Style('.items-row .article-title .page-header h2', '', true);
545-
$article->addResponsiveCSS('font-size', $intro_heading_fontsize,'px');
551+
$article->addResponsiveCSS('font-size', $intro_heading_fontsize,!empty($intro_heading_fontsize['postfix']) ? $intro_heading_fontsize['postfix'] : 'px');
546552
$article->render();
547553
}
548554
}

framework/library/astroid/Helper/Constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class Constants
2121
{
22-
public static $astroid_version = '3.3.8';
22+
public static $astroid_version = '3.3.9';
2323
public static $fontawesome_version = '7.0.0';
2424
public static $fancybox_version = '6.0';
2525
public static $animatecss_version = '3.7.0';

framework/library/astroid/Template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ protected function _getPresets()
292292
}
293293
if (isset($data['preset'])) {
294294
$properties = [];
295-
$preset_data= \json_decode($data['preset'], true);
295+
$preset_data= \is_string($data['preset']) ? \json_decode($data['preset'], true) : $data['preset'];
296296
foreach ($preset_data as $prop => $value) {
297297
if (is_array($value)) {
298298
foreach ($value as $subprop => $value2) {

0 commit comments

Comments
 (0)