]> git.mxchange.org Git - friendica.git/commitdiff
Create base `sub/direction.tpl` template from vier
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 19 Jan 2023 01:49:08 +0000 (20:49 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 19 Jan 2023 01:49:08 +0000 (20:49 -0500)
- Address https://github.com/friendica/friendica/issues/12486#issuecomment-1383249754

view/templates/sub/direction.tpl [new file with mode: 0644]
view/theme/vier/templates/sub/direction.tpl [deleted file]

diff --git a/view/templates/sub/direction.tpl b/view/templates/sub/direction.tpl
new file mode 100644 (file)
index 0000000..1d52e11
--- /dev/null
@@ -0,0 +1,26 @@
+{{if $direction.direction > 0}}
+<span class="direction">
+       &bull;
+       {{if $direction.direction == 1}}
+               <i class="icon-inbox" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 2}}
+               <i class="icon-download" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 3}}
+               <i class="icon-retweet" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 4}}
+               <i class="icon-tag" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 5}}
+               <i class="icon-commenting" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 6}}
+               <i class="icon-user" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 7}}
+               <i class="icon-forward" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 8}}
+               <i class="icon-share" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 9}}
+               <i class="icon-globe" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{elseif $direction.direction == 10}}
+               <i class="icon-inbox" aria-hidden="true" title="{{$direction.title}}"></i>
+       {{/if}}
+</span>
+{{/if}}
diff --git a/view/theme/vier/templates/sub/direction.tpl b/view/theme/vier/templates/sub/direction.tpl
deleted file mode 100644 (file)
index 1d52e11..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-{{if $direction.direction > 0}}
-<span class="direction">
-       &bull;
-       {{if $direction.direction == 1}}
-               <i class="icon-inbox" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{elseif $direction.direction == 2}}
-               <i class="icon-download" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{elseif $direction.direction == 3}}
-               <i class="icon-retweet" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{elseif $direction.direction == 4}}
-               <i class="icon-tag" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{elseif $direction.direction == 5}}
-               <i class="icon-commenting" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{elseif $direction.direction == 6}}
-               <i class="icon-user" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{elseif $direction.direction == 7}}
-               <i class="icon-forward" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{elseif $direction.direction == 8}}
-               <i class="icon-share" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{elseif $direction.direction == 9}}
-               <i class="icon-globe" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{elseif $direction.direction == 10}}
-               <i class="icon-inbox" aria-hidden="true" title="{{$direction.title}}"></i>
-       {{/if}}
-</span>
-{{/if}}