<?php
/**
 * @package	HikaShop for Joomla!
 * @version	3.4.1
 * @author	hikashop.com
 * @copyright	(C) 2010-2018 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
echo $this->leftmenu(
	'display',
	array(
		'#display_general' => JText::_('GENERAL_DISPLAY_OPTIONS'),
		'#display_css' => JText::_('CSS'),
		'#display_products' => JText::_('PRODUCTS_DISPLAY_OPTIONS'),
		'#display_default_modules' => JText::_('MODULES_MAIN_DEFAULT_OPTIONS'),
		'#display_default_products' => JText::_('DEFAULT_PARAMS_FOR_PRODUCTS'),
		'#display_default_categories' => JText::_('DEFAULT_PARAMS_FOR_CATEGORIES'),
		'#display_default_divs' => JText::_('DEFAULT_PARAMS_FOR_DIV')
	)
);
hikaInput::get()->set('from_display',true);
?>
<div id="page-display" class="rightconfig-container <?php if(HIKASHOP_BACK_RESPONSIVE) echo 'rightconfig-container-j30';?>">

<!-- DISPLAY - GENERAL -->
<div id="display_general" class="hikashop_backend_tile_edition">
	<div class="hikashop_tile_block"><div>
		<div class="hikashop_tile_title"><?php echo JText::_('GENERAL_DISPLAY_OPTIONS'); ?></div>
<table class="hk_config_table table" style="width:100%">

	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('show_footer');?>><?php echo JText::_('SHOW_FOOTER'); ?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', "config[show_footer]" , '', $this->config->get('show_footer', 1));
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('button_style');?>><?php echo JText::_('BUTTON_STYLE'); ?></td>
		<td><?php
			echo $this->button->display('config[button_style]',$this->config->get('button_style'));
		?></td>
	</tr>
<?php if(!HIKASHOP_J30) { ?>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('menu_style');?>><?php echo JText::_('MENU_STYLE'); ?></td>
		<td><?php
			echo $this->menu_style->display('config[menu_style]',$this->config->get('menu_style'));
		?></td>
	</tr>
<?php } ?>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('popup_mode');?>><?php echo JText::_('POPUP_MODE'); ?></td>
		<td><?php
			$options = array(
				'inherit' => JHTML::_('hikaselect.option', 'inherit', JText::_('HIKA_INHERIT')),
				'mootools' => JHTML::_('hikaselect.option', 'mootools', JText::_('mootools')),
				'bootstrap' => JHTML::_('hikaselect.option', 'bootstrap', JText::_('bootstrap')),
				'vex' => JHTML::_('hikaselect.option', 'vex', JText::_('vex')),
			);
			if(!HIKASHOP_J30)
				unset($options['bootstrap']);
			if(!empty($this->popup_plugins['content'])) {
				foreach($this->popup_plugins['content'] as $k => $v) {
					$options[] = JHTML::_('hikaselect.option', $k, JText::_($v));
				}
			}
			echo JHTML::_('select.genericlist', $options, 'config[popup_mode]', '', 'value', 'text', $this->config->get('popup_mode', 'inherit'));
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('image_popup_mode');?>><?php echo JText::_('IMAGE_POPUP_MODE'); ?></td>
		<td>
<?php
	$options = array(
		JHTML::_('hikaselect.option', 'no', JText::_('HIKA_NONE')),
		JHTML::_('hikaselect.option', 'mootools', JText::_('mootools')),
		JHTML::_('hikaselect.option', 'shadowbox', JText::_('shadowbox (external)')),
		JHTML::_('hikaselect.option', 'shadowbox-embbeded', JText::_('shadowbox (embedded)'))
	);
	if(!empty($this->popup_plugins['image'])) {
		foreach($this->popup_plugins['image'] as $k => $v) {
			$options[] = JHTML::_('hikaselect.option', $k, JText::_($v));
		}
	}
	echo JHTML::_('select.genericlist', $options, 'config[image_popup_mode]', 'onchange="return window.localPage.imagepopupmode(this);"', 'value', 'text', $this->config->get('image_popup_mode', 'mootools'));
?>
<script type="text/javascript">
if(!window.localPage)
	window.localPage = {};
window.localPage.imagepopupmode = function(el) {
	if(el.value != 'shadowbox-embbeded')
		return;
	var ret = confirm('Be careful: You want to use ShadowBox in embbeded mode, the library should be installed in your website to work correctly');
	if(!ret) {
		el.value = 'shadowbox';
	}
}
</script>
		</td>
	</tr>
<?php if(HIKASHOP_J30) { ?>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('bootstrap_forcechosen');?>><?php echo JText::_('USE_CHOSEN'); ?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist',  'config[bootstrap_forcechosen]','',$this->config->get('bootstrap_forcechosen', 0));
		?></td>
	</tr>
<?php } ?>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('pagination');?>><?php echo JText::_('HIKA_PAGINATION'); ?></td>
		<td><?php
			echo $this->paginationType->display('config[pagination]',$this->config->get('pagination','bottom'));
		?></td>
	</tr>
<?php
	$values = array();
	if(file_exists(HIKASHOP_ROOT.'components'.DS.'com_jcomments'.DS.'jcomments.php')){
		$values[] = JHTML::_('select.option', 'jcomments','jComments');
	}
	if(file_exists(HIKASHOP_ROOT.'plugins'.DS.'content'.DS.'jom_comment_bot.php')){
		$values[] = JHTML::_('select.option', 'jomcomment','jomComment');
	}
	if(file_exists(HIKASHOP_ROOT . '/components/com_komento/bootstrap.php')){
		$values[] = JHTML::_('select.option', 'komento','Komento');
	}
	if(count($values)) {
		$values[] = JHTML::_('select.option', 0, JText::_('HIKASHOP_NO'));
?>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('comments_feature');?>><?php echo JText::_('COMMENTS_ENABLED_ON_PRODUCTS'); ?></td>
		<td><?php
			echo JHTML::_('hikaselect.radiolist', $values, 'config[comments_feature]', '', 'value', 'text', $this->config->get('comments_feature') );
		?></td>
	</tr>
<?php } ?>
<?php if(!$this->config->get('category_explorer')) { ?>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('category_explorer');?>><?php echo JText::_('CATEGORY_EXPLORER'); ?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[category_explorer]', '', $this->config->get('category_explorer'));
		?></td>
	</tr>
<?php } ?>

</table>
	</div></div>
</div>

<!-- DISPLAY - CSS -->
<div id="display_css" class="hikashop_backend_tile_edition">
	<div class="hikashop_tile_block"><div>
		<div class="hikashop_tile_title"><?php echo JText::_('CSS_DISPLAY_OPTIONS'); ?></div>
<table class="hk_config_table table" style="width:100%">

	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('css_frontend');?>><?php echo JText::_('CSS_FRONTEND'); ?></td>
		<td><?php
			echo $this->cssType->display('config[css_frontend]', $this->config->get('css_frontend', 'default'), 'frontend');
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('css_style');?>><?php echo JText::_('STYLES_FOR_FRONTEND'); ?></td>
		<td><?php
			echo $this->cssType->display('config[css_style]', $this->config->get('css_style', ''), 'style');
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('css_backend');?>><?php echo JText::_('CSS_BACKEND'); ?></td>
		<td><?php
			echo $this->cssType->display('config[css_backend]', $this->config->get('css_backend', 'default'), 'backend');
		?></td>
	</tr>

	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('css_button');?>><?php echo JText::_('HIKA_CSS_BUTTON'); ?></td>
		<td>
			<input type="text" class="large" name="config[css_button]" value="<?php echo $this->escape($this->config->get('css_button', 'hikabtn')); ?>"/>
		</td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('css_button_cart');?>><?php echo JText::_('HIKA_CSS_BUTTON_CART'); ?></td>
		<td>
			<input type="text" class="large" name="config[css_button_cart]" value="<?php echo $this->escape($this->config->get('css_button_cart', 'hikacart')); ?>"/>
		</td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('css_button_wishlist');?>><?php echo JText::_('HIKA_CSS_BUTTON_WISHLIST'); ?></td>
		<td>
			<input type="text" class="large" name="config[css_button_wishlist]" value="<?php echo $this->escape($this->config->get('css_button_wishlist', 'hikawishlist')); ?>"/>
		</td>
	</tr>

</table>
	</div></div>
</div>


<!-- DISPLAY - PRODUCTS -->
<div id="display_products" class="hikashop_backend_tile_edition">
	<div class="hikashop_tile_block"><div>
		<div class="hikashop_tile_title"><?php echo JText::_('PRODUCTS_DISPLAY_OPTIONS'); ?></div>
<table class="hk_config_table table" style="width:100%">
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('product_show_modules');?>><?php echo JText::_('PRODUCT_SHOW_MODULES'); ?></td>
		<td>
			<input type="hidden" name="config[product_show_modules]'; ?>" id="menumodules"  value="<?php echo $this->config->get('product_show_modules'); ?>" />
<?php
	echo $this->popup->display(
		'<button type="button" class="btn" onclick="return false">'.JText::_('Select').'</button>',
		'SELECT_MODULES',
		'\''.hikashop_completeLink('modules&task=selectmodules&control=menu&name=modules',true).'\'+\'&modules=\'+document.getElementById(\'menumodules\').value',
		'linkmenumodules',
		750, 375, '', '', 'link',true
	);
?>
			<br/>
<?php
	$modules = explode(',', $this->config->get('product_show_modules'));
	$modulesClass = hikashop_get('class.modules');
	foreach($modules as $module) {
		$element = $modulesClass->get($module);
		if(!empty($element->title)) {
			if(HIKASHOP_J30) {
				$link = JRoute::_('index.php?option=com_modules&view=module&layout=edit&id=' . (int)@$element->id);
			} else {
				$link = hikashop_completeLink('modules&task=edit&cid=' . (int)@$element->id);
			}
			echo '<a href="'.$link.'">'.JText::sprintf('OPTIONS_FOR_X', @$element->title).'</a><br/>';
		}
	}
?>
		</td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('product_display');?>><?php echo JText::_('LAYOUT_ON_PRODUCT_PAGE');?></td>
		<td><?php echo $this->productDisplayType->display('config[product_display]', @$this->config->get('product_display')); ?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('product_quantity_display');?>><?php echo JText::_('QUANTITY_LAYOUT_ON_PRODUCT_PAGE');?></td>
		<td><?php echo $this->quantityDisplayType->display('config[product_quantity_display]', $this->config->get('product_quantity_display','show_default')); ?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('characteristic_display');?>><?php echo JText::_('CHARACTERISTICS_DISPLAY'); ?></td>
		<td><?php echo $this->characteristicdisplayType->display('config[characteristic_display]',$this->config->get('characteristic_display')); ?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('product_selection_method');?>><?php echo JText::_('PRODUCT_SELECTION_METHOD'); ?></td>
		<td><?php
			if(hikashop_level(1)) {
				$options = array(
					JHTML::_('hikaselect.option', 'generic', JText::_('FIELD_SINGLEDROPDOWN')),
					JHTML::_('hikaselect.option', 'check', JText::_('FIELD_CHECKBOX')),
					JHTML::_('hikaselect.option', 'radio', JText::_('FIELD_RADIO')),
					JHTML::_('hikaselect.option', 'per_product', JText::_('ON_A_PER_PRODUCT_BASIS'))
				);
				echo JHTML::_('select.genericlist', $options, 'config[product_selection_method]', '', 'value', 'text', $this->config->get('product_selection_method', 'generic'));
			} else {
				echo hikashop_getUpgradeLink('essential');
			}
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('show_quantity_field');?>><?php echo JText::_('ADD_TO_CART_ON_LISTINGS');?></td>
		<td><?php echo $this->quantity->display('config[show_quantity_field]',$this->config->get('show_quantity_field')); ?></td>
	</tr>

	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('product_contact');?>><?php echo JText::_('DISPLAY_CONTACT_BUTTON'); ?></td>
		<td><?php
			if(hikashop_level(1)) {
				echo $this->contact->display('config[product_contact]', $this->config->get('product_contact', 0));
			} else {
				echo hikashop_getUpgradeLink('essential');
			}
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('show_code');?>><?php echo JText::_('DISPLAY_CODE');?></td>
		<td><?php echo JHTML::_('hikaselect.booleanlist', 'config[show_code]', '', $this->config->get('show_code', 0));?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('dimensions_display');?>><?php echo JText::_('DIMENSIONS_DISPLAY'); ?></td>
		<td><?php echo JHTML::_('hikaselect.booleanlist', 'config[dimensions_display]', '', $this->config->get('dimensions_display', 0)); ?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('weight_display');?>><?php echo JText::_('WEIGHT_DISPLAY'); ?></td>
		<td><?php echo JHTML::_('hikaselect.booleanlist', 'config[weight_display]', '', $this->config->get('weight_display', 0)); ?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('characteristic_display_text');?>><?php echo JText::_('CHARACTERISTICS_DISPLAY_TEXT'); ?></td>
		<td><?php echo JHTML::_('hikaselect.booleanlist', 'config[characteristic_display_text]', '', $this->config->get('characteristic_display_text')); ?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('manufacturer_display');?>><?php echo JText::_('DISPLAY_MANUFACTURER');?></td>
		<td><?php echo JHTML::_('hikaselect.booleanlist', 'config[manufacturer_display]', '', @$this->config->get('manufacturer_display')); ?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('show_price_weight');?>><?php echo JText::_('WEIGHT_UNIT_PRICE');?></td>
		<td><?php echo JHTML::_('hikaselect.booleanlist', 'config[show_price_weight]', '', @$this->config->get('show_price_weight')); ?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('show_other_product_shortcut');?>><?php echo JText::_('DISPLAY_OTHER_PRODUCT_SHORTCUT');?></td>
		<td><?php echo JHTML::_('hikaselect.booleanlist', 'config[show_other_product_shortcut]', '', $this->config->get('show_other_product_shortcut', 0)); ?></td>
	</tr>
</table>
	</div></div>
</div>

<!-- DISPLAY - DEFAULT PARAMS MODULES -->
<div id="display_default_modules" class="hikashop_backend_tile_edition">
	<div class="hikashop_tile_block"><div>
		<div class="hikashop_tile_title"><?php echo JText::_('MODULES_MAIN_DEFAULT_OPTIONS'); ?></div>
<table class="hk_config_table table" style="width:100%">

	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_content_type');?>><?php echo JText::_('TYPE_OF_CONTENT');?></td>
		<td><?php
			echo $this->contentType->display('config[default_params][content_type]', @$this->default_params['content_type'],$this->js,false);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_layout_type');?>><?php echo JText::_('TYPE_OF_LAYOUT');?></td>
		<td><?php
			echo $this->layoutType->display('config[default_params][layout_type]',  @$this->default_params['layout_type'], $this->js, false);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_columns');?>><?php echo JText::_('NUMBER_OF_COLUMNS');?></td>
		<td>
			<input name="config[default_params][columns]" type="text" value="<?php echo $this->escape(@$this->default_params['columns']); ?>" />
		</td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_limit');?>><?php echo JText::_('NUMBER_OF_ITEMS');?></td>
		<td>
			<input name="config[default_params][limit]" type="text" value="<?php echo $this->escape(@$this->default_params['limit']); ?>" />
		</td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_random');?>><?php echo JText::_('RANDOM_ITEMS');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][random]' , '', @$this->default_params['random']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_order_dir');?>><?php echo JText::_('ORDERING_DIRECTION');?></td>
		<td><?php
			echo $this->orderdirType->display('config[default_params][order_dir]', @$this->default_params['order_dir']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_filter_type');?>><?php echo JText::_('SUB_ELEMENTS_FILTER');?></td>
		<td><?php
			echo $this->childdisplayType->display('config[default_params][filter_type]', @$this->default_params['filter_type']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_selectparentlisting');?>><?php echo JText::_('HIKA_MAIN_CATEGORY');?></td>
		<td><?php
	echo $this->nameboxType->display(
		'config[default_params][selectparentlisting]',
		@$this->default_params['selectparentlisting'],
		hikashopNameboxType::NAMEBOX_SINGLE,
		'category',
		array(
			'default_text' => '<em>'.JText::_('HIKA_NONE').'</em>',
			'displayFormat' => '{category_id} - {category_name}'
		)
	);
		?></td>
	</tr>
<?php if(!HIKASHOP_J30){ ?>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_modules');?>><?php echo JText::_('MODULES_TO_DISPLAY_UNDER_MAIN_ZONE');?></td>
		<td>
			<input type="hidden" name="config[default_params][modules]" id="modules_display" value="<?php echo @$this->default_params['modules']; ?>" />
<?php
	echo $this->popup->display(
		JText::_('SELECT'),
		'SELECT_MODULES',
		'\''.hikashop_completeLink('modules&task=selectmodules',true).'\'+\'&modules=\'+document.getElementById(\'modules_display\').value',
		'linkmodules_display',
		750, 375, '', '', 'button',true
	);
?>
		</td>
	</tr>
<?php } ?>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_content_synchronize');?>><?php echo JText::_('SYNCHRO_WITH_ITEM');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][content_synchronize]' , '', @$this->default_params['content_synchronize']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_use_module_name');?>><?php echo JText::_('USE_NAME_INSTEAD_TITLE');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][use_module_name]' , '', @$this->default_params['use_module_name']);
		?></td>
	</tr>
</table>
	</div></div>
</div>

<!-- DISPLAY - DEFAULT PARAMS PRODUCTS -->
<div id="display_default_products" class="hikashop_backend_tile_edition">
	<div class="hikashop_tile_block"><div>
		<div class="hikashop_tile_title"><?php echo JText::_('DEFAULT_PARAMS_FOR_PRODUCTS'); ?></div>
<table class="hk_config_table table" style="width:100%">

	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_product_order');?>><?php echo JText::_('ORDERING_FIELD');?></td>
		<td><?php
			echo $this->orderType->display('config[default_params][product_order]', @$this->default_params['product_order'], 'product');
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_add_to_cart');?>><?php echo JText::_('ADD_TO_CART_BUTTON');?></td>
		<td><?php
			if(!isset($this->default_params['add_to_cart']))
				$this->default_params['add_to_cart'] = 1;
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][add_to_cart]', '', @$this->default_params['add_to_cart']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_show_quantity_field');?>><?php echo JText::_('ADD_TO_CART_QUANTITY');?></td>
		<td><?php
			if(!isset($this->default_params['show_quantity_field']))
				$this->default_params['show_quantity_field'] = 1;
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][show_quantity_field]', '', @$this->default_params['show_quantity_field']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_add_to_wishlist');?>><?php echo JText::_('ADD_TO_WISHLIST_BUTTON');?></td>
		<td><?php
			if(hikashop_level(1)) {
				echo JHTML::_('hikaselect.booleanlist', 'config[default_params][add_to_wishlist]', '', @$this->default_params['add_to_wishlist']);
			} else {
				echo hikashop_getUpgradeLink('essential');
			}
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_link_to_product_page');?>><?php echo JText::_('LINK_TO_PRODUCT_PAGE');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][link_to_product_page]', '', @$this->default_params['link_to_product_page']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_product_synchronize');?>><?php echo JText::_('CONTENT_ON_PRODUCT_PAGE');?></td>
		<td><?php
			echo $this->productSyncType->display('config[default_params][product_synchronize]', @$this->default_params['product_synchronize']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_show_price');?>><?php echo JText::_('DISPLAY_PRICE');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][show_price]', '', @$this->default_params['show_price']);
		?></td>
	</tr>

	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_show_original_price');?>><?php echo JText::_('ORIGINAL_CURRENCY_PRICE');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][show_original_price]', '', @$this->default_params['show_original_price']);
		?></td>
	</tr>
	<tr >
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_show_discount');?>><?php echo JText::_('SHOW_DISCOUNTED_PRICE');?></td>
		<td><?php
			echo $this->discountDisplayType->display('config[default_params][show_discount]', @$this->default_params['show_discount']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_price_display_type');?>><?php echo JText::_('PRICE_DISPLAY_METHOD');?></td>
		<td><?php
			echo $this->priceDisplayType->display( 'config[default_params][price_display_type]', @$this->default_params['price_display_type']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_display_badges');?>><?php echo JText::_('DISPLAY_BADGE');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][display_badges]', '',@$this->default_params['display_badges']);
		?></td>
	</tr>
<?php if(hikashop_level(2)) { ?>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_display_custom_item_fields');?>><?php echo JText::_('DISPLAY_CUSTOM_ITEM_FIELDS');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][display_custom_item_fields]', '',@$this->default_params['display_custom_item_fields']);
		?></td>
	</tr>
<?php } ?>
</table>
	</div></div>
</div>

<!-- DISPLAY - DEFAULT PARAMS CATEGORIES -->
<div id="display_default_categories" class="hikashop_backend_tile_edition">
	<div class="hikashop_tile_block"><div>
		<div class="hikashop_tile_title"><?php echo JText::_('DEFAULT_PARAMS_FOR_CATEGORIES'); ?></div>
<table class="hk_config_table table" style="width:100%">

	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_category_order');?>><?php echo JText::_('ORDERING_FIELD'); ?></td>
		<td><?php
			echo $this->orderType->display('config[default_params][category_order]', @$this->default_params['category_order'], 'category');
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_child_display_type');?>><?php echo JText::_('SHOW_SUB_CATEGORIES'); ?></td>
		<td><?php
			echo $this->listType->display('config[default_params][child_display_type]', @$this->default_params['child_display_type']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_child_limit');?>><?php echo JText::_('NUMBER_OF_SUB_CATEGORIES'); ?></td>
		<td>
			<input name="config[default_params][child_limit]" type="text" value="<?php echo @$this->default_params['child_limit'];?>" />
		</td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_number_of_products');?>><?php echo JText::_('SHOW_NUMBER_OF_PRODUCTS'); ?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][number_of_products]', '', @$this->default_params['number_of_products']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_links_on_main_categories');?>><?php echo JText::_('LINK_ON_MAIN_CATEGORIES');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][links_on_main_categories]', '', @$this->default_params['links_on_main_categories']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_only_if_products');?>><?php echo JText::_('ONLY_DISPLAY_CATEGORIES_WITH_PRODUCTS'); ?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][only_if_products]', '', @$this->default_params['only_if_products']);
		?></td>
	</tr>

</table>
	</div></div>
</div>

<!-- DISPLAY - DEFAULT PARAMS DIVS -->
<div id="display_default_divs" class="hikashop_backend_tile_edition">
	<div class="hikashop_tile_block"><div>
		<div class="hikashop_tile_title"><?php echo JText::_('DEFAULT_PARAMS_FOR_DIV'); ?></div>
<table class="hk_config_table table" style="width:100%">

	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_div_item_layout_type');?>><?php echo JText::_('TYPE_OF_ITEM_LAYOUT');?></td>
		<td><?php
			echo $this->itemType->display('config[default_params][div_item_layout_type]',@$this->default_params['div_item_layout_type'],$this->js);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_background_color');?>><?php echo JText::_('ITEM_BOX_COLOR');?></td>
		<td><?php
			echo $this->colorType->displayAll('','config[default_params][background_color]',@$this->default_params['background_color']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_margin');?>><?php echo JText::_('ITEM_BOX_MARGIN');?></td>
		<td>
			<input name="config[default_params][margin]" type="text" value="<?php echo @$this->default_params['margin'];?>" />px
		</td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_border_visible');?>><?php echo JText::_('ITEM_BOX_BORDER');?></td>
		<td><?php
			$values = array(
				JHTML::_('select.option', '0', JText::_('HIKASHOP_NO')),
				JHTML::_('select.option', '1', JText::_('HIKASHOP_YES')),
				JHTML::_('select.option', '2', JText::_('THUMBNAIL'))
			);
			echo JHTML::_('hikaselect.radiolist', $values, 'config[default_params][border_visible]' , '', 'value', 'text', @$this->default_params['border_visible']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_rounded_corners');?>><?php echo JText::_('ITEM_BOX_ROUND_CORNER');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][rounded_corners]' , '',@$this->default_params['rounded_corners']);
		?></td>
	</tr>
	<tr>
		<td class="hk_tbl_key"<?php echo $this->docTip('defparams_text_center');?>><?php echo JText::_('TEXT_CENTERED');?></td>
		<td><?php
			echo JHTML::_('hikaselect.booleanlist', 'config[default_params][text_center]' , '',@$this->default_params['text_center']);
		?></td>
	</tr>

</table>
	</div></div>
</div>

</div>
