From 9d37bc433d5308623fdb846913fc2c82e5218f43 Mon Sep 17 00:00:00 2001 From: Pablo Ferreiro Date: Sun, 12 Jun 2022 12:50:41 +0200 Subject: [PATCH] rss auto discovery --- components/head.latte | 3 +++ components/themes/common/controls.latte | 3 +-- views/tag.latte | 2 ++ views/trending.latte | 2 ++ views/user.latte | 2 ++ 5 files changed, 10 insertions(+), 2 deletions(-) diff --git a/components/head.latte b/components/head.latte index baefa68..082b50b 100644 --- a/components/head.latte +++ b/components/head.latte @@ -5,6 +5,9 @@ + {if isset($has_rss)} + + {/if} {$title} - ProxiTok diff --git a/components/themes/common/controls.latte b/components/themes/common/controls.latte index bb0aad5..9fd801c 100644 --- a/components/themes/common/controls.latte +++ b/components/themes/common/controls.latte @@ -1,8 +1,7 @@
{* is_numeric is used to avoid having a back button with ttwid cursors *} - {if isset($_GET['cursor']) && is_numeric($_GET['cursor']) && $_GET['cursor'] != 0 } + {if isset($_GET['cursor']) && is_numeric($_GET['cursor']) && $_GET['cursor'] != 0} First - Back {/if} Next
diff --git a/views/tag.latte b/views/tag.latte index 82853b2..55622ed 100644 --- a/views/tag.latte +++ b/views/tag.latte @@ -1,5 +1,7 @@ {layout '../layouts/default.latte'} +{var $has_rss = true} + {block header} {if $data->info->detail->profileThumb !== ''}
diff --git a/views/trending.latte b/views/trending.latte index aaa8a29..aca608c 100644 --- a/views/trending.latte +++ b/views/trending.latte @@ -1,5 +1,7 @@ {layout '../layouts/default.latte'} +{var $has_rss = true} + {block header}

Trending

{include '../components/rss.latte'}

diff --git a/views/user.latte b/views/user.latte index 2eb68b7..2f49c3b 100644 --- a/views/user.latte +++ b/views/user.latte @@ -1,5 +1,7 @@ {layout '../layouts/default.latte'} +{var $has_rss = true} + {block header}