<li class="dropdown js_live-notifications">
    <a href="#" data-toggle="dropdown" data-display="static">
        <i class="fa fa-bell fa-lg"></i>
        <span class="label {if $user.live_notifications_counter == 0}hidden{/if}">{$user.live_notifications_counter}</span>
    </a>
    <div class="dropdown-menu dropdown-widget with-arrow js_dropdown-keepopen">
        <div class="dropdown-widget-header">
            <span class="title">Notifications</span>
            <label class="switch sm pull-right flip" for="notifications_sound">
                <input type="checkbox" class="js_notifications-sound-toggle" name="notifications_sound" id="notifications_sound" {if $user.notification_sound}checked{/if}>
                <span class="slider round"></span>
            </label>
            <div class="pull-right flip mr5 fw-normal">
                Alert Sound
            </div>
        </div>
        <div class="dropdown-widget-body">
            <div class="js_scroller" style="height: 280px;">
                {if $user_notifications > 0}
                    <ul>
                        {foreach $user_notifications as $notification}
                            {include file='_partials/__feeds_notification.tpl'}
                        {/foreach}
                    </ul>
                {else}
                    <p class="text-center text-secondary mt10">
                        No notifications
                    </p>
                {/if}
            </div>
        </div>
        <a class="dropdown-widget-footer" href="{$base_uri}/notifications">See All</a>
    </div>
</li>