PHP Classes

File: src/common/motif_extra/color_rgba.twig

Recommend this page to a friend!
  Classes of Scott Arciszewski   CMS Airship   src/common/motif_extra/color_rgba.twig   Download  
File: src/common/motif_extra/color_rgba.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: CMS Airship
Content management system with security features
Author: By
Last change: Allow custom footer text.

Users can replace the HTML in the page footer with
their own custom HTML.
Date: 8 years ago
Size: 1,719 bytes
 

Contents

Class file image Download
<div id="{{ id }}" class="color-input-container" data-preview="{{ preview ? '1' : '0' }}"> <div class="color-input-preview" id="{{ id }}-preview"></div> <label for="{{ id }}-red" title="{{ __("Red")|e('html_attr') }}" >{# #}{{ __("R") }}:</label>{# #}<input class="color-input" id="{{ id }}-red" name="{{ name }}[red]" pattern="^(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$" type="text" value="{{ value['red']|e('html_attr') }}" /> <label for="{{ id }}-green" title="{{ __("Green")|e('html_attr') }}" >{# #}{{ __("G") }}:</label>{# #}<input class="color-input" id="{{ id }}-green" name="{{ name }}[green]" pattern="^(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$" type="text" value="{{ value['green']|e('html_attr') }}" /> <label for="{{ id }}-blue" title="{{ __("Blue")|e('html_attr') }}" >{# #}{{ __("B") }}:</label>{# #}<input class="color-input" id="{{ id }}-blue" name="{{ name }}[blue]" pattern="^(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})$" type="text" value="{{ value['blue']|e('html_attr') }}" /> {% if alpha %} <label for="{{ id }}-alpha" title="{{ __("alpha")|e('html_attr') }}" >{# #}{{ __("A") }}:</label>{# #}<input class="color-input" id="{{ id }}-alpha" name="{{ name }}[alpha]" pattern="^(0|1)\.([0-9]+)$" type="text" value="{{ value['alpha']|e('html_attr') }}" /> {% endif %} </div>