PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins
/
comments-ratings
/
core
/
views
/
form-partials
/
fields
<?php defined('ABSPATH') or die; /* @var PixReviewsFormField $field */ /* @var PixReviewsForm $form */ /* @var mixed $default */ /* @var string $name */ /* @var string $idname */ /* @var string $label */ /* @var string $desc */ /* @var string $rendering */ // [!!] the counter field needs to be able to work inside other fields; if // the field is in another field it will have a null label $value = $form->autovalue($name, $default); $attrs = array ( 'name' => $name, 'id' => $idname, 'type' => 'number', 'value' => $value, 'step' => 1, 'class' => array(), ); $is_inline_field = empty($label) || $rendering == 'inline'; if ($field->has_errors()) { $error_message = $field->one_error(); $attrs['class'][] = 'field-error'; $attrs['title'] = "Error: $error_message"; } ?> <?php if ($is_inline_field): ?> <?php $attrs['class'][] = 'small-text' ?> <input <?php echo $field->htmlattributes($attrs) ?> class="small-text" /> <?php else: # standard field ?> <label for="<?php echo $idname ?>"> <input <?php echo $field->htmlattributes($attrs) ?> /> <?php echo $label ?> </label> <?php endif; ?>
[+]
..
[-] tabular-group.php
[edit]
[-] counter.php
[edit]
[-] color.php
[edit]
[-] postbox.php
[edit]
[-] select.php
[edit]
[-] switch.php
[edit]
[-] text.php
[edit]
[-] hidden.php
[edit]
[-] group.php
[edit]