<?php
/**
 * @extension       Marlev Template
 * @author          Lev Milicenco<support@marlev.it>
 * @link            http://www.marlev.it
 * @copyright       Copyright 2013 marlev.it All Rights Reserved
 * @license         http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 */
defined('_JEXEC') or die;


$yrminifier_active = 'yrminifier-config';
$enable_yrminifier = false;
if ($this->plugins == false || !isset($this->plugins["yrminifier"]) || $this->plugins["yrminifier"]->enabled == 0) {
    $enable_yrminifier = true;
    $yrminifier_active = 'yrminifier-enable';
}
?>
<div class="yrminifier-config tm-prestazioni">
<div class=" tm-config">
    <h3><?php echo JText::_("COM_TMARLEV_PERFORMANCE");?></h3>
   <div class="slide-config-title"  >&nbsp;</div>
<div class="tabs-config">
    <?php echo JHtml::_('bootstrap.startTabSet', 'myTab-minifier', array('active' => $yrminifier_active)); ?>

    <?php if ($enable_yrminifier): ?>
        <?php
        if ($this->plugins["yrminifier"]->enabled == 0) {
            $yrminifier_first = JText::_("COM_TMARLEV_YRMINIFIER_IS_DISABLED");
        } else
            $yrminifier_first = JText::_("COM_TMARLEV_YRMINIFIER_NOT_INSTALLED");
        ?>

        <?php echo JHtml::_('bootstrap.addTab', 'myTab-minifier', 'yrminifier-enable', $yrminifier_first); ?>
        <div class="slide-config-title">
        
                <strong> <?php echo $yrminifier_first; ?> </strong><br/>
                <?php echo JText::_("HOWYRMINIFIERCSS_WORK_DESC"); ?>
           
        </div>
        <?php if ($this->plugins["yrminifier"]->enabled == 0): ?>
            <div class="control-group">
                <div class="control-label">
                    <?php echo $this->form->getLabel('enable_yrminifier'); ?>
                </div>
                <div class="controls">
                    <?php echo $this->form->getInput('enable_yrminifier'); ?>
                </div>
            </div>  
        <?php endif; ?>
        <div class="params-block" data-type="<?php  echo $yrminifier_first?>" data-active="<?php if($enable_yrminifier) echo "active";?>" ></div>
        <?php echo JHtml::_('bootstrap.endTab'); ?>
    <?php endif; ?>


    <?php echo JHtml::_('bootstrap.addTab', 'myTab-minifier', 'yrminifier-config', JText::_("COM_TMARLEV_YRMINIFIER_CONFIG")); ?>

    <div class="slide-config-title" >
        <strong> <?php echo JText::_("COM_TMARLEV_YRMINIFIER_CONFIG"); ?> </strong><br/>
        <?php echo JText::_("HOWYRMINIFIERCSS_WORK_DESC"); ?>
    </div>

    <div class="control-group">
        <div class="control-label">
            <?php echo $this->form->getLabel('yrminifier_mode'); ?>
        </div>
        <div class="controls">
            <?php echo $this->form->getInput('yrminifier_mode'); ?>
        </div>
    </div>
        <div class="params-block" data-type="<?php  echo JText::_("COM_TMARLEV_YRMINIFIER_CONFIG");?>" data-active="<?php if(!$enable_yrminifier) echo "active";?>" ></div>
    <?php echo JHtml::_('bootstrap.endTab'); ?>


    <?php echo JHtml::_('bootstrap.addTab', 'myTab-minifier', 'yrminifier-css', JText::_("COM_TMARLEV_YRMINIFIER_CSS_LABEL")); ?>
    <div class="slide-config-title">
      
           <strong> <?php echo JText::_("COM_TMARLEV_YRMINIFIER_CSS_LABEL") ?></strong>
        
    </div>

    

    <div class="control-group">
        <div class="control-label">
            <?php echo $this->form->getLabel('optimize_css'); ?>
        </div>
        <div class="controls">
            <?php echo $this->form->getInput('optimize_css'); ?>
        </div>
    </div>
    <div class="control-group ">
        <div class="control-label">
            <?php echo $this->form->getLabel('yrminifiercss_esclude'); ?>
        </div>
        <div class="controls large-select">
            <?php echo $this->filecached->css; ?>
            <div class="clearfix"></div>
        </div><div class="clearfix"></div>
    </div>
                <div class="params-block" data-type="<?php  echo JText::_("COM_TMARLEV_YRMINIFIER_CSS_LABEL");?>" data-active="" ></div>
    <?php echo JHtml::_('bootstrap.endTab'); ?>



    <?php echo JHtml::_('bootstrap.addTab', 'myTab-minifier', 'yrminifier-js', JText::_("COM_TMARLEV_YRMINIFIER_JS_LABEL")); ?>
   <div class="slide-config-title">
       
            <strong><?php echo JText::_("COM_TMARLEV_YRMINIFIER_JS_LABEL") ?></strong>
       
    </div>

   

    <div class="control-group">
        <div class="control-label">
            <?php echo $this->form->getLabel('optimize_js'); ?>
        </div>
        <div class="controls">
            <?php echo $this->form->getInput('optimize_js'); ?>
        </div>
    </div>
    <div class="control-group ">
        <div class="control-label">
            <?php echo $this->form->getLabel('yrminifierjs_esclude'); ?>
        </div>
        <div class="controls large-select">
            <?php echo $this->filecached->js; ?>
            <div class="clearfix"></div>
        </div><div class="clearfix"></div>
    </div>
                <div class="params-block" data-type="<?php  echo JText::_("COM_TMARLEV_YRMINIFIER_JS_LABEL");?>" data-active="" ></div>
    <?php echo JHtml::_('bootstrap.endTab'); ?>

    <?php echo JHtml::_('bootstrap.endTabSet'); ?>
</div>
    <div class="clearfix"></div>
</div>
    <div class="clearfix"></div>
</div>
