PHP Classes

File: view/melis-cms/page/render-pagehead-title.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/page/render-pagehead-title.phtml   Download  
File: view/melis-cms/page/render-pagehead-title.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: 1,913 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;
   
    if (!empty(
$this->datas->page_name))
       
$title = $this->datas->page_name;
    else
       
$title = $this->translate('tr_meliscms_page_title_Create new page');
?>
<div <?= $id; ?> data-melisKey='<?= $data_melisKey; ?>' class="bg-white content-heading border-bottom page-title" data-pageid="<?= $this->idPage; ?>">
        <div class="float-left">
            <h1> <?= $this->idPage . " - " . $title; ?> </h1>

            <p>
            <span class="title">
                <?php // echo $this->translate('tr_meliscms_page_Page') . ' ' . $this->idPage; ?>
</span>

                <?php
               
if ($this->lastPublishedDate != '')
                {
                   
?>
<span class="title">

                <?= $this->pageCurrentStatus.' ' . $this->lastPublishedDate; ?>
<?php
               
if (!empty($this->publishedName))
                    echo
' ' . $this->translate('tr_meliscms_page_By') . ' ' . $this->publishedName;
               
?>
</span>
                    <?php
               
}
               
?>
</p>


            <?php

           
if ($this->lastSavedDate != '')
            {
               
?>
<span class="title saved-version-notif">
            <?= $this->translate('tr_meliscms_page_Version edited an saved on') . ' ' . $this->lastSavedDate; ?>
<?php
           
if (!empty($this->savedName))
                echo
' ' . $this->translate('tr_meliscms_page_By') . ' ' . $this->savedName;
           
?>
</span>
                <?php
           
}
           
?>
<?php
           
foreach($this->infoText as $text) {
                echo
'<br/><span>'.$text.'</span>';
            }
           
?>
</div>
        <div class="float-right">
            <?php
           
if (!empty($this->zoneconfig['interface']))
            {
                foreach (
$this->zoneconfig['interface'] as $keyConfig => $menuConfig)
                {
                    if(!
in_array($keyConfig, $this->exclude)) {
                        echo
$this->$keyConfig;
                    }
                }
            }
           
?>
</div>
        <div class="clearfix"></div>
</div>