Make WordPress Core

Changeset 10654


Ignore:
Timestamp:
02/26/2009 02:46:51 AM (17 years ago)
Author:
ryan
Message:

Use plain link style instead of button. See #8652

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/theme-install.php

    r10653 r10654  
    269269    $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : '';
    270270    $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
    271 
    272     $themes_allowedtags = array('a' => array('href' => array(),'title' => array(), 'target' => array()),
    273                                 'abbr' => array('title' => array()),'acronym' => array('title' => array()),
    274                                 'code' => array(), 'pre' => array(), 'em' => array(),'strong' => array());
    275 
    276271?>
    277272    <div class="tablenav">
     
    336331                $action_links = array();
    337332                $action_links[] = '<a href="' . admin_url('theme-install.php?tab=theme-information&amp;theme=' . $theme->slug .
    338                                     '&amp;TB_iframe=true&amp;width=600&amp;height=800') . '" class="button thickbox onclick" title="' . attribute_escape(sprintf(__('Install "%s"'), $name)) . '">' . __('Install') . '</a>';
    339                 $action_links[] = '<a href="' . $preview_link . '" class="button thickbox thickbox-preview onclick previewlink" title="' . attribute_escape(sprintf(__('Preview "%s"'), $name)) . '">' . __('Preview') . '</a>';
     333                                    '&amp;TB_iframe=true&amp;width=600&amp;height=800') . '" class="thickbox onclick" title="' . attribute_escape(sprintf(__('Install "%s"'), $name)) . '">' . __('Install') . '</a>';
     334                $action_links[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . attribute_escape(sprintf(__('Preview "%s"'), $name)) . '">' . __('Preview') . '</a>';
    340335   
    341336                $action_links = apply_filters('theme_install_action_links', $action_links, $theme);
    342                 $actions = implode ( ' ', $action_links );
    343                 echo "
    344                 <a class='thickbox thickbox-preview screenshot' href='$preview_link' title='" . attribute_escape(sprintf(__('Preview "%s"'), $name)) . "'>
    345                 <img src='{$theme->screenshot_url}' width='150' />
     337                $actions = implode ( ' | ', $action_links );
     338?>
     339                <a class='thickbox thickbox-preview screenshot' href='<? echo clean_url($preview_link) ?>' title='<?php attribute_escape(sprintf(__('Preview "%s"'), $name)) ?>'>
     340                <img src='<?php echo clean_url($theme->screenshot_url) ?>' width='150' />
    346341                </a>
    347                 <h3>{$name}</h3>
    348                 <span class='action-links'>$actions</span>
    349                     <p>{$desc}</p>";
     342                <h3><?php echo $name ?></h3>
     343                <span class='action-links'><?php echo $actions ?></span>
     344                <p><?php echo $desc ?></p>
     345                <p><strong><?php _e('Version:') ?></strong> <?php echo wp_kses($theme->version, $themes_allowedtags) ?></p>
     346                <p><strong><?php _e('Author:') ?></strong> <?php echo wp_kses($theme->author, $themes_allowedtags) ?></p>
     347<?php
    350348            /*
    351349            object(stdClass)[59]
Note: See TracChangeset for help on using the changeset viewer.