PageRenderTime 43ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/wp-content/themes/news/library/classes/customize-control-textarea.php

https://bitbucket.org/lgorence/quickpress
PHP | 43 lines | 13 code | 4 blank | 26 comment | 0 complexity | 5c42a67b9e68feb4381bb6c8264de75d MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php
  2. /**
  3. * The textarea customize control extends the WP_Customize_Control class. This class allows
  4. * developers to create textarea settings within the WordPress theme customizer.
  5. *
  6. * @package Hybrid
  7. * @subpackage Classes
  8. * @author Justin Tadlock <justin@justintadlock.com>
  9. * @copyright Copyright (c) 2008 - 2012, Justin Tadlock
  10. * @link http://themehybrid.com/hybrid-core
  11. * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
  12. */
  13. /**
  14. * Textarea customize control class.
  15. *
  16. * @since 1.4.0
  17. */
  18. class Hybrid_Customize_Control_Textarea extends WP_Customize_Control {
  19. /**
  20. * The type of customize control being rendered.
  21. *
  22. * @since 1.4.0
  23. */
  24. public $type = 'textarea';
  25. /**
  26. * Displays the textarea on the customize screen.
  27. *
  28. * @since 1.4.0
  29. */
  30. public function render_content() { ?>
  31. <label>
  32. <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
  33. <div class="customize-control-content">
  34. <textarea class="widefat" cols="45" rows="5" <?php $this->link(); ?>><?php echo esc_textarea( $this->value() ); ?></textarea>
  35. </div>
  36. </label>
  37. <?php }
  38. }
  39. ?>