public static function InstapageCmsPluginConnector::isHtmlReplaceNecessary in Instapage plugin 8.3
Same name and namespace in other branches
- 7.3 core/connectors/InstapageCmsPluginConnector.php \InstapageCmsPluginConnector::isHtmlReplaceNecessary()
Checks if there is a need to replace content of CMS with a landing page. Prevents content replacement on admin/login pages.
Return value
bool True if replace is possible.
1 call to InstapageCmsPluginConnector::isHtmlReplaceNecessary()
- InstapageCmsPluginPageModel::check in core/
models/ InstapageCmsPluginPageModel.php - Checks (and returns) if a landing page should be displayed instead of normal content served by CMS.
File
- core/
connectors/ InstapageCmsPluginConnector.php, line 292
Class
- InstapageCmsPluginConnector
- Main connector class, used to integrate with PHP-based CMSes. It's job is to detect a CMS that executes the code and select proper CMS Connector.
Code
public static function isHtmlReplaceNecessary() {
return self::getSelectedConnector()
->isHtmlReplaceNecessary();
}