浏览代码

Titles styled in the gallery.

seavenois 9 年之前
父节点
当前提交
509eb2acac
共有 3 个文件被更改,包括 13 次插入9 次删除
  1. 1 1
      www/galeria/album.php
  2. 8 4
      www/galeria/index.php
  3. 4 4
      www/galeria/load_photo.php

+ 1 - 1
www/galeria/album.php

@@ -90,7 +90,7 @@
 						echo "<div class='entry photo'>\n<div class='photo_container'>\n";
 						echo "<img class='pointer photo_img' path='$r_photo[file]' onClick=\"showPhotoByPath('$r_photo[file]');\" src='/img/galeria/miniature/$r_photo[file]' /></div>\n";
 						if (strlen($r_photo['title']) > 0 ){
-							echo "<h4><a href='javascript:;' onClick=\"showPhotoByPath('$r_photo[file]');\">$r_photo[title]</a></h4>\n";
+							echo "<h3 class='entry_title'><a href='javascript:;' onClick=\"showPhotoByPath('$r_photo[file]');\">$r_photo[title]</a></h4>\n";
 						}
 						if (strlen($r_photo['description']) > 0 ){
 							echo "<span class='photo_description'>" . cutText($r_photo['description'], 50) . "</span>\n";

+ 8 - 4
www/galeria/index.php

@@ -86,10 +86,14 @@
 							}
 							echo "</tr>\n</table>\n";
 							$q_count = mysqli_query($con, "SELECT album FROM photo_album WHERE album = $r[id];");
-							if (mysqli_num_rows($q_count) == 1)
-								echo "<h4><a href='$proto$http_host/galeria/$r[permalink]'>$r[title]</a> - 1 $lng[gallery_photos_singular]</h4>\n";
-							else
-								echo "<h4><a href='$proto$http_host/galeria/$r[permalink]'>$r[title]</a> - " . mysqli_num_rows($q_count) . " $lng[gallery_photos_plural]</h4>\n";
+							if (mysqli_num_rows($q_count) == 1){
+								echo "<h3 class='entry_title'><a href='$proto$http_host/galeria/$r[permalink]'>$r[title]</a></h3>\n";
+								echo("1 $lng[gallery_photos_singular]");
+							}
+							else{
+								echo "<h3 class='entry_title'><a href='$proto$http_host/galeria/$r[permalink]'>$r[title]</a></h3>\n";
+								echo(mysqli_num_rows($q_count) . " $lng[gallery_photos_plural]");
+							}
 							if (strlen($r['description']) > 0){
 								echo "<p>". cutText($r['description'], 100, "$lng[gallery_read_more]", "$proto$http_host/galeria/$r[permalink]") . "</p>\n";
 							}

+ 4 - 4
www/galeria/load_photo.php

@@ -30,7 +30,7 @@
 		echo "<div id='photo_viewer_details'>\n";
 		echo "<div class='entry' id='photo_data'>\n";
 		if (strlen($r['title']) > 0){
-			echo "<h4>$r[title]</h4>\n";
+			echo "<h3 class='entry_title'>$r[title]</h3>\n";
 		}
 		if (strlen($r['description']) > 0){
 			echo "<span id='photo_description'>$r[description]</span>\n";
@@ -46,13 +46,13 @@
 		echo "<div id='photo_viewer_comment_counter'>\n";
 		switch ($comment_count){
 			case 0:
-				echo "<h4><meta itemprop='interactionCount' content='0'/>$lng[gallery_comment_count_0]</h4>\n";
+				echo "<h3 class='entry_title'><meta itemprop='interactionCount' content='0'/>$lng[gallery_comment_count_0]</h3>\n";
 				break;
 			case 1:
-				echo "<h4><span itemprop='interactionCount'>1</span> $lng[gallery_comment_count_1]</h4>\n";
+				echo "<h3 class='entry_title'><span itemprop='interactionCount'>1</span> $lng[gallery_comment_count_1]</h3>\n";
 				break;
 			default:
-				echo "<h4><span itemprop='interactionCount'>$comment_count</span> $lng[gallery_comment_count_several]</h4>\n";
+				echo "<h3 class='entry_title'><span itemprop='interactionCount'>$comment_count</span> $lng[gallery_comment_count_several]</h3>\n";
 		}
 		echo "</div>\n";
 		echo "<div id='comment_list'>\n";