PHP Classes

File: view/melis-cms-page-script-editor/melis-cms-page-script-editor-tool-site-edition/render-tool-site-scripts.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS Page JavaScript and CSS Editor   view/melis-cms-page-script-editor/melis-cms-page-script-editor-tool-site-edition/render-tool-site-scripts.phtml   Download  
File: view/melis-cms-page-script-editor/melis-cms-page-script-editor-tool-site-edition/render-tool-site-scripts.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis CMS Page JavaScript and CSS Editor
Add custom assets to a site using Melis CMS
Author: By
Last change:
Date: 2 years ago
Size: 696 bytes
 

Contents

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

?>
<div data-melisKey='<?= $data_melisKey; ?>'<?= $id; ?> class="tab-pane widget-body-regular meliscms_center_tabs">
    <?php
   
if ($this->canAccess) {
        if (!empty(
$this->zoneconfig['interface'])) {
            foreach(
$this->zoneconfig['interface'] as $keyConfig => $menuConfig) {
                echo
$this->$keyConfig;
            }
        }
    } else {
        echo
'<span>'.$this->translate('tr_melis_cms_sites_tool_content_edit_tab_no_access').'</span>';
    }

   
?>
</div>