PHP Classes

File: view/melis-cms/page/render-pageaction-delete.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/page/render-pageaction-delete.phtml   Download  
File: view/melis-cms/page/render-pageaction-delete.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: 1 year ago
Size: 646 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;
   
$disabled = '';
    if(
$this->children > 0){
       
$disabled = 'disabled title="'.$this->translate("tr_meliscms_page_actions_delete_tooltip").'"';
    }
?>
<li<?= $id; ?> data-melisKey='<?= $data_melisKey; ?>'>
    <a class="btn btn-default melis-deletepage" data-pagenumber="<?= $this->idPage; ?>" <?= $disabled?> >
        <span class="fa fa-trash-o"></span>
        <span><?php echo $this->translate('tr_meliscms_page_actions_delete') ?></span>
    </a>
</li>