Commit 3e973ce0 authored by Jyhem's avatar Jyhem

[REF] Clean templates indentations so they are legible and maintainable again

parent 0253cf97
This diff is collapsed.
{* $Id$ *}
{* include file for module edit form - to be called by ajax *}
<div class="module_selector">
<label for="assign_name"><strong>{tr}Module Name{/tr}</strong></label>
<select id="assign_name" name="assign_name">
......@@ -129,11 +128,11 @@
</div>
</div>
{/if}
<div class="form-group clearfix">
<div class="pull-right">
<input type="submit" class="btn btn-default btn-sm" name="preview" value="{tr}Preview{/tr}" onclick="needToConfirm=false;">
<input type="submit" class="btn btn-default btn-sm" name="assign" value="{tr}Assign{/tr}" onclick="needToConfirm=false;">
</div>
</div>
<div class="form-group clearfix">
<div class="pull-right">
<input type="submit" class="btn btn-default btn-sm" name="preview" value="{tr}Preview{/tr}" onclick="needToConfirm=false;">
<input type="submit" class="btn btn-default btn-sm" name="assign" value="{tr}Assign{/tr}" onclick="needToConfirm=false;">
</div>
</div>
{/if}
</div>
{* $Id$ *}
{if empty($user) || $user eq 'anonymous' || !empty($showantibot)}
<div class="form-group">
{if $captchalib->type eq 'recaptcha'}
{$captchalib->render()}
<div class="form-group">
{if $captchalib->type eq 'recaptcha'}
{$captchalib->render()}
{else}
<input type="hidden" name="captcha[id]" id="captchaId" value="{$captchalib->generate()}">
<label class="control-label" for="antibotcode">{tr}Enter what you see{/tr}{if $showmandatory eq 'y'}<span class="attention"> *</span>{/if}</label>
<input class="form-control" type="text" maxlength="8" size="22" name="captcha[input]" id="antibotcode">
{if $captchalib->type eq 'default'}
<img id="captchaImg" src="{$captchalib->getPath()}" alt="{tr}Anti-Bot verification code image{/tr}" height="50">
{else}
<input type="hidden" name="captcha[id]" id="captchaId" value="{$captchalib->generate()}">
<label class="control-label" for="antibotcode">{tr}Enter what you see{/tr}{if $showmandatory eq 'y'}<span class="attention"> *</span>{/if}</label>
<input class="form-control" type="text" maxlength="8" size="22" name="captcha[input]" id="antibotcode">
{if $captchalib->type eq 'default'}
<img id="captchaImg" src="{$captchalib->getPath()}" alt="{tr}Anti-Bot verification code image{/tr}" height="50">
{else}
{* dumb captcha *}
{$captchalib->render()}
{/if}
{* dumb captcha *}
{$captchalib->render()}
{/if}
{/if}
{if $captchalib->type eq 'default'}
{button _id='captchaRegenerate' _class='' href='#antibot' _text='{tr}Try another code{/tr} <i class="fa fa-refresh"></i>' _onclick="generateCaptcha()"}
{/if}
</div>
{if $captchalib->type eq 'default'}
{button _id='captchaRegenerate' _class='' href='#antibot' _text='{tr}Try another code{/tr} <i class="fa fa-refresh"></i>' _onclick="generateCaptcha()"}
{/if}
</div>
{/if}
{jq}
if($("#antibotcode").parents('form').data("validator")) {
......@@ -39,7 +39,7 @@ if($("#antibotcode").parents('form').data("validator")) {
}
});
} else {
$("#antibotcode").parents('form').validate({
$("#antibotcode").parents('form').validate({
rules: {
"captcha[input]": {
required: true,
......
......@@ -9,7 +9,7 @@
{if $show_subtitle eq 'y' and $subtitle}
<div class="articlesubtitle">{$subtitle|escape}</div>
{/if}
<span class="titleb">
{if $show_author eq 'y' && ($authorName or $author)}{tr}Author:{/tr} {if $authorName}{$authorName|escape}{else}{$author|username}{/if} - {/if}
{if $show_pubdate eq 'y' && $publishDate}{$publishDate|tiki_short_datetime:'Published At:'} - {/if}
......@@ -41,68 +41,68 @@
{if $comment_can_rate_article eq 'y' and $prefs.article_user_rating eq 'y' && ($tiki_p_ratings_view_results eq 'y' or $tiki_p_admin eq 'y')}
{rating_result id=$articleId type=article}
{/if}
{if $prefs.art_trailer_pos ne 'between'}{include file='article_trailer.tpl'}{/if}
<div class="articleheading">
<div class="garys">
{capture name=imgTitle}{if $show_image_caption eq 'y' and $image_caption}{$image_caption|escape}{elseif isset($topicName)}{tr}{$topicName}{/tr}{/if}{/capture}
{assign var="big_image" value=$prefs.art_header_text_pos eq 'below' && $list_image_x > 0}
{if $big_image}
<div class="imgbox" style="margin:auto; width:{$width}px">
{/if}
{* Show either a topic name, image OR a custom image (if there is a custom image or a topic). If a topic is set, link to it even if we show a custom image. *}
{if $topicId}
<a href="tiki-view_articles.php?topic={$topicId}" class="thumbnail{if $big_image} cboxElement{/if}" {if $isfloat eq 'y'} style="margin-right:4px;float:left;"{/if} title="{if $show_image_caption and $image_caption}{$image_caption|escape}{else}{tr}List all articles of this same topic:{/tr} {tr}{$topicName|escape}{/tr}{/if}">
{/if}
{if $useImage eq 'y' and $hasImage eq 'y'}
{* display article image *}{$style=''}
<img
{*{if $big_image}class="cboxElement"{elseif $isfloat eq 'y'}{$style="margin-right:4px;float:left;"}{else}*}class="articleimage"{*{/if}*}
alt="{$smarty.capture.imgTitle}"
src="article_image.php?image_type={if isset($preview) and $imageIsChanged eq 'y'}preview&amp;id={$previewId}{elseif isset($preview) and $subId}submission&amp;id={$subId}{else}article&amp;id={$articleId}{/if}"
{if $image_x > 0}{$style=$style|cat:"max-width:"|cat:$image_x|cat:"px;"}{/if}
{if $image_y > 0}{$style=$style|cat:"max-height:"|cat:$image_y|cat:"px;"}{/if} style="{$style}">
{elseif $topicId}
{if $topics[$topicId].image_size > 0}
<img
{if $big_image}class="cboxElement"{*{elseif $isfloat eq 'y'}style="margin-right:4px;float:left;"*}{else}class="articleimage"{/if}
alt="{tr}{$topicName}{/tr}"
src="article_image.php?image_type=topic&amp;id={$topicId}">
{else}
{tr}{$topics[$topicId].name|escape}{/tr}
{/if}
{/if}
{if $topicId}</a>{/if}
{if $big_image}
{if $show_image_caption eq 'y' and $image_caption || $image_x > 0}
<div class="center-block thumbcaption">
{if $image_x > 0}<div class="magnify"><a class="internal cboxElement" rel="box" href="article_image.php?image_type=article&amp;id={$articleId}">{icon _id='magnifier' title=$smarty.capture.imgTitle}</a></div>{/if}
{if $show_image_caption eq 'y' and $image_caption}{$image_caption|escape}{else}&nbsp;{/if}
</div>
{/if}
</div>
<div class="garys">
{capture name=imgTitle}{if $show_image_caption eq 'y' and $image_caption}{$image_caption|escape}{elseif isset($topicName)}{tr}{$topicName}{/tr}{/if}{/capture}
{assign var="big_image" value=$prefs.art_header_text_pos eq 'below' && $list_image_x > 0}
{if $big_image}
<div class="imgbox" style="margin:auto; width:{$width}px">
{/if}
{* Show either a topic name, image OR a custom image (if there is a custom image or a topic). If a topic is set, link to it even if we show a custom image. *}
{if $topicId}
<a href="tiki-view_articles.php?topic={$topicId}" class="thumbnail{if $big_image} cboxElement{/if}" {if $isfloat eq 'y'} style="margin-right:4px;float:left;"{/if} title="{if $show_image_caption and $image_caption}{$image_caption|escape}{else}{tr}List all articles of this same topic:{/tr} {tr}{$topicName|escape}{/tr}{/if}">
{/if}
{if $useImage eq 'y' and $hasImage eq 'y'}
{* display article image *}{$style=''}
<img
{*{if $big_image}class="cboxElement"{elseif $isfloat eq 'y'}{$style="margin-right:4px;float:left;"}{else}*}class="articleimage"{*{/if}*}
alt="{$smarty.capture.imgTitle}"
src="article_image.php?image_type={if isset($preview) and $imageIsChanged eq 'y'}preview&amp;id={$previewId}{elseif isset($preview) and $subId}submission&amp;id={$subId}{else}article&amp;id={$articleId}{/if}"
{if $image_x > 0}{$style=$style|cat:"max-width:"|cat:$image_x|cat:"px;"}{/if}
{if $image_y > 0}{$style=$style|cat:"max-height:"|cat:$image_y|cat:"px;"}{/if} style="{$style}">
{elseif $topicId}
{if $topics[$topicId].image_size > 0}
<img
{if $big_image}class="cboxElement"{*{elseif $isfloat eq 'y'}style="margin-right:4px;float:left;"*}{else}class="articleimage"{/if}
alt="{tr}{$topicName}{/tr}"
src="article_image.php?image_type=topic&amp;id={$topicId}">
{else}
{tr}{$topics[$topicId].name|escape}{/tr}
{/if}
{if $prefs.art_header_text_pos eq 'below' && $list_image_x > 0}
</div></div><div class="garys">
{elseif $isfloat eq 'n' and $topics[$topicId].image_size > 0}
{/if}
{if $topicId}</a>{/if}
{if $big_image}
{if $show_image_caption eq 'y' and $image_caption || $image_x > 0}
<div class="center-block thumbcaption">
{if $image_x > 0}<div class="magnify"><a class="internal cboxElement" rel="box" href="article_image.php?image_type=article&amp;id={$articleId}">{icon _id='magnifier' title=$smarty.capture.imgTitle}</a></div>{/if}
{if $show_image_caption eq 'y' and $image_caption}{$image_caption|escape}{else}&nbsp;{/if}
</div>
<div class="table-cell">
{/if}
<div class="articleheadingtext">
{if $article_attributes}
<div class="articleattributes">
{foreach from=$article_attributes key=attname item=attvalue}
{$attname|escape}: {$attvalue|escape}<br>
{/foreach}
</div>
{/if}
{$parsed_heading}
</div>
{/if}
{if $prefs.art_header_text_pos eq 'below' && $list_image_x > 0}
</div></div><div class="garys">
{elseif $isfloat eq 'n' and $topics[$topicId].image_size > 0}
</div>
<div class="table-cell">
{/if}
<div class="articleheadingtext">
{if $article_attributes}
<div class="articleattributes">
{foreach from=$article_attributes key=attname item=attvalue}
{$attname|escape}: {$attvalue|escape}<br>
{/foreach}
</div>
{/if}
{$parsed_heading}
</div>
</div>
</div>
......@@ -115,7 +115,7 @@
{tr}You do not have permission to read complete articles.{/tr}
</div>
{/if}
{if $prefs.article_paginate eq 'y' and $pages > 1}
<div align="center">
<a href="{$articleId|sefurl:article:with_next}page={$first_page}"><img src='img/icons/resultset_first.png' alt="{tr}First page{/tr}" title="{tr}First page{/tr}" width='16' height='16'></a>
......
......@@ -27,56 +27,56 @@
{else}
{$offsetparam = ''}
{/if}
<div class="table-responsive">
<table class="table normal">
<h3>{tr}Attached files{/tr}</h3>
<tr>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'attId_desc'}attId_asc{else}attId_desc{/if}&amp;atts_show=y#attachments">{tr}ID{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'filename_desc'}filename_asc{else}filename_desc{/if}&amp;atts_show=y#attachments">{tr}Name{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'comment_desc'}comment_asc{else}comment_desc{/if}&amp;atts_show=y#attachments">{tr}Comment{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'created_desc'}created_asc{else}created_desc{/if}&amp;atts_show=y#attachments">{tr}Uploaded{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'size_desc'}size_asc{else}size_desc{/if}&amp;atts_show=y#attachments">{tr}Size{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'hits_desc'}hits_asc{else}hits_desc{/if}&amp;atts_show=y#attachments">{tr}Downloads{/tr}</a>
</th>
<th>{tr}Actions{/tr}</th>
</tr>
{cycle values="odd,even" print=false advance=false}
{section name=ix loop=$atts}
<div class="table-responsive">
<table class="table normal">
<h3>{tr}Attached files{/tr}</h3>
<tr>
<td class="id">{$atts[ix].attId}</td>
<td class="text">
{$atts[ix].filename|iconify}
<a class="tablename" href="tiki-download_wiki_attachment.php?attId={$atts[ix].attId}&amp;page={$page|escape:"url"}&amp;download=y">{$atts[ix].filename}</a>
</td>
<td class="text"><small>{$atts[ix].comment|escape}</small></td>
<td class="date">
<small>{if $atts[ix].user}{$atts[ix].user|userlink}{/if} {$atts[ix].created|tiki_short_datetime}</small>
</td>
<td class="integer"><small>{$atts[ix].filesize|kbsize}</small></td>
<td class="integer"><small>{$atts[ix].hits}</small></td>
<td class="action">
<a title="{tr}View{/tr}" href="tiki-download_wiki_attachment.php?attId={$atts[ix].attId}" target="_blank">{icon _id='monitor' alt="{tr}View{/tr}"}</a>
<a title="{tr}Download{/tr}" href="tiki-download_wiki_attachment.php?attId={$atts[ix].attId}&amp;download=y">{icon _id='disk' alt="{tr}Download{/tr}"}</a>
&nbsp;
{if ($tiki_p_wiki_admin_attachments eq 'y' or ($user and ($atts[ix].user eq $user))) and $editable}
<a title="{tr}Delete{/tr}" class="link" href="tiki-index.php?page={$page|escape:"url"}&amp;removeattach={$atts[ix].attId}&amp;{$offsetparam}{if !empty($sort_mode)}sort_mode={$sort_mode}{/if}"{if !empty($target)} target="{$target}"{/if}>{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
{/if}
</td>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'attId_desc'}attId_asc{else}attId_desc{/if}&amp;atts_show=y#attachments">{tr}ID{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'filename_desc'}filename_asc{else}filename_desc{/if}&amp;atts_show=y#attachments">{tr}Name{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'comment_desc'}comment_asc{else}comment_desc{/if}&amp;atts_show=y#attachments">{tr}Comment{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'created_desc'}created_asc{else}created_desc{/if}&amp;atts_show=y#attachments">{tr}Uploaded{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'size_desc'}size_asc{else}size_desc{/if}&amp;atts_show=y#attachments">{tr}Size{/tr}</a>
</th>
<th>
<a href="tiki-index.php?page={$page|escape:"url"}&amp;{$offsetparam}sort_mode={if $sort_mode eq 'hits_desc'}hits_asc{else}hits_desc{/if}&amp;atts_show=y#attachments">{tr}Downloads{/tr}</a>
</th>
<th>{tr}Actions{/tr}</th>
</tr>
{/section}
</table>
</div>
{cycle values="odd,even" print=false advance=false}
{section name=ix loop=$atts}
<tr>
<td class="id">{$atts[ix].attId}</td>
<td class="text">
{$atts[ix].filename|iconify}
<a class="tablename" href="tiki-download_wiki_attachment.php?attId={$atts[ix].attId}&amp;page={$page|escape:"url"}&amp;download=y">{$atts[ix].filename}</a>
</td>
<td class="text"><small>{$atts[ix].comment|escape}</small></td>
<td class="date">
<small>{if $atts[ix].user}{$atts[ix].user|userlink}{/if} {$atts[ix].created|tiki_short_datetime}</small>
</td>
<td class="integer"><small>{$atts[ix].filesize|kbsize}</small></td>
<td class="integer"><small>{$atts[ix].hits}</small></td>
<td class="action">
<a title="{tr}View{/tr}" href="tiki-download_wiki_attachment.php?attId={$atts[ix].attId}" target="_blank">{icon _id='monitor' alt="{tr}View{/tr}"}</a>
<a title="{tr}Download{/tr}" href="tiki-download_wiki_attachment.php?attId={$atts[ix].attId}&amp;download=y">{icon _id='disk' alt="{tr}Download{/tr}"}</a>
&nbsp;
{if ($tiki_p_wiki_admin_attachments eq 'y' or ($user and ($atts[ix].user eq $user))) and $editable}
<a title="{tr}Delete{/tr}" class="link" href="tiki-index.php?page={$page|escape:"url"}&amp;removeattach={$atts[ix].attId}&amp;{$offsetparam}{if !empty($sort_mode)}sort_mode={$sort_mode}{/if}"{if !empty($target)} target="{$target}"{/if}>{icon _id='cross' alt="{tr}Remove{/tr}"}</a>
{/if}
</td>
</tr>
{/section}
</table>
</div>
{/if}{* Generate table if view ... attached files > 0 *}
{* It is allow to attach files or current user have admin rights *}
......@@ -94,7 +94,7 @@
<div class="form-group">
<label class="col-sm-2 control-label" for="attach-upload">{tr}Upload file{/tr}</label><input type="hidden" name="MAX_FILE_SIZE" value="1000000000">
<div class="col-sm-10">
<input class="form-control" name="userfile1" type="file" id="attach-upload">
<input class="form-control" name="userfile1" type="file" id="attach-upload">
</div>
</div>
......
......@@ -6,49 +6,49 @@
<input type="hidden" name="trackerId" value="{$trackerId|escape}">
<input type="hidden" name="itemId" value="{$itemId|escape}">
<input type="hidden" name="attId" value="{$attId|escape}">
<div class="form-group">
<label for="" class="col-sm-2 control-label">
<div class="form-group">
<label for="" class="col-sm-2 control-label">
{tr}Upload file{/tr}
</label>
<div class="col-sm-10">
{if $attach_file}{tr}Edit:{/tr} {/if}<input type="hidden" name="MAX_FILE_SIZE" value="1000000000"><input name="userfile1" type="file">{if $attach_file}<br>{$attach_file|escape}{/if}
</label>
<div class="col-sm-10">
{if $attach_file}{tr}Edit:{/tr} {/if}<input type="hidden" name="MAX_FILE_SIZE" value="1000000000"><input name="userfile1" type="file">{if $attach_file}<br>{$attach_file|escape}{/if}
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">
{tr}Comment{/tr}
</label>
<div class="col-sm-10">
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">
{tr}Comment{/tr}
</label>
<div class="col-sm-10">
<input type="text" name="attach_comment" maxlength="250" value="{$attach_comment|escape}">
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">
{tr}Version{/tr}
</label>
<div class="col-sm-10">
<input type="text" name="attach_version" size="5" maxlength="10" value="{$attach_version|escape}">
</div>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">
{tr}Description{/tr}
</label>
<div class="col-sm-10">
<textarea name="attach_longdesc" style="width:100%;" rows="10" >{$attach_longdesc|escape}</textarea>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">
{tr}Version{/tr}
</label>
<div class="col-sm-10">
<input type="text" name="attach_version" size="5" maxlength="10" value="{$attach_version|escape}">
</div>
</div>
<div class="form-group">
<div class="col-sm-10 col-sm-push-2">
<input type="submit" class="btn btn-default btn-sm" name="attach" value={if $attach_file}"{tr}Edit{/tr}"{else}"{tr}Attach{/tr}"{/if}>
</div>
<div class="form-group">
<label for="" class="col-sm-2 control-label">
{tr}Description{/tr}
</label>
<div class="col-sm-10">
<textarea name="attach_longdesc" style="width:100%;" rows="10" >{$attach_longdesc|escape}</textarea>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-10 col-sm-push-2">
<input type="submit" class="btn btn-default btn-sm" name="attach" value={if $attach_file}"{tr}Edit{/tr}"{else}"{tr}Attach{/tr}"{/if}>
</div>
</div>
</form>
{/if}
<h2>{tr}Attachments{/tr}</h2>
<div class="table-responsive">
<table class="table normal">
<table class="table normal">
<tr>
{assign var='nbcols' value=2}
<th class="auto">&nbsp;</th>
......@@ -69,7 +69,7 @@
</a>
{/if}
<a class="tablename" href="tiki-download_item_attachment.php?attId={$atts[ix].attId}" title="{tr}Download{/tr}">
{icon _id='disk' alt="{tr}Download{/tr}"}
{icon _id='disk' alt="{tr}Download{/tr}"}
</a>
</td>
{foreach key=k item=x from=$attfields}
......@@ -99,6 +99,6 @@
<td colspan="{$nbcols}" class="formcontent">{tr}No attachments for this item{/tr}</td>
</tr>
{/section}
</table>
</table>
</div>
{/strip}
{/strip}
{* $Id$ *}
{if $blog_post_context eq 'view_blog' && $use_excerpt eq 'y' && !empty($post_info.excerpt)}
<div class="postbody-content postbody-excerpt panel-body">
{include file='blog_post_author_info.tpl'}
{$post_info.parsed_excerpt}
{include file='blog_post_author_info.tpl'}
{$post_info.parsed_excerpt}
</div>
{self_link _script=$post_info.postId|sefurl:blogpost _noauto='y'}{tr}Read more{/tr}{/self_link}
{else}
<div class="postbody-content panel-body">
{include file='blog_post_author_info.tpl'}
{include file='blog_post_author_info.tpl'}
{$post_info.parsed_data}
</div>
{/if}
......
......@@ -6,36 +6,36 @@
{if $blog_post_context ne 'excerpt'}
{if $blog_post_context ne 'print'}
<footer class="postfooter panel-footer">
{include file='blog_post_author_actions.tpl'}
{include file='blog_post_actions.tpl'}
{* Copyright display is being turned off if being called through the "BLOG" plugin with "simple" mode turned off and a max character count supplied (preview mode). If in preview mode end user most likely is wanting to conserve space with a smaller display of information *}
{if $blog_post_context neq 'plugin_preview'}
{capture name='copyright_section'}
{include file='show_copyright.tpl'}
{/capture}
{* When copyright section is not empty show it *}
{if $smarty.capture.copyright_section neq ''}
<div class="help-block">
{$smarty.capture.copyright_section}
</div>
{/if}
{/if}
{include file='blog_post_author_actions.tpl'}
{include file='blog_post_actions.tpl'}
{* Copyright display is being turned off if being called through the "BLOG" plugin with "simple" mode turned off and a max character count supplied (preview mode). If in preview mode end user most likely is wanting to conserve space with a smaller display of information *}
{if $blog_post_context neq 'plugin_preview'}
{capture name='copyright_section'}
{include file='show_copyright.tpl'}
{/capture}
{* When copyright section is not empty show it *}
{if $smarty.capture.copyright_section neq ''}
<div class="help-block">
{$smarty.capture.copyright_section}
</div>
{/if}
{/if}
{include file='blog_post_status.tpl'}
</footer>
{else}
{* Show copyright information in print view *}
{if $blog_post_context neq 'plugin_preview'}
{capture name='copyright_section'}
{include file='show_copyright.tpl'}
{/capture}
{* When copyright section is not empty show it *}
{if $smarty.capture.copyright_section neq ''}
<div class="help-block">
{$smarty.capture.copyright_section}
</div>
{/if}
{/if}
{else}
{* Show copyright information in print view *}
{if $blog_post_context neq 'plugin_preview'}
{capture name='copyright_section'}
{include file='show_copyright.tpl'}
{/capture}
{* When copyright section is not empty show it *}
{if $smarty.capture.copyright_section neq ''}
<div class="help-block">
{$smarty.capture.copyright_section}
</div>
{/if}
{/if}
{/if}
{/if}
</div> <!-- postbody -->
{include file='blog_post_navigation.tpl'}
\ No newline at end of file
{include file='blog_post_navigation.tpl'}
......@@ -57,7 +57,7 @@
{assign var=propkey value="show_$propname"}
{/if}
{if isset($files[changes].$propname)}
{if $propname == 'share' && isset($files[changes].share.data)}
{if $propname == 'share' && isset($files[changes].share.data)}
{$email = []}
{foreach item=tmp_prop key=tmp_propname from=$files[changes].share.data}
{$email[]=$tmp_prop.email}
......@@ -98,7 +98,7 @@
{/if}
{/foreach}
</table>
</div>
</div>
</div>
{/strip}
{/capture}
......@@ -122,12 +122,12 @@
href="{$prefs.fgal_podcast_dir}{$files[changes].path}"
{else}
href="{if $prefs.javascript_enabled eq 'y' && $files[changes].type|truncate:5:'':true eq 'image'}
{$files[changes].id|sefurl:preview}
{elseif $files[changes].type neq 'application/x-shockwave-flash'}
{$files[changes].id|sefurl:file}
{else}
{$files[changes].id|sefurl:display}
{/if}"
{$files[changes].id|sefurl:preview}
{elseif $files[changes].type neq 'application/x-shockwave-flash'}
{$files[changes].id|sefurl:file}
{else}
{$files[changes].id|sefurl:display}
{/if}"
{/if}
{/if}
{/if}
......@@ -198,7 +198,7 @@
<img src="{$files[changes].id|sefurl:thumbnail}" alt="" style="max-height:{$thumbnailcontener_size}px">
{/if}
{else}
<object data="{$files[changes].id|sefurl:thumbnail}" alt="" style="width:{$thumbnail_size}px;height:{$thumbnailcontener_size}px;" type="{$key_type}"></object>
<object data="{$files[changes].id|sefurl:thumbnail}" alt="" style="width:{$thumbnail_size}px;height:{$thumbnailcontener_size}px;" type="{$key_type}"></object>
{/if}
</a>
{/if}
......
{* $Id$ *}
<div class="catblock clearfix">
<div class="catblock clearfix">
{if !isset($params.showTitle) or $params.showTitle eq 'y'}
<div class="cattitle">
<span class="label">{tr}Category:{/tr} </span>
......@@ -12,46 +12,45 @@
{/foreach}
</div>
{/if}
<div class="catlists">
<ul class="{if $params.showtype ne 'n'}catfeatures{elseif $params.one eq 'y'}catitemsone{else}list-inline{/if}">
{foreach key=t item=i from=$listcat}
{if $params.showtype ne 'n'}
<li>
{$t}:
<ul class="{if $params.one eq 'y'}catitemsone{else}list-inline{/if}">
{/if}
{section name=o loop=$i}
{if isset($params.maxRecords) && $smarty.section.o.index >= $params.maxRecords}
{break}
{/if}
<li>
{if $params.showlinks ne 'n'}
{if $prefs.feature_sefurl eq 'y'}
<a href="{$i[o].itemId|sefurl:$i[o].type}" class="link">
{else}
<a href="{$i[o].href}" class="link">
<div class="catlists">
<ul class="{if $params.showtype ne 'n'}catfeatures{elseif $params.one eq 'y'}catitemsone{else}list-inline{/if}">
{foreach key=t item=i from=$listcat}
{if $params.showtype ne 'n'}
<li>{$t}:
<ul class="{if $params.one eq 'y'}catitemsone{else}list-inline{/if}">
{/if}
{/if}
{if $params.showname ne 'n' or empty($i[o].description)}
{$i[o].name|escape}
{if $params.showlinks ne 'n'}</a>{/if}
{if $params.showdescription eq 'y'} <span class='description'>{/if}
{/if}
{if $params.showdescription eq 'y'}
{$i[o].description|escape}
{if $params.showname ne 'n' or empty($i[o].description)}
</span>
{else}
{if $params.showlinks ne 'n'}</a>{/if}
{section name=o loop=$i}
{if isset($params.maxRecords) && $smarty.section.o.index >= $params.maxRecords}
{break}
{/if}
{/if}
</li>
{/section}
{if $params.showtype ne 'n'}
</ul>
</li>
{/if}
{/foreach}
</ul>
</div>
<li>
{if $params.showlinks ne 'n'}
{if $prefs.feature_sefurl eq 'y'}
<a href="{$i[o].itemId|sefurl:$i[o].type}" class="link">
{else}
<a href="{$i[o].href}" class="link">
{/if}
{/if}
{if $params.showname ne 'n' or empty($i[o].description)}
{$i[o].name|escape}
{if $params.showlinks ne 'n'}</a>{/if}
{if $params.showdescription eq 'y'} <span class='description'>{/if}
{/if}
{if $params.showdescription eq 'y'}
{$i[o].description|escape}
{if $params.showname ne 'n' or empty($i[o].description)}
</span>
{else}
{if $params.showlinks ne 'n'}</a>{/if}
{/if}
{/if}
</li>
{/section}
{if $params.showtype ne 'n'}
</ul>
</li>
{/if}
{/foreach}
</ul>
</div>
</div>
{if $prefs.feature_categories eq 'y' and $tiki_p_modify_object_categories eq 'y' and (count($categories) gt 0 or $tiki_p_admin_categories eq 'y')}
{if !isset($notable) || $notable neq 'y'}
<!-- div class="form-horizontal" -->
<div class="form-group">
<label class="col-sm-3 control-label">{tr}Categorize{/tr}</label>
<div class="col-sm-9">
{if isset($colsCategorize)} colspan="{$colsCategorize}"{/if}
</div>
{if !isset($notable) || $notable neq 'y'}
<!-- div class="form-horizontal" -->
<div class="form-group">
<label class="col-sm-3 control-label">{tr}Categorize{/tr}</label>
<div class="col-sm-9"></