403Webshell
Server IP : 46.105.57.169  /  Your IP : 216.73.217.35
Web Server : Apache
System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaumee ( 152031)
PHP Version : 8.5.7
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaumee/123click/assets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaumee/123click/assets/mod_spsimpleportfolio.tar
helper.php000060400000011016150750505540006535 0ustar00<?php
/**
 * @package     SP Simple Portfolio
 * @subpackage  mod_spsimpleportfolio
 *
 * @copyright   Copyright (C) 2010 - 2018 JoomShaper. All rights reserved.
 * @license     GNU General Public License version 2 or later.
 */

defined('_JEXEC') or die;

class ModSpsimpleportfolioHelper {

	public static function getItems($params) {

		$db = JFactory::getDbo();
		$query = $db->getQuery(true);

		$query->select('a.*, a.id AS spsimpleportfolio_item_id , a.tagids AS spsimpleportfolio_tag_id, a.created AS created_on')
		->from($db->quoteName('#__spsimpleportfolio_items', 'a'))
		->where($db->quoteName('a.published') . ' = 1');
		//has category
		if ($params->get('category_id') != '') {
			$query->where($db->qn('a.catid')." = ".$db->quote( $params->get('category_id') ));
		}
		$query->where($db->quoteName('a.access')." IN (" . implode( ',', JFactory::getUser()->getAuthorisedViewLevels() ) . ")")
		->order($db->quoteName('a.ordering') . ' ASC')
		->setLimit($params->get('limit', 6));

		$db->setQuery($query);

		$items = $db->loadObjectList();

		// Items Model
		jimport('joomla.application.component.model');
		JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_spsimpleportfolio/models');
		$itemsModel = JModelLegacy::getInstance('Items', 'SpsimpleportfolioModel');

		$i = 0;
		foreach ($items as $key => & $item) {
			$tags = $itemsModel->getItemTags($item->tagids);
			$newtags = array();
			$filter = '';
			$groups = array();

			foreach ($tags as $tag) {
				$newtags[] = $tag->title;
				$filter .= ' ' . $tag->alias;
				$groups[] .= '"' . $tag->alias . '"';
			}

			$item->groups = implode(',', $groups);
			$item->tags = $newtags;

			// Sizes
			$square 	= strtolower($params->get('square', '600x600'));
			$tower 		= strtolower($params->get('tower', '600X800'));
			$rectangle 	= strtolower($params->get('rectangle', '600x400'));
			$tower 		= strtolower($params->get('tower', '600x800'));
			$sizes 		= array(
				$rectangle,
				$tower,
				$square,
				$tower,
				$rectangle,
				$square,
				$square,
				$rectangle,
				$tower,
				$square,
				$tower,
				$rectangle
			);

			$thumb_type = $params->get('thumbnail_type', 'masonry');	
			if($thumb_type == 'masonry') {
				$item->thumb = JURI::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . JFile::stripExt(JFile::getName($item->image)) . '_' . $sizes[$i] . '.' . JFile::getExt($item->image);
			} else if($thumb_type == 'rectangular') {
				$item->thumb = JURI::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . JFile::stripExt(JFile::getName($item->image)) . '_'. $rectangle .'.' . JFile::getExt($item->image);
			} else if($thumb_type == 'tower') {
				$item->thumb = JURI::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . JFile::stripExt(JFile::getName($item->image)) . '_'. $tower .'.' . JFile::getExt($item->image);
			} else {
				$item->thumb = JURI::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . JFile::stripExt(JFile::getName($item->image)) . '_'. $square .'.' . JFile::getExt($item->image);
			}

			// tower

			$popup_image = $params->get('popup_image', 'default');
			
			if($popup_image == 'quare') {
				$item->popup_img_url = JURI::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . JFile::stripExt(JFile::getName($item->image)) . '_'. $square .'.' . JFile::getExt($item->image);
			} else if($popup_image == 'rectangle') {
				$item->popup_img_url = JURI::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . JFile::stripExt(JFile::getName($item->image)) . '_'. $rectangle .'.' . JFile::getExt($item->image);
			} else if($popup_image == 'tower') {
				$item->popup_img_url = JURI::base(true) . '/images/spsimpleportfolio/' . $item->alias . '/' . JFile::stripExt(JFile::getName($item->image)) . '_'. $tower .'.' . JFile::getExt($item->image);
			} else {
				$item->popup_img_url = JURI::base() . $item->image;
			}

			$item->url = JRoute::_('index.php?option=com_spsimpleportfolio&view=item&id='. $item->id . ':' . $item->alias . self::getItemid());

			$i++;
			if($i==11) {
				$i = 0;
			}
		}

		return $items;
	}

	public static function getItemid() {
		$db = JFactory::getDbo();

		$query = $db->getQuery(true);
		$query->select($db->quoteName(array('id')));
		$query->from($db->quoteName('#__menu'));
		$query->where($db->quoteName('link') . ' LIKE '. $db->quote('%option=com_spsimpleportfolio&view=items%'));
		$query->where($db->quoteName('published') . ' = '. $db->quote('1'));
		$db->setQuery($query);
		$result = $db->loadResult();

		if($result) {
			return '&Itemid=' . $result;
		}

		return;
	}

}
tmpl/default.php000060400000007407150750505540007667 0ustar00<?php
/**
 * @package     SP Simple Portfolio
 * @subpackage  mod_spsimpleportfolio
 *
 * @copyright   Copyright (C) 2010 - 2020 JoomShaper. All rights reserved.
 * @license     GNU General Public License version 2 or later.
 */

defined('_JEXEC') or die;
jimport( 'joomla.filesystem.file' );
$layout_type = $params->get('layout_type', 'default');
?>
<div id="mod-sp-simpleportfolio" class="sp-simpleportfolio sp-simpleportfolio-view-items layout-<?php echo str_replace('_', '-', $layout_type); ?> <?php echo $moduleclass_sfx; ?>">
	<?php if($params->get('show_filter', 1)) { ?>
		<div class="sp-simpleportfolio-filter">
			<ul>
				<li class="active" data-group="all"><a href="#"><?php echo JText::_('MOD_SPSIMPLEPORTFOLIO_SHOW_ALL'); ?></a></li>
				<?php foreach ($tagList as $filter) { ?>
						<li data-group="<?php echo $filter->alias; ?>"><a href="#"><?php echo $filter->title; ?></a></li>
				<?php } ?>
			</ul>
		</div>
	<?php } ?>

	<?php
		//Videos
		foreach ($items as $item) {
			if($item->video) {
				$video = parse_url($item->video);

				switch($video['host']) {
					case 'youtu.be':
					$video_id 	= trim($video['path'],'/');
					$video_src 	= '//www.youtube.com/embed/' . $video_id;
					break;

					case 'www.youtube.com':
					case 'youtube.com':
					parse_str($video['query'], $query);
					$video_id 	= $query['v'];
					$video_src 	= '//www.youtube.com/embed/' . $video_id;
					break;

					case 'vimeo.com':
					case 'www.vimeo.com':
					$video_id 	= trim($video['path'],'/');
					$video_src 	= "//player.vimeo.com/video/" . $video_id;
				}
				echo '<iframe class="sp-simpleportfolio-lightbox" src="'. $video_src .'" width="500" height="281" id="sp-simpleportfolio-video'.$item->spsimpleportfolio_item_id.'" style="border:none;" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
			}
		}
	?>

	<div class="sp-simpleportfolio-items sp-simpleportfolio-columns-<?php echo $params->get('columns', 3); ?>">
		<?php foreach ($items as $item) { ?>
			<div class="sp-simpleportfolio-item" data-groups='[<?php echo $item->groups; ?>]'>
				<div class="sp-simpleportfolio-overlay-wrapper clearfix">
					<?php if($item->video) { ?>
						<span class="sp-simpleportfolio-icon-video"></span>
					<?php } ?>

					<img class="sp-simpleportfolio-img" src="<?php echo $item->thumb; ?>" alt="<?php echo $item->title; ?>">

					<div class="sp-simpleportfolio-overlay">
						<div class="sp-vertical-middle">
							<div>
								<div class="sp-simpleportfolio-btns">
									<?php if( $item->video ) { ?>
										<a class="btn-zoom" href="#" data-featherlight="#sp-simpleportfolio-video<?php echo $item->id; ?>"><?php echo JText::_('COM_SPSIMPLEPORTFOLIO_WATCH'); ?></a>
									<?php } else { ?>
										<a class="btn-zoom" href="<?php echo $item->popup_img_url; ?>" data-featherlight="image"><?php echo JText::_('MOD_SPSIMPLEPORTFOLIO_ZOOM'); ?></a>
									<?php } ?>
									<a class="btn-view" href="<?php echo $item->url; ?>"><?php echo JText::_('MOD_SPSIMPLEPORTFOLIO_VIEW'); ?></a>
								</div>
								<?php if($layout_type!='default') { ?>
								<h3 class="sp-simpleportfolio-title">
									<a href="<?php echo $item->url; ?>">
										<?php echo $item->title; ?>
									</a>
								</h3>
								<div class="sp-simpleportfolio-tags">
									<?php echo implode(', ', $item->tags); ?>
								</div>
								<?php } ?>
							</div>
						</div>
					</div>
				</div>

				<?php if($layout_type=='default') { ?>
					<div class="sp-simpleportfolio-info">
						<h3 class="sp-simpleportfolio-title">
							<a href="<?php echo $item->url; ?>">
								<?php echo $item->title; ?>
							</a>
						</h3>
						<div class="sp-simpleportfolio-tags">
							<?php echo implode(', ', $item->tags); ?>
						</div>
					</div>
				<?php } ?>
			</div>
		<?php } ?>
	</div>

</div>
language/en-GB.mod_spsimpleportfolio.ini000060400000007745150750505540014367 0ustar00; Admin
MOD_SP_SIMPLEPORTFOLIO="SP SIMPLE PORTFOLIO"
MOD_SPSIMPLEPORTFOLIO_FIELD_LIMIT="Number of Items"
MOD_SPSIMPLEPORTFOLIO_FIELD_LIMIT_DESC="Please enter the number of items to display per page."
MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_TYPES="Layout Settings"
MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_TYPES_DESC="Select a layout from the list."
MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_DEFAULT="Default"
MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_GALLERY_SPACE="Gallery style with space"
MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_GALLERY_NOSPACE="Gallery style without space"

MOD_SPSIMPLEPORTFOLIO_FIELD_COLUMNS="Columns"
MOD_SPSIMPLEPORTFOLIO_FIELD_COLUMNS_DESC="Select number of columns per row."
MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_2="2 Columns"
MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_3="3 Columns"
MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_4="4 Columns"

MOD_SPSIMPLEPORTFOLIO_SHOW_FILTER_BUTTONS="Show Filters"
MOD_SPSIMPLEPORTFOLIO_SHOW_FILTER_BUTTONS_DESC="Enable to show filter buttons"

MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SIZE="Thumbnail Size"
MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SIZE_DESC="Select a thumbnail size which will show in the item list."
MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_MASONRY="Masonry"
MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SQUARE="Square"
MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_RECTANGULAR="Rectangular"
MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_TOWER="Tower"

MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_TYPE="Thumbnail Type"
MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE="Popup Size"
MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_DESC="Select a popup image size from the list (select default for your default uploaded image)."
MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_DEFAULT="Default"
MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_SQUARE="Square"
MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_RECTANGLE="Rectangle"
MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_TOWER="Tower"

; Frontend
MOD_SPSIMPLEPORTFOLIO_SHOW_ALL="Show All"
MOD_SPSIMPLEPORTFOLIO_ZOOM="Zoom"
MOD_SPSIMPLEPORTFOLIO_WATCH="Watch"
MOD_SPSIMPLEPORTFOLIO_VIEW="View"

; Category
MOD_SPSIMPLEPORTFOLIO_CATEGORY="Select a category"
MOD_SPSIMPLEPORTFOLIO_CATEGORY_DESC=""
MOD_SPSIMPLEPORTFOLIO_CATEGORY_ALL="All Categories"

; FLEX’S ADD (SP Simple Portfolio)
COM_SPSIMPLEPORTFOLIO_SHOW_VIEW_BUTTON="Show “View” button"
COM_SPSIMPLEPORTFOLIO_SHOW_VIEW_BUTTON_DESC="Enables “View” button link to portfolio’s item details."
COM_SPSIMPLEPORTFOLIO_SHOW_ZOOM_BUTTON="Show “Zoom” button"
COM_SPSIMPLEPORTFOLIO_SHOW_ZOOM_BUTTON_DESC="Enables “Zoom” button to open image(s) in popup."
COM_SPSIMPLEPORTFOLIO_SHOW_TAGS="Show “Tags”"
COM_SPSIMPLEPORTFOLIO_SHOW_TAGS_DESC="Enables “Tag(s)” under the tile."
COM_SPSIMPLEPORTFOLIO_FIELD_FILTER_STYLE="Filter Style"
COM_SPSIMPLEPORTFOLIO_FIELD_FILTER_STYLE_DESC="Select Style for Filter from the list"
COM_SPSIMPLEPORTFOLIO_FIELD_FILTER_STYLE_SIMPLE="Simple"
COM_SPSIMPLEPORTFOLIO_FIELD_FILTER_STYLE_FLEX="Flex"
COM_SPPORTFOLIO_SHOW_FILTER_DIVIDER_LABEL="Filter Divider"
COM_SPPORTFOLIO_SHOW_FILTER_DIVIDER_LABEL_DESC="You can use text or icon as divider between filter tabs, for example: “/”, “~” or “{}”. Only for “Simple” filter style."
SPSIMPLEPORTFOLIO_COLUMN_BACKGROUND_COLOR="Column’s Background color"
SPSIMPLEPORTFOLIO_COLUMN_BACKGROUND_COLOR_DESC="Set column’s custom background color, if you don’t want default."

COM_SPPORTFOLIO_FILTER="Portfolio Filter"
COM_SPPORTFOLIO_SHOW_ALL_TXT_LABEL="Custom “Show All” text"
COM_SPPORTFOLIO_SHOW_ALL_TXT_DESC="“Show All” text for first tab/button in filter. Other tabs are dynamically named as tags you’ve created."
COM_SPPORTFOLIO_FILTER_MARGIN_LABEL="Margin between tags (px)"
COM_SPPORTFOLIO_FILTER_MARGIN_DESC="Custom margin (gap) between tags in filter."

COM_SPSIMPLEPORTFOLIO_VIDEO_WIDTH="Video width in lightbox"
COM_SPSIMPLEPORTFOLIO_VIDEO_WIDTH_DESC="Set the custom width (px) of video (iframe) in popup lightbox. Default: 700."
COM_SPSIMPLEPORTFOLIO_VIDEO_HEIGHT="Video height in lightbox"
COM_SPSIMPLEPORTFOLIO_VIDEO_HEIGHT_DESC="Set the custom height (px) of video (iframe) in popup lightbox. Default: 400."mod_spsimpleportfolio.xml000060400000015120150750505540011720 0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="3.3" client="site" method="upgrade">
	<name>SP Simple Portfolio Module</name>
	<author>JoomShaper</author>
	<creationDate>January 2020</creationDate>
	<copyright>Copyright (C) 2010 - 2020 JoomShaper. All rights reserved.</copyright>
	<license>GNU General Public License version 2 or later</license>
	<authorEmail>support@joomshaper.com</authorEmail>
	<authorUrl>www.joomshaper.com</authorUrl>
	<version>1.8</version>
	<description>Module to display latest item from SP Simple Portfolio</description>

	<updateservers>
		<server type="extension" priority="1" name="SP Simple Portfolio Module">http://www.joomshaper.com/updates/mod-sp-simple-portfolio.xml</server>
	</updateservers>

	<files>
		<filename module="mod_spsimpleportfolio">mod_spsimpleportfolio.php</filename>
		<filename>helper.php</filename>
		<folder>tmpl</folder>
		<folder>language</folder>
	</files>
	<languages>
		<language tag="en-GB">language/en-GB.mod_spsimpleportfolio.ini</language>
	</languages>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field name="category_id" type="category" extension="com_spsimpleportfolio" default="" label="MOD_SPSIMPLEPORTFOLIO_CATEGORY" description="MOD_SPSIMPLEPORTFOLIO_CATEGORY">
						<option value="">MOD_SPSIMPLEPORTFOLIO_CATEGORY_ALL</option>	
					</field>
					<field name="layout_type" type="list" default="default" label="MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_TYPES" description="MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_TYPES_DESC">
						<option value="default">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_DEFAULT</option>
						<option value="gallery_space">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_GALLERY_SPACE</option>	
						<option value="gallery_nospace">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_GALLERY_NOSPACE</option>	
					</field>
					<field name="columns" type="list" default="3" label="MOD_SPSIMPLEPORTFOLIO_FIELD_COLUMNS" description="MOD_SPSIMPLEPORTFOLIO_FIELD_COLUMNS_DESC">
						<option value="2">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_2</option>	
						<option value="3">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_3</option>	
						<option value="4">MOD_SPSIMPLEPORTFOLIO_FIELD_LAYOUT_COLUMNS_4</option>	
					</field>
					<field name="thumbnail_type" type="list" default="masonry" label="MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SIZE">
						<option value="masonry">MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_MASONRY</option>	
						<option value="square">MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_SQUARE</option>
						<option value="rectangular">MOD_SPSIMPLEPORTFOLIO_THUMBNAIL_RECTANGULAR</option>
					</field>
					<field name="popup_image" type="list" default="default" label="MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE" description="MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_DESC">
						<option value="default">MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_DEFAULT</option>
						<option value="quare">MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_SQUARE</option>
						<option value="rectangle">MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_RECTANGLE</option>
						<option value="tower">MOD_SPSIMPLEPORTFOLIO_FIELD_POPUP_IMAGE_TOWER</option>
					</field>
					<field name="limit" type="number" default="12" label="MOD_SPSIMPLEPORTFOLIO_FIELD_LIMIT" description="MOD_SPSIMPLEPORTFOLIO_FIELD_LIMIT_DESC" />
					<field name="column_bg" type="color" default="" label="SPSIMPLEPORTFOLIO_COLUMN_BACKGROUND_COLOR" description="SPSIMPLEPORTFOLIO_COLUMN_BACKGROUND_COLOR_DESC" />
					
					<field type="spacer" hr="true" />
					<field name="show_filter" type="radio" class="btn-group" default="1" label="MOD_SPSIMPLEPORTFOLIO_SHOW_FILTER_BUTTONS" description="MOD_SPSIMPLEPORTFOLIO_SHOW_FILTER_BUTTONS_DESC">
					<option value="1">JYES</option>	
					<option value="0">JNO</option>
					</field>
					<field name="filter_style" type="list" default="flex" label="COM_SPSIMPLEPORTFOLIO_FIELD_FILTER_STYLE" description="COM_SPSIMPLEPORTFOLIO_FIELD_FILTER_STYLE_DESC" showon="show_filter:1">
						<option value="simple">COM_SPSIMPLEPORTFOLIO_FIELD_FILTER_STYLE_SIMPLE</option>	
						<option value="flex">COM_SPSIMPLEPORTFOLIO_FIELD_FILTER_STYLE_FLEX</option>
					</field>
					<field name="show_all_txt" type="text" label="COM_SPPORTFOLIO_SHOW_ALL_TXT_LABEL" description="COM_SPPORTFOLIO_SHOW_ALL_TXT_DESC" filter="raw" default="" showon="show_filter:1" />	
					<field name="filter_divider" type="text" label="COM_SPPORTFOLIO_SHOW_FILTER_DIVIDER_LABEL" description="COM_SPPORTFOLIO_SHOW_FILTER_DIVIDER_LABEL_DESC" filter="raw" default="" showon="show_filter:1" />
					<field name="filter_margin" type="number" default="" label="COM_SPPORTFOLIO_FILTER_MARGIN_LABEL" description="COM_SPPORTFOLIO_FILTER_MARGIN_DESC" showon="show_filter:1" />	
					<field type="spacer" hr="true" />
			<field name="show_zoom_button" type="radio" class="btn-group" default="1" label="COM_SPSIMPLEPORTFOLIO_SHOW_ZOOM_BUTTON" description="COM_SPSIMPLEPORTFOLIO_SHOW_ZOOM_BUTTON_DESC">
					<option value="1">JYES</option>	
					<option value="0">JNO</option>
			</field>
			<field name="show_view_button" type="radio" class="btn-group" default="1" label="COM_SPSIMPLEPORTFOLIO_SHOW_VIEW_BUTTON" description="COM_SPSIMPLEPORTFOLIO_SHOW_VIEW_BUTTON_DESC">
					<option value="1">JYES</option>	
					<option value="0">JNO</option>
			</field>
			<field name="show_tags" type="radio" class="btn-group" default="1" label="COM_SPSIMPLEPORTFOLIO_SHOW_TAGS" description="COM_SPSIMPLEPORTFOLIO_SHOW_TAGS_DESC">
					<option value="1">JYES</option>	
					<option value="0">JNO</option>
			</field>
			<field type="spacer" hr="true" />
			<field name="video_width" type="number" label="COM_SPSIMPLEPORTFOLIO_VIDEO_WIDTH" description="COM_SPSIMPLEPORTFOLIO_VIDEO_WIDTH_DESC" default="700" hint="700" />
			<field name="video_height" type="number" label="COM_SPSIMPLEPORTFOLIO_VIDEO_HEIGHT" description="COM_SPSIMPLEPORTFOLIO_VIDEO_HEIGHT_DESC" default="400" hint="400" />
			<field type="spacer" hr="true" />

			</fieldset>

			<fieldset name="advanced">
				<field name="layout" type="modulelayout" label="JFIELD_ALT_LAYOUT_LABEL" description="JFIELD_ALT_MODULE_LAYOUT_DESC" />
				<field name="moduleclass_sfx" type="textarea" rows="3" label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL" description="COM_MODULES_FIELD_MODULECLASS_SFX_DESC" />
				<field name="cache" type="list" default="1" label="COM_MODULES_FIELD_CACHING_LABEL" description="COM_MODULES_FIELD_CACHING_DESC">
					<option value="1">JGLOBAL_USE_GLOBAL</option>
					<option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option>
				</field>
				<field name="cache_time" type="text" default="900" label="COM_MODULES_FIELD_CACHE_TIME_LABEL" description="COM_MODULES_FIELD_CACHE_TIME_DESC" />
			</fieldset>
		</fields>
	</config>
</extension>
mod_spsimpleportfolio.php000060400000003327150750505540011715 0ustar00<?php
/**
 * @package     SP Simple Portfolio
 * @subpackage  mod_spsimpleportfolio
 *
 * @copyright   Copyright (C) 2010 - 2020 JoomShaper. All rights reserved.
 * @license     GNU General Public License version 2 or later.
 */

defined('_JEXEC') or die;

require_once __DIR__ . '/helper.php';

JHtml::_('jquery.framework');
jimport('joomla.application.component.model');
JModelLegacy::addIncludePath(JPATH_SITE . '/components/com_spsimpleportfolio/models');
require_once JPATH_BASE . '/components/com_spsimpleportfolio/helpers/helper.php';

$doc = JFactory::getDocument();
$doc->addStylesheet( JURI::root(true) . '/components/com_spsimpleportfolio/assets/css/featherlight.min.css' );
$doc->addStylesheet( JURI::root(true) . '/components/com_spsimpleportfolio/assets/css/spsimpleportfolio.css' );
$doc->addScript( JURI::root(true) . '/components/com_spsimpleportfolio/assets/js/jquery.shuffle.modernizr.min.js' );
$doc->addScript( JURI::root(true) . '/components/com_spsimpleportfolio/assets/js/featherlight.min.js' );
$doc->addScript( JURI::root(true) . '/components/com_spsimpleportfolio/assets/js/spsimpleportfolio.js' );

$cParams      = JComponentHelper::getParams('com_spsimpleportfolio');

if($cParams) {
    $params->merge($cParams);
}

$items = ModSpsimpleportfolioHelper::getItems($params);
foreach ($items as $item) {
    // if thumb uploaded for listing
    $item->thumb = ( isset($item->thumbnail) && $item->thumbnail ) ? $item->thumbnail : $item->thumb;
}
$model = JModelLegacy::getInstance('Items', 'SpsimpleportfolioModel');
$tagList = $model->getTagList($items);

$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));

require JModuleHelper::getLayoutPath('mod_spsimpleportfolio', $params->get('layout', 'default'));

Youez - 2016 - github.com/yon3zu
LinuXploit