| Server IP : 74.208.236.16 / Your IP : 216.73.216.220 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u102440577 ( 7172810) PHP Version : 8.4.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/44/d845879113/htdocs/app245899/wp-content/plugins/ionos-help-center/inc/ |
Upload File : |
<?php
namespace Ionos\HelpCenter;
// Do not allow direct access!
if ( ! defined( 'ABSPATH' ) ) {
die();
}
class Helper {
public static function get_plugin_dir_path() {
return plugin_dir_path( __DIR__ );
}
/**
* Get CSS URL from plugin
*
* @param string $file
*
* @return string
*/
public static function get_css_url( $file = '' ) {
return plugins_url( 'css/' . $file, __DIR__ );
}
public static function get_css_path( $file = '' ) {
return self::get_plugin_dir_path() . 'css/' . $file;
}
/**
* Get JavaScript URL from plugin
*
* @param string $file
*
* @return string
*/
public static function get_js_url( $file = '' ) {
return plugins_url( 'js/' . $file, __DIR__ );
}
public static function get_js_path( $file = '' ) {
return self::get_plugin_dir_path() . 'js/' . $file;
}
}