]> git.mxchange.org Git - friendica.git/blob - view/smarty3/field_themeselect.tpl
Implement Smarty3
[friendica.git] / view / smarty3 / field_themeselect.tpl
1         <script>$(function(){ previewTheme($("#id_{{$field.0}}")[0]); });</script>
2         <div class='field select'>
3                 <label for='id_{{$field.0}}'>{{$field.1}}</label>
4                 <select name='{{$field.0}}' id='id_{{$field.0}}' {{if $field.5}}onchange="previewTheme(this);"{{/if}} >
5                         {{foreach $field.4 as $opt=>$val}}<option value="{{$opt}}" {{if $opt==$field.2}}selected="selected"{{/if}}>{{$val}}</option>{{/foreach}}
6                 </select>
7                 <span class='field_help'>{{$field.3}}</span>
8                 <div id="theme-preview"></div>
9         </div>