multilanguage.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | if ( ! defined( 'WP_TEMPLATE_TYPES' ) ) { |
| 5 | define( 'WP_TEMPLATE_TYPES', array( 'wp_template', 'wp_template_part' ) ); |
| 6 | } |
| 7 | |
| 8 | |
| 9 | function get_multilanguage_settings() { |
| 10 | $current_value = kubio_get_global_data( 'globalStyle.props.multilanguage', array() ); |
| 11 | $default_value = array( |
| 12 | 'show' => true, |
| 13 | 'displayAs' => 'flags', |
| 14 | 'showFlags' => true, |
| 15 | 'showNames' => false, |
| 16 | ); |
| 17 | $merged_value = array_merge( $default_value, $current_value ); |
| 18 | |
| 19 | return $merged_value; |
| 20 | } |
| 21 | require_once __DIR__ . '/wpml.php'; |
| 22 | require_once __DIR__ . '/polylang.php'; |
| 23 |