metadata-author-link" >'; $output .= '' . get_the_author_meta( 'display_name', $this->post->post_author ) . ''; $output .= ''; } else if( $meta['url'] != '' ) { $output .= ''; $output .= '' . get_the_author_meta( 'display_name', $this->post->post_author ) . ''; $output .= ''; } else { $output .= ''; $output .= get_the_author_meta( 'display_name', $this->post->post_author ); $output .= ''; } $output .= $this->html_after( $meta ); $output .= ''; return $output; } /** * Get taxonomies terms for post * * @since 4.7.6.3 * @param array $meta * @param string $which 'categories' | 'tags' * @return string */ protected function taxonomies( array $meta, $which ) { // Get post type taxonomies. $taxonomies = get_object_taxonomies( $this->post->post_type, 'objects' ); $names = array(); $links = array(); foreach ( $taxonomies as $taxonomy_slug => $taxonomy ) { if( $which == 'tags' ) { if( $taxonomy_slug != 'post_tag' ) { continue; } } else if( in_array( $taxonomy_slug, array( 'post_tag', 'post_format' ) ) ) { continue; } // Get the terms related to post. $terms = get_the_terms( $this->post->ID, $taxonomy_slug ); if( ! is_array( $terms ) ) { continue; } foreach ( $terms as $term ) { $names[ $term->slug ] = $term->name; if( 'no_link' != $meta['link_meta'] ) { $links[ $term->slug ] = esc_url( get_term_link( $term->slug, $taxonomy_slug ) ); } } } if( empty( $names ) ) { return ''; } asort( $names ); $output = ''; $output .= ''; $output .= $this->html_before( $meta ); $sep = ''; foreach( $names as $slug => $name ) { if( $sep != '' ) { $output .= $sep; } if( 'default' == $meta['link_meta'] ) { $output .= ''; $output .= '' . $name . ''; $output .= ''; } else if( $meta['url'] != '' ) { $output .= ''; $output .= '' . $name . ''; $output .= ''; } else { $output .= ''; $output .= $name; $output .= ''; } $sep = ', '; } $output .= $this->html_after( $meta ); $output .= ''; return $output; } /** * Get comments count for post * * @since 4.7.6.3 * @param array $meta * @return string */ protected function comments( array $meta ) { $count = get_comments_number( $this->post->ID ); $force_no_link = false; if ( 0 == $count && ! comments_open( $this->post->ID ) ) { $result = __( 'Comments Off', 'avia_framework' ); $force_no_link = true; } else if( post_password_required( $this->post->ID ) && ! is_admin() ) { $result = __( 'Enter your password to view comments', 'avia_framework' ); $force_no_link = true; } else if( post_password_required( $this->post->ID ) && is_admin() ) { $result = sprintf( __( 'Password protected - %s comment(s)', 'avia_framework' ), $count ); } else { if( $count == 0 ) { $result = __( 'No comments', 'avia_framework' ); } if( $count == 1 ) { $result = sprintf( __( '%s Comment', 'avia_framework' ), $count ); } else { $result = sprintf( __( '%s Comments', 'avia_framework' ), $count ); } } $result .= sprintf( __( ' on %s', 'avia_framework' ), esc_html( $this->post->post_title ) ); $output = ''; $output .= ''; $output .= $this->html_before( $meta ); if( 'default' == $meta['link_meta'] && ! $force_no_link ) { $output .= ''; $output .= '' . $result . ''; $output .= ''; } else if( $meta['url'] != '' && ! $force_no_link ) { $output .= ''; $output .= '' . $result . ''; $output .= ''; } else { $output .= ''; $output .= $result; $output .= ''; } $output .= $this->html_after( $meta ); $output .= ''; return $output; } /** * Get revisions count for post * * @since 4.7.6.3 * @param array $meta * @return string */ protected function revisions( array $meta ) { $revisions = wp_get_post_revisions( $this->post->ID ); $count = count( $revisions ); switch( $count ) { case 0: $result = __( 'No revisions', 'avia_framework' ); break; case 1: $result = sprintf( __( '%s revision', 'avia_framework' ), $count ); break; default: $result = sprintf( __( '%s revisions', 'avia_framework' ), $count ); break; } $result .= sprintf( __( ' on %s', 'avia_framework' ), esc_html( $this->post->post_title ) ); $output = ''; $output .= ''; $output .= $this->html_before( $meta ); if( $meta['url'] != '' ) { $output .= ''; $output .= '' . $result . ''; $output .= ''; } else { $output .= ''; $output .= $result; $output .= ''; } $output .= $this->html_after( $meta ); $output .= ''; return $output; } /** * Get published/modified date for post * * @since 4.7.6.3 * @param array $meta * @return string */ protected function date_time( array $meta ) { $what = explode( ' ', $meta['metadata'] ); $format = get_option( 'date_format' ); if( isset( $what[1] ) ) { $format .= ' ' . get_option( 'time_format' ); } $time = 'published' == $what[0] ? get_post_time( $format, false, $this->post->ID, true ) : get_post_modified_time( $format, false, $this->post->ID, true ); $output = ''; $output .= ''; $output .= $this->html_before( $meta ); if( $meta['url'] != '' ) { $output .= ''; $output .= '' . $time . ''; $output .= ''; } else { $output .= ''; $output .= $time; $output .= ''; } $output .= $this->html_after( $meta ); $output .= ''; return $output; } /** * Returns the "before" single meta string * * @since 4.7.6.3 * @param array $meta * @return string */ protected function html_before( array $meta ) { if( empty( $meta['before_meta'] ) ) { return ''; } return '' . esc_html( $meta['before_meta'] ) . ''; } /** * Returns the "after" single meta string * * @since 4.7.6.3 * @param array $meta * @return string */ protected function html_after( array $meta ) { if( empty( $meta['after_meta'] ) ) { return ''; } return '' . esc_html( $meta['after_meta'] ) . ''; } } } {"version":"1.0","provider_name":"Stichting Collot Zien en Beleven","provider_url":"https:\/\/www.collotzienenbeleven.nl","author_name":"Stichting Collot Zien en Beleven","author_url":"https:\/\/www.collotzienenbeleven.nl","title":"Gold Of Sirens Free Play Demo","type":"rich","width":600,"height":338,"html":"
Gold Of Sirens Free Play Demo<\/a><\/blockquote>