page-photo.php 446 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Template Name: 相册模板
  4. */
  5. get_header();
  6. ?>
  7. <span class="linkss-title">
  8. <?php the_title();?>
  9. </span>
  10. <div id="photo-container" data-id="<?= get_queried_object()->ID?>">
  11. </div>
  12. <?php
  13. wp_enqueue_script('page_photo', $core_lib_basepath . '/js/page-photo.js', array(), IRO_VERSION, true);
  14. wp_enqueue_style('page_photo', $core_lib_basepath . '/js/page-photo.css', array(), IRO_VERSION);
  15. ?>
  16. <?php
  17. get_footer();
  18. ?>