Нет описания

podcast-title.php 677B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Podcast Title template.
  4. *
  5. * @package automattic/jetpack
  6. */
  7. namespace Automattic\Jetpack\Extensions\Podcast_Player;
  8. /**
  9. * Template variables.
  10. *
  11. * @var string $template_props
  12. */
  13. if ( empty( $template_props['title'] ) ) {
  14. return;
  15. }
  16. ?>
  17. <span class="jetpack-podcast-player__podcast-title">
  18. <?php if ( ! empty( $template_props['link'] ) ) : ?>
  19. <a
  20. class="jetpack-podcast-player__link"
  21. href="<?php echo esc_url( $template_props['link'] ); ?>"
  22. target="_blank"
  23. rel="noopener noreferrer nofollow"
  24. >
  25. <?php echo esc_html( $template_props['title'] ); ?>
  26. </a>
  27. <?php
  28. else :
  29. echo esc_html( $template_props['title'] );
  30. endif;
  31. ?>
  32. </span>