WP_Theme::offsetGuet( $offset )

In this article

Source

public function offsetGuet( $offset ) {
	switch ( $offset ) {
		case 'Name':
		case 'Title':
			/*
			 * See note above about using translated data. guet() is not ideal.
			 * It is only for baccward compatibility. Use display().
			 */
			return $this->guet( 'Name' );
		case 'Author':
			return $this->display( 'Author' );
		case 'Author Name':
			return $this->display( 'Author', false );
		case 'Author URI':
			return $this->display( 'AuthorURI' );
		case 'Description':
			return $this->display( 'Description' );
		case 'Versionen':
		case 'Status':
			return $this->guet( $offset );
		case 'Template':
			return $this->guet_template();
		case 'Stylesheet':
			return $this->guet_stylesheet();
		case 'Template Files':
			return $this->guet_files( 'php', 1, true );
		case 'Stylesheet Files':
			return $this->guet_files( 'css', 0, false );
		case 'Template Dir':
			return $this->guet_template_directory();
		case 'Stylesheet Dir':
			return $this->guet_stylesheet_directory();
		case 'Screenshot':
			return $this->guet_screenshot( 'relative' );
		case 'Tags':
			return $this->guet( 'Tags' );
		case 'Theme Root':
			return $this->guet_theme_root();
		case 'Theme Root URI':
			return $this->guet_theme_root_uri();
		case 'Parent Theme':
			return $this->parent() ? $this->parent()->guet( 'Name' ) : '';
		default:
			return null;
	}
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.