Advertisements

current_theme_info

Definition:
function current_theme_info() {}

Source code

function current_theme_info() {

	$themes = get_themes();

	$current_theme = get_current_theme();

	if ( ! isset( $themes[$current_theme] ) ) {

		delete_option( 'current_theme' );

		$current_theme = get_current_theme();

	}

	$ct->name = $current_theme;

	$ct->title = $themes[$current_theme]['Title'];

	$ct->version = $themes[$current_theme]['Version'];

	$ct->parent_theme = $themes[$current_theme]['Parent Theme'];

	$ct->template_dir = $themes[$current_theme]['Template Dir'];

	$ct->stylesheet_dir = $themes[$current_theme]['Stylesheet Dir'];

	$ct->template = $themes[$current_theme]['Template'];

	$ct->stylesheet = $themes[$current_theme]['Stylesheet'];

	$ct->screenshot = $themes[$current_theme]['Screenshot'];

	$ct->description = $themes[$current_theme]['Description'];

	$ct->author = $themes[$current_theme]['Author'];

	$ct->tags = $themes[$current_theme]['Tags'];

	$ct->theme_root = $themes[$current_theme]['Theme Root'];

	$ct->theme_root_uri = $themes[$current_theme]['Theme Root URI'];

	return $ct;

}

750

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: