PHP Classes

File: view/melis-cms-page-script-editor/melis-cms-page-script-editor-page-edition/render-page-script-editor-launch-form.phtml

Recommend this page to a friend!
  Classes of Fabrice Fesch   Melis CMS Page JavaScript and CSS Editor   view/melis-cms-page-script-editor/melis-cms-page-script-editor-page-edition/render-page-script-editor-launch-form.phtml   Download  
File: view/melis-cms-page-script-editor/melis-cms-page-script-editor-page-edition/render-page-script-editor-launch-form.phtml
Role: Example script
Content type: text/plain
Description: Example script
Class: Melis CMS Page JavaScript and CSS Editor
Add custom assets to a site using Melis CMS
Author: By
Last change:
Date: 2 years ago
Size: 2,423 bytes
 

Contents

Class file image Download
<div class="col-md-12">
    <p><?php echo $this->translate('tr_meliscmspagescripteditor_page_edition_desc')?></p>
    <br>
   
    <?php
        $scriptForm
= $this->scriptForm;
       
$scriptForm->prepare();
       
$scriptForm->setAttribute('id', $scriptForm->getAttribute('id'));
       
        echo
$this->form()->openTag($scriptForm);
        echo
$this->melisFieldCollection($scriptForm);
        echo
$this->form()->closeTag();
   
?>

    <div class='page-edition-script-exception-form'>
        <h4><?php echo $this->translate('tr_meliscmspagescripteditor_page_edition_exception_title')?></h4>
        <p><?php echo $this->translate('tr_meliscmspagescripteditor_page_edition_exception_desc')?></p>
        
        <?php
            $exceptionForm
= $this->exceptionForm;
           
$exceptionForm->prepare();
           
$exceptionForm->setAttribute('id', $exceptionForm->getAttribute('id'));
            echo
$this->form()->openTag($exceptionForm);

        foreach (
$exceptionForm->getElements() as $key => $val) { ?>
<div class="form-group">
                <?php
                   
if ($key == 'mcse_exclude_site_scripts') { ?>
                        <div class="checkbox cb-cont melis-cms-page-script-checkbox">
                           <label class="page-edition-site-script-input-checkbox-label">
                                <span class="cbmask-outer">
                                    <span class="cbmask-inner <?=!empty($mcse_exclude_site_scripts) ? 'cb-active' : ''?>"></span>
                                </span>
                                <input type="hidden" name="<?=$key?>" value="0" >
                                <input type="checkbox" name="<?=$key?>" class="page-edition-site-script-input-checkbox" id="<?=$val->getAttribute('id');?>" value="1" <?=!empty($mcse_exclude_site_scripts) ? 'checked' : ''?>> <?=$val->getLabel(); ?>
</label>
                        </div>
                <?php } elseif ($key == 'mcse_id') { ?>
<input type="hidden" name="<?=$key?>" id="<?=$key?>" value="<?=$val->getValue()?>" >
                <?php }
               
?>
            </div>
        <?php }
        echo
$this->form()->closeTag();
       
?>
    </div>
</div>