Skip to content

Commit 4f09c6b

Browse files
1.1 Release
1 parent 0a76ad6 commit 4f09c6b

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[How to use Astroid Template One in Joomla 4](https://docs.joomdev.com/article/steps-to-create-an-astroid-template-in-joomla-4/)
1+
# Astroid-Template-One
Lines changed: 14 additions & 11 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
@@ -7,21 +8,23 @@
78
*/
89

910
defined('_JEXEC') or die;
11+
12+
use Joomla\CMS\Router\Route;
1013
?>
1114
<div class="float-right article-index">
1215

1316
<?php if ($headingtext) : ?>
14-
<h3><?php echo $headingtext; ?></h3>
17+
<h3><?php echo $headingtext; ?></h3>
1518
<?php endif; ?>
1619

17-
<ul class="nav-tabs nav-stacked">
18-
<?php foreach ($list as $listItem) : ?>
19-
<?php $class = $listItem->liClass ? ' class="' . $listItem->liClass . '"' : ''; ?>
20-
<li<?php echo $class; ?>>
21-
<a href="<?php echo $listItem->link; ?>" class="<?php echo $listItem->class; ?>">
22-
<?php echo $listItem->title; ?>
23-
</a>
24-
</li>
25-
<?php endforeach; ?>
20+
<ul class="nav flex-column">
21+
<?php foreach ($list as $listItem) : ?>
22+
<?php $class = $listItem->active ? ' active' : ''; ?>
23+
<li>
24+
<a href="<?php echo Route::_($listItem->link); ?>" class="toclink<?php echo $class; ?>">
25+
<?php echo $listItem->title; ?>
26+
</a>
27+
</li>
28+
<?php endforeach; ?>
2629
</ul>
27-
</div>
30+
</div>

templateDetails.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<authorUrl>https://www.joomdev.com</authorUrl>
88
<copyright>Copyright (C) 2019 Joomdev, Inc. All rights reserved.</copyright>
99
<license>GNU General Public License bn 2 or later; see LICENSE.txt</license>
10-
<version>1.0</version>
10+
<version>1.1</version>
1111
<description>TPL_ASTROID_XML_DESCRIPTION</description>
1212
<updateservers>
1313
<server type="extension" name="astroid_framework" priority="1">https://cdn.joomdev.com/updates/astroid_template_one.xml</server>

0 commit comments

Comments
 (0)