PATH:
home
/
letacommog
/
lavenue
/
wp-content
/
plugins
/
restaurant-reservations
/
lib
/
simple-admin-pages
/
classes
<?php /** * Register, display and save a textarea field setting in the admin menu * * @since 1.0 * @package Simple Admin Pages * * @todo textareas should have an option to swap new lines for <br>s */ class sapAdminPageSettingTextarea_2_1_2 extends sapAdminPageSetting_2_1_2 { /* * Size of this textarea * * This is put directly into a css class [size]-text, * and setting this to 'large' will link into WordPress's existing textarea * style for full-width textareas. */ public $size = 'small'; public $sanitize_callback = 'wp_kses_post'; /** * Escape the value to display it safely HTML textarea fields * @since 1.0 */ public function esc_value( $val ) { return esc_textarea( $val ); } /** * Set the size of this textarea field * @since 1.0 */ public function set_size( $size ) { $this->size = esc_attr( $size ); } /** * Display this setting * @since 1.0 */ public function display_setting() { ?> <textarea name="<?php echo $this->get_input_name(); ?>" id="<?php echo $this->get_input_name(); ?>" class="<?php echo $this->size; ?>-text"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?>><?php echo $this->value; ?></textarea> <?php $this->display_description(); } }
[+]
..
[-] AdminPageSetting.Toggle.class.php
[edit]
[-] AdminPageSetting.class.php
[edit]
[-] AdminPageSetting.Textarea.class.php
[edit]
[-] AdminPageSetting.Text.class.php
[edit]
[-] AdminPage.Submenu.class.php
[edit]
[-] AdminPageSetting.HTML.class.php
[edit]
[-] AdminPageSetting.Address.class.php
[edit]
[-] AdminPage.Themes.class.php
[edit]
[-] AdminPageSetting.OpeningHours.class.php
[edit]
[-] Library.class.php
[edit]
[-] AdminPageSetting.SelectTaxonomy.class.php
[edit]
[-] AdminPage.class.php
[edit]
[-] AdminPageSection.class.php
[edit]
[-] AdminPageSetting.Editor.class.php
[edit]
[-] AdminPageSetting.Select.class.php
[edit]
[-] AdminPageSetting.SelectPost.class.php
[edit]
[-] AdminPage.Menu.class.php
[edit]
[-] AdminPageSetting.Scheduler.class.php
[edit]