Making the presentation page a little more intuitive

git-svn-id: https://develop.svn.wordpress.org/trunk@2757 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-08-07 10:11:30 +00:00
parent 1d5e21d175
commit 2165c50e82
6 changed files with 75 additions and 29 deletions
+8 -5
View File
@@ -1511,9 +1511,6 @@ function get_theme_data($theme_file) {
$name = $theme_name[1];
$name = trim($name);
$theme = $name;
if ('' != $theme_uri[1] && '' != $name) {
$theme = '<a href="' . $theme_uri[1] . '" title="' . __('Visit theme homepage') . '">' . $theme . '</a>';
}
if ('' == $author_uri[1]) {
$author = $author_name[1];
@@ -1569,7 +1566,7 @@ function get_themes() {
foreach($theme_files as $theme_file) {
$theme_data = get_theme_data("$theme_root/$theme_file");
$name = $theme_data['Name'];
$title = $theme_data['Title'];
$description = wptexturize($theme_data['Description']);
@@ -1578,6 +1575,12 @@ function get_themes() {
$template = $theme_data['Template'];
$stylesheet = dirname($theme_file);
$screenshot = glob("$theme_root/$stylesheet/screenshot.png");
if ( !empty( $screenshot ) )
$screenshot = basename( $screenshot[0] );
else
$screenshot = false;
if (empty($name)) {
$name = dirname($theme_file);
$title = $name;
@@ -1640,7 +1643,7 @@ function get_themes() {
}
}
$themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template, 'Stylesheet' => $stylesheet, 'Template Files' => $template_files, 'Stylesheet Files' => $stylesheet_files, 'Template Dir' => $template_dir, 'Stylesheet Dir' => $stylesheet_dir, 'Status' => $theme_data['Status']);
$themes[$name] = array('Name' => $name, 'Title' => $title, 'Description' => $description, 'Author' => $author, 'Version' => $version, 'Template' => $template, 'Stylesheet' => $stylesheet, 'Template Files' => $template_files, 'Stylesheet Files' => $stylesheet_files, 'Template Dir' => $template_dir, 'Stylesheet Dir' => $stylesheet_dir, 'Status' => $theme_data['Status'], 'Screenshot' => $screenshot);
}
// Resolve theme dependencies.