PHP Classes

File: view/melis-cms/page-languages/render-pagetab-lang-list.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/page-languages/render-pagetab-lang-list.phtml   Download  
File: view/melis-cms/page-languages/render-pagetab-lang-list.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: 2,516 bytes
 

Contents

Class file image Download
<?php
    $id
= $this->idPage.'_'.$this->zoneconfig['conf']['id'];
   
$data_melisKey = $this->zoneconfig['conf']['melisKey'];
?>
<div class="col-xs-12 col-md-6" id="<?= $id; ?>" data-melisKey='<?= $data_melisKey; ?>'>
    <div class="widget">
        <div class="widget-body padding-none">
            <div class="bg-white margin-none">
                <h4 class="pagelang-title"><?php echo $this->translate('tr_meliscms_page_lang_list')?></h4>
                <div class="language-lists">
                    <div class="row">
                        <?php foreach ($this->pagesData As $val){?>
<div class="col-xs-6 col-md-6">
                                <div class="language-list open-page-from-lan-tab"
                                    <?php if ($this->idPage != $val->tree_page_id){?>
data-opentab
                                        data-tabicon="fa-file-o"
                                        data-name="<?php echo $val->page_name ?>"
                                        data-id="<?php echo $val->tree_page_id ?>_id_meliscms_page"
                                        data-meliskey="meliscms_page"
                                        data-pageid="<?php echo $val->tree_page_id ?>"
                                    <?php }?>>
                                    <span class="site"><?= $val->page_name ?><i>(<?= $val->tree_page_id ?>)</i> <span class="site-origin"><?php echo ($this->initialPageId == $val->tree_page_id) ? '('.$this->translate('tr_meliscms_page_lang_list_initial').')' : ''?></span></span>
                                    <div class="lang-indicator">
                                        <div class="lang-img">
                                            <img src="<?php echo $val->lang_cms_flag ?>">
                                        </div>
                                        <span class="language"><?= $val->lang_cms_name ?></span>
                                        <?php if ($this->idPage == $val->tree_page_id){?>
<span class="c-page">(<?php echo $this->translate('tr_meliscms_page_lang_list_current_page_lbl')?>)</span>
                                        <?php }?>
</div>
                                </div>
                            </div>
                        <?php }?>
</div>
                </div>
            </div>
        </div>
    </div>
</div>