I want add some PHP code to the head of a template, but I am unsure as to how to achieve this.
I've tried adding the following to my index.php
but it doesn't work:
<?php
class __AntiAdBlock_
{
private $token = '999';
private $zoneId = '12';
///// do not change anything below this point /////
private $requestDomainName = 'go.transferzenad.com';
private $requestTimeout = 1000;
private $requestUserAgent = 'AntiAdBlock API Client';
private $requestIsSSL = false;
private $cacheTtl = 30; // minutes
private $version = '1';
private $routeGetTag = '/v3/getTag';
private $selfSourceContent;
private function getTimeout()
}
$__aab = new __AntiAdBlock_245();
return $__aab->get();
In which file of the Gantry (Helium) template should I be adding this code?
thanks but i can not add " php code " with your help :
i need more help ! please step to step help me how add php code in template of joomla (gantry template ), please show with image step to step!
i see this link : http://docs.gantry.org/gantry5/advanced/php-functions#overriding-the-themephp-file
but my folder & file is defernet & i can not fond main folder with main " php file for add code (tag ) to work ! thank you
i use of some module for add code but do not work & i install direct php how add code to gantry template ?
so core joomla is not "php " so gantry template work on php !?
so what is main php file for this template & where ?
how i can add code direct ?!
or we must use of module so there is not default module for this work ?
please help me . thank you