function EzAdSenseFront()
 {
     $optionSet = EzGA::getMobileType();
     if ($optionSet == "Killed") {
         EzGA::$noAds = true;
         $optionSet = "";
     }
     $this->options = EzGA::getOptions($optionSet);
     $this->defaultText = $this->options['defaultText'];
     // Counts and limis
     self::$ezMax = $this->options['max_count'];
     self::$urMax = $this->options['max_link'];
 }
示例#2
0
          <div class="alert alert-block col-md-12">
            <h4 class="alert-heading">Warning!</h4>

            <p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a>
              enabled to use this site.</p>
          </div>
          </noscript>

          <div id="content" class="col-lg-10 col-sm-10">
            <!-- content starts -->
            <?php 
    $header = ob_get_clean();
    return $header;
}
EzGA::verifyOptionSets();
if (!empty($_REQUEST['optionset'])) {
    $optionset = $_REQUEST['optionset'];
    EzGA::setOptionset($optionset);
} else {
    $optionset = EzGA::getGenOption('editing');
    if (empty($optionset)) {
        $optionset = 'Default';
    }
}
$options = EzGA::getOptions($optionset);
$header = getHeader($options);
if (method_exists('EzGA', 'toggleMenu')) {
    $header = EzGA::toggleMenu($header);
}
http_response_code(200);
echo $header;