Skip to content

Commit 9ebfe47

Browse files
Thanks for using Astroid! This release brings Performance improvements, bug fixes and stability improvements that improve framework.
1 parent 9fc0f76 commit 9ebfe47

File tree

7 files changed

+16
-11
lines changed

7 files changed

+16
-11
lines changed

astroid/astroid-framework/astroid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<libraryname>astroid</libraryname>
66
<author>JoomDev</author>
77
<creationDate>June 2018</creationDate>
8-
<version>1.0.0</version>
8+
<version>1.0.1</version>
99
<url>http://astroidframework.com</url>
1010
<copyright>Copyright (C) 2018 Joomdev, Inc. All rights reserved.</copyright>
1111
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>

astroid/astroid-framework/framework/helper.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/**
34
* @package Astroid Framework
45
* @author JoomDev https://www.joomdev.com
@@ -8,6 +9,7 @@
89
defined('_JEXEC') or die;
910
jimport('astroid.framework.constants');
1011
jimport('joomla.filesystem.file');
12+
jimport('astroid.framework.template');
1113
jimport('joomla.filesystem.folder');
1214
jimport('joomla.filesystem.element');
1315

@@ -33,7 +35,7 @@ public static function getAstroidElements() {
3335
$xmlfile = $element_dir . '/' . (str_replace($template_elements_dir, '', str_replace($elements_dir, '', $element_dir))) . '.xml';
3436
if (file_exists($xmlfile)) {
3537
$xml = simplexml_load_file($xmlfile);
36-
$type = str_replace($elements_dir, '', $element_dir);
38+
$type = str_replace($template_elements_dir, '', str_replace($elements_dir, '', $element_dir));
3739
$element = self::getElementConfig($xml, $type, $default['icon'], $default['description'], $default['color'], $default['multiple'], $default['options']);
3840
$return[] = $element;
3941
}
@@ -60,8 +62,12 @@ public static function getAllAstroidElements() {
6062
foreach ($elements as $element_dir) {
6163
$xmlfile = $element_dir . '/' . (str_replace($template_elements_dir, '', str_replace($elements_dir, '', $element_dir))) . '.xml';
6264
if (file_exists($xmlfile)) {
63-
$type = str_replace($elements_dir, '', $element_dir);
64-
$element = new AstroidElement($type);
65+
$type = str_replace($template_elements_dir, '', str_replace($elements_dir, '', $element_dir));
66+
67+
$template = new \stdClass();
68+
$template->template = ASTROID_TEMPLATE_NAME;
69+
$template = new AstroidFrameworkTemplate($template);
70+
$element = new AstroidElement($type, [], $template);
6571
$return[] = $element;
6672
}
6773
}
@@ -421,9 +427,9 @@ public static function getPositions() {
421427
}
422428
return $positions;
423429
}
424-
425-
public static function isSystemFont($font){
426-
return isset(AstroidFrameworkConstants::$system_fonts[$font]);
430+
431+
public static function isSystemFont($font) {
432+
return isset(AstroidFrameworkConstants::$system_fonts[$font]);
427433
}
428434

429435
}

astroid/astroid-framework/framework/menu.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ public static function getMobileMenu($menutype = '') {
324324
echo '</li>';
325325
}
326326
}
327+
echo '</ul>';
327328
}
328329

329330
public static function getMegaMenu($item, $astroid_menu_options, $items) {

astroid/astroid-template-zero/frontend/header/horizontal.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
// header nav starts
4545
AstroidMenu::getMenu($header_menu, $navClass);
4646
// header nav ends
47-
$template->loadLayout('offcanvas');
4847
}
4948
?>
5049
</div>

astroid/astroid-template-zero/frontend/header/sticky.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
// header nav starts
5050
AstroidMenu::getMenu($header_menu, $navClass, null, 'left', 'sticky');
5151
// header nav ends
52-
$template->loadLayout('offcanvas');
5352
?>
5453
</div>
5554
<?php if ($enable_offcanvas): ?>

astroid/astroid-template-zero/templateDetails.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<authorUrl>http://www.joomdev.com</authorUrl>
1010
<copyright>Copyright (C) 2018 Joomdev, Inc. All rights reserved.</copyright>
1111
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
12-
<version>1.0.0</version>
12+
<version>1.0.1</version>
1313
<description>TPL_ASTROID_XML_DESCRIPTION</description>
1414

1515
<updateservers>

pkg_astroid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<packagerurl>http://astroidframework.com</packagerurl>
88
<author>JoomDev</author>
99
<creationDate>June 2018</creationDate>
10-
<version>1.0.0</version>
10+
<version>1.0.1</version>
1111
<url>http://www.joomdev.com</url>
1212
<copyright>Copyright (C) 2018 Joomdev, Inc. All rights reserved.</copyright>
1313
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>

0 commit comments

Comments
 (0)