<?php 
$session = JFactory::getSession();
$t3lock = $session->get('T3.t3lock', 'overview_params');
$session->set('T3.t3lock', null);
$input = JFactory::getApplication()->input;
$form = $this->getForm();

$db = JFactory::getDbo();
$query = $db->getQuery(true);
$query
	->select('id, title')
	->from('#__template_styles')
	->where('template='. $db->quote(T3_TEMPLATE));

$db->setQuery($query);
$styles = $db->loadObjectList();
foreach ($styles as $key => &$style) {
	$style->title = ucwords(str_replace('_', ' ', $style->title));
}

$tplXml = T3_TEMPLATE_PATH . '/templateDetails.xml';
$xml = simplexml_load_file($tplXml);

$frwXml = T3_ADMIN_PATH . '/'. T3_ADMIN . '.xml';
$fxml = simplexml_load_file($frwXml);
if(version_compare(JVERSION,'4',"ge")){
	include T3_ADMIN_PATH . '/admin/tpls/default_j4.php';
}else{
	JFactory::getDocument()->addStylesheet(JUri::base(true).'/templates/'.JFactory::getApplication()->getTemplate().'/css/template' . ( JFactory::getDocument()->direction === 'rtl' ? '-rtl' : '') . '.css');
	include T3_ADMIN_PATH . '/admin/tpls/default.php';
}
?>