Files
Testing/templates/notifications1.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

1023 lines
48 KiB
Smarty

{include file='header.tpl'}
{literal}
<style>input[type=button], input[type=submit] {
border: none;
}</style>
<link rel="stylesheet" href="/sam/messages/Notifications.css">
<link rel="stylesheet" href="/sam/messages/results.css">
<link rel="stylesheet" href="/sam/messages/profiles.css">
<link rel="stylesheet" href="/sam/messages/messages_rev2.css?s=1">
<link rel="stylesheet" href="/sam/messages/mobile_account_tab.css">
{/literal}
<div class="notification-grid">
<div class="notification-filters">
<div class="notification-title">
<div class="title">
<h3>Notifications</h3>
<div id="badge" class="count">0</div>
</div>
<div class="notifications-mobile-filters"><button id=""><svg xmlns="http://www.w3.org/2000/svg" height="20" width="20" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M96 128C78.3 128 64 142.3 64 160C64 177.7 78.3 192 96 192L182.7 192C195 220.3 223.2 240 256 240C288.8 240 317 220.3 329.3 192L544 192C561.7 192 576 177.7 576 160C576 142.3 561.7 128 544 128L329.3 128C317 99.7 288.8 80 256 80C223.2 80 195 99.7 182.7 128L96 128zM96 288C78.3 288 64 302.3 64 320C64 337.7 78.3 352 96 352L342.7 352C355 380.3 383.2 400 416 400C448.8 400 477 380.3 489.3 352L544 352C561.7 352 576 337.7 576 320C576 302.3 561.7 288 544 288L489.3 288C477 259.7 448.8 240 416 240C383.2 240 355 259.7 342.7 288L96 288zM96 448C78.3 448 64 462.3 64 480C64 497.7 78.3 512 96 512L150.7 512C163 540.3 191.2 560 224 560C256.8 560 285 540.3 297.3 512L544 512C561.7 512 576 497.7 576 480C576 462.3 561.7 448 544 448L297.3 448C285 419.7 256.8 400 224 400C191.2 400 163 419.7 150.7 448L96 448z"/></svg></button></div>
<div class="notifications-mobile-filters-menu">
<div class="radiobutton">
<div class="checkbox_">
<label class="model_menu_radio">Friend Requests
<input type="radio" name="bodytypes">
<span class="radiocheck"></span>
</label>
</div>
<div class="checkbox_">
<label class="model_menu_radio"> Likes
<input type="radio" name="bodytypes">
<span class="radiocheck"></span>
</label>
</div>
<div class="checkbox_">
<label class="model_menu_radio"> Comments
<input type="radio" name="bodytypes">
<span class="radiocheck"></span>
</label>
</div>
<div class="checkbox_">
<label class="model_menu_radio"> Tagged
<input type="radio" name="bodytypes">
<span class="radiocheck"></span>
</label>
</div>
</div>
<div class="mobile-close">
<button class="notifications-close">✕</button>
</div>
<div class="mobile-buttons">
<button class="notifications-close">Submit</button>
</div>
</div>
</div>
<div class="desktop">
<div class="radiobutton">
<div class="checkbox_">
<label class="model_menu_radio">Friend Requests
<input type="radio" name="bodytypes">
<span class="radiocheck"></span>
</label>
</div>
<div class="checkbox_">
<label class="model_menu_radio"> Likes
<input type="radio" name="bodytypes">
<span class="radiocheck"></span>
</label>
</div>
<div class="checkbox_">
<label class="model_menu_radio"> Comments
<input type="radio" name="bodytypes">
<span class="radiocheck"></span>
</label>
</div>
<div class="checkbox_">
<label class="model_menu_radio"> Tagged
<input type="radio" name="bodytypes">
<span class="radiocheck"></span>
</label>
</div>
</div>
</div>
</div>
<section class="notifications" id="notifList" role="list">
<!-- liked posts -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-401">
<div class="notification-post"> <a href=""><img src="images/eg1.png" alt="user_image" ></a></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#4d4d4d" d="M305 151.1L320 171.8L335 151.1C360 116.5 400.2 96 442.9 96C516.4 96 576 155.6 576 229.1L576 231.7C576 343.9 436.1 474.2 363.1 529.9C350.7 539.3 335.5 544 320 544C304.5 544 289.2 539.4 276.9 529.9C203.9 474.2 64 343.9 64 231.7L64 229.1C64 155.6 123.6 96 197.1 96C239.8 96 280 116.5 305 151.1z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<a href=""><img src="images/eg2 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
<a href=""><img src="images/eg3 copy.png" alt=""></a>
<a href=""><img src="images/eg4 copy.png" alt=""></a>
<a href=""><img src="images/eg5 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
<a href=""><img src="images/eg2 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
<a href=""><img src="images/eg3 copy.png" alt=""></a>
<a href=""><img src="images/eg4 copy.png" alt=""></a>
<a href=""><img src="images/eg5 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
</div>
<div class="notification_title"><span class="name">Liked your post</span></div>
</div>
</article>
<!-- commented post -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-402">
<div class="notification-post"><img src="images/eg2.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#4d4d4d" d="M576 304C576 436.5 461.4 544 320 544C282.9 544 247.7 536.6 215.9 523.3L97.5 574.1C88.1 578.1 77.3 575.8 70.4 568.3C63.5 560.8 62 549.8 66.8 540.8L115.6 448.6C83.2 408.3 64 358.3 64 304C64 171.5 178.6 64 320 64C461.4 64 576 171.5 576 304z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<a href="https://bateworld.com/profile.php?user=Jacksalotr"><img src="images/eg1 copy.png" alt=""></a>
<div class="notification-comment">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Veniam, itaque est. Soluta rem dolor voluptas asperiores at iste deleniti explicabo veniam numquam excepturi quam, pariatur magni laudantium, beatae voluptatibus voluptates.Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus fugiat architecto, nemo beatae omnis expedita non distinctio aperiam ab magni?
</div>
</div>
<div class="notification_title"><span class="name">Commented on your post</span></div>
</div>
</article>
<!-- tagged post -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-403">
<div class="notification-post"><img src="images/eg3.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M96.5 160L96.5 309.5C96.5 326.5 103.2 342.8 115.2 354.8L307.2 546.8C332.2 571.8 372.7 571.8 397.7 546.8L547.2 397.3C572.2 372.3 572.2 331.8 547.2 306.8L355.2 114.8C343.2 102.7 327 96 310 96L160.5 96C125.2 96 96.5 124.7 96.5 160zM208.5 176C226.2 176 240.5 190.3 240.5 208C240.5 225.7 226.2 240 208.5 240C190.8 240 176.5 225.7 176.5 208C176.5 190.3 190.8 176 208.5 176z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<div class="notification-comment">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Veniam, itaque est. Soluta rem dolor voluptas asperiores at iste deleniti explicabo veniam numquam excepturi quam, pariatur magni laudantium, beatae voluptatibus voluptates.Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus fugiat architecto, nemo beatae omnis expedita non distinctio aperiam ab magni?
</div>
</div>
<div class="notification_title"><span class="name"><a href="https://bateworld.com/profile.php?user=Jacksalotr">Jacksalotr</a> Tagged you in a post</span></div>
</div>
</article>
<!-- Freind Request -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-404">
<div class="notification-post"><img src="images/eg4.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M136 192C136 125.7 189.7 72 256 72C322.3 72 376 125.7 376 192C376 258.3 322.3 312 256 312C189.7 312 136 258.3 136 192zM48 546.3C48 447.8 127.8 368 226.3 368L285.7 368C384.2 368 464 447.8 464 546.3C464 562.7 450.7 576 434.3 576L77.7 576C61.3 576 48 562.7 48 546.3zM544 160C557.3 160 568 170.7 568 184L568 232L616 232C629.3 232 640 242.7 640 256C640 269.3 629.3 280 616 280L568 280L568 328C568 341.3 557.3 352 544 352C530.7 352 520 341.3 520 328L520 280L472 280C458.7 280 448 269.3 448 256C448 242.7 458.7 232 472 232L520 232L520 184C520 170.7 530.7 160 544 160z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<div class="notification-text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, ipsa! Lorem, ipsum dolor sit amet consectetur adipisicing elit. Animi impedit, nihil aliquid aliquam quidem assumenda delectus. Rerum, maxime quas. Culpa recusandae unde perferendis inventore saepe!
</div>
</div>
<div class="notification_title"><span class="name"><a href="https://bateworld.com/profile.php?user=Jacksalotr">Jacksalotr</a> - Sent you a friend request</span></div>
</div>
<div class="notification-friends">
<button class="confirm-btn"><a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?user=ThatBiGuy&amp;confirm=1">Confirm </a></button>
<button class="remove-btn"><a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?task=reject&amp;user=ThatBiGuy">Remove </a></button>
</div>
</article>
<!-- liked posts -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-405">
<div class="notification-post"> <a href=""><img src="images/eg1.png" alt="user_image" ></a></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M305 151.1L320 171.8L335 151.1C360 116.5 400.2 96 442.9 96C516.4 96 576 155.6 576 229.1L576 231.7C576 343.9 436.1 474.2 363.1 529.9C350.7 539.3 335.5 544 320 544C304.5 544 289.2 539.4 276.9 529.9C203.9 474.2 64 343.9 64 231.7L64 229.1C64 155.6 123.6 96 197.1 96C239.8 96 280 116.5 305 151.1z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<a href=""><img src="images/eg2 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
<a href=""><img src="images/eg3 copy.png" alt=""></a>
<a href=""><img src="images/eg4 copy.png" alt=""></a>
<a href=""><img src="images/eg5 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
</div>
<div class="notification_title"><span class="name">Liked your post</span></div>
</div>
</article>
<!-- commented post -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-406">
<div class="notification-post"><img src="images/eg2.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M576 304C576 436.5 461.4 544 320 544C282.9 544 247.7 536.6 215.9 523.3L97.5 574.1C88.1 578.1 77.3 575.8 70.4 568.3C63.5 560.8 62 549.8 66.8 540.8L115.6 448.6C83.2 408.3 64 358.3 64 304C64 171.5 178.6 64 320 64C461.4 64 576 171.5 576 304z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<a href="https://bateworld.com/profile.php?user=Jacksalotr"><img src="images/eg1 copy.png" alt=""></a>
<div class="notification-comment">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Veniam, itaque est. Soluta rem dolor voluptas asperiores at iste deleniti explicabo veniam numquam excepturi quam, pariatur magni laudantium, beatae voluptatibus voluptates.Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus fugiat architecto, nemo beatae omnis expedita non distinctio aperiam ab magni?
</div>
</div>
<div class="notification_title"><span class="name">Commented on your post</span></div>
</div>
</article>
<!-- tagged post -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-407">
<div class="notification-post"><img src="images/eg3.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M96.5 160L96.5 309.5C96.5 326.5 103.2 342.8 115.2 354.8L307.2 546.8C332.2 571.8 372.7 571.8 397.7 546.8L547.2 397.3C572.2 372.3 572.2 331.8 547.2 306.8L355.2 114.8C343.2 102.7 327 96 310 96L160.5 96C125.2 96 96.5 124.7 96.5 160zM208.5 176C226.2 176 240.5 190.3 240.5 208C240.5 225.7 226.2 240 208.5 240C190.8 240 176.5 225.7 176.5 208C176.5 190.3 190.8 176 208.5 176z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<div class="notification-comment">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Veniam, itaque est. Soluta rem dolor voluptas asperiores at iste deleniti explicabo veniam numquam excepturi quam, pariatur magni laudantium, beatae voluptatibus voluptates.Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus fugiat architecto, nemo beatae omnis expedita non distinctio aperiam ab magni?
</div>
</div>
<div class="notification_title"><span class="name"><a href="https://bateworld.com/profile.php?user=Jacksalotr">Jacksalotr</a> Tagged you in a post</span></div>
</div>
</article>
<!-- Freind Request -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-408">
<div class="notification-post"><img src="images/eg4.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M136 192C136 125.7 189.7 72 256 72C322.3 72 376 125.7 376 192C376 258.3 322.3 312 256 312C189.7 312 136 258.3 136 192zM48 546.3C48 447.8 127.8 368 226.3 368L285.7 368C384.2 368 464 447.8 464 546.3C464 562.7 450.7 576 434.3 576L77.7 576C61.3 576 48 562.7 48 546.3zM544 160C557.3 160 568 170.7 568 184L568 232L616 232C629.3 232 640 242.7 640 256C640 269.3 629.3 280 616 280L568 280L568 328C568 341.3 557.3 352 544 352C530.7 352 520 341.3 520 328L520 280L472 280C458.7 280 448 269.3 448 256C448 242.7 458.7 232 472 232L520 232L520 184C520 170.7 530.7 160 544 160z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<div class="notification-text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, ipsa! Lorem, ipsum dolor sit amet consectetur adipisicing elit. Animi impedit, nihil aliquid aliquam quidem assumenda delectus. Rerum, maxime quas. Culpa recusandae unde perferendis inventore saepe!
</div>
</div>
<div class="notification_title"><span class="name"><a href="https://bateworld.com/profile.php?user=Jacksalotr">Jacksalotr</a> - Sent you a friend request</span></div>
</div>
<div class="notification-friends">
<button class="confirm-btn"><a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?user=ThatBiGuy&amp;confirm=1">Confirm </a></button>
<button class="remove-btn"><a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?task=reject&amp;user=ThatBiGuy">Remove </a></button>
</div>
</article>
<!-- liked posts -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-409">
<div class="notification-post"> <a href=""><img src="images/eg1.png" alt="user_image" ></a></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M305 151.1L320 171.8L335 151.1C360 116.5 400.2 96 442.9 96C516.4 96 576 155.6 576 229.1L576 231.7C576 343.9 436.1 474.2 363.1 529.9C350.7 539.3 335.5 544 320 544C304.5 544 289.2 539.4 276.9 529.9C203.9 474.2 64 343.9 64 231.7L64 229.1C64 155.6 123.6 96 197.1 96C239.8 96 280 116.5 305 151.1z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<a href=""><img src="images/eg2 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
<a href=""><img src="images/eg3 copy.png" alt=""></a>
<a href=""><img src="images/eg4 copy.png" alt=""></a>
<a href=""><img src="images/eg5 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
</div>
<div class="notification_title"><span class="name">Liked your post</span></div>
</div>
</article>
<!-- commented post -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-410">
<div class="notification-post"><img src="images/eg2.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M576 304C576 436.5 461.4 544 320 544C282.9 544 247.7 536.6 215.9 523.3L97.5 574.1C88.1 578.1 77.3 575.8 70.4 568.3C63.5 560.8 62 549.8 66.8 540.8L115.6 448.6C83.2 408.3 64 358.3 64 304C64 171.5 178.6 64 320 64C461.4 64 576 171.5 576 304z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<a href="https://bateworld.com/profile.php?user=Jacksalotr"><img src="images/eg1 copy.png" alt=""></a>
<div class="notification-comment">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Veniam, itaque est. Soluta rem dolor voluptas asperiores at iste deleniti explicabo veniam numquam excepturi quam, pariatur magni laudantium, beatae voluptatibus voluptates.Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus fugiat architecto, nemo beatae omnis expedita non distinctio aperiam ab magni?
</div>
</div>
<div class="notification_title"><span class="name">Commented on your post</span></div>
</div>
</article>
<!-- tagged post -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-411">
<div class="notification-post"><img src="images/eg3.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M96.5 160L96.5 309.5C96.5 326.5 103.2 342.8 115.2 354.8L307.2 546.8C332.2 571.8 372.7 571.8 397.7 546.8L547.2 397.3C572.2 372.3 572.2 331.8 547.2 306.8L355.2 114.8C343.2 102.7 327 96 310 96L160.5 96C125.2 96 96.5 124.7 96.5 160zM208.5 176C226.2 176 240.5 190.3 240.5 208C240.5 225.7 226.2 240 208.5 240C190.8 240 176.5 225.7 176.5 208C176.5 190.3 190.8 176 208.5 176z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<div class="notification-comment">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Veniam, itaque est. Soluta rem dolor voluptas asperiores at iste deleniti explicabo veniam numquam excepturi quam, pariatur magni laudantium, beatae voluptatibus voluptates.Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus fugiat architecto, nemo beatae omnis expedita non distinctio aperiam ab magni?
</div>
</div>
<div class="notification_title"><span class="name"><a href="https://bateworld.com/profile.php?user=Jacksalotr">Jacksalotr</a> Tagged you in a post</span></div>
</div>
</article>
<!-- Freind Request -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-412">
<div class="notification-post"><img src="images/eg4.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M136 192C136 125.7 189.7 72 256 72C322.3 72 376 125.7 376 192C376 258.3 322.3 312 256 312C189.7 312 136 258.3 136 192zM48 546.3C48 447.8 127.8 368 226.3 368L285.7 368C384.2 368 464 447.8 464 546.3C464 562.7 450.7 576 434.3 576L77.7 576C61.3 576 48 562.7 48 546.3zM544 160C557.3 160 568 170.7 568 184L568 232L616 232C629.3 232 640 242.7 640 256C640 269.3 629.3 280 616 280L568 280L568 328C568 341.3 557.3 352 544 352C530.7 352 520 341.3 520 328L520 280L472 280C458.7 280 448 269.3 448 256C448 242.7 458.7 232 472 232L520 232L520 184C520 170.7 530.7 160 544 160z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<div class="notification-text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Tenetur, ipsa! Lorem, ipsum dolor sit amet consectetur adipisicing elit. Animi impedit, nihil aliquid aliquam quidem assumenda delectus. Rerum, maxime quas. Culpa recusandae unde perferendis inventore saepe!
</div>
</div>
<div class="notification_title"><span class="name"><a href="https://bateworld.com/profile.php?user=Jacksalotr">Jacksalotr</a> - Sent you a friend request</span></div>
</div>
<div class="notification-friends">
<button class="confirm-btn"><a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?user=ThatBiGuy&amp;confirm=1">Confirm </a></button>
<button class="remove-btn"><a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?task=reject&amp;user=ThatBiGuy">Remove </a></button>
</div>
</article>
<!-- liked posts -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-413">
<div class="notification-post"> <a href=""><img src="images/eg1.png" alt="user_image" ></a></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M305 151.1L320 171.8L335 151.1C360 116.5 400.2 96 442.9 96C516.4 96 576 155.6 576 229.1L576 231.7C576 343.9 436.1 474.2 363.1 529.9C350.7 539.3 335.5 544 320 544C304.5 544 289.2 539.4 276.9 529.9C203.9 474.2 64 343.9 64 231.7L64 229.1C64 155.6 123.6 96 197.1 96C239.8 96 280 116.5 305 151.1z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<a href=""><img src="images/eg2 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
<a href=""><img src="images/eg3 copy.png" alt=""></a>
<a href=""><img src="images/eg4 copy.png" alt=""></a>
<a href=""><img src="images/eg5 copy.png" alt=""></a>
<a href=""><img src="images/eg1 copy.png" alt=""></a>
</div>
<div class="notification_title"><span class="name">Liked your post</span></div>
</div>
</article>
<!-- commented post -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-414">
<div class="notification-post"><img src="images/eg2.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M576 304C576 436.5 461.4 544 320 544C282.9 544 247.7 536.6 215.9 523.3L97.5 574.1C88.1 578.1 77.3 575.8 70.4 568.3C63.5 560.8 62 549.8 66.8 540.8L115.6 448.6C83.2 408.3 64 358.3 64 304C64 171.5 178.6 64 320 64C461.4 64 576 171.5 576 304z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<a href="https://bateworld.com/profile.php?user=Jacksalotr"><img src="images/eg1 copy.png" alt=""></a>
<div class="notification-comment">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Veniam, itaque est. Soluta rem dolor voluptas asperiores at iste deleniti explicabo veniam numquam excepturi quam, pariatur magni laudantium, beatae voluptatibus voluptates.Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus fugiat architecto, nemo beatae omnis expedita non distinctio aperiam ab magni?
</div>
</div>
<div class="notification_title"><span class="name">Commented on your post</span></div>
</div>
</article>
<!-- tagged post -->
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-415">
<div class="notification-post"><img src="images/eg3.png" alt="user_image" ></div>
<div class="notification-icon"><svg xmlns="http://www.w3.org/2000/svg" height="35" width="35" viewBox="0 0 640 640"><!--!Font Awesome Free v7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2025 Fonticons, Inc.--><path fill="#ffffff" d="M96.5 160L96.5 309.5C96.5 326.5 103.2 342.8 115.2 354.8L307.2 546.8C332.2 571.8 372.7 571.8 397.7 546.8L547.2 397.3C572.2 372.3 572.2 331.8 547.2 306.8L355.2 114.8C343.2 102.7 327 96 310 96L160.5 96C125.2 96 96.5 124.7 96.5 160zM208.5 176C226.2 176 240.5 190.3 240.5 208C240.5 225.7 226.2 240 208.5 240C190.8 240 176.5 225.7 176.5 208C176.5 190.3 190.8 176 208.5 176z"/></svg></div>
<div class="notification-info">
<div class="notification-users">
<div class="notification-comment">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Veniam, itaque est. Soluta rem dolor voluptas asperiores at iste deleniti explicabo veniam numquam excepturi quam, pariatur magni laudantium, beatae voluptatibus voluptates.Lorem ipsum dolor sit amet consectetur adipisicing elit. Doloribus fugiat architecto, nemo beatae omnis expedita non distinctio aperiam ab magni?
</div>
</div>
<div class="notification_title"><span class="name"><a href="https://bateworld.com/profile.php?user=Jacksalotr">Jacksalotr</a> Tagged you in a post</span></div>
</div>
</article>
<!-- Freind Request -->
{foreach from=$notifys.notifys item=notify_info}
<article class="notification unread transition-slow" role="listitem" tabindex="0" data-id="n-416">
<div class="notification-post"><img src="images/eg4.png" alt="user_image" ></div>
<div class="notification-icon" style="font-size:22px; color:#4d4d4d;">
{$notify_info.icon}
</div>
<div class="notification-info">
<div class="notification-users">
<div class="notification-text">
{lang_sprintf id=$notify_info.notify_desc 1=$notify_info.notify_total 2=$notify_info.notify_text.0}
</div>
</div>
<div class="notification_title"><span class="name"><a href="https://bateworld.com/profile.php?user=Jacksalotr">Jacksalotr</a> - Sent you a friend request</span></div>
</div>
<div class="notification-friends">
<button class="confirm-btn"><a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?user=ThatBiGuy&amp;confirm=1">Confirm </a></button>
<button class="remove-btn"><a data-toggle="modal" data-target="#myModal" href="user_friends_manage.php?task=reject&amp;user=ThatBiGuy">Remove </a></button>
</div>
</article>
<li class="notify" id="notify_{$notify_info.notifytype_id}_{$notify_info.notify_grouped}_2"><button type="button" class="main-bg-color alt-text-color orangebg xtoclose" onclick="SocialEngine.Viewer.userNotifyDelete('{$notify_info.notifytype_id}','{$notify_info.notify_grouped}'); jQuery('#notify_{$notify_info.notifytype_id}_{$notify_info.notify_grouped}_2').fadeOut('slow');"><i class="fa fa-times"></i></button>
<img src='./images/icons/{$notify_info.notify_icon}' border='0' class='icon' alt='' />
<a href="{$notify_info.notify_url}" class="notify_desc">{lang_sprintf id=$notify_info.notify_desc 1=$notify_info.notify_total 2=$notify_info.notify_text.0}</a>
</li>
{/foreach}
</section>
</div>
<div id="contentlist">
Click the X next to the notification to remove it<br>
<br>
<ul class="notifys" style="list-style-type:none;">
{foreach from=$notifys.notifys item=notify_info}
<li class="notify" id="notify_{$notify_info.notifytype_id}_{$notify_info.notify_grouped}_2"><button type="button" class="main-bg-color alt-text-color orangebg xtoclose" onclick="SocialEngine.Viewer.userNotifyDelete('{$notify_info.notifytype_id}','{$notify_info.notify_grouped}'); jQuery('#notify_{$notify_info.notifytype_id}_{$notify_info.notify_grouped}_2').fadeOut('slow');"><i class="fa fa-times"></i></button>
<img src='./images/icons/{$notify_info.notify_icon}' border='0' class='icon' alt='' />
<a href="{$notify_info.notify_url}" class="notify_desc">{lang_sprintf id=$notify_info.notify_desc 1=$notify_info.notify_total 2=$notify_info.notify_text.0}</a>
</li>
{/foreach}
</ul>
{if SE_DEBUG1}
<ul class="notifys" style="list-style-type:none;">
{foreach from=$notifys_old.notifys item=notify_info}
<li class="notify" id="notify_{$notify_info.notifytype_id}_{$notify_info.notify_grouped}_2"><button type="button" class="main-bg-color alt-text-color orangebg xtoclose" onclick="SocialEngine.Viewer.userNotifyDelete('{$notify_info.notifytype_id}','{$notify_info.notify_grouped}'); jQuery('#notify_{$notify_info.notifytype_id}_{$notify_info.notify_grouped}_2').fadeOut('slow');"><i class="fa fa-times"></i></button>
<img src='./images/icons/{$notify_info.notify_icon}' border='0' class='icon' alt='' />
<a href="{$notify_info.notify_url}" class="notify_desc">{lang_sprintf id=$notify_info.notify_desc 1=$notify_info.notify_total 2=$notify_info.notify_text.0}</a>
</li>
{/foreach}
</ul>
{/if}
</div>
{literal}
<!-- side menu modal -->
<script>
document.addEventListener('DOMContentLoaded', () => {
const pfpBtn = document.querySelector('.mobile-account-pfp');
const accountModal = document.querySelector('.mobile-account');
if (!pfpBtn || !accountModal) return;
// Toggle modal on profile click
pfpBtn.addEventListener('click', (e) => {
e.stopPropagation();
accountModal.classList.toggle('show');
});
// Prevent closing when clicking inside the modal
accountModal.addEventListener('click', (e) => {
e.stopPropagation();
});
// Close when clicking anywhere else
document.addEventListener('click', () => {
accountModal.classList.remove('show');
});
// Optional: close if resized above mobile width
window.addEventListener('resize', () => {
if (window.innerWidth > 768) {
accountModal.classList.remove('show');
}
});
});
</script>
<!-- fade item from unread to read -->
<script>
(function () {
"use strict";
// --- Config / DOM refs ---
const STORAGE_KEY = "readNotifs_viewSeen:v1";
const list = document.getElementById("notifList");
const markAllBtn = document.getElementById("markAll");
// Support multiple badges (+ legacy #badge)
const badges = (() => {
const many = Array.from(document.querySelectorAll("[data-unread-badge]"));
const legacy = document.getElementById("badge");
if (legacy) many.push(legacy);
return many;
})();
// Support either ".notifications" or the misspelt ".notfications"
const notifIconWrapper = document.querySelector(
".mobile-notifications .notifications, .mobile-notifications .notfications"
);
if (!list) {
console.warn("[notifications] Missing #notifList in DOM.");
return;
}
// --- Persistence helpers ---
const getRead = () => {
try { return new Set(JSON.parse(localStorage.getItem(STORAGE_KEY) || "[]" )); }
catch { return new Set(); }
};
const saveRead = (set) => localStorage.setItem(STORAGE_KEY, JSON.stringify([...set]));
const readSet = getRead();
// --- Collect items ---
const items = Array.from(list.querySelectorAll(".notification"));
// --- Restore already-read (no animation on restore) ---
items.forEach(el => {
if (readSet.has(el.dataset.id)) makeRead(el, { persist: false, animate: false });
});
// --- IO to mark as read when sufficiently visible ---
const io = new IntersectionObserver((entries) => {
entries.forEach(entry => {
const el = entry.target;
if (!el.classList.contains("unread")) { io.unobserve(el); return; }
if (entry.isIntersecting && entry.intersectionRatio >= 0.6) {
void el.offsetWidth; // ensure red state committed before flip
makeRead(el, { persist: true, animate: true });
io.unobserve(el);
}
});
}, { threshold: [0, 0.6, 1], root: null, rootMargin: "0px" });
// Observe only still-unread + not yet restored from storage
items
.filter(el => el.classList.contains("unread") && !readSet.has(el.dataset.id))
.forEach(el => io.observe(el));
// --- Interactions: click / keyboard ---
list.addEventListener("click", (e) => {
const card = e.target.closest(".notification");
if (!card) return;
if (e.target.classList.contains("btn-unread")) {
makeUnread(card, { persist: true });
io.observe(card); // re-observe so it will fade next time
} else {
makeRead(card, { persist: true, animate: true });
io.unobserve(card);
}
});
list.addEventListener("keydown", (e) => {
if ((e.key === "Enter" || e.key === " ") && e.target.classList.contains("notification")) {
e.preventDefault();
makeRead(e.target, { persist: true, animate: true });
io.unobserve(e.target);
}
});
if (markAllBtn) {
markAllBtn.addEventListener("click", () => {
items.forEach(el => makeRead(el, { persist: true, animate: false }));
});
}
// --- Badge + icon updater ---
function updateBadgeAndIcon() {
const unreadCount = list.querySelectorAll(".notification.unread").length;
// Update all mirrored badges
badges.forEach(badgeEl => {
badgeEl.textContent = unreadCount;
badgeEl.style.display = unreadCount ? "inline-grid" : "none";
badgeEl.setAttribute("aria-label", `${unreadCount} unread notifications`);
});
// Toggle mobile notifications icon (unread vs read)
if (notifIconWrapper) {
// When >0 unreads, keep .has-unread ON; when 0, remove it
notifIconWrapper.classList.toggle("has-unread", unreadCount > 0);
}
}
// --- State transitions ---
function makeRead(el, { persist = true, animate = true } = {}) {
if (!el.classList.contains("unread")) return;
if (animate && !el.classList.contains("transition-slow")) {
el.classList.add("transition-slow"); // ensure the 5s fade class is present
}
if (!animate) {
el.classList.remove("transition-slow"); // restore instantly
}
el.classList.remove("unread");
el.classList.add("read");
if (!animate) {
// Re-enable transition for future interactions on next frame
requestAnimationFrame(() => el.classList.add("transition-slow"));
}
if (persist) {
readSet.add(el.dataset.id);
saveRead(readSet);
}
updateBadgeAndIcon();
}
function makeUnread(el, { persist = true } = {}) {
el.classList.remove("read");
el.classList.add("unread");
if (persist) {
readSet.delete(el.dataset.id);
saveRead(readSet);
}
updateBadgeAndIcon();
}
// --- Initial render ---
updateBadgeAndIcon();
})();
</script>
<!-- drop down menu for likes -->
<script>
document.addEventListener("DOMContentLoaded", () => {
const MAX_VISIBLE = 5;
const setupUserContainer = (container) => {
const links = Array.from(container.querySelectorAll("a"));
if (links.length <= MAX_VISIBLE) return;
// Hide all after the 5th
for (let i = MAX_VISIBLE; i < links.length; i++) {
links[i].classList.add("hidden");
}
// Create the inline toggle button
const btn = document.createElement("button");
btn.type = "button";
btn.className = "expand-toggle";
btn.setAttribute("aria-expanded", "false");
btn.textContent = `+${links.length - MAX_VISIBLE}`;
// Helpers to position the button
const placeButtonAfterFifth = () => {
const currentLinks = Array.from(container.querySelectorAll("a"));
const ref = currentLinks[MAX_VISIBLE]; // node after the 5th <a>
if (ref) container.insertBefore(btn, ref);
else container.appendChild(btn);
};
const placeButtonAtEnd = () => {
container.appendChild(btn);
};
// Initial placement (right after the 5th avatar)
placeButtonAfterFifth();
const expand = () => {
const currentLinks = Array.from(container.querySelectorAll("a"));
currentLinks.forEach(a => a.classList.remove("hidden"));
btn.textContent = "Show Less";
btn.setAttribute("aria-expanded", "true");
// Move the button to the end when expanded
placeButtonAtEnd();
};
const reduce = () => {
const currentLinks = Array.from(container.querySelectorAll("a"));
for (let i = MAX_VISIBLE; i < currentLinks.length; i++) {
currentLinks[i].classList.add("hidden");
}
btn.textContent = `+${currentLinks.length - MAX_VISIBLE}`;
btn.setAttribute("aria-expanded", "false");
// Return the button to the 6th position
placeButtonAfterFifth();
};
btn.addEventListener("click", () => {
const expanded = btn.getAttribute("aria-expanded") === "true";
expanded ? reduce() : expand();
});
};
document.querySelectorAll(".notification-users").forEach(setupUserContainer);
});
</script>
<!-- friend menu -->
<script>
document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll('.notification').forEach(notification => {
const friendsSection = notification.querySelector('.notification-friends');
if (!friendsSection) return;
const confirmBtn = friendsSection.querySelector('.confirm-btn');
const removeBtn = friendsSection.querySelector('.remove-btn');
const confirmLink = confirmBtn ? confirmBtn.querySelector('a') : null;
const removeLink = removeBtn ? removeBtn.querySelector('a') : null;
if (!confirmLink || !removeLink) return;
// Helper function: update UI based on friendship status
function setFriendState(isFriends) {
if (isFriends) {
// Hide the confirm button
if (confirmBtn) confirmBtn.style.display = 'none';
// Change "Remove" → "Send Message"
removeLink.textContent = 'Send Message';
removeLink.setAttribute('href', 'messages.php?to=ThatBiGuy'); // ← adjust dynamically if needed
removeLink.setAttribute('data-toggle', ''); // remove modal behaviour
removeLink.setAttribute('data-target', '');
notification.dataset.friends = 'true';
// Optional visual feedback
notification.classList.add('friend-confirmed');
} else {
// Reset to initial state
if (confirmBtn) confirmBtn.style.display = 'inline-block';
removeLink.textContent = 'Remove';
removeLink.setAttribute('href', 'user_friends_manage.php?task=reject&user=ThatBiGuy');
removeLink.setAttribute('data-toggle', 'modal');
removeLink.setAttribute('data-target', '#myModal');
notification.dataset.friends = 'false';
notification.classList.remove('friend-confirmed');
}
}
// Initial state setup
setFriendState(notification.dataset.friends === 'true');
// Confirm → switch to "Send Message"
confirmLink.addEventListener('click', function (e) {
e.preventDefault();
e.stopPropagation();
// TODO: handle backend confirmation call here if desired
setFriendState(true);
});
// Optional: clicking "Send Message" resets back (for testing/demo)
removeLink.addEventListener('click', function (e) {
const isFriends = notification.dataset.friends === 'true';
if (isFriends) {
// You can remove this preventDefault() if you want it to open a message page
// e.preventDefault();
// e.stopPropagation();
// Example: you could redirect manually:
// window.location.href = removeLink.href;
}
});
});
});
</script>
</div>
<!-- messages drop down -->
<script>
const filterBtn = document.querySelector(".notifications-mobile-filters");
const menu = document.querySelector(".notifications-mobile-filters-menu");
const closeBtn = document.querySelector(".notifications-close");
filterBtn.addEventListener("click", () => {
menu.classList.add("active-mobile");
});
closeBtn.addEventListener("click", () => {
menu.classList.remove("active-mobile");
});
</script>
<script>
(function () {
function initPortalDropdown({ btnId, menuId, placement = 'bottom-end', offsetX = 0, offsetY = 8 }) {
const btn = document.getElementById(btnId);
const menu = document.getElementById(menuId);
if (!btn || !menu) return;
// Move menu to <body> once
if (menu.parentNode !== document.body) document.body.appendChild(menu);
// Ensure fixed + z-index
menu.style.position = 'fixed';
if (!menu.style.zIndex) menu.style.zIndex = 2000;
function measureMenu() {
const hidden = !menu.classList.contains('show');
if (hidden) {
menu.style.visibility = 'hidden';
menu.style.display = 'block';
}
const rect = menu.getBoundingClientRect();
if (hidden) {
menu.style.display = '';
menu.style.visibility = '';
}
return rect;
}
function positionMenu() {
const br = btn.getBoundingClientRect();
const mr = measureMenu();
let top, left;
switch (placement) {
case 'bottom-start':
top = br.bottom + offsetY;
left = br.left + offsetX;
menu.style.transformOrigin = 'top left';
break;
case 'bottom-end': // right aligned under button
top = br.bottom + offsetY;
left = br.right - mr.width + offsetX;
menu.style.transformOrigin = 'top right';
break;
case 'top-start':
top = br.top - mr.height - offsetY;
left = br.left + offsetX;
menu.style.transformOrigin = 'bottom left';
break;
case 'top-end':
top = br.top - mr.height - offsetY;
left = br.right - mr.width + offsetX;
menu.style.transformOrigin = 'bottom right';
break;
default:
top = br.bottom + offsetY;
left = br.left + offsetX;
menu.style.transformOrigin = 'top left';
}
// keep on-screen (simple clamps)
const minLeft = 8;
const maxLeft = Math.max(8, window.innerWidth - mr.width - 8);
left = Math.min(maxLeft, Math.max(minLeft, left));
const minTop = 8;
const maxTop = Math.max(8, window.innerHeight - mr.height - 8);
top = Math.min(maxTop, Math.max(minTop, top));
menu.style.top = `${Math.round(top)}px`;
menu.style.left = `${Math.round(left)}px`;
}
function openMenu() {
menu.classList.add('show');
positionMenu();
}
function closeMenu() {
menu.classList.remove('show');
}
// Toggle this menu only
btn.addEventListener('click', (e) => {
e.stopPropagation();
menu.classList.contains('show') ? closeMenu() : openMenu();
});
// Close this menu when clicking outside of BOTH its button and panel
window.addEventListener('click', (e) => {
if (!menu.contains(e.target) && !btn.contains(e.target)) closeMenu();
});
// Keep aligned on scroll/resize/orientation
['resize', 'scroll', 'orientationchange'].forEach(evt => {
window.addEventListener(evt, () => {
if (menu.classList.contains('show')) positionMenu();
});
});
// Escape key closes only this menu
window.addEventListener('keydown', (e) => {
if (e.key === 'Escape' && menu.classList.contains('show')) closeMenu();
});
return { openMenu, closeMenu, positionMenu };
}
// Initialise BOTH dropdowns
window._messagesDD = initPortalDropdown({
btnId: 'messagesBtn',
menuId: 'messagesMenu',
placement: 'bottom-end', // right-align under button
offsetY: 8
});
window._notificationsDD = initPortalDropdown({
btnId: 'notificationsBtn',
menuId: 'notificationsMenu',
placement: 'bottom-end',
offsetY: 8
});
})();
</script>
{/literal}
{include file='footer.tpl'}