PHP Classes

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

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/page-edition/render-pagetab-edition.phtml   Download  
File: view/melis-cms/page-edition/render-pagetab-edition.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: 2,046 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;
   
$openTplTool = "javascript:melisHelper.tabOpen(translations.tr_meliscms_tool_templates, 'fa-file-code-o', 'id_meliscms_tool_templates', 'meliscms_tool_templates');"
?>
<div <?= $id; ?> data-melisKey='<?= $data_melisKey; ?>' class="tab-pane widget-body-regular meliscms_center_tabs meliscms-page-tab-edition">
    <?php if ($this->hasTemplate): ?>
<div class="alert alert-danger alert-dismissible show" role="alert" style="<?= $this->isTplModuleOK ? 'display: none!important;' : ""?>">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="alert-heading"><strong><?= $this->translate('tr_meliscore_common_error'); ?>:</strong> <?= $this->translate('tr_meliscms_tool_templates_module_ko'); ?></h4><hr>
        <p><?= $this->translate('tr_meliscms_tool_templates_module_ko_submsg'); ?> <a href="<?= $openTplTool; ?>" class="alert-link"><?= $this->translate('tr_meliscms_tool_templates'); ?></a> (MelisCms > Site Tools > <?= $this->translate('tr_meliscms_tool_templates'); ?>)</p>
    </div>
    <?php else: ?>
<div class="alert alert-warning alert-dismissible show" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4><?= $this->translate('tr_meliscms_tool_templates_no_tpl'); ?></h4>
    </div>
    <?php endif; ?>
<iframe scrolling="no" data-iframe-id="<?= $this->idPage; ?>" onload="melisCms.iframeLoad(<?php echo $this->idPage ?>);" class="melis-iframe" src="/id/<?= $this->idPage; ?>/renderMode/melis?melisSite=<?= $this->namespace; ?>" style="min-height: 700px;"></iframe>
</div>
<?php
if (!empty($this->resizablePlugin)){?>
<script> var pluginResizable = 1; </script>
<?php } else {?>
<script> var pluginResizable = 0; </script>
<?php }?>