PHP Classes

File: view/melis-cms/page/render-pagetab.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/page/render-pagetab.phtml   Download  
File: view/melis-cms/page/render-pagetab.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis CMS
Content management system that provides its tools
Author: By
Last change:
Date: 2 years ago
Size: 1,782 bytes
 

Contents

Class file image Download
<?php
    $id
= '';
    if (!empty(
$this->zoneconfig['conf']['id']))
       
$id = ' id="' . $this->idPage . '_' . $this->zoneconfig['conf']['id'] . '"';
   
$data_melisKey = $this->melisKey;
?>
<div <?= $id; ?> data-melisKey='<?= $data_melisKey; ?>' class="page-content-container iframe-container">
    <div class="widget widget-tabs widget-tabs-double-2 widget-tabs-responsive">
        <div class="widget-head nav">
            <ul class="tabs-label nav-tabs">
                <?php
                   
if (!empty($this->zoneconfig['interface']))
                    {

                        foreach (
$this->zoneconfig['interface'] as $keyConfig => $menuConfig)
                        {
                            if(!
in_array($keyConfig, $this->exclude)) {

                           
$id = '';
                            if (!empty(
$menuConfig['conf']['id']))
                               
$id = ' id="' . $this->idPage . '_' . $menuConfig['conf']['id'] . '_title"';

                           
$tabname = 'Tab';
                            if (!empty(
$menuConfig['conf']) && !empty($menuConfig['conf']['name']))
                               
$tabname = $menuConfig['conf']['name'];

                           
$icon = '';
                            if (!empty(
$menuConfig['conf']) && !empty($menuConfig['conf']['icon']))
                               
$icon = $menuConfig['conf']['icon'];

                           
?>
<li> <!-- <?= $id; ?> -->
                                <a class="glyphicons <?= $icon; ?>" data-page-id="<?= $this->idPage ?>" data-toggle="tab" href="#<?= $this->idPage; ?>_<?= !empty($menuConfig['conf']['id']) ? $menuConfig['conf']['id'] : ''; ?>">
                                    <i> </i>
                                    <span><?= $tabname; ?></span>
                                </a>
                            </li>
                            <?php
                           
}
                        }
                    }
               
?>
</ul>
        </div>
        <div class="widget-body tab-content">
        <?php
           
if (!empty($this->zoneconfig['interface']))
            {
                foreach (
$this->zoneconfig['interface'] as $keyConfig => $menuConfig)
                {
                    echo
$this->$keyConfig;
                }
            }
       
?>
</div>
    </div>
</div>