Skip to content

Commit

Permalink
PHP8 Smarty defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
mambax7 committed Aug 29, 2021
1 parent 223e412 commit 6270ae1
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion templates/publisher_footer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</table>
<{/if}>

<{if $rssfeed_link|default:false != ""}>
<{if $rssfeed_link|default:'' != ''}>
<div id="publisher_rpublisher_feed"><{$rssfeed_link|default:false}></div>
<{/if}>

Expand Down
2 changes: 1 addition & 1 deletion templates/publisher_header.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@
<{/if}>
<{/if}>

<{if $title_and_welcome|default:false && $lang_mainintro != ""}>
<{if $title_and_welcome|default:false && $lang_mainintro|default:'' != ''}>
<span><{$lang_mainintro}></span>
<{/if}>
2 changes: 1 addition & 1 deletion templates/publisher_rss.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<managingEditor><{$channel_editor}></managingEditor>
<webMaster><{$channel_webmaster}></webMaster>
<language><{$channel_language}></language>
<{if $image_url != ""}>
<{if $image_url|default:'' != ''}>
<image>
<title><{$channel_title}></title>
<url><{$image_url}></url>
Expand Down
2 changes: 1 addition & 1 deletion templates/publisher_submit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<{if !$element.hidden|default:false}>
<tr>
<td class="head" width="30%">
<{if $element.caption|default:false != ''}>
<{if $element.caption|default:false|default:'' != ''}>
<div class='xoops-form-element-caption<{if $element.required}>-required<{/if}>'>
<span class='caption-text'><{$element.caption}></span>
<{if $element.required}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<{/if}>
<{/if}>

<{if $title_and_welcome && $lang_mainintro != ""}>
<{if $title_and_welcome && $lang_mainintro|default:'' != ''}>
<div class="well">
<{$lang_mainintro}>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
alt="<{$smarty.const._CO_PUBLISHER_DELETEFILE}>"></a>
<{/if}>
<a href="<{$publisher_url}>/visit.php?fileid=<{$file.fileid}>" target="_blank">
<img src="<{$publisher_url}>/assets/images/links/file.png" title="<{$lang_download_file}>"
<img src="<{$publisher_url}>/assets/images/links/file.png" title="<{$lang_download_file|default:''}>"
alt="<{$smarty.const._MD_PUBLISHER_DOWNLOAD_FILE}>">&nbsp;<strong><{$file.name}></strong>
</a>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
alt="<{$smarty.const._CO_PUBLISHER_DELETEFILE}>"></a>
<{/if}>
<a href="<{$publisher_url}>/visit.php?fileid=<{$file.fileid}>" target="_blank">
<img src="<{$publisher_url}>/assets/images/links/file.png" title="<{$lang_download_file}>"
<img src="<{$publisher_url}>/assets/images/links/file.png" title="<{$lang_download_file|default:''}>"
alt="<{$smarty.const._MD_PUBLISHER_DOWNLOAD_FILE}>">&nbsp;<strong><{$file.name}></strong>
</a>

Expand Down
10 changes: 7 additions & 3 deletions templates_bootstrap/bootstrap4/publisher/publisher_footer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@
<td colspan="3" align="left">
<div style="text-align: center; padding: 3px; margin:3px;"> <{$commentsnav}> <{$lang_notice}></div>
<div style="margin:3px; padding: 3px;">
<!-- start comments loop --> <{if $comment_mode == "flat"}> <{include file="db:system_comments_flat.tpl"}> <{elseif $comment_mode == "thread"}> <{include file="db:system_comments_thread.tpl"}> <{elseif $comment_mode == "nest"}> <{include file="db:system_comments_nest.tpl"}> <{/if}>
<!-- start comments loop --> <{if $comment_mode|default:'' == "flat"}>
<{include file="db:system_comments_flat.tpl"}>
<{elseif $comment_mode|default:'' == "thread"}>
<{include file="db:system_comments_thread.tpl"}>
<{elseif $comment_mode|default:'' == "nest"}><{include file="db:system_comments_nest.tpl"}> <{/if}>
<!-- end comments loop -->
</div>
</td>
</tr>
</table><{/if}>

<{if $rssfeed_link|default:false != ""}>
<div id="publisher_rpublisher_feed"><{$rssfeed_link|default:false}></div><{/if}>
<{if $rssfeed_link|default:'' != ''}>
<div id="publisher_rpublisher_feed"><{$rssfeed_link|default:''}></div><{/if}>

<{include file='db:system_notification_select.tpl'}>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<{/if}>
<{/if}>

<{if $title_and_welcome|default:false && $lang_mainintro != ""}>
<{if $title_and_welcome|default:false && $lang_mainintro|default:'' != ''}>
<div class="well">
<{$lang_mainintro}>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
alt="<{$smarty.const._CO_PUBLISHER_DELETEFILE}>"></a>
<{/if}>
<a href="<{$publisher_url}>/visit.php?fileid=<{$file.fileid}>" target="_blank">
<img src="<{$publisher_url}>/assets/images/links/file.png" title="<{$lang_download_file}>"
<img src="<{$publisher_url}>/assets/images/links/file.png" title="<{$lang_download_file|default:''}>"
alt="<{$smarty.const._MD_PUBLISHER_DOWNLOAD_FILE}>">&nbsp;<strong><{$file.name}></strong>
</a>

Expand Down

0 comments on commit 6270ae1

Please sign in to comment.