// The canonical rule stays fully active. Non-canonical links keep // their desktop behaviour, and cannot affect fonts on <=767px. $changes = []; foreach ($candidates as $i => $item) { if ($i === $canonical) { continue; } $tag = $item['tag']; $insertAt = strrpos($tag, '>'); if ($insertAt === false) { continue; } // Insert before the final > and after any self-closing /. $prefix = substr($tag, 0, $insertAt); $suffix = substr($tag, $insertAt); if (preg_match('~^(.*?)(\\s*/\\s*)$~s', $prefix, $self)) { $newTag = $self[1] . ' media="(min-width: 768px)" data-atv-mobile-font-consolidated="1"' . $self[2] . $suffix; } else { $newTag = $prefix . ' media="(min-width: 768px)" data-atv-mobile-font-consolidated="1"' . $suffix; } $changes[] = ['offset' => $item['offset'], 'old' => $item['len'], 'new' => $newTag]; } // Work backwards to keep source byte offsets valid. usort($changes, static function ($a, $b) { return $b['offset'] <=> $a['offset']; }); foreach ($changes as $change) { $html = substr_replace($html, $change['new'], $change['offset'], $change['old']); } return $html; } /** * Rendering path 2: if the theme omits HOOK_HEADER, inject the exact same * responsive markup into the final HTML before sending it to the client. * Unlike earlier patches, this does not depend on the target IMG appearing in HTML and never rewrites the HTML by user agent. */ public function hookActionOutputHTMLBefore($params) { if (!$this->isHome() || !isset($params['html']) || !is_string($params['html'])) { return; } $html = $this->consolidatePoppinsCssMobile($params['html']); // Insert the existing markup only if not already inserted by displayHeader. if (strpos($html, 'atreve-mobile-lcp12') === false && strpos($html, 'atreve-mobile-lcp11') === false && stripos($html, '') !== false) { $modified = preg_replace('~~i', $this->buildHeadMarkup() . "\n", $html, 1); if (is_string($modified)) { $html = $modified; } } // Bring only the Mobile LCP preload forward, ahead of other HEAD resources. $pattern = '~]*\bid=["\']atreve-mobile-lcp12-preload["\'])[^>]*>~i'; if (preg_match($pattern, $html, $matches) === 1) { $withoutLink = preg_replace($pattern, '', $html, 1); if (is_string($withoutLink)) { $count = 0; $early = preg_replace('~]*>~i', '$0' . "\n" . $matches[0] . "\n", $withoutLink, 1, $count); if (is_string($early) && $count === 1) { $html = $early; } } } $params['html'] = $html; } private function hookStatus(string $name): bool { if (!$this->id || !class_exists('Hook')) { return false; } $hookId = (int) Hook::getIdByName($name); if (!$hookId) { return false; } return (bool) Db::getInstance()->getValue('SELECT COUNT(*) FROM `' . _DB_PREFIX_ . 'hook_module`' . ' WHERE id_module=' . (int)$this->id . ' AND id_hook=' . $hookId); } /** Backoffice diagnostics: no need to guess whether upgrade hooks or WebP exist. */ public function getContent() { $message = ''; if (Tools::isSubmit('atreve_lcp_repair_hook')) { $ok = $this->registerHook('displayHeader') && $this->registerHook('actionOutputHTMLBefore'); $message = $ok ? 'Hooks registados. Limpar cache.' : 'Nao foi possivel registar os hooks.'; } if (Tools::isSubmit('atreve_lcp_make_webp')) { $r = AtreveMobileLcpImage::ensure($this->siteRoot()); $message = ($r['ok'] ? 'WebP: ' : 'Falha WebP: ') . $r['message']; } $source = $this->siteRoot() . self::IMAGE_DIR . self::TARGET_PNG; $variant = $this->siteRoot() . self::IMAGE_DIR . self::TARGET_WEBP; $sourceInfo = is_file($source) ? round(filesize($source)/1024) . ' KiB' : 'NAO ENCONTRADO'; $webpInfo = $this->hasWebp() ? round(filesize($variant)/1024) . ' KiB' : 'NAO ENCONTRADO'; $header = $this->hookStatus('displayHeader') ? 'OK' : 'NAO REGISTADO'; $output = $this->hookStatus('actionOutputHTMLBefore') ? 'OK' : 'NAO REGISTADO'; $url = htmlspecialchars($this->context->link->getAdminLink('AdminModules', true, [], ['configure' => $this->name]), ENT_QUOTES, 'UTF-8'); $msg = htmlspecialchars($message, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8'); $html = '

Atreve-te Mobile LCP — Diagnostico v1.7.1

'; if ($message !== '') { $html .= '

' . $msg . '

'; } $html .= '

Homepage: apenas a imagem ' . htmlspecialchars(self::TARGET_PNG, ENT_QUOTES, 'UTF-8') . '

'; $html .= '

Hook displayHeader: ' . $header . '

'; $html .= '

Hook actionOutputHTMLBefore: ' . $output . '

'; $html .= '

PNG original: ' . $sourceInfo . '

'; $html .= '

WebP mobile: ' . $webpInfo . '

'; $html .= '

O preload e o ajuste JavaScript so atuam ate 767px. Nenhum HTML e diferenciado por User-Agent.

'; $html .= '

Fontes mobile: consolidacao conservadora de links Google Fonts Poppins quando uma folha cobre todos os pesos das restantes; desktop, Cormorant Garamond e Font Awesome inalterados.

'; $html .= '

Verificacao frontend: procurar atreve-mobile-lcp12 em view-source da homepage. Se nao aparecer, verificar se o servidor esta a executar o hook de saida final ou se existe cache.

'; $html .= '
' . '' . '   ' . '
'; return $html; } } Intense - Bala Vibratória Roxa Mística 8,7 x 2,4 Cm
Podemos ajudar?
Estamos aqui para ajudar

Intense - Bala Vibratória Roxa Mística 8,7 x 2,4 Cm

Marca: Intense Fun Toys Referência: D-243337

Leve seu novo mini vibrador para onde quer que você vá para um prazer instantâneo. Pequeno o suficiente para caber no seu bolso ou bolsa, este coelhinho fofo é coberto com silicone macio aveludado e possui duas orelhas para cercar seu clitóris com uma vibração deliciosa que pode ser facilmente ligada e desligada pressionando o botão na parte inferior do brinquedo. Desparafuse a base para trocar as pilhas.

Características:

  • Medidas: 87 X 24 mm
  • Material: ABS, Silicone
  • À prova d'água/submersível, classificação IPX6
  • Sem ftalatos
  • Pilhas: incl. - 3x LR44
  • Velocidade poderosa
  • Submersível, classificação IPX6

Silicone hipoalergênico e ecológico que proporciona uma sensação sedosa única.

Voltar ao topo