part-actions.php 679 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Post (in loop) actions - inner part
  4. *
  5. * @package vamtam/consulting
  6. */
  7. if ( ! (
  8. ( is_single() && current_user_can( 'edit_post', get_the_ID() ) ) ||
  9. ( rd_vamtam_get_optionb( 'post-meta', 'comments' ) && comments_open() ) ||
  10. is_customize_preview()
  11. )
  12. )
  13. return;
  14. ?>
  15. <div class="post-actions">
  16. <?php if ( ! post_password_required() ) : ?>
  17. <?php get_template_part( 'templates/post/meta/comments' ); ?>
  18. <?php if ( ! is_single() ) : ?>
  19. <?php edit_post_link( '<span class="icon">' . vamtam_get_icon( 'pencil' ) . '</span><span class="visuallyhidden">' . esc_html__( 'Edit', 'vamtam-consulting' ) . '</span>' ) ?>
  20. <?php endif ?>
  21. <?php endif ?>
  22. </div>