| Server IP : 146.59.209.152 / Your IP : 216.73.216.46 Web Server : Apache System : Linux webm005.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : infrafs ( 43850) PHP Version : 8.2.29 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/infrafs/INFRABIKEDE/wp-content/plugins/weglot/src/actions/front/ |
Upload File : |
<?php
namespace WeglotWP\Actions\Front;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
use WeglotWP\Models\Hooks_Interface_Weglot;
use WeglotWP\Services\Button_Service_Weglot;
use WeglotWP\Services\Request_Url_Service_Weglot;
/**
*
* @since 2.0
*/
class Shortcode_Weglot {
/**
* @var Button_Service_Weglot
*/
private $button_services;
/**
* @var Request_Url_Service_Weglot
*/
private $request_url_services;
/**
* @since 2.0
*/
public function __construct() {
$this->button_services = weglot_get_service( 'Button_Service_Weglot' );
$this->request_url_services = weglot_get_service( 'Request_Url_Service_Weglot' );
add_shortcode( 'weglot_switcher', array( $this, 'weglot_switcher_callback' ) );
}
/**
* @see weglot_switcher
* @since 2.0
*
* @return string
*/
public function weglot_switcher_callback() {
return $this->button_services->get_html( 'weglot-shortcode' ); //phpcs:ignore
}
}