Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Use implode() instead of foreach (…) echo
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed May 19, 2014
1 parent dc61976 commit 4d46486
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion system/modules/calendar/templates/modules/mod_event.html5
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?php if ($this->allowComments && ($this->comments || !$this->requireLogin)): ?>
<div class="ce_comments block">
<<?php echo $this->hlc; ?>><?php echo $this->addComment; ?></<?php echo $this->hlc; ?>>
<?php foreach ($this->comments as $comment) echo $comment; ?>
<?php echo implode('', $this->comments); ?>
<?php echo $this->pagination; ?>
<?php include $this->getTemplate('mod_comment_form', 'html5'); ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion system/modules/calendar/templates/modules/mod_event.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?php if ($this->allowComments && ($this->comments || !$this->requireLogin)): ?>
<div class="ce_comments block">
<<?php echo $this->hlc; ?>><?php echo $this->addComment; ?></<?php echo $this->hlc; ?>>
<?php foreach ($this->comments as $comment) echo $comment; ?>
<?php echo implode('', $this->comments); ?>
<?php echo $this->pagination; ?>
<?php include $this->getTemplate('mod_comment_form', 'xhtml'); ?>
</div>
Expand Down
14 changes: 7 additions & 7 deletions system/modules/core/templates/member/member_grouped.html5
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->personal as $field) echo $field; ?>
<?php echo implode('', $this->personal); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -30,7 +30,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->address as $field) echo $field; ?>
<?php echo implode('', $this->address); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -43,7 +43,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->contact as $field) echo $field; ?>
<?php echo implode('', $this->contact); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -56,7 +56,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->login as $field) echo $field; ?>
<?php echo implode('', $this->login); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -69,7 +69,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->profile as $field) echo $field; ?>
<?php echo implode('', $this->profile); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -82,7 +82,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->newsletter as $field) echo $field; ?>
<?php echo implode('', $this->newsletter); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -95,7 +95,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->helpdesk as $field) echo $field; ?>
<?php echo implode('', $this->helpdesk); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand Down
14 changes: 7 additions & 7 deletions system/modules/core/templates/member/member_grouped.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->personal as $field) echo $field; ?>
<?php echo implode('', $this->personal); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -30,7 +30,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->address as $field) echo $field; ?>
<?php echo implode('', $this->address); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -43,7 +43,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->contact as $field) echo $field; ?>
<?php echo implode('', $this->contact); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -56,7 +56,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->login as $field) echo $field; ?>
<?php echo implode('', $this->login); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -69,7 +69,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->profile as $field) echo $field; ?>
<?php echo implode('', $this->profile); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -82,7 +82,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->newsletter as $field) echo $field; ?>
<?php echo implode('', $this->newsletter); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand All @@ -95,7 +95,7 @@
<?php if (!$this->tableless): ?>
<table>
<?php endif; ?>
<?php foreach ($this->helpdesk as $field) echo $field; ?>
<?php echo implode('', $this->helpdesk); ?>
<?php if (!$this->tableless): ?>
</table>
<?php endif; ?>
Expand Down
2 changes: 1 addition & 1 deletion system/modules/faq/templates/modules/mod_faqreader.html5
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<?php if ($this->allowComments && ($this->comments || !$this->requireLogin)): ?>
<div class="ce_comments block">
<<?php echo $this->hlc; ?>><?php echo $this->addComment; ?></<?php echo $this->hlc; ?>>
<?php foreach ($this->comments as $comment) echo $comment; ?>
<?php echo implode('', $this->comments); ?>
<?php echo $this->pagination; ?>
<?php include $this->getTemplate('mod_comment_form', 'html5'); ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion system/modules/faq/templates/modules/mod_faqreader.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
<?php if ($this->allowComments && ($this->comments || !$this->requireLogin)): ?>
<div class="ce_comments block">
<<?php echo $this->hlc; ?>><?php echo $this->addComment; ?></<?php echo $this->hlc; ?>>
<?php foreach ($this->comments as $comment) echo $comment; ?>
<?php echo implode('', $this->comments); ?>
<?php echo $this->pagination; ?>
<?php include $this->getTemplate('mod_comment_form', 'xhtml'); ?>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<?php if (empty($this->articles)): ?>
<p class="empty"><?php echo $this->empty; ?></p>
<?php else: ?>
<?php foreach ($this->articles as $article) echo $article; ?>
<?php echo implode('', $this->articles); ?>
<?php echo $this->pagination; ?>
<?php endif; ?>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<?php if (empty($this->articles)): ?>
<p class="empty"><?php echo $this->empty; ?></p>
<?php else: ?>
<?php foreach ($this->articles as $article) echo $article; ?>
<?php echo implode('', $this->articles); ?>
<?php echo $this->pagination; ?>
<?php endif; ?>

Expand Down
2 changes: 1 addition & 1 deletion system/modules/news/templates/modules/mod_newslist.html5
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<?php if (empty($this->articles)): ?>
<p class="empty"><?php echo $this->empty; ?></p>
<?php else: ?>
<?php foreach ($this->articles as $article) echo $article; ?>
<?php echo implode('', $this->articles); ?>
<?php echo $this->pagination; ?>
<?php endif; ?>

Expand Down
2 changes: 1 addition & 1 deletion system/modules/news/templates/modules/mod_newslist.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<?php if (empty($this->articles)): ?>
<p class="empty"><?php echo $this->empty; ?></p>
<?php else: ?>
<?php foreach ($this->articles as $article) echo $article; ?>
<?php echo implode('', $this->articles); ?>
<?php echo $this->pagination; ?>
<?php endif; ?>

Expand Down
2 changes: 1 addition & 1 deletion system/modules/news/templates/modules/mod_newsreader.html5
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?php if ($this->allowComments && ($this->comments || !$this->requireLogin)): ?>
<div class="ce_comments block">
<<?php echo $this->hlc; ?>><?php echo $this->addComment; ?></<?php echo $this->hlc; ?>>
<?php foreach ($this->comments as $comment) echo $comment; ?>
<?php echo implode('', $this->comments); ?>
<?php echo $this->pagination; ?>
<?php include $this->getTemplate('mod_comment_form', 'html5'); ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion system/modules/news/templates/modules/mod_newsreader.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<?php if ($this->allowComments && ($this->comments || !$this->requireLogin)): ?>
<div class="ce_comments block">
<<?php echo $this->hlc; ?>><?php echo $this->addComment; ?></<?php echo $this->hlc; ?>>
<?php foreach ($this->comments as $comment) echo $comment; ?>
<?php echo implode('', $this->comments); ?>
<?php echo $this->pagination; ?>
<?php include $this->getTemplate('mod_comment_form', 'xhtml'); ?>
</div>
Expand Down

0 comments on commit 4d46486

Please sign in to comment.