Browse Source

remove obsolete sign pixmaps

Andrew Dolgov 2 years ago
parent
commit
3851a4b2ff
5 changed files with 7 additions and 14 deletions
  1. BIN
      images/sign_excl.png
  2. BIN
      images/sign_info.png
  3. BIN
      images/sign_quest.png
  4. 6 13
      include/functions.php
  5. 1 1
      include/login_form.php

BIN
images/sign_excl.png


BIN
images/sign_info.png


BIN
images/sign_quest.png


+ 6 - 13
include/functions.php

@@ -471,36 +471,29 @@
 	}
 
 	function format_warning($msg, $id = "") {
-		global $link;
-		return "<div class=\"warning\" id=\"$id\">
-			<img src=\"".theme_image($link, "images/sign_excl.png")."\">$msg</div>";
+		return "<div class=\"alert alert-warning\" id=\"$id\">$msg</div>";
 	}
 
 	function format_notice($msg) {
-		global $link;
-		return "<div class=\"notice\" id=\"$id\">
-			<img src=\"".theme_image($link, "images/sign_info.png")."\">$msg</div>";
+		return "<div class=\"alert alert-info\" id=\"$id\">$msg</div>";
 	}
 
 	function format_error($msg) {
-		global $link;
-		return "<div class=\"error\" id=\"$id\">
-			<img src=\"".theme_image($link, "images/sign_excl.png")."\">$msg</div>";
+		return "<div class=\"alert alert-danger\" id=\"$id\">$msg</div>";
 	}
 
 	function print_notice($msg) {
-		return print format_notice($msg);
+		print format_notice($msg);
 	}
 
 	function print_warning($msg) {
-		return print format_warning($msg);
+		print format_warning($msg);
 	}
 
 	function print_error($msg) {
-		return print format_error($msg);
+		print format_error($msg);
 	}
 
-
 	function T_sprintf() {
 		$args = func_get_args();
 		return vsprintf(__(array_shift($args)), $args);

+ 1 - 1
include/login_form.php

@@ -144,7 +144,7 @@ Event.observe(window, 'load', function() {
 
 		<?php if ($_SESSION["login_error_msg"]) { ?>
 			<div class="pagination-centered">
-			<div class="alert alert-error">
+			<div class="alert alert-danger">
 				<?php echo $_SESSION["login_error_msg"] ?>
 			</div>
 			<?php $_SESSION["login_error_msg"] = ""; ?>