source: trunk/themes/popup/picture.php @ 310

Revision 310, 723 bytes checked in by derek, 5 years ago (diff)

+ two new css-based themes: popup and table-free2
+ popup: uses unobtrusive javascript "Accessible Popup Links" ( http://www.alistapart.com/articles/popuplinks)
+ table-free2: uses inline-block formatting to overcome the "centering" problem with floated thumbnails

Line 
1<?php
2plogger_init();
3
4if (plogger_has_pictures()) {
5        while(plogger_has_pictures()) {
6               
7                plogger_load_picture();
8// generate XHTML with thumbnail and link to picture view.
9                $imgtag = '<img class="photos-large" src="'.plogger_get_picture_thumb(THUMB_LARGE).'" title="'.$capt.'" alt="'.$capt.'" />';
10
11                $prev_link = plogger_get_prev_picture_link();
12                $next_link = plogger_get_next_picture_link();
13
14                print '<div id="nav-link-img-prev">'.$prev_link.'</div>
15                           <div id="nav-link-img-next">'.$next_link.'</div>';
16
17                print '<div id="picture-holder">'.$imgtag.'</div>';
18
19                print '<p id="picture_description">' . plogger_get_picture_description() . '</p>';
20                }
21} else {
22        print "No such image";
23};
24?>
Note: See TracBrowser for help on using the repository browser.