Skip to content
This repository was archived by the owner on May 1, 2019. It is now read-only.

Commit 8af567e

Browse files
committed
Merge pull request #347 from ins0/fix/view
Fix: Changed escape to correct escape attr helper
2 parents bf76fa5 + 2efbe55 commit 8af567e

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed
Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
11
<div class="block">
22
<div class="row">
33
<div class="span4">
4-
<h4>
5-
New Developers
6-
</h4>
4+
<h4>New Developers</h4>
75
<hr>
86
</div>
97
</div>
10-
11-
<?php
12-
$count = 0;
13-
foreach ($this->users as $user) {
14-
if ($count % 4 == 0) {
15-
?>
8+
<?php $count = 0; ?>
9+
<?php foreach ($this->users as $user): ?>
10+
<?php if ($count % 4 == 0): ?>
1611
<div class="row-fluid" style="margin-bottom:10px;">
1712
<div class="span12">
18-
<?php } ?>
19-
<div class="span3">
20-
<a href="https://github.com/<?php echo $this->escapeHtml($user->getUserName()) ?>" data-delay="0" rel="tooltip" title="<?php echo $this->escapeHtml($user->getUserName()) ?>" class="thumbnail">
21-
<img src="<?php echo $user->getPhotoUrl() ?>" alt="<?php echo $this->escapeHtml($user->getUserName()) ?>">
22-
</a>
23-
</div>
24-
<?php if ($count % 4 == 3) { ?>
13+
<?php endif; ?>
14+
<div class="span3">
15+
<a href="https://github.com/<?php echo $this->escapeHtmlAttr($user->getUserName()); ?>" data-delay="0" rel="tooltip" title="<?php echo $this->escapeHtmlAttr($user->getUserName()); ?>" class="thumbnail">
16+
<img src="<?php echo $this->escapeHtmlAttr($user->getPhotoUrl()); ?>" alt="<?php echo $this->escapeHtmlAttr($user->getUserName()); ?>">
17+
</a>
18+
</div>
19+
<?php if ($count++ % 4 == 3): ?>
2520
</div>
2621
</div>
27-
<?php
28-
}
29-
$count++;
30-
}
31-
?>
32-
22+
<?php endif; ?>
23+
<?php endforeach; ?>
3324
</div>

0 commit comments

Comments
 (0)