PHP Classes
elePHPant
Icontem

File: tests/-app-/views/partials/input.dark.php

Recommend this page to a friend!
  Classes of Wolfy-J  >  spiral  >  tests/-app-/views/partials/input.dark.php  >  Download  
File: tests/-app-/views/partials/input.dark.php
Role: Example script
Content type: text/plain
Description: Example script
Class: spiral
Modular Web application development framework
Author: By
Last change:
Date: 1 year ago
Size: 1,161 bytes
 

Contents

Class file image Download
<extends:partials.element/>

<block:body>
    <label class="item-form ${wrapper-class}" node:attributes="prefix:wrapper">
        <?php #compiled
        //Receiving label content as evaluator variable
       
$this->evaluatorVariable('label', '${label}');
        if (!empty(
$label) && $label != "''") {
           
?>
<block:input-label>
                <span class="${label-class} item-label" node:attributes="prefix:label">${label}</span>
            </block:input-label>
            <?php #compiled
       
}

       
/** @var mixed $inputValue */
       
$this->runtimeVariable('inputValue', '${value}${context}');
       
?>
<block:input-body>
                <input type="${type|text}"
                       name="${name}"
                       value="<?= $inputValue ?>"
                       data-prefix="${prefix}"
                       data-pattern="${pattern}"
                       class="item-input <?=(!empty($prefix) && $prefix != "''") || (!empty($pattern) && $pattern != "''") ? 'sf-js-input' : '' ?>"
                       node:attributes="exclude:wrapper-*"/>
        </block:input-body>
    </label>
</block:body>