diff --git a/ext/comment/theme.php b/ext/comment/theme.php
index b1e767d8..cc411424 100644
--- a/ext/comment/theme.php
+++ b/ext/comment/theme.php
@@ -60,7 +60,7 @@ class CommentListTheme extends Themelet {
public function add_comment_list(Page $page, Image $image, $comments, $position, $with_postbox) {
$html = "
";
$html .= "
" . $this->build_thumb_html($image) . "
";
- $html .= $this->comments_to_html($comments);
+ $html .= "
" . $this->comments_to_html($comments) . "
";
$html .= "
";
if($with_postbox) {
$html .= "".($this->build_postbox($image->id))."
";
@@ -80,10 +80,11 @@ class CommentListTheme extends Themelet {
protected function comments_to_html($comments, $trim=false) {
- $html = "";
+ $html = "";
return $html;
}
diff --git a/ext/index/theme.php b/ext/index/theme.php
index 83d35990..5408bf85 100644
--- a/ext/index/theme.php
+++ b/ext/index/theme.php
@@ -91,27 +91,10 @@ EOD;
}
protected function build_table($images, $query) {
- global $config;
-
- $width = $config->get_int('index_width');
- $height = $config->get_int('index_height');
-
- $table = "\n";
- for($i=0; $i<$height; $i++) {
- $table .= "\n";
- for($j=0; $j<$width; $j++) {
- $image = isset($images[$i*$width+$j]) ? $images[$i*$width+$j] : null;
- if(!is_null($image)) {
- $table .= "\t" . $this->build_thumb_html($image, $query) . " | \n";
- }
- else {
- $table .= "\t | \n";
- }
- }
- $table .= "
\n";
+ $table = "";
+ foreach($images as $image) {
+ $table .= $this->build_thumb_html($image, $query);
}
- $table .= "
\n";
-
return $table;
}
}
diff --git a/ext/user/theme.php b/ext/user/theme.php
index 525a3abf..d73f3420 100644
--- a/ext/user/theme.php
+++ b/ext/user/theme.php
@@ -76,7 +76,7 @@ class UserPageTheme extends Themelet {
global $config;
$html = "