protected function append_theme_actions_content($theme)
{
$details_url = esc_attr(add_query_arg(array('tab' => 'theme-information', 'theme' => $theme->repo, 'TB_iframe' => 'true', 'width' => 270, 'height' => 400), self_admin_url("theme-install.php")));
$nonced_update_url = wp_nonce_url($this->get_update_url('theme', 'upgrade-theme', $theme->repo), 'upgrade-theme_' . $theme->repo);
$current = get_site_transient('update_themes');
/**
* Display theme update links.
*/
ob_start();
if (isset($current->response[$theme->repo])) {
?>
<p>
<strong>
<?php
printf(esc_html__('There is a new version of %s available.', 'github-updater'), $theme->name);
printf(' <a href="%s" class="thickbox open-plugin-details-modal" title="%s">', $details_url, esc_attr($theme->name));
printf(esc_html__('View version %1$s details%2$s or %3$supdate now%4$s.', 'github-updater'), $theme->remote_version, '</a>', sprintf('<a aria-label="' . esc_html__('Update %s now', 'github-updater') . '" id="update-theme" data-slug="' . $theme->repo . '" href="' . $nonced_update_url . '">', $theme->name), '</a>');
?>
</strong>
</p>
<?php
}
return trim(ob_get_clean(), '1');
}