2012-08-01 11:00:12 +00:00
|
|
|
|
<h2>Templates Manager</h2>
|
|
|
|
|
<p>Here you can manage your available templates.</p>
|
2012-04-28 20:11:43 +00:00
|
|
|
|
{assign var="selected" value=$Cbucket->configs.template_dir}
|
|
|
|
|
{assign var="curtpl" value=$cbtpl->get_template_details($selected)}
|
2012-08-01 11:00:12 +00:00
|
|
|
|
<div class="manager-list">
|
2012-08-01 13:00:49 +00:00
|
|
|
|
<div class="controller scrolltoFixed white-grad">
|
2012-08-01 11:00:12 +00:00
|
|
|
|
<div class="buttons">
|
|
|
|
|
<div class="btn-toolbar">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<label class="btn check-all"><input type="checkbox" /></label>
|
|
|
|
|
</div>
|
2012-04-28 20:11:43 +00:00
|
|
|
|
|
2012-08-01 11:00:12 +00:00
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<a href="#" class="btn btn-danger" onclick="cb_confirm('Delete Selected Templates','Are you sure you want to delete selected templates ?', function(){
|
|
|
|
|
$('#do-action').attr('name','delete_selected'); $('#template_manager').submit();
|
|
|
|
|
}); return false;">Delete</a>
|
|
|
|
|
</div>
|
2012-08-01 13:00:49 +00:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="right-button">
|
|
|
|
|
<div class="btn-group">
|
|
|
|
|
<a href="#" class="btn btn-primary"><i class="icon-upload icon-white"></i> Upload</a>
|
2012-08-01 11:00:12 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>Current Template</legend>
|
|
|
|
|
<div class="height20"></div>
|
|
|
|
|
<span class="span3" style="margin-left:0px;">
|
|
|
|
|
<img src="{$cbtpl->get_preview_thumb($curtpl.dir)}" class="thumbnail width240" />
|
|
|
|
|
</span>
|
|
|
|
|
<div id="current_template_details">
|
|
|
|
|
<h3 class="template_name">{$curtpl.name}</h3>
|
|
|
|
|
<p>By <a href="{$curtpl.website.link}"><strong>{$curtpl.author}</strong></a>, Released on {$curtpl.released|date_format}</p>
|
|
|
|
|
<p>{$curtpl.description}</p>
|
|
|
|
|
<p>Version: {$curtpl.version} | Website: <a href="{$curtpl.website.link}">{$curtpl.website.title}</a></p>
|
|
|
|
|
<p><a href="template_editor.php?dir={$curtpl.dir}" class="btn btn-mini">Open in editor</a></p>
|
|
|
|
|
</div>
|
|
|
|
|
</fieldset>
|
|
|
|
|
<div class="height20 clear"></div>
|
|
|
|
|
{* Listing All Avilable Templates *}
|
|
|
|
|
{assign var='templates' value=$cbtpl->get_templates()}
|
2012-04-28 20:11:43 +00:00
|
|
|
|
|
2012-08-01 11:00:12 +00:00
|
|
|
|
{if $templates}
|
|
|
|
|
<form name="template_manager" id="template_manager" method="post" action="">
|
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>Available Templates</legend>
|
|
|
|
|
<div class="height20"></div>
|
|
|
|
|
<div class="row show-grid list-block table">
|
|
|
|
|
<input type="hidden" name="" value="do" id="do-action" />
|
|
|
|
|
{foreach $templates as $template}
|
|
|
|
|
{if $template.dir != $selected}
|
|
|
|
|
<div class="span3 thumbnail marginB20 relative">
|
|
|
|
|
<input type="checkbox" class="absolute check-item" value="{$template.dir}" name="check_template[]" />
|
|
|
|
|
<img src="{$cbtpl->get_preview_thumb($template.dir)}" class="width270" />
|
|
|
|
|
<div class="caption">
|
|
|
|
|
<h4>{$template.name}</h4>
|
|
|
|
|
<div class="font_12 clearfix marginT5">
|
|
|
|
|
By {$template.author}
|
|
|
|
|
<div class="btn-group pull-right">
|
|
|
|
|
<a class="btn dropdown-toggle btn-mini" data-toggle="dropdown" href="#">Options <span class="caret"></span></a>
|
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
|
<li><a href="templates.php?change={$template.dir}">Activate</a></li>
|
|
|
|
|
<li><a href="{$baseurl}?template={$template.dir}">Preview</a></li>
|
|
|
|
|
<li><a href="template_editor.php?dir={$template.dir}">Open in editor</a></li>
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
|
<li><a href="#" onclick="cb_confirm('Delete Template','Are you sure you want to delete this template ? ', function(){
|
|
|
|
|
window.location = '?delete={$template.dir}';
|
|
|
|
|
}); return false;">Delete</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2012-04-28 20:11:43 +00:00
|
|
|
|
|
2012-08-01 11:00:12 +00:00
|
|
|
|
<div class="font_12 clearfix marginT10 display-none" id="{$template@iteration}{$template@index}_details">
|
|
|
|
|
<p class="font_12"><strong>Version: </strong>{$template.version}</p>
|
|
|
|
|
<p class="font_12">{$template.description}</p>
|
|
|
|
|
<p class="font_12">All of this template’s files are located in <code>{$template.path}</code></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
{/foreach}
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
|
|
{else}
|
|
|
|
|
<div class="alert">No New Template Found</div>
|
2012-04-28 20:11:43 +00:00
|
|
|
|
{/if}
|
2012-08-01 11:00:12 +00:00
|
|
|
|
</div>
|