PHP Classes

File: view/melis-cms-page-script-editor/melis-cms-page-script-editor-tool-site-edition/render-tool-site-script-content.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-script-content.phtml   Download  
File: view/melis-cms-page-script-editor/melis-cms-page-script-editor-tool-site-edition/render-tool-site-script-content.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: 2,949 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'];
}
?>

<?php if(!empty($this->siteId)) { ?>
<div data-melisKey='<?= $data_melisKey; ?>'<?= $id; ?> class="tab-pane widget-body-regular meliscms_center_tabs">
    <div class="widget widget-tabs widget-tabs-double widget-tabs-responsive margin-none border-none">
        <div class="widget-body innerAll inner-2x">
            <div class="tab-header-title-container">
                <div class="row">
                    <div class="col-md-12">
                        <h3 class="float-left"><?= $this->translate('tr_meliscmspagescripteditor_title'); ?></h3>
                    </div>

                    <div class="col-md-12">
                        <p class="float-left" style="text-align: left;"><?php echo $this->translate('tr_meliscmspagescripteditor_site_edition_desc')?></p>
                    </div>
                </div>
            </div>
            <div class="tab-pane active">
                <div class="row">
                    <div class="col-md-12">
                        <?php
                           
//render the script form
                           
$scriptForm = $this->scriptForm;
                           
$scriptForm->prepare();
                           
$scriptForm->setAttribute('id', $scriptForm->getAttribute('id'));
                           
                            echo
$this->form()->openTag($scriptForm);
                            echo
$this->melisFieldCollection($scriptForm);
                            echo
$this->form()->closeTag();
                           
                           
//render the exception form
                           
$scriptExceptionForm = $this->scriptExceptionForm;
                           
$scriptExceptionForm->prepare();
                           
$scriptExceptionForm->setAttribute('id', $scriptExceptionForm->getAttribute('id'));
                           
                            echo
$this->form()->openTag($scriptExceptionForm);
                            echo
$this->melisFieldCollection($scriptExceptionForm);
                            echo
$this->form()->closeTag();
                       
?>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-md-12">
                    <?php
                       
if (!empty($this->zoneconfig['interface'])) {
                            foreach (
$this->zoneconfig['interface'] as $keyConfig => $menuConfig) {
                                echo
$this->$keyConfig;
                            }
                        }
                   
?>
</div>
            </div>
        </div>
    </div>
</div>
<?php } ?>