* @copyright Copyright (C) 2010-2013 by www.teglo.info * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL * @date $Date$ * @revision $Revision$ * @author $Author$ * @headurl $HeadURL$ */ // No direct access to this file defined('_JEXEC') or die('Restricted Access'); //Load JavaScripts for light box JHtml::_('behavior.modal'); //Load PlayJoom Slider JLoader::import('helpers.pjslider', JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_playjoom'); $artist = base64_decode(JRequest::getVar('artist')); $artist_infos = PlayJoomModelArtist::getArtistInfos($artist); $artist_count = PlayJoomModelArtist::getArtistCount($artist); $number_of_albums = PlayJoomArtistHelper::getOptions('album', base64_decode(JRequest::getVar('artist'))); if ($artist_count->counter == 1 && $artist_infos->infotxt != '' || $artist_count->counter == 1 && $artist_infos->members != '' || $artist_count->counter == 1 && $artist_infos->formation != '0000-00-00') { $artist_content = '<div class="infotxt">' . $artist_infos->infotxt . '</div>' . '<ul class="infolist">'; if ($artist_infos->members != '') { $artist_content .= '<li>' . JText::_('COM_PLAYJOOM_ALBUM_MEMBERS') . ': ' . $artist_infos->members . '</li>'; } if ($artist_infos->formation != '0000-00-00') { $artist_content .= '<li>' . JText::_('COM_PLAYJOOM_ALBUM_FOUNDED') . ': ' . $artist_infos->formation . '</li>'; } $artist_content .= '</ul>'; echo '<div class="trackbox">'; echo '<h3 class="subheader">' . $artist . ' | ' . $this->pagination->total . ' Tracks</h3>'; echo JHtml::_('PlayJoomSliders.start'); echo JHtml::_('PlayJoomSliders.panel', JText::_('COM_PLAYJOOM_ALBUM_MORE_INFO'), 'more'); echo $artist_content;
echo '</ul>'; $results = $dispatcher->trigger('onInAlbumbox', array(&$items, &$this->params, 'artist')); echo trim(implode("\n", $results)); //echo $item_onInAlbumbox; echo '</div>'; echo '</section>'; //Trackfilter tabs foreach ($this->TrackFilter as $i => $filteritem) { //Get filter items $this->filteritems = PlayJoomModelArtist::getFilteritems($filteritem->id); if (count($this->filteritems) > 0) { echo '<section>'; echo '<p class="title" data-section-title><a href="#panel' . ($i + 1) . '">' . $filteritem->title . ' (' . count($this->filteritems) . ')</a></p>'; echo '<div class="content" data-section-content>'; //Get filter items $this->filteritems = PlayJoomModelArtist::getFilteritems($filteritem->id); if (count($this->filteritems) > 0) { echo '<div class="content">'; echo '<ul class="list_of_albums">'; foreach ($this->filteritems as $i => $item) { $albumsting = base64_encode($item->album); $artiststing = base64_encode($item->artist); $albumlink = 'index.php?option=com_playjoom&view=album&album=' . $albumsting . '&artist=' . $artiststing . '&Itemid=' . JRequest::getVar('Itemid') . '&cat=' . base64_encode($item->category_title) . '&catid=' . $item->catid; //Get Album thumbnail if ($this->params->get(JRequest::getVar('view') . '_show_cover', 1) == 1) { $cover = new PlayJoomHelperCover(); $coverthumb = $cover->getCoverHTMLTag($item, $SamplerCheck); } echo '<li class="genre_item"><a href="' . $albumlink . '" title="Continue to the album view">' . $coverthumb . $item->album . '</a> (' . $item->year . ')</li>'; } echo '</ul>';