$install_actions['activate'
] =
sprintf( '<a href="%s" class="activatelink">' .
'<span aria-hidden="true">%s</span><span class="screen-reader-text">%s</span></a>',
esc_url( $activate_link ),
__( 'Activate'
),
/* translators: Hidden accessibility text. %s: Theme name. */
sprintf( _x( 'Activate “%s”', 'theme'
),
$name ) );
if ( is_network_admin() &&
current_user_can( 'manage_network_themes'
) ) { $install_actions['network_enable'
] =
sprintf( '<a href="%s" target="_parent">%s</a>',
esc_url( wp_nonce_url( 'themes.php?action=enable&theme=' .
urlencode( $stylesheet ), 'enable-theme_' .
$stylesheet ) ),
__( 'Network Enable'
) );
} if ( 'web' ===
$this->type
) { $install_actions['themes_page'
] =
sprintf( '<a href="%s" target="_parent">%s</a>',
self_admin_url( 'theme-install.php'
),