PHP Classes

File: view/melis-cms-page-analytics/melis-cms-page-analytics-tool/tool-content-container.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis PHP CMS Analytics by Page   view/melis-cms-page-analytics/melis-cms-page-analytics-tool/tool-content-container.phtml   Download  
File: view/melis-cms-page-analytics/melis-cms-page-analytics-tool/tool-content-container.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis PHP CMS Analytics by Page
Melis CMS module to provide page access statistics
Author: By
Last change:
Date: 1 year ago
Size: 2,424 bytes
 

Contents

Class file image Download
<?php
$id
= '';
if (!empty(
$this->zoneconfig['conf']['id']))
   
$id = ' id="' . $this->zoneconfig['conf']['id'] . '"';

 
$form = $this->form
?>

<div <?= $id; ?> data-melisKey="<?= $this->melisKey; ?>">
    <script type="text/javascript">
        (function () {
            /**
             * Selecting the First Site in the Site Selection automatically
             * A flag to prevent the trigger change in tool-content-container-analytics-tab-content.phtml
             * to keep on executing infinitely
             */
            window.pageAnalyticsSiteSelect = true;
        })();
    </script>
    <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)
                    {
                       
$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>
                            <a class="glyphicons <?= $icon; ?>" data-toggle="tab" href="#<?= $menuConfig['conf']['id']; ?>">
                                <i> </i>
                                <span><?= $tabname; ?></span>
                            </a>
                        </li>
                <?php
                   
}
                }
               
?>

            </ul>
        </div>
    </div>
    <div class="widget-body tab-content spacing-x2 innerAll">
            <?php
               
echo $this->meliscms_page_analytics_site_analytics_tab_content;
                echo
$this->meliscms_page_analytics_site_analytics_tab_settings_content;
           
?>
</div>
</div>