diff --git a/htdocs/themes/xswatch4/modules/wggallery/blocks/wggallery_block_albums_default.tpl b/htdocs/themes/xswatch4/modules/wggallery/blocks/wggallery_block_albums_default.tpl index dccde9dc5..e0488d794 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/blocks/wggallery_block_albums_default.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/blocks/wggallery_block_albums_default.tpl @@ -170,10 +170,10 @@ <{/if}> <{/if}> - <{if $album.linebreak}> + <{if $album.linebreak|default:false}>
 
<{/if}> - <{if $album.linebreak}><{/if}> + <{if $album.linebreak|default:false}><{/if}> <{/foreach}>
<{if isset($show_more_albums)}> diff --git a/htdocs/themes/xswatch4/modules/wggallery/wggallery_album_images.tpl b/htdocs/themes/xswatch4/modules/wggallery/wggallery_album_images.tpl index 6be417d32..54d7298c5 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/wggallery_album_images.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/wggallery_album_images.tpl @@ -64,12 +64,12 @@
<{foreach item=image from=$images|default:null name=fe_image}> - <{if $image.alb_name}> + <{if $image.alb_name|default:''}>
-
+
<{/if}>
- +
<{if $image.counter % 3 == 0}>
@@ -292,7 +292,7 @@
-<{if $album.linebreak}> +<{if $album.linebreak|default:false}>
 
<{/if}> diff --git a/htdocs/themes/xswatch4/modules/wggallery/wggallery_albums_default.tpl b/htdocs/themes/xswatch4/modules/wggallery/wggallery_albums_default.tpl index 5ae391ea9..d0f48e8e2 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/wggallery_albums_default.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/wggallery_albums_default.tpl @@ -1,7 +1,7 @@ <{include file='db:wggallery_header.tpl'}> <{if isset($albums_list)}>
-
+
'>
<{$smarty.const._CO_WGGALLERY_ALBUMS_TITLE}>
<{foreach item=album from=$albums_list|default:null}> @@ -41,7 +41,7 @@ <{else}> <{$smarty.const._CO_WGGALLERY_IMAGES_INDEX}><{$smarty.const._CO_WGGALLERY_ALBUM_NO_IMAGES}> <{/if}> - <{if $album.edit}> + <{if $album.edit|default:false}> <{if $album.nb_images}> <{$smarty.const._CO_WGGALLERY_IMAGE_MANAGE}><{if isset($displayButtonText)}><{$smarty.const._CO_WGGALLERY_IMAGE_MANAGE}><{/if}> @@ -81,7 +81,7 @@
-
+
'>
<{$smarty.const._CO_WGGALLERY_ALBUMS_SORT}>
diff --git a/htdocs/themes/xswatch4/modules/wggallery/wggallery_images_default.tpl b/htdocs/themes/xswatch4/modules/wggallery/wggallery_images_default.tpl index 342f939b5..e00c31f4e 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/wggallery_images_default.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/wggallery_images_default.tpl @@ -1,6 +1,6 @@ <{include file='db:wggallery_header.tpl'}> -
+
mb-3'> <{if isset($showlist)}>
<{$smarty.const._CO_WGGALLERY_IMAGES_TITLE}> <{$alb_name}>
@@ -8,13 +8,13 @@ <{foreach item=image from=$images|default:null}>
- <{if $image.medium}> + <{if $image.medium|default:''}>
<{$image.title}>
<{/if}>

<{$smarty.const._CO_WGGALLERY_IMAGE_TITLE}><{$image.title}> - <{if $image.desc}><{$image.desc}><{/if}> + <{if $image.desc|default:''}><{$image.desc}><{/if}>

<{$smarty.const._CO_WGGALLERY_IMAGE_SIZE}><{$image.size}> kb

<{$smarty.const._CO_WGGALLERY_IMAGE_SIZE}><{$image.resx}>px / <{$image.resy}>px

@@ -33,10 +33,10 @@ <{if $use_categories && $image.cats_list}>

<{$smarty.const._CO_WGGALLERY_CATS}><{$image.cats_list}>

<{/if}> - <{if $use_tags && $image.tags}> + <{if $use_tags|default:false && $image.tags|default:false}>

<{$smarty.const._CO_WGGALLERY_TAGS}><{$image.tags}>

<{/if}> - <{if $image.com_show}> + <{if $image.com_show|default:false}>

<{$smarty.const._CO_WGGALLERY_COMMENTS}><{$image.com_count_text}>

<{/if}> <{if isset($rating) && $rating > 0}> @@ -113,7 +113,7 @@
<{$image.title}>

<{$smarty.const._CO_WGGALLERY_IMAGE_TITLE}><{$image.title}>

- <{if $image.desc}> + <{if $image.desc|default:''}>

<{$image.desc}>

<{/if}>
@@ -191,8 +191,8 @@ <{else}>
<{/if}> - <{if $image.alb_name}><{/if}> - <{$image.title}> + <{if $image.alb_name|default:''}><{/if}> + ' alt='<{$image.title}>'> <{if isset($showModalInfo)}>
diff --git a/htdocs/themes/xswatch4/modules/wggallery/wggallery_images_manage.tpl b/htdocs/themes/xswatch4/modules/wggallery/wggallery_images_manage.tpl index a74b73a20..573607fa6 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/wggallery_images_manage.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/wggallery_images_manage.tpl @@ -3,7 +3,7 @@ <{if isset($form)}> <{$form}> <{else}> -
+
'>

<{$smarty.const._CO_WGGALLERY_IMAGE_MANAGE}> <{$alb_name}>

<{$smarty.const._CO_WGGALLERY_IMAGE_MANAGE_DESC}>

@@ -37,7 +37,7 @@ <{/foreach}> - <{else if $showlist}> + <{elseif $showlist}>
<{$smarty.const._CO_WGGALLERY_THEREARENT_IMAGES}>
diff --git a/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_default.tpl b/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_default.tpl index 99160aca7..370420ac5 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_default.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_default.tpl @@ -1,7 +1,7 @@ <{include file='db:wggallery_header.tpl'}> <{if isset($albums)}> -
+
'>
<{$index_alb_title}>
<{foreach item=album from=$albums|default:null}> @@ -9,21 +9,21 @@
<{include file='db:wggallery_albumitem_2.tpl' album=$album}>
- <{if $album.linebreak}> + <{if $album.linebreak|default:false}>
 
<{/if}> <{elseif $number_cols_album == 3}>
<{include file='db:wggallery_albumitem_2.tpl' album=$album}>
- <{if $album.linebreak}> + <{if $album.linebreak|default:false}>
 
<{/if}> <{elseif $number_cols_album == 2}>
<{include file='db:wggallery_albumitem_2.tpl' album=$album}>
- <{if $album.linebreak}> + <{if $album.linebreak|default:false}>
 
<{/if}> <{else}> @@ -39,7 +39,7 @@ <{/if}> <{/if}> <{if isset($categories)}> -
+
'>
<{$index_cats_title}>
<{foreach item=category from=$categories|default:null}> diff --git a/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_hovereffectideas.tpl b/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_hovereffectideas.tpl index 03c42414f..92d0c8d1d 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_hovereffectideas.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_hovereffectideas.tpl @@ -2,7 +2,7 @@
<{if isset($albums)}> -
+
'>
<{$index_alb_title}>
<{foreach item=album from=$albums|default:null name=album}> @@ -19,7 +19,7 @@ <{/if}> <{/if}> <{if isset($categories)}> -
+
'>
<{$index_cats_title}>
<{foreach item=category from=$categories|default:null name=category}> diff --git a/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_simple.tpl b/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_simple.tpl index ac1b14642..36beba0a0 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_simple.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/wggallery_index_simple.tpl @@ -2,7 +2,7 @@
<{if isset($albums)}> -
+
'>
<{$index_alb_title}>
<{foreach item=album from=$albums|default:null}> @@ -19,7 +19,7 @@ <{/if}> <{/if}> <{if !empty($categories)}> -
+
'>
<{$index_cats_title}>
<{foreach item=category from=$categories|default:null}> diff --git a/htdocs/themes/xswatch4/modules/wggallery/wggallery_search.tpl b/htdocs/themes/xswatch4/modules/wggallery/wggallery_search.tpl index b03daf13e..e1aae2cc1 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/wggallery_search.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/wggallery_search.tpl @@ -11,7 +11,7 @@ <{/if}> <{if isset($showlist)}> -
+
'>

<{$smarty.const._MA_WGGALLERY_SEARCH_RESULT}>

<{if isset($pagenav)}> @@ -26,13 +26,13 @@ <{foreach item=image from=$images|default:null}>
- <{if $image.medium}> + <{if $image.medium|default:''}>
<{$image.title}>
<{/if}>

<{$smarty.const._CO_WGGALLERY_IMAGE_TITLE}><{$image.title}>

- <{if $image.desc}> + <{if $image.desc|default:''}>

<{$image.desc}>

<{/if}>

<{$smarty.const._CO_WGGALLERY_IMAGE_SIZE}><{$image.size}> kb

@@ -49,7 +49,7 @@ <{if $use_categories && $image.cats_list}>

<{$smarty.const._CO_WGGALLERY_CATS}><{$image.cats_list}>

<{/if}> - <{if $use_tags && $image.tags}> + <{if $use_tags|default:false && $image.tags|default:false}>

<{$smarty.const._CO_WGGALLERY_TAGS}><{$image.tags}>

<{/if}> <{if isset($rating) && $rating > 0}> @@ -69,7 +69,7 @@ <{if $image.exif}>_YES<{else}>_NO<{/if}>

<{/if}> - <{if $image.com_show}> + <{if $image.com_show|default:false}>

<{$smarty.const._CO_WGGALLERY_COMMENTS}><{$image.com_count_text}>

<{/if}>
diff --git a/htdocs/themes/xswatch4/modules/wggallery/wggallery_upload.tpl b/htdocs/themes/xswatch4/modules/wggallery/wggallery_upload.tpl index ddf44f4f4..77e9a8515 100644 --- a/htdocs/themes/xswatch4/modules/wggallery/wggallery_upload.tpl +++ b/htdocs/themes/xswatch4/modules/wggallery/wggallery_upload.tpl @@ -102,7 +102,7 @@