Skip to content

Commit 5b35f2e

Browse files
authored
Merge pull request #113 from mambax7/master
PHP8 template default
2 parents 781c287 + c9a470a commit 5b35f2e

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

EXTRA/themes/xbootstrap/modules/newbb/newbb_index.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</a>
2424

2525
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=deleted#admin" title="<{$smarty.const._MD_NEWBB_TYPE_DELETED}>" class="btn btn-xs btn-danger">
26-
<{if $delete_topic}><span class="badge"><{$delete_topic}></span><{/if}> <{$smarty.const._MD_NEWBB_TYPE_DELETED}>
26+
<{if $delete_topic|default:''}><span class="badge"><{$delete_topic}></span><{/if}> <{$smarty.const._MD_NEWBB_TYPE_DELETED}>
2727
</a>
2828
</div>
2929
<{/if}>
@@ -42,10 +42,10 @@
4242
</a>
4343

4444
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=deleted#admin" title="<{$smarty.const._MD_NEWBB_TYPE_DELETED}>" class="btn btn-xs btn-primary">
45-
<{if $delete_post}>(<span style="color:#ff0000;"><{$delete_post}></span>)<{/if}> <{$smarty.const._MD_NEWBB_TYPE_DELETED}>
45+
<{if $delete_post|default:''}>(<span style="color:#ff0000;"><{$delete_post}></span>)<{/if}> <{$smarty.const._MD_NEWBB_TYPE_DELETED}>
4646
</a>
4747

48-
<{if $report_post}>
48+
<{if $report_post|default:''}>
4949
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/admin_report.php" title="<{$report_post}>" class="btn btn-xs btn-primary">
5050
<{$report_post}>
5151
</a>
@@ -281,7 +281,7 @@
281281
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php" title="<{$smarty.const._MD_NEWBB_ALLPOSTS}>">
282282
<{$stats[0].post.total}>
283283
</a></li>
284-
<{if $stats[0].digest.total}>
284+
<{if $stats[0].digest.total|default:''}>
285285
<li><{$smarty.const._MD_NEWBB_TOTALDIGESTSC}>
286286
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=digest" title="<{$smarty.const._MD_NEWBB_TOTALDIGESTSC}>">
287287
<{$stats[0].digest.total}>

EXTRA/themes/xbootstrap/modules/newbb/newbb_thread.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<{if $topic_post.poster.uid|default:'' gt -1}>
1010
<{if $topic_post.poster.uid != 0}>
1111
<{if $topic_post.poster.avatar != "blank.gif"}>
12-
<img src="<{$xoops_upload_url}>/<{$topic_post.poster.avatar}>" alt="<{$topic_post.poster.name}>" class="img-circle img-responsive img-thumbnail">
12+
<img src="<{$xoops_upload_url}>/<{$topic_post.poster.avatar}>" alt="<{$topic_post.poster.name}>" class="img-circle img-thumbnail">
1313
<{else}>
14-
<img src="<{$xoops_imageurl}>images/newbb-noavatar.png" alt="<{$topic_post.poster.name}>" class="img-circle img-responsive img-thumbnail">
14+
<img src="<{$xoops_imageurl}>images/newbb-noavatar.png" alt="<{$topic_post.poster.name}>" class="img-circle img-thumbnail">
1515
<{/if}>
1616

1717
<{if $topic_post.poster.rank.title !=""}>
@@ -49,7 +49,7 @@
4949
<{/if}>
5050
</li>
5151

52-
<{if $topic_post.poster.digests gt 0}>
52+
<{if $topic_post.poster.digests|default:'' gt 0}>
5353
<li>
5454
<{$smarty.const._MD_NEWBB_DIGESTS}>: <{$topic_post.poster.digests}>
5555
</li>

templates/newbb_index.tpl

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@
2020
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=pending#admin" target="_self" title="<{$smarty.const._MD_NEWBB_TYPE_PENDING}>"><{if $wait_new_topic|default:''}>(
2121
<span style="color: #ff0000; "><b><{$wait_new_topic}></b></span>
2222
) <{/if}><{$smarty.const._MD_NEWBB_TYPE_PENDING}></a> |
23-
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=deleted#admin" target="_self" title="<{$smarty.const._MD_NEWBB_TYPE_DELETED}>"><{if $delete_topic}>(
23+
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=deleted#admin" target="_self" title="<{$smarty.const._MD_NEWBB_TYPE_DELETED}>">
24+
<{if $delete_topic|default:''}>(
2425
<span style="color: #ff0000; "><b><{$delete_topic}></b></span>
2526
) <{/if}><{$smarty.const._MD_NEWBB_TYPE_DELETED}></a><br>
2627
<{$smarty.const._MD_NEWBB_POST2}>:
2728
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=active#admin" target="_self" title="<{$smarty.const._MD_NEWBB_TYPE_ADMIN}>"><{$smarty.const._MD_NEWBB_TYPE_ADMIN}></a> |
28-
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=pending#admin" target="_self" title="<{$smarty.const._MD_NEWBB_TYPE_PENDING}>"><{if $wait_new_post}>(
29+
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=pending#admin" target="_self" title="<{$smarty.const._MD_NEWBB_TYPE_PENDING}>"><{if $wait_new_post|default:''}>(
2930
<span style="color: #ff0000; "><b><{$wait_new_post}></b></span>
3031
) <{/if}><{$smarty.const._MD_NEWBB_TYPE_PENDING}></a> |
31-
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=deleted#admin" target="_self" title="<{$smarty.const._MD_NEWBB_TYPE_DELETED}>"><{if $delete_post}>(
32+
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php?status=deleted#admin" target="_self" title="<{$smarty.const._MD_NEWBB_TYPE_DELETED}>"><{if $delete_post|default:''}>(
3233
<span style="color: #ff0000; "><b><{$delete_post}></b></span>
3334
) <{/if}><{$smarty.const._MD_NEWBB_TYPE_DELETED}></a>
3435
</div>
3536
<div class="forum_stats_right">
36-
<{if $report_post}><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/admin_report.php"><{$report_post}></a><{/if}>
37+
<{if $report_post|default:''}><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/admin_report.php"><{$report_post}></a><{/if}>
3738
<br><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/moderate.php" target="_self" title="<{$smarty.const._MD_NEWBB_TYPE_SUSPEND}>"><{$smarty.const._MD_NEWBB_TYPE_SUSPEND}></a> |
3839
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/admin/index.php" target="_self" title="<{$smarty.const._MD_NEWBB_ADMINCP}>"><{$smarty.const._MD_NEWBB_ADMINCP}></a>
3940
</div>
@@ -133,7 +134,7 @@
133134
<{$forum.forum_lastpost_time}> <{$smarty.const._MD_NEWBB_BY}> <{$forum.forum_lastpost_user}>
134135
<br>
135136
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?topic_id=<{$forum.forum_lastpost_topicid}>&amp;post_id=<{$forum.forum_lastpost_id}>#forumpost<{$forum.forum_lastpost_id}>">
136-
<{$forum.forum_lastpost_subject}>&nbsp;&nbsp;
137+
<{$forum.forum_lastpost_subject}>&nbsp;&nbsp;
137138
<{* irmtfan remove icon_path *}>
138139
<{$forum.forum_lastpost_icon}>
139140
</a>
@@ -187,7 +188,7 @@
187188
<{if $subforum.forum_lastpost_subject|default:''}>
188189
<{$subforum.forum_lastpost_time}> <{$smarty.const._MD_NEWBB_BY}> <{$subforum.forum_lastpost_user}>
189190
<br>
190-
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?topic_id=<{$forum.forum_lastpost_topicid}>&amp;post_id=<{$subforum.forum_lastpost_id}>#forumpost<{$forum.forum_lastpost_id}>">
191+
<a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewtopic.php?topic_id=<{$forum.forum_lastpost_topicid}>&amp;post_id=<{$subforum.forum_lastpost_id}>#forumpost<{$forum.forum_lastpost_id}>">
191192
<{$subforum.forum_lastpost_subject}>&nbsp;&nbsp;
192193
<{* irmtfan remove icon_path *}>
193194
<{$subforum.forum_lastpost_icon}>
@@ -366,7 +367,7 @@
366367
<{$smarty.const._MD_NEWBB_TOTALTOPICSC}>
367368
<strong><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php" title="<{$smarty.const._MD_NEWBB_ALL}>"><{$stats[0].topic.total}></a></strong>
368369
| <{$smarty.const._MD_NEWBB_TOTALPOSTSC}><strong><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/viewpost.php" title="<{$smarty.const._MD_NEWBB_ALLPOSTS}>"><{$stats[0].post.total}></a></strong>
369-
<{if $stats[0].digest.total}>
370+
<{if $stats[0].digest.total|default:''}>
370371
| <{$smarty.const._MD_NEWBB_TOTALDIGESTSC}><strong><a href="<{$xoops_url}>/modules/<{$xoops_dirname}>/list.topic.php?status=digest" title="<{$smarty.const._MD_NEWBB_TOTALDIGESTSC}>"><{$stats[0].digest.total}></a></strong>
371372
<{/if}>
372373
<{if $userstats}>

0 commit comments

Comments
 (0)