Кастомизация модуля joomla
Есть модуль справа. Вместо цены, нужно вывести описание. Какие строки нужно добавить в код модуля?
/**
* @package SP LMS
* @subpackage mod_splmscourses
*
* @copyright Copyright (C) 2010 - 2015 JoomShaper. All rights reserved.
* @license GNU General Public License version 2 or later.
*/
defined('_JEXEC') or die;
jimport( 'joomla.filesystem.file' );
//Joomla Component Helper & Get LMS Params
jimport('joomla.application.component.helper');
$splmsparams = JComponentHelper::getParams('com_splms');
//Get Currency
$currency = explode(':', $splmsparams->get('currency', 'USD:));
$currency = $currency[1];
// Get image thumb
$thumb_size = strtolower($splmsparams->get('course_thumbnail_small', '100X60'));
?>
price = ($item->price == 0) ? JText::_('MOD_SPLMS_COURSES_FREE') : JText::_($currency) . $item->price; ?>
$filename = basename($item->image);
$path = JPATH_BASE .'/'. dirname($item->image) . '/thumbs/' . JFile::stripExt($filename) . '_' . $thumb_size . '.' . JFile::getExt($filename);
$src = JURI::base(true) . '/' . dirname($item->image) . '/thumbs/' . JFile::stripExt($filename) . '_' . $thumb_size . '.' . JFile::getExt($filename);
if(JFile::exists($path)) {
$thumb = $src;
} else {
$thumb = $item->image;
}
?>
title; ?>
price; ?>