From d177043c9f4032c2241aac7afedbd6e7b6c1e596 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sun, 1 Dec 2019 14:17:32 +0100 Subject: Add pinned item layout --- view/tpl/pinned_item.tpl | 147 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) create mode 100644 view/tpl/pinned_item.tpl (limited to 'view/tpl/pinned_item.tpl') diff --git a/view/tpl/pinned_item.tpl b/view/tpl/pinned_item.tpl new file mode 100644 index 000000000..6e5e9e20d --- /dev/null +++ b/view/tpl/pinned_item.tpl @@ -0,0 +1,147 @@ +
+
+
+ {{if $photo}} +
+ {{$photo}} +
+ {{/if}} + {{if $event}} +
+ {{$event}} +
+ {{/if}} + {{if $title && !$event}} +
+ {{if $title_tosource}} + {{if $plink}} + + {{/if}} + {{/if}} + {{$title}} + {{if $title_tosource}} + {{if $plink}} + + {{/if}} + {{/if}} +
+ {{if ! $is_new}} +
+ {{/if}} + {{/if}} +
+   +
+
+ {{$name}} + {{if $thread_author_menu}} + + + {{/if}} +
+
+
+ {{$name}}{{if $owner_url}} {{$via}} {{$owner_name}}{{/if}} +
+
+ {{if $verified}} {{elseif $forged}} {{/if}}{{if $location}}{{$location}}, {{/if}}{{if $editedtime}} {{$editedtime}}{{/if}}{{if $expiretime}} {{$expiretime}}{{/if}}{{if $editedtime}} {{/if}} {{if $app}}{{$str_app}}{{/if}} +
+
+ {{if $divider}} +
+ {{/if}} + {{if $body}} +
+
+ {{$body}} +
+
+ {{/if}} + {{if $has_tags}} +
+
+ {{$mentions}} {{$tags}} {{$categories}} {{$folders}} +
+
+ {{/if}} +
+
+
+
+
+
+
+
+ {{if $isevent}} + + {{/if}} + {{if $canvote}} + + {{/if}} +
+ + +
+
+
+ {{if $attachments}} +
+
+ + +
+
+ {{/if}} +
+
+
+
+ -- cgit v1.2.3 From d711f2ad4c52db4a4178bb2b35abc827260286fa Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Sun, 1 Dec 2019 15:21:32 +0100 Subject: Add b64mids to support current JS --- view/tpl/pinned_item.tpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'view/tpl/pinned_item.tpl') diff --git a/view/tpl/pinned_item.tpl b/view/tpl/pinned_item.tpl index 6e5e9e20d..e34d3b65d 100644 --- a/view/tpl/pinned_item.tpl +++ b/view/tpl/pinned_item.tpl @@ -1,4 +1,4 @@ -
+
{{if $photo}} @@ -144,4 +144,3 @@
- -- cgit v1.2.3 From cc3edeb6f50c5648f65283e7525d33a174eb7a1b Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Mon, 2 Dec 2019 15:09:15 +0100 Subject: Fix unique HTML elements id --- view/tpl/pinned_item.tpl | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'view/tpl/pinned_item.tpl') diff --git a/view/tpl/pinned_item.tpl b/view/tpl/pinned_item.tpl index e34d3b65d..a454e945a 100644 --- a/view/tpl/pinned_item.tpl +++ b/view/tpl/pinned_item.tpl @@ -1,18 +1,18 @@
-
-
+
+
{{if $photo}} -
+
{{$photo}}
{{/if}} {{if $event}} -
+
{{$event}}
{{/if}} {{if $title && !$event}} -
+
{{if $title_tosource}} {{if $plink}} @@ -31,9 +31,9 @@ {{/if}}
  -
-
- {{$name}} +
+
+ {{$name}} {{if $thread_author_menu}}
- {{$name}}{{if $owner_url}} {{$via}} {{$owner_name}}{{/if}} + {{$name}}{{if $owner_url}} {{$via}} {{$owner_name}}{{/if}}
-
- {{if $verified}} {{elseif $forged}} {{/if}}{{if $location}}{{$location}}, {{/if}}{{if $editedtime}} {{$editedtime}}{{/if}}{{if $expiretime}} {{$expiretime}}{{/if}}{{if $editedtime}} {{/if}} {{if $app}}{{$str_app}}{{/if}} +
+ {{if $verified}} {{elseif $forged}} {{/if}}{{if $location}}{{$location}}, {{/if}}{{if $editedtime}} {{$editedtime}}{{/if}}{{if $expiretime}} {{$expiretime}}{{/if}}{{if $editedtime}} {{/if}} {{if $app}}{{$str_app}}{{/if}}
{{if $divider}}
{{/if}} {{if $body}} -
-
+
+
{{$body}}
@@ -71,14 +71,14 @@
-
+
{{if $isevent}}
-
-- cgit v1.2.3 From 75b9c7d6b8c8d9c9ad2faf837a0ced975c536488 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Wed, 4 Dec 2019 10:21:03 +0100 Subject: Fix variables for unpin button --- view/tpl/pinned_item.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/tpl/pinned_item.tpl') diff --git a/view/tpl/pinned_item.tpl b/view/tpl/pinned_item.tpl index bfbdc87ff..0c65c8b19 100644 --- a/view/tpl/pinned_item.tpl +++ b/view/tpl/pinned_item.tpl @@ -137,7 +137,7 @@ {{if $plink}} {{$plink.title}} {{/if}} - {{$item.pinme}} + {{$pinme}} {{if $hide}} {{$hide}} {{/if}} -- cgit v1.2.3 From efa11cbc74d399131aeaa1a7039c2fa76baaca38 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Wed, 4 Dec 2019 11:13:33 +0100 Subject: Update pinned item markup --- view/tpl/pinned_item.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'view/tpl/pinned_item.tpl') diff --git a/view/tpl/pinned_item.tpl b/view/tpl/pinned_item.tpl index 0c65c8b19..17e82b410 100644 --- a/view/tpl/pinned_item.tpl +++ b/view/tpl/pinned_item.tpl @@ -9,7 +9,7 @@ } {{/if}} -
+
{{if $photo}} @@ -41,7 +41,7 @@ {{/if}} {{/if}}
-   +  
{{$name}} -- cgit v1.2.3 From 9a70c3c2759ee479f598dceef1ad95b4675db7f0 Mon Sep 17 00:00:00 2001 From: Max Kostikov Date: Wed, 4 Dec 2019 15:33:53 +0100 Subject: Show unpin button for pinned post for owner only --- view/tpl/pinned_item.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'view/tpl/pinned_item.tpl') diff --git a/view/tpl/pinned_item.tpl b/view/tpl/pinned_item.tpl index 17e82b410..a24c4ae44 100644 --- a/view/tpl/pinned_item.tpl +++ b/view/tpl/pinned_item.tpl @@ -137,7 +137,9 @@ {{if $plink}} {{$plink.title}} {{/if}} - {{$pinme}} + {{if $pinme}} + {{$pinme}} + {{/if}} {{if $hide}} {{$hide}} {{/if}} -- cgit v1.2.3