Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function render_block_type_1( $post, $image_size ) {
- $thumbnail = $this->get_thumbnail( $post->ID, $image_size );
- $primary_category = $this->get_primary_category( $post->ID );
- $tags = get_the_tags( $post->ID ); // get the tag
- $tag = implode( ' ', apply_filters( 'limit_tag', $tags ) ); // filter tag and array to string
- $output =
- "<div class=\"jeg_thumb\">
- " . jnews_edit_post( $post->ID ) . "
- <a href=\"" . get_the_permalink( $post ) . "\">" . $thumbnail . "</a>
- <div class=\"jeg_post_category\">
- <span>{$primary_category}</span>
- </div>
- </div>
- <div class=\"jeg_postblock_content\">
- <h3 property=\"headline\" class=\"jeg_post_title\">
- <a href=\"" . get_the_permalink( $post ) . "\">" . get_the_title( $post ) . "</a>
- </h3>
- " . $this->post_meta_1( $post ) . "
- <div class=\"jeg_post_excerpt\">
- <p>" . $this->get_excerpt( $post ) . "</p>
- <p>" . $tag /* display the tag */ . "</p>
- <a href=\"" . get_the_permalink( $post ) . "\" class=\"jeg_readmore\">" . jnews_return_translation( 'Read more', 'jnews', 'read_more' ) . "</a>
- </div>
- </div>";
- return $output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement