fix: QC-Ratings aus 7 älteren Artikeln entfernt (CHECK 10)
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
# JCE Templates für brettspiel-news.de
|
||||
|
||||
## Dateien
|
||||
|
||||
| Datei | Zweck |
|
||||
|---|---|
|
||||
| `deal-box.html` | **Template** (mit Platzhaltern) — in JCE speichern |
|
||||
| `deal-box.css` | **CSS** — einmalig ins Template-Custom-CSS |
|
||||
| `deal-box-beispiel.html` | Ausgefülltes Beispiel (Dungeons, Dice & Danger) |
|
||||
|
||||
---
|
||||
|
||||
## Installation (2 Schritte)
|
||||
|
||||
### Schritt 1: CSS ins Template einbauen (einmalig)
|
||||
|
||||
1. **Joomla-Admin → System → Site Templates**
|
||||
2. Dein aktives Astroid-Template auswählen (z.B. `astroid-template-zero`)
|
||||
3. Tab **"Custom CSS"** öffnen
|
||||
4. Inhalt von `deal-box.css` **ans Ende** einfügen
|
||||
5. Speichern
|
||||
|
||||
> Alternativ: Astroid → Template Options → Custom Code → Custom CSS
|
||||
|
||||
### Schritt 2: Template in JCE speichern
|
||||
|
||||
**Variante A — per JCE-Oberfläche (empfohlen):**
|
||||
1. Artikel bearbeiten → JCE-Editor
|
||||
2. Menü **"Insert" → "Template"**
|
||||
3. Rechts auf **"New"** (neues Template erstellen)
|
||||
4. **Name:** `Deal-Box`
|
||||
5. Inhalt von `deal-box.html` ins Textfeld kopieren
|
||||
6. Speichern
|
||||
|
||||
**Variante B — per Datei (falls FTP/SSH-Zugriff):**
|
||||
1. `deal-box.html` nach `/media/jce/templates/` auf dem Server kopieren
|
||||
2. JCE erkennt es automatisch
|
||||
|
||||
---
|
||||
|
||||
## Verwendung
|
||||
|
||||
1. Artikel im JCE-Editor öffnen
|
||||
2. **Insert → Template → Deal-Box** auswählen
|
||||
3. Platzhalter ersetzen:
|
||||
- `ALTER PREIS` → z.B. "21,49 Euro"
|
||||
- `-RABATT%` → z.B. "-62,8 %"
|
||||
- `NEUER PREIS` → z.B. "7,99 Euro"
|
||||
- `AFFILIATE-URL` → Affiliate-Link (aus `partner_shop_search.py`)
|
||||
- `SHOP-NAME` → z.B. "Spiele-Offensive"
|
||||
|
||||
---
|
||||
|
||||
## Wichtige Hinweise
|
||||
|
||||
- **Affiliate-Links immer mit `rel="nofollow sponsored"`** — ist im Template bereits gesetzt
|
||||
- **Preise & Rabatte immer gegen die Shop-Seite verifizieren** vor Veröffentlichung
|
||||
- Der CSS-Farbton `#20228a` ist das BSN-Blau der Seite — konsistent mit dem Rest-Design
|
||||
- Bei mehreren Shops im Artikel: die Deal-Box NUR für den Haupt-Deal nutzen, für alle Shops die `affiliate-box` verwenden
|
||||
@@ -0,0 +1,17 @@
|
||||
<!--
|
||||
BEISPIEL: Dungeons, Dice & Danger (18.06.2026)
|
||||
So sieht die ausgefüllte Box aus.
|
||||
Nur als Referenz — nicht als Template speichern!
|
||||
-->
|
||||
|
||||
<div class="deal-box">
|
||||
<p>
|
||||
<span class="old-price">21,49 Euro</span>
|
||||
<span class="discount">-62,8 %</span>
|
||||
</p>
|
||||
<p><span class="new-price">7,99 Euro</span></p>
|
||||
<p class="shop-info">
|
||||
bei der <a href="https://www.spiele-offensive.de/index.php?cmd=artikel_anzeigen&aid=1027477&pid=505" target="_blank" rel="nofollow sponsored">Spiele-Offensive →</a>
|
||||
· Sofort versandfertig
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,64 @@
|
||||
<!--
|
||||
JCE TEMPLATE: Deal-Box (self-contained)
|
||||
brettspiel-news.de — BSN-Blau #20228a
|
||||
|
||||
ANLEITUNG:
|
||||
Diesen gesamten Block in JCE speichern:
|
||||
JCE Editor → Insert → Template → New → Name "Deal-Box" → Inhalt einfügen
|
||||
|
||||
Pro Artikel nur die GROSSGESCHRIEBENEN Platzhalter ersetzen.
|
||||
-->
|
||||
|
||||
<style>
|
||||
.deal-box {
|
||||
background: linear-gradient(135deg, #20228a, #3b3da8);
|
||||
color: #fff;
|
||||
border-radius: 10px;
|
||||
padding: 1.3rem 1.5rem;
|
||||
margin: 1.5rem 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.deal-box p { margin: 0.3rem 0; }
|
||||
.deal-box .old-price {
|
||||
text-decoration: line-through;
|
||||
opacity: 0.7;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
.deal-box .new-price {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
.deal-box .discount {
|
||||
background: #ff6b35;
|
||||
padding: 0.2rem 0.7rem;
|
||||
border-radius: 5px;
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
.deal-box a {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.deal-box a:hover { color: #ffd700; }
|
||||
.deal-box .shop-info {
|
||||
font-size: 0.95rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="deal-box">
|
||||
<p>
|
||||
<span class="old-price">ALTER PREIS</span>
|
||||
<span class="discount">-RABATT%</span>
|
||||
</p>
|
||||
<p><span class="new-price">NEUER PREIS</span></p>
|
||||
<p class="shop-info">
|
||||
bei der <a href="AFFILIATE-URL" target="_blank" rel="nofollow sponsored">SHOP-NAME →</a>
|
||||
· Sofort versandfertig
|
||||
</p>
|
||||
</div>
|
||||
@@ -0,0 +1,57 @@
|
||||
/**
|
||||
* Deal-Box Template für JCE Editor
|
||||
* Einmalig in den Astroid Template Options → Custom CSS einfügen.
|
||||
* Oder: Administrator → System → Site Templates → [Template] → Custom CSS
|
||||
*/
|
||||
|
||||
/* === DEAL-BOX === */
|
||||
.deal-box {
|
||||
background: linear-gradient(135deg, #20228a, #3b3da8);
|
||||
color: #fff;
|
||||
border-radius: 10px;
|
||||
padding: 1.3rem 1.5rem;
|
||||
margin: 1.5rem 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.deal-box p {
|
||||
margin: 0.3rem 0;
|
||||
}
|
||||
|
||||
.deal-box .old-price {
|
||||
text-decoration: line-through;
|
||||
opacity: 0.7;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.deal-box .new-price {
|
||||
font-size: 2rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.deal-box .discount {
|
||||
background: #ff6b35;
|
||||
padding: 0.2rem 0.7rem;
|
||||
border-radius: 5px;
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin-left: 0.5rem;
|
||||
}
|
||||
|
||||
.deal-box a {
|
||||
color: #fff;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 3px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.deal-box a:hover {
|
||||
color: #ffd700;
|
||||
}
|
||||
|
||||
.deal-box .shop-info {
|
||||
font-size: 0.95rem;
|
||||
opacity: 0.9;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
<!--
|
||||
╔══════════════════════════════════════╗
|
||||
║ JCE TEMPLATE: Deal-Box ║
|
||||
║ Für brettspiel-news.de ║
|
||||
╚══════════════════════════════════════╝
|
||||
|
||||
ANLEITUNG:
|
||||
1. CSS aus deal-box.css in Template-Custom-CSS einfügen (einmalig)
|
||||
2. Diesen HTML-Block in JCE als "Template" speichern
|
||||
3. Pro Artikel: Werte anpassen (ALTER PREIS, NEUER PREIS, RABATT, SHOP-NAME, URL)
|
||||
|
||||
JCE Template speichern:
|
||||
- JCE Editor → Insert → Template → Save as Template
|
||||
- Oder: media/jce/templates/deal-box.html auf dem Server ablegen
|
||||
-->
|
||||
|
||||
<div class="deal-box">
|
||||
<p>
|
||||
<span class="old-price">ALTER PREIS</span>
|
||||
<span class="discount">-RABATT%</span>
|
||||
</p>
|
||||
<p><span class="new-price">NEUER PREIS</span></p>
|
||||
<p class="shop-info">
|
||||
bei der <a href="AFFILIATE-URL" target="_blank" rel="nofollow sponsored">SHOP-NAME →</a>
|
||||
· Sofort versandfertig
|
||||
</p>
|
||||
</div>
|
||||
Reference in New Issue
Block a user