]> git.mxchange.org Git - friendica.git/commitdiff
fix smarty PHP warnings
authorrabuzarus <>
Sun, 23 Apr 2017 12:51:41 +0000 (14:51 +0200)
committerrabuzarus <>
Sun, 23 Apr 2017 12:51:41 +0000 (14:51 +0200)
view/theme/frio/templates/contact_template.tpl

index 07fec8efbb8a13293e24fe4539f07ebf2adf74f9..570e0f818e966a714c0b52fc4adb74ed19c55d64 100644 (file)
                </div>
 
                <div class="media-body">
+                       {{if $contact.photo_menu}}
                        {{* The contact actions like private mail, delete contact, edit contact and so on *}}
                        <div class="contact-actions pull-right nav-pills preferences hidden-xs">
-                               {{if $contact.photo_menu.pm     }}<button type="button" class="contact-action-link btn-link" onclick="addToModal('{{$contact.photo_menu.pm.1}}')" data-toggle="tooltip" title="{{$contact.photo_menu.pm.0}}"><i class="fa fa-envelope" aria-hidden="true"></i></button>{{/if}}
-                               {{if $contact.photo_menu.poke   }}<button type="button" class="contact-action-link btn-link" onclick="addToModal('{{$contact.photo_menu.poke.1}}')" data-toggle="tooltip" title="{{$contact.photo_menu.poke.0}}"><i class="fa fa-heartbeat" aria-hidden="true"></i></button>{{/if}}
-                               {{if $contact.photo_menu.network}}<a class="contact-action-link btn-link" href="{{$contact.photo_menu.network.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.network.0}}"><i class="fa fa-cloud" aria-hidden="true"></i></a>{{/if}}
-                               {{if $contact.photo_menu.edit   }}<a class="contact-action-link btn-link" href="{{$contact.photo_menu.edit.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.edit.0}}"><i class="fa fa-user" aria-hidden="true"></i></a>{{/if}}
-                               {{if $contact.photo_menu.drop   }}<button type="button" class="contact-action-link btn-link" onclick="addToModal('{{$contact.photo_menu.drop.1}}')" data-toggle="tooltip" title="{{$contact.photo_menu.drop.0}}"><i class="fa fa-user-times" aria-hidden="true"></i></button>{{/if}}
-                               {{if $contact.photo_menu.follow }}<a class="contact-action-link btn-link" href="{{$contact.photo_menu.follow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.follow.0}}"><i class="fa fa-user-plus" aria-hidden="true"></i></a>{{/if}}
-                               {{if $contact.photo_menu.hide   }}<a class="contact-action-link btn-link" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}"><i class="fa fa-times" aria-hidden="true"></i></a>{{/if}}
+                               {{if $contact.photo_menu.pm}}
+                               <button type="button" class="contact-action-link btn-link" onclick="addToModal('{{$contact.photo_menu.pm.1}}'); retrurn false;" data-toggle="tooltip" title="{{$contact.photo_menu.pm.0}}">
+                                       <i class="fa fa-envelope" aria-hidden="true"></i>
+                               </button>
+                               {{/if}}
+                               {{if $contact.photo_menu.poke}}
+                               <button type="button" class="contact-action-link btn-link" onclick="addToModal('{{$contact.photo_menu.poke.1}}'); retrurn false;" data-toggle="tooltip" title="{{$contact.photo_menu.poke.0}}">
+                                       <i class="fa fa-heartbeat" aria-hidden="true"></i>
+                               </button>
+                               {{/if}}
+                               {{if $contact.photo_menu.network}}
+                               <a class="contact-action-link btn-link" href="{{$contact.photo_menu.network.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.network.0}}">
+                                       <i class="fa fa-cloud" aria-hidden="true"></i>
+                               </a>
+                               {{/if}}
+                               {{if $contact.photo_menu.edit}}
+                               <a class="contact-action-link btn-link" href="{{$contact.photo_menu.edit.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.edit.0}}">
+                                       <i class="fa fa-user" aria-hidden="true"></i>
+                               </a>
+                               {{/if}}
+                               {{if $contact.photo_menu.drop}}
+                               <button type="button" class="contact-action-link btn-link" onclick="addToModal('{{$contact.photo_menu.drop.1}}'); retrurn false;" data-toggle="tooltip" title="{{$contact.photo_menu.drop.0}}">
+                                       <i class="fa fa-user-times" aria-hidden="true"></i>
+                               </button>
+                               {{/if}}
+                               {{if $contact.photo_menu.follow}}
+                               <a class="contact-action-link btn-link" href="{{$contact.photo_menu.follow.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.follow.0}}">
+                                       <i class="fa fa-user-plus" aria-hidden="true"></i>
+                               </a>
+                               {{/if}}
+                               {{if $contact.photo_menu.hide}}
+                               <a class="contact-action-link btn-link" href="{{$contact.photo_menu.hide.1}}" data-toggle="tooltip" title="{{$contact.photo_menu.hide.0}}">
+                                       <i class="fa fa-times" aria-hidden="true"></i>
+                               </a>
+                               {{/if}}
                        </div>
+                       {{/if}}
 
                        {{* The button to add or remove contacts from a contact group - group edit page *}}
                        {{if $contact.change_member}}
@@ -148,15 +178,41 @@ We use this part to filter the contacts with jquery.textcomplete *}}
                        </div>
 
                        <div class="media-body">
+                               {if $photo_menu}
                                {{* The contact actions like private mail, delete contact, edit contact and so on *}}
                                <div class="contact-actions pull-right nav-pills preferences hidden-xs">
-                                       {if $photo_menu.pm}<button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.pm.1}')" data-toggle="tooltip" title="{$photo_menu.pm.0}"><i class="fa fa-envelope" aria-hidden="true"></i></button>{/if}
-                                       {if $photo_menu.poke}<button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.poke.1}')" data-toggle="tooltip" title="{$photo_menu.poke.0}"><i class="fa fa-heartbeat" aria-hidden="true"></i></button>{/if}
-                                       {if $photo_menu.network}<a class="contact-action-link btn-link" href="{$photo_menu.network.1}" data-toggle="tooltip" title="{$photo_menu.network.0}"><i class="fa fa-cloud" aria-hidden="true"></i></a>{/if}
-                                       {if $photo_menu.edit}<a class="contact-action-link btn-link" href="{$photo_menu.edit.1}" data-toggle="tooltip" title="{$photo_menu.edit.0}"><i class="fa fa-pencil" aria-hidden="true"></i></a>{/if}
-                                       {if $photo_menu.drop}<a class="contact-action-link btn-link" href="{$photo_menu.drop.1}" data-toggle="tooltip" title="{$photo_menu.drop.0}"><i class="fa fa-user-times" aria-hidden="true"></i></a>{/if}
-                                       {if $photo_menu.follow}<a class="contact-action-link btn-link" href="{$photo_menu.follow.1}" data-toggle="tooltip" title="{$photo_menu.follow.0}"><i class="fa fa-user-plus" aria-hidden="true"></i></a>{/if}
+                                       {if $photo_menu.pm}
+                                       <button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.pm.1}')" data-toggle="tooltip" title="{$photo_menu.pm.0}">
+                                               <i class="fa fa-envelope" aria-hidden="true"></i>
+                                       </button>
+                                       {/if}
+                                       {if $photo_menu.poke}
+                                       <button type="button" class="contact-action-link btn-link" onclick="addToModal('{$photo_menu.poke.1}')" data-toggle="tooltip" title="{$photo_menu.poke.0}">
+                                               <i class="fa fa-heartbeat" aria-hidden="true"></i>
+                                       </button>
+                                       {/if}
+                                       {if $photo_menu.network}
+                                       <a class="contact-action-link btn-link" href="{$photo_menu.network.1}" data-toggle="tooltip" title="{$photo_menu.network.0}">
+                                               <i class="fa fa-cloud" aria-hidden="true"></i>
+                                       </a>
+                                       {/if}
+                                       {if $photo_menu.edit}
+                                       <a class="contact-action-link btn-link" href="{$photo_menu.edit.1}" data-toggle="tooltip" title="{$photo_menu.edit.0}">
+                                               <i class="fa fa-pencil" aria-hidden="true"></i>
+                                       </a>
+                                       {/if}
+                                       {if $photo_menu.drop}
+                                       <a class="contact-action-link btn-link" href="{$photo_menu.drop.1}" data-toggle="tooltip" title="{$photo_menu.drop.0}">
+                                               <i class="fa fa-user-times" aria-hidden="true"></i>
+                                       </a>
+                                       {/if}
+                                       {if $photo_menu.follow}
+                                       <a class="contact-action-link btn-link" href="{$photo_menu.follow.1}" data-toggle="tooltip" title="{$photo_menu.follow.0}">
+                                               <i class="fa fa-user-plus" aria-hidden="true"></i>
+                                       </a>
+                                       {/if}
                                </div>
+                               {/if}
 
                                {{* The contact description (e.g. Name, Network, kind of connection and so on *}}
                                <div class="contact-entry-desc">