text.php (1882B)
1 <?php 2 /** 3 * Redux Framework text config. 4 * For full documentation, please visit: http://devs.redux.io/ 5 * 6 * @package Redux Framework 7 */ 8 9 defined( 'ABSPATH' ) || exit; 10 11 Redux::set_section( 12 $opt_name, 13 array( 14 'title' => esc_html__( 'Text', 'your-textdomain-here' ), 15 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/text.html" target="_blank">https://devs.redux.io/core-fields/text.html</a>', 16 'id' => 'basic-text', 17 'subsection' => true, 18 'customizer_width' => '700px', 19 'fields' => array( 20 array( 21 'id' => 'text-example', 22 'type' => 'text', 23 'title' => esc_html__( 'Text Field', 'your-textdomain-here' ), 24 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), 25 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), 26 'default' => 'Default Text', 27 ), 28 array( 29 'id' => 'text-example-hint', 30 'type' => 'text', 31 'title' => esc_html__( 'Text Field w/ Hint', 'your-textdomain-here' ), 32 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), 33 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), 34 'default' => 'Default Text', 35 'text_hint' => array( 36 'title' => 'Hint Title', 37 'content' => 'Hint content about this field!', 38 ), 39 ), 40 array( 41 'id' => 'text-placeholder', 42 'type' => 'text', 43 'title' => esc_html__( 'Text Field w/ placeholder using custom data object.', 'your-textdomain-here' ), 44 'subtitle' => esc_html__( 'Subtitle', 'your-textdomain-here' ), 45 'desc' => esc_html__( 'Field Description', 'your-textdomain-here' ), 46 'placeholder' => 'Placeholder Text', 47 'data' => array( 'box1', 'box2' ), 48 ), 49 ), 50 ) 51 );