* @date $Date: 2013-09-08 14:20:12 +0200 (So, 08 Sep 2013) $ * @revision $Revision: 829 $ * @author $Author: toto $ * @headurl $HeadURL: http://dev.teglo.info/svn/playjoom/components/com_playjoom/views/tracks/tmpl/default_body.php $ */ // No direct access to this file defined('_JEXEC') or die('Restricted Access'); JPluginHelper::importPlugin('playjoom'); $counter = null; $coverwidth = $this->params->get('maxsize_cover'); $coverstate = $this->params->get('show_cover'); $dispatcher = JDispatcher::getInstance(); foreach ($this->items as $i => $item) { if (JFile::exists($item->pathatlocal . DIRECTORY_SEPARATOR . $item->file)) { if ($coverstate == 1) { $coverthumb = PlayJoomHelper::getCoverThumb($item->album, $item->artist, JPATH_BASE . DS . 'tmp' . DS . 'tmp_img_albumtumb' . $i, $coverwidth, $i) . '<br />'; } else { $coverthumb = null; } //Check for albumname as sampler if (PlayJoomHelper::checkForSampler($item->album, $item->artist)) { $albumname = JText::_('COM_PLAYJOOM_ALBUM_SAMPLER'); } else { $albumname = $item->album; } //Create strings $albumsting = base64_encode($item->album); $genresting = base64_encode($item->category_title); $artiststing = base64_encode($item->artist); //Create links $albumlink = 'index.php?option=com_playjoom&view=album&album=' . $albumsting . '&artist=' . $artiststing . '&Itemid=' . JRequest::getVar('Itemid');
echo '<div class="tab-pane active" id="general">'; echo '<div class="row-fluid">'; echo '<div class="span90">'; foreach ($this->form->getFieldset('details') as $field) { echo '<div class="control-group">'; echo '<div class="control-label">' . $field->label . '</div>'; echo '<div class="controls">' . $field->input . '</div>'; echo '</div>'; } echo '</div>'; echo '</div>'; echo '</div>'; echo '<div class="tab-pane" id="cover_img">'; echo '<div class="row-fluid">'; echo '<div class="span90">'; echo PlayJoomHelper::getCoverThumb($this->item, '../tmp/admin_tmp_img_albumtumb', 550); echo '</div>'; echo '</div>'; echo '</div>'; echo '</div>'; echo '</div>'; //<!-- End Tabs --> echo '</div>'; // End Content --> echo '</div>'; echo '<input type="hidden" name="task" value="playjoom.edit" />'; echo JHtml::_('form.token'); echo '</form>'; } else { echo '<form action="' . JRoute::_('index.php?option=com_playjoom&layout=edit&id=' . (int) $this->item->id) . '" method="post" name="adminForm" id="cover-form" class="form-validate form-horizontal" enctype="multipart/form-data">'; echo '<fieldset>';
* * @PlayJoom Component * @copyright Copyright (C) 2010-2012 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'); //Get User Objects $user = JFactory::getUser(); $canDo = PlayJoomHelper::getActions(); foreach ($this->items as $i => $item) { $coverthumb = PlayJoomHelper::getCoverThumb($item, '../tmp/admin_tmp_img_albumtumb' . $i, 100); echo '<tr class="row' . $i % 2 . '">'; echo '<td>' . $item->id . '</td>'; echo '<td>' . JHtml::_('grid.id', $i, $item->id) . '</td>'; echo '<td>'; if ($canDo->get('core.edit') || JAccess::check($user->get('id'), 'core.admin') == 1) { echo '<a href="' . JRoute::_('index.php?option=com_playjoom&task=cover.edit&id=' . $item->id) . '">'; echo $item->album; echo '</a>'; } else { echo $item->album; } echo '</td>'; echo '<td>' . $item->artist . '</td>'; echo '<td>' . $coverthumb . '</td>'; echo '</tr>';