<?php 
/**
 * @version $Id: slideshow_description.php 38 2014-07-29 12:18:47Z szymon $
 * @package DJ-MediaTools
 * @copyright Copyright (C) 2012 DJ-Extensions.com LTD, All rights reserved.
 * @license http://www.gnu.org/licenses GNU/GPL
 * @author url: http://dj-extensions.com
 * @author email contact@dj-extensions.com
 * @developer Szymon Woronowski - szymon.woronowski@design-joomla.eu
 *
 * DJ-MediaTools is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DJ-MediaTools is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with DJ-MediaTools. If not, see <http://www.gnu.org/licenses/>.
 *
 */

// no direct access
defined('_JEXEC') or die ('Restricted access'); 

?>
				<?php if($params->get('show_title') || ($params->get('show_desc') && !empty($slide->description)) || ($params->get('show_readmore') && $slide->link)) { ?>
					<!-- Slide description area: START -->
					<div class="dj-slide-desc-in<?php echo ($params->get('show_desc')==2 ? ' showOnMouseOver' : ''); ?>">	
						<div class="dj-slide-desc-bg"></div>
						<div class="dj-slide-desc-text">
							<?php if(!empty($slide->extra)) { ?>
								<div class="dj-extra">
									<?php echo $slide->extra ?>
								</div>
							<?php } ?>
							
							<?php if($params->get('show_title')) { ?>
								<div class="dj-slide-title">
									<?php if($params->get('link_title') && $slide->link) { ?><a href="<?php echo $slide->link; ?>" target="<?php echo $slide->target; ?>"><?php } ?>
										<?php echo $slide->title; ?>
									<?php if($params->get('link_title') && $slide->link) { ?></a><?php } ?>
								</div>
							<?php } ?>
							
							<?php if($params->get('show_desc')) { ?>
								<div class="dj-slide-description">
								<?php if($params->get('link_desc') && $slide->link) { ?><a href="<?php echo $slide->link; ?>" target="<?php echo $slide->target; ?>"><?php } ?>
									<?php echo JHTML::_('content.prepare', $slide->description); ?>
								<?php if($params->get('link_desc') && $slide->link) { ?></a><?php } ?>
								</div>
							<?php } ?>
							
							<?php if($params->get('show_readmore') && $slide->link) { ?>
								<div style="clear: both"></div>
								<div class="dj-readmore-wrapper">
									<a href="<?php echo $slide->link . (isset($slide->video) && !empty($slide->video) ? ' dj-readmore':'" class="dj-readmore'); ?>" target="<?php echo $slide->target; ?>"><?php echo ($params->get('readmore_text',0) ? $params->get('readmore_text') : JText::_('COM_DJMEDIATOOLS_READMORE')); ?></a>
								</div>
							<?php } ?>
							<div style="clear: both"></div>
						</div>
					</div>
					<!-- Slide description area: END -->
				<?php } ?>