PHP Classes

File: template/View/render-prop-tool-content.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis Tool Creator   template/View/render-prop-tool-content.phtml   Download  
File: template/View/render-prop-tool-content.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis Tool Creator
Module for the Melis CMS to create tools
Author: By
Last change:
Date: 1 year ago
Size: 2,079 bytes
 

Contents

Class file image Download
<?php
    $id
= $this->id . '_' . $this->zoneconfig['conf']['id'];
   
$melisKey = $this->zoneconfig['conf']['melisKey'];
?>
<div id="<?php echo $id ?>" data-melisKey="<?php echo $melisKey; ?>">
    <div id="<?= $id ?>" data-melisKey="<?= $this->melisKey; ?>" class="widget widget-tabs widget-tabs-double-2 widget-tabs-responsive">
        <div class="widget-head nav">
            <ul class="tabs-label nav-tabs">
                <?php
                   
foreach($this->zoneconfig['interface'] as $keyConfig => $menuConfig) {

                       
$tabId = $this->id . '_' . $menuConfig['conf']['id'];
                       
$tabIcon = $menuConfig['conf']['icon'];
                       
$tabName = $menuConfig['conf']['name'];

                       
$li= '<li>
                            <a class="'
.$tabIcon.'" data-toggle="tab" href="#'.$tabId.'" aria-expanded="true">
                                <i></i>
                                <span>'
.$this->translate($tabName).'</span>
                            </a>
                        </li>'
;
                        echo
$li;
                    }
               
?>
</ul>
        </div>
    </div>
    <div class="tab-content innerAll spacing-x2">
        <?php
           
if(!empty($this->zoneconfig['interface'])){
               
$ctr = 0;
                foreach(
$this->zoneconfig['interface'] as $keyConfig => $val){

                   
$tabId = $this->id . '_' . $val['conf']['id'];

                   
$active = ($ctr++) ? '' : 'active';
                    echo
'<div class="tab-pane '.$active.'" id="'.$tabId.'" data-melisKey="'.$val['conf']['melisKey'].'">
                                        <div class="row">
                                            <div class="col-md-12">
                                                '
. $this->$keyConfig .'
                                            </div>
                                        </div>
                                    </div>'
;
                   
                }
            }
       
?>
</div>
</div>