PHP Classes

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

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/page/render-pageaction-publishunpublish.phtml   Download  
File: view/melis-cms/page/render-pageaction-publishunpublish.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: 892 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;
   
   
// check the status of the page
   
$status = ( $this->currentStatus ) ? 'checked' : '';
?>

<ul id="<?= $this->idPage; ?>_id_meliscms_page_publish_unpublish_switch" class="menubar menu-bar-options">
    <li<?= $id; ?> data-melisKey='<?= $data_melisKey; ?>' >
        <div data-pagenumber="<?= $this->idPage; ?>" class="make-switch page-publishunpublish title-switch" data-on-label="<on><?= $this->translate('tr_meliscms_page_published_text'); ?></on>" data-off-label="<off><?= $this->translate('tr_meliscms_page_unpublished_text'); ?></off>" data-text-label="<?= $this->translate('tr_meliscms_page_status_text'); ?>">
            <input type="checkbox" data-pagenumber="<?= $this->idPage; ?>" <?= $status; ?>>
        </div>
    </li>
</ul>