/wp-content/themes/news/library/classes/customize-control-textarea.php
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
- <?php
- /**
- * The textarea customize control extends the WP_Customize_Control class. This class allows
- * developers to create textarea settings within the WordPress theme customizer.
- *
- * @package Hybrid
- * @subpackage Classes
- * @author Justin Tadlock <justin@justintadlock.com>
- * @copyright Copyright (c) 2008 - 2012, Justin Tadlock
- * @link http://themehybrid.com/hybrid-core
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
- */
- /**
- * Textarea customize control class.
- *
- * @since 1.4.0
- */
- class Hybrid_Customize_Control_Textarea extends WP_Customize_Control {
- /**
- * The type of customize control being rendered.
- *
- * @since 1.4.0
- */
- public $type = 'textarea';
- /**
- * Displays the textarea on the customize screen.
- *
- * @since 1.4.0
- */
- public function render_content() { ?>
- <label>
- <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
- <div class="customize-control-content">
- <textarea class="widefat" cols="45" rows="5" <?php $this->link(); ?>><?php echo esc_textarea( $this->value() ); ?></textarea>
- </div>
- </label>
- <?php }
- }
- ?>