2010-01-14 15:29:09 +00:00
< h2 > Edit template< / h2 >
< div style = "margin-right:10px" >
< div align = "right" >
{assign var='templates' value=$cbtpl->get_templates()}
{if $templates}
< form name = "select_template" action = "" method = "get" >
< label > Select Theme To Edit
< select name = "dir" >
{foreach from=$templates item=template}
< option value = "{$template.dir}" { if $ sel_dir = =$template.dir} selected { / if } > {$template.name}< / option >
{/foreach}
< / select > < / label > < input type = "submit" name = "select" value = "Select" / >
< / form >
{/if}
< / div >
< table width = "100%" border = "0" cellspacing = "0" cellpadding = "0" >
< tr >
< td width = "200" > < div align = "left" style = "width:200px" >
< h3 > Layout Files< / h3 >
< ul >
2012-04-09 12:50:43 +00:00
{foreach from=$layoutDirs item=dir key=name}
< li > {$name}< / li >
< ul >
{if $dir.dirs}
{foreach from=$dir.dirs item=subdir key=subname}
< li > {$subname}< / li >
< ul >
{foreach from=$subdir item=subfile key=subfilename}
< li { if $ smarty . get . file = =$subfile & & $ smarty . get . folder = ="layout/$name/$subname"} class = "sel_file" { / if } >
< a href = "?dir={$sel_dir}&file={$subfile}&folder=layout/{$name}/{$subname}" > {$subfile}< / a > < / li >
{/foreach}
< / ul >
{/foreach}
{/if}
{foreach from=$dir.files item=file}
< li { if $ smarty . get . file = =$file & & $ smarty . get . folder = ="layout/$name"} class = "sel_file" { / if } > < a href = "?dir={$sel_dir}&file={$file}&folder=layout/{$name}" > {$file}< / a > < / li >
{/foreach}
< / ul >
{/foreach}
2010-01-14 15:29:09 +00:00
{foreach from=$tpl_files item=tplfile key=folder}
{if !is_array($tplfile)}
< li { if $ smarty . get . file = =$tplfile} class = "sel_file" { / if } > < a href = "?dir={$sel_dir}&file={$tplfile}&folder=layout" > {$tplfile}< / a > < / li >
{/if}
{/foreach}
< / ul >
< h3 > CSS Files< / h3 >
< ul >
{foreach from=$css_files item=cssfile}
{if !is_array($cssfile)}
< li { if $ smarty . get . file = =$cssfile} class = "sel_file" { / if } > < a href = "?dir={$sel_dir}&file={$cssfile}&folder=theme" > {$cssfile}< / a > < / li >
{/if}
{/foreach}
< / ul >
< / div >
< / td >
< td align = "center" valign = "top" > < form name = "file_content" action = "" method = "post" >
< div class = "file_content" > < textarea name = "thecontent" class = "file_content" > {if $content}{$content}{else}< em > No File Selected< / em > {/if}< / textarea > < / div > < br > < div align = "center" > {if $writeable=='no'}This file is not writeable, please set < em > < strong > {$smarty.get.file}< / strong > < / em > permissions to 0777 - < a href = "http://docs.clip-bucket.com/clipbucket-docs/files-folder-permissions" target = "_blank" > < strong > More Details< / strong > < / a > < / div >
{else}
< div align = "right" > < input type = "submit" value = "Update File" name = "update_file" class = "button" > < / div >
{/if}
< / form > < / td >
< / tr >
< / table >
< / div >