Changeset 10713
- Timestamp:
- 03/05/2009 06:32:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r10680 r10713 180 180 $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template); 181 181 $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 ); 182 188 ?> 183 189 <a href="<?php echo $activate_link; ?>" class="<?php echo $thickbox_class; ?> screenshot"> … … 186 192 <?php endif; ?> 187 193 </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> 189 196 <p><?php echo $description; ?></p> 190 197 <?php if ( $tags ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.