PHP Classes

File: view/melis-cms-page-script-editor/melis-cms-page-script-editor-tool-site-edition/render-script-exceptions.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-script-exceptions.phtml   Download  
File: view/melis-cms-page-script-editor/melis-cms-page-script-editor-tool-site-edition/render-script-exceptions.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: 1,673 bytes
 

Contents

Class file image Download
<?php
    $id
= $this->siteId.'_'.$this->zoneconfig['conf']['id'];
   
$data_melisKey = $this->zoneconfig['conf']['melisKey'];
?>
<div id="<?php echo $id ?>" data-melisKey="<?php echo $data_melisKey; ?>">
    <div class="page-script-editor-current-exception">
        <h4 class="pageScriptEditor-title"><?php echo $this->translate('tr_meliscmspagescripteditor_exception_title')?></h4>
        <p><?=$this->exceptionCount > 0 ? $this->translate('tr_meliscmspagescripteditor_exception_desc') : $this->translate('tr_meliscmspagescripteditor_tool_site_no_exception_found')?></p>
        <?php
           
//display table if site has exceptions
           
if ($this->exceptionCount) { ?>
                <?php echo $this->MelisDataTable()->createTable($this->tableConfig); ?>
       <?php }
       
?>
    </div>

    <div class="page-script-editor-add-exception">
        <h4 class="pageScriptEditor-title"><?php echo $this->translate('tr_meliscmspagescripteditor_add_exception_title')?></h4>
        <p><?php echo $this->translate('tr_meliscmspagescripteditor_add_exception_desc')?></p>

        <div class="form-group input-group col-md-8 add-page-exception-field">
            <div class="d-flex flex-row justify-content-between">
                <input class="form-control" type="text" id="<?=$this->siteId?>tool_site_exception_page_id" name="tool_site_exception_page_id" value=""><a class="btn btn-default meliscms-site-selector"><i class="fa fa-sitemap"></i></a>
                <button class="btn btn-success add_tool_site_script_exception_btn">Add</button>
            </div>
        </div>
    </div>
</div>