]> git.mxchange.org Git - friendica.git/commitdiff
add mention-buttons
authorJakobus Schürz (admin) <adminjs@schuerz.at>
Sun, 1 Oct 2023 10:38:57 +0000 (12:38 +0200)
committerJakobus Schürz (admin) <adminjs@schuerz.at>
Sun, 1 Oct 2023 10:38:57 +0000 (12:38 +0200)
view/templates/hovercard.tpl
view/theme/frio/templates/profile/vcard.tpl
view/theme/frio/templates/widget/vcard.tpl

index 563a5a248e25e1989fbf1decf4192598231141c9..ff3b3101a30ce3286cca1c5afdd9adf72322e7d5 100644 (file)
@@ -24,6 +24,7 @@
                                        {{if $profile.actions.pm}}<a class="btn btn-labeled btn-primary btn-sm add-to-modal" href="{{$profile.actions.pm.1}}" aria-label="{{$profile.actions.pm.0}}"><i class="fa fa-envelope" aria-hidden="true" title="{{$profile.actions.pm.0}}"></i><span class="sr-only">{{$profile.actions.pm.0}}</span></a>{{/if}}
                                </div>
                                <div class="hover-card-actions-connection">
+                                       {{if $profile.addr}}<a class="btn btn-labeled btn-primary btn-sm{{if !$always_open_compose}} modal-open{{/if}}" href="compose/0?body=@{{$profile.addr}}" aria-label="{{$mentioning}}" title="{{$mentioning}}"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>{{/if}}
                                        {{if $profile.actions.network}}<a class="btn btn-labeled btn-primary btn-sm" href="{{$profile.actions.network.1}}" aria-label="{{$profile.actions.network.0}}" title="{{$profile.actions.network.0}}"><i class="fa fa-cloud" aria-hidden="true"></i></a>{{/if}}
                                        {{if $profile.actions.edit}}<a class="btn btn-labeled btn-primary btn-sm" href="{{$profile.actions.edit.1}}" aria-label="{{$profile.actions.edit.0}}" title="{{$profile.actions.edit.0}}"><i class="fa fa-user" aria-hidden="true"></i></a>{{/if}}
                                        {{if $profile.actions.follow}}<a class="btn btn-labeled btn-primary btn-sm" href="{{$profile.actions.follow.1}}" aria-label="{{$profile.actions.follow.0}}" title="{{$profile.actions.follow.0}}"><i class="fa fa-user-plus" aria-hidden="true"></i></a>{{/if}}
index cc67227a2a5e6fb135dda29cf19a1d0421e68508..f707e7d6afc113d248c8488201da6dd0a8c87c3e 100644 (file)
                                </button>
                        </div>
                        {{/if}}
+                        {{if $profile.addr}}
+                               <div id="mention-link-button">
+                                       <button type="button" id="mention-link" class="btn btn-labeled btn-primary" onclick="openWallMessage('compose/0?body={{if $profile.forum==1}}!{{else}}@{{/if}}{{$profile.addr}}')">
+                                              <span class=""><i class="fa fa-pencil-square-o"></i></span>
+                                              <span class="">{{$mentioning}}</span>
+                               </div>
+                       {{/if}}
                </div>
                {{/if}}
 
index 9fef57a9d72dc959b92c6ab5b9d391bd256826ae..3786939388bb58c53dee6bbdf752b7cda1fa957d 100644 (file)
                                        </button>
                                </div>
                        {{/if}}
+                        {{if $contact.addr}}
+                               <div id="mention-link-button">
+                                       <button type="button" id="mention-link" class="btn btn-labeled btn-primary{{if !$always_open_compose}} modal-open{{/if}}" onclick="openWallMessage('compose/0?body={{if $contact.forum==1}}!{{else}}@{{/if}}{{$contact.addr}}')">
+                                               <span class=""><i class="fa fa-pencil-square-o"></i></span>
+                                               <span class="">{{$mentioning}}</span>
+                                       </button>
+                               </div>
+                        {{/if}}
                </div>
 
                <div class="clear"></div>