public function InstapageCmsPluginLPAjaxLoaderController::addDisplayNoneOnBody in Instapage plugin 7.3
Same name and namespace in other branches
- 8.3 core/modules/lpAjaxLoader/InstapageCmsPluginLPAjaxLoaderController.php \InstapageCmsPluginLPAjaxLoaderController::addDisplayNoneOnBody()
Set display on body in passed $html
Parameters
$html string Whole landing page html:
Return value
string
File
- core/
modules/ lpAjaxLoader/ InstapageCmsPluginLPAjaxLoaderController.php, line 84
Class
- InstapageCmsPluginLPAjaxLoaderController
- Class InstapageCmsPluginLPAjaxLoaderController
Code
public function addDisplayNoneOnBody($html) {
$bodyTag = '<body';
return str_replace($bodyTag, $bodyTag . ' style="display: none"', $html);
}