Skip to content

Commit

Permalink
Updated to v6.1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Michieal authored Mar 6, 2022
1 parent 1de9bbb commit 4b95029
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions MarkNotification/ossn_com.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
function ossn_mark_notifications_init() {
//css
ossn_extend_view('css/ossn.default', 'css/marknotif');
//js
ossn_extend_view('js/opensource.socialnetwork', 'js/marknotif');
//pages
ossn_register_page('mark', 'ossn_notifications_page');
//actions
Expand Down Expand Up @@ -72,17 +74,17 @@ function notification_insert_custom_html($hook, $htype, $return, $params) {
$frag = $doc->createDocumentFragment();

//Mark the notification as read
$link = htmlspecialchars(ossn_site_url("action/mark/read?guid=" . $nguid, true));
$link = 'javascript:void(0);'; //htmlspecialchars(ossn_site_url("action/mark/read?guid=" . $nguid, true));
$notif_text = ossn_print('mark:notification:read');
$notif_title = ossn_print('mark:notification:read:title');
$data = "<a href='" . $link . "' class='apop-notif-read' title='" . $notif_title . "'>" . $notif_text . "</a>";
$data = "<a href='" . $link . "' class='apop-notif-read' OnClick='mnInstant(2, {$nguid})' title='" . $notif_title . "'>" . $notif_text . "</a>";
$frag->appendXml($data);

//Delete the notification.
$notif_text = ossn_print('mark:notification:delete');
$notif_title = ossn_print('mark:notification:delete:title');
$link = htmlspecialchars(ossn_site_url("action/mark/delete?guid={$nguid}", true));
$data = "<a href='" . $link . "' class='apop-notif-delete' title='" . $notif_title . "'>" . $notif_text . "</a>";
$link ='javascript:void(0);'; //htmlspecialchars(ossn_site_url("action/mark/delete?guid={$nguid}", true));
$data = "<a href='" . $link . "' class='apop-notif-delete' OnClick='mnInstant(1, {$nguid})' title='" . $notif_title . "'>" . $notif_text . "</a>";
$frag->appendXml($data);

/* //Mark the notification as unread
Expand Down
2 changes: 1 addition & 1 deletion MarkNotification/ossn_com.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<author_url>https://www.apophissoftware.com/</author_url>
<license>GNU General Public License v3</license>
<license_url>https://www.gnu.org/licenses/gpl-3.0.en.html</license_url>
<version>6.1.1.1</version>
<version>6.1.2.0</version>
<requires>
<type>ossn_version</type>
<version>6.1</version>
Expand Down

0 comments on commit 4b95029

Please sign in to comment.