Skip to content

Commit 6dcd444

Browse files
committed
Move sponsors from pmaweb/templates/sponsors.html to data/sponsors.py
After checking 35a9f3f was missing on the sponsors page cc @ibennetch First sponsor added in 2018: 0ca65a2
1 parent 0beaf9e commit 6dcd444

5 files changed

Lines changed: 151 additions & 232 deletions

File tree

data/sponsors.py

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# -*- coding: UTF-8 -*-
2+
# vim: set expandtab sw=4 ts=4 sts=4:
3+
#
4+
# phpMyAdmin web site
5+
#
6+
# Copyright (C) 2026 William Desportes <williamdes@wdes.fr>
7+
# Copyright (C) 2018-2026 Isaac Bennetch
8+
#
9+
# This program is free software; you can redistribute it and/or modify
10+
# it under the terms of the GNU General Public License as published by
11+
# the Free Software Foundation; either version 2 of the License, or
12+
# (at your option) any later version.
13+
#
14+
# This program is distributed in the hope that it will be useful,
15+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
# GNU General Public License for more details.
18+
#
19+
# You should have received a copy of the GNU General Public License along
20+
# with this program; if not, write to the Free Software Foundation, Inc.,
21+
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22+
#
23+
24+
# List of our sponsors
25+
SPONSORS = {
26+
'diamond': [],
27+
'platinum': [],
28+
'gold': [
29+
{ 'url': 'https://www.4kdownload.com/', 'logo': '4kdownload.png', 'name': '4K Download'},
30+
{ 'url': 'https://vape.se/', 'logo': 'vape.png', 'name': 'Vape.se'},
31+
{ 'url': 'https://superviral.io', 'logo': 'superviral.png', 'name': 'Superviral.io'},
32+
{ 'url': 'https://www.ramotion.com/', 'logo': 'ramotion.png', 'name': 'Ramotion.com'},
33+
{ 'url': 'https://unaimytext.com/', 'logo': 'unaimytext.png', 'name': 'UnAiMyText'},
34+
{ 'url': 'https://socialboss.org/', 'logo': 'socialboss.png', 'name': 'SocialBoss'},
35+
{ 'url': 'https://quickbookstoolhub.com/', 'logo': 'quickbookstoolhub.png', 'name': 'Quickbooks Tool Hub'},
36+
{ 'url': 'https://buzzoid.com/', 'logo': 'buzzoid.png', 'name': 'Buy Instagram Followers & Likes'},
37+
{ 'url': 'https://twicsy.com/', 'logo': 'twicsy.png', 'name': 'Buy Instagram Followers, Likes & Views'},
38+
{ 'url': 'https://www.famety.net/', 'rel': 'sponsored', 'logo': 'famety.png', 'name': 'buy real Instagram followers from Famety'},
39+
{ 'url': 'https://copycopter.ai/', 'logo': 'copycopter.png', 'name': 'CopyCopter.ai'},
40+
{ 'url': 'https://www.idigic.net/', 'logo': 'idigic.png', 'name': 'Buy Instagram Followers, Likes & Views'},
41+
{ 'url': 'https://buycheapestfollowers.com', 'logo': 'buycheapestfollowers.png', 'name': 'buycheapestfollowers.com'},
42+
{ 'url': 'https://bountii.co', 'logo': 'bountii.png', 'name': 'bountii.co'},
43+
{ 'url': 'https://celebian.com', 'logo': 'celebian.png', 'name': 'celebian.com'},
44+
{ 'url': 'https://www.follower24.de/', 'logo': 'follower24.png', 'name': 'Buy followers, likes and views for Instagram and TikTok'},
45+
{ 'url': 'https://viralyft.com/', 'logo': 'viralyft.png', 'name': 'Viralyft'},
46+
{ 'url': 'https://www.socialboosting.com', 'logo': 'socialboosting.png', 'name': 'Social Boosting'},
47+
{ 'url': 'https://www.vapes.se/', 'logo': 'vapes-se.png', 'name': 'Vapes.se'},
48+
{ 'url': 'https://socialkings.online/', 'logo': 'socialkings.png', 'name': 'Socialkings'},
49+
{ 'url': 'https://instant-famous.com', 'logo': 'instant_famous.png', 'name': 'Instant Famous'},
50+
{ 'url': 'https://writehuman.ai/', 'logo': 'write_human.png', 'name': 'WriteHuman Humanize AI Text'},
51+
{ 'url': 'https://freecrash.game/', 'logo': 'free_crash_game.png', 'name': 'Free to play multiplier game'},
52+
{ 'url': 'https://www.socialwick.com', 'logo': 'socialwick.png', 'name': 'Social Wick'},
53+
54+
],
55+
'bronze': [
56+
{ 'url': 'https://www.topbargains.com.au/', 'name': 'Australian Coupons'},
57+
{ 'url': 'https://www.loadview-testing.com', 'name': 'Load View Testing'},
58+
{ 'url': 'https://www.entertainment-nation.co.uk/', 'name': 'Entertainment Nation'},
59+
{ 'url': 'https://www.gtxgaming.co.uk/', 'name': 'GTX Gaming'},
60+
{ 'url': 'https://www.chefworks.com/', 'name': 'Chef Works Inc.'},
61+
{ 'url': 'https://www.heerlaw.com', 'name': 'Heer Law'},
62+
{ 'url': 'https://withcandour.co.uk', 'name': 'Candour Digital Agency'},
63+
{ 'url': 'https://www.minitool.com', 'name': 'MiniTool'},
64+
{ 'url': 'https://www.clfip.com', 'name': 'Chhabra Law Firm'},
65+
{ 'url': 'https://www.milemarkmedia.com/', 'name': 'Legal Marketing'},
66+
{ 'url': 'https://skepp.com/', 'name': 'SKEPP Office Rental'},
67+
{ 'url': 'https://rabatkongen.dk', 'name': 'Rabatkongen rabatkoder'},
68+
{ 'url': 'https://www.partitionwizard.com/', 'name': 'MiniTool Partition Wizard'},
69+
{ 'url': 'https://comradeweb.com/', 'name': 'Comrade Digital Marketing Agency'},
70+
{ 'url': 'https://www.lazarlaw.com', 'name': 'Austin Divorce Attorney'},
71+
{ 'url': 'https://allelydbogapps.dk/', 'name': 'Lydbøger'},
72+
{ 'url': 'https://www.prijsvergelijken.nl', 'name': 'prijsvergelijken.nl'},
73+
{ 'url': 'https://www.autonomer.nl/', 'name': 'Autonomer'},
74+
{ 'url': 'https://elavtaldirekt.se', 'name': 'Elavtaldirekt'},
75+
{ 'url': 'https://webhostland.com/', 'name': 'Webhostland'},
76+
{ 'url': 'https://dealspotr.com', 'name': 'Dealspotr Online Coupons'},
77+
{ 'url': 'https://tryggvi.se', 'name': 'Tryggvi'},
78+
{ 'url': 'https://cheatevolution.com', 'name': 'Cheat Evolution'},
79+
{ 'url': 'https://americancardrooms.com', 'name': 'American Cardrooms'},
80+
{ 'url': 'https://www.theory7.net', 'name': 'Theory7.net'},
81+
{ 'url': 'https://goldstarsocial.com/', 'name': 'Goldstar Social'},
82+
{ 'url': 'https://www.sveaiptv.com/', 'name': 'Bästa IPTV i Sverige'},
83+
{ 'url': 'https://www.worthepenny.com/', 'name': 'WorthEPenny'},
84+
{ 'url': 'https://www.easeus.com/', 'name': 'EaseUS Software'},
85+
{ 'url': 'https://www.pinskylawoffice.ca', 'name': 'Calgary Business Lawyers'},
86+
{ 'url': 'https://nodepositpromocodes.com', 'name': 'No Deposit Promo Codes'},
87+
{ 'url': 'https://www.socialfollowers.uk', 'name': 'Social Followers'},
88+
{ 'url': 'https://www.lambdatest.com', 'name': 'LambdaTest'},
89+
{ 'url': 'https://iboysoft.com', 'name': 'iBoysoft'},
90+
{ 'url': 'https://poprey.com', 'name': 'Poprey'},
91+
{ 'url': 'https://earthweb.com', 'name': 'Earthweb'},
92+
{ 'url': 'https://www.honrev.com', 'name': 'HONREV Honest Reviews'},
93+
{ 'url': 'https://www.pmpmg.com/', 'name': 'Law Firm Marketing Services'},
94+
{ 'url': 'https://tyres.co.uk/', 'name': 'Tyres.co.uk'},
95+
],
96+
}

pmaweb/context_processors.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
from data.menu import MENU
3232
from data.screenshots import SCREENSHOTS
33+
from data.sponsors import SPONSORS
3334
from data.themes import CSSVERSIONS
3435
from data.awards import AWARDS
3536

@@ -44,6 +45,7 @@ def basic(request):
4445
'themecssversions': CSSVERSIONS,
4546
'awards': AWARDS,
4647
'pmasas': PMASA.objects.filter(draft=False),
48+
'sponsors': SPONSORS,
4749
'pmasa_year': PMASA.objects.filter(draft=False).order_by('-year').values_list('year', flat=True).first(),
4850
'translations': Translation.objects.all(),
4951
'demo_stable': Demo.objects.exclude(name__startswith='master'),

pmaweb/templates/_sponsor.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% load static %}
2+
{% if sponsor.logo %}
3+
<div class="logos">
4+
<a href="{{ sponsor.url }}"{% if sponsor.rel %} rel="{{ sponsor.rel }}"{% endif %}><img src="{% static 'images/' %}{{ sponsor.logo }}" alt="{{ sponsor.name }}" /></a>
5+
</div>
6+
{% else %}
7+
<a href="{{ sponsor.url }}">{{ sponsor.name }}</a>
8+
{% endif %}

pmaweb/templates/_sponsors.html

Lines changed: 20 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -6,113 +6,37 @@ <h2><a href="{% url 'sponsors' %}">Sponsors</a></h2>
66
<h3>Diamond sponsor</h3>
77

88
<div class="sp diamond">
9+
{% if sponsors.platinum|length == 0 %}
910
This space is available &mdash; contact us to get listed here.
10-
</div>
11-
12-
<!--<h3>Platinum sponsor</h3>-->
13-
<!--<h3>Platinum sponsors</h3>-->
14-
15-
<h3>Gold sponsors</h3>
11+
{% endif %}
1612

17-
<div class="sp gold">
18-
<a href="https://www.vapehuset.se/"><img src="{% static 'images/vapehuset.png' %}" alt="Vapehuset" /></a>
19-
</div>
20-
21-
<div class="sp gold">
22-
<a href="https://www.4kdownload.com/"><img src="{% static 'images/4kdownload.png' %}" alt="4K Download" /></a>
23-
</div>
24-
25-
<div class="sp gold">
26-
<a href="https://vape.se/"><img src="{% static 'images/vape.png' %}" alt="Vape.se" /></a>
27-
</div>
28-
29-
<div class="sp gold">
30-
<a href="https://superviral.io"><img src="{% static 'images/superviral.png' %}" alt="Superviral.io" /></a>
31-
</div>
32-
33-
<div class="sp gold">
34-
<a href="https://www.ramotion.com/"><img src="{% static 'images/ramotion.png' %}" alt="Ramotion.com" /></a>
35-
</div>
36-
37-
<div class="sp gold">
38-
<a href="https://unaimytext.com/"><img src="{% static 'images/unaimytext.png' %}" alt="UnAiMyText" /></a>
39-
</div>
40-
41-
<div class="sp gold">
42-
<a href="https://socialboss.org/"><img src="{% static 'images/socialboss.png' %}" alt="SocialBoss" /></a>
43-
</div>
44-
45-
<div class="sp gold">
46-
<a href="https://quickbookstoolhub.com/"><img src="{% static 'images/quickbookstoolhub.png' %}" alt="Quickbooks Tool Hub" /></a>
47-
</div>
48-
49-
<div class="sp gold">
50-
<a href="https://buzzoid.com/"><img src="{% static 'images/buzzoid.png' %}" alt="Buy Instagram Followers & Likes" /></a>
51-
</div>
52-
53-
<div class="sp gold">
54-
<a href="https://twicsy.com/"><img src="{% static 'images/twicsy.png' %}" alt="Buy Instagram Followers, Likes & Views" /></a>
55-
</div>
56-
57-
<div class="sp gold">
58-
<a href="https://www.famety.net/" rel="sponsored"><img src="{% static 'images/famety.png' %}" alt="buy real Instagram followers from Famety" /></a>
59-
</div>
60-
61-
<div class="sp gold">
62-
<a href="https://copycopter.ai/"><img src="{% static 'images/copycopter.png' %}" alt="CopyCopter.ai" /></a>
63-
</div>
64-
65-
<div class="sp gold">
66-
<a href="https://www.idigic.net/"><img src="{% static 'images/idigic.png' %}" alt="Buy Instagram Followers, Likes & Views" /></a>
67-
</div>
68-
69-
<div class="sp gold">
70-
<a href="https://buycheapestfollowers.com"><img src="{% static 'images/buycheapestfollowers.png' %}" alt="buycheapestfollowers.com" /></a>
71-
</div>
72-
73-
<div class="sp gold">
74-
<a href="https://bountii.co"><img src="{% static 'images/bountii.png' %}" alt="bountii.co" /></a>
75-
</div>
76-
77-
<div class="sp gold">
78-
<a href="https://celebian.com"><img src="{% static 'images/celebian.png' %}" alt="celebian.com" /></a>
79-
</div>
80-
81-
<div class="sp gold">
82-
<a href="https://www.follower24.de/"><img src="{% static 'images/follower24.png' %}" alt="Buy followers, likes and views for Instagram and TikTok" /></a>
83-
</div>
84-
85-
<div class="sp gold">
86-
<a href="https://viralyft.com/"><img src="{% static 'images/viralyft.png' %}" alt="Viralyft" /></a>
87-
</div>
88-
89-
<div class="sp gold">
90-
<a href="https://www.socialboosting.com"><img src="{% static 'images/socialboosting.png' %}" alt="Social Boosting" /></a>
91-
</div>
92-
93-
<div class="sp gold">
94-
<a href="https://www.vapes.se/"><img src="{% static 'images/vapes-se.png' %}" alt="Vapes.se" /></a>
13+
{% for sponsor in sponsors.diamond %}
14+
<div class="sp diamond">
15+
<a href="{{ sponsor.url }}"{% if sponsor.rel %} rel="{{ sponsor.rel }}"{% endif %}><img src="{% static 'images/' %}{{ sponsor.logo }}" alt="{{ sponsor.name }}" /></a>
9516
</div>
96-
97-
<div class="sp gold">
98-
<a href="https://socialkings.online/"><img src="{% static 'images/socialkings.png' %}" alt="Socialkings" /></a>
17+
{% endfor %}
9918
</div>
10019

101-
<div class="sp gold">
102-
<a href="https://instant-famous.com"><img src="{% static 'images/instant_famous.png' %}" alt="Instant Famous" /></a>
103-
</div>
20+
{% if sponsors.platinum|length > 0 %}
21+
<h3>Platinum sponsor</h3>
22+
<!--<h3>Platinum sponsors</h3>-->
23+
{% endif %}
10424

105-
<div class="sp gold">
106-
<a href="https://writehuman.ai/"><img src="{% static 'images/write_human.png' %}" alt="WriteHuman Humanize AI Text" /></a>
25+
{% for sponsor in sponsors.platinum %}
26+
<div class="sp platinum">
27+
<a href="{{ sponsor.url }}"{% if sponsor.rel %} rel="{{ sponsor.rel }}"{% endif %}><img src="{% static 'images/' %}{{ sponsor.logo }}" alt="{{ sponsor.name }}" /></a>
10728
</div>
29+
{% endfor %}
10830

109-
<div class="sp gold">
110-
<a href="https://freecrash.game/"><img src="{% static 'images/free_crash_game.png' %}" alt="Free to play multiplier game" /></a>
111-
</div>
31+
{% if sponsors.gold|length > 0 %}
32+
<h3>Gold sponsors</h3>
33+
{% endif %}
11234

35+
{% for sponsor in sponsors.gold %}
11336
<div class="sp gold">
114-
<a href="https://www.socialwick.com"><img src="{% static 'images/socialwick.png' %}" alt="Social Wick" /></a>
37+
<a href="{{ sponsor.url }}"{% if sponsor.rel %} rel="{{ sponsor.rel }}"{% endif %}><img src="{% static 'images/' %}{{ sponsor.logo }}" alt="{{ sponsor.name }}" /></a>
11538
</div>
39+
{% endfor %}
11640

11741
{% include '_sponsorship_note.html' %}
11842

0 commit comments

Comments
 (0)