{style} #console-notifications-wrapper { position: absolute; z-index: 100; display: block; } #console-notifications-wrapper .console_tooltip { opacity: 1; top: 22px !important; display: none; } #console-notifications-wrapper .ow_count_wrap { width: auto; } #console-notifications-wrapper .ow_count_wrap .ow_count { right: 0px; } #console-notifications-wrapper .ow_console_list li { margin: 0 0 4px; border: 1px solid #ececec; border-radius: 2px; } .ow_footer .ow_canvas .ow_page { padding: 20px 0; } .ow_footer .ow_canvas .ow_page .ow_remark_wrapper{ float:left; } .ow_footer .ow_canvas .ow_page .ow_powered_by{ float:right; line-height:15px; font-size:11px; } {/style}
{component class='BASE_CMP_Console'}
{$siteName} {add_content key='admin.site_panel_left_content'}
{if !empty($notifications)} {count($notifications)} {/if}
{block_decorator name="tooltip" addClass="console_tooltip ow_tooltip_top_left"}
{if !empty($notifications)}

{foreach from=$notifications item='notification'}
- {$notification.message}
{/foreach}

{else}
{text key="base+no_items"}
{/if}
{text key="admin+check_updates"}
{/block_decorator}
{add_content key='admin.site_panel_right_content'}
{if !empty($heading)}

# {$heading}

{/if}
{add_content key='admin.add_page_top_content'} {$content} {add_content key='admin.add_page_bottom_content'}
{decorator name='floatbox'} {script} // process main menu height var $mainLeftMenu = $("#main_left_menu > .ow_admin_menu"); if ( $mainLeftMenu.innerHeight() > $(window).innerHeight() ) { $mainLeftMenu.parent().removeClass("sticky"); } $(document).ready(function(){ // console var $tooltip = $("#console-notifications-wrapper .ow_tooltip"); var $consoleLink = $("#admin_console_update_link"); $consoleLink.on("click", function(e) { e.preventDefault(); // show the notifications if (!$tooltip.hasClass("active")) { $tooltip.addClass("active").show(); OW.addScroll("#console-notifications-wrapper .ow_console_list_wrapper"); return; } // hide the notifications $tooltip.removeClass("active").hide(); OW.removeScroll("#console-notifications-wrapper .ow_console_list_wrapper"); }); $(document).mouseup(function(e) { if ($(e.target).parents("#console-notifications-wrapper").length || $consoleLink.is(e.target)) { return; } if ($tooltip.is(":visible")) { $tooltip.removeClass("active").hide(); OW.removeScroll("#console-notifications-wrapper .ow_console_list_wrapper"); } }); }); {/script}