31 if (preg_match(
'/target=["\']_popup["\']/i', $content))
36 if(preg_match_all(
'/data-pseudo-url=["\'][^"\']*_popup[^"\']*["\']/i', $content, $pseudoUrls))
38 foreach ($pseudoUrls[0] as $pseudoUrl)
40 $params = htmlspecialcharsback($pseudoUrl);
41 $params = str_replace(
'data-pseudo-url=',
'', $params);
42 $params = substr($params,0,-1);
43 $params = substr($params,1);
47 $params = Json::decode($params);
48 if($params[
'enabled'])
54 catch (\Exception $e){}
65 if ($block->
getCode() === self::HTML_BLOCK_CODE)
70 if (!empty($newExtensions))
72 $extensions = ($block->
getAsset()[
'ext'] ?? []) ?: [];
73 $extensions = array_merge($newExtensions, $extensions);
75 'ext' => array_unique($extensions)
123 if (isset($blockAssets[
'ext']))
125 $assets = Assets\Manager::getInstance();
126 foreach ($blockAssets[
'ext'] as $ext)
128 $location = Assets\Location::getDefaultLocation();
129 if (in_array($ext, self::CRITICAL_EXTENSIONS,
true))
131 $location = Assets\Location::LOCATION_BEFORE_ALL;
133 $assets->addAsset($ext, $location);