<?php defined( '_JEXEC' ) or die(); ?>
<div class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php if ($this->params->def('show_page_title')) {
echo $this->params->get('page_title');
} else {
echo $this->album->name;
}
?>
</div>
<div class="contentpane<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td>
<ol>
<?php foreach($this->items as $item) : ?>
<li>
<a href="images/songs/<?php echo $item->mp3; ?>" ><?php echo $item->name; ?></a>
<?php if ($this->params->get('show_player_plugin')) {
print $item->plugin_code;
}
?>
</li>
<?php endforeach; ?>
</ol>
</td>
<?php if ($this->params->get('show_albumart_front')) { ?>
<?php if ($this->album->albumart_front == "") {
print "No front album art available";
} else { ?>
<div id="containalb" style="float:right;height:270px;width:265px;display:block;">
<img src="images/albumart/<?php echo $this->album->albumart_front; ?>" align="<?php echo $this->params->get('image_align'); ?>" style="width:200;height:200;" alt="<?php echo $this->album->name . ' ' . JText::_( 'Front Albumart' ); ?>" />
<?php
$wholetext = $this->album->description;
$strippedtext = $wholetext;
if(substr_count($wholetext, "iTMS") > 0 || substr_count($wholetext, "AMAZ") > 0){
$iTMSpos = strpos($wholetext, "iTMS");
$iTMSlink = substr($wholetext, $iTMSpos);
$strippedtext = str_replace($iTMSlink, "" , $wholetext);
$iTMSlink = str_replace("iTMS", "",$iTMSlink);
$AMAZpos = strpos($wholetext, "AMAZ");
$AMAZlink = substr($wholetext, $AMAZpos);
$strippedtext = str_replace($AMAZlink, "" , $strippedtext);
$AMAZlink = str_replace("AMAZ", "",$AMAZlink);
echo '<div id="musiclinks" style="float:right;width:265px;height:65px;"><a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/'.$iTMSlink.'"><img src="images/buy_itms.jpg" style="padding:1px;" /></a>'.
'<a target="_new" href="http://www.amazon.com/gp/'.$AMAZlink.'"><img src="images/buy_amaz.jpg" style="padding:1px;" /></a></div>';
}
?>
<?php } ?>
<?php } ?>
</div>
<div style="width:1px;height:50px;">
</div>
</tr>
<tr>
<td align="left">
<div style="display:block;float:left;position:relative;top:0;width:600px;height:100%"><?php
echo nl2br($strippedtext);
?></div>
</td>
<td align="right">
<?php if ($this->params->get('show_albumart_back')) { ?>
<?php if ($this->album->albumart_back == "") {
print "No back album art available";
} else { ?>
<img src="images/albumart/<?php echo $this->album->albumart_back; ?>" align="<?php echo $this->params->get('image_align'); ?>" hspace="6" height="200px" width="200px" alt="<?php echo $this->album->name . ' ' . JText::_( 'Back Albumart' ); ?>" />
<?php } ?>
<?php } ?>
</td>
</tr>
</tbody>
</table>
<br />
<input type="hidden" name="option" value="com_music" />
<input type="hidden" name="albumid" value="<?php echo $this->album->id;?>" />
<input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" />
<input type="hidden" name="filter_order_Dir" value="" />
</form>
</div>
.componentheading {font-size: 180%;line-height: 130%;font-weight: normal;padding: 0 0 0 5px;margin: 0 0 20px 0;}
Time to create page: 0.069 seconds