Your IP : 216.73.216.218


Current Path : /proc/thread-self/root/proc/thread-self/root/proc/1908984/root/proc/1147586/cwd/
Upload File :
Current File : //proc/thread-self/root/proc/thread-self/root/proc/1908984/root/proc/1147586/cwd/menus.php.tar

home/digilove/public_html/components/com_menus/menus.php000064400000001455152344640330017623 0ustar00<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_menus
 *
 * @copyright   (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

// Load the required admin language files
$lang   = JFactory::getLanguage();
$app    = JFactory::getApplication();

if ($app->input->get('view') === 'items' && $app->input->get('layout') === 'modal')
{
	if (!JFactory::getUser()->authorise('core.create', 'com_menus'))
	{
		$app->enqueueMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'warning');

		return;
	}
}

$lang->load('com_menus', JPATH_ADMINISTRATOR);

// Trigger the controller
$controller = JControllerLegacy::getInstance('Menus');
$controller->execute($app->input->get('task'));
$controller->redirect();
home/digilove/public_html/plugins/gsd/menus/menus.php000064400000007652152352243260017043 0ustar00<?php

/**
 * @package         Google Structured Data
 * @version         5.6.5 Pro
 *
 * @author          Tassos Marinos <info@tassos.gr>
 * @link            http://www.tassos.gr
 * @copyright       Copyright © 2021 Tassos Marinos All Rights Reserved
 * @license         GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later
 */

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

use GSD\Helper;
use Joomla\CMS\Form\Form;

/**
 *  Add Google Structured Data to Menu Items
 */
class plgGSDMenus extends GSD\PluginBase
{
	/**
	 *  Active Menu Item
	 *
	 *  @var  object
	 */
	protected $menu;

    /**
     *  Validate context to decide whether the plugin should run or not.
     *
     *  @return   bool
     */
    protected function passContext()
    {
    	$this->menu = $this->app->getMenu()->getActive();

		if (is_object($this->menu) && isset($this->menu->id))
		{
			return true;
		}

		return false;
    }

    /**
     *  Get Item's ID
     *
     *  @return  string
     */
    protected function getThingID()
    {
        return $this->menu->id;
    }

    /**
     *  Discover view name
     *
     *  @return  string  The view name
     */
    protected function getView()
    {
    	return $this->_name;
    }

    /**
     *  Get Menu Item Payload
     *
     *  @return  array   The Menu Item Payload array
     */
	public function viewMenus()
	{
		$params = $this->menu->getParams();

		return array(
			'id'    	  => $this->menu->id,
			'alias'       => $this->menu->alias,
			'headline'    => $params->get('page_title', $this->menu->title),
			'description' => $params->get('menu-meta_description'),
			'image'       => $params->get('menu_image')
		);
	}

	/**
	 * The MapOptions Backend Event. Triggered by the mappingoptions fields to help each integration add its own map options.
	 *  
	 * @param	string	$plugin
	 * @param	array	$options
	 *
	 * @return	void
	 */
    public function onMapOptions($plugin, &$options)
    {
		if ($plugin != $this->_name)
        {
			return;
		}

		// Remove unsupported mapping options
		$unsupported_options = [
			'user.id',
			'user.name',
			'user.email',
			'user.firstname',
			'user.lastname',
			'user.login',
			'gsd.item.created',
			'gsd.item.publish_up',
			'gsd.item.publish_down',
			'gsd.item.modified',
			'gsd.item.ratingValue',
			'gsd.item.reviewCount',
			'gsd.item.metakey',
			'gsd.item.metadesc',
			'gsd.item.introtext',
			'gsd.item.fulltext',
			'gsd.item.imagetext'
		];

		foreach ($unsupported_options as $option)
		{
			unset($options['GSD_INTEGRATION'][$option]);
		}
	}

	/**
	 *  Route default form's prepare event to onGSDPluginForm to help our plugins manipulate the form
	 *
	 *  @param   Form  $form  The form to be altered.
	 *  @param   mixed  $data  The associated data for the form.
	 *
	 *  @return  boolean
	 */
	public function onGSDPluginForm($form, $data)
	{
		// Run only on backend
		if (!$this->app->isClient('administrator') || !$form instanceof Form)
		{
			return;
		}

		// Ohh boy.. another B/C break introduced in Joomla! 3.8.10
		// Issue:   https://github.com/joomla/joomla-cms/issues/20879
		// Culprit: https://github.com/joomla/joomla-cms/pull/20313
		if (is_object($data))
		{
			$data = (array) $data;
 		}

		// Add a new tab called 'Google Structured Data' in the Menu Manager Item editing page
		// only on component-based menu items. System links such as as URLs or Menu Item Aliases are not supported.
		if ($form->getName() == 'com_menus.item' && $data['component_id'] > 0 && $this->params->get("fastedit", false))
		{
			$form->loadFile(__DIR__ . '/form/form.xml', false);

			// Here we need to set the id to the publishing rules
			$form->setFieldAttribute('snippet', 'thing', $data['id'], 'params.gsd');
			$form->setFieldAttribute('snippet', 'thing_title', $data['title'], 'params.gsd');
			$form->setFieldAttribute('snippet', 'plugin', $this->_name, 'params.gsd');
			$form->setFieldAttribute('snippet', 'plugin_assignment_name', 'menu',  'params.gsd');

			return;
		}
	}
}
home/digilove/public_html/110/plugins/content/jw_disqus/jw_disqus/includes/elements/menus.php000064400000006155152437554460026564 0ustar00<?php
/**
 * @version    3.6.x
 * @package    Disqus Comments (for Joomla)
 * @author     JoomlaWorks - http://www.joomlaworks.net
 * @copyright  Copyright (c) 2006 - 2016 JoomlaWorks Ltd. All rights reserved.
 * @license    GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */

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

// Create a menu item selector
if (version_compare(JVERSION, '1.6.0', 'ge'))
{
	// Import the com_menus helper
	require_once  realpath(JPATH_ADMINISTRATOR.'/components/com_menus/helpers/menus.php');

	class JFormFieldMenus extends JFormField
	{

		var $type = 'menus';

		function getInput()
		{

			// Initialize variables.
			$groups = array();
			$menus = array();

			// Initialize some field attributes.
			$menuType = (string)$this->element['menu_type'];
			$published = $this->element['published'] ? explode(',', (string)$this->element['published']) : array();
			$disable = $this->element['disable'] ? explode(',', (string)$this->element['disable']) : array();

			// Get the menu items.
			$items = MenusHelper::getMenuLinks($menuType, 0, 0, $published);

			// Build group for a specific menu type.
			if ($menuType)
			{
				// Initialize the group.
				$groups[$menuType] = array();

				// Build the options array.
				foreach ($items as $link)
				{
					$groups[$menuType][] = JHtml::_('select.option', $link->value, $link->text, 'value', 'text', in_array($link->type, $disable));
				}
			}

			// Build groups for all menu types.
			else
			{
				// Build the groups arrays.
				foreach ($items as $menu)
				{
					// Initialize the group.
					$groups[$menu->menutype] = array();

					// Build the options array.
					foreach ($menu->links as $link)
					{
						$groups[$menu->menutype][] = JHtml::_('select.option', $link->value, $link->text, 'value', 'text', in_array($link->type, $disable));
					}
				}
			}

			foreach ($groups as $group => $links)
			{
				$menus[] = JHtml::_('select.optgroup', $group);
				foreach ($links as $link)
				{
					$menus[] = $link;
				}
				$menus[] = JHtml::_('select.optgroup', $group);
			}

			// Create the 'all menus' listing
			$temp = new stdClass;
			$temp->value = '';
			$temp->text = JText::_('JW_DISQUS_SELECT_ALL_MENUS');

			// Merge the above
			array_unshift($menus, $temp);

			// Output
			$output = JHTML::_('select.genericlist', $menus, $this->name.'[]', 'class="inputbox" style="width:220px;" multiple="multiple" size="12"', 'value', 'text', $this->value);
			return $output;
		}

	}

}
else
{

	class JElementMenus extends JElement
	{

		var $_name = 'menus';

		function fetchElement($name, $value, &$node, $control_name)
		{

			$document = JFactory::getDocument();
			$menus = array();

			// Create the 'all menus' listing
			$temp->value = '';
			$temp->text = JText::_("JW_DISQUS_SELECT_ALL_MENUS");

			// Grab all the menus, grouped
			$menus = JHTML::_('menu.linkoptions');

			// Merge the above
			array_unshift($menus, $temp);

			// Output
			$output = JHTML::_('select.genericlist', $menus, ''.$control_name.'['.$name.'][]', 'class="inputbox" style="width:90%;" multiple="multiple" size="12"', 'value', 'text', $value);

			return $output;
		}

	}

}