wordpress-editor.php (1525B)
1 <?php 2 /** 3 * Redux Framework WordPress editor 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__( 'WordPress Editor', 'your-textdomain-here' ), 15 'id' => 'editor-wordpress', 16 'desc' => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/core-fields/editor.html" target="_blank">https://devs.redux.io/core-fields/editor.html</a>', 17 'subsection' => true, 18 'fields' => array( 19 array( 20 'id' => 'opt-editor', 21 'type' => 'editor', 22 'title' => esc_html__( 'Editor', 'your-textdomain-here' ), 23 'subtitle' => esc_html__( 'Use any of the features of WordPress editor inside your panel!', 'your-textdomain-here' ), 24 'default' => 'Powered by Redux Framework.', 25 ), 26 array( 27 'id' => 'opt-editor-tiny', 28 'type' => 'editor', 29 'title' => esc_html__( 'Editor w/o Media Button', 'your-textdomain-here' ), 30 'default' => 'Powered by Redux Framework.', 31 'args' => array( 32 'wpautop' => false, 33 'media_buttons' => false, 34 'textarea_rows' => 5, 35 'teeny' => false, 36 'quicktags' => false, 37 ), 38 ), 39 array( 40 'id' => 'opt-editor-full', 41 'type' => 'editor', 42 'title' => esc_html__( 'Editor - Full Width', 'your-textdomain-here' ), 43 'full_width' => true, 44 ), 45 ), 46 ) 47 );