~sinzui/+junk/essence-wp

« back to all changes in this revision

Viewing changes to themes/samsara/photos.php

  • Committer: Curtis Hovey
  • Date: 2013-02-10 18:59:15 UTC
  • Revision ID: sinzui.is@verizon.net-20130210185915-1rw2uckbmtxw2k5w
RemovedĀ oldĀ theme.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php require_once get_template_directory() . "/samsara_functions.php"; ?>
2
 
<!DOCTYPE html PUBLIC
3
 
    "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
 
<html xmlns="http://www.w3.org/1999/xhtml">
6
 
    <head profile="http://gmpg.org/xfn/11">
7
 
        <meta http-equiv="Content-Type"
8
 
        content="text/html; charset=<?php bloginfo('charset'); ?>" />
9
 
        <title><?php bloginfo('name'); ?> &raquo;
10
 
            <?php smr_single_gallery_title(); ?></title>
11
 
        <style type="text/css" media="screen">
12
 
            @import url( <?php bloginfo('stylesheet_url'); ?> );
13
 
            <?php get_custom_css() ?>
14
 
        </style>
15
 
        <link rel="alternate" type="application/rss+xml"
16
 
        title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
17
 
        <link rel="alternate" type="application/atom+xml"
18
 
        title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
19
 
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
20
 
        <?php wp_get_archives('type=monthly&format=link'); ?>
21
 
        <?php wp_head(); ?>
22
 
    </head>
23
 
 
24
 
    <body>
25
 
        <?php get_header(); ?>
26
 
 
27
 
        <div id="body">
28
 
            <div id="sidebar">
29
 
                <?php get_sidebar(); ?>
30
 
            </div>
31
 
 
32
 
            <div class="content" style="float: none;">
33
 
                <h2 class="page-title">
34
 
                    <?php smr_navicable_location() ?>
35
 
                </h2>
36
 
 
37
 
                <div class="pagination-steps">
38
 
                    <?php smr_page_nav('&laquo;', '&raquo;', true, true) ?>
39
 
                </div>
40
 
 
41
 
                <?php if (smr_begin_gallery_pages()) : ?>
42
 
                    <?php if (smr_the_picture(true)) :  ?>
43
 
 
44
 
                        <div class="image">
45
 
                            <a href="<?php smr_the_location() ?>"
46
 
                                ><img src="<?php smr_the_slide() ?>"
47
 
                                alt="" /></a>
48
 
                            <p id="caption">
49
 
                                <?php smr_the_caption() ?>
50
 
                            </p>
51
 
                            <?php smr_edit_picture(
52
 
                                '(edit this caption)',
53
 
                                '<div class="post-info">', '</div>') ?>
54
 
                        </div>
55
 
 
56
 
                        <?php if (smr_begin_exif()) :  ?>
57
 
                        <div class="table-list">
58
 
                            <h3>
59
 
                                <a id="exifDisclosure" class="action-pre"
60
 
                                    href="javascript:void(0)"
61
 
                                    title="hide/show EXIF photo data"
62
 
                                    >Photo Data(hide/show)</a>
63
 
                            </h3>
64
 
 
65
 
                            <table id="imageData" class="display-none"
66
 
                                summary="EXIF photo data">
67
 
                                <?php while (smr_next_exif()) : ?>
68
 
                                    <tr>
69
 
                                        <th><?php smr_the_exif_term() ?></th>
70
 
                                        <td><?php smr_the_exif_data() ?></td>
71
 
                                    </tr>
72
 
                                <?php endwhile ?>
73
 
                            </table>
74
 
                        </div>
75
 
                        <?php smr_end_exif(); endif; ?>
76
 
 
77
 
                    <?php else : ?>
78
 
                    <div class="grid">
79
 
                        <ul class="image">
80
 
                        <?php while(smr_have_pictures()): smr_the_picture() ?>
81
 
                            <li>
82
 
                                <span><a href="<?php smr_the_page() ?>"
83
 
                                    ><img src="<?php smr_the_thumbnail()?>"
84
 
                                    alt="<?php smr_the_caption() ?>"
85
 
                                    /></a></span>
86
 
                            </li>
87
 
                        <?php endwhile; ?>
88
 
                        </ul>
89
 
                    </div>
90
 
                    <?php endif; ?>
91
 
                <?php smr_end_gallery_pages(); endif; ?>
92
 
 
93
 
                <?php if (smr_has_galleries()) : ?>
94
 
                <div class="grid">
95
 
                    <h3>Sub Galleries</h3>
96
 
 
97
 
                    <?php smr_galleries('', 1, true) ?>
98
 
                    <br style="clear: left;" />
99
 
                </div>
100
 
                <?php endif ?>
101
 
            </div>
102
 
 
103
 
            <?php get_footer(); ?>
104
 
        </div>
105
 
    </body>
106
 
</html>