$value_plugin ) {
if ( isset( $bws_plugins_pro[ $key_plugin ] ) )
$key_plugin = $bws_plugins_pro[ $key_plugin ];
if ( isset( $bws_plugins[ $key_plugin ] ) ) {
$key_plugin_explode = explode( '-plugin/', $key_plugin );
if ( isset( $key_plugin_explode[1] ) )
$icon = $key_plugin_explode[0];
else {
$key_plugin_explode = explode( '/', $key_plugin );
$icon = $key_plugin_explode[0];
}
}
if ( isset( $bws_plugins[ $key_plugin ]['pro_version'] ) && ( in_array( $bws_plugins[ $key_plugin ]['pro_version'], $active_plugins ) || is_plugin_active_for_network( $bws_plugins[ $key_plugin ]['pro_version'] ) ) ) { ?>
$value_plugin ) {
if ( isset( $bws_plugins[ $key_plugin ] ) ) {
$key_plugin_explode = explode( '-plugin/', $key_plugin );
if ( isset( $key_plugin_explode[1] ) )
$icon = $key_plugin_explode[0];
else {
$key_plugin_explode = explode( '/', $key_plugin );
$icon = $key_plugin_explode[0];
}
} ?>
get_pagenum();
$per_page = 36;
$args = array( 'page' => $paged, 'per_page' => $per_page, 'fields' => $theme_field_defaults );
$args['author'] = 'bestwebsoft';
$args = apply_filters( 'install_themes_table_api_args_search', $args );
$api = themes_api( 'query_themes', $args );
if ( is_wp_error( $api ) )
wp_die( $api->get_error_message() . '
' . __( 'Try again', 'bestwebsoft' ) . '' );
$theme_class->items = $api->themes;
$theme_class->set_pagination_args( array(
'total_items' => $api->info['results'],
'per_page' => $per_page,
'infinite_scroll' => true,
) );
$themes = $theme_class->items;
if ( $wp_version < '3.9' ) {
foreach ( $themes as $theme ) { ?>
name, $themes_allowedtags );
$author = wp_kses( $theme->author, $themes_allowedtags );
$preview_title = sprintf( __( 'Preview “%s”', 'bestwebsoft' ), $name );
$preview_url = add_query_arg( array(
'tab' => 'theme-information',
'theme' => $theme->slug,
), self_admin_url( 'theme-install.php' ) );
$actions = array();
$install_url = add_query_arg( array(
'action' => 'install-theme',
'theme' => $theme->slug,
), self_admin_url( 'update.php' ) );
$update_url = add_query_arg( array(
'action' => 'upgrade-theme',
'theme' => $theme->slug,
), self_admin_url( 'update.php' ) );
$status = 'install';
$installed_theme = wp_get_theme( $theme->slug );
if ( $installed_theme->exists() ) {
if ( version_compare( $installed_theme->get('Version'), $theme->version, '=' ) )
$status = 'latest_installed';
elseif ( version_compare( $installed_theme->get('Version'), $theme->version, '>' ) )
$status = 'newer_installed';
else
$status = 'update_available';
}
switch ( $status ) {
default:
case 'install':
$actions[] = '
' . __( 'Install Now', 'bestwebsoft' ) . '';
break;
case 'update_available':
$actions[] = '
' . __( 'Update', 'bestwebsoft' ) . '';
break;
case 'newer_installed':
case 'latest_installed':
$actions[] = '
' . _x( 'Installed', 'theme', 'bestwebsoft' ) . '';
break;
}
$actions[] = '
' . __( 'Preview', 'bestwebsoft' ) . '';
$actions = apply_filters( 'theme_install_actions', $actions, $theme ); ?>
install_theme_info( $theme ); ?>
theme_installer();
} else { ?>
$theme ) {
$installed_theme = wp_get_theme( $theme->slug );
if ( $installed_theme->exists() )
$theme->installed = true;
else
$theme->installed = false;
?>
screenshot_url ) { ?>
author ); ?>
name; ?>
installed ) { ?>