Skip to content

Commit 55ff0bb

Browse files
Merge pull request #198 from joomdev/dev
Dev
2 parents 4308bec + ceaf0e2 commit 55ff0bb

File tree

6 files changed

+14
-7
lines changed

6 files changed

+14
-7
lines changed

astroid/astroid-framework/astroid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<libraryname>astroid</libraryname>
55
<author>JoomDev</author>
66
<creationDate>Oct 2020</creationDate>
7-
<version>2.4.6</version>
7+
<version>2.4.7</version>
88
<url>https://www.astroidframework.com</url>
99
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
1010
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>

astroid/astroid-framework/framework/library/astroid/Document.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,12 +1081,19 @@ public function astroidCSS()
10811081
// css on page
10821082
$css = $this->renderCss();
10831083
if (Framework::isSite()) {
1084+
// page css
1085+
$pageCSSHash = md5($css);
1086+
$pageCSS = ASTROID_TEMPLATE_PATH . '/css/compiled-' . $pageCSSHash . '.css';
1087+
if (!file_exists($pageCSS)) {
1088+
Helper::putContents($pageCSS, $css);
1089+
}
1090+
$this->addStyleSheet('css/compiled-' . $pageCSSHash . '.css');
10841091
// custom css
10851092
if (file_exists(ASTROID_TEMPLATE_PATH . '/css/custom.css')) {
10861093
$this->addStyleSheet('css/custom.css');
10871094
}
1088-
// return page css
1089-
return '<style>' . $css . '</style>';
1095+
// return
1096+
return '';
10901097
} else {
10911098
$minifier = new Minify\CSS($css);
10921099
return '<style>' . $minifier->minify() . '</style>';

astroid/astroid-framework/framework/library/astroid/Element/Section.php

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

1616
class Section extends BaseElement
1717
{
18-
protected $_tag = 'div';
18+
protected $_tag = 'section';
1919
public $hasComponent = false;
2020
public $hasHeader = false;
2121
public $hasFooter = false;

astroid/astroid-framework/framework/library/astroid/Helper/Constants.php

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

1414
class Constants
1515
{
16-
public static $astroid_version = '2.4.6';
16+
public static $astroid_version = '2.4.7';
1717
public static $fontawesome_version = '5.14.0';
1818
public static $animatecss_version = '3.7.0';
1919
public static $forum_link = 'https://www.joomdev.com/forum/astroid-framework';

astroid/astroid-framework/plugins/astroid/astroid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<name>Astroid Plugin</name>
44
<author>JoomDev</author>
55
<creationDate>Oct 2020</creationDate>
6-
<version>2.4.6</version>
6+
<version>2.4.7</version>
77
<url>https://www.astroidframework.com</url>
88
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
99
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>

pkg_astroid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<packagerurl>https://www.astroidframework.com</packagerurl>
77
<author>JoomDev</author>
88
<creationDate>Oct 2020</creationDate>
9-
<version>2.4.6</version>
9+
<version>2.4.7</version>
1010
<url>https://www.joomdev.com</url>
1111
<copyright>Copyright (C) 2020 Joomdev, Inc. All rights reserved.</copyright>
1212
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>

0 commit comments

Comments
 (0)