dbFields = array( 'tracking-id'=>'', 'google-site-verification'=>'', 'google-tag-manager'=>'' ); } public function form() { global $Language; $html = '
'; $html .= ''; $html .= ''; $html .= '
'.$Language->get('complete-this-field-with-the-google-site-verification').'
'; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'.$Language->get('complete-this-field-with-the-tracking-id').'
'; $html .= '
'; $html .= '
'; $html .= ''; $html .= ''; $html .= '
'.$Language->get('complete-this-field-with-the-tracking-id-google-tag').'
'; $html .= '
'; return $html; } public function siteHead() { global $Url; $html = ''; if((!Text::isEmpty($this->getDbField('google-site-verification'))) && ($Url->whereAmI()=='home')) { $html .= PHP_EOL.''.PHP_EOL; $html .= ''.PHP_EOL; } if(!(Text::isEmpty($this->getDbField('google-tag-manager')))) { $html .= PHP_EOL."".PHP_EOL; $html .= "".PHP_EOL; $html .= "".PHP_EOL; } return $html; } public function siteBodyBegin() { if((Text::isEmpty($this->getDbField('google-tag-manager')))) { return false; } $html = ''.PHP_EOL; $html .= ''.PHP_EOL; $html .= ''.PHP_EOL; return $html; } public function siteBodyEnd() { $html = PHP_EOL.''.PHP_EOL; $html .= "".PHP_EOL; if(Text::isEmpty($this->getDbField('tracking-id'))) { return false; } return $html; } }