post_title; } ?>
ID ) ): ?> ID ), 'single-post-thumbnail' ); ?>
query_string, '', home_url( $wp->request ) );
$parse = parse_url( $current_url );
$current_url = $parse['scheme'] . '://' . $parse['host'] . $parse['path'];
$current_url = str_replace( 'amp', '', $current_url );
$amps = get_option( 'amps' );
$siteurl = get_site_url();
$type = null;
if ( is_single() || is_page() ) {
$type = POST;
$author = get_user_meta( $post->post_author, 'first_name', true );
$author_avatar = str_replace('post_author, 16 ));
$author_avatar = str_replace('/>', '>', $author_avatar);
$RAWcategories = get_the_category( $post->ID );
$categories = array();
$shortcut_icon = AMP_URL . 'assets/img/touch/touch-icon-196x196.png';
foreach ( $RAWcategories as $c ) {
$categories[] = '' . $c->cat_name . '';
}
$RAWtags = wp_get_post_tags( $post->ID );
$tags = array();
foreach ( $RAWtags as $t ) {
$tags[] = '' . $t->name . '';
}
} else {
$ampType = MAMP_Render::getAMPtype( $data );
if ( $ampType == CATE ) {
$type = CATE;
$args = array(
'posts_per_page' => 5,
'offset' => 0,
'category' => '',
'category_name' => $data,
'orderby' => 'date',
'order' => 'DESC',
'include' => '',
'exclude' => '',
'meta_key' => '',
'meta_value' => '',
'post_type' => 'post',
'post_mime_type' => '',
'post_parent' => '',
'author' => '',
'post_status' => 'publish',
'suppress_filters' => true
);
$posts_array = get_posts( $args );
} elseif ( $ampType == TAG ) {
$type = TAG;
$args = array(
'tax_query' => array(
array(
'taxonomy' => 'post_tag',
'field' => 'slug',
'terms' => $data
)
)
);
$posts_array = get_posts( $args );
}
}
?>
post_content) ); ?>