![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/themes/dt-the7/inc/mods/compatibility/wpml/ |
<?php /** * Options to inject in header. */ defined( 'ABSPATH' ) || exit; $new_options = []; $new_options[] = [ 'name' => _x( 'WPML language switcher', 'theme-options', 'the7mk2' ), 'id' => 'microwidgets-language-block', 'class' => 'block-disabled', 'type' => 'block', ]; presscore_options_apply_template( $new_options, 'basic-header-element', 'header-elements-language', [ 'caption' => false, 'icon' => false, 'url' => false, ] ); // Add new options. if ( isset( $options ) ) { $options = dt_array_push_after( $options, $new_options, 'header-before-elements-placeholder' ); } // Cleanup. unset( $new_options );