wpml-integration.php (1476B)
1 <?php 2 /** 3 * Redux Framework WPML integration 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__( 'WPML Integration', 'your-textdomain-here' ), 15 'desc' => esc_html__( 'These fields can be fully translated by WPML (WordPress Multi-Language). This serves as an example for you to implement. For extra details look at our WPML Implementation documentation: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/guides/advanced/wpml-integration.html" target="_blank" >https://devs.redux.io/guides/advanced/wpml-integration.html</a>', 16 'subsection' => true, 17 'fields' => array( 18 array( 19 'id' => 'wpml-text', 20 'type' => 'textarea', 21 'title' => esc_html__( 'WPML Text', 'your-textdomain-here' ), 22 'desc' => esc_html__( 'This string can be translated via WPML.', 'your-textdomain-here' ), 23 ), 24 array( 25 'id' => 'wpml-multicheck', 26 'type' => 'checkbox', 27 'title' => esc_html__( 'WPML Multi Checkbox', 'your-textdomain-here' ), 28 'desc' => esc_html__( 'You can literally translate the values via key.', 'your-textdomain-here' ), 29 'options' => array( 30 '1' => esc_html__( 'Option 1', 'your-textdomain-here' ), 31 '2' => esc_html__( 'Option 2', 'your-textdomain-here' ), 32 '3' => esc_html__( 'Option 3', 'your-textdomain-here' ), 33 ), 34 ), 35 ), 36 ) 37 );