.news-like-container { border: 1px solid #cce0ff; background: #eef6ff; padding: 16px 20px; margin: 25px 0 30px 0; border-radius: 6px; font-size: 15px; display: flex; align-items: center; gap: 15px; } .news-like-button { background: #007bff; color: #fff; padding: 10px 16px; border: none; border-radius: 5px; cursor: pointer; font-size: 15px; white-space: nowrap; } .news-like-button:hover { background: #0056c1; } .news-like-heading { font-size: 13px; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; color: #666; margin-bottom: 4px; } .news-like-text { font-size: 15px; color: #333; } @media (max-width: 600px) { .news-like-container { flex-direction: column; align-items: flex-start; } }
Leser-Feedback
0 Besuchern gefiel dieser Artikel
) // Slug aus der aktuellen URL ableiten $uri = $_SERVER['REQUEST_URI'] ?? ''; $slug = basename($uri); // z.B. "artikel-die-serienfolge-mit-den-meisten-leichen.shtml" $slug = preg_replace('/\.shtml$/i', '', $slug); // ".shtml" entfernen $slug = preg_replace('/[^a-zA-Z0-9\-_]/', '', $slug); // absichern // Ordner für Like-Zähler $dir = __DIR__ . '/news-likes'; if (!is_dir($dir)) { mkdir($dir, 0777, true); } // Datei mit Zähler $file = $dir . '/' . $slug . '.txt'; // aktuellen Stand lesen $count = 0; if (file_exists($file)) { $count = (int)file_get_contents($file); } ?>