PHP Classes

File: view/melis-cms/sites-translation/render-tool-sites-site-translations-content.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/sites-translation/render-tool-sites-site-translations-content.phtml   Download  
File: view/melis-cms/sites-translation/render-tool-sites-site-translations-content.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,173 bytes
 

Contents

Class file image Download
<?php
$id
= '';
if (!empty(
$this->zoneconfig['conf']['id']))
   
$id = ' id="' . $this->siteId . '_' . $this->zoneconfig['conf']['id'] . '"';

$data_melisKey = $this->melisKey;

?>
<?php
if(!empty($this->siteId)) { ?>
<div data-melisKey='<?= $data_melisKey; ?>'<?= $id; ?> class="tab-pane widget-body-regular meliscms_center_tabs">
    <div class="spacing-x2 innerAll">
        <div class="switch-all-container">
            <div class="row">
                <div class="col-md-12">
                    <h3 class="float-left padding-10"><?= $this->translate('tr_melis_cms_sites_tool_content_edit_site_translations_tab'); ?></h3>
                </div>
            </div>
        </div>

        <?php
       
/*
         * This functions prepares the TABLE element in HTML. ID and class associative array attribute will be placed in table like
         * <table id="tableMarketPlaceAdminTool" class="table table-bordered table-condensed table-striped table-primary table-vertical-center checkboxs js-table-sortable">
         */
       
$this->melisGenericTable()->setTable(array(
           
'id' => $this->siteId.'_tableMelisSiteTranslation',
           
'class' => 'table table-striped table-primary dt-responsive nowrap',
           
'cellspacing' => '0',
           
'width' => '100%'
       
));
       
/**
         * This process retrieves the value inside the View Model that is being generated from app.tools.php `columns` attribute
         * @reference please see sitetranslations.tools.php
         */
       
$columns = array();
       
$columnStyle = array();
        foreach(
$this->tableColumns as $columnText)
        {
           
$columns[] = $columnText['text'];

        }

       
// this process inserts all the array columns into the table.
        // the 'center' value indicates where your column texts are positioned.
       
$this->melisGenericTable()->setColumns($columns);

        echo
$this->melisGenericTable()->renderTable();
       
?>
<script type="text/javascript">
            $(document).ready(function() {
                <?= $this->getToolDataTableConfig; ?>
});
        </script>
    </div>
</div>
<?php } ?>