mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-16 20:05:14 +02:00
Move suppress_tags config to template
- Add new item.suppress_tags template variable - Fix template formatting
This commit is contained in:
parent
b8ffa1dec7
commit
daffc27061
12 changed files with 106 additions and 85 deletions
|
@ -141,23 +141,25 @@
|
|||
<div class="wall-item-links">
|
||||
</div>
|
||||
<div class="wall-item-tags">
|
||||
{{foreach $item.hashtags as $tag}}
|
||||
<span class="tag label btn-info sm">{{$tag}} <i class="fa fa-bolt" aria-hidden="true"></i></span>
|
||||
{{/foreach}}
|
||||
{{if !$item.suppress_tags}}
|
||||
{{foreach $item.hashtags as $tag}}
|
||||
<span class="tag label btn-info sm">{{$tag}} <i class="fa fa-bolt" aria-hidden="true"></i></span>
|
||||
{{/foreach}}
|
||||
|
||||
{{foreach $item.mentions as $tag}}
|
||||
<span class="mention label btn-warning sm">{{$tag}} <i class="fa fa-user" aria-hidden="true"></i></span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.mentions as $tag}}
|
||||
<span class="mention label btn-warning sm">{{$tag}} <i class="fa fa-user" aria-hidden="true"></i></span>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
{{foreach $item.folders as $cat}}
|
||||
<span class="folder label btn-danger sm">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.folders as $cat}}
|
||||
<span class="folder label btn-danger sm">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
|
||||
{{foreach $item.categories as $cat}}
|
||||
<span class="category label btn-success sm">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.categories as $cat}}
|
||||
<span class="category label btn-success sm">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{if $item.edited}}<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>{{/if}}
|
||||
{{if $item.edited}}<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>{{/if}}
|
||||
</div>
|
||||
<!-- ./TODO -->
|
||||
|
||||
|
|
|
@ -263,23 +263,25 @@ as the value of $top_child_total (this is done at the end of this file)
|
|||
<div class="wall-item-links">
|
||||
</div>
|
||||
<div class="wall-item-tags">
|
||||
{{foreach $item.hashtags as $tag}}
|
||||
<span class='tag label btn-info sm'>{{$tag}} <i class="fa fa-bolt" aria-hidden="true"></i></span>
|
||||
{{/foreach}}
|
||||
{{if !$item.suppress_tags}}
|
||||
{{foreach $item.hashtags as $tag}}
|
||||
<span class="tag label btn-info sm">{{$tag}} <i class="fa fa-bolt" aria-hidden="true"></i></span>
|
||||
{{/foreach}}
|
||||
|
||||
{{foreach $item.mentions as $tag}}
|
||||
<span class='mention label btn-warning sm'>{{$tag}} <i class="fa fa-user" aria-hidden="true"></i></span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.mentions as $tag}}
|
||||
<span class="mention label btn-warning sm">{{$tag}} <i class="fa fa-user" aria-hidden="true"></i></span>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
|
||||
{{foreach $item.folders as $cat}}
|
||||
<span class='folder label btn-danger sm'><span class="p-category">{{$cat.name}}</span></a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.folders as $cat}}
|
||||
<span class="folder label btn-danger sm"><span class="p-category">{{$cat.name}}</span></a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
|
||||
{{foreach $item.categories as $cat}}
|
||||
<span class='category label btn-success sm'><span class="p-category">{{$cat.name}}</span></a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.categories as $cat}}
|
||||
<span class="category label btn-success sm"><span class="p-category">{{$cat.name}}</span></a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
{{if $item.edited}}<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>{{/if}}
|
||||
{{if $item.edited}}<div class="itemedited text-muted">{{$item.edited['label']}} (<span title="{{$item.edited['date']}}">{{$item.edited['relative']}}</span>)</div>{{/if}}
|
||||
</div>
|
||||
<!-- ./TODO -->
|
||||
|
||||
|
|
|
@ -52,11 +52,13 @@
|
|||
<div class="wall-item-title p-name" id="wall-item-title-{{$item.id}}">{{$item.title}}</div>
|
||||
{{*<!--<div class="wall-item-title-end"></div>-->*}}
|
||||
<div class="wall-item-body" id="wall-item-body-{{$item.id}}" ><span class="e-content">{{$item.body}}</span>
|
||||
{{*<!--<div class="body-tag">-->*}}
|
||||
{{foreach $item.tags as $tag}}
|
||||
<span class='body-tag tag'>{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{*<!--</div>-->*}}
|
||||
{{*<!--<div class="body-tag">-->*}}
|
||||
{{if !$item.suppress_tags}}
|
||||
{{foreach $item.tags as $tag}}
|
||||
<span class="body-tag tag">{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{*<!--</div>-->*}}
|
||||
{{if $item.has_cats}}
|
||||
<div class="categorytags">{{$item.txt_cats}} {{foreach $item.categories as $cat}}<span class="p-category">{{$cat.name}}</span> <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
|
||||
</div>
|
||||
|
|
|
@ -47,11 +47,13 @@
|
|||
<div class="wall-item-title p-name" id="wall-item-title-{{$item.id}}">{{$item.title}}</div>
|
||||
{{*<!--<div class="wall-item-title-end"></div>-->*}}
|
||||
<div class="wall-item-body" id="wall-item-body-{{$item.id}}" ><span class="e-content">{{$item.body}}</span>
|
||||
{{*<!--<div class="body-tag">-->*}}
|
||||
{{foreach $item.tags as $tag}}
|
||||
<span class='body-tag tag'>{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{*<!--</div>-->*}}
|
||||
{{*<!--<div class="body-tag">-->*}}
|
||||
{{if !$item.suppress_tags}}
|
||||
{{foreach $item.tags as $tag}}
|
||||
<span class="body-tag tag">{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{*<!--</div>-->*}}
|
||||
{{if $item.has_cats}}
|
||||
<div class="categorytags">{{$item.txt_cats}} {{foreach $item.categories as $cat}}<span class="p-category">{{$cat.name}}</span> <a href="{{$cat.removeurl}}" title="{{$remove}}">[{{$remove}}]</a> {{if $cat.last}}{{else}}, {{/if}}{{/foreach}}
|
||||
</div>
|
||||
|
|
|
@ -30,9 +30,11 @@
|
|||
<div class="wall-item-links">
|
||||
</div>
|
||||
<div class="wall-item-tags">
|
||||
{{if !$item.suppress_tags}}
|
||||
{{foreach $item.tags as $tag}}
|
||||
<span class='tag'>{{$tag}}</span>
|
||||
<span class="tag">{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="wall-item-bottom">
|
||||
|
|
|
@ -67,18 +67,20 @@
|
|||
<div class="wall-item-links">
|
||||
</div>
|
||||
<div class="wall-item-tags">
|
||||
{{if !$item.suppress_tags}}
|
||||
{{foreach $item.hashtags as $tag}}
|
||||
<span class='tag'>{{$tag}}</span>
|
||||
<span class="tag">{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.mentions as $tag}}
|
||||
<span class='mention'>{{$tag}}</span>
|
||||
<span class="mention">{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.folders as $cat}}
|
||||
<span class='folder p-category'>{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.categories as $cat}}
|
||||
<span class='category p-category'>{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.folders as $cat}}
|
||||
<span class="folder p-category">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.categories as $cat}}
|
||||
<span class="category p-category">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="wall-item-bottom">
|
||||
|
|
|
@ -60,9 +60,11 @@
|
|||
<div class="wall-item-title-end"></div>
|
||||
<div class="wall-item-body" id="wall-item-body-{{$item.id}}" ><span class="e-content">{{$item.body}}</span>
|
||||
<div class="body-tag">
|
||||
{{if !$item.suppress_tags}}
|
||||
{{foreach $item.tags as $tag}}
|
||||
<span class='tag'>{{$tag}}</span>
|
||||
<span class="tag">{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{if $item.has_cats}}
|
||||
|
|
|
@ -37,10 +37,11 @@
|
|||
<div class="wall-item-links">
|
||||
</div>
|
||||
<div class="wall-item-tags">
|
||||
{{if !$item.suppress_tags}}
|
||||
{{foreach $item.tags as $tag}}
|
||||
<span class='tag'>{{$tag}}</span>
|
||||
<span class="tag">{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="wall-item-bottom">
|
||||
|
|
|
@ -74,18 +74,20 @@
|
|||
<div class="wall-item-links">
|
||||
</div>
|
||||
<div class="wall-item-tags">
|
||||
{{if !$item.suppress_tags}}
|
||||
{{foreach $item.hashtags as $tag}}
|
||||
<span class='tag'>{{$tag}}</span>
|
||||
<span class="tag">{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.mentions as $tag}}
|
||||
<span class='mention'>{{$tag}}</span>
|
||||
<span class="mention">{{$tag}}</span>
|
||||
{{/foreach}}
|
||||
{{/if}}
|
||||
{{foreach $item.folders as $cat}}
|
||||
<span class="folder p-category">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.categories as $cat}}
|
||||
<span class="category p-category">{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.folders as $cat}}
|
||||
<span class='folder p-category'>{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
{{foreach $item.categories as $cat}}
|
||||
<span class='category p-category'>{{$cat.name}}</a>{{if $cat.removeurl}} (<a href="{{$cat.removeurl}}" title="{{$remove}}">x</a>) {{/if}} </span>
|
||||
{{/foreach}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="wall-item-bottom">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue