PluginProbe
CSS & JavaScript Toolbox / 8.0.2
CSS & JavaScript Toolbox v8.0.2
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
css-javascript-toolbox / framework / view / block / parameter / renderer / list / index.phtml

index.phtml in CSS & JavaScript Toolbox 8.0.2, at framework/view/block/parameter/renderer/list/index.phtml

22 lines 738 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 *
4 */
5
6 // Get parameter definition.
7 $definition = $this->getDefinition();
8
9 // All values to be displayed in the list.
10 $values = $definition->getValues();
11 $elementId = $this->getElementId();
12 ?>
13 <label for="<?php echo $elementId ?>" title="<?php echo $definition->getDescription() ?>"><?php echo $definition->getName() ?></label>
14 <select id="<?php echo $elementId ?>" name="<?php echo $this->getName() ?>" size="2">
15 <?php
16 foreach ($values as $value) :
17 $selected = ($this->getValue() == $value->getValue()) ? ' selected="selected"' : '';
18 ?>
19 <option value="<?php echo $value->getValue() ?>"<?php echo $selected ?>><?php echo $value->getText() ?></option>
20 <?php endforeach; ?>
21 </select>
22 <?php echo $this->getTemplate('helpText') ?>