Spade

Mini Shell

Directory:~$ /proc/self/root/home/lmsyaran/www/khademsharif/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/home/lmsyaran/www/khademsharif/com_gantry5.zip

PK�=�[:S}266fields/particle.phpnu�[���<?php
/**
 * @package   Gantry 5
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2017 RocketTheme, LLC
 * @license   GNU/GPLv2 and later
 *
 * http://www.gnu.org/licenses/gpl-2.0.html
 */

class JFormFieldParticle extends JFormField
{
    protected $type = 'Particle';
    protected $container;

    protected function getInput()
    {
        $app = JFactory::getApplication();

        // Detect Gantry Framework or fail gracefully.
        if (!class_exists('Gantry5\Loader')) {
            $app->enqueueMessage(
                JText::sprintf('MOD_GANTRY5_PLUGIN_MISSING',
JText::_('MOD_GANTRY5_PARTICLE')),
                'error'
            );
            return '';
        }

        if (!defined('GANTRYADMIN_PATH')) {
            define('GANTRYADMIN_PATH', JPATH_ADMINISTRATOR .
'/components/com_gantry5');
        }

        // Initialize administrator or fail gracefully.
        try {
            Gantry5\Loader::setup();

            $lang = JFactory::getLanguage();
            $lang->load('com_gantry5', JPATH_ADMINISTRATOR) ||
$lang->load('com_gantry5', GANTRYADMIN_PATH);

            $this->container = Gantry\Framework\Gantry::instance();
            $this->container['router'] = function ($c) {
                return new \Gantry\Admin\Router($c);
            };

        } catch (Exception $e) {
            $app->enqueueMessage(
                JText::sprintf($e->getMessage()),
                'error'
            );
            return '';
        }

        // TODO: Use better style detection.
        $style = \Gantry\Joomla\StyleHelper::getDefaultStyle();

        if (!$style->template) {
            $app->enqueueMessage(
               
JText::_("GANTRY5_PARTICLE_FIELD_NO_DEFAULT_STYLE"),
                'warning'
            );
        } elseif (!file_exists(JPATH_SITE .
"/templates/{$style->template}/gantry/theme.yaml")) {
            $app->enqueueMessage(
               
JText::sprintf("GANTRY5_PARTICLE_FIELD_NO_GANTRY5_STYLE",
$style->title),
                'warning'
            );
        }

       
$this->container['router']->setTheme($style->template,
null)->load();

        $field = [
            'default' => true,
            'scope' => '',
            'name' => $this->name,
            'field' => [
                'type' => 'gantry.particle',
                'label' => 'Particle',
                'class' => 'input-small',
                'picker_label' => 'Pick a Particle',
                'overridable' => false
            ],
            'value' => json_decode($this->value, true)
        ];

        $params = [
            'content' =>
$this->container['admin.theme']->render('@gantry-admin/forms/fields/gantry/particle.html.twig',
$field)
        ];

        return
$this->container['admin.theme']->render('@gantry-admin/partials/layout.html.twig',
$params);
    }
}
PK�=�[�)*�
�
gantry5.phpnu�[���<?php
/**
 * @package   Gantry 5
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2017 RocketTheme, LLC
 * @license   GNU/GPLv2 and later
 *
 * http://www.gnu.org/licenses/gpl-2.0.html
 */
defined('_JEXEC') or die;

// Detect Gantry Framework or fail gracefully.
if (!class_exists('Gantry\Framework\Gantry')) {
    $lang = JFactory::getLanguage();
    $lang->load('com_gantry5', JPATH_ADMINISTRATOR) ||
$lang->load('com_gantry5', JPATH_ADMINISTRATOR .
'/components/com_gantry5');

    JFactory::getApplication()->enqueueMessage(
        JText::sprintf('COM_GANTRY5_PARTICLE_NOT_INITIALIZED',
JText::_('COM_GANTRY5_COMPONENT')),
        'warning'
    );
    return;
}

$app = JFactory::getApplication();
$document = JFactory::getDocument();
$input = $app->input;
$menu = $app->getMenu();
$menuItem = $menu->getActive();

// Prevent direct access without menu item.
if (!$menuItem) {
    JError::raiseError(404,
JText::_('JLIB_APPLICATION_ERROR_COMPONENT_NOT_FOUND'));
}

// Handle non-html formats and error page.
if ($input->getCmd('format', 'html') !==
'html' || $input->getCmd('view') ===
'error' || $input->getInt('g5_not_found')) {
    JError::raiseError(404, JText::_('JERROR_PAGE_NOT_FOUND'));
}

$gantry = \Gantry\Framework\Gantry::instance();

/** @var Gantry\Framework\Theme $theme */
$theme = $gantry['theme'];

$params = $app->getParams();

// Set page title.
$title = $params->get('page_title');
if (empty($title)) {
    $title = $app->get('sitename');
} elseif ($app->get('sitename_pagetitles', 0) == 1) {
    $title = JText::sprintf('JPAGETITLE',
$app->get('sitename'), $title);
} elseif ($app->get('sitename_pagetitles', 0) == 2) {
    $title = JText::sprintf('JPAGETITLE', $title,
$app->get('sitename'));
}
$document->setTitle($title);

// Set description.
if ($params->get('menu-meta_description')) {
   
$document->setDescription($params->get('menu-meta_description'));
}

// Set Keywords.
if ($params->get('menu-meta_keywords')) {
    $document->setMetadata('keywords',
$params->get('menu-meta_keywords'));
}

// Set robots.
if ($params->get('robots')) {
    $document->setMetadata('robots',
$params->get('robots'));
}

/** @var object $params */
$data = json_decode($params->get('particle'), true);
if (!$data) {
    // No component output.
    return;
}

$context = [
    'gantry' => $gantry,
    'noConfig' => true,
    'inContent' => true,
    'segment' => [
        'id' => 'main-particle',
        'type' => $data['type'],
        'classes' =>
$params->get('pageclass_sfx'),
        'subtype' => $data['particle'],
        'attributes' =>
$data['options']['particle'],
    ]
];

// Render the particle.
echo
trim($theme->render("@nucleus/content/particle.html.twig",
$context));
PK�=�[_�	W��MD5SUMSnu�[���views/custom/tmpl/default.xml	33b8ee233249a6bc874d2fc79301a47d
router.php	219552ca97bd87213b917a85eb571984
MD5SUMS	d41d8cd98f00b204e9800998ecf8427e
gantry5.php	1b4073709442e444ffeb5e7e8a3ed06d
fields/particle.php	a84389cc0ade93a8ea44c6a672aa6969
PK�=�[�#�Z��
router.phpnu�[���<?php
/**
 * @package   Gantry 5
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2017 RocketTheme, LLC
 * @license   GNU/GPLv2 and later
 *
 * http://www.gnu.org/licenses/gpl-2.0.html
 */
defined('_JEXEC') or die ();

function Gantry5BuildRoute(&$query)
{
    $segments = array();

    unset($query['view']);

    return $segments;
}

function Gantry5ParseRoute($segments)
{
    if ($segments) {
        return array('g5_not_found' => 1);
    }

    return array();
}
PK�=�[���9��views/custom/tmpl/default.xmlnu�[���<?xml
version="1.0" encoding="UTF-8"
standalone="yes"?>
<metadata>
    <layout title="COM_GANTRY5_MENU_CUSTOM_DEFAULT">
        <message>COM_GANTRY5_MENU_CUSTOM_DEFAULT_DESC</message>
    </layout>
    <config>
        <fields name="params">
            <fieldset name="basic"
addfieldpath="/components/com_gantry5/fields">
                <field
                        name="particle"
                        type="particle"
                        style_id_field="template_style_id"
                        filter="raw"
                        label="GANTRY5_FIELD_PARTICLE_LABEL"
                        description="GANTRY5_FIELD_PARTICLE_DESC"
/>
            </fieldset>
        </fields>
    </config>
</metadata>
PK�=�[:S}266fields/particle.phpnu�[���PK�=�[�)*�
�
ygantry5.phpnu�[���PK�=�[_�	W��kMD5SUMSnu�[���PK�=�[�#�Z��
�router.phpnu�[���PK�=�[���9���views/custom/tmpl/default.xmlnu�[���PK��