| Server IP : 74.208.236.16 / Your IP : 216.73.216.174 Web Server : Apache System : Linux infongwp-us3 4.4.400-icpu-108 #2 SMP Wed Feb 11 10:12:42 UTC 2026 x86_64 User : u102440577 ( 7172810) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/44/d845879113/htdocs/app849812966/wp-content/plugins/ionos-sso/inc/ |
Upload File : |
<?php
namespace Ionos\SSO;
use Ionos\Sso\Config;
if ( ! defined( 'ABSPATH' ) ) {
die();
}
/**
* Helper class
*/
class Helper {
/**
* Get the url of the css folder
*
* @param string $file // css file name.
*
* @return string
*/
public static function get_css_url( $file = '' ) {
return plugins_url( 'css/' . $file, __DIR__ );
}
/**
* Returns path to css folder with optional file.
*
* @param string $file File name.
*
* @return string
*/
public static function get_css_path( $file = '' ) {
return self::get_plugin_dir_path() . 'css/' . $file;
}
/**
* Returns plugin dir path.
*
* @return string
*/
public static function get_plugin_dir_path() {
return plugin_dir_path( __DIR__ );
}
/**
* Is the SSO enabled/authorized?
*/
public static function is_enabled() {
return '1' === Config::get( 'main.enabled' ) && is_ssl();
}
}