{title help="Edit CSS"}{tr}Edit CSS{/tr}{/title}
{if ($prefs.feature_view_tpl eq 'y' || $prefs.feature_edit_templates eq 'y') && $tiki_p_edit_templates == 'y'} {button href="tiki-edit_templates.php" class="btn btn-info" _text="{tr}View Templates{/tr}"} {/if}
{if $action eq "edit"}
CSS {tr}file:{/tr} {$file}
{button href="tiki-edit_css.php?theme=$theme" _class="btn-sm" _text="{tr}Cancel{/tr}"}
{if $tikidomain} {tr}The file will be saved in:{/tr} themes/{$tikidomain} {/if} {if !empty($theme) && !$writable} {remarksbox type="warning" title="{tr}Warning{/tr}"} {tr}Cannot write the file:{/tr} {$file} {/remarksbox} {/if}
{else} {if $try_active} {remarksbox type="tip" title="{tr}Currently trying:{/tr} {$try_theme}{if $try_theme_option}/{$try_theme_option}{/if}" close="n"} {/remarksbox} {/if}
{if $theme} CSS {tr}file:{/tr} {$file} {/if}
{section name=l loop=$css}
{$css[l].id|escape}
{if $css[l].comment}
{$css[l].comment|escape}
{/if} {section name=i loop=$css[l].items}
{$css[l].items[i]|escape}
{/section} {foreach item=v key=a from=$css[l].attributes}
{$a|string_format:"%'.-22s"|escape} : {$v|string_format:"%-56.s"|escape} {if $v[0] eq "#"}      {elseif $a|truncate:6:"" eq "border"}      {/if}
{/foreach}

{/section} {/if}