WordPress.org

Make WordPress Core

Changeset 10713


Ignore:
Timestamp:
03/05/2009 06:32:09 PM (12 years ago)
Author:
ryan
Message:

Action links for themes page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r10680 r10713  
    180180    $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template);
    181181    $activate_text = attribute_escape( sprintf( __('Activate "%s"'), $title ) );
     182    $actions = array();
     183    $actions[] = '<a href="' . $activate_link .  '" title="' . $activate_text . '">' . __('Activate') . '</a>';
     184    $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attribute_escape(sprintf(__('Preview "%s"'), $theme_name)) . '">' . __('Preview') . '</a>';
     185    $actions = apply_filters('theme_action_links', $actions, $themes[$theme_name]);
     186
     187    $actions = implode ( ' | ', $actions );
    182188?>
    183189        <a href="<?php echo $activate_link; ?>" class="<?php echo $thickbox_class; ?> screenshot">
     
    186192<?php endif; ?>
    187193        </a>
    188         <h3><a class="<?php echo $thickbox_class; ?>" href="<?php echo $activate_link; ?>"><?php echo $title; ?></a></h3>
     194        <h3><?php echo $title; ?></h3>
     195        <span class='action-links'><?php echo $actions ?></span>
    189196        <p><?php echo $description; ?></p>
    190197<?php if ( $tags ) : ?>
Note: See TracChangeset for help on using the changeset viewer.