Advertisement
ashishsthanp

Zakra - Open read more button in a new tab

Feb 2nd, 2022
1,571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. /**
  2.  * Post read more HTML.
  3.  *
  4.  * @param string $readmore_alignment CSS class.
  5.  */
  6. function zakra_post_readmore( $readmore_alignment ) {
  7.     ?>
  8.     <div class="<?php zakra_css_class( 'zakra_read_more_wrapper_class' ); ?>
  9.             tg-text-align--<?php echo esc_attr( $readmore_alignment ); ?>">
  10.         <a href="<?php the_permalink(); ?>" class="tg-read-more" target="_blank">
  11.             <?php echo apply_filters( 'zakra_read_more_text', esc_html__( 'Read More', 'zakra' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></a>
  12.     </div>
  13.     <?php
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement