<?php


event_bind('mw_admin_settings_menu', 'mw_print_admin_updates_settings_link');

function mw_print_admin_updates_settings_link() {
	$update_channel = Config::get('microweber.update_channel');
	if('disabled' == $update_channel) {
		return;
	}

	$active = url_param('view');
	$cls = '';
	if ($active == 'comments') {
		$cls = ' class="active" ';
	}
	$notif_html = '';
$mname = module_name_encode('updates');
	print "<li><a class=\"item-".$mname."\" href=\"#option_group=".$mname."\"><span class=\"mai-thunder\"></span><strong>" . _e("Updates", true) . "</strong></a></li>";

	//$notif_count = mw()->notifications_manager->get('module=comments&is_read=0&count=1');
	/*if ($notif_count > 0) {
		$notif_html = '<sup class="mw-notif-bubble">' . $notif_count . '</sup>';
	}*/
	//print '<li' . $cls . '><a href="' . admin_url() . 'view:comments"><span class="ico icomment">' . $notif_html . '</span><span>Comments</span></a></li>';
}



