Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Altered theme files to use tags.

  • Loading branch information...
commit cc5fd99e3579674826a7576f2d1a4f101c9e74a1 1 parent 81bcbd0
Eric Barnes ericbarnes authored
20 upload/themes/default/categories/browse.php
View
@@ -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; ?>
8 upload/themes/default/inc/top_nav.php
View
@@ -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>
6 upload/themes/default/inc/user_nav.php
View
@@ -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; ?>
20 upload/themes/default/kb/glossary.php
View
@@ -2,16 +2,16 @@
<table border="0" class="glossary_terms" width="100%">
<tr>
- <td><a href="<?php echo site_url('glossary/term/sym'); ?>">#</a></td>
- <?php foreach($letter as $row): ?>
- <td><a href="<?php echo site_url('glossary/term/'.$row); ?>"><?php echo strtoupper($row); ?></a></td>
- <?php endforeach; ?>
+ <td><a href="{kb:site:link}glossary/term/sym">#</a></td>
+ {kb:letters}
+ <td><a href="{kb:site:link}glossary/term/{kb:letter}">{kb:letter}</a></td>
+ {/kb:letters}
</tr>
</table>
-<?php foreach($glossary->result() as $row): ?>
-<dl>
- <dt><a name="<?php echo $row->g_term; ?>"></a><?php echo $row->g_term; ?></dt>
- <dd><?php echo $row->g_definition; ?></dd>
-</dl>
-<?php endforeach; ?>
+{kb:glossary}
+ <dl>
+ <dt><a name="{kb:g_term}"></a>{kb:g_term}</dt>
+ <dd>{kb:g_definition}</dd>
+ </dl>
+{/kb:glossary}
23 upload/themes/default/layout.php
View
@@ -6,28 +6,27 @@
{kb:head_data}
<meta name="keywords" content="{kb:site_keywords}" />
<meta name="description" content="{kb:site_keywords}" />
-<base href="<?php echo base_url()?>" />
-<link href="{kb:site_theme}/css/style.css" rel="stylesheet" type="text/css" />
+{kb:themes:css file="css/style.css"}
</head>
<body>
-
+
<div class="container_12">
-
+
<div class="grid_6" id="logo">
<h1><a href="http://68kb.com">{kb:settings:get name="site_title"}</a></h1>
</div>
<div class="grid_6" id="login">
- <?php $this->load->view($site_theme.'/inc/user_nav'); ?>
+ {kb:themes:embed file="inc/user_nav"}
</div>
<div class="clear"></div>
-
+
<div class="grid_12 blue">
<div id="slatenav">
- <?php $this->load->view($site_theme.'/inc/top_nav'); ?>
+ {kb:themes:embed file="inc/top_nav"}
</div>
</div>
<div class="clear"></div>
-
+
<div class="grid_8 body">
<?php echo $body; ?>
</div>
@@ -39,20 +38,20 @@
{kb:cats}
<input type="submit" name="submit" value="Seach!" />
{/kb:search:form}
- <?php echo anchor('search', 'Advanced Search'); ?>
+ <a href="{kb:site:link}search">Advanced Search</a>
</div>
-
+
<div class="item">
<h3>Categories</h3>
{kb:categories:cat_list show_total="yes"}
</div>
</div>
<div class="clear"></div>
-
+
<div class="grid_12 footer">
<p>
&copy; <?php echo date("Y"); ?> {kb:settings:get name="site_title"} - Powered by <a href="http://68kb.com">68 Knowledge Base</a><br />
- Time: <?php echo $this->benchmark->elapsed_time();?> - Memory: <?php echo $this->benchmark->memory_usage();?>
+ Time: {elapsed_time} - Memory: {memory_usage}
</p>
</div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.