PageHead
PageHead PHP Methods
static addSpeedTest($cookie) v5
Add page speed test
PARAMETERS:
$cookie = object
RETURN VALUE:
string = speed test contentstatic function getApproveCookieScript(\WMT\Settings\Core $settingsCore) v5
Gets approve cookies script (JS script)
PARAMETERS:
$settingsCore = object
RETURN VALUE:
string = approve cookies script (JS script)static getBootstrapLink(\WMT\SQL\Page\Page $page) v5
Gets bootstrap integration CSS link
PARAMETERS:
$page = object
RETURN VALUE:
string = bootstrap integration CSS linkstatic getBootstrapScript(\WMT\SQL\Page\Page $page) v5
Gets Bootstrap javascript integration link
PARAMETERS:
$page = object
RETURN VALUE:
string = Bootstrap javascript integration linkstatic getCanonical(\WMT\Container $container, \WMT\SQL\Page\Page $page) v5
Gets Canonical meta data
PARAMETERS:
$container = object
$page = object
RETURN VALUE:
string = Canonical meta datastatic getChatAddJS(\WMT\Container $container, \WMT\SQL\Page\Page $page, string $user, int $showChat, string $testNewline = "") v5
Gets add message chat JS script (requires chat tool)
PARAMETERS:
$container = object
$page = object
$user = string, Member's Username
$showChat = int, 0 to hide chat, otherwise it will show the chat popup
$testNewline = string
RETURN VALUE:
string = add message chat JS script as HTMLstatic getChatJS(\WMT\SQL\Page\Page $page, int $showChat, \WMT\SQL\Visit\Visitor $visitor, string $testNewline = "") v5
Gets chat JavaScript (requires chat tool)
PARAMETERS:
$page = object
$showChat = int, 0 to hide chat, otherwise it will show the chat popup
$visitor = object
$testNewline = string
RETURN VALUE:
string = chat JavaScriptstatic getChatLink(\WMT\Container $container, int $showChat) v5
Gets chat CSS link (Requires chat tool)
PARAMETERS:
$container = object
$showChat = int, 0 to hide chat, otherwise it will show the chat popup
RETURN VALUE:
string = chat CSS link (link HTML tag)static getChatScript(\WMT\Container $container, int $showChat) v5
Gets chat script (requires chat tool)
PARAMETERS:
$container = object
$showChat = int, 0 to hide chat, otherwise it will show the chat popup
RETURN VALUE:
string = chat scriptstatic getContactAddAjaxScript(\WMT\Container $container, \WMT\SQL\Page\Page $page) v5
Gets add contact ajax javascript
PARAMETERS:
$container = object
$page = object
RETURN VALUE:
string = add contact ajax javascriptstatic getDefaultJS() v5
Gets page default Javascript code
PARAMETERS:
NONE
RETURN VALUE:
string = page default Javascript codestatic getDelayedActionJS(\WMT\Container $container, \WMT\SQL\Page\Page $page, \WMT\SQL\Visit\Visitor $visitor, string $testNewline = "") v5
Gets page delayed action Javascript
PARAMETERS:
$container = object
$page = object
$visitor = object
$testNewline = string
RETURN VALUE:
string = page delayed action Javascriptstatic getDelayedActionScript(\WMT\Container $container, \WMT\SQL\Page\Page $page) v5
Gets page delayed action Javascript embed html script tag
PARAMETERS:
$container = object
$page = object
RETURN VALUE:
string = page delayed action Javascriptstatic getDNone(string $scriptInclude) v5
Hide tags having class = d-none and class= wmthidden
PARAMETERS:
$scriptInclude = string, CSS styles to include
RETURN VALUE:
string = Append d-none and wmthidden classes to the pagestatic getEditPageJS(\WMT\SQL\Page\Page $page, \WMT\SQL\Visit\Visitor $visitor) v5
Gets edit page button javascript
PARAMETERS:
$page = object
$visitor = object
RETURN VALUE:
string = edit page button javascriptstatic getExitPopupJS(\WMT\Container $container, \WMT\SQL\Page\Page $page, \WMT\SQL\Member\Member $member, string $testNewline = "") v5
Gets Exit popup Javascript
PARAMETERS:
$container = object
$page = object
$member = object
$testNewline = string
RETURN VALUE:
string = Exit popup Javascriptstatic getExitPopupScript(\WMT\Container $container, \WMT\SQL\Page\Page $page) v5
Gets exit popup JS script HTML tag
PARAMETERS:
$container = object
$page = object
RETURN VALUE:
string = exit popup JS script HTML tagstatic getFacebookImage(\WMT\SQL\Page\Page $page) v5
Gets Facebook image meta tag
PARAMETERS:
$page = object
RETURN VALUE:
string = Facebook image meta tagstatic getGoogleAnalyticsJS(\WMT\Container $container, $testNewline = "") v5
Gets google analytics javascript
PARAMETERS:
$container = object
$testNewline = string
RETURN VALUE:
string = google analytics javascriptstatic getInviterScript(\WMT\Container $container, \WMT\SQL\Page\Page $page) v5
Gets inviter javascript (requires inviter tool)
PARAMETERS:
$container = object
$page = object
RETURN VALUE:
string = inviter javascriptstatic getPageMinuteJS(\WMT\SQL\Page\Page $page, \WMT\SQL\Visit\Visitor $visitor) v5
Gets page min script
PARAMETERS:
$page = object
$visitor = object
RETURN VALUE:
string = page min scriptstatic getSendFormJS(\WMT\Container $container, \WMT\SQL\Page\Page $page, array $formFields, int $tLanguage, bool $hasCPF) v5
Gets Submit capture form javascript functions
PARAMETERS:
$container = object
$page = object
$formFields = array, Capture page form fields as an array
$tLanguage = int, Language ID
$hasCPF = bool, True if the page has a capture form, false otherwise
RETURN VALUE:
string = Submit capture form javascriptstatic getShowChat(\WMT\Container $container, \WMT\SQL\Member\Member $member) v5
Gets show chat setting as set by a member
PARAMETERS:
$container = object
$member = object
RETURN VALUE:
int = show chat setting valuestatic getVideoJS(\WMT\SQL\Page\PageContent $pageContent, string $testNewline = "") v5
Gets .mp4 video JavaScript
PARAMETERS:
$pageContent = object
$testNewline = string
RETURN VALUE:
string = mp4 video JavaScriptstatic getVideoProgressJS($testNewline = "") v5
Gets video progress javascript
PARAMETERS:
$testNewline = string
RETURN VALUE:
string = video progress javascriptstatic getWelcomeMemberJS(\WMT\Container $container, \WMT\SQL\Visit\Visitor $visitor) v5
Gets welcome member popup script
PARAMETERS:
$container = object
$visitor = object
RETURN VALUE:
string = welcome member popup scriptPageHead PHP Variables
🔎︎ %l4610%