Guest User

Untitled

a guest
Apr 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.48 KB | None | 0 0
  1. <?php
  2.     $orientations = array(
  3.         'all' => '',
  4.         'square' => 'square',
  5.         'vertical' => 'vertical',
  6.         'horizontal' => 'horizontal',
  7.     );
  8.    
  9.     foreach ($orientations as $orientation => $value) {
  10.         echo Form::radio(
  11.             'orientation',
  12.             $value,
  13.             (bool) ( @ $_REQUEST['orientation'] == $value),
  14.             array('class' => 'quicksand', 'id' => 'orientation_' . $orientation)
  15.         );
  16.         echo '&nbsp;<label for="orientation_' . $orientation . '">' . ucwords($orientation) . '</label><br />';
  17.     }
  18. ?>
Add Comment
Please, Sign In to add comment