Ei kuvausta

popup.php 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <div id="pum-<?php pum_popup_ID(); ?>" class="<?php pum_popup_classes(); ?>" <?php pum_popup_data_attr(); ?> role="dialog" aria-hidden="true" <?php if ( pum_get_popup_title() != '' ) : ?>aria-labelledby="pum_popup_title_<?php pum_popup_ID(); ?>"<?php endif; ?>>
  2. <div id="popmake-<?php pum_popup_ID(); ?>" class="<?php pum_popup_classes( null, 'container' ); ?>">
  3. <?php do_action( 'pum_popup_before_title' ); ?>
  4. <?php do_action( 'popmake_popup_before_inner' ); // Backward compatibility. ?>
  5. <?php
  6. /**
  7. * Render the title if not empty.
  8. */
  9. ?>
  10. <?php if ( pum_get_popup_title() != '' ) : ?>
  11. <div id="pum_popup_title_<?php pum_popup_ID(); ?>" class="<?php pum_popup_classes( null, 'title' ); ?>">
  12. <?php pum_popup_title(); ?>
  13. </div>
  14. <?php endif; ?>
  15. <?php do_action( 'pum_popup_before_content' ); ?>
  16. <?php
  17. /**
  18. * Render the content.
  19. */
  20. ?>
  21. <div class="<?php pum_popup_classes( null, 'content' ); ?>" <?php pum_popup_content_tabindex_attr(); ?>>
  22. <?php pum_popup_content(); ?>
  23. </div>
  24. <?php do_action( 'pum_popup_after_content' ); ?>
  25. <?php do_action( 'popmake_popup_after_inner' ); // Backward compatibility. ?>
  26. <?php
  27. /**
  28. * Render the close button if needed.
  29. */
  30. ?>
  31. <?php if ( pum_show_close_button() ) : ?>
  32. <button type="button" class="<?php pum_popup_classes( null, 'close' ); ?>" aria-label="<?php _e( 'Close', 'popup-maker' ); ?>">
  33. <?php pum_popup_close_text(); ?>
  34. </button>
  35. <?php endif; ?>
  36. </div>
  37. </div>