From bf952a803e72ba3ad70569606fccbd0b37cd48b1 Mon Sep 17 00:00:00 2001 From: "eapl.mx" Date: Fri, 31 Mar 2023 14:44:49 -0600 Subject: [PATCH] Updated Web view for feeds --- TODO.md | 3 +- public/atom.php | 2 ++ public/feed.xsl | 69 ++++++++++++++++++++++++++++++++++++++ public/includes/header.php | 9 +++++ public/pretty-feed-v3.xsl | 14 ++++---- 5 files changed, 89 insertions(+), 8 deletions(-) create mode 100644 public/feed.xsl diff --git a/TODO.md b/TODO.md index 0006e4b..398ecb5 100644 --- a/TODO.md +++ b/TODO.md @@ -4,4 +4,5 @@ # From current implementation - [X] Translate all remaining texts to spanish - [X] Change session time to 30 days -- [ ] Implement Atom Feed \ No newline at end of file +- [ ] Implement Atom Feed +- [ ] Implement Social cards \ No newline at end of file diff --git a/public/atom.php b/public/atom.php index 2888412..a045c46 100644 --- a/public/atom.php +++ b/public/atom.php @@ -19,6 +19,8 @@ function url($thread) ?> '; ?> +'; ?> + <?= NAME ?> diff --git a/public/feed.xsl b/public/feed.xsl new file mode 100644 index 0000000..a852b30 --- /dev/null +++ b/public/feed.xsl @@ -0,0 +1,69 @@ + + + + + + + + Web Feed • <xsl:value-of select="atom:feed/atom:title"/> + + + +
+
+ Subscríbete pegando esta dirección en tu lector de noticias. +
+
+
+ +
+
+

Elementos recientes

+ +
+ + +
+ + + +

Vista Web del Feed

+

+ + + + + + Visita el sitio → + + +

+
+ + +
+

+ + + + + + +

+

+ +

+ + Published: + +
+
+ +
\ No newline at end of file diff --git a/public/includes/header.php b/public/includes/header.php index 0872ea6..a14e3b7 100644 --- a/public/includes/header.php +++ b/public/includes/header.php @@ -7,6 +7,15 @@ +
diff --git a/public/pretty-feed-v3.xsl b/public/pretty-feed-v3.xsl index 6a8182a..248df1f 100644 --- a/public/pretty-feed-v3.xsl +++ b/public/pretty-feed-v3.xsl @@ -32,6 +32,8 @@ x-content-type-options: nosniff (These headers are required to style feeds for users with Safari on iOS/Mac.) + + ## Limitations - Styling the feed *prevents* the browser from automatically opening a @@ -77,11 +79,8 @@ This file is in BETA. Please test and contribute to the discussion:
@@ -104,10 +103,11 @@ This file is in BETA. Please test and contribute to the discussion: - Vista previa del Feed + + Vista Web del RSS

-

+ @@ -115,7 +115,7 @@ This file is in BETA. Please test and contribute to the discussion: Visita el sitio →
-

Entradas recientes

+

Elementos recientes

-- 2.45.2