diff --git a/wp-admin/includes/theme-install.php b/wp-admin/includes/theme-install.php
index d4fc8e1709..a4d102b947 100644
--- a/wp-admin/includes/theme-install.php
+++ b/wp-admin/includes/theme-install.php
@@ -299,54 +299,74 @@ function display_themes($themes, $page = 1, $totalpages = 1) {
?>
-
+
name, $themes_allowedtags);
- $desc = wp_kses($theme->description, $themes_allowedtags);
- //if ( strlen($desc) > 30 )
- // $desc = substr($desc, 0, 30) . '...' . substr($desc, 30) . '';
-
- $preview_link = $theme->preview_url . '?TB_iframe=true&width=600&height=400';
- $action_links = array();
- $action_links[] = '' . __('Install') . '';
- $action_links[] = '' . __('Preview') . '';
-
- $action_links = apply_filters('theme_install_action_links', $action_links, $theme);
- $actions = implode ( ' ', $action_links );
- echo "
-
-
-
-
-
{$name}
-
$actions
-
- {$desc}
-
-
";
- /*
- object(stdClass)[59]
- public 'name' => string 'Magazine Basic' (length=14)
- public 'slug' => string 'magazine-basic' (length=14)
- public 'version' => string '1.1' (length=3)
- public 'author' => string 'tinkerpriest' (length=12)
- public 'preview_url' => string 'http://wp-themes.com/?magazine-basic' (length=36)
- public 'screenshot_url' => string 'http://wp-themes.com/wp-content/themes/magazine-basic/screenshot.png' (length=68)
- public 'rating' => float 80
- public 'num_ratings' => int 1
- public 'homepage' => string 'http://wordpress.org/extend/themes/magazine-basic' (length=49)
- public 'description' => string 'A basic magazine style layout with a fully customizable layout through a backend interface. Designed by c.bavota of Tinker Priest Media.' (length=214)
- public 'download_link' => string 'http://wordpress.org/extend/themes/download/magazine-basic.1.1.zip' (length=66)
- */
+ $rows = ceil(count($themes) / 3);
+ $i = 0;
+ for ( $row = 1; $row <= $rows; $row++ ) {
+ for ( $col = 1; $col <= 3; $col++ ) {
+ $table[$row][$col] = $i;
+ $i++;
+ }
}
-
- ?>
-
+
+ foreach ( $table as $row => $cols ) {
+?>
+
+ $theme_index ) {
+ $class = array('available-theme');
+ if ( $row == 1 ) $class[] = 'top';
+ if ( $col == 1 ) $class[] = 'left';
+ if ( $row == $rows ) $class[] = 'bottom';
+ if ( $col == 3 ) $class[] = 'right';
+ $theme = $themes[$theme_index];
+?>
+
+name, $themes_allowedtags);
+ $desc = wp_kses($theme->description, $themes_allowedtags);
+ //if ( strlen($desc) > 30 )
+ // $desc = substr($desc, 0, 30) . '...' . substr($desc, 30) . '';
+
+ $preview_link = $theme->preview_url . '?TB_iframe=true&width=600&height=400';
+ $action_links = array();
+ $action_links[] = '' . __('Install') . '';
+ $action_links[] = '' . __('Preview') . '';
+
+ $action_links = apply_filters('theme_install_action_links', $action_links, $theme);
+ $actions = implode ( ' ', $action_links );
+ echo "
+
+
+
+ {$name}
+ $actions
+ {$desc} ";
+ /*
+ object(stdClass)[59]
+ public 'name' => string 'Magazine Basic' (length=14)
+ public 'slug' => string 'magazine-basic' (length=14)
+ public 'version' => string '1.1' (length=3)
+ public 'author' => string 'tinkerpriest' (length=12)
+ public 'preview_url' => string 'http://wp-themes.com/?magazine-basic' (length=36)
+ public 'screenshot_url' => string 'http://wp-themes.com/wp-content/themes/magazine-basic/screenshot.png' (length=68)
+ public 'rating' => float 80
+ public 'num_ratings' => int 1
+ public 'homepage' => string 'http://wordpress.org/extend/themes/magazine-basic' (length=49)
+ public 'description' => string 'A basic magazine style layout with a fully customizable layout through a backend interface. Designed by c.bavota of Tinker Priest Media.' (length=214)
+ public 'download_link' => string 'http://wordpress.org/extend/themes/download/magazine-basic.1.1.zip' (length=66)
+ */
+?>
+ |
+
+
+
+