Beispiel #1
0
 function display($tpl = null)
 {
     FSS_CSSParse::OutputCSS('components/com_fss/assets/css/bootstrap/bootstrap_fssonly.less');
     if (JRequest::getVar('hide_template_warning')) {
         $db = JFactory::getDBO();
         $sql = "REPLACE INTO #__fss_settings (setting, value) VALUES ('bootstrap_template', '" . $db->escape(FSS_Helper::GetTemplate()) . "')";
         $db->setQuery($sql);
         $db->Query();
         JFactory::getApplication()->redirect(JRoute::_('index.php?option=com_fss&view=fsss', false));
     }
     JToolBarHelper::title(JText::_('FREESTYLE_SUPPORT_PORTAL'), 'fss.png');
     FSSAdminHelper::DoSubToolbar();
     parent::display($tpl);
 }
Beispiel #2
0
<?php

/**
 * @package Freestyle Joomla
 * @author Freestyle Joomla
 * @copyright (C) 2013 Freestyle Joomla
 * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
**/
defined('_JEXEC') or die;
?>
<div class="fss_main">


<?php 
if (FSS_Settings::get('bootstrap_template') != FSS_Helper::GetTemplate()) {
    ?>
	<div class="alert alert-danger">
	<h4><?php 
    echo JText::_('FREESTYLE_SUPPORT_HAS_NOT_BEEN_CONFIGURED_FOR_YOUR_CURRENT_TEMPLATE');
    ?>
</h4>
	<?php 
    echo JText::_('WRONG_TEMPLATE_MESSAGE');
    ?>

		<p class="pull-right"><a class="btn fssTip" title="<?php 
    echo JText::_('WARNING_ONLY_DO_THIS_IF_THIS_MESSAGE_WONT_HIDE_BY');
    ?>
" href="<?php 
    echo JRoute::_('index.php?option=com_fss&view=fsss&hide_template_warning=1');
    ?>
    ?>
				<h5 id="css_must"><?php 
    echo JText::_('YOU_MUST_DO_THIS_BEFORE_THE_COMPONENT_WILL_DISPLAY_CORRECTLY_WITH_YOUR_TEMPLATE');
    ?>
</h5>
			<?php 
}
?>
			<p><a class="btn" href="#" id="csstest_btn"><?php 
echo JText::_('AUTO_DETECT_TEMPLATE_SETTINGS');
?>
</a></p>
		</div>
	
		<div id="current_template" style="display: none;"><?php 
echo FSS_Helper::GetTemplate();
?>
</div>
		<input name="bootstrap_template" id="bootstrap_template" type="hidden" value="<?php 
echo FSS_Settings::get('bootstrap_template');
?>
" />
		<fieldset class="adminform">
			<legend><?php 
echo JText::_("BOOTSTRAP_AND_CSS_INCLUSION");
?>
</legend>
			<div class="alert"><?php 
echo JText::_("BOOTSTRAP_AND_CSS_INCLUSION_INFO");
?>
</div>