<?xml version="1.0" encoding="UTF-8"?>
<swifttemplate>
	<title>Default</title>
	<author>Kayako</author>
	<version>0</version>

	<category name="template_knowledgebase" app="knowledgebase" icon="icon_knowledgebase.png">
		<template name="knowledgebaselist"><![CDATA[
		<div class="boxcontainer">
			<div class="boxcontainerlabel"><{if $_settings[kb_enrss] == '1'}><div style="float: right;"><a href="<{$_swiftPath}>rss/index.php?/Knowledgebase/Feed/Index/<{$_knowledgebaseCategoryID}>" title="<{$_language[rssfeed]}>" target="_blank"><img src="<{$_themePath}>images/icon_rss.png" alt="<{$_language[rssfeed]}>" align="absmiddle" border="0" /></a></div><{/if}><{$_language[knowledgebase]}> <{if $_parentCategoryList != false}>: <{foreach key=_categoryID name=_parentCategory item=_categoryItem from=$_parentCategoryList}><{if $.foreach._parentCategory.last}><{$_categoryItem}><{else}><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/List/Index/<{$_categoryID}>"><{$_categoryItem}></a> &gt; <{/if}> <{/foreach}> <{/if}> </div>

			<div class="boxcontainercontent">
				<{if $_showEmptyViewWarning == true}>
				<div class="infotextcontainer">
				<{$_language[noinfoinview]}>
				</div>
				<{/if}>

				<{if $_hasNoCategories == false }>
				<div class="list-table">
				<table cellpadding="0" cellspacing="0" width="100%" border="0">
				<tr>
				<{foreach key=_kbCategoryID item=_knowledgebaseCategory from=$_knowledgebaseCategoryListContainer}>
					<{if $_knowledgebaseCategory[jumptorow] == true}>
						</tr><tr>
					<{/if}>

					<{if $_knowledgebaseCategory[title] == false}>
						<td class="hide">&nbsp;</td>
					<{else}>
						<td width="<{$_knowledgebaseCategory[tdwidth]}>%" align="left" valign="top">
						<div class="kbcategorytitlecontainer"><div class="kbcategorytitle" onclick="javascript: window.location.href='<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/List/Index/<{$_knowledgebaseCategory[kbcategoryid]}>/<{$_knowledgebaseCategory[seotitle]}>';"><span class="kbcategorycount"><{if $_knowledgebaseCategory[totalarticles] > 0}>(<{$_knowledgebaseCategory[totalarticles]}>)<{/if}></span><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/List/Index/<{$_knowledgebaseCategory[kbcategoryid]}>/<{$_knowledgebaseCategory[seotitle]}>"><{$_knowledgebaseCategory[title]}></a></div>
						<{foreach key=_kbArticleID item=_knowledgebaseArticle from=$_knowledgebaseCategory[articles]}>
						<div class="kbarticlecategorylistitem"><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/Article/View/<{$_knowledgebaseArticle[kbarticleid]}>/<{$_knowledgebaseArticle[linktypeid]}>/<{$_knowledgebaseArticle[seosubject]}>"><{$_knowledgebaseArticle[subject]}></a></div>
						<{/foreach}>
						</div>
						</td>
					<{/if}>
				<{/foreach}>
				</tr>
				</table>
				</div>
				<{/if}>

				<{if $_hasNoCategories == false}>
				<br />
				<{/if}>

				<{if $_knowledgebaseArticleCount > 0}>
				<{foreach key=_kbArticleID item=_knowledgebaseArticle from=$_knowledgebaseArticleContainer}>
				<div class="kbarticlecontainer<{if $_knowledgebaseArticle[isfeatured] == '1'}> kbarticlefeatured<{/if}>">
				<div class="kbarticle"><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/Article/View/<{$_knowledgebaseArticle[kbarticleid]}>/<{$_knowledgebaseCategoryID}>/<{$_knowledgebaseArticle[seosubject]}>"><{$_knowledgebaseArticle[subject]}></a></div>
				<div class="kbarticletext"><{$_knowledgebaseArticle[contentstext]}></div>
				</div>
				<{/foreach}>
				<{/if}>

				<{if $_knowledgebaseCategoryID == 0 && $_showEmptyViewWarning == false}>
				<table cellpadding="0" cellspacing="0" width="100%" border="0">
				<tr>
				<{if $_settings[kb_enpopulararticles] == '1'}>
				<td width="50%" align="left" valign="top"><div class="kbrightstrip">
				<table class="hlineheader hlinegray"><tr><th rowspan="2" nowrap><{$_language[mostpopular]}></th><td>&nbsp;</td></tr><tr><td class="hlinelower">&nbsp;</td></tr></table>
				</div>
				<ol>
				<{foreach key=_kbArticleID item=_knowledgebaseArticle from=$_knowledgebaseArticleContainer_Popular}>
				<li class="kbarticlelist">
				<div class="kbarticlelistitem"><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/Article/View/<{$_knowledgebaseArticle[kbarticleid]}>/<{$_knowledgebaseCategoryID}>/<{$_knowledgebaseArticle[seosubject]}>"><{$_knowledgebaseArticle[subject]}></a></div>
				</li>
				<{/foreach}>
				</ol>
				</td>
				<{/if}>

				<{if $_settings[kb_enlatestarticles] == '1'}>
				<td width="<{if $_settings[kb_enpopulararticles] == '1'}>50%<{else}>100%<{/if}>" align="left" valign="top">
				<div><table class="hlineheader hlinegray"><tr><th rowspan="2" nowrap><{$_language[recentarticles]}></th><td>&nbsp;</td></tr><tr><td class="hlinelower">&nbsp;</td></tr></table></div>
				<ol>
				<{foreach key=_kbArticleID item=_knowledgebaseArticle from=$_knowledgebaseArticleContainer_Recent}>
				<li class="kbarticlelist">
				<div class="kbarticlelistitem"><a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/Article/View/<{$_knowledgebaseArticle[kbarticleid]}>/<{$_knowledgebaseCategoryID}>/<{$_knowledgebaseArticle[seosubject]}>"><{$_knowledgebaseArticle[subject]}></a></div>
				</li>
				<{/foreach}>
				</ol>
				</td>
				<{/if}>
				</tr>
				</table>
				<{/if}>
			</div>
			</div>
		  ]]></template>
		<template name="knowledgebasearticle"><![CDATA[
			<div class="boxcontainer">
			<div class="boxcontainerlabel"><{$_language[knowledgebase]}><{if $_kbCategoryContainer != false}>: <a href="<{$_baseName}><{$_templateGroupPrefix}>/Knowledgebase/List/Index/<{$_kbCategoryContainer[kbcategoryid]}>"><{$_kbCategoryContainer[title]}></a><{/if}></div>

			<div class="boxcontainercontent">
				<table width="100%" cellpadding="0" cellspacing="0" border="0" class = "containercontenttable">
					<tr>
						<td valign="top" colspan="2">
							<div class="kbavatar"><img src="<{$_baseName}><{$_templateGroupPrefix}>/Base/StaffProfile/DisplayAvatar/<{$_knowledgebaseArticle[staffid]}>/<{$_knowledgebaseArticle[emailhash]}>/60" align="absmiddle" border="0" /></div>
							<div class="kbtitle"><span class="kbtitlemain"><{$_knowledgebaseArticle[subject]}></span></div>
							<div class="kbinfo"><{$_language[postedby]}> <{$_knowledgebaseArticle[author]}> <{$_language[on]}> <{$_knowledgebaseArticle[date]}></div>
						</td>
					</tr>
					<tr><td colspan="2" class="kbcontents">
						<{$_knowledgebaseArticle[contents]}>
					</td></tr>
					<tr>
					<td colspan="2">

					<{if $_knowledgebaseArticle[hasattachments] == '1'}>
					<br /><br />
					<div><table class="hlineheader hlinegray"><tr><th rowspan="2" nowrap><{$_language[kbattachments]}></th><td>&nbsp;</td></tr><tr><td class="hlinelower">&nbsp;</td></tr></table></div>
					<div class="kbattachments">
					<{foreach key=_attachmentID item=_kbAttachment from=$_attachmentContainer}>
					<div class="kbattachmentitem" onclick="javascript: PopupSmallWindow('<{$_kbAttachment[link]}>');" style="background-image: URL('<{$_themePath}>images/<{$_kbAttachment[icon]}>');">&nbsp;<{$_kbAttachment[name]}> (<{$_kbAttachment[size]}>)</div>
					<{/foreach}>
					</div>
					<{/if}>


					<{if $_knowledgebaseArticle[allowrating] == '1' && $_settings[kb_enrating] == '1'}>
					<div id="kbratingcontainer">
					<{RenderTemplate name="knowledgebaserating"}>
					</div>
					<{/if}>
					<hr class="kbhr" /></td>
					</tr>
				</table>

				<{if $_knowledgebaseArticle[allowcomments] == '1'}>
				<{RenderTemplate name="comments"}>
				<{/if}>
			</div>
			</div>
		  ]]></template>
		<template name="knowledgebaserating"><![CDATA[
			<div class="kbrating">
			<div class="kbratingstars"><img src="<{$_themePath}>images/icon_star_<{$_articleRating}>.gif" align="absmiddle" border="0" /><span> (<{$_knowledgebaseArticle[ratinghits]}> <{$_language[articlevotes]}>)</span></div>
			<{if $_hasNotRated == true}>
			<div class="kbratinghelpful" onclick="javascript: ArticleHelpful('<{$_knowledgebaseArticle[kbarticleid]}>');"><img src="<{$_themePath}>images/icon_thumbsup.gif" align="absmiddle" border="0" /> <{$_language[articlehelpful]}></div><div class="kbratingnothelpful" onclick="javascript: ArticleNotHelpful('<{$_knowledgebaseArticle[kbarticleid]}>');"><img src="<{$_themePath}>images/icon_thumbdown.gif" align="absmiddle" border="0" /> <{$_language[articlenothelpful]}></div>
			<{/if}>
			</div>
		  ]]></template>
	</category>
</swifttemplate>
