PHP Classes

File: vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_attributes.html.php

Recommend this page to a friend!
  Classes of Murat Cileli   Papernic   vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_attributes.html.php   Download  
File: vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views/Form/widget_attributes.html.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Papernic
Manage documents colaboratively
Author: By
Last change:
Date: 7 years ago
Size: 696 bytes
 

Contents

Class file image Download
id="<?php echo $view->escape($id) ?>" name="<?php echo $view->escape($full_name) ?>"<?php if ($disabled): ?> disabled="disabled"<?php endif ?>
<?php
if ($required): ?> required="required"<?php endif ?>
<?php
foreach ($attr as $k => $v): ?>
<?php
if (in_array($k, array('placeholder', 'title'), true)): ?>
<?php printf
(' %s="%s"', $view->escape($k), $view->escape(false !== $translation_domain ? $view['translator']->trans($v, array(), $translation_domain) : $v)) ?>
<?php
elseif ($v === true): ?>
<?php printf
(' %s="%s"', $view->escape($k), $view->escape($k)) ?>
<?php
elseif ($v !== false): ?>
<?php printf
(' %s="%s"', $view->escape($k), $view->escape($v)) ?>
<?php
endif ?>
<?php
endforeach ?>