Fixed adsense code
This commit is contained in:
@@ -132,7 +132,7 @@ Wt::WHBoxLayout *App::createActionLayout(Wt::WVBoxLayout *verticalContainer) {
|
|||||||
void App::createHeadContainer(Wt::WVBoxLayout *layout) {
|
void App::createHeadContainer(Wt::WVBoxLayout *layout) {
|
||||||
auto header = layout->addNew<Wt::WContainerWidget>();
|
auto header = layout->addNew<Wt::WContainerWidget>();
|
||||||
header->addNew<Wt::WText>("<h1>ypChat</h1>")->setInline(true);
|
header->addNew<Wt::WText>("<h1>ypChat</h1>")->setInline(true);
|
||||||
header->addNew<Wt::WText>((std::string)"<script async src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1234567890123456\" crossorigin=\"anonymous\"></script>"
|
header->addNew<Wt::WText>((std::string)"<script async src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1104166651501135\" crossorigin=\"anonymous\"></script>"
|
||||||
+ "<ins class=\"adsbygoogle\" style=\"display:inline-block;width:728px;height:90px\" "
|
+ "<ins class=\"adsbygoogle\" style=\"display:inline-block;width:728px;height:90px\" "
|
||||||
+ "data-ad-client=\"ca-pub-1104166651501135\" data-ad-slot=\"8252321071\"></ins> "
|
+ "data-ad-client=\"ca-pub-1104166651501135\" data-ad-slot=\"8252321071\"></ins> "
|
||||||
+ "<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>", Wt::TextFormat::UnsafeXHTML)
|
+ "<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>", Wt::TextFormat::UnsafeXHTML)
|
||||||
|
|||||||
Reference in New Issue
Block a user