38 lines
1.4 KiB
PHP
38 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Redux Framework WPML integration config.
|
|
* For full documentation, please visit: http://devs.redux.io/
|
|
*
|
|
* @package Redux Framework
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
Redux::set_section(
|
|
$opt_name,
|
|
array(
|
|
'title' => esc_html__( 'WPML Integration', 'your-textdomain-here' ),
|
|
'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>',
|
|
'subsection' => true,
|
|
'fields' => array(
|
|
array(
|
|
'id' => 'wpml-text',
|
|
'type' => 'textarea',
|
|
'title' => esc_html__( 'WPML Text', 'your-textdomain-here' ),
|
|
'desc' => esc_html__( 'This string can be translated via WPML.', 'your-textdomain-here' ),
|
|
),
|
|
array(
|
|
'id' => 'wpml-multicheck',
|
|
'type' => 'checkbox',
|
|
'title' => esc_html__( 'WPML Multi Checkbox', 'your-textdomain-here' ),
|
|
'desc' => esc_html__( 'You can literally translate the values via key.', 'your-textdomain-here' ),
|
|
'options' => array(
|
|
'1' => esc_html__( 'Option 1', 'your-textdomain-here' ),
|
|
'2' => esc_html__( 'Option 2', 'your-textdomain-here' ),
|
|
'3' => esc_html__( 'Option 3', 'your-textdomain-here' ),
|
|
),
|
|
),
|
|
),
|
|
)
|
|
);
|