File tree Expand file tree Collapse file tree 6 files changed +14
-7
lines changed
astroid/astroid-framework
framework/library/astroid Expand file tree Collapse file tree 6 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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> ' ;
Original file line number Diff line number Diff line change 1515
1616class Section extends BaseElement
1717{
18- protected $ _tag = 'div ' ;
18+ protected $ _tag = 'section ' ;
1919 public $ hasComponent = false ;
2020 public $ hasHeader = false ;
2121 public $ hasFooter = false ;
Original file line number Diff line number Diff line change 1313
1414class 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 ' ;
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments