diff --git a/template/include/search_filters.inc.tpl b/template/include/search_filters.inc.tpl index 36baf84..edda2fe 100644 --- a/template/include/search_filters.inc.tpl +++ b/template/include/search_filters.inc.tpl @@ -1,13 +1,10 @@ -{combine_script id='jquery.selectize' load='footer' path='themes/minibufetum/js/plugins/selectize.min.js'} +{combine_script id='jquery.selectize' load='footer' path='themes/minIbufetum/js/plugins/selectize.min.js'} {combine_css path="admin/themes/default/fontello/css/animation.css" order=10} {* order 10 is required, see issue 1080 *} {combine_script id='jquery.tipTip' load='header' path='themes/minIbufetum/js/plugins/jquery.tipTip.minified.js'} {combine_css path="themes/minIbufetum/css/search.css" order=-100} {combine_css path="themes/minIbufetum/css/{$themeconf.colorscheme}-search.css" order=-100} {combine_css path="themes/minIbufetum/css/gallery-icon.css" order=-10} - - - - + {footer_script} {if isset($GP)} global_params = {$GP}; @@ -33,145 +30,10 @@ str_empty_search_bot_alt = "{'Pre-established filters are proposed, but you can const prefix_icon = 'gallery-icon-'; {/footer_script} - - - - - {combine_script id='mcs' load='async' require='jquery' path='themes/minIbufetum/js/mcs.js'} - - - - - - title={'Search in albums'|@translate} - searchPlaceholder={'Search'|@translate} - show_root_btn=false - api_method='pwg.categories.getList' - } - {if isset($AUTHORS)} -
- - - - -
- -
- {'Delete'|@translate} - {'Clear'|@translate} -
-
- - -
- - {'Validate'|@translate} -
-
-
-
- {/if} - - {if isset($ADDED_BY)} -
- - - - -
- -
- - -
- -
-
- {foreach from=$ADDED_BY item=added_by key=k} -
- - -
- {/foreach} -
-
-
- - {'Validate'|@translate} -
-
-
- {/if} - {if isset($FILETYPES)} -
- - - +{combine_script id='mcs' load='async' require='jquery' path='themes/minIbufetum/js/mcs.js'} -
- -
- - -
-
-
- {foreach from=$FILETYPES item=filetypes key=k} -
- - -
- {/foreach} -
-
-
- - {'Validate'|@translate} -
-
-
- {/if} -
- {'Empty filters'|@translate} -
- - -{if isset($TAGS_FOUND) or isset($ALBUMS_FOUND)} -
- {if isset($TAGS_FOUND)} -
- {count($TAGS_FOUND)} -

{'Tags found'|@translate}

-
- {/if} - {if isset($ALBUMS_FOUND)} -
- {count($ALBUMS_FOUND)} -

{'Albums found'|@translate}

-
- {/if} -
- - {if isset($TAGS_FOUND)} -
-
- -
{'Tags found'|@translate}
- -
+
@@ -381,13 +243,135 @@ const prefix_icon = 'gallery-icon-';
+ {include file='admin/themes/default/template/include/album_selector.inc.tpl' + title={'Search in albums'|@translate} + searchPlaceholder={'Search'|@translate} + show_root_btn=false + api_method='pwg.categories.getList' + } + {if isset($AUTHORS)} +
+ + + - {include file='admin/themes/default/template/include/album_selector.inc.tpl' +
+ +
+ {'Delete'|@translate} + {'Clear'|@translate} +
+
+ + +
+ + {'Validate'|@translate} +
+
+
+
+ {/if} + + {if isset($ADDED_BY)} +
+ + + + +
+ +
+ + +
+ +
+
+ {foreach from=$ADDED_BY item=added_by key=k} +
+ + +
+ {/foreach} +
+
+
+ + {'Validate'|@translate} +
+
+
+ {/if} + {if isset($FILETYPES)} +
+ + + +
+ +
+ + +
+
+
+ {foreach from=$FILETYPES item=filetypes key=k} +
+ + +
+ {/foreach} +
+
+
+ + {'Validate'|@translate} +
+
+
+ {/if} +
+ {'Empty filters'|@translate} +
+
- +{if isset($TAGS_FOUND) or isset($ALBUMS_FOUND)} +
+ {if isset($TAGS_FOUND)} +
+ {count($TAGS_FOUND)} +

{'Tags found'|@translate}

+
+ {/if} + {if isset($ALBUMS_FOUND)} +
+ {count($ALBUMS_FOUND)} +

{'Albums found'|@translate}

+
+ {/if} +
+ + {if isset($TAGS_FOUND)} +
+
+ +
{'Tags found'|@translate}
{'Tags listed here match your search by word. Click on one to browse by tag.'|translate}
{foreach from=$TAGS_FOUND item=tag_path key=k}