Skip to content

Commit 44c301d

Browse files
committed
adicionado cta flutuante
1 parent 0795d79 commit 44c301d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

app/inc/URLAnalyzer.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,17 @@ private function processContent($content, $domain, $url)
778778
}
779779
}
780780

781+
// Adiciona CTA Marreta
782+
$body = $xpath->query('//body')->item(0);
783+
if ($body) {
784+
$marretaDiv = $dom->createElement('div');
785+
$marretaDiv->setAttribute('style', 'z-index: 99999; position: fixed; bottom: 0; right: 4px; background: rgb(37,99,235); color: #fff; font-size: 13px; line-height: 1em; padding: 6px; margin: 0px; overflow: hidden; border-top-left-radius: 3px; border-top-right-radius: 3px; font-family: Tahoma, sans-serif;');
786+
$marretaHtml = $dom->createDocumentFragment();
787+
$marretaHtml->appendXML('Chapéu de paywall é <a href="'.SITE_URL.'" style="color: #fff; text-decoration: underline; font-weight: bold;" target="_blank">Marreta</a>!');
788+
$marretaDiv->appendChild($marretaHtml);
789+
$body->appendChild($marretaDiv);
790+
}
791+
781792
return $dom->saveHTML();
782793
}
783794
}

0 commit comments

Comments
 (0)