Your IP : 216.73.216.191


Current Path : /proc/1908984/root/proc/self/root/proc/self/root/proc/1908984/root/proc/1147586/cwd/
Upload File :
Current File : //proc/1908984/root/proc/self/root/proc/self/root/proc/1908984/root/proc/1147586/cwd/sources.tar

tmpl/default_edit.php000064400000004430152377171660010702 0ustar00<?php 
/** 
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );
$formEnctype = $this->record->type == 'plugin' ? 'enctype="multipart/form-data"' : null;
?>
<form <?php echo $formEnctype;?> action="index.php" method="post" name="adminForm" id="adminForm">
	<!-- New Plugin Data source only --> 
	<?php if($this->record->type == 'plugin' && !$this->record->id) {
		echo $this->loadTemplate('edit_pluginimport');
	}?>	
	<!-- Data source details --> 
	<?php echo $this->loadTemplate('edit_details'); ?>
	<!-- Data source parameters --> 
	<?php echo $this->loadTemplate('edit_params'); ?>
	<!-- Data source parameters for XML format --> 
	<?php echo $this->loadTemplate('edit_xmlparams'); ?>
	<!-- Menu Data source only --> 
	<?php if($this->record->type == 'menu') {
		echo $this->loadTemplate('edit_menu');
	}?>
	<!-- Content Data source only --> 
	<?php if($this->record->type == 'content') {
		echo $this->loadTemplate('edit_content');
	}?>
	<!-- User Data source only --> 
	<?php if ($this->record->type == 'user') {
		echo $this->loadTemplate('edit_sqlquery');
	}?>
	<!-- Plugin Data source only --> 
	<?php if($this->record->type == 'plugin' && $this->record->id) {
		echo $this->loadTemplate('edit_pluginparams');
	}?>	
	<!-- Links Data source only --> 
	<?php if($this->record->type == 'links') {
		echo $this->loadTemplate('edit_links');
	}?>	
	<input type="hidden" name="option" value="<?php echo $this->option?>" />
	<input type="hidden" name="id" value="<?php echo $this->record->id; ?>" />
	<input type="hidden" id="regenerate_query" name="regenerate_query" value="" />
	<input type="hidden" name="task" value="" />
</form>

<!-- Go to bottom -->
<div class="label label-default" id="gobottom">
	<span class="glyphicon glyphicon-arrow-down"></span> <?php echo JText::_('COM_JMAP_GO_TO_BOTTOM');?>
</div>

<!-- Back to top -->
<div class="label label-default" id="backtop">
	<span class="glyphicon glyphicon-arrow-up"></span> <?php echo JText::_('COM_JMAP_BACK_TO_TOP');?>
</div>tmpl/default_edit_content.php000064400000011512152377171660012433 0ustar00<?php 
/** 
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );
$exclusionWay = $this->record->params->get('choose_exclusion_way', 'exclude');
$categoryExclusionText = $exclusionWay == 'exclude' ? 'COM_JMAP_CHOOSE_CATEGORIES_EXCLUSION' : 'COM_JMAP_CHOOSE_CATEGORIES_INCLUSION';
$articleExclusionText = $exclusionWay == 'exclude' ? 'COM_JMAP_CHOOSE_ARTICLES_EXCLUSION' : 'COM_JMAP_CHOOSE_ARTICLES_INCLUSION';
?>
<div id="accordion_datasource_excludecats" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_excludecats"><h4><?php echo $exclusionWay == 'exclude' ? JText::_('COM_JMAP_CATEGORIES_EXCLUSION' ) : JText::_('COM_JMAP_CATEGORIES_INCLUSION' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_excludecats">
		<table  class="admintable">
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramschoose_exclusion_way-lbl" for="paramschoose_exclusion_way" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_CHOOSE_EXCLUSION_WAY_DESC');?>"><?php echo JText::_('COM_JMAP_CHOOSE_EXCLUSION_WAY');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_choose_exclusion_way" class="radio btn-group">
						<?php 
							$arr = array(
								JHtml::_('select.option',  'include', JText::_('COM_JMAP_INCLUDE' ) ),
								JHtml::_('select.option',  'exclude', JText::_('COM_JMAP_EXCLUDE' ) )
							);
							echo JHtml::_('select.radiolist',  $arr, 'params[choose_exclusion_way]', '', 'value', 'text', $exclusionWay, 'paramschoose_exclusion_way_');
						?>
					</fieldset>
				</td>
			</tr>
			
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramschoose_catexclusion-lbl" for="paramschoose_catexclusion" class="hasPopover" data-content="<?php echo JText::_($categoryExclusionText . '_DESC');?>"><?php echo JText::_($categoryExclusionText);?></label></span>
				</td>
				<td class="paramlist_value">
					<?php echo $this->lists['catexclusion']; ?>
				</td>
			</tr>
		</table>
	</div>
</div>

<?php if(isset($this->lists['articleexclusion'])):?>
<div id="accordion_datasource_excludearticles" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_excludearticles"><h4><?php echo $exclusionWay == 'exclude' ? JText::_('COM_JMAP_ARTICLES_EXCLUSION' ) : JText::_('COM_JMAP_ARTICLES_INCLUSION' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_excludearticles">
		<table  class="admintable">
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramschoose_artexclusion-lbl" for="paramschoose_artexclusion" class="hasPopover" data-content="<?php echo JText::_($articleExclusionText . '_DESC');?>"><?php echo JText::_($articleExclusionText);?></label></span>
				</td>
				<td class="paramlist_value">
					<?php echo $this->lists['articleexclusion']; ?>
				</td>
			</tr>
		</table>
	</div>
</div>
<?php endif;?>

<div id="accordion_datasource_catspriorities" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_catspriorities"><h4><?php echo JText::_('COM_JMAP_CATS_PRIORITIES' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_catspriorities">
		<table  class="admintable">
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramspriorities-lbl" for="paramspriorities" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ASSIGN_CATS_PRIORITIES_DESC');?>"><?php echo JText::_('COM_JMAP_ASSIGN_CATS_PRIORITIES');?></label></span>
				</td>
				<td class="paramlist_value">
					<?php echo $this->lists['cats_priorities']; ?>
					<?php echo $this->lists['priorities']; ?>
					<div id="controls_grouper">
						<button data-role="priority_action" data-action="store" data-type="CatsPriorities" class="btn btn-xs btn-primary active"><span class="glyphicon glyphicon-floppy-disk"></span><?php echo JText::_('COM_JMAP_ASSIGN_MENU_PRIORITIES_BTN');?></button>
						<button data-role="priority_action" data-action="remove" data-type="CatsPriorities" class="btn btn-xs btn-default active"><span class="glyphicon glyphicon-remove"></span><?php echo JText::_('COM_JMAP_REMOVE_MENU_PRIORITIES_BTN');?></button>
					</div>
				</td>
			</tr>
		</table>
	</div>
</div>tmpl/default_edit_details.php000064400000004552152377171660012414 0ustar00<?php 
/** 
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' ); 
?>
<div id="accordion_datasource_details" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_details"><h4><?php echo JText::_('COM_JMAP_DETAILS' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_details">
		<table class="admintable">
		<tbody>
			<tr>
				<td class="key left_title">
					<label for="title">
						<?php echo JText::_('COM_JMAP_NAME' ); ?>:
					</label>
				</td>
				<td class="right_details">
					<?php $readOnly = in_array($this->record->type, array('menu', 'plugin')) ? 'readonly="readonly"' : '';?>
					<input class="inputbox" type="text" <?php echo $readOnly;?> name="name" id="name" data-validation="required" size="50" value="<?php echo $this->record->name;?>" />
				</td>
			</tr>
			<tr>
				<td class="key left_title">
					<label for="type">
						<?php echo JText::_('COM_JMAP_TYPE' ); ?>:
					</label>
				</td>
				<td class="right_details">
					<input class="inputbox" type="text" readonly="readonly" name="type" id="type" size="50" value="<?php echo $this->record->type;?>" />
				</td>
			</tr> 
			<tr>
				<td class="key left_title">
					<label for="description">
						<?php echo JText::_('COM_JMAP_DESCRIPTION' ); ?>:
					</label>
				</td>
				<td class="right_details">
					<?php $readOnly = in_array($this->record->type, array('plugin')) && !$this->record->id ? 'readonly="readonly"' : '';?>
					<textarea class="inputbox" <?php echo $readOnly;?> name="description" id="description" rows="5" cols="80" ><?php echo $this->record->description;?></textarea>
				</td>
			</tr> 
			<tr>
				<td class="key left_title">
					<label for="description">
						<?php echo JText::_('COM_JMAP_PUBLISHED' ); ?>:
					</label>
				</td>
				<td class="right_details">
					<fieldset class="radio btn-group">
						<?php echo $this->lists['published']; ?>
					</fieldset>
				</td>
			</tr>
		</tbody>
		</table>
	</div>
</div>tmpl/default_edit_links.php000064400000005043152377171660012103 0ustar00<?php 
/** 
 * @package JMAP::CONFIG::administrator::components::com_jmap
 * @subpackage views
 * @subpackage config
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' ); 
?>
<div id="accordion_datasource_raw_links" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_raw_links"><h4><?php echo JText::_('COM_JMAP_RAW_SOURCE_LINKS' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_raw_links">
		<table class="admintable rawlinks_table">
			<td class="key left_title">
				<label class="title_label"><?php echo JText::_('COM_JMAP_ALL_LINKS');?></label>
				<input type="checkbox" data-role="selectall" value=""/>
			</td>
			<td class="right_details">
				<div id="rawlink_controls_grouper">
					<button data-role="rawlinks_action" data-action="add" class="btn btn-xs btn-success active">
						<span class="glyphicon glyphicon-plus"></span> <?php echo JText::_('COM_JMAP_ADD_NEWLINK_BTN');?>
					</button>
					<button data-role="rawlinks_action" data-action="delete" class="btn btn-xs btn-danger active">
						<span class="glyphicon glyphicon-remove"></span> <?php echo JText::_('COM_JMAP_DELETE_LINKS_BTN');?>
					</button>
				</div>
			</td>
		</table>
		<table class="admintable rawlinks_table rawlinks_table_links">
			<?php if(!empty($this->record->sqlquery_managed->link)):?>
				<?php for ($i=0, $n=count( $this->record->sqlquery_managed->link ); $i < $n; $i++): ?>
					<tr>
						<td class="key left_title">
							<label class="title_label"><?php echo JText::sprintf('COM_JMAP_RAW_SOURCE_LINK', $i + 1);?> </label>
							<input type="checkbox" value=""/>
						</td>
						<td class="right_details">
							<label class="as label label-primary"><?php echo JText::_('COM_JMAP_LINK_TITLE');?></label>
							<input class="sitemap_rawtitle" type="text" name="sqlquery_managed[title][]" value="<?php echo $this->record->sqlquery_managed->title[$i];?>">
			 
							<label class="as label label-primary"><?php echo JText::_('COM_JMAP_LINK_HREF');?></label>
							<input class="sitemap_rawlink" type="text" data-validation="required url" name="sqlquery_managed[link][]" value="<?php echo $this->record->sqlquery_managed->link[$i];?>">
						</td>						
					</tr>
				<?php endfor;?>
			<?php endif;?>
		</table>
	</div>
</div>tmpl/default_edit_menu.php000064400000005106152377171660011727 0ustar00<?php 
/** 
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' ); 
?>
<div id="accordion_datasource_excludemenu" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_excludemenu"><h4><?php echo JText::_('COM_JMAP_MENU_EXCLUSION' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_excludemenu">
		<table  class="admintable">
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_CHOOSE_MENU_EXCLUSION_DESC');?>"><?php echo JText::_('COM_JMAP_CHOOSE_MENU_EXCLUSION');?></label></span>
				</td>
				<td class="paramlist_value">
					<?php echo $this->lists['exclusion']; ?>
				</td>
			</tr>
		</table>
	</div>
</div>

<div id="accordion_datasource_menupriorities" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_menupriorities"><h4><?php echo JText::_('COM_JMAP_MENU_PRIORITIES' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_menupriorities">
		<table  class="admintable">
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ASSIGN_MENU_PRIORITIES_DESC');?>"><?php echo JText::_('COM_JMAP_ASSIGN_MENU_PRIORITIES');?></label></span>
				</td>
				<td class="paramlist_value">
					<?php echo $this->lists['menu_priorities']; ?>
					<?php echo $this->lists['priorities']; ?>
					<div id="controls_grouper">
						<button data-role="priority_action" data-action="store" data-type="MenuPriorities" class="btn btn-xs btn-primary active"><span class="glyphicon glyphicon-floppy-disk"></span><?php echo JText::_('COM_JMAP_ASSIGN_MENU_PRIORITIES_BTN');?></button>
						<button data-role="priority_action" data-action="remove" data-type="MenuPriorities" class="btn btn-xs btn-default active"><span class="glyphicon glyphicon-remove"></span><?php echo JText::_('COM_JMAP_REMOVE_MENU_PRIORITIES_BTN');?></button>
					</div>
				</td>
			</tr>
		</table>
	</div>
</div>tmpl/default_edit_params.php000064400000052647152377171660012262 0ustar00<?php 
/** 
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' ); 
?>
<div id="accordion_datasource_parameters" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_parameters"><h4><?php echo JText::_('COM_JMAP_Parameters' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_parameters">
		<table  class="admintable">
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsopentarget-lbl" for="paramsopentarget" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_OPEN_TARGET_DESC');?>"><?php echo JText::_('COM_JMAP_OPEN_TARGET');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_opentarget" class="radio btn-group">
						<?php 
							$arr = array(
								JHtml::_('select.option',  '', JText::_('JGLOBAL_USE_GLOBAL' ) ),
								JHtml::_('select.option',  '_self', JText::_('COM_JMAP_SELF_WINDOW' ) ),
								JHtml::_('select.option',  '_blank', JText::_('COM_JMAP_BLANK_WINDOW' ) ),
								JHtml::_('select.option',  '_parent', JText::_('COM_JMAP_PARENT_WINDOW' ) )
							);
							echo JHtml::_('select.radiolist',  $arr, 'params[opentarget]', '', 'value', 'text', $this->record->params->get('opentarget', ''), 'params_opentarget_');
						?>
					</fieldset>
				</td>
			</tr>
			<?php if($this->record->type != 'links'):?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsdisable_acl-lbl" for="paramsdisable_acl" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_DISABLE_ACL_DESC');?>"><?php echo JText::_('COM_JMAP_DISABLE_ACL');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_disable_acl" class="radio btn-group">
						<?php 
							$arr = array(
								JHtml::_('select.option',  '', JText::_('JGLOBAL_USE_GLOBAL' ) ),
								JHtml::_('select.option',  'enabled', JText::_('JENABLED' ) ),
								JHtml::_('select.option',  'disabled', JText::_('JDISABLED' ) )
							);
							echo JHtml::_('select.radiolist',  $arr, 'params[disable_acl]', '', 'value', 'text', $this->record->params->get('disable_acl', ''), 'params_disable_acl');
						?>
					</fieldset>
				</td>
			</tr>
			<?php endif; ?>
			<?php if(($this->record->type == 'links' || $this->record->type == 'user' || $this->record->type == 'plugin') && array_key_exists('languages', $this->lists)):?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramslanguages-lbl" for="paramslanguages" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_DATASOURCE_LANGUAGE_DESC');?>"><?php echo JText::_('COM_JMAP_DATASOURCE_LANGUAGE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_languages" class="radio btn-group">
						<?php echo $this->lists['languages'];?>
					</fieldset>
				</td>
			</tr>
			<?php endif; ?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramshtmlinclude-lbl" for="paramshtmlinclude" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_HTML_ELEMENTS_INCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_HTML_ELEMENTS_INCLUDE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_htmlinclude" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[htmlinclude]', null,  $this->record->params->get('htmlinclude', 1), 'JYES', 'JNO', 'params_htmlinclude_');?>
					</fieldset>
				</td>
			</tr>
			<!-- RSS feed include if supported extension --> 
			<?php if($this->supportedRSSExtension || $this->record->type == 'plugin'):?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsrssinclude-lbl" for="paramsrssinclude" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_RSS_ELEMENTS_INCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_RSS_ELEMENTS_INCLUDE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_rssinclude" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[rssinclude]', null,  $this->record->params->get('rssinclude', 1), 'JYES', 'JNO', 'params_rssinclude_');?>
					</fieldset>
				</td>
			</tr>
			<?php endif; ?>
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SHOWED_SOURCE_TITLE_DESC');?>"><?php echo JText::_('COM_JMAP_SHOWED_SOURCE_TITLE');?></label></span>
				</td>
				<td class="paramlist_value">
					<input type="text" name="params[title]" id="paramstitle" value="<?php echo htmlspecialchars($this->record->params->get('title', ''), ENT_QUOTES, 'UTF-8');?>" class="text_area" size="50">
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsshow_title-lbl" for="paramsshow_title" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SHOW_SOURCE_TITLE_DESC');?>"><?php echo JText::_('COM_JMAP_SHOW_SOURCE_TITLE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_showtitle" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[showtitle]', null,  $this->record->params->get('showtitle', 1), 'JYES', 'JNO', 'params_showtitle_');?>
					</fieldset>
				</td>
			</tr>
			<!-- User Data source --> 
			<?php if($this->hasCreatedDate):?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramscreated_date-lbl" for="paramscreated_date" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_CREATED_DATE_DESC');?>"><?php echo JText::_('COM_JMAP_CREATED_DATE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_created_date" class="radio btn-group">
						<?php 
							$monthsOptions = array();
							$monthsOptions[] = JHtml::_('select.option',  '', JText::_('COM_JMAP_NO_DATE_LIMITS' ));
							for($months=1,$maxmonths=60;$months<=$maxmonths;$months++) {
								if($months > 1) {
									$monthsOptions[] = JHtml::_('select.option',  $months, JText::sprintf('COM_JMAP_LAST_MONTHS', $months));
								} else {
									$monthsOptions[] = JHtml::_('select.option',  $months, JText::_('COM_JMAP_LAST_MONTH'));
								}
							}
							echo JHtml::_('select.genericlist',  $monthsOptions, 'params[created_date]', '', 'value', 'text', $this->record->params->get('created_date', ''), 'params_created_date');
						?>
					</fieldset>
				</td>
			</tr>
			<?php endif;?>
			<?php if($this->hasManifest):?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsmultilevel_tree-lbl" for="paramsmultilevel_tree" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_MULTILEVEL_CATEGORIES_DESC');?>"><?php echo JText::_('COM_JMAP_MULTILEVEL_CATEGORIES');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_multilevel_categories" class="radio btn-group">
						<?php 
							$arr = array(
								JHtml::_('select.option',  '', JText::_('JGLOBAL_USE_GLOBAL' ) ),
								JHtml::_('select.option',  1, JText::_('JENABLED' ) ),
								JHtml::_('select.option',  0, JText::_('JDISABLED' ) )
							);
							echo JHtml::_('select.radiolist',  $arr, 'params[multilevel_categories]', '', 'value', 'text', $this->record->params->get('multilevel_categories', ''), 'params_multilevel_categories_');
						?>
					</fieldset>
				</td>
			</tr>
			<?php endif;?>
			<?php if($this->record->type == 'content'):?>
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="params_orderbydate-lbl" for="params_orderbydate" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ORDERBYDATE_DESC');?>"><?php echo JText::_('COM_JMAP_ORDERBYDATE');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_params_orderbydate" class="radio btn-group">
							<?php 
							$arr = array(
									JHtml::_('select.option',  0, JText::_('JNO' ) ),
									JHtml::_('select.option',  1, JText::_('COM_JMAP_YES_BYDATE_CREATED' ) ),
									JHtml::_('select.option',  2, JText::_('COM_JMAP_YES_BYDATE_MODIFIED' ) ),
									JHtml::_('select.option',  3, JText::_('COM_JMAP_YES_BYDATE_PUBLISHED' ) )
							);
							echo JHtml::_('select.radiolist',  $arr, 'params[orderbydate]', '', 'value', 'text', $this->record->params->get('orderbydate', 0), 'params_orderbydate_');?>
						</fieldset>
					</td>
				</tr>
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="params_orderbyalpha-lbl" for="params_orderbyalpha" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ORDERBYALPHA_DESC');?>"><?php echo JText::_('COM_JMAP_ORDERBYALPHA');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_params_orderbyalpha" class="radio btn-group">
							<?php echo JHtml::_('select.booleanlist', 'params[orderbyalpha]', null,  $this->record->params->get('orderbyalpha', 0), 'JYES', 'JNO', 'params_orderbyalpha_');?>
						</fieldset>
					</td>
				</tr>
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="params_limit_featured_articles-lbl" for="params_limit_featured_articles" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_LIMITFEATURED_ARTICLES_DESC');?>"><?php echo JText::_('COM_JMAP_LIMITFEATURED_ARTICLES');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_params_orderbyalpha" class="radio btn-group">
							<?php echo JHtml::_('select.booleanlist', 'params[limit_featured_articles]', null,  $this->record->params->get('limit_featured_articles', 0), 'JYES', 'JNO', 'params_limit_featured_articles_');?>
						</fieldset>
					</td>
				</tr>
				<!-- Rule expand state by data source level --> 
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="params_show_content_expanded-lbl" for="params_show_content_expanded" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SHOW_CONTENT_EXPANDED_DESC');?>"><?php echo JText::_('COM_JMAP_SHOW_CONTENT_EXPANDED');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_show_content_expanded" class="radio btn-group">
							<?php 
								$arr = array(
									JHtml::_('select.option',  '', JText::_('JGLOBAL_USE_GLOBAL' ) ),
									JHtml::_('select.option',  2, JText::_('JENABLED' ) ),
									JHtml::_('select.option',  1, JText::_('JDISABLED' ) )
								);
								echo JHtml::_('select.radiolist',  $arr, 'params[show_content_expanded]', '', 'value', 'text', $this->record->params->get('show_content_expanded', ''), 'show_content_expanded_');
							?>
						</fieldset>
					</td>
				</tr>
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="params_exclude_all_articles-lbl" for="params_exclude_all_articles" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_EXCLUDE_ALL_ARTICLES_DESC');?>"><?php echo JText::_('COM_JMAP_EXCLUDE_ALL_ARTICLES');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_params_excludeallarticles" class="radio btn-group">
							<?php echo JHtml::_('select.booleanlist', 'params[exclude_all_articles]', null,  $this->record->params->get('exclude_all_articles', 0), 'JYES', 'JNO', 'params_exclude_all_articles_');?>
						</fieldset>
					</td>
				</tr>
			<?php endif; ?>
			<?php if($this->record->type == 'content' || $this->record->type == 'plugin'):?>
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramslinkablecontentcats-lbl" for="paramslinkablecontentcats" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_LINKABLE_CONTENT_CATS_DESC');?>"><?php echo JText::_('COM_JMAP_LINKABLE_CONTENT_CATS');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_datasource_linkable_cats" class="radio btn-group">
							<?php echo JHtml::_('select.booleanlist', 'params[linkable_content_cats]', null,  $this->record->params->get('linkable_content_cats', 0), 'JYES', 'JNO', 'params_linkable_content_cats_');?>
						</fieldset>
					</td>
				</tr>
			<?php endif; ?>
			<?php if($this->record->type == 'content' || ($this->record->type == 'user' && $this->isCategorySource && $this->record->params->get('view', null))): ?>
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsmergemenutree-lbl" for="paramsmergemenutree" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_MERGE_MENU_TREE_DESC');?>"><?php echo JText::_('COM_JMAP_MERGE_MENU_TREE');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_datasource_merge_menu_tree" class="radio btn-group">
							<?php 
								$arr = array(
									JHtml::_('select.option', '', JText::_('JNO' ) ),
									JHtml::_('select.option', 'yes', JText::_('JYES' ) ),
									JHtml::_('select.option', 'yeshide', JText::_('COM_JMAP_YES_HIDE' ) )
								);
								echo JHtml::_('select.radiolist',  $arr, 'params[merge_menu_tree]', '', 'value', 'text', $this->record->params->get('merge_menu_tree', ''), 'merge_menu_tree_');
							?>
						</fieldset>
					</td>
				</tr>
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsmergemenutreelevels-lbl" for="paramsmergemenutreelevels" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_MERGE_MENU_TREE_LEVELS_DESC');?>"><?php echo JText::_('COM_JMAP_MERGE_MENU_TREE_LEVELS');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_datasource_merge_menu_tree_levels" class="radio btn-group">
							<?php 
								$arr = array(
									JHtml::_('select.option', 'toplevel', JText::_('COM_JMAP_MERGE_TOPLEVEL' ) ),
									JHtml::_('select.option', 'childlevels', JText::_('COM_JMAP_MERGE_CHILDLEVEL' ) ),
									JHtml::_('select.option', 'topchildlevels', JText::_('COM_JMAP_MERGE_TOPCHILDLEVEL' ) )
								);
								echo JHtml::_('select.radiolist',  $arr, 'params[merge_menu_tree_levels]', '', 'value', 'text', $this->record->params->get('merge_menu_tree_levels', 'toplevel'), 'merge_menu_tree_levels_');
							?>
						</fieldset>
					</td>
				</tr>
			<?php endif;?>
			<?php if($this->record->type == 'user'):?>
				<?php if($this->hasItemsCategorization): ?>
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramslinkablecats-lbl" for="paramslinkablecats" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_LINKABLE_CATS_DESC');?>"><?php echo JText::_('COM_JMAP_LINKABLE_CATS');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_datasource_linkable_cats" class="radio btn-group">
							<?php 
								$arr = array(
									JHtml::_('select.option', '', JText::_('JNO' ) ),
									JHtml::_('select.option', 'yes', JText::_('JYES' ) ),
									JHtml::_('select.option', 'yeshide', JText::_('COM_JMAP_YES_HIDE' ) )
								);
								echo JHtml::_('select.radiolist',  $arr, 'params[linkable_cats]', '', 'value', 'text', $this->record->params->get('linkable_cats', ''), 'params_linkable_cats_');
							?>
						</fieldset>
					</td>
				</tr>
				<?php endif;?>
				<!-- Rule expand state by data source level --> 
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="params_show_content_expanded-lbl" for="params_show_content_expanded" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SHOW_CONTENT_EXPANDED_DESC');?>"><?php echo JText::_('COM_JMAP_SHOW_CONTENT_EXPANDED');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_show_content_expanded" class="radio btn-group">
							<?php 
								$arr = array(
									JHtml::_('select.option',  '', JText::_('JGLOBAL_USE_GLOBAL' ) ),
									JHtml::_('select.option',  2, JText::_('JENABLED' ) ),
									JHtml::_('select.option',  1, JText::_('JDISABLED' ) )
								);
								echo JHtml::_('select.radiolist',  $arr, 'params[show_content_expanded]', '', 'value', 'text', $this->record->params->get('show_content_expanded', ''), 'show_content_expanded_');
							?>
						</fieldset>
					</td>
				</tr>
				<!-- Parameters section to perform replacements in the final SEF rewritten links --> 
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="params_enable_sef_links_replacements-lbl" for="params_enable_sef_links_replacements" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ENABLE_SEF_LINKS_REPLACEMENTS_DESC');?>"><?php echo JText::_('COM_JMAP_ENABLE_SEF_LINKS_REPLACEMENTS');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_enable_sef_links_replacements" class="radio btn-group">
							<?php echo JHtml::_('select.booleanlist', 'params[enable_sef_links_replacements]', null,  $this->record->params->get('enable_sef_links_replacements', 0), 'JYES', 'JNO', 'params_enable_sef_links_replacements_');?>
						</fieldset>
					</td>
				</tr>
				<tr>
					<td class="paramlist_key left_title">
						<span class="editlinktip"><label id="seflinksreplacementssource-lbl" for="seflinksreplacementssource" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SEF_LINKS_REPLACEMENTS_SOURCE_DESC');?>"><?php echo JText::_('COM_JMAP_SEF_LINKS_REPLACEMENTS_SOURCE');?></label></span>
					</td>
					<td class="paramlist_value">
						<input type="text" name="params[sef_links_replacements_source]" id="seflinksreplacementssource" value="<?php echo htmlspecialchars($this->record->params->get('sef_links_replacements_source', ''), ENT_QUOTES, 'UTF-8');?>" class="text_area" size="50">
					</td>
				</tr>
				<tr>
					<td class="paramlist_key left_title">
						<span class="editlinktip"><label id="seflinksreplacementstarget-lbl" for="seflinksreplacementstarget" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SEF_LINKS_REPLACEMENTS_TARGET_DESC');?>"><?php echo JText::_('COM_JMAP_SEF_LINKS_REPLACEMENTS_TARGET');?></label></span>
					</td>
					<td class="paramlist_value">
						<input type="text" name="params[sef_links_replacements_target]" id="seflinksreplacementstarget" value="<?php echo htmlspecialchars($this->record->params->get('sef_links_replacements_target', ''), ENT_QUOTES, 'UTF-8');?>" class="text_area" size="50">
					</td>
				</tr>
				<!-- Debug SQL data source --> 
				<tr>
					<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsdebug_mode-lbl" for="paramsdebug_mode" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_DEBUG_MODE_DESC');?>"><?php echo JText::_('COM_JMAP_DEBUG_MODE');?></label></span></td>
					<td class="paramlist_value">
						<fieldset id="jform_datasource_debugmode" class="radio btn-group">
							<?php echo JHtml::_('select.booleanlist', 'params[debug_mode]', null,  $this->record->params->get('debug_mode', 0), 'JYES', 'JNO', 'params_debugmode_');?>
						</fieldset>
					</td>
				</tr>
			<?php endif;?>
			<!-- Menu Data source --> 
			<?php if($this->record->type == 'menu'):?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsdounpublished-lbl" for="paramsdounpublished" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_DOUPUBLISHED_DESC');?>"><?php echo JText::_('COM_JMAP_DOUPUBLISHED');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_dounpublished" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[dounpublished]', null,  $this->record->params->get('dounpublished', 0), 'JYES', 'JNO', 'params_dounpublished_');?>
					</fieldset>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsinclude_external_links-lbl" for="paramsinclude_external_links" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_INCLUDE_EXTERNAL_LINKS_DESC');?>"><?php echo JText::_('COM_JMAP_INCLUDE_EXTERNAL_LINKS');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_include_external_links" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[include_external_links]', null,  $this->record->params->get('include_external_links', 1), 'JYES', 'JNO', 'params_include_external_links_');?>
					</fieldset>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label for="paramsmaxlevels" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_MAXLEVELS_DESC');?>"><?php echo JText::_('COM_JMAP_MAXLEVELS');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_maxlevels" class="radio btn-group">
						<?php echo JHtml::_('select.integerlist', 1, 100, 1, 'params[maxlevels]', null,  $this->record->params->get('maxlevels', 5));?>
					</fieldset>
				</td>
			</tr>
			<?php endif;?>
		</table>
		<input type="hidden" name="params[datasource_extension]" value="<?php echo $this->record->params->get('datasource_extension', '');?>"/>
	</div>
</div> tmpl/default_edit_pluginimport.php000064400000002622152377171660013514 0ustar00<?php 
/** 
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' ); 
?>
<div id="accordion_datasource_pluginimport" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_pluginimport"><h4><?php echo JText::_('COM_JMAP_IMPORT_PLUGIN_FILE' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_pluginimport">
		<table class="admintable">
		<tbody>
			<tr>
				<td class="key left_title">
					<label for="title">
						<?php echo JText::_('COM_JMAP_PICK_PLUGIN_FILE' ); ?>:
					</label>
				</td>
				<td class="right_details">
					<div id="uploadrow">
						<span class="input-group">
							<input type="file" id="datasourceinstallplugin" name="datasourceinstallplugin" value="">
						</span>
						<button onclick="Joomla.submitbutton('sources.importPlugins')" class="btn btn-small btn-primary">
							<span class="icon-apply icon-white"></span> <?php echo JText::_('COM_JMAP_IMPORT_PLUGIN' ); ?>
						</button>
					</div>
				</td>
			</tr>
		</tbody>
		</table>
	</div>
</div>tmpl/default_edit_pluginparams.php000064400000002306152377171660013464 0ustar00<?php 
/** 
 * @package JMAP::CONFIG::administrator::components::com_jmap
 * @subpackage views
 * @subpackage config
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' ); 
$fieldSets = $this->params_form->getFieldsets();
?>
<div id="accordion_datasource_plugin_parameters" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_plugin_parameters"><h4><?php echo JText::_('COM_JMAP_PLUGIN_CONFIGURATION' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_plugin_parameters">
		<table  class="admintable">
			<?php foreach ($fieldSets as $name => $fieldSet) :  ?>
				<?php  
				foreach ($this->params_form->getFieldset($name) as $field):
					?>
					<tr>
						<td class="paramlist_key left_title"><?php echo $field->label; ?></td>
						<td class="paramlist_value"><?php echo $field->input; ?></td>
					</tr>
				<?php endforeach; ?>
			<?php endforeach; ?>
		</table>
	</div>
</div>


tmpl/default_edit_sqlquery.php000064400000047254152377171660012662 0ustar00<?php 
/** 
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' ); 
?>
<!-- ************************** QUERY STRING LINK PARAMS ************************** -->
<div id="accordion_datasource_sqlquery_querystring" class="sqlquerier panel panel-info panel-group">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_sqlquery_querystring">
		<h4>
			<?php echo JText::_('COM_JMAP_SQLQUERY_STRINGLINK_PARAMS' ); ?> 
			<a href="http://storejextensions.org/jsitemap_professional_documentation_datasources.html" class="hasPopover glyphicon glyphicon-info-sign dialog_trigger" data-content="<?php echo JText::_('COM_JMAP_HELP_EXPLAIN');?>"></a> 
		</h4>
	</div>
	<div class="panel-body  panel-collapse collapse" id="datasource_sqlquery_querystring">
		<table class="admintable">
			<tr>
				<td class="key left_title">
					<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_VIEWNAME_DESC' ); ?>">
						<?php echo JText::_('COM_JMAP_SQLQUERY_VIEWNAME' ); ?>
					</label>
				</td>
				<td class="right_details">
					<input type="text" name="params[view]" value="<?php echo $this->record->params->get('view', '');?>" />
				</td>
			</tr> 
			
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ENTER_ADDITIONAL_QUERYSTRING_PARAMS_DESC');?>"><?php echo JText::_('COM_JMAP_ENTER_ADDITIONAL_QUERYSTRING_PARAMS');?></label></span>
				</td>
				<td class="paramlist_value">
					<input size="100" type="text" name="params[additionalquerystring]" id="paramsadditionalquerystring" value="<?php echo $this->record->params->get('additionalquerystring', '');?>" class="text_area">
				</td>
			</tr>
			
			<?php if($this->hasRouteManifest): ?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip">
					<label id="paramsguess_sef_itemid-lbl" for="paramsguess_sef_itemid" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_GUESS_SEF_ITEMID_DESC');?>"><?php echo JText::_('COM_JMAP_GUESS_SEF_ITEMID');?></label></span>
				</td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_paramsguess_sef_itemid" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[guess_sef_itemid]', null,  $this->record->params->get('guess_sef_itemid', 0), 'JYES', 'JNO', 'params_guess_sefitemid_');?>
					</fieldset>
				</td>
			</tr>
			<?php endif; ?>
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SEF_ITEMID_DESC');?>"><?php echo JText::_('COM_JMAP_SEF_ITEMID');?></label></span>
				</td>
				<td class="paramlist_value">
					<?php echo $this->lists['sef_itemid']; ?>
				</td>
			</tr>
		</table>
  	</div>
</div>
		
<div id="accordion_datasource_sqlquery" class="sqlquerier panel panel-info panel-group adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_sqlquery">
		<h4>
			<?php echo JText::_('COM_JMAP_SQLQUERY_INFO' ); ?> 
		 	<a href="http://storejextensions.org/jsitemap_professional_documentation_datasources.html" class="hasPopover glyphicon glyphicon-info-sign dialog_trigger" data-content="<?php echo JText::_('COM_JMAP_HELP_EXPLAIN');?>"></a>
		</h4>
	</div>
	<div class="panel-body panel-collapse collapse" id="datasource_sqlquery">
	
		<!-- ************************** MAIN TABLE ************************** -->
		<div id="accordion_datasource_sqlquery_maintable" class="panel panel-warning panel-group">
			<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_sqlquery_maintable"><h4><?php echo JText::_('COM_JMAP_SQLQUERY_MAINTABLE' ); ?></h4></div>
			<div class="panel-body panel-collapse collapse" id="datasource_sqlquery_maintable">
				<table class="admintable">
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_COMPONENTNAME_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_COMPONENTNAME' ); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists['components']; ?>
						</td>
					</tr> 
						
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_TABLENAME_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_TABLENAME' ); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists['tablesMaintable']; ?>
						</td>
					</tr> 
						
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_TITLEFIELD_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_TITLEFIELD' ); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['fieldsTitle']; ?> 
							<label class="as label label-primary">AS</label>
							<input type="text" name="sqlquery_managed[titlefield_as]" value="<?php echo $this->registrySqlQueryManaged->get('titlefield_as', '');?>" />
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_IDFIELD_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_IDFIELD' ); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['fieldsID']; ?> 
							<label class="as label label-primary">AS</label>
							<input type="text" name="sqlquery_managed[idfield_as]" value="<?php echo $this->registrySqlQueryManaged->get('idfield_as', '');?>" />
							<label class="as label label-primary"><?php echo JText::_('COM_JMAP_SQLQUERY_USEALIAS');?></label>
							<fieldset id="jform_datasource_usealias_id" class="radio btn-group">
								<?php echo JHtml::_('select.booleanlist', 'sqlquery_managed[use_alias]', null, $this->registrySqlQueryManaged->get('use_alias', 0), 'JYES', 'JNO', 'params_usealias_id_');?>
							</fieldset>
							<label class="as label label-primary filter"><?php echo JText::_('COM_JMAP_URL_FILTER');?></label>
							<fieldset id="jform_datasource_usealias_id" class="radio btn-group">
								<?php echo JHtml::_('select.booleanlist', 'sqlquery_managed[url_filter_id]', null, $this->registrySqlQueryManaged->get('url_filter_id', 0), 'JYES', 'JNO', 'params_url_filter_id_');?>
							</fieldset>
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_CATIDNAME_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_CATIDNAME' ); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['fieldsCatid']; ?> 
							<label class="as label label-primary">AS</label>
							<input type="text" name="sqlquery_managed[catidfield_as]" value="<?php echo $this->registrySqlQueryManaged->get('catidfield_as', '');?>" />
							<label class="as label label-primary"><?php echo JText::_('COM_JMAP_SQLQUERY_USEALIAS');?></label>
							<fieldset id="jform_datasource_usealias_catid" class="radio btn-group">
								<?php echo JHtml::_('select.booleanlist', 'sqlquery_managed[use_catalias]', null, $this->registrySqlQueryManaged->get('use_catalias', 0), 'JYES', 'JNO', 'params_usealias_catid_');?>
							</fieldset>
							<label class="as label label-primary filter"><?php echo JText::_('COM_JMAP_URL_FILTER');?></label>
							<fieldset id="jform_datasource_usealias_catid" class="radio btn-group">
								<?php echo JHtml::_('select.booleanlist', 'sqlquery_managed[url_filter_catid]', null, $this->registrySqlQueryManaged->get('url_filter_catid', 0), 'JYES', 'JNO', 'params_url_filter_catid_');?>
							</fieldset>
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_ADDITIONAL_PARAMS_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_ADDITIONAL_PARAMS' ); ?>
							</label>
						</td>
						<td class="right_details">
							<textarea type="text" name="sqlquery_managed[additionalparams_maintable]" id="sqlquery_rawparams" rows="5" cols="40" ><?php echo $this->registrySqlQueryManaged->get("additionalparams_maintable", '');?></textarea>
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA' ), 1); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['where1Maintable']; ?> 
							<?php echo $this->lists ['where1MaintableOperators']; ?> 
							<input type="text" name="sqlquery_managed[where1_value_maintable]" value="<?php echo $this->registrySqlQueryManaged->get('where1_value_maintable', '');?>" />
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA' ), 2); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['where2Maintable']; ?> 
							<?php echo $this->lists ['where2MaintableOperators']; ?> 
							<input type="text" name="sqlquery_managed[where2_value_maintable]" value="<?php echo $this->registrySqlQueryManaged->get('where2_value_maintable', '');?>" />
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA' ), 3); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['where3Maintable']; ?> 
							<?php echo $this->lists ['where3MaintableOperators']; ?> 
							<input type="text" name="sqlquery_managed[where3_value_maintable]" value="<?php echo $this->registrySqlQueryManaged->get('where3_value_maintable', '');?>" />
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_ORDERBY_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_ORDERBY' ), 3); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['orderByMaintable']; ?> 
							<label class="order hasPopover label label-primary" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_ORDERBY_DESC2' ); ?>"><span class="glyphicon glyphicon-sort"></span></label>
							<?php echo $this->lists ['orderByDirectionMaintable']; ?> 
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_GROUPBY_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_GROUPBY' ), 3); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['groupByMaintable']; ?> 
						</td>
					</tr> 
				</table>
			</div>
		</div>		
		
		<?php for($jt=1,$maxJoin=3;$jt<=$maxJoin;$jt++):?>
		<!-- **************************  JOIN TABLE #n **************************  -->
		<div id="accordion_datasource_sqlquery_jointable<?php echo $jt;?>" class="panel panel-warning panel-group">
			<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_sqlquery_jointable<?php echo $jt;?>"><h4><?php echo JText::_('COM_JMAP_SQLQUERY_JOINTABLE'. $jt ); ?></h4></div>
			<div class="panel-body panel-collapse collapse" id="datasource_sqlquery_jointable<?php echo $jt;?>">
				<span data-role="jointable_resetter" class="hasPopover glyphicon glyphicon-remove-circle jointable_resetter" data-placement="left" data-content="<?php echo JText::_('COM_JMAP_RESET_JOINTABLE_SETTINGS');?>"></span> 
				<table class="admintable">
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_SELECTJOINTABLES_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_SELECTJOINTABLES' ); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists['tablesJoinFromJointable'.$jt]; ?>
							<?php echo $this->lists ['jointypeJointable'.$jt]; ?> 
							<?php echo $this->lists['tablesJoinWithJointable'.$jt]; ?>
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_SELECTONFIELDS_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_SELECTONFIELDS' ); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['fieldsJoinFromJointable'.$jt]; ?> 
							<label class="as label label-primary marked largealignment">=</label>
							<?php echo $this->lists ['fieldsJoinWithJointable'.$jt]; ?> 
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_GENERIC_SELECT_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_GENERIC_SELECT' ); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['fieldsSelectJointable'.$jt]; ?> 
							<label class="as label label-primary">AS</label>
							<input type="text" name="sqlquery_managed[field_as_jointable<?php echo $jt;?>]" value="<?php echo $this->registrySqlQueryManaged->get('field_as_jointable'.$jt, '');?>" />
							<label class="as label label-primary"><?php echo JText::_('COM_JMAP_SQLQUERY_USECATEGORYTITLE');?></label>
							<fieldset id="jform_datasource_use_category_title_jointable<?php echo $jt;?>" class="radio btn-group">
								<?php echo JHtml::_('select.booleanlist', 'sqlquery_managed[use_category_title_jointable' . $jt . ']', null, $this->registrySqlQueryManaged->get('use_category_title_jointable'.$jt, 0), 'JYES', 'JNO', "params_use_category_title_jointable$jt");?>
							</span>
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_ADDITIONAL_PARAMS_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_ADDITIONAL_PARAMS' ); ?>
							</label>
						</td>
						<td class="right_details">
							<textarea type="text" name="sqlquery_managed[additionalparams_jointable<?php echo $jt;?>]" id="sqlquery_rawparams" rows="5" cols="40" ><?php echo $this->registrySqlQueryManaged->get('additionalparams_jointable'.$jt, '');?></textarea>
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA' ), 1); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['where1Jointable'.$jt]; ?> 
							<?php echo $this->lists ['where1Jointable'.$jt.'Operators']; ?> 
							<input type="text" name="sqlquery_managed[where1_value_jointable<?php echo $jt;?>]" value="<?php echo $this->registrySqlQueryManaged->get('where1_value_jointable'.$jt, '');?>" />
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA' ), 2); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['where2Jointable'.$jt]; ?> 
							<?php echo $this->lists ['where2Jointable'.$jt.'Operators']; ?> 
							<input type="text" name="sqlquery_managed[where2_value_jointable<?php echo $jt;?>]" value="<?php echo $this->registrySqlQueryManaged->get('where2_value_jointable'.$jt, '');?>" />
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_WHEREEXTRA' ), 3); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['where3Jointable'.$jt]; ?> 
							<?php echo $this->lists ['where3Jointable'.$jt.'Operators']; ?> 
							<input type="text" name="sqlquery_managed[where3_value_jointable<?php echo $jt;?>]" value="<?php echo $this->registrySqlQueryManaged->get('where3_value_jointable'.$jt, '');?>" />
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_ORDERBY_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_ORDERBY' ), 3); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['orderByJointable'.$jt]; ?> 
							<label class="order hasPopover label label-primary" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_ORDERBY_DESC2' ); ?>"><span class="glyphicon glyphicon-sort"></span></label>
							<?php echo $this->lists ['orderByDirectionJointable'.$jt]; ?> 
						</td>
					</tr> 
					
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_GROUPBY_DESC' ); ?>">
								<?php echo sprintf(JText::_('COM_JMAP_SQLQUERY_GROUPBY' ), 3); ?>
							</label>
						</td>
						<td class="right_details">
							<?php echo $this->lists ['groupByJointable'.$jt]; ?> 
						</td>
					</tr> 
				</table>
			</div>
		</div>		
		<?php endfor;?>
		
		<!-- ************************** AUTO GENERATED SQL QUERY ************************** -->
		<?php if($this->record->id):?>
		<div id="accordion_datasource_sqlquery_autogenerated" class="panel panel-warning panel-group">
			<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_sqlquery_autogenerated"><h4><?php echo JText::_('COM_JMAP_SQLQUERY_AUTOGENERATED_SQL' ); ?></h4></div>
			<div class="panel-body panel-collapse collapse" id="datasource_sqlquery_autogenerated">
				<table class="admintable">
					<tr>
						<td class="key left_title">
							<label for="content" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_SQLQUERY_RAW_DESC' ); ?>">
								<?php echo JText::_('COM_JMAP_SQLQUERY_RAW' ); ?>
							</label>
						</td>
						<td class="right_details">
							<textarea type="text" name="sqlquery" id="sqlquery"><?php echo $this->record->sqlquery;?></textarea>
							<button id="regenerate_button" class="btn btn-danger hasPopover" data-content="<?php echo JText::_('COM_JMAP_REGENERATE_QUERY_DESC' ); ?>"> 
								<span class="glyphicon glyphicon-refresh"></span> <?php echo JText::_('COM_JMAP_REGENERATE_QUERY' ); ?>
							</button>
						</td>
					</tr> 
				</table>
			</div>
		</div>
		<?php endif;?>
	</div>
</div>tmpl/default_edit_xmlparams.php000064400000023742152377171660012775 0ustar00<?php 
/** 
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' ); 
?>
<div id="accordion_datasource_xmlparameters" class="sqlquerier panel panel-group panel-info adminform">
	<div class="panel-heading accordion-toggle" data-toggle="collapse" data-target="#datasource_xmlparameters"><h4><?php echo JText::_('COM_JMAP_XMLSITEMAP_PARAMETERS' ); ?></h4></div>
	<div class="panel-body panel-collapse collapse" id="datasource_xmlparameters">
		<table  class="admintable">
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsxmlinclude-lbl" for="paramsxmlinclude" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_INCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_INCLUDE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_xmlinclude" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[xmlinclude]', null,  $this->record->params->get('xmlinclude', 1), 'JYES', 'JNO', 'params_xmlinclude_');?>
					</fieldset>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_PRIORITY_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_PRIORITY');?></label></span>
				</td>
				<td class="paramlist_value">
					<?php echo $this->lists['priority']; ?>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_CHANGEFREQUENCY_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_CHANGEFREQUENCY');?></label></span>
				</td>
				<td class="paramlist_value">
					<?php echo $this->lists['changefreq']; ?>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsxmlmobileinclude-lbl" for="paramsxmlmobileinclude" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_MOBILEINCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_MOBILEINCLUDE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_xmlmobileinclude" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[xmlmobileinclude]', null,  $this->record->params->get('xmlmobileinclude', 1), 'JYES', 'JNO', 'params_xmlmobileinclude_');?>
					</fieldset>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsxmlimagesinclude-lbl" for="paramsxmlimagesinclude" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_IMAGESINCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_IMAGESINCLUDE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_xmlimagesinclude" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[xmlimagesinclude]', null,  $this->record->params->get('xmlimagesinclude', 1), 'JYES', 'JNO', 'params_xmlimagesinclude_');?>
					</fieldset>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_IMAGES_FILTERINCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_IMAGES_FILTERINCLUDE');?></label></span>
				</td>
				<td class="paramlist_value">
					<input type="text" name="params[images_filter_include]" value="<?php echo htmlspecialchars($this->record->params->get('images_filter_include', ''), ENT_QUOTES, 'UTF-8');?>" size="100"/>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_IMAGES_FILTEREXCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_IMAGES_FILTEREXCLUDE');?></label></span>
				</td>
				<td class="paramlist_value">
					<input type="text" name="params[images_filter_exclude]" value="<?php echo htmlspecialchars($this->record->params->get('images_filter_exclude', 'pdf,print,email,templates'), ENT_QUOTES, 'UTF-8');?>" size="100"/>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsimagetitle_processor-lbl" for="paramsimagetitle_processor" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_IMAGETITLE_PROCESSOR_DESC');?>"><?php echo JText::_('COM_JMAP_IMAGETITLE_PROCESSOR');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_imagetitle_processor" class="radio btn-group">
						<?php 
						$arr = array(
								JHtml::_('select.option',  '', JText::_( 'JGLOBAL_USE_GLOBAL' ) ),
								JHtml::_('select.option',  'title|alt', JText::_( 'COM_JMAP_TITLE_ALT' ) ), 
								JHtml::_('select.option',  'title', JText::_( 'COM_JMAP_ALWAYS_TITLE' ) ),
								JHtml::_('select.option',  'alt', JText::_( 'COM_JMAP_ALWAYS_ALT' ) )
						);
						echo JHtml::_('select.genericlist',  $arr, 'params[imagetitle_processor]', '', 'value', 'text', $this->record->params->get('imagetitle_processor', ''), 'params_imagetitle_processor_');
						?>
					</fieldset>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsxmlvideosinclude-lbl" for="paramsxmlvideosinclude" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_VIDEOSINCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_VIDEOSINCLUDE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_xmlvideosinclude" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[xmlvideosinclude]', null,  $this->record->params->get('xmlvideosinclude', 1), 'JYES', 'JNO', 'params_xmlvideosinclude_');?>
					</fieldset>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_VIDEOS_FILTERINCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_VIDEOS_FILTERINCLUDE');?></label></span>
				</td>
				<td class="paramlist_value">
					<input type="text" name="params[videos_filter_include]" value="<?php echo htmlspecialchars($this->record->params->get('videos_filter_include', ''), ENT_QUOTES, 'UTF-8');?>" size="100"/>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title">
					<span class="editlinktip"><label id="paramstitle-lbl" for="paramstitle" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_VIDEOS_FILTEREXCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_VIDEOS_FILTEREXCLUDE');?></label></span>
				</td>
				<td class="paramlist_value">
					<input type="text" name="params[videos_filter_exclude]" value="<?php echo htmlspecialchars($this->record->params->get('videos_filter_exclude', ''), ENT_QUOTES, 'UTF-8');?>" size="100"/>
				</td>
			</tr>
			<?php if($this->supportedGNewsExtension):?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsgnewsinclude-lbl" for="paramsgnewsinclude" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_GNEWS_INCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_GNEWS_INCLUDE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_gnewsinclude" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[gnewsinclude]', null,  $this->record->params->get('gnewsinclude', 1), 'JYES', 'JNO', 'params_gnewsinclude_');?>
					</fieldset>
				</td>
			</tr>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsgnews_genres-lbl" for="paramsgnews_genres" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_GNEWS_GENRES_DESC');?>"><?php echo JText::_('COM_JMAP_GNEWS_GENRES');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_gnews_genres" class="radio btn-group">
						<?php echo $this->lists['gnews_genres']; ?>
					</fieldset>
				</td>
			</tr>
			<?php endif;?>
			
			<?php if($this->supportedHreflangExtension):?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramshreflanginclude-lbl" for="paramshreflanginclude" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_HREFLANG_INCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_HREFLANG_INCLUDE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_hreflanginclude" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[hreflanginclude]', null,  $this->record->params->get('hreflanginclude', 1), 'JYES', 'JNO', 'params_hreflanginclude_');?>
					</fieldset>
				</td>
			</tr>
			<?php endif;?>
			
			<?php if(in_array($this->record->type, array('content', 'user', 'plugin', 'links'))):?>
			<tr>
				<td class="paramlist_key left_title"><span class="editlinktip"><label id="paramsxmlampinclude-lbl" for="paramsxmlampinclude" class="hasPopover" data-content="<?php echo JText::_('COM_JMAP_ELEMENTS_AMP_INCLUDE_DESC');?>"><?php echo JText::_('COM_JMAP_ELEMENTS_AMP_INCLUDE');?></label></span></td>
				<td class="paramlist_value">
					<fieldset id="jform_datasource_xmlampinclude" class="radio btn-group">
						<?php echo JHtml::_('select.booleanlist', 'params[xmlampinclude]', null,  $this->record->params->get('xmlampinclude', 0), 'JYES', 'JNO', 'params_xmlampinclude_');?>
					</fieldset>
				</td>
			</tr>
			<?php endif;?>
		</table>
	</div>
</div>tmpl/default_list.php000064400000021644152377171660010736 0ustar00<?php 
/** 
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @subpackage tmpl
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );

// Ordering drag'n'drop management
if ($this->orders['order'] == 's.ordering') {
	$saveOrderingUrl = 'index.php?option=com_jmap&task=sources.saveOrder&format=json&ajax=1';
	JHtml::_('sortablelist.sortable', 'adminList', 'adminForm', strtolower($this->orders['order_Dir']), $saveOrderingUrl);
	$this->document->addScript ( JUri::root ( true ) . '/administrator/components/com_jmap/js/sortablelist.js', 'text/javascript', true );
}
?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
	<table class="full headerlist">
		<tr>
			<td align="left" width="65%">
				<span class="input-group">
				  <span class="input-group-addon"><span class="glyphicon glyphicon-filter"></span> <?php echo JText::_('COM_JMAP_FILTER' ); ?>:</span>
				  <input type="text" name="search" id="search" value="<?php echo htmlspecialchars($this->searchword, ENT_COMPAT, 'UTF-8');?>" class="text_area"/>
				</span>

				<button class="btn btn-primary btn-xs" onclick="this.form.submit();"><?php echo JText::_('COM_JMAP_GO' ); ?></button>
				<button class="btn btn-primary btn-xs" onclick="document.getElementById('search').value='';this.form.submit();"><?php echo JText::_('COM_JMAP_RESET' ); ?></button>
			</td>
			<td>
				<?php if($this->languagePluginEnabled):?>
					<?php echo $this->lists['languages'];?>
				<?php endif;?>
				<?php
				echo $this->lists['state'];
				echo $this->lists['type'];
				echo $this->pagination->getLimitBox();
				?>
			</td>
		</tr>
	</table>

	<table id="adminList" class="adminlist table table-striped table-hover">
	<thead>
		<tr>
			<th style="width:1%">
				<?php echo JText::_('COM_JMAP_NUM' ); ?>
			</th>
			<th style="width:1%">
				<input type="checkbox" name="toggle" value=""  onclick="checkAll(<?php echo count( $this->items ); ?>);" />
			</th>
			<th class="title">
				<?php echo JHtml::_('grid.sort',  'COM_JMAP_NAME', 's.name', @$this->orders['order_Dir'], @$this->orders['order'], 'sources.display'); ?>
			</th>
			<th class="title">
				<?php echo JHtml::_('grid.sort',  'COM_JMAP_TYPE', 's.type', @$this->orders['order_Dir'], @$this->orders['order'], 'sources.display'); ?>
			</th>
			<th class="title hidden-phone">
				<?php echo JText::_('COM_JMAP_DESCRIPTION'); ?>
			</th>
			<th class="order hidden-phone">
				<?php echo JHtml::_('grid.sort',   'COM_JMAP_ORDER', 's.ordering', @$this->orders['order_Dir'], @$this->orders['order'], 'sources.display'); ?>
				<?php 
					if(isset($this->orders['order']) && $this->orders['order'] == 's.ordering'):
						echo JHtml::_('grid.order',  $this->items, 'filesave.png', 'sources.saveOrder'); 
					endif;
				 ?>
			</th>
			<th style="width:5%">
				<?php echo JHtml::_('grid.sort',   'COM_JMAP_PUBLISHED', 's.published', @$this->orders['order_Dir'], @$this->orders['order'], 'sources.display' ); ?>
			</th>
			<th style="width:5%">
				<?php echo JHtml::_('grid.sort',   'COM_JMAP_ID', 's.id', @$this->orders['order_Dir'], @$this->orders['order'], 'sources.display' ); ?>
			</th>
		</tr>
	</thead>
	<?php
	$k = 0;
	$canCheckin = $this->user->authorise('core.manage', 'com_checkin');
	for ($i=0, $n=count( $this->items ); $i < $n; $i++) {
		$row = $this->items[$i];
		$link =  'index.php?option=com_jmap&task=sources.editEntity&cid[]='. $row->id ;

		if($this->user->authorise('core.edit.state', 'com_jmap')) {
			$taskPublishing	= !$row->published ? 'sources.publish' : 'sources.unpublish';
			$altPublishing 	= !$row->published ? JText::_( 'Publish' ) : JText::_( 'Unpublish' );
			$published = '<a href="javascript:void(0);" onclick="return listItemTask(\'cb' . $i . '\',\'' . $taskPublishing . '\')">';
			$published .= $row->published ? '<img alt="' . $altPublishing . '" src="' . JUri::base(true) . '/components/com_jmap/images/icon-16-tick.png" width="16" height="16" border="0" alt="unpublish" />' : JHtml::image('admin/publish_x.png', 'publish', '', true);
			$published .= '</a>';
		} else {
			$altPublishing 	= $row->published ? JText::_( 'Published' ) : JText::_( 'Unpublished' );
			$published = $row->published ? '<img alt="' . $altPublishing . '" src="' . JUri::base(true) . '/components/com_jmap/images/icon-16-tick.png" width="16" height="16" border="0" alt="unpublish" />' : JHtml::image('admin/publish_x.png', 'publish', '', true);
		}
		
		// Check for the links type data source language
		if($row->type == 'links' || $row->type == 'user' || $row->type == 'plugin') {
			$dataSourceParams = json_decode($row->params);
			if($this->languagePluginEnabled && isset($dataSourceParams->datasource_language) && $dataSourceParams->datasource_language != '*') {
				$published .= '<img style="margin-left:10px" src="' . JUri::root(false) . 'media/mod_languages/images/' . JString::str_ireplace('-', '_', $dataSourceParams->datasource_language) . '.gif" alt="language_flag" />';
			}
		}
		
		$checked = null;
		if($row->type == 'user' || $row->type == 'plugin' || $row->type == 'links' || ($row->type == 'content' && $this->cParams->get('multiple_content_sources', 0))) {
			// Access check.
			if($this->user->authorise('core.edit', 'com_jmap')) {
				$checked = $row->checked_out && $row->checked_out != $this->user->id ? 
							JHtml::_('jgrid.checkedout', $i, JFactory::getUser($row->checked_out)->name, $row->checked_out_time, 'sources.', $canCheckin) . '<input type="checkbox" style="display:none" data-enabled="false" id="cb' . $i . '" name="cid[]" value="' . $row->id . '"/>' : 
							JHtml::_('grid.id', $i, $row->id);
			} else {
				$checked = '<input type="checkbox" style="display:none" data-enabled="false" id="cb' . $i . '" name="cid[]" value="' . $row->id . '"/>';
			}
		} else {
			if($row->checked_out && $row->checked_out != $this->user->id) {
				$checked = JHtml::_('jgrid.checkedout', $i, JFactory::getUser($row->checked_out)->name, $row->checked_out_time, 'sources.', $canCheckin) . '<input type="checkbox" style="display:none" data-enabled="false" id="cb' . $i . '" name="cid[]" value="' . $row->id . '"/>';
			} else {
				$checked = '<input type="checkbox" style="display:none" data-enabled="false" id="cb' . $i . '" name="cid[]" value="' . $row->id . '"/>';
			}
		}
		?>
		<tr>
			<td align="center">
				<?php echo $this->pagination->getRowOffset($i); ?>
			</td>
			<td align="center">
				<?php echo $checked; ?>
			</td>
			<td>
				<?php
				if ( ($row->checked_out && ( $row->checked_out != $this->user->get ('id'))) || !$this->user->authorise('core.edit', 'com_jmap') ) {
					echo $row->name;
				} else {
					?>
					<a href="<?php echo $link; ?>" title="<?php echo JText::_('COM_JMAP_EDIT_SOURCE' ); ?>">
						<span class="icon-pencil"></span>
						<?php echo $row->name; ?>
					</a>
					<?php
				}
				?>
			</td>
			<td align="center">
				<?php echo $row->type; ?>
			</td>
			<td class="hidden-phone" align="center">
				<?php echo $row->description; ?>
			</td>
			
			<td class="order hidden-phone">
				<?php 
				$ordering = $this->orders['order'] == 's.ordering'; 
				$disabled = $ordering ?  '' : 'disabled="disabled"'; 
				
				$iconClass = '';
				if (!$this->user->authorise('core.edit', 'com_jmap')) {
					$iconClass = ' inactive';
				}
				elseif (!$ordering) {
					$iconClass = ' inactive tip-top hasTooltip" title="' . JHtml::tooltipText('JORDERINGDISABLED');
				}
				?>
				<div style="display:inline-block" class="sortable-handler<?php echo $iconClass ?>">
					<span class="icon-menu"></span>
				</div>
				
				<span class="moveup"><?php echo $this->pagination->orderUpIcon( $i, true, 'sources.moveorder_up', 'COM_JMAP_MOVE_UP', $ordering); ?></span>
				<span class="movedown"><?php echo $this->pagination->orderDownIcon( $i, $n, true, 'sources.moveorder_down', 'COM_JMAP_MOVE_DOWN', $ordering); ?></span>
				<input type="text" name="order[]" size="5" value="<?php echo $row->ordering; ?>"  <?php echo $disabled; ?>  class="ordering_input" style="text-align: center" />
			</td>
					
			<td align="center">
				<?php echo $published;?>
			</td>
			<td align="center">
				<?php echo $row->id; ?>
			</td>
		</tr>
		<?php
	}
	?>
	<tfoot>
		<td colspan="13">
			<?php echo $this->pagination->getListFooter(); ?>
		</td>
	</tfoot>
	</table>

	<input type="hidden" name="section" value="view" />
	<input type="hidden" name="option" value="<?php echo $this->option;?>" />
	<input type="hidden" name="task" value="sources.display" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo @$this->orders['order'];?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo @$this->orders['order_Dir'];?>" />
</form>tmpl/index.html000064400000000054152377171660007533 0ustar00<html><body bgcolor="#FFFFFF"></body></html>index.html000064400000000054152377171660006557 0ustar00<html><body bgcolor="#FFFFFF"></body></html>view.html.php000064400000024441152377171660007216 0ustar00<?php
// namespace administrator\components\com_jmap\views\sources;
/**
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @author Joomla! Extensions Store
 * @copyright (C) 2021 - Joomla! Extensions Store
 * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html  
 */
defined ( '_JEXEC' ) or die ( 'Restricted access' );
 
/**
 * @package JMAP::SOURCES::administrator::components::com_jmap
 * @subpackage views
 * @subpackage sources
 * @since 1.0
 */
class JMapViewSources extends JMapView {
	// Template view variables
	protected $user;
	protected $pagination;
	protected $searchword;
	protected $lists;
	protected $record;
	protected $registrySqlQueryManaged;
	protected $orders;
	protected $items;
	protected $cParams;
	protected $hasManifest;
	protected $hasItemsCategorization;
	protected $isCategorySource;
	protected $hasRouteManifest;
	protected $hasCreatedDate;
	protected $supportedGNewsExtension;
	protected $supportedRSSExtension;
	protected $supportedHreflangExtension;
	protected $languagePluginEnabled;
	
	/**
	 * Add the page title and toolbar.
	 *
	 * @since	1.6
	 */
	protected function addEditEntityToolbar() {
		$user		= JFactory::getUser();
		$userId		= $user->get('id');
		$isNew		= ($this->record->id == 0);
		$checkedOut	= !($this->record->checked_out == 0 || $this->record->checked_out == $userId);
		$toolbarHelperTitle = $isNew ? 'COM_JMAP_SITEMAP_DATA_NEW' : 'COM_JMAP_SITEMAP_DATA_EDIT';
	
		$doc = JFactory::getDocument();
		$doc->addStyleDeclaration('.icon-48-jmap{background-image:url("components/com_jmap/images/icon-48-data.png")}');
		JToolBarHelper::title( JText::_( $toolbarHelperTitle ), 'jmap' );
	
		if ($isNew)  {
			// For new records, check the create permission.
			if ($isNew && ($user->authorise('core.create', 'com_jmap'))) {
				// Evaluate data source type
				if($this->record->type === 'plugin') {
					JToolBarHelper::apply( 'sources.importPlugins', 'COM_JMAP_IMPORT_PLUGIN');
				} else { // All other cases
					JToolBarHelper::apply( 'sources.applyEntity', 'JAPPLY');
					JToolBarHelper::save( 'sources.saveEntity', 'JSAVE');
				}
			}
		} else {
			// Can't save the record if it's checked out.
			if (!$checkedOut) {
				// Since it's an existing record, check the edit permission, or fall back to edit own if the owner.
				if ($user->authorise('core.edit', 'com_jmap')) {
					JToolBarHelper::apply( 'sources.applyEntity', 'JAPPLY');
					JToolBarHelper::save( 'sources.saveEntity', 'JSAVE');
				}
			}
		}
			
		JToolBarHelper::custom('sources.cancelEntity', 'cancel', 'cancel', 'JCANCEL', false);
	}
	
	
	/**
	 * Add the page title and toolbar.
	 *
	 * @since	1.6
	 */
	protected function addDisplayToolbar() {
		$doc = JFactory::getDocument();
		$doc->addStyleDeclaration('.icon-48-jmap{background-image:url("components/com_jmap/images/icon-48-data.png")}');
	
		$user = JFactory::getUser();
		JToolBarHelper::title( JText::_( 'COM_JMAP_SITEMAP_DATA' ), 'jmap' );
		// Access check.
		if ($user->authorise('core.create', 'com_jmap')) {
			JToolBarHelper::addNew('wizard.display', 'COM_JMAP_NEW_SOURCE');
		}
	
		if ($user->authorise('core.edit', 'com_jmap')) {
			JToolBarHelper::editList('sources.editentity', 'COM_JMAP_EDIT_SOURCE');
		}
	
		JToolBarHelper::custom( 'sources.copyEntity', 'copy.png', 'copy_f2.png', 'COM_JMAP_DUPLICATE' );
	
		if ($user->authorise('core.delete', 'com_jmap') && $user->authorise('core.edit', 'com_jmap')) {
			JToolBarHelper::deleteList(JText::_('COM_JMAP_DELETE_SOURCE'), 'sources.deleteentity');
		}
		
		if ($user->authorise('core.edit', 'com_jmap')) {
			JToolBarHelper::custom('sources.exportEntities', 'download', 'download', 'COM_JMAP_EXPORT_SOURCE', true);
			JToolBarHelper::custom('sources.importEntities', 'upload', 'upload', 'COM_JMAP_IMPORT_SOURCE', false);
		}

		JToolBarHelper::custom('cpanel.display', 'home', 'home', 'COM_JMAP_CPANEL', false);
	}
	
	/**
	 * Default display listEntities
	 *        	
	 * @access public
	 * @param string $tpl
	 * @return void
	 */
	public function display($tpl = null) {
		// Get main records
		$rows = $this->get ( 'Data' );
		$lists = $this->get ( 'Filters' );
		$total = $this->get ( 'Total' );
		
		$doc = JFactory::getDocument();
		$this->loadJQuery($doc);
		$this->loadBootstrap($doc);
		$doc->addScript ( JUri::root ( true ) . '/administrator/components/com_jmap/js/filesources.js' );
		$doc->addScriptDeclaration("function checkAll(n) {
				var form = jQuery('#adminForm');
				var checkItems = jQuery('input[type=checkbox][data-enabled!=false][name!=toggle]', form);
				if(!jQuery('input[type=checkbox][name=toggle]').prop('checked')) {
					jQuery(checkItems).prop('checked', false);
					jQuery('input[name=boxchecked]', form).val(0);
				} else {
					jQuery(checkItems).prop('checked', true);
					if(checkItems.length) {jQuery('input[name=boxchecked]', form).val(checkItems.length)};
				}
				
		};");
		$doc->addScriptDeclaration("
						Joomla.submitbutton = function(pressbutton) {
							Joomla.submitform( pressbutton );
							if (pressbutton == 'sources.exportEntities') {
								jQuery('#adminForm input[name=task]').val('sources.display');
							}
							return true;
						};
					");
		
		// Inject js translations
		$translations = array(
				'COM_JMAP_REQUIRED',
				'COM_JMAP_PICKFILE',
				'COM_JMAP_STARTIMPORT',
				'COM_JMAP_CANCELIMPORT'
		);
		$this->injectJsTranslations($translations, $doc);
		
		$orders = array ();
		$orders ['order'] = $this->getModel ()->getState ( 'order' );
		$orders ['order_Dir'] = $this->getModel ()->getState ( 'order_dir' );
		// Pagination view object model state populated
		$pagination = new JPagination ( $total, $this->getModel ()->getState ( 'limitstart' ), $this->getModel ()->getState ( 'limit' ) );
		
		$this->user = JFactory::getUser ();
		$this->pagination = $pagination;
		$this->searchword = $this->getModel ()->getState ( 'searchword' );
		$this->lists = $lists;
		$this->orders = $orders;
		$this->items = $rows;
		$this->option = $this->getModel ()->getState ( 'option' );
		$this->cParams = $this->getModel ()->getComponentParams();
		$this->languagePluginEnabled = $this->getModel ()->getLanguagePluginEnabled();
		
		// Aggiunta toolbar
		$this->addDisplayToolbar();
		
		parent::display ( 'list' );
	}
	
	/**
	 * Edit entity view
	 *
	 * @access public
	 * @param Object& $row the item to edit
	 * @return void
	 */
	public function editEntity(&$row) {
		// Sanitize HTML Object2Form
		JFilterOutput::objectHTMLSafe( $row );
		$arrayExclusion = array();
		for($wmo=1,$maxOperators=3;$wmo<=$maxOperators;$wmo++) {
			$arrayExclusion[] = 'where'.$wmo.'_operator_maintable';
			for($wmojt=1,$maxjtOperators=3;$wmojt<=$maxjtOperators;$wmojt++) {
				$arrayExclusion[] = 'where'.$wmojt.'_operator_jointable'.$wmo;
			}
		}
		JFilterOutput::objectHTMLSafe( $row->sqlquery_managed, ENT_QUOTES, $arrayExclusion);
		
		// Load JS Client App dependencies
		$doc = JFactory::getDocument();
		$base = JUri::root();
		$this->loadJQuery($doc);
		$this->loadJQueryUI($doc);
		$this->loadBootstrap($doc);
		$this->loadValidation($doc);
		$doc->addStylesheet ( JUri::root ( true ) . '/administrator/components/com_jmap/css/sources.css' );
		$doc->addScriptDeclaration("var jmap_baseURI='$base';");
		
		// Inject js translations
		$translations = array('COM_JMAP_SELECTFIELD',
							  'COM_JMAP_STORED_PRIORITY',
							  'COM_JMAP_ERROR_FOR_PRIORITY',
							  'COM_JMAP_DELETED_PRIORITY',
							  'COM_JMAP_PRIORITY_MAKE_SELECTIONS',
							  'COM_JMAP_VALIDATON_ERROR_NOPRIORITY',
							  'COM_JMAP_PRIORITY_CHOOSE_TO_DELETE',
							  'COM_JMAP_CATEGORIES_EXCLUSION',
							  'COM_JMAP_CATEGORIES_INCLUSION',
							  'COM_JMAP_CHOOSE_CATEGORIES_EXCLUSION',
							  'COM_JMAP_CHOOSE_CATEGORIES_EXCLUSION_DESC',
							  'COM_JMAP_CHOOSE_CATEGORIES_INCLUSION',
							  'COM_JMAP_CHOOSE_CATEGORIES_INCLUSION_DESC',
							  'COM_JMAP_ARTICLES_EXCLUSION',
							  'COM_JMAP_ARTICLES_INCLUSION',
							  'COM_JMAP_CHOOSE_ARTICLES_EXCLUSION',
							  'COM_JMAP_CHOOSE_ARTICLES_EXCLUSION_DESC',
							  'COM_JMAP_CHOOSE_ARTICLES_INCLUSION',
							  'COM_JMAP_CHOOSE_ARTICLES_INCLUSION_DESC',
							  'COM_JMAP_RAW_SOURCE_LINK',
							  'COM_JMAP_LINK_TITLE',
							  'COM_JMAP_LINK_HREF',
							  'COM_JMAP_SELECTED_LINK_RECORDS');
		$this->injectJsTranslations($translations, $doc);
		
		// Load specific JS App
		$doc->addScript ( JUri::root ( true ) . '/administrator/components/com_jmap/js/sources.js' );
		$doc->addScriptDeclaration("
					Joomla.submitbutton = function(pressbutton) {
						if(!jQuery.fn.validation) {
							jQuery.extend(jQuery.fn, jmapjQueryBackup.fn);
						}
				
						jQuery('#adminForm').validation();
				
						if (pressbutton == 'sources.cancelEntity') {
							jQuery('#adminForm').off();
							Joomla.submitform( pressbutton );
							return true;
						}
		
						if(jQuery('#adminForm').validate()) {
							Joomla.submitform( pressbutton );
							return true;
						}
						return false;
					};
				");
		
		$lists = $this->getModel()->getLists($row);
		$this->hasManifest = $this->getModel()->getHasManifest($row);
		$this->hasItemsCategorization = $this->getModel()->getHasCategoryByTitle($row);
		$this->isCategorySource = $this->getModel()->getIsCategorySource($row);
		$this->hasRouteManifest = $this->getModel()->getHasRouteManifest($row);
		$this->hasCreatedDate = $this->getModel()->getHasCreatedDate($row);
		$this->option = $this->getModel ()->getState ( 'option' );
		$this->supportedGNewsExtension = $this->getModel()->getHasGNewsSupport($row);
		$this->supportedRSSExtension = $this->getModel()->getHasRSSSupport($row);
		$this->supportedHreflangExtension = $this->getModel()->getHasHreflangSupport($row);
		
		// Load the parameter form if the data source is of type plugin
		if($row->type == 'plugin') {
			$this->params_form = $this->getModel()->getFormFields($row);
		}
		$this->record = $row;
		$this->lists = $lists;
		
		// Registry sqlquery_managed object
		$this->registrySqlQueryManaged = new JRegistry();
		$this->registrySqlQueryManaged->loadObject($row->sqlquery_managed);
		
		// Aggiunta toolbar
		$this->addEditEntityToolbar();
		
		parent::display ( 'edit' );
	}
}