AMEEKER

Piklist Page Settings, Fields

Oct 20th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <?php
  2. /*
  3. Title: Theme Settings Section
  4. Setting: piklist-theme
  5. */
  6.  
  7. piklist('field', array(
  8. 'type' => 'text'
  9. ,'field' => 'text'
  10. ,'label' => 'Text Box'
  11. ,'description' => 'Field Description'
  12. ,'value' => 'Default text'
  13. ,'attributes' => array(
  14. 'class' => 'text'
  15. )
  16. ));
  17. piklist('field', array(
  18. 'type' => 'select'
  19. ,'field' => 'select'
  20. ,'label' => 'Select Box'
  21. ,'description' => 'Choose from the drop-down.'
  22. ,'attributes' => array(
  23. 'class' => 'text'
  24. )
  25. ,'choices' => array(
  26. 'option1' => 'Option 1'
  27. ,'option2' => 'Option 2'
  28. ,'option3' => 'Option 3'
  29. )
  30. ));
  31. piklist('field', array(
  32. 'type' => 'colorpicker'
  33. ,'field' => 'colorpicker'
  34. ,'label' => 'Choose a color'
  35. ,'value' => '#aee029'
  36. ,'description' => 'Click in the box to select a color.'
  37. ,'attributes' => array(
  38. 'class' => 'text'
  39. )
  40. ));
Advertisement
Add Comment
Please, Sign In to add comment