diff --git a/astroid/astroid-framework/astroid.xml b/astroid/astroid-framework/astroid.xml
index 6802f745..b15d1b46 100644
--- a/astroid/astroid-framework/astroid.xml
+++ b/astroid/astroid-framework/astroid.xml
@@ -4,7 +4,7 @@
astroid
JoomDev
Oct 2020
- 2.4.6
+ 2.4.7
https://www.astroidframework.com
Copyright (C) 2020 Joomdev, Inc. All rights reserved.
GNU General Public License version 2 or later; see LICENSE.txt
diff --git a/astroid/astroid-framework/framework/library/astroid/Document.php b/astroid/astroid-framework/framework/library/astroid/Document.php
index 7c7a491b..c331c641 100644
--- a/astroid/astroid-framework/framework/library/astroid/Document.php
+++ b/astroid/astroid-framework/framework/library/astroid/Document.php
@@ -1081,12 +1081,19 @@ public function astroidCSS()
// css on page
$css = $this->renderCss();
if (Framework::isSite()) {
+ // page css
+ $pageCSSHash = md5($css);
+ $pageCSS = ASTROID_TEMPLATE_PATH . '/css/compiled-' . $pageCSSHash . '.css';
+ if (!file_exists($pageCSS)) {
+ Helper::putContents($pageCSS, $css);
+ }
+ $this->addStyleSheet('css/compiled-' . $pageCSSHash . '.css');
// custom css
if (file_exists(ASTROID_TEMPLATE_PATH . '/css/custom.css')) {
$this->addStyleSheet('css/custom.css');
}
- // return page css
- return '';
+ // return
+ return '';
} else {
$minifier = new Minify\CSS($css);
return '';
diff --git a/astroid/astroid-framework/framework/library/astroid/Element/Section.php b/astroid/astroid-framework/framework/library/astroid/Element/Section.php
index f62bb102..a8bb27e9 100644
--- a/astroid/astroid-framework/framework/library/astroid/Element/Section.php
+++ b/astroid/astroid-framework/framework/library/astroid/Element/Section.php
@@ -15,7 +15,7 @@
class Section extends BaseElement
{
- protected $_tag = 'div';
+ protected $_tag = 'section';
public $hasComponent = false;
public $hasHeader = false;
public $hasFooter = false;
diff --git a/astroid/astroid-framework/framework/library/astroid/Helper/Constants.php b/astroid/astroid-framework/framework/library/astroid/Helper/Constants.php
index b746a7d3..41250700 100644
--- a/astroid/astroid-framework/framework/library/astroid/Helper/Constants.php
+++ b/astroid/astroid-framework/framework/library/astroid/Helper/Constants.php
@@ -13,7 +13,7 @@
class Constants
{
- public static $astroid_version = '2.4.6';
+ public static $astroid_version = '2.4.7';
public static $fontawesome_version = '5.14.0';
public static $animatecss_version = '3.7.0';
public static $forum_link = 'https://www.joomdev.com/forum/astroid-framework';
diff --git a/astroid/astroid-framework/plugins/astroid/astroid.xml b/astroid/astroid-framework/plugins/astroid/astroid.xml
index fb2e9208..6b509cc8 100644
--- a/astroid/astroid-framework/plugins/astroid/astroid.xml
+++ b/astroid/astroid-framework/plugins/astroid/astroid.xml
@@ -3,7 +3,7 @@
Astroid Plugin
JoomDev
Oct 2020
- 2.4.6
+ 2.4.7
https://www.astroidframework.com
Copyright (C) 2020 Joomdev, Inc. All rights reserved.
GNU General Public License version 2 or later; see LICENSE.txt
diff --git a/pkg_astroid.xml b/pkg_astroid.xml
index a86eb741..a03219dd 100644
--- a/pkg_astroid.xml
+++ b/pkg_astroid.xml
@@ -6,7 +6,7 @@
https://www.astroidframework.com
JoomDev
Oct 2020
- 2.4.6
+ 2.4.7
https://www.joomdev.com
Copyright (C) 2020 Joomdev, Inc. All rights reserved.
GNU General Public License version 2 or later; see LICENSE.txt