Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $orientations = array(
- 'all' => '',
- 'square' => 'square',
- 'vertical' => 'vertical',
- 'horizontal' => 'horizontal',
- );
- foreach ($orientations as $orientation => $value) {
- echo Form::radio(
- 'orientation',
- $value,
- (bool) ( @ $_REQUEST['orientation'] == $value),
- array('class' => 'quicksand', 'id' => 'orientation_' . $orientation)
- );
- echo ' <label for="orientation_' . $orientation . '">' . ucwords($orientation) . '</label><br />';
- }
- ?>
Add Comment
Please, Sign In to add comment