| Server IP : 213.186.33.4 / Your IP : 216.73.216.222 Web Server : Apache System : Linux webm005.cluster103.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : karinebmkh ( 644538) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/karinebmkh/www2/wp-content/plugins/glaza-core/includes/ |
Upload File : |
<?php
/**
* @param $text
* @return bool|string
* glaza translation
*/
if ( ! function_exists( 'glaza_translate' ) ) {
function glaza_translate( $text = null ) {
if ( empty( $text ) ) {
return false;
}
$text = trim( $text );
$translation_data = glaza_translation_default();
$key = 't_' . $text;
$translate = glaza_get_option( $key );
if ( ! empty( $translate ) ) {
return esc_html( $translate );
}
if ( isset( $translation_data[ $text ] ) ) {
return $translation_data[ $text ];
};
return false;
}
}
/**
* @return array|mixed|void
* return default data
*/
if ( ! function_exists( 'glaza_translation_default' ) ) {
function glaza_translation_default() {
$translation_data = array(
'share_email' => esc_html__( 'I found this article interesting and thought of sharing it with you. Check it out:', 'glaza-core' ),
);
$translation_data = apply_filters( 'glaza_translation_data', $translation_data );
return $translation_data;
}
}