Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/joomla4/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/joomla4/editors-xtd.tar

article/article.php000064400000003534151162533660010340 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Editors-xtd.article
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Editor Article button
 *
 * @since  1.5
 */
class PlgButtonArticle extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.1
	 */
	protected $autoloadLanguage = true;

	/**
	 * Display the button
	 *
	 * @param   string  $name  The name of the button to add
	 *
	 * @return  JObject  The button options as JObject
	 *
	 * @since   1.5
	 */
	public function onDisplay($name)
	{
		$input = JFactory::getApplication()->input;
		$user  = JFactory::getUser();

		// Can create in any category (component permission) or at least in one
category
		$canCreateRecords = $user->authorise('core.create',
'com_content')
			|| count($user->getAuthorisedCategories('com_content',
'core.create')) > 0;

		// Instead of checking edit on all records, we can use **same** check as
the form editing view
		$values = (array)
JFactory::getApplication()->getUserState('com_content.edit.article.id');
		$isEditingRecords = count($values);

		// This ACL check is probably a double-check (form view already performed
checks)
		$hasAccess = $canCreateRecords || $isEditingRecords;
		if (!$hasAccess)
		{
			return;
		}

		$link =
'index.php?option=com_content&amp;view=articles&amp;layout=modal&amp;tmpl=component&amp;'
			. JSession::getFormToken() . '=1&amp;editor=' . $name;

		$button = new JObject;
		$button->modal   = true;
		$button->class   = 'btn';
		$button->link    = $link;
		$button->text    = JText::_('PLG_ARTICLE_BUTTON_ARTICLE');
		$button->name    = 'file-add';
		$button->options = "{handler: 'iframe', size: {x: 800,
y: 500}}";

		return $button;
	}
}
article/article.xml000064400000001471151162533660010347 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin"
group="editors-xtd" method="upgrade">
	<name>plg_editors-xtd_article</name>
	<author>Joomla! Project</author>
	<creationDate>October 2009</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.0.0</version>
	<description>PLG_ARTICLE_XML_DESCRIPTION</description>
	<files>
		<filename plugin="article">article.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_editors-xtd_article.ini</language>
		<language
tag="en-GB">en-GB.plg_editors-xtd_article.sys.ini</language>
	</languages>
</extension>
contact/contact.php000064400000002637151162533660010363 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Editors-xtd.contact
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Editor Contact button
 *
 * @since  3.7.0
 */
class PlgButtonContact extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.7.0
	 */
	protected $autoloadLanguage = true;

	/**
	 * Display the button
	 *
	 * @param   string  $name  The name of the button to add
	 *
	 * @return  JObject  The button options as JObject
	 *
	 * @since   3.7.0
	 */
	public function onDisplay($name)
	{
		$user  = JFactory::getUser();

		if ($user->authorise('core.create', 'com_contact')
			|| $user->authorise('core.edit', 'com_contact')
			|| $user->authorise('core.edit.own',
'com_contact'))
		{
			// The URL for the contacts list
			$link =
'index.php?option=com_contact&amp;view=contacts&amp;layout=modal&amp;tmpl=component&amp;'
				. JSession::getFormToken() . '=1&amp;editor=' . $name;

			$button          = new JObject;
			$button->modal   = true;
			$button->class   = 'btn';
			$button->link    = $link;
			$button->text    =
JText::_('PLG_EDITORS-XTD_CONTACT_BUTTON_CONTACT');
			$button->name    = 'address';
			$button->options = "{handler: 'iframe', size: {x: 800,
y: 500}}";

			return $button;
		}
	}
}
contact/contact.xml000064400000001505151162533660010365 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.7" type="plugin"
group="editors-xtd" method="upgrade">
	<name>plg_editors-xtd_contact</name>
	<author>Joomla! Project</author>
	<creationDate>October 2016</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.7.0</version>
	<description>PLG_EDITORS-XTD_CONTACT_XML_DESCRIPTION</description>
	<files>
		<filename plugin="contact">contact.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_editors-xtd_contact.ini</language>
		<language
tag="en-GB">en-GB.plg_editors-xtd_contact.sys.ini</language>
	</languages>
</extension>
fields/fields.php000064400000003334151162533660010004 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Editors-xtd.fields
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Editor Fields button
 *
 * @since  3.7.0
 */
class PlgButtonFields extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.7.0
	 */
	protected $autoloadLanguage = true;

	/**
	 * Display the button
	 *
	 * @param   string  $name  The name of the button to add
	 *
	 * @return  JObject  The button options as JObject
	 *
	 * @since  3.7.0
	 */
	public function onDisplay($name)
	{
		// Check if com_fields is enabled
		if (!JComponentHelper::isEnabled('com_fields'))
		{
			return;
		}

		// Register FieldsHelper
		JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR .
'/components/com_fields/helpers/fields.php');

		// Guess the field context based on view.
		$jinput = JFactory::getApplication()->input;
		$context = $jinput->get('option') . '.' .
$jinput->get('view');

		// Validate context.
		$context = implode('.', FieldsHelper::extract($context));
		if (!FieldsHelper::getFields($context))
		{
			return;
		}

		$link =
'index.php?option=com_fields&amp;view=fields&amp;layout=modal&amp;tmpl=component&amp;context='
			. $context . '&amp;editor=' . $name .
'&amp;' . JSession::getFormToken() . '=1';

		$button          = new JObject;
		$button->modal   = true;
		$button->class   = 'btn';
		$button->link    = $link;
		$button->text    =
JText::_('PLG_EDITORS-XTD_FIELDS_BUTTON_FIELD');
		$button->name    = 'puzzle';
		$button->options = "{handler: 'iframe', size: {x: 800,
y: 500}}";

		return $button;
	}
}
fields/fields.xml000064400000001500151162533660010006 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.7" type="plugin"
group="editors-xtd" method="upgrade">
	<name>plg_editors-xtd_fields</name>
	<author>Joomla! Project</author>
	<creationDate>February 2017</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.7.0</version>
	<description>PLG_EDITORS-XTD_FIELDS_XML_DESCRIPTION</description>
	<files>
		<filename plugin="fields">fields.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_editors-xtd_fields.ini</language>
		<language
tag="en-GB">en-GB.plg_editors-xtd_fields.sys.ini</language>
	</languages>
</extension>
hikashopproduct/hikashopproduct.php000064400000041720151162533670013710
0ustar00<?php
/**
 * @package	HikaShop for Joomla!
 * @version	4.4.1
 * @author	hikashop.com
 * @copyright	(C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php

class plgButtonHikashopproduct extends JPlugin
{
	public function __construct(& $subject, $config)
	{
		parent::__construct($subject, $config);
		$this->loadLanguage();
	}

	function onDisplay($name, $asset='', $author='') {
		if(version_compare(JVERSION, '3.0.0', '<')) {
			$extension = JRequest::getCmd('option');
		} else {
			$jinput = JFactory::getApplication()->input;
			$extension = $jinput->getCmd('option');
		}
		if(!in_array($extension, array('com_content',
'com_tz_portfolio', 'com_k2',
'com_jevents')))
			return;
		if(!defined('DS'))
			define('DS', DIRECTORY_SEPARATOR);
		if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'))
			return true;

		$app = JFactory::getApplication();
		$params = JComponentHelper::getParams('com_media');
		$user = JFactory::getUser();


		if ($asset == ''){
			$asset = $extension;
		}
		if (	$user->authorise('core.edit', $asset)
			||	$user->authorise('core.create', $asset)
			||	(count($user->getAuthorisedCategories($asset,
'core.create')) > 0)
			||	($user->authorise('core.edit.own', $asset) &&
$author == $user->id)
			||	(count($user->getAuthorisedCategories($extension,
'core.edit')) > 0)
			||	(count($user->getAuthorisedCategories($extension,
'core.edit.own')) > 0 && $author == $user->id)
		){
			$pluginsClass = hikashop_get('class.plugins');
			$plugin =
$pluginsClass->getByName('editors-xtd','hikashopproduct');

			$link =
'index.php?option=com_hikashop&amp;ctrl=plugins&amp;task=trigger&amp;function=productDisplay&amp;editor_name='.urlencode($name).'&amp;tmpl=component&amp;cid='.$plugin->extension_id.'&amp;'.hikashop_getFormToken().'=1';
			if(!HIKASHOP_J40)
				JHtml::_('behavior.modal');
			$button = new JObject;
			$button->set('modal', true);
			$button->set('link', $link);
			$button->set('text', JText::_('PRODUCT'));
			$button->set('class', 'btn');
			$button->set('name', 'hikashopproduct');
			if(HIKASHOP_J40) {
				$button->set('options', [
					'height'     => '450px',
					'width'      => '800px',
					'bodyHeight' => '70',
					'modalWidth' => '80',
				]);
			} else {
				$button->set('options', "{handler:
'iframe', size: {x: 800, y: 450}}");
			}
			$doc = JFactory::getDocument();

			if(!HIKASHOP_J30)
				JHTML::_('behavior.mootools');
			elseif(!HIKASHOP_J40)
				JHTML::_('behavior.framework');
			$img_name = 'hikashopproduct.png';
			$path = '../plugins/editors-xtd/hikashopproduct/'.$img_name;
			$doc->addStyleDeclaration('.button2-left .hikashopproduct
{background: url('.$path.') 100% 0 no-repeat; }');

			return $button;
		}
		else{
			return false;
		}
	}

	function productDisplay(){
		$app = JFactory::getApplication();
		$db = JFactory::getDBO();

		$editor_name = hikaInput::get()->getString('editor_name',
'jform_articletext');

		$pageInfo = new stdClass();
		$pageInfo->limit = new stdClass();
		$pageInfo->search = $app->getUserStateFromRequest(
"com_content.productbutton.search", 'search',
'', 'string' );
		$pageInfo->search =
HikaStringHelper::strtolower(trim($pageInfo->search));
		$pageInfo->limit->value = $app->getUserStateFromRequest(
'com_content.productbutton.limit', 'limit',
$app->getCfg('list_limit'), 'int' );
		$pageInfo->limit->start = $app->getUserStateFromRequest(
'com_content.productbutton.limitstart', 'limitstart',
0, 'int' );
		if((hikaInput::get()->getVar('search')!=$app->getUserState('com_content.productbutton.search'))
||
(hikaInput::get()->getVar('limit')!=$app->getUserState('com_content.productbutton.limit'))){
			$pageInfo->limit->start = 0;
			$app->setUserState('com_content.productbutton.limitstart',0);
		}
		$Select = 'SELECT * FROM '.
hikashop_table('product');
		$Where = ' WHERE product_type=\'main\' AND
product_access=\'all\' AND product_published=1 ';
		$orderBY = ' ORDER BY product_id ASC';
		$searchMap =
array('product_name','product_code','product_id');
		$filters = array();
		if(!empty($pageInfo->search)){
			$searchVal =
'\'%'.hikashop_getEscaped(HikaStringHelper::strtolower(trim($pageInfo->search)),true).'%\'';
			$filter = '('.implode(" LIKE $searchVal OR
",$searchMap)." LIKE $searchVal".')';
			$filters[] =  $filter;
		}
		if(is_array($filters) && count($filters))
			$filters = ' AND '.implode(' AND ',$filters);
		else
			$filters = '';

		$db->setQuery($Select . $Where . $filters .
$orderBY,(int)$pageInfo->limit->start,(int)$pageInfo->limit->value);
		$products = $db->loadObjectList();

		$nbrow = count($products);

		$db->setQuery('SELECT * FROM '.
hikashop_table('price') .' ORDER BY price_product_id
ASC');
		$prices = $db->loadObjectList();

		if(HIKASHOP_J30) {
			$pagination = hikashop_get('helper.pagination', $nbrow,
$pageInfo->limit->start, $pageInfo->limit->value);
		} else {
			jimport('joomla.html.pagination');
			$pagination = new JPagination($nbrow, $pageInfo->limit->start,
$pageInfo->limit->value);
		}

		if(HIKASHOP_J40) {
			$scriptV2 = "
function insertTag(tag, event){
	event.preventDefault();
	var editor =
'".str_replace(array('\\','\''),
array('\\\\', '\\\''),
$editor_name)."';

	if (window.parent.Joomla && window.parent.Joomla.editors
&& window.parent.Joomla.editors.instances &&
Object.prototype.hasOwnProperty.call(window.parent.Joomla.editors.instances,
editor)) {
		window.parent.Joomla.editors.instances[editor].replaceSelection(tag);
	}

	if (window.parent.Joomla.Modal) {
		window.parent.Joomla.Modal.getCurrent().close();
	}
	return true;
}";
		} else {
			$scriptV2 = "
function insertTag(tag, event){
	window.parent.jInsertEditorText(tag,'".str_replace(array('\\','\''),
array('\\\\', '\\\''),
$editor_name)."');
	window.parent.SqueezeBox.close();
	return true;
}";
		}

		$doc = JFactory::getDocument();
		$doc->addScriptDeclaration( $scriptV2 );

		$config =& hikashop_config();
		$pricetaxType = hikashop_get('type.pricetax');
		$discountDisplayType = hikashop_get('type.discount_display');

		hikashop_display(JText::_('HIKASHOP_PRODUCT_CONTENT_TAG_INFO'),
'info');
?>

	<script language="JavaScript"
type="text/javascript">
		function divhidder(){
			if (document.getElementById('price').checked) {
				document.getElementById('Priceopt').style.visibility =
'visible';
			}
			else {
				document.getElementById('Priceopt').style.visibility =
'hidden';
			}
		}
		function checkSelect(){
			form = document.getElementById('adminForm');
			inputs = form.getElementsByTagName('input');
			nbbox = 0;
			nbboxOk = 0;
			nbboxProd = 0;
			for(i=0 ; i < inputs.length ; i++){
				if(inputs[i].type == 'checkbox' &&
inputs[i].checked==true){
					nbbox++;
				}
			}
			for(i=0 ; i < inputs.length ; i++){
				if(inputs[i].type == 'checkbox' &&
inputs[i].checked==true){
					nbboxOk++;
					if(inputs[i].id.match(/product_checkbox.*/)){
						if (nbboxProd == 0)
							document.getElementById('product_insert').value =
'{product ';
						nbboxProd++;
						document.getElementById('product_insert').value =
document.getElementById('product_insert').value + 
inputs[i].name;
						if(nbbox > nbboxOk){
							document.getElementById('product_insert').value =
document.getElementById('product_insert').value + '|';
						}
					}
				}
			}
			if( nbboxProd > 0 )
			{
				if(document.getElementById('name').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|name';
				}
				if(document.getElementById('cart').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|cart';
				}
				if(document.getElementById('quantityfield').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|quantityfield';
				}
				if(document.getElementById('description').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|description';
				}
				if(document.getElementById('picture').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|picture';
				}
				if(document.getElementById('link').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|link';
				}
				if(document.getElementById('border').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|border';
				}
				if(document.getElementById('badge').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|badge';
				}
				if(document.getElementById('menuid').value.length != 0){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|menuid:' + document.getElementById('menuid').value;
				}
				if(document.getElementById('pricedisc').value==1 &&
document.getElementById('price').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|pricedis1';
				}
				if(document.getElementById('pricedisc').value==2 &&
document.getElementById('price').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|pricedis2';
				}
				if(document.getElementById('pricedisc').value==3 &&
document.getElementById('price').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|pricedis3';
				}
				if(document.getElementById('pricetax').value==1 &&
document.getElementById('price').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|pricetax1';
				}
				if(document.getElementById('pricetax').value==2 &&
document.getElementById('price').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|pricetax2';
				}
				if(document.getElementById('pricedisc').value==0 &&
document.getElementById('pricetax').value==0 &&
document.getElementById('price').checked==true){
					document.getElementById('product_insert').value
=document.getElementById('product_insert').value + 
'|price';
				}
				document.getElementById('product_insert').value=document.getElementById('product_insert').value
+ '}';
			}
			if(document.getElementById('name').checked==false
			&& document.getElementById('price').checked==false
			&& document.getElementById('cart').checked==false
			&&
document.getElementById('description').checked==false
			&&
document.getElementById('picture').checked==false){
				document.getElementById('product_insert').value='';
			}
		}
		function checkAllBox(){
			var checkAll = document.getElementById('checkAll');
			var toCheck =
document.getElementById('ToCheck').getElementsByTagName('input');
			for (i = 0 ; i < toCheck.length ; i++) {
				if (toCheck[i].type == 'checkbox') {
					if(checkAll.checked == true){
						toCheck[i].checked = true;
					}else{
						toCheck[i].checked = false;
					}
				}
			}
		}
	</script>
	<form action="<?php echo hikashop_currentURL();?>"
method="POST" name="adminForm"
id="adminForm">
		<table class="hikashop_no_border">
			<tr>
				<td width="100%">
					<?php echo JText::_( 'FILTER' ); ?>:
					<input type="text" name="search"
id="hikashop_search" value="<?php echo
hikashop_getEscaped($pageInfo->search);?>"
class="inputbox"
onchange="document.adminForm.submit();" />
					<button class="btn btn-primary"
onclick="this.form.submit();"><?php echo JText::_(
'GO' ); ?></button>
					<button class="btn btn-primary"
onclick="document.getElementById('hikashop_search').value='';this.form.submit();"><?php
echo JText::_( 'RESET' ); ?></button>
				</td>
			</tr>
		</table>
		<fieldset class="hika_field adminform">
			<legend>OPTIONS</legend>
			<div id="productInsertOptions">
				<input type="checkbox" name="name"
id="name" value="1" checked/><?php echo JText::_(
'HIKA_NAME' );?>
				<input type="checkbox" name="description"
id="description" value="1" checked/><?php echo
JText::_( 'PRODUCT_DESCRIPTION' );?>
				<input type="checkbox" name="cart"
id="cart" value="1" <?php
if(!empty($_REQUEST['cart'])) echo 'checked'; ?>
/><?php echo JText::_( 'HIKASHOP_CHECKOUT_CART' );?>
				<input type="checkbox" name="quantity"
id="quantityfield" value="1" <?php
if(!empty($_REQUEST['quantityfield'])) echo 'checked';
?> /><?php echo JText::_( 'HIKA_QUANTITY_FIELD' );?>
				<input type="checkbox" name="picture"
id="picture" value="1" <?php
if(!empty($_REQUEST['picture'])) echo 'checked';
?>/><?php echo JText::_( 'HIKA_IMAGE' );?>
				<input type="checkbox" name="link"
id="link" value="1" <?php
if(!empty($_REQUEST['link'])) echo 'checked';
?>/><?php echo JText::_( 'LINK_TO_PRODUCT_PAGE' );?>
				<input type="checkbox" name="border"
id="border" value="1" <?php
if(!empty($_REQUEST['border'])) echo 'checked'; ?>
/><?php echo JText::_( 'ITEM_BOX_BORDER' );?>
				<input type="checkbox" name="badge"
id="badge" value="1" <?php
if(!empty($_REQUEST['badge'])) echo 'checked'; ?>
/><?php echo JText::_( 'HIKA_BADGE' );?>
				<br/>
				Menu ID : <input type="text" name="menuid"
id="menuid"  <?php if(!empty($_REQUEST['menuid']))
echo
'value="'.$_REQUEST['menuid'].'"';?>
/>
				<input type="checkbox" name="pricetax"
id="pricetax" value="<?php echo
$config->get('price_with_tax');?>" hidden/>
				<br/>
				<input type="checkbox" name="price"
id="price" value="1" checked
onclick="divhidder()"/><?php echo
JText::_('DISPLAY_PRICE');?>
				<br/>
				<div id="Priceopt">
				<tr id="show_discount_line">
					<td class="key" valign="top">
						<?php echo JText::_('SHOW_DISCOUNTED_PRICE');?>
					</td>
					<td>
						<?php
						$default_params = $config->get('default_params');
						$attributes='';
						if(HIKASHOP_J40)
							$attributes = 'style="width: 350px;"';
						echo $discountDisplayType->display( 'pricedisc' , 3,
$attributes); ?>
					</td>
				</tr>
				<div>
				</div>
		</fieldset>
		<fieldset class="hika_field adminform">
			<table class="adminlist table table-striped"
cellpadding="1" width="100%">
				<thead>
					<tr>
						<th class="title titlenum">
							<?php echo JText::_('HIKA_NUM'); ?>
						</th>
						<th class="title titlebox">
							<input type="checkbox" name="checkAll"
id="checkAll" value=""
onclick="checkAllBox();"/>
						</th>
						<th class="title">
							<?php echo JText::_('HIKA_NAME'); ?>
						</th>
						<th class="title">
							<?php echo JText::_('PRODUCT_PRICE'); ?>
						</th>
						<th class="title">
							<?php echo JText::_('PRODUCT_QUANTITY'); ?>
						</th>
						<th class="title">
							<?php echo'ID'; ?>
						</th>
					</tr>
				</thead>
				<tbody id="ToCheck">
					<?php
						$i = 0;
						$row ='';
						$currencyClass = hikashop_get('class.currency');
						$currencies=new stdClass();
						$currency_symbol='';
						foreach($products as $product){
							$i++;
							$row.= '<tr><td class="title
titlenum">';
							$row.= $i;
							$row.='</td><td class="title
titlebox"><input type="checkbox"
id="product_checkbox'.$product->product_id.'"
name="'.$product->product_id;
							$row.='" value=""/></td><td
class="center">';
							$row.=$product->product_name;
							$row.='</td><td class="center">';
							foreach($prices as $price){
								if($price->price_product_id==$product->product_id){
									$row.= $price->price_value;
									$currency =
$currencyClass->getCurrencies($price->price_currency_id,$currencies);
									foreach($currency as $currrencie){
										if($price->price_currency_id == $currrencie->currency_id){
											$currency_symbol = $currrencie->currency_symbol;
										}
									}
									$row.=' ' .$currency_symbol;
								}
							}
							$row.='</td><td class="center">';
							if($product->product_quantity > -1)
$row.=$product->product_quantity;
							else $row.= JText::_('UNLIMITED');
							$row.='</td><td class="center">';
							$row.=$product->product_id;
							$row.='</td></tr>';
						}
						echo $row;
					?>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="7">
							<?php echo $pagination->getListFooter(); ?>
							<?php echo $pagination->getResultsCounter(); ?>
						</td>
					</tr>
				</tfoot>
			</table>
		</fieldset>
		<input type="hidden" name="product_insert"
id="product_insert" value="" />
		<button class="btn btn-success" onclick="checkSelect();
insertTag(document.getElementById('product_insert').value,
event);"><?php echo JText::_( 'HIKA_INSERT' );
?></button>
		<?php global $Itemid; ?>
		<input type="hidden" name="Itemid"
value="<?php echo $Itemid; ?>"/>
		<?php echo JHTML::_( 'form.token' );
	}
}
hikashopproduct/hikashopproduct.png000064400000001636151162533670013707
0ustar00�PNG


IHDRK�ltEXtSoftwareAdobe
ImageReadyq�e<@IDATxڔ�[oE�gfg/ޛw��ŮC�V�(�R���x�3���y���*@�(Em�����.v������8ζ�EJ�^yv�o�ϙ�����MdY��QQJ���~�"���l�eY�$a�"�Z_aFp)@X��+y���E��5�2%|��L�iv5��K�x(�
��Q��D��DU*�E�G�w�m��C�Ӥ�Ni6����䱟?��Xp����v1!�9�|���ֶ���+X%�9�J)��Ο�|��z/h�:B�FD!�-
��[<S����/E:���yw�5���fY�挽\�:���wI���%�ZIj�8ـ������U9+Ģ�p��n>��^4��GI�Mnc�Ѩ��y�M��d��n���|�8>y��
C�0������t���>N��O�I#��ͨs�j���gWuw"W�RE	��~k��9*g��Q��٣v��Uɤ\Vk=M�����+�#���
��UŨb��ub�K��38uT-"��D�܋�;��֒*!M,D}M\-KS���6��X��
���'�ޗߧ��3�J�Ֆ��e�����p�i�iYH�VKﺍ�;��g_��=��W�,i��l��F
E�\F��*�?�Ӽ���xA}�7M�q�v������O?=�^��&4�
�~\I�\%���oK(a3�m�5f	�\h�׷z�<��<���R�/t
n���e;^�i��(��Q�%�R�\���ba���f�n���!������P�"�Hg��������y���iǐ]��l�k����[�����ht�yU���t�����T���IEND�B`�hikashopproduct/hikashopproduct.xml000064400000001333151162533670013715
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin"
method="upgrade" group="editors-xtd">
	<name>HikaShop Product TAG insertion</name>
	<creationDate>12 février 2021</creationDate>
	<version>4.4.1</version>
	<author>Hikari Software</author>
	<authorEmail>dev@hikashop.com</authorEmail>
	<authorUrl>http://www.hikashop.com</authorUrl>
	<copyright>(C) 2010-2021 HIKARI SOFTWARE. All rights
reserved.</copyright>
	<license>http://www.gnu.org/licenses/gpl-3.0.html
GNU/GPL</license>
	<description>Hikashop product tag insertion
plugin</description>
	<files>
		<filename
plugin="hikashopproduct">hikashopproduct.php</filename>
		<filename>hikashopproduct.png</filename>
	</files>
</extension>
hikashopproduct/index.html000064400000000054151162533670011760
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>image/image.php000064400000004212151162533670007431
0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Editors-xtd.image
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Editor Image buton
 *
 * @since  1.5
 */
class PlgButtonImage extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.1
	 */
	protected $autoloadLanguage = true;

	/**
	 * Display the button.
	 *
	 * @param   string   $name    The name of the button to display.
	 * @param   string   $asset   The name of the asset being edited.
	 * @param   integer  $author  The id of the author owning the asset being
edited.
	 *
	 * @return  JObject  The button options as JObject or false if not allowed
	 *
	 * @since   1.5
	 */
	public function onDisplay($name, $asset, $author)
	{
		$app       = JFactory::getApplication();
		$user      = JFactory::getUser();
		$extension = $app->input->get('option');

		// For categories we check the extension (ex: component.section)
		if ($extension === 'com_categories')
		{
			$parts     = explode('.',
$app->input->get('extension', 'com_content'));
			$extension = $parts[0];
		}

		$asset = $asset !== '' ? $asset : $extension;

		if ($user->authorise('core.edit', $asset)
			|| $user->authorise('core.create', $asset)
			|| (count($user->getAuthorisedCategories($asset,
'core.create')) > 0)
			|| ($user->authorise('core.edit.own', $asset) &&
$author === $user->id)
			|| (count($user->getAuthorisedCategories($extension,
'core.edit')) > 0)
			|| (count($user->getAuthorisedCategories($extension,
'core.edit.own')) > 0 && $author === $user->id))
		{
			$link =
'index.php?option=com_media&amp;view=images&amp;tmpl=component&amp;e_name='
. $name . '&amp;asset=' . $asset .
'&amp;author=' . $author;

			$button = new JObject;
			$button->modal   = true;
			$button->class   = 'btn';
			$button->link    = $link;
			$button->text    = JText::_('PLG_IMAGE_BUTTON_IMAGE');
			$button->name    = 'pictures';
			$button->options = "{handler: 'iframe', size: {x: 800,
y: 500}}";

			return $button;
		}

		return false;
	}
}
image/image.xml000064400000001454151162533670007447 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin"
group="editors-xtd" method="upgrade">
	<name>plg_editors-xtd_image</name>
	<author>Joomla! Project</author>
	<creationDate>August 2004</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.0.0</version>
	<description>PLG_IMAGE_XML_DESCRIPTION</description>
	<files>
		<filename plugin="image">image.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_editors-xtd_image.ini</language>
		<language
tag="en-GB">en-GB.plg_editors-xtd_image.sys.ini</language>
	</languages>
</extension>
menu/menu.php000064400000002545151162533670007204 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Editors-xtd.menu
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Editor menu button
 *
 * @since  3.7.0
 */
class PlgButtonMenu extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.7.0
	 */
	protected $autoloadLanguage = true;

	/**
	 * Display the button
	 *
	 * @param   string  $name  The name of the button to add
	 *
	 * @since  3.7.0
	 * @return array
	 */
	public function onDisplay($name)
	{
		/*
		 * Use the built-in element view to select the menu item.
		 * Currently uses blank class.
		 */
		$user  = JFactory::getUser();

		if ($user->authorise('core.create', 'com_menus')
			|| $user->authorise('core.edit', 'com_menus'))
		{
		$link =
'index.php?option=com_menus&amp;view=items&amp;layout=modal&amp;tmpl=component&amp;'
			. JSession::getFormToken() . '=1&amp;editor=' . $name;

		$button          = new JObject;
		$button->modal   = true;
		$button->class   = 'btn';
		$button->link    = $link;
		$button->text    =
JText::_('PLG_EDITORS-XTD_MENU_BUTTON_MENU');
		$button->name    = 'share-alt';
		$button->options = "{handler: 'iframe', size: {x: 800,
y: 500}}";

		return $button;
		}
	}
}
menu/menu.xml000064400000001462151162533700007204 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.7" type="plugin"
group="editors-xtd" method="upgrade">
	<name>plg_editors-xtd_menu</name>
	<author>Joomla! Project</author>
	<creationDate>August 2016</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.7.0</version>
	<description>PLG_EDITORS-XTD_MENU_XML_DESCRIPTION</description>
	<files>
		<filename plugin="menu">menu.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_editors-xtd_menu.ini</language>
		<language
tag="en-GB">en-GB.plg_editors-xtd_menu.sys.ini</language>
	</languages>
</extension>
module/module.php000064400000002717151162533700010041 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Editors-xtd.module
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Editor Module button
 *
 * @since  3.5
 */
class PlgButtonModule extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.5
	 */
	protected $autoloadLanguage = true;

	/**
	 * Display the button
	 *
	 * @param   string  $name  The name of the button to add
	 *
	 * @return  JObject  The button options as JObject
	 *
	 * @since   3.5
	 */
	public function onDisplay($name)
	{
		/*
		 * Use the built-in element view to select the module.
		 * Currently uses blank class.
		 */
		$user  = JFactory::getUser();

		if ($user->authorise('core.create', 'com_modules')
			|| $user->authorise('core.edit', 'com_modules')
			|| $user->authorise('core.edit.own',
'com_modules'))
		{
			$link =
'index.php?option=com_modules&amp;view=modules&amp;layout=modal&amp;tmpl=component&amp;editor='
					. $name . '&amp;' . JSession::getFormToken() .
'=1';

			$button          = new JObject;
			$button->modal   = true;
			$button->class   = 'btn';
			$button->link    = $link;
			$button->text    = JText::_('PLG_MODULE_BUTTON_MODULE');
			$button->name    = 'file-add';
			$button->options = "{handler: 'iframe', size: {x: 800,
y: 500}}";

			return $button;
		}
	}
}
module/module.xml000064400000001463151162533700010047 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.6" type="plugin"
group="editors-xtd" method="upgrade">
	<name>plg_editors-xtd_module</name>
	<author>Joomla! Project</author>
	<creationDate>October 2015</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.5.0</version>
	<description>PLG_MODULE_XML_DESCRIPTION</description>
	<files>
		<filename plugin="module">module.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_editors-xtd_module.ini</language>
		<language
tag="en-GB">en-GB.plg_editors-xtd_module.sys.ini</language>
	</languages>
</extension>
pagebreak/pagebreak.php000064400000003647151162533700011134
0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Editors-xtd.pagebreak
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Editor Pagebreak button
 *
 * @since  1.5
 */
class PlgButtonPagebreak extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.1
	 */
	protected $autoloadLanguage = true;

	/**
	 * Display the button
	 *
	 * @param   string  $name  The name of the button to add
	 *
	 * @return  JObject  The button options as JObject
	 *
	 * @since   1.5
	 */
	public function onDisplay($name)
	{
		$input = JFactory::getApplication()->input;
		$user  = JFactory::getUser();

		// Can create in any category (component permission) or at least in one
category
		$canCreateRecords = $user->authorise('core.create',
'com_content')
			|| count($user->getAuthorisedCategories('com_content',
'core.create')) > 0;

		// Instead of checking edit on all records, we can use **same** check as
the form editing view
		$values = (array)
JFactory::getApplication()->getUserState('com_content.edit.article.id');
		$isEditingRecords = count($values);

		// This ACL check is probably a double-check (form view already performed
checks)
		$hasAccess = $canCreateRecords || $isEditingRecords;
		if (!$hasAccess)
		{
			return;
		}

		JFactory::getDocument()->addScriptOptions('xtd-pagebreak',
array('editor' => $name));
		$link =
'index.php?option=com_content&amp;view=article&amp;layout=pagebreak&amp;tmpl=component&amp;e_name='
. $name;

		$button          = new JObject;
		$button->modal   = true;
		$button->class   = 'btn';
		$button->link    = $link;
		$button->text    =
JText::_('PLG_EDITORSXTD_PAGEBREAK_BUTTON_PAGEBREAK');
		$button->name    = 'copy';
		$button->options = "{handler: 'iframe', size: {x: 500,
y: 300}}";

		return $button;
	}
}
pagebreak/pagebreak.xml000064400000001517151162533700011137
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin"
group="editors-xtd" method="upgrade">
	<name>plg_editors-xtd_pagebreak</name>
	<author>Joomla! Project</author>
	<creationDate>August 2004</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.0.0</version>
	<description>PLG_EDITORSXTD_PAGEBREAK_XML_DESCRIPTION</description>
	<files>
		<filename
plugin="pagebreak">pagebreak.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_editors-xtd_pagebreak.ini</language>
		<language
tag="en-GB">en-GB.plg_editors-xtd_pagebreak.sys.ini</language>
	</languages>
</extension>
readmore/readmore.php000064400000002524151162533710010660 0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Editors-xtd.readmore
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Editor Readmore button
 *
 * @since  1.5
 */
class PlgButtonReadmore extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.1
	 */
	protected $autoloadLanguage = true;

	/**
	 * Readmore button
	 *
	 * @param   string  $name  The name of the button to add
	 *
	 * @return  JObject  The button options as JObject
	 *
	 * @since   1.5
	 */
	public function onDisplay($name)
	{
		JHtml::_('script',
'com_content/admin-article-readmore.min.js',
array('version' => 'auto', 'relative'
=> true));

		// Pass some data to javascript
		JFactory::getDocument()->addScriptOptions(
			'xtd-readmore',
			array(
				'editor' => $this->_subject->getContent($name),
				'exists' =>
JText::_('PLG_READMORE_ALREADY_EXISTS', true),
			)
		);

		$button = new JObject;
		$button->modal   = false;
		$button->class   = 'btn';
		$button->onclick = 'insertReadmore(\'' . $name .
'\');return false;';
		$button->text    = JText::_('PLG_READMORE_BUTTON_READMORE');
		$button->name    = 'arrow-down';
		$button->link    = '#';

		return $button;
	}
}
readmore/readmore.xml000064400000001475151162533710010675 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin"
group="editors-xtd" method="upgrade">
	<name>plg_editors-xtd_readmore</name>
	<author>Joomla! Project</author>
	<creationDate>March 2006</creationDate>
	<copyright>Copyright (C) 2005 - 2020 Open Source Matters. All rights
reserved.</copyright>
	<license>GNU General Public License version 2 or later; see
LICENSE.txt</license>
	<authorEmail>admin@joomla.org</authorEmail>
	<authorUrl>www.joomla.org</authorUrl>
	<version>3.0.0</version>
	<description>PLG_READMORE_XML_DESCRIPTION</description>
	<files>
		<filename plugin="readmore">readmore.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_editors-xtd_readmore.ini</language>
		<language
tag="en-GB">en-GB.plg_editors-xtd_readmore.sys.ini</language>
	</languages>
</extension>