Advertisement
edbury

piklist descriptions

Aug 30th, 2012
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.98 KB | None | 0 0
  1. piklist('field', array(
  2.     'type' => 'group'
  3.     ,'field' => 'carousel'
  4.     ,'add_more' => true
  5.     ,'label' => __('Carousel Slides')
  6.     ,'description' => __('This is an example of how to build a list with multiple element types.')
  7.     ,'add_more' => true
  8.     ,'fields' => array(
  9.         array(
  10.             'type' => 'text'
  11.             ,'field' => 'image_url'
  12.             ,'label' => __('Image URL (960x280)')
  13.             ,'columns' => 3
  14.             ,'attributes' => array(
  15.                 'placeholder' => __('http://health2con.com/wp-content/uploads/2012/08/matthewscowl.jpeg')
  16.             )
  17.         )
  18.         ,array(
  19.             'type' => 'text'
  20.             ,'field' => 'slide_destination'
  21.             ,'label' => __('Slide Destination')
  22.             ,'columns' => 3
  23.             ,'attributes' => array(
  24.                 'placeholder' => __('http://health2con.com/events/surprisesawait')
  25.             )
  26.         )
  27.         ,array(
  28.             'type' => 'textarea'
  29.             ,'field' => 'slide_caption'
  30.             ,'label' => __('Slide Caption')
  31.             ,'columns' => 4
  32.             ,'attributes' => array(
  33.                 'placeholder' => __('http://health2con.com/events/surprisesawait')
  34.             )
  35.         )
  36.     )
  37. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement