Changeset 16924 for extensions/SmartAlbums/admin
- Timestamp:
- Jul 23, 2012, 11:37:14 AM (12 years ago)
- Location:
- extensions/SmartAlbums/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/SmartAlbums/admin/album.php
r16104 r16924 134 134 135 135 /* select options, for html_options */ 136 $ template->assign(137 ' options',138 array(139 ' tags' => array(136 $options = array( 137 'tags' => array( 138 'name' => l10n('Tags'), 139 'options' => array( 140 140 'all' => l10n('All these tags'), 141 141 'one' => l10n('One of these tags'), … … 143 143 'only' => l10n('Only these tags'), 144 144 ), 145 'date' => array( 145 ), 146 'date' => array( 147 'name' => l10n('Date'), 148 'options' => array( 146 149 'the_post' => l10n('Added on'), 147 150 'before_post' => l10n('Added before'), … … 151 154 'after_taken' => l10n('Created after'), 152 155 ), 153 154 'name' => array( 156 ), 157 'name' => array( 158 'name' => l10n('Photo name'), 159 'options' => array( 155 160 'contain' => l10n('Contains'), 156 161 'begin' => l10n('Begins with'), … … 160 165 'not_end' => l10n('Doesn\'t end with'), 161 166 ), 162 'author' => array( 167 ), 168 'author' => array( 169 'name' => l10n('Author'), 170 'options' => array( 163 171 'is' => l10n('Is'), 164 172 'in' => l10n('Is in'), … … 166 174 'not_in' => l10n('Is not in'), 167 175 ), 168 'hit' => array( 176 ), 177 'hit' => array( 178 'name' => l10n('Hits'), 179 'options' => array( 169 180 'less' => l10n('Bellow'), 170 181 'more' => l10n('Above'), 171 182 ), 172 'level' => array('level' => 'level'), // second filter not used 173 'limit' => array('limit' => 'limit'), // second filter not used 174 ) 183 ), 184 'rating_score' => array( 185 'name' => l10n('Rating score'), 186 'options' => array( 187 'less' => l10n('Bellow'), 188 'more' => l10n('Above'), 189 ), 190 ), 191 'level' => array( 192 'name' => l10n('Privacy level'), 193 'options' => array(), 194 ), 195 'limit' => array( 196 'name' => l10n('Max. number of photos'), 197 'options' => array(), 198 ), 175 199 ); 200 $template->assign('options', $options); 176 201 177 202 /* get filters for this album */ … … 205 230 'COND' => $filter['cond'], 206 231 'VALUE' => $filter['value'], 232 'CAPTION' => $options[ $filter['type'] ]['name'], 207 233 )); 208 234 } -
extensions/SmartAlbums/admin/template/album.tpl
r16104 r16924 8 8 9 9 {foreach from=$options item=details key=mode} 10 lang['{$mode}_filter'] = '{$ mode|cat:'_filter'|@translate|escape:javascript}';11 {capture assign="option_content"}{html_options options=$details }{/capture}10 lang['{$mode}_filter'] = '{$details.name|escape:javascript}'; 11 {capture assign="option_content"}{html_options options=$details.options}{/capture} 12 12 options['{$mode}'] = "{$option_content|escape:javascript}"; 13 13 {/foreach} … … 144 144 <a href="#" class="removeFilter" title="{'remove this filter'|@translate}"><span>[x]</span></a> 145 145 <input type="hidden" name="filters[{$i}][type]" value="{$filter.TYPE}"/> 146 {$filter. TYPE|cat:'_filter'|@translate}146 {$filter.CAPTION} 147 147 </span> 148 148 149 149 <span class="filter-cond"> 150 150 <select name="filters[{$i}][cond]"> 151 {html_options options=$options[$filter.TYPE] selected=$filter.COND}151 {html_options options=$options[$filter.TYPE].options selected=$filter.COND} 152 152 </select> 153 153 </span> … … 182 182 <option value="-1">{'Add a filter'|@translate}</option> 183 183 <option disabled="disabled">------------------</option> 184 <option value="tags">{'tags_filter'|@translate}</option> 185 <option value="date">{'date_filter'|@translate}</option> 186 <option value="name">{'name_filter'|@translate}</option> 187 <option value="author">{'author_filter'|@translate}</option> 188 <option value="hit">{'hit_filter'|@translate}</option> 189 <option value="level">{'level_filter'|@translate}</option> 190 <option value="limit">{'limit_filter'|@translate}</option> 184 <option value="tags">{'Tags'|@translate}</option> 185 <option value="date">{'Date'|@translate}</option> 186 <option value="name">{'Photo name'|@translate}</option> 187 <option value="author">{'Author'|@translate}</option> 188 <option value="hit">{'Hits'|@translate}</option> 189 <option value="rating_score">{'Rating score'|@translate}</option> 190 <option value="level">{'Privacy level'|@translate}</option> 191 <option value="limit">{'Max. number of photos'|@translate}</option> 191 192 </select> 192 193 <a id="removeFilters">{'Remove all filters'|@translate}</a>
Note: See TracChangeset
for help on using the changeset viewer.