-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvideo.php
93 lines (65 loc) · 1.99 KB
/
video.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
* @package WordPress
* @subpackage APOD-Wordpress-Theme
Template Name: Video
* @since HTML5 Reset 2.0
*/
get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article data-role="content" data-theme="a" <?php post_class() ?> id="post-<?php the_ID(); ?>">
<div class="row">
<h2><?php the_title(); ?></h2>
<h5><?php the_time('l, F jS, Y') ?></h5>
<div class="entry">
<?php
if ( has_post_thumbnail()) { ?>
<a href="<?php echo get_attachment_link( get_post_thumbnail_id() ); ?>">
<?php
if (is_mobile()) {
the_post_thumbnail('medium');
} else {
the_post_thumbnail('large');
}
} ?>
</a>
</div>
<div data-role="collapsible" class="entry" data-theme="a" data-content-theme="e" >
<?php if (is_mobile()) {?>
<h3>Learn More.</h3>
<?php } else {?>
<h3>Learn more about <?php the_title(); ?>.</h3>
<?php } ?>
<p><?php the_content(); ?></p>
</div>
</div>
</article>
<?php endwhile; ?>
<?php else : ?>
<h2><?php _e('Nothing Found','APOD'); ?></h2>
<?php endif; ?>
<?php get_sidebar(); ?>
<footer id="footer" data-role="footer" data-theme="a" data-position="fixed" data-tap-toggle="false" class="source-org vcard copyright">
<div class="row">
<?php if (is_mobile()) {
post_navigation_mobile();
} else {
post_navigation();
} ?>
</div>
<small>© <?php echo date("Y"); echo " "; bloginfo('name'); ?>: <i>a service of: <a href="http://astrophysics.gsfc.nasa.gov/">ASD</a> at <a href="http://www.nasa.gov/">NASA</a> <a href="http://www.nasa.gov/centers/goddard/">GSFC</a> & <a href="http://www.mtu.edu/">MTU</a></i></small>
</footer>
<?php wp_footer(); ?>
<!-- here comes the javascript -->
<!-- jQuery is called via the Wordpress-friendly way via functions.php -->
<!-- this is where we put our custom functions -->
<style>
.ui-collapsible-content > .ui-listview {
margin: -10px -16px -21px;
}
.ui-li-desc {white-space:normal;}
</style>
<script src="<?php bloginfo('template_directory'); ?>/_/js/functions.js"></script>
</div>
</body>
</html>