Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81bcbd0
commit cc5fd99
Showing
5 changed files
with
38 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
|
||
<?php // Any subcategories? ?> | ||
{kb:categories:table heading="Sub Categories" show_total="yes" cat_parent="<?php echo $category_id; ?>"} | ||
{kb:categories:table heading="Sub Categories" show_total="yes" cat_parent="{category_id}"} | ||
|
||
<?php if (isset($category_id) && $category_id > 0): ?> | ||
|
||
<h2 class="cat_name">{kb:cat_name}</h2> | ||
<p class="cat_description">{kb:cat_description}</p> | ||
|
||
<?php if ($has_articles > 0): ?> | ||
|
||
<ul class="articles"> | ||
{kb:articles:get category="<?php echo $category_id; ?>"} | ||
{kb:articles:get category="{category_id}" per_page="2"} | ||
<li><a href="{kb:article_url}">{kb:article_title}</a></li> | ||
{/kb:articles:get} | ||
</ul> | ||
|
||
<div class="pagination"> | ||
{kb:articles:paging} | ||
</div> | ||
|
||
<?php else: ?> | ||
|
||
<p>{lang:lang_no_articles}</p> | ||
|
||
<?php endif; ?> | ||
|
||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<ul> | ||
<li><a href="index.php" title="css menus" <?php if ($module == '') echo 'class="current"'; ?>>Home</a></li> | ||
<li><a href="<?php echo site_url('categories'); ?>" <?php if ($this->uri->segment(1) == 'categories') echo 'class="current"'; ?>>Categories</a></li> | ||
<li><a href="<?php echo site_url('glossary'); ?>" <?php if ($this->uri->segment(1) == 'glossary') echo 'class="current"'; ?>>Glossary</a></li> | ||
<li><a href="<?php echo site_url('search'); ?>" <?php if ($module == 'search') echo 'class="current"'; ?>>Advanced Search</a></li> | ||
<li><a href="{kb:site:link}" <?php if ($module == '') echo 'class="current"'; ?>>Home</a></li> | ||
<li><a href="{kb:site:link}categories" <?php if ($this->uri->segment(1) == 'categories') echo 'class="current"'; ?>>Categories</a></li> | ||
<li><a href="{kb:site:link}glossary" <?php if ($this->uri->segment(1) == 'glossary') echo 'class="current"'; ?>>Glossary</a></li> | ||
<li><a href="{kb:site:link}search" <?php if ($module == 'search') echo 'class="current"'; ?>>Advanced Search</a></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<?php if (kb_user_logged_in()): ?> | ||
<p> | ||
<a href="<?php echo site_url('users/profile/{kb:users:user_name}')?>" class="first"> | ||
<span>Welcome,</span> {kb:users:user_name}</a> | <a href="<?php echo site_url('users/account')?>">My Account</a> | ||
<a href="{kb:site:link}users/profile/{kb:users:user_name}" class="first"> | ||
<span>Welcome,</span> {kb:users:user_name}</a> | <a href="{kb:site:link}users/account">My Account</a> | ||
</p> | ||
<?php else: ?> | ||
<p> | ||
<a href="<?php echo site_url('users/login') ?>">Login</a> | <a href="<?php echo site_url('users/register') ?>">Register</a> | ||
<a href="{kb:site:link}users/login">Login</a> | <a href="{kb:site:link}users/register">Register</a> | ||
</p> | ||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters