';
foreach ( $redux as $panel ) {
echo ' ' . $panel->args['display_name'] . '';
if ( ! empty( $panel->args['display_version'] ) ) {
echo ' v' . $panel->args['display_version'];
}
echo '
';
}
echo '
';
}
//
// $t = wp_get_theme();
// $active_theme = array(
// 'name' => $t->get( 'Name' ),
// 'version' => $t->get( 'Version' ),
// 'template' => $t->get( 'Template' ),
// 'productURL' => $t->get( 'ThemeURI' ),
// 'author' => $t->get( 'Author' ),
// 'authorURL' => $t->get( 'AuthorURI' ),
// );
// $parent_theme = array();
//
// if ( ! empty( $active_theme['Template'] ) ) {
// $pt = wp_get_theme( $active_theme['Template'] );
// $parent_theme = array(
// 'name' => $pt->get( 'Name' ),
// 'version' => $pt->get( 'Version' ),
// 'template' => $pt->get( 'Template' ),
// 'productURL' => $pt->get( 'ThemeURI' ),
// 'author' => $pt->get( 'Author' ),
// 'authorURL' => $pt->get( 'AuthorURI' ),
// );
// }
//
//
// $products = array( 'plugins' => array(), 'theme' => array(), 'unknown' => array() );
//
// $active_plugins = (array) get_option( 'active_plugins', array() );
//
// if ( is_multisite() ) {
// $active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) );
// }
//
// $plugins = array();
//
// foreach ( $active_plugins as $plugin ) :
// $plugin_data = @get_plugin_data( WP_PLUGIN_DIR . '/' . $plugin );
// $plugins[ $plugin_data['Name'] ] = array(
// 'name' => $plugin_data['Name'],
// 'title' => $plugin_data['Title'],
// 'version' => $plugin_data['Version'],
// 'productURL' => $plugin_data['PluginURI'],
// 'author' => $plugin_data['Author'],
// 'authorURL' => $plugin_data['AuthorURI'],
// );
// endforeach;
//
//
// foreach ( $redux as $panel ) {
// if ( $active_theme == $panel->args['display_name'] ) {
// $products['theme'] = $active_theme;
// } else if ( $parent_theme == $panel->args['display_name'] ) {
// $products['theme'] = $parent_theme;
// } else if ( isset( $plugins[ $panel->args['display_name'] ] ) ) {
// $products['plugins'][] = array(
// 'name' => $panel->args['display_name'],
// 'version' => $panel->args['display_version']
// );
// } else {
// $products['unknown'][] = array(
// 'name' => $panel->args['display_name'],
// 'version' => $panel->args['display_version']
// );
// }
// }
// print_r( $products );
//?>
Name ); ?>
Name ); ?>
Name; ?>
Version; ?>