PHP Classes

File: view/melis-cms/gdpr-banner/header.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS   view/melis-cms/gdpr-banner/header.phtml   Download  
File: view/melis-cms/gdpr-banner/header.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,284 bytes
 

Contents

Class file image Download
<?php
$id
= '';
if (!empty(
$this->zoneconfig['conf']['id'])) {
   
$id = 'id="' . $this->zoneconfig['conf']['id'] . '"';
}
$data_melisKey = $this->melisKey;
?>
<div <?= $id; ?> data-melisKey="<?= $data_melisKey; ?>" class="mcms-gdpr-banner-header bg-white">
    <div class="row">
        <div class="col-md-12">
            <?php
           
echo $this->form()->openTag($this->form);
            echo
$this->melisFieldCollection($this->form);
            echo
$this->form()->closeTag();
           
?>
<a class="btn btn-success cms-gdpr-save float-right" title="<?= $this->label['saveBtn']; ?>" style="display: none;">
                <i class="fa fa-save"></i> <?= $this->label['saveBtn']; ?>
</a>
            <script type="text/javascript">
                (function () {
                    var siteSelector = $body.find(".cms_gdpr_banner_site_filter_form #id_mcgdprbanner_site_id");
                    if (siteSelector.length > 0) {
                        siteSelector.select2({
                            minimumResultsForSearch: -1,
                            placeholder: translations.tr_melis_cms_gdpr_banner_site_select
                        });
                    }
                })();
            </script>
        </div>
    </div>
</div>