// Set the pager
$pager = new Pager(DI::args()->getQueryString(), self::ITEMS_PER_PAGE);
- $notif_tpl = Renderer::getMarkupTemplate('notifications.tpl');
+ $notif_tpl = Renderer::getMarkupTemplate('notifications/notifications.tpl');
return Renderer::replaceMacros($notif_tpl, [
'$notif_header' => $notif_header ?? DI::l10n()->t('Notifications'),
'$tabs' => $tabs,
$notifs = $notif_result['notifs'] ?? [];
$notif_header = $notif_result['header'] ?? '';
- $sugg = Renderer::getMarkupTemplate('suggestions.tpl');
- $tpl = Renderer::getMarkupTemplate('intros.tpl');
+ $sugg = Renderer::getMarkupTemplate('notifications/suggestions.tpl');
+ $tpl = Renderer::getMarkupTemplate('notifications/intros.tpl');
// The link to switch between ignored and normal connection requests
$notif_show_lnk = [
$helptext3 = DI::l10n()->t('Accepting %s as a sharer allows them to subscribe to your posts, but you will not receive updates from them in your news feed.', $notif['name']);
}
- $dfrn_tpl = Renderer::getMarkupTemplate('netfriend.tpl');
+ $dfrn_tpl = Renderer::getMarkupTemplate('notifications/netfriend.tpl');
$dfrn_text = Renderer::replaceMacros($dfrn_tpl, [
'$intro_id' => $notif['intro_id'],
'$friend_selected' => $friend_selected,
// notification and apply the correct template according to the notificationtype (label).
foreach ($notifs['notifications'] as $notif) {
$notification_templates = [
- 'like' => 'notifications_likes_item.tpl',
- 'dislike' => 'notifications_dislikes_item.tpl',
- 'attend' => 'notifications_attend_item.tpl',
- 'attendno' => 'notifications_attend_item.tpl',
- 'attendmaybe' => 'notifications_attend_item.tpl',
- 'friend' => 'notifications_friends_item.tpl',
- 'comment' => 'notifications_comments_item.tpl',
- 'post' => 'notifications_posts_item.tpl',
- 'notify' => 'notify.tpl',
+ 'like' => 'notifications/likes_item.tpl',
+ 'dislike' => 'notifications/dislikes_item.tpl',
+ 'attend' => 'notifications/attend_item.tpl',
+ 'attendno' => 'notifications/attend_item.tpl',
+ 'attendmaybe' => 'notifications/attend_item.tpl',
+ 'friend' => 'notifications/friends_item.tpl',
+ 'comment' => 'notifications/comments_item.tpl',
+ 'post' => 'notifications/posts_item.tpl',
+ 'notify' => 'notifications/notify.tpl',
];
$tpl_notif = Renderer::getMarkupTemplate($notification_templates[$notif['label']]);
+++ /dev/null
-<h2>{{$header}}</h2>
-
-<div class="intro-wrapper" id="intro-{{$contact_id}}" >
-
-<p class="intro-desc">{{$str_notifytype}} {{$notify_type}}</p>
-<img id="photo-{{$contact_id}}" class="intro-photo" src="{{$photo}}" width="175" height=175" title="{{$fullname}}" alt="{{$fullname}}" />
-<dl><dt>{{$lbl_url}}</dt><dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd></dl>
-{{if $location}}<dl><dt>{{$lbl_location}}</dt><dd>{{$location}}</dd></dl>{{/if}}
-{{if $gender}}<dl><dt>{{$lbl_gender}}</dt><dd>{{$gender}}</dd></dl>{{/if}}
-{{if $keywords}}<dl><dt>{{$lbl_keywords}}</dt><dd>{{$keywords}}</dd></dl>{{/if}}
-{{if $about}}<dl><dt>{{$lbl_about}}</dt><dd>{{$about nofilter}}</dd></dl>{{/if}}
-<div class="intro-knowyou">{{$lbl_knowyou}} {{$knowyou}}</div>
-<div class="intro-note" id="intro-note-{{$contact_id}}">{{$note}}</div>
-<div class="intro-wrapper-end" id="intro-wrapper-end-{{$contact_id}}"></div>
-<form class="intro-form" action="notifications/{{$intro_id}}" method="post">
-<input class="intro-submit-ignore" type="submit" name="submit" value="{{$ignore}}" />
-{{if $discard}}<input class="intro-submit-discard" type="submit" name="submit" value="{{$discard}}" />{{/if}}
-</form>
-<div class="intro-form-end"></div>
-
-<form class="intro-approve-form" action="{{$action}}" method="post">
-{{include file="field_checkbox.tpl" field=$hidden}}
-<input type="hidden" name="dfrn_id" value="{{$dfrn_id}}" >
-<input type="hidden" name="intro_id" value="{{$intro_id}}" >
-<input type="hidden" name="contact_id" value="{{$contact_id}}" >
-
-{{$dfrn_text nofilter}}
-
-<input class="intro-submit-approve" type="submit" name="submit" value="{{$approve}}" />
-</form>
-</div>
-<div class="intro-end"></div>
+++ /dev/null
-
-<div class="intro-approve-as-friend-desc">
- <p>{{$approve_as1}}</p>
- <p>{{$approve_as2}}</p>
- <p>{{$approve_as3}}</p>
-</div>
-
-<div class="intro-approve-as-friend-wrapper">
- <label class="intro-approve-as-friend-label" for="intro-approve-as-friend-{{$intro_id}}">{{$as_friend}}</label>
- <input type="radio" name="duplex" id="intro-approve-as-friend-{{$intro_id}}" class="intro-approve-as-friend" {{$friend_selected}} value="1" />
- <div class="intro-approve-friend-break" ></div>
-</div>
-<div class="intro-approve-as-friend-end"></div>
-<div class="intro-approve-as-fan-wrapper">
- <label class="intro-approve-as-fan-label" for="intro-approve-as-fan-{{$intro_id}}">{{$as_fan}}</label>
- <input type="radio" name="duplex" id="intro-approve-as-fan-{{$intro_id}}" class="intro-approve-as-fan" {{$fan_selected}} value="0" />
- <div class="intro-approve-fan-break"></div>
-</div>
-<div class="intro-approve-as-end"></div>
+++ /dev/null
-
-
-<h1>{{$notif_header}}</h1>
-
-{{if $tabs }}{{include file="common_tabs.tpl"}}{{/if}}
-
-<div class="notif-network-wrapper">
- {{* The "show ignored" link *}}
- {{if $notif_show_lnk}}<a href="{{$notif_show_lnk.href}}" id="notifications-show-hide-link">{{$notif_show_lnk.text}}</a>{{/if}}
-
- {{* The notifications *}}
- {{if $notif_content}}
- {{foreach $notif_content as $notification}}
- {{$notification nofilter}}
- {{/foreach}}
- {{/if}}
-
- {{* If no notifications messages available *}}
- {{if $notif_nocontent}}
- <div class="notif_nocontent">{{$notif_nocontent}}</div>
- {{/if}}
-
- {{* The pager *}}
- {{$notif_paginate nofilter}}
-</div>
--- /dev/null
+
+<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
+ <a href="{{$item_link}}" target="friendica-notification"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
+</div>
\ No newline at end of file
--- /dev/null
+
+<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
+ <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
+</div>
\ No newline at end of file
--- /dev/null
+
+<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
+ <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
+</div>
\ No newline at end of file
--- /dev/null
+
+<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
+ <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
+</div>
\ No newline at end of file
--- /dev/null
+<h2>{{$header}}</h2>
+
+<div class="intro-wrapper" id="intro-{{$contact_id}}" >
+
+<p class="intro-desc">{{$str_notifytype}} {{$notify_type}}</p>
+<img id="photo-{{$contact_id}}" class="intro-photo" src="{{$photo}}" width="175" height=175" title="{{$fullname}}" alt="{{$fullname}}" />
+<dl><dt>{{$lbl_url}}</dt><dd><a target="blank" href="{{$zrl}}">{{$url}}</a></dd></dl>
+{{if $location}}<dl><dt>{{$lbl_location}}</dt><dd>{{$location}}</dd></dl>{{/if}}
+{{if $gender}}<dl><dt>{{$lbl_gender}}</dt><dd>{{$gender}}</dd></dl>{{/if}}
+{{if $keywords}}<dl><dt>{{$lbl_keywords}}</dt><dd>{{$keywords}}</dd></dl>{{/if}}
+{{if $about}}<dl><dt>{{$lbl_about}}</dt><dd>{{$about nofilter}}</dd></dl>{{/if}}
+<div class="intro-knowyou">{{$lbl_knowyou}} {{$knowyou}}</div>
+<div class="intro-note" id="intro-note-{{$contact_id}}">{{$note}}</div>
+<div class="intro-wrapper-end" id="intro-wrapper-end-{{$contact_id}}"></div>
+<form class="intro-form" action="notifications/{{$intro_id}}" method="post">
+<input class="intro-submit-ignore" type="submit" name="submit" value="{{$ignore}}" />
+{{if $discard}}<input class="intro-submit-discard" type="submit" name="submit" value="{{$discard}}" />{{/if}}
+</form>
+<div class="intro-form-end"></div>
+
+<form class="intro-approve-form" action="{{$action}}" method="post">
+{{include file="field_checkbox.tpl" field=$hidden}}
+<input type="hidden" name="dfrn_id" value="{{$dfrn_id}}" >
+<input type="hidden" name="intro_id" value="{{$intro_id}}" >
+<input type="hidden" name="contact_id" value="{{$contact_id}}" >
+
+{{$dfrn_text nofilter}}
+
+<input class="intro-submit-approve" type="submit" name="submit" value="{{$approve}}" />
+</form>
+</div>
+<div class="intro-end"></div>
--- /dev/null
+
+<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
+ <a href="{{$item_link}}" target="friendica-notification"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
+</div>
\ No newline at end of file
--- /dev/null
+
+<div class="intro-approve-as-friend-desc">
+ <p>{{$approve_as1}}</p>
+ <p>{{$approve_as2}}</p>
+ <p>{{$approve_as3}}</p>
+</div>
+
+<div class="intro-approve-as-friend-wrapper">
+ <label class="intro-approve-as-friend-label" for="intro-approve-as-friend-{{$intro_id}}">{{$as_friend}}</label>
+ <input type="radio" name="duplex" id="intro-approve-as-friend-{{$intro_id}}" class="intro-approve-as-friend" {{$friend_selected}} value="1" />
+ <div class="intro-approve-friend-break" ></div>
+</div>
+<div class="intro-approve-as-friend-end"></div>
+<div class="intro-approve-as-fan-wrapper">
+ <label class="intro-approve-as-fan-label" for="intro-approve-as-fan-{{$intro_id}}">{{$as_fan}}</label>
+ <input type="radio" name="duplex" id="intro-approve-as-fan-{{$intro_id}}" class="intro-approve-as-fan" {{$fan_selected}} value="0" />
+ <div class="intro-approve-fan-break"></div>
+</div>
+<div class="intro-approve-as-end"></div>
--- /dev/null
+
+<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
+ <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
+</div>
--- /dev/null
+
+
+<h1>{{$notif_header}}</h1>
+
+{{if $tabs }}{{include file="common_tabs.tpl"}}{{/if}}
+
+<div class="notif-network-wrapper">
+ {{* The "show ignored" link *}}
+ {{if $notif_show_lnk}}<a href="{{$notif_show_lnk.href}}" id="notifications-show-hide-link">{{$notif_show_lnk.text}}</a>{{/if}}
+
+ {{* The notifications *}}
+ {{if $notif_content}}
+ {{foreach $notif_content as $notification}}
+ {{$notification nofilter}}
+ {{/foreach}}
+ {{/if}}
+
+ {{* If no notifications messages available *}}
+ {{if $notif_nocontent}}
+ <div class="notif_nocontent">{{$notif_nocontent}}</div>
+ {{/if}}
+
+ {{* The pager *}}
+ {{$notif_paginate nofilter}}
+</div>
--- /dev/null
+
+<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
+ <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
+</div>
\ No newline at end of file
--- /dev/null
+
+<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
+ <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
+</div>
\ No newline at end of file
--- /dev/null
+
+
+<div class="intro-wrapper" >
+
+<p class="intro-desc">{{$str_notifytype}} {{$notify_type}}</p>
+{{if $madeby}}<div class="intro-madeby">{{$lbl_madeby}} {{$madeby}}</div>{{/if}}
+<div class="intro-fullname" >{{$fullname}}</div>
+<a class="intro-url-link" href="{{$url}}" ><img class="intro-photo lframe" src="{{$photo}}" width="175" height="175" title="{{$fullname}}" alt="{{$fullname}}" /></a>
+<div class="intro-note" >{{$note}}</div>
+<div class="intro-wrapper-end"></div>
+<form class="intro-form" action="notifications/{{$intro_id}}" method="post">
+<input class="intro-submit-ignore" type="submit" name="submit" value="{{$ignore}}" />
+<input class="intro-submit-discard" type="submit" name="submit" value="{{$discard}}" />
+</form>
+<div class="intro-form-end"></div>
+
+<form class="intro-approve-form" action="{{$request}}" method="get">
+{{include file="field_checkbox.tpl" field=$hidden}}
+<input class="intro-submit-approve" type="submit" name="submit" value="{{$approve}}" />
+</form>
+</div>
+<div class="intro-end"></div>
+++ /dev/null
-
-<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
- <a href="{{$item_link}}" target="friendica-notification"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
-</div>
\ No newline at end of file
+++ /dev/null
-
-<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
- <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
-</div>
\ No newline at end of file
+++ /dev/null
-
-<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
- <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
-</div>
\ No newline at end of file
+++ /dev/null
-
-<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
- <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
-</div>
\ No newline at end of file
+++ /dev/null
-
-<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
- <a href="{{$item_link}}" target="friendica-notification"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
-</div>
\ No newline at end of file
+++ /dev/null
-
-<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
- <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
-</div>
+++ /dev/null
-
-<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
- <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
-</div>
\ No newline at end of file
+++ /dev/null
-
-<div class="notif-item {{if !$item_seen}}unseen{{/if}}">
- <a href="{{$item_link}}" target="friendica-notifications"><img src="{{$item_image}}" class="notif-image">{{$item_text nofilter}} <span class="notif-when">{{$item_ago}}</span></a>
-</div>
\ No newline at end of file
+++ /dev/null
-
-
-<div class="intro-wrapper" >
-
-<p class="intro-desc">{{$str_notifytype}} {{$notify_type}}</p>
-{{if $madeby}}<div class="intro-madeby">{{$lbl_madeby}} {{$madeby}}</div>{{/if}}
-<div class="intro-fullname" >{{$fullname}}</div>
-<a class="intro-url-link" href="{{$url}}" ><img class="intro-photo lframe" src="{{$photo}}" width="175" height="175" title="{{$fullname}}" alt="{{$fullname}}" /></a>
-<div class="intro-note" >{{$note}}</div>
-<div class="intro-wrapper-end"></div>
-<form class="intro-form" action="notifications/{{$intro_id}}" method="post">
-<input class="intro-submit-ignore" type="submit" name="submit" value="{{$ignore}}" />
-<input class="intro-submit-discard" type="submit" name="submit" value="{{$discard}}" />
-</form>
-<div class="intro-form-end"></div>
-
-<form class="intro-approve-form" action="{{$request}}" method="get">
-{{include file="field_checkbox.tpl" field=$hidden}}
-<input class="intro-submit-approve" type="submit" name="submit" value="{{$approve}}" />
-</form>
-</div>
-<div class="intro-end"></div>
+++ /dev/null
-
-{{* template incomming contact request and suggested contacts *}}
-
-<div class="intro-wrapper media" id="intro-{{$intro_id}}" >
-
- {{* Contact Photo *}}
- <div class="intro-photo-wrapper dropdown pull-left" >
- <img id="photo-{{$intro_id}}" class="intro-photo media-object" src="{{$photo}}" title="{{$fullname}}" alt="{{$fullname}}" />
- </div>
-
- <div class="media-body">
- {{* The intro actions like approve, ignore, discard intro*}}
- <div class="intro-actions pull-right nav-pills preferences">
- <button class="btn-link intro-action-link" onclick="addElmToModal('#intro-approve-wrapper-{{$intro_id}}');" aria-label="{{$approve}}" title="{{$approve}}" data-toggle="tooltip"><i class="fa fa-check" aria-hidden="true"></i></button>
-
- <form class="intro-form" action="notifications/{{$intro_id}}" method="post">
- <button class="btn-link intro-submit-ignore intro-action-link" type="submit" name="submit" value="{{$ignore}}" aria-label="{{$ignore}}" title="{{$ignore}}" data-toggle="tooltip"><i class="fa fa-ban" aria-hidden="true"></i></button>
- {{if $discard}}<button class="btn-link intro-submit-discard intro-action-link" type="submit" name="submit" value="{{$discard}}" aria-label="{{$discard}}" title="{{$discard}}" data-toggle="tooltip"><i class="fa fa-trash-o" aria-hidden="true"></i></button>{{/if}}
- </form>
- </div>
- <div class='intro-enty-name'><h4 class="media-heading"><a href="{{$zrl}}">{{$fullname}}</a></h4></div>
- <div class="intro-desc"><span class="intro-desc-label">{{$str_notifytype}}</span> {{$notify_type}}</div>
- {{* if the contact was suggestested by another contact, the contact who made the suggestion is displayed*}}
- {{if $madeby}}<div class="intro-madeby"><span class="intro-madeby-label">{{$lbl_madeby}}</span> <a href="{{$madeby_zrl}}">{{$madeby}}</a></div>{{/if}}
-
- {{* Additional information of the contact *}}
- <div class="intro-contact-info hidden-xs">
- <div class="intro-url"><span class="intro-url-label">{{$lbl_url}}: </span><a href="{{$zrl}}">{{$url}}</a></div>
- {{if $network}}<div class="intro-network"><span class="intro-network-label">{{$lbl_network}}</span> {{$network}}</div>{{/if}}
- {{if $location}}<div class="intro-location"><span class="intro-location-label">{{$lbl_location}}</span> {{$location}}</div>{{/if}}
- {{if $gender}}<div class="intro-gender"><span class="intro-gender-label">{{$lbl_gender}}</span> {{$gender}}</div>{{/if}}
- {{if $keywords}}<div class="intro-keywords"><span class="intro-keywords-label">{{$lbl_keywords}}</span> {{$keywords}}</div>{{/if}}
- {{if $about}}<div class="intro-about"><span class="intro-about-label">{{$lbl_about}}</span> {{$about nofilter}}</div>{{/if}}
- <div class="intro-knowyou"><span class="intro-knowyou-label">{{$lbl_knowyou}}</span>{{$knowyou}}</div>
- <div class="intro-note intro-note-{{$intro_id}}">{{$note}}</div>
- </div>
-
- {{* Additional information of the contact for mobile view *}}
- <div class="intro-contact-info xs hidden-lg hidden-md hidden-sm">
- <div class="intro-url"><span class="intro-url-label">{{$lbl_url}}:</span><a href="{{$zrl}}">{{$url}}</a></div>
- {{if $network}}<div class="intro-network"><span class="intro-network-label">{{$lbl_network}}</span>{{$network}}</div>{{/if}}
- {{if $location}}<div class="intro-location"><span class="intro-location-label">{{$lbl_location}}</span>{{$location}}</div>{{/if}}
- {{if $gender}}<div class="intro-gender"><span class="intro-gender-label">{{$lbl_gender}}</span>{{$gender}}</div>{{/if}}
- {{if $keywords}}<div class="intro-keywords"><span class="intro-keywords-label">{{$lbl_keywords}}</span>{{$keywords}}</div>{{/if}}
- {{if $about}}<div class="intro-about"><span class="intro-about-label">{{$lbl_about}}</span>{{$about nofilter}}</div>{{/if}}
- <div class="intro-knowyou"><span class="intro-knowyou-label">{{$lbl_knowyou}}</span>{{$knowyou}}</div>
- <div class="intro-note intro-note-{{$intro_id}}">{{$note}}</div>
- </div>
-
- {{* This sections contains special settings for contact approval. We hide it by default and load this section in
- a bootstrap modal in the case of approval *}}
- <div id="intro-approve-wrapper-{{$intro_id}}" style="display: none;">
-
- <h3 class="heading">{{$fullname}}{{if $addr}} ({{$addr}}){{/if}}</h3>
- <form class="intro-approve-form" {{if $request}}action="{{$request}}" method="get"{{else}}action="{{$action}}" method="post"{{/if}}>
- {{include file="field_checkbox.tpl" field=$hidden}}
- {{if $type != "friend_suggestion"}}
- <input type="hidden" name="dfrn_id" value="{{$dfrn_id}}" >
- <input type="hidden" name="intro_id" value="{{$intro_id}}" >
- <input type="hidden" name="contact_id" value="{{$contact_id}}" >
- {{/if}}
-
- {{$dfrn_text nofilter}}
-
- <div class="pull-right">
- <button class="btn btn-primary intro-submit-approve" type="submit" name="submit" value="{{$approve}}">{{$approve}}</button>
- </div>
- <div class="clear"></div>
- </form>
- </div>
- </div>
-
- {{* On mobile touch devices we use buttons for approve, ingnore && discard to have a better UX *}}
- {{if $APP->is_mobile}}
- <div class="intro-action-buttons">
- <form class="intro-form pull-left" action="notifications/{{$intro_id}}" method="post">
- <button class="btn btn-small btn-default intro-submit-ignore" type="submit" name="submit" value="{{$ignore}}">{{$ignore}}</button>
- {{if $discard}}<button class="btn btn-small btn-default intro-submit-discard" type="submit" name="submit" value="{{$discard}}">{{$discard}}</button> {{/if}}
- </form>
- <button class="btn btn-small btn-primary intro-submit-approve pull-right" onclick="addElmToModal('#intro-approve-wrapper-{{$intro_id}}')">{{$approve}}</button>
- </div>
- <div class="clear"></div>
- {{/if}}
-</div>
-<div class="intro-end"></div>
+++ /dev/null
-<script type="text/javascript" src="view/theme/frio/frameworks/jquery-color/jquery.color.js"></script>
-<script type="text/javascript" src="view/theme/frio/js/mod_notifications.js"></script>
-
-<div class="generic-page-wrapper">
- {{include file="section_title.tpl" title=$notif_header}}
-
- {{if $tabs }}{{include file="common_tabs.tpl"}}{{/if}}
-
- <div class="notif-network-wrapper">
- {{* The "show ignored" link *}}
- {{if $notif_show_lnk}}<a href="{{$notif_show_lnk.href}}" id="notifications-show-hide-link">{{$notif_show_lnk.text}}</a>{{/if}}
-
- {{* The notifications *}}
- {{if $notif_content}}
- <ul class="notif-network-list media-list">
- {{foreach $notif_content as $notification}}
- <li>{{$notification nofilter}}</li>
- {{/foreach}}
- </ul>
- {{/if}}
-
- {{* If no notifications messages available *}}
- {{if $notif_nocontent}}
- <div class="notif_nocontent">{{$notif_nocontent}}</div>
- {{/if}}
- </div>
-
- {{* The pager *}}
- {{$notif_paginate nofilter}}
-</div>
--- /dev/null
+
+{{include file="notifications/notify.tpl"}}
--- /dev/null
+
+{{include file="notifications/notify.tpl"}}
--- /dev/null
+
+{{include file="notifications/notify.tpl"}}
--- /dev/null
+
+{{include file="notifications/notify.tpl"}}
--- /dev/null
+
+{{* template incomming contact request and suggested contacts *}}
+
+<div class="intro-wrapper media" id="intro-{{$intro_id}}" >
+
+ {{* Contact Photo *}}
+ <div class="intro-photo-wrapper dropdown pull-left" >
+ <img id="photo-{{$intro_id}}" class="intro-photo media-object" src="{{$photo}}" title="{{$fullname}}" alt="{{$fullname}}" />
+ </div>
+
+ <div class="media-body">
+ {{* The intro actions like approve, ignore, discard intro*}}
+ <div class="intro-actions pull-right nav-pills preferences">
+ <button class="btn-link intro-action-link" onclick="addElmToModal('#intro-approve-wrapper-{{$intro_id}}');" aria-label="{{$approve}}" title="{{$approve}}" data-toggle="tooltip"><i class="fa fa-check" aria-hidden="true"></i></button>
+
+ <form class="intro-form" action="notifications/{{$intro_id}}" method="post">
+ <button class="btn-link intro-submit-ignore intro-action-link" type="submit" name="submit" value="{{$ignore}}" aria-label="{{$ignore}}" title="{{$ignore}}" data-toggle="tooltip"><i class="fa fa-ban" aria-hidden="true"></i></button>
+ {{if $discard}}<button class="btn-link intro-submit-discard intro-action-link" type="submit" name="submit" value="{{$discard}}" aria-label="{{$discard}}" title="{{$discard}}" data-toggle="tooltip"><i class="fa fa-trash-o" aria-hidden="true"></i></button>{{/if}}
+ </form>
+ </div>
+ <div class='intro-enty-name'><h4 class="media-heading"><a href="{{$zrl}}">{{$fullname}}</a></h4></div>
+ <div class="intro-desc"><span class="intro-desc-label">{{$str_notifytype}}</span> {{$notify_type}}</div>
+ {{* if the contact was suggestested by another contact, the contact who made the suggestion is displayed*}}
+ {{if $madeby}}<div class="intro-madeby"><span class="intro-madeby-label">{{$lbl_madeby}}</span> <a href="{{$madeby_zrl}}">{{$madeby}}</a></div>{{/if}}
+
+ {{* Additional information of the contact *}}
+ <div class="intro-contact-info hidden-xs">
+ <div class="intro-url"><span class="intro-url-label">{{$lbl_url}}: </span><a href="{{$zrl}}">{{$url}}</a></div>
+ {{if $network}}<div class="intro-network"><span class="intro-network-label">{{$lbl_network}}</span> {{$network}}</div>{{/if}}
+ {{if $location}}<div class="intro-location"><span class="intro-location-label">{{$lbl_location}}</span> {{$location}}</div>{{/if}}
+ {{if $gender}}<div class="intro-gender"><span class="intro-gender-label">{{$lbl_gender}}</span> {{$gender}}</div>{{/if}}
+ {{if $keywords}}<div class="intro-keywords"><span class="intro-keywords-label">{{$lbl_keywords}}</span> {{$keywords}}</div>{{/if}}
+ {{if $about}}<div class="intro-about"><span class="intro-about-label">{{$lbl_about}}</span> {{$about nofilter}}</div>{{/if}}
+ <div class="intro-knowyou"><span class="intro-knowyou-label">{{$lbl_knowyou}}</span>{{$knowyou}}</div>
+ <div class="intro-note intro-note-{{$intro_id}}">{{$note}}</div>
+ </div>
+
+ {{* Additional information of the contact for mobile view *}}
+ <div class="intro-contact-info xs hidden-lg hidden-md hidden-sm">
+ <div class="intro-url"><span class="intro-url-label">{{$lbl_url}}:</span><a href="{{$zrl}}">{{$url}}</a></div>
+ {{if $network}}<div class="intro-network"><span class="intro-network-label">{{$lbl_network}}</span>{{$network}}</div>{{/if}}
+ {{if $location}}<div class="intro-location"><span class="intro-location-label">{{$lbl_location}}</span>{{$location}}</div>{{/if}}
+ {{if $gender}}<div class="intro-gender"><span class="intro-gender-label">{{$lbl_gender}}</span>{{$gender}}</div>{{/if}}
+ {{if $keywords}}<div class="intro-keywords"><span class="intro-keywords-label">{{$lbl_keywords}}</span>{{$keywords}}</div>{{/if}}
+ {{if $about}}<div class="intro-about"><span class="intro-about-label">{{$lbl_about}}</span>{{$about nofilter}}</div>{{/if}}
+ <div class="intro-knowyou"><span class="intro-knowyou-label">{{$lbl_knowyou}}</span>{{$knowyou}}</div>
+ <div class="intro-note intro-note-{{$intro_id}}">{{$note}}</div>
+ </div>
+
+ {{* This sections contains special settings for contact approval. We hide it by default and load this section in
+ a bootstrap modal in the case of approval *}}
+ <div id="intro-approve-wrapper-{{$intro_id}}" style="display: none;">
+
+ <h3 class="heading">{{$fullname}}{{if $addr}} ({{$addr}}){{/if}}</h3>
+ <form class="intro-approve-form" {{if $request}}action="{{$request}}" method="get"{{else}}action="{{$action}}" method="post"{{/if}}>
+ {{include file="field_checkbox.tpl" field=$hidden}}
+ {{if $type != "friend_suggestion"}}
+ <input type="hidden" name="dfrn_id" value="{{$dfrn_id}}" >
+ <input type="hidden" name="intro_id" value="{{$intro_id}}" >
+ <input type="hidden" name="contact_id" value="{{$contact_id}}" >
+ {{/if}}
+
+ {{$dfrn_text nofilter}}
+
+ <div class="pull-right">
+ <button class="btn btn-primary intro-submit-approve" type="submit" name="submit" value="{{$approve}}">{{$approve}}</button>
+ </div>
+ <div class="clear"></div>
+ </form>
+ </div>
+ </div>
+
+ {{* On mobile touch devices we use buttons for approve, ingnore && discard to have a better UX *}}
+ {{if $APP->is_mobile}}
+ <div class="intro-action-buttons">
+ <form class="intro-form pull-left" action="notifications/{{$intro_id}}" method="post">
+ <button class="btn btn-small btn-default intro-submit-ignore" type="submit" name="submit" value="{{$ignore}}">{{$ignore}}</button>
+ {{if $discard}}<button class="btn btn-small btn-default intro-submit-discard" type="submit" name="submit" value="{{$discard}}">{{$discard}}</button> {{/if}}
+ </form>
+ <button class="btn btn-small btn-primary intro-submit-approve pull-right" onclick="addElmToModal('#intro-approve-wrapper-{{$intro_id}}')">{{$approve}}</button>
+ </div>
+ <div class="clear"></div>
+ {{/if}}
+</div>
+<div class="intro-end"></div>
--- /dev/null
+
+{{include file="notifications/notify.tpl"}}
--- /dev/null
+
+{{include file="notifications/notify.tpl"}}
--- /dev/null
+<script type="text/javascript" src="../../frameworks/jquery-color/jquery.color.js"></script>
+<script type="text/javascript" src="../../js/mod_notifications.js"></script>
+
+<div class="generic-page-wrapper">
+ {{include file="section_title.tpl" title=$notif_header}}
+
+ {{if $tabs }}{{include file="common_tabs.tpl"}}{{/if}}
+
+ <div class="notif-network-wrapper">
+ {{* The "show ignored" link *}}
+ {{if $notif_show_lnk}}<a href="{{$notif_show_lnk.href}}" id="notifications-show-hide-link">{{$notif_show_lnk.text}}</a>{{/if}}
+
+ {{* The notifications *}}
+ {{if $notif_content}}
+ <ul class="notif-network-list media-list">
+ {{foreach $notif_content as $notification}}
+ <li>{{$notification nofilter}}</li>
+ {{/foreach}}
+ </ul>
+ {{/if}}
+
+ {{* If no notifications messages available *}}
+ {{if $notif_nocontent}}
+ <div class="notif_nocontent">{{$notif_nocontent}}</div>
+ {{/if}}
+ </div>
+
+ {{* The pager *}}
+ {{$notif_paginate nofilter}}
+</div>
--- /dev/null
+
+<div class="notif-item {{if !$item_seen}}unseen{{/if}} {{$item_label}} media">
+ <div class="notif-photo-wrapper media-object pull-left">
+ <a class="userinfo click-card" href="{{$item_url}}"><img src="{{$item_image}}" class="notif-image"></a>
+ </div>
+ <div class="notif-desc-wrapper media-body">
+ <a href="{{$item_link}}">
+ {{$item_text nofilter}}
+ <div><time class="notif-when time" data-toggle="tooltip" title="{{$item_when}}">{{$item_ago}}</time></div>
+ </a>
+ </div>
+</div>
--- /dev/null
+
+{{include file="notifications/notify.tpl"}}
--- /dev/null
+
+{{include file="notifications/intros.tpl"}}
\ No newline at end of file
+++ /dev/null
-
-{{include file="notify.tpl"}}
+++ /dev/null
-
-{{include file="notify.tpl"}}
+++ /dev/null
-
-{{include file="notify.tpl"}}
+++ /dev/null
-
-{{include file="notify.tpl"}}
+++ /dev/null
-
-{{include file="notify.tpl"}}
+++ /dev/null
-
-{{include file="notify.tpl"}}
+++ /dev/null
-
-{{include file="notify.tpl"}}
+++ /dev/null
-
-<div class="notif-item {{if !$item_seen}}unseen{{/if}} {{$item_label}} media">
- <div class="notif-photo-wrapper media-object pull-left">
- <a class="userinfo click-card" href="{{$item_url}}"><img src="{{$item_image}}" class="notif-image"></a>
- </div>
- <div class="notif-desc-wrapper media-body">
- <a href="{{$item_link}}">
- {{$item_text nofilter}}
- <div><time class="notif-when time" data-toggle="tooltip" title="{{$item_when}}">{{$item_ago}}</time></div>
- </a>
- </div>
-</div>
+++ /dev/null
-
-{{include file="intros.tpl"}}
\ No newline at end of file