Skip to content

Commit

Permalink
2.0.8 - sidebar edit
Browse files Browse the repository at this point in the history
  • Loading branch information
georgejipa committed Sep 9, 2016
1 parent b895cca commit 25bee3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion views/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@
<ul>
<?php
foreach ($banners['resource'] as $item) {
printf('<li><a href="%s" target="_blank" title="%s"><img src="%s" alt="%s" /></a></li>', $item['link'] . WPMM_AUTHOR_UTM, $item['title'], $item['image'], $item['title']);
if ($item['utm']) {
$item['link'] = $item['link'] . WPMM_AUTHOR_UTM;
}

printf('<li><a href="%s" target="_blank" title="%s"><img src="%s" alt="%s" /></a></li>', $item['link'], $item['title'], $item['image'], $item['title']);
}
?>
</ul>
Expand Down

0 comments on commit 25bee3b

Please sign in to comment.