' . "\n"; echo '' . "\n"; } add_action( 'wp_head', 'responsive_template_data' ); function responsive_theme_data() { if ( is_child_theme() ) { echo '' . "\n"; } } add_action( 'wp_head', 'responsive_theme_data' ); function get_responsive_theme_name() { $theme = wp_get_theme(); return $theme->Name; } function get_responsive_theme_version() { $theme = wp_get_theme(); return $theme->Version; } function get_responsive_template_name() { $theme = wp_get_theme(); $parent = $theme->parent(); if ( $parent ) { $theme = $parent; } return $theme->Name; } function get_responsive_template_version() { $theme = wp_get_theme(); $parent = $theme->parent(); if ( $parent ) { $theme = $parent; } return $theme->Version; }