Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
Fixes #4172
  • Loading branch information
wilsonge authored and David Hurley committed Aug 25, 2014
1 parent 6859c12 commit 1cbf53f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions modules/mod_banners/tmpl/default.php
Expand Up @@ -19,7 +19,7 @@

<?php foreach ($list as $item) : ?>
<div class="banneritem">
<?php $link = JRoute::_('index.php?option=com_banners&task=click&id='. $item->id);?>
<?php $link = JRoute::_('index.php?option=com_banners&task=click&id=' . $item->id);?>
<?php if ($item->type == 1) :?>
<?php // Text based banners ?>
<?php echo str_replace(array('{CLICKURL}', '{NAME}'), array($link, $item->name), $item->custombannercode);?>
Expand All @@ -43,12 +43,12 @@
<img
src="<?php echo $baseurl . $imageurl;?>"
alt="<?php echo $alt;?>"
<?php if (!empty($width)) echo 'width ="'. $width.'"';?>
<?php if (!empty($height)) echo 'height ="'. $height.'"';?>
<?php if (!empty($width)) echo 'width ="' . $width . '"';?>
<?php if (!empty($height)) echo 'height ="' . $height . '"';?>
/>
</a>
<?php elseif ($target == 2):?>
<?php // open in a popup window?>
<?php // Open in a popup window?>
<a
href="<?php echo $link;?>" onclick="window.open(this.href, '',
'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=780,height=550');
Expand All @@ -57,12 +57,12 @@
<img
src="<?php echo $baseurl . $imageurl;?>"
alt="<?php echo $alt;?>"
<?php if (!empty($width)) echo 'width ="'. $width.'"';?>
<?php if (!empty($height)) echo 'height ="'. $height.'"';?>
<?php if (!empty($width)) echo 'width ="' . $width . '"';?>
<?php if (!empty($height)) echo 'height ="' . $height . '"';?>
/>
</a>
<?php else :?>
<?php // open in parent window?>
<?php // Open in parent window?>
<a
href="<?php echo $link;?>"
title="<?php echo htmlspecialchars($item->name, ENT_QUOTES, 'UTF-8');?>">
Expand All @@ -87,17 +87,17 @@
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
<?php if (!empty($width)) echo 'width ="'. $width.'"';?>
<?php if (!empty($height)) echo 'height ="'. $height.'"';?>
<?php if (!empty($width)) echo 'width ="' . $width . '"';?>
<?php if (!empty($height)) echo 'height ="' . $height . '"';?>
>
<param name="movie" value="<?php echo $imageurl;?>" />
<embed
src="<?php echo $imageurl;?>"
loop="false"
pluginspage="http://www.macromedia.com/go/get/flashplayer"
type="application/x-shockwave-flash"
<?php if (!empty($width)) echo 'width ="'. $width.'"';?>
<?php if (!empty($height)) echo 'height ="'. $height.'"';?>
<?php if (!empty($width)) echo 'width ="' . $width . '"';?>
<?php if (!empty($height)) echo 'height ="' . $height . '"';?>
/>
</object>
<?php endif;?>
Expand Down

0 comments on commit 1cbf53f

Please sign in to comment.