35 lines
760 B
PHP
35 lines
760 B
PHP
//<?php
|
|
|
|
/* To prevent PHP errors (extending class does not exist) revealing path */
|
|
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
|
{
|
|
exit;
|
|
}
|
|
|
|
class cms_hook_websiteUrl extends _HOOK_CLASS_
|
|
{
|
|
|
|
/* !Hook Data - DO NOT REMOVE */
|
|
public static function hookData() {
|
|
return array_merge_recursive( array (
|
|
'globalTemplate' =>
|
|
array (
|
|
0 =>
|
|
array (
|
|
'selector' => 'html > body > meta[itemprop=\'url\']',
|
|
'type' => 'replace',
|
|
'content' => '{{if \IPS\Settings::i()->cms_use_different_gateway AND \IPS\Settings::i()->cms_root_page_url}}
|
|
<meta itemprop="url" content="{setting="cms_root_page_url"}">
|
|
{{else}}
|
|
<meta itemprop="url" content="{setting="base_url"}">
|
|
{{endif}}',
|
|
),
|
|
),
|
|
), parent::hookData() );
|
|
}
|
|
/* End Hook Data */
|
|
|
|
|
|
|
|
|
|
} |