Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/monara/public_html/test.athavaneng.com/themes.php on line 99
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 226
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 227
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 228
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 229
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /home/monara/public_html/test.athavaneng.com/themes.php:1) in /home/monara/public_html/test.athavaneng.com/themes.php on line 231
home/monara/public_html/SMJ2/wp-content/plugins/mailpoet/lib/Twig/Assets.php 0000644 00000004676 15073176770 0023044 0 ustar 00 globals = $globals;
$this->wp = $wp;
$this->cdnAssetsUrl = $cdnAssetsUrl;
}
public function getFunctions() {
return [
new TwigFunction(
'getJavascriptScriptUrl',
[$this, 'getJavascriptScriptUrl'],
['is_safe' => ['all']]
),
new TwigFunction(
'image_url',
[$this, 'generateImageUrl'],
['is_safe' => ['all']]
),
new TwigFunction(
'cdn_url',
[$this, 'generateCdnUrl'],
['is_safe' => ['all']]
),
new TwigFunction(
'language',
[$this, 'language'],
['is_safe' => ['all']]
),
];
}
/**
* Returns the language, which is currently loaded.
* This function is used to add the language tag for our system emails like stats notifications.
*/
public function language() {
// If we do not have a translation, the language of the mail will be English.
if (!is_textdomain_loaded('mailpoet')) {
return 'en';
}
return (string)$this->wp->getBlogInfo('language');
}
public function getJavascriptScriptUrl($script) {
return sprintf(
'%s/%s/%s?ver=%s',
$this->globals['assets_url'],
strpos($script, 'lib/') === 0 ? 'js' : 'dist/js',
$this->getAssetFileName($this->globals['assets_manifest_js'], $script),
Env::$version
);
}
public function generateImageUrl($path) {
return $this->globals['assets_url'] . '/img/' . $path;
}
public function getAssetFileName($manifest, $asset) {
return (!empty($manifest[$asset])) ? $manifest[$asset] : $asset;
}
public function generateCdnUrl($path) {
if ($this->cdnAssetsUrl === null) {
$this->cdnAssetsUrl = ContainerWrapper::getInstance()->get(CdnAssetUrl::class);
}
return $this->cdnAssetsUrl->generateCdnUrl($path);
}
}