diff --git a/language/en_UK/common.lang.php b/language/en_UK/common.lang.php index 6933c0224..ae4c8a295 100644 --- a/language/en_UK/common.lang.php +++ b/language/en_UK/common.lang.php @@ -451,4 +451,6 @@ $lang['The PDF you requested is too large to display on this page.']= 'The PDF y $lang['Click here to display it']= 'Click here to display it'; $lang['last 12 months'] = 'Last 12 months'; $lang['Custom dates'] = 'Custom dates'; - +$lang['There are no tags available for the photos currently filtered'] = 'There are no tags available for the photos currently filtered'; +$lang['There are no creation dates available for the photos currently filtered'] = 'There are no creation dates available for the photos currently filtered'; +$lang['There are no authors available for the photos currently filtered'] = 'There are no authors available for the photos currently filtered'; diff --git a/language/fr_FR/common.lang.php b/language/fr_FR/common.lang.php index 42003732e..4200bb73c 100644 --- a/language/fr_FR/common.lang.php +++ b/language/fr_FR/common.lang.php @@ -451,3 +451,7 @@ $lang['The PDF you requested is too large to display on this page.']= 'Le PDF qu $lang['Click here to display it']= 'Cliquez ici pour le voir'; $lang['last 12 months'] = '12 derniers mois'; $lang['Custom dates'] = 'Dates personnalisées'; +$lang['There are no tags available for the photos currently filtered'] = 'Aucun tag n\'est disponible pour les photos actuellement filtrées'; +$lang['There are no creation dates available for the photos currently filtered'] = 'Aucune dates de création n\'est disponible pour les photos actuellement filtrées'; +$lang['There are no authors available for the photos currently filtered'] = 'Aucun auteur n\'est disponible pour les photos actuellement filtrées'; + diff --git a/themes/default/css/search.css b/themes/default/css/search.css index 025bc401c..012ea8a1a 100644 --- a/themes/default/css/search.css +++ b/themes/default/css/search.css @@ -430,6 +430,11 @@ width: 400px; } +.filter-author-form, +.filter-tag-form{ + min-width: 400px; +} + .filter-album-form .search-sub-cats { margin-top: 10px; } @@ -976,4 +981,15 @@ margin:0; color:#656565; font-size:12px; +} + +.no_filtered_photos { + font-weight:700; + color: #ee8800; + padding:30px; + text-align:center; +} + +.mcs_hide{ + display:none!important; } \ No newline at end of file diff --git a/themes/default/template/include/search_filters.inc.tpl b/themes/default/template/include/search_filters.inc.tpl index 299997fba..d95dc987a 100644 --- a/themes/default/template/include/search_filters.inc.tpl +++ b/themes/default/template/include/search_filters.inc.tpl @@ -242,7 +242,10 @@ const prefix_icon = 'gallery-icon-'; {'Delete'|@translate} {'Clear'|@translate} -
+ {if empty($TAGS)} +

{'There are no tags available for the photos currently filtered'|translate}

+ {/if} +
@@ -252,7 +255,7 @@ const prefix_icon = 'gallery-icon-';
-
+
@@ -316,7 +318,7 @@ const prefix_icon = 'gallery-icon-';
- {foreach from=$year.months key=m item=month} + {foreach from=$year.months key=m item=month}
@@ -329,7 +331,7 @@ const prefix_icon = 'gallery-icon-';
- {foreach from=$month.days key=d item=day} + {foreach from=$month.days key=d item=day}
- {/foreach} + {/foreach}
@@ -373,11 +375,15 @@ const prefix_icon = 'gallery-icon-';
+
+ {if empty($LIST_DATE_CREATED)} +

{'There are no creation dates available for the photos currently filtered'|translate}

+ {else}
@@ -401,7 +407,8 @@ const prefix_icon = 'gallery-icon-';
- {foreach from=$LIST_DATE_CREATED key=y item=year} + {if !empty($LIST_DATE_CREATED)} + {foreach from=$LIST_DATE_CREATED key=y item=year}
@@ -414,7 +421,7 @@ const prefix_icon = 'gallery-icon-';
- {foreach from=$year.months key=m item=month} + {foreach from=$year.months key=m item=month}
@@ -427,7 +434,7 @@ const prefix_icon = 'gallery-icon-';
- {foreach from=$month.days key=d item=day} + {foreach from=$month.days key=d item=day}
- {/foreach} + {/foreach}
- {/foreach} + {/foreach}
- {/foreach} + {/foreach} + {/if}
@@ -457,7 +465,7 @@ const prefix_icon = 'gallery-icon-'; {'Validate'|@translate}
- +{/if}
@@ -494,6 +502,7 @@ const prefix_icon = 'gallery-icon-';
{include file='admin/themes/default/template/include/album_selector.inc.tpl'} + {if isset($AUTHORS)}
@@ -506,7 +515,10 @@ const prefix_icon = 'gallery-icon-'; {'Delete'|@translate} {'Clear'|@translate}
-
+ {if empty($AUTHORS)} +

{'There are no authors available for the photos currently filtered'|translate}

+ {/if} +