Skip to content

Commit

Permalink
Add SEO pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tvlooy committed Nov 15, 2023
1 parent ef1e155 commit 7596259
Show file tree
Hide file tree
Showing 12 changed files with 488 additions and 30 deletions.
24 changes: 18 additions & 6 deletions config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,26 @@ cookie:
_controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController::templateAction
template: 'Static/cookiePolicy.html.twig'

ecofriendly:
path: /eco-friendly
ecofriendly1:
path: /eco-friendly-tips
defaults:
_controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController::templateAction
template: 'Static/ecofriendly.html.twig'
template: 'Static/ecofriendly1.html.twig'

top10gifts:
path: /top-10-gifts
ecofriendly2:
path: /eco-friendly-party
defaults:
_controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController::templateAction
template: 'Static/top10gifts.html.twig'
template: 'Static/ecofriendly2.html.twig'

top10gifts1:
path: /top-10-gifts-budget
defaults:
_controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController::templateAction
template: 'Static/top10gifts1.html.twig'

top10gifts2:
path: /top-10-gifts-ideas
defaults:
_controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController::templateAction
template: 'Static/top10gifts2.html.twig'
Binary file added public/seoimg/dinner1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/seoimg/dinner2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/seoimg/gift1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/seoimg/gift2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions templates/Static/ecofriendly1.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{% extends "base.html.twig" %}

{% block metadata %}
<meta name="title" content="{{ 'static-ecofriendly1.meta-title'|trans|raw }}">
<meta name="description" content="{{ 'static-ecofriendly1.meta-description'|trans|raw }}">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9463520136816719" crossorigin="anonymous"></script>
{% endblock %}

{% block main %}
<div class="box">
{{ 'static-ecofriendly1.main'|trans|raw }}
</div>

{% if geoCountry() == 'DE' %}
<a href="https://www.ebay.de/?mkcid=1&mkrid=707-53477-19255-0&siteid=77&campid=5339020780&customid=&toolid=10001&mkevt=1"
target="_blank" rel="noopener noreferrer">
<img src="{{ absolute_url(asset('/ebay/all.png')) }}" width="100%">">
</a><br>
{% elseif geoCountry() == 'FR' %}
<a href="https://www.ebay.fr/?mkcid=1&mkrid=709-53476-19255-0&siteid=71&campid=5339020780&customid=&toolid=10001&mkevt=1"
target="_blank" rel="noopener noreferrer">
<img src="{{ absolute_url(asset('/ebay/all.png')) }}" width="100%">">
</a><br>
{% elseif geoCountry() == 'ES' %}
<a href="https://www.ebay.es/?mkcid=1&mkrid=1185-53479-19255-0&siteid=186&campid=5339020780&customid=&toolid=10001&mkevt=1"
target="_blank" rel="noopener noreferrer">
<img src="{{ absolute_url(asset('/ebay/all.png')) }}" width="100%">">
</a><br>
{% else %}
{% set banner = random(2) %}
{% if banner == 0 %}
{% set banner_url = 'https://www.ebay.com/b/Home-Garden/11700/bn_1853126?mkcid=1&mkrid=711-53200-19255-0&siteid=0&campid=5339020780&customid=&toolid=10001&mkevt=1' %}
{% set banner_img = '/ebay/home_garden.png' %}
{% elseif banner == 1 %}
{% set banner_url = 'https://www.ebay.com/b/Electronics/bn_7000259124?mkcid=1&mkrid=711-53200-19255-0&siteid=0&campid=5339020780&customid=&toolid=10001&mkevt=1' %}
{% set banner_img = '/ebay/tech.png' %}
{% else %}
{% set banner_url = 'https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=Sneakers&_sacat=0[…]55-0&siteid=0&campid=5339020780&customid=&toolid=10001&mkevt=1' %}
{% set banner_img = '/ebay/sneakers.png' %}
{% endif %}
<a href="{{ banner_url }}"
target="_blank" rel="noopener noreferrer">
<img src="{{ absolute_url(asset(banner_img)) }}" width="100%">
</a><br>
{% endif %}
<br><br>

{% if geoCountry() in ["BE", "NL"] %}
<div class="row text-center">
<div class="col mb-2">
<a href="https://kersthits.lnk.to/playlist" rel="noopener noreferrer" target="_blank">
<img src="{{ absolute_url(asset('/sony2021.jpg')) }}" width="100%">
</a>
</div>
</div>
{% endif %}
<div class="row text-center">
<div class="col mb-2">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9463520136816719"
crossorigin="anonymous"></script>
<!-- Horizontal banner -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-9463520136816719"
data-ad-slot="7244544166"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
{% endblock %}
73 changes: 73 additions & 0 deletions templates/Static/ecofriendly2.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{% extends "base.html.twig" %}

{% block metadata %}
<meta name="title" content="{{ 'static-ecofriendly2.meta-title'|trans|raw }}">
<meta name="description" content="{{ 'static-ecofriendly2.meta-description'|trans|raw }}">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9463520136816719" crossorigin="anonymous"></script>
{% endblock %}

{% block main %}
<div class="box">
{{ 'static-ecofriendly2.main'|trans|raw }}
</div>

{% if geoCountry() == 'DE' %}
<a href="https://www.ebay.de/?mkcid=1&mkrid=707-53477-19255-0&siteid=77&campid=5339020780&customid=&toolid=10001&mkevt=1"
target="_blank" rel="noopener noreferrer">
<img src="{{ absolute_url(asset('/ebay/all.png')) }}" width="100%">">
</a><br>
{% elseif geoCountry() == 'FR' %}
<a href="https://www.ebay.fr/?mkcid=1&mkrid=709-53476-19255-0&siteid=71&campid=5339020780&customid=&toolid=10001&mkevt=1"
target="_blank" rel="noopener noreferrer">
<img src="{{ absolute_url(asset('/ebay/all.png')) }}" width="100%">">
</a><br>
{% elseif geoCountry() == 'ES' %}
<a href="https://www.ebay.es/?mkcid=1&mkrid=1185-53479-19255-0&siteid=186&campid=5339020780&customid=&toolid=10001&mkevt=1"
target="_blank" rel="noopener noreferrer">
<img src="{{ absolute_url(asset('/ebay/all.png')) }}" width="100%">">
</a><br>
{% else %}
{% set banner = random(2) %}
{% if banner == 0 %}
{% set banner_url = 'https://www.ebay.com/b/Home-Garden/11700/bn_1853126?mkcid=1&mkrid=711-53200-19255-0&siteid=0&campid=5339020780&customid=&toolid=10001&mkevt=1' %}
{% set banner_img = '/ebay/home_garden.png' %}
{% elseif banner == 1 %}
{% set banner_url = 'https://www.ebay.com/b/Electronics/bn_7000259124?mkcid=1&mkrid=711-53200-19255-0&siteid=0&campid=5339020780&customid=&toolid=10001&mkevt=1' %}
{% set banner_img = '/ebay/tech.png' %}
{% else %}
{% set banner_url = 'https://www.ebay.com/sch/i.html?_from=R40&_trksid=m570.l1313&_nkw=Sneakers&_sacat=0[…]55-0&siteid=0&campid=5339020780&customid=&toolid=10001&mkevt=1' %}
{% set banner_img = '/ebay/sneakers.png' %}
{% endif %}
<a href="{{ banner_url }}"
target="_blank" rel="noopener noreferrer">
<img src="{{ absolute_url(asset(banner_img)) }}" width="100%">
</a><br>
{% endif %}
<br><br>

{% if geoCountry() in ["BE", "NL"] %}
<div class="row text-center">
<div class="col mb-2">
<a href="https://kersthits.lnk.to/playlist" rel="noopener noreferrer" target="_blank">
<img src="{{ absolute_url(asset('/sony2021.jpg')) }}" width="100%">
</a>
</div>
</div>
{% endif %}
<div class="row text-center">
<div class="col mb-2">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9463520136816719"
crossorigin="anonymous"></script>
<!-- Horizontal banner -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-9463520136816719"
data-ad-slot="7244544166"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{% extends "base.html.twig" %}

{% block metadata %}
<meta name="title" content="{{ 'static-top10gifts1.meta-title'|trans|raw }}">
<meta name="description" content="{{ 'static-top10gifts1.meta-description'|trans|raw }}">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9463520136816719" crossorigin="anonymous"></script>
{% endblock %}

{% block main %}
<div class="box">
{{ 'static-ecofriendly.main'|trans|raw }}
{{ 'static-top10gifts1.main'|trans|raw }}
</div>

{% if geoCountry() == 'DE' %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{% extends "base.html.twig" %}

{% block metadata %}
<meta name="title" content="{{ 'static-top10gifts2.meta-title'|trans|raw }}">
<meta name="description" content="{{ 'static-top10gifts2.meta-description'|trans|raw }}">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9463520136816719" crossorigin="anonymous"></script>
{% endblock %}

{% block main %}
<div class="box">
{{ 'static-top10gifts.main'|trans|raw }}
{{ 'static-top10gifts2.main'|trans|raw }}
</div>

{% if geoCountry() == 'DE' %}
Expand Down
6 changes: 4 additions & 2 deletions templates/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,10 @@
<div class="legal-links">
<a href="{{ path('privacy') }}">{{ 'base.privacy_policy'|trans }}</a>
<a href="{{ path('cookie') }}">{{ 'base.cookie_policy'|trans }}</a>
<a href="{{ path('ecofriendly') }}">{{ 'base.ecofriendly'|trans }}</a>
<a href="{{ path('top10gifts') }}">{{ 'base.top10gifts'|trans }}</a>
<a href="{{ path('ecofriendly1') }}">{{ 'base.ecofriendly1'|trans }}</a>
<a href="{{ path('ecofriendly2') }}">{{ 'base.ecofriendly2'|trans }}</a>
<a href="{{ path('top10gifts1') }}">{{ 'base.top10gifts1'|trans }}</a>
<a href="{{ path('top10gifts2') }}">{{ 'base.top10gifts2'|trans }}</a>
{# <a href="{{ path('bugbounty') }}">{{ 'base.bug_bounty'|trans }}</a> #}
</div>
</div>
Expand Down
Loading

0 comments on commit 7596259

Please sign in to comment.