From e0e24335f7b72afb388fbb180596675fc1b2182c Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 10 Sep 2019 18:40:07 +0200 Subject: Fix undefined thumbnail on OpenGraph headers Fixes #1362 --- tpl/vintage/includes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/vintage/includes.html') diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 2efb6b10..0cabc985 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -19,7 +19,7 @@ {$ogDescription=isset($link.description_src) ? $link.description_src : $link.description} - {if="$link.thumbnail"} + {if="!empty($link.thumbnail)"} {/if} {if="!$hide_timestamps || $is_logged_in"} -- cgit v1.2.3 From d9bfceaddf05dba5dec33523ea27277d773c5e4f Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Sun, 12 Jan 2020 14:54:48 +0100 Subject: Avoiding warning 'PHP Notice: Undefined index: updated' --- tpl/vintage/includes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/vintage/includes.html') diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 0cabc985..1c4ff79c 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -24,7 +24,7 @@ {/if} {if="!$hide_timestamps || $is_logged_in"} - {if="$link.updated"} + {if="!empty($link.updated)"} {/if} {/if} -- cgit v1.2.3 From cf92b4dd1521241eefc58eaf6dcd202cd83969d8 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 25 May 2019 15:52:27 +0200 Subject: Apply the new system (Bookmark + Service) to the whole code base See https://github.com/shaarli/Shaarli/issues/1307 --- tpl/vintage/includes.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tpl/vintage/includes.html') diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 1c4ff79c..8d273c44 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -7,6 +7,9 @@ +{if="$formatter==='markdown'"} + +{/if} {loop="$plugins_includes.css_files"} {/loop} -- cgit v1.2.3 From bee33239ed444f9724422fe5234cd79997500519 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Thu, 23 Jan 2020 22:26:38 +0100 Subject: Fix all relative link to work with new URL --- tpl/vintage/includes.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tpl/vintage/includes.html') diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 8d273c44..d77ce497 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -14,7 +14,7 @@ {/loop} {if="is_file('data/user.css')"}{/if} - + {if="! empty($links) && count($links) === 1"} {$link=reset($links)} -- cgit v1.2.3 From 7b2ba6ef820335df682fbe3dcfaceef3a62cf4a5 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Mon, 18 May 2020 17:17:36 +0200 Subject: RSS/ATOM feeds: process through Slim controller --- tpl/vintage/includes.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tpl/vintage/includes.html') diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index d77ce497..cf56ca61 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -3,8 +3,8 @@ - - + + {if="$formatter==='markdown'"} -- cgit v1.2.3 From 5ec4708ced1cdca01eddd7e52377ab5e5f8b3290 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Wed, 20 May 2020 10:47:20 +0200 Subject: Process OpenSearch controller through Slim Also it was missing on the default template feeds --- tpl/vintage/includes.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tpl/vintage/includes.html') diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index cf56ca61..61448eaf 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -14,7 +14,8 @@ {/loop} {if="is_file('data/user.css')"}{/if} - + {if="! empty($links) && count($links) === 1"} {$link=reset($links)} -- cgit v1.2.3 From 818b3193ffabec57501e3bdfa997206e3c0671ef Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 13 Jun 2020 11:22:14 +0200 Subject: Explicitly define base and asset path in templates With the new routes, all pages are not all at the same folder level anymore (e.g. /shaare and /shaare/123), so we can't just use './' everywhere. The most consistent way to handle this is to prefix all path with the proper variable, and handle the actual path in controllers. --- tpl/vintage/includes.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tpl/vintage/includes.html') diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 61448eaf..7c4d9311 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -8,13 +8,13 @@ {if="$formatter==='markdown'"} - + {/if} {loop="$plugins_includes.css_files"} {/loop} {if="is_file('data/user.css')"}{/if} - {if="! empty($links) && count($links) === 1"} {$link=reset($links)} -- cgit v1.2.3 From 9c75f877935fa6adec951a4d8d32b328aaab314f Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 13 Jun 2020 13:08:01 +0200 Subject: Use multi-level routes for existing controllers instead of 1 level everywhere Also prefix most admin routes with /admin/ --- tpl/vintage/includes.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tpl/vintage/includes.html') diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index 7c4d9311..aa2381c6 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -3,8 +3,8 @@ - - + + {if="$formatter==='markdown'"} -- cgit v1.2.3 From 9fbc42294e7667c5ef19cafa0d1fcfbc1c0f36a9 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 26 Jul 2020 14:43:10 +0200 Subject: New basePath: fix officiel plugin paths and vintage template --- tpl/vintage/includes.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tpl/vintage/includes.html') diff --git a/tpl/vintage/includes.html b/tpl/vintage/includes.html index aa2381c6..eac05701 100644 --- a/tpl/vintage/includes.html +++ b/tpl/vintage/includes.html @@ -6,14 +6,14 @@ - + {if="$formatter==='markdown'"} {/if} {loop="$plugins_includes.css_files"} - + {/loop} -{if="is_file('data/user.css')"}{/if} +{if="is_file('data/user.css')"}{/if} {if="! empty($links) && count($links) === 1"} -- cgit v1.2.3