Skip to content
Merged

v3.3.9 #1388

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions astroid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<name>Astroid Framework</name>
<libraryname>astroid</libraryname>
<author>Astroid Framework Team</author>
<creationDate>January 2026</creationDate>
<version>3.3.8</version>
<creationDate>February 2026</creationDate>
<version>3.3.9</version>
<url>https://astroidframe.work/</url>
<copyright>Copyright (C) 2026 TemPlaza, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 3 or later; see LICENSE.txt</license>
Expand Down
4 changes: 2 additions & 2 deletions astroid_framework.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<updates>
<update>
<name>Astroid Framework</name>
<version>3.3.8</version>
<version>3.3.9</version>
<infourl title="Astroid Framework">https://astroidframe.work/</infourl>
<element>astroid</element>
<type>library</type>
<client>0</client>
<downloads>
<downloadurl type="full" format="zip">https://github.com/templaza/astroid-framework/releases/download/v3.3.8/astroid-framework-3.3.8.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/templaza/astroid-framework/releases/download/v3.3.9/astroid-framework-3.3.9.zip</downloadurl>
</downloads>
<tags>
<tag>stable</tag>
Expand Down
10 changes: 8 additions & 2 deletions framework/library/astroid/Component/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -533,16 +533,22 @@ public static function article(): void
$params = Framework::getTemplate()->getParams();
// Article listing
$lead_heading_fontsize = $params->get('article_listing_lead_heading_fontsize', '');
if (Helper::isJsonString($lead_heading_fontsize)) {
$lead_heading_fontsize = json_decode($lead_heading_fontsize, true);
}
$intro_heading_fontsize = $params->get('article_listing_intro_heading_fontsize', '');
if (Helper::isJsonString($intro_heading_fontsize)) {
$intro_heading_fontsize = json_decode($intro_heading_fontsize, true);
}
if (!empty($lead_heading_fontsize)) {
$article = new Style('.items-leading .article-title .page-header h2', '', true);
$article->addResponsiveCSS('font-size', $lead_heading_fontsize,'px');
$article->addResponsiveCSS('font-size', $lead_heading_fontsize,!empty($lead_heading_fontsize['postfix']) ? $lead_heading_fontsize['postfix'] : 'px');
$article->render();
}

if (!empty($intro_heading_fontsize)) {
$article = new Style('.items-row .article-title .page-header h2', '', true);
$article->addResponsiveCSS('font-size', $intro_heading_fontsize,'px');
$article->addResponsiveCSS('font-size', $intro_heading_fontsize,!empty($intro_heading_fontsize['postfix']) ? $intro_heading_fontsize['postfix'] : 'px');
$article->render();
}
}
Expand Down
2 changes: 1 addition & 1 deletion framework/library/astroid/Helper/Constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class Constants
{
public static $astroid_version = '3.3.8';
public static $astroid_version = '3.3.9';
public static $fontawesome_version = '7.0.0';
public static $fancybox_version = '6.0';
public static $animatecss_version = '3.7.0';
Expand Down
2 changes: 1 addition & 1 deletion framework/library/astroid/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ protected function _getPresets()
}
if (isset($data['preset'])) {
$properties = [];
$preset_data= \json_decode($data['preset'], true);
$preset_data= \is_string($data['preset']) ? \json_decode($data['preset'], true) : $data['preset'];
foreach ($preset_data as $prop => $value) {
if (is_array($value)) {
foreach ($value as $subprop => $value2) {
Expand Down
Loading