PHP Classes

File: view/melis-cms/tool-style/render-tool-style-content.phtml

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


Class file image Download
= '';
if (!empty(
$id = ' id="' .$this->zoneconfig['conf']['id'] . '"';
$data_melisKey = $this->melisKey;

<div <?= $id; ?> data-melisKey="<?= $data_melisKey; ?>">
    <div class="spacing-x2 innerAll">
// In order to display your data we can use Melis Generic Table Helper to help you setup your table
// unique identifier for your table
'id' => 'tableToolStyles',
// used to render the display of your table, on this class, we will be using the site's template.
'class' => 'table table-striped table-primary dt-responsive nowrap',
'cellspacing' => '0',
'width' => '100%'
// next we need to get the columns texts and styles, since the column content is an array we need to extract it first so we can display our thead properly
$columnsText = array();
$columnsStyle= array();
$this->tableColumns as $columns)
$columnsText[] = $columns['text'];

             * Columns has been set, time to add it on our Melis Generic Table Helper
             * $columnText and $columnStyle parameters are the one we set to display our text and configure the inline css style
             * 'center' parameter tells the table to place the text in the center.

            // this script cannot be separated to this file since all table configuration and initialization are done here
            // render table to DataTable plugin
            $(document).ready(function() {
                <?= $this->getToolDataTableConfig; ?>