b0VIM 8.2htYrootip-172-31-40-151/srv/http/dynamize/renderer/plugins/buckets.php 3210#"! Utpyzikiadys];$}kR9$ n & x 0 { 3 : D ~icb(xwePJIzy uFE7iO|aO@?.  } } $keywords[] = ['keyword' => $keyword, 'weight' => 100 / count($results->keywords)]; foreach ($results->keywords as $keyword) { if ($results->success) { $results = json_decode($response->getBody()->getContents()); ); ] ], 'mode' => $mode, 'count' => $count, 'keyword' => $seed_keyword, "api_key" => getenv("FUNNEL_KEY"), [ 'json' => [ getenv("FUNNEL_ENDPOINT") . "keywords", 'POST', $response = $client->request( $client = new Client(); try { $count = ($bucket['count'] ?? 0) ?: 4; if ($mode == MODE_GOOGLE || $mode == MODE_BING) { $keywords = []; $mode = $bucket['mode'] ?? MODE_NONE; } return $keywords; if (($keywords = Cache::hashGet('keywords_' . $xcid, $seed_keyword, REMOTE_NAME))['keywords'] ?? false) { $seed_keyword = replaceSmartTags(($bucket['seed_keyword'] ?? null) ?: getLocalSearchTerms()[0]); } return null; if (!$bucket) { $bucket = Cache::get('bucket_' . $xcid, REMOTE_NAME); } return null; if (!$xcid) { $xcid = $request->get('xcid'); $request = new Request;{function getBucket()} return $bucket['experience_data']; } return null; if (!$bucket) { $bucket = Cache::get('bucket_' . $xcid, REMOTE_NAME); } return null; if (!$xcid) { $xcid = $request->get('xcid'); $request = new Request;{function getBucketExperience()]; ], 'desktop' => ['height' => 200, 'width' => null, 'header' => 0], 'tablet' => ['height' => 256, 'width' => null, 'header' => 0], 'mobile' => ['height' => 344, 'width' => null, 'header' => 0], 'pac-full-top' => [ ], 'desktop' => ['height' => 130, 'width' => null, 'header' => 34], 'tablet' => ['height' => 150, 'width' => null, 'header' => 34], 'mobile' => ['height' => 200, 'width' => null, 'header' => 42], 'sac-ppcwidget' => [ ], 'desktop' => ['height' => 130, 'width' => null, 'header' => 34], 'tablet' => ['height' => 150, 'width' => null, 'header' => 34], 'mobile' => ['height' => 200, 'width' => null, 'header' => 42], 'pac-widget-bottom' => [ ], 'desktop' => ['height' => 130, 'width' => null, 'header' => 34], 'tablet' => ['height' => 150, 'width' => null, 'header' => 34], 'mobile' => ['height' => 200, 'width' => null, 'header' => 42], 'pac-widget' => [ ], 'desktop' => ['height' => 130, 'width' => null, 'header' => 34], 'tablet' => ['height' => 150, 'width' => null, 'header' => 34], 'mobile' => ['height' => 200, 'width' => null, 'header' => 42], 'standard' => [const SIZE_DATA = []; 'pac-full-bottom', 'pac-full-middle', 'pac-full-top', 'sac-ppcwidget', 'pac-keyword-block', 'pac-widget-bottom', 'pac-widget',const TAGS = [const MODE_NONE = 'none';const MODE_BING = 'bing';const MODE_GOOGLE = 'google';const MODE_MANUAL = 'manual';use Wa72\HtmlPageDom\HtmlPageCrawler;use voku\helper\Hooks;use Twig\Loader\FilesystemLoader;use Twig\Environment;use Renderer\Request;use Renderer\Elements;use Renderer\Cache;use Renderer\Ads;use GuzzleHttp\Client;use Detection\MobileDetect;add_filter('post_page', 'ppcAdFilter');if ($request->lastSegment() !== STYLESHEET_PAGE) {// Let's make sure we don't run subsequent filters if we're rendering the stylesheet$request = new Request;$hooks = Hooks::getInstance();} return $twig; $twig = new Environment($loader); $loader = new FilesystemLoader(dirname(__FILE__) . '/buckets');{function initTwig() */ * @return Environment * * Initialize Twig environment./**} Elements::presizeAd($zone, $height, $size_data['width'], null, false); $count * $zone->getAttribute('size-height') : $count * $size_data['height']); && $zone->getAttribute('size-height') > 25 ? $height = $size_data['header'] + ($zone->getAttribute("ppc-count") } return; if (!$size_data) { $size_data = SIZE_DATA[$size_key][$size] ?? null; } } catch (Exception $e) { } $size = 'mobile'; } elseif ($mobile_detect->isMobile()) { $size = 'tablet'; if ($mobile_detect->isTablet()) { try { $size = 'desktop'; $mobile_detect = new MobileDetect; $count = intval($zone->getAttribute("ppc-count")) ?: 2; } return; if (!$zone->count()) { $zone = $html->filter("div[zone='$tag']");{function presizeAd($html, $tag, $size_key) */ * @param string $size_key * @param string $tag * @param HtmlPageCrawler $html/**} return $page; $page['html'] = $html->saveHTML(); } presizeAd($html, $tag, $key); foreach ($size_keys as $tag => $key) { } } $index++; $element->filter('ad-unit')->replaceWith($ad); $element->setAttribute('zone', $tagName); } } ]); 'zone' => $tagName, 'show' => $showLazy, 'count' => $number, 'url' => $request->getCanonical($site, $post), 'keyword' => $bucket_keyword, 'device' => strtolower($request->getUserDevice()), 'remote' => REMOTE_NAME, 'ad' => $ad, 'provider' => 'publabs', $ad = $local_twig->load('wrapper.html')->render([ $site = Cache::get('site_' . REMOTE_NAME); if (getenv('ASYNC_PPC')) { ]); 'color' => getColor(), 'feed_url' => $results['url'] ?? '__feed_url__', 'hash' => $request->user_hash(), 'search' => $page['type_data']['group'] == 'search', 'typetag' => $results['typetag'] ?? '__typetag__', 'button_title' => $button_title, 'ppc_keyword' => $bucket_keyword, 'ppc_items' => $items, 'ppc_partner' => $results['sourcetag'] ?? '__sourcetag__', 'ppc_ysid' => $results['ysid'] ?? '__ysid__', 'remote' => REMOTE_NAME, $ad = $template->render([ } else { ]); 'size' => $size_data, 'zone' => $tagName, $ad = $twig->load('ad-zone.html')->render([ 404 - HealthPrep.com