Make WordPress Core


Ignore:
Timestamp:
08/07/2005 10:11:30 AM (21 years ago)
Author:
matt
Message:

Making the presentation page a little more intuitive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r2740 r2757  
    15121512        $name = trim($name);
    15131513        $theme = $name;
    1514         if ('' != $theme_uri[1] && '' != $name) {
    1515                 $theme = '<a href="' . $theme_uri[1] . '" title="' . __('Visit theme homepage') . '">' . $theme . '</a>';
    1516         }
    15171514
    15181515        if ('' == $author_uri[1]) {
    … …  
    15701567        foreach($theme_files as $theme_file) {
    15711568                $theme_data = get_theme_data("$theme_root/$theme_file");
    1572          
     1569
    15731570                $name = $theme_data['Name'];
    15741571                $title = $theme_data['Title'];
    … …  
    15781575                $template = $theme_data['Template'];
    15791576                $stylesheet = dirname($theme_file);
     1577
     1578                $screenshot = glob("$theme_root/$stylesheet/screenshot.png");
     1579                if ( !empty( $screenshot ) )
     1580                        $screenshot = basename( $screenshot[0] );
     1581                else
     1582                        $screenshot = false;
    15801583
    15811584                if (empty($name)) {
    … …  
    16411644                }
    16421645               
    1643                 $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']);
     1646                $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);
    16441647        }
    16451648
Note: See TracChangeset for help on using the changeset viewer.