- Timestamp:
- 02/26/08 04:36:03 (9 months ago)
- Location:
- themes
- Files:
-
- 21 modified
-
element/album.php (modified) (2 diffs)
-
element/collection.php (modified) (3 diffs)
-
element/collections.php (modified) (3 diffs)
-
element/comments.php (modified) (3 diffs)
-
element/dd_functions.php (modified) (10 diffs)
-
element/gallery.css (modified) (1 diff)
-
element/header.php (modified) (2 diffs)
-
element/meta.php (modified) (1 diff)
-
element/picture.php (modified) (3 diffs)
-
element/search.php (modified) (3 diffs)
-
element/slideshow.php (modified) (2 diffs)
-
softer/album.php (modified) (1 diff)
-
softer/collection.php (modified) (2 diffs)
-
softer/collections.php (modified) (2 diffs)
-
softer/comments.php (modified) (3 diffs)
-
softer/dynamics.js (modified) (3 diffs)
-
softer/footer.php (modified) (2 diffs)
-
softer/meta.php (modified) (1 diff)
-
softer/picture.php (modified) (1 diff)
-
softer/search.php (modified) (1 diff)
-
softer/slideshow.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
themes/element/album.php
r510 r511 15 15 $capt = plogger_get_picture_caption(); 16 16 17 if ($capt == " ") { $capt = "Untitled"; }17 if ($capt == " ") { $capt = plog_tr("Untitled"); } 18 18 19 19 $img_id = "thumb-".plogger_get_picture_id(); … … 32 32 } 33 33 else{ 34 print '<div id="no-pictures-msg"> There are no pictures in this album.</div>';34 print '<div id="no-pictures-msg">' . plog_tr('There are no pictures in this album') . '.</div>'; 35 35 } 36 36 -
themes/element/collection.php
r510 r511 20 20 <div class="downloadcheckbox">'.plogger_download_checkbox(plogger_get_collection_id()).'</div> 21 21 <div class="thumb_left"><a href="' . $img_link . '"><img class="thumb_pic" src="'.$img_pic.'" title="'.$img_desc.'" alt="'.$img_desc.'" /></a></div> 22 <h2 class="comment heading"><a href="' . $img_link . '">' . $img_name.'</a></h2>22 <h2 class="comment-heading"><a href="' . $img_link . '">' . $img_name.'</a></h2> 23 23 24 24 <div class="desc"><strong>Description:</strong> '.$img_desc.'</div> … … 26 26 <div class="piccount">Contains '.$num_pictures.' '; 27 27 28 print ($num_pictures == 1) ? "picture" : "pictures";28 print ($num_pictures == 1) ? plog_tr("picture") : plog_tr("pictures"); 29 29 30 30 print '</div></div>'; … … 32 32 print '</div>'; 33 33 } else { 34 print "No albums in this collection yet";34 print plog_tr("No albums in this collection yet"); 35 35 } 36 36 print '</div>'; -
themes/element/collections.php
r510 r511 22 22 <div class="downloadcheckbox">'.plogger_download_checkbox(plogger_get_collection_id()).'</div> 23 23 <div class="thumb_left"><a href="' . $img_link . '"><img class="thumb_pic" src="'.$img_pic.'" title="'.$img_desc.'" alt="'.$img_desc.'" /></a></div> 24 <h2 class="comment heading"><a href="' . $img_link . '">' . $img_name.'</a></h2>24 <h2 class="comment-heading"><a href="' . $img_link . '">' . $img_name.'</a></h2> 25 25 26 26 <div class="desc"><strong>Description:</strong> '.$img_desc.'</div> … … 28 28 <div class="piccount">Contains '.$num_pictures.' '; 29 29 30 print ($num_pictures == 1) ? "album" : "albums";30 print ($num_pictures == 1) ? plog_tr("album") : plog_tr("albums"); 31 31 32 32 print '</div></div>'; … … 34 34 print '</div>'; 35 35 } else { 36 print "No collections yet";36 print plog_tr("No collections yet"); 37 37 } 38 38 print '</div>'; -
themes/element/comments.php
r510 r511 1 1 <?php 2 2 if (plogger_comments_on()) { 3 print '<br /><div class="alt"><h2 class="comment heading">Comments</h2>';3 print '<br /><div class="alt"><h2 class="comment-heading">' . plog_tr('Comments') . '</h2>'; 4 4 5 5 if (plogger_picture_has_comments()) { … … 17 17 print "<li class=\"$comment_class\">"; 18 18 print "<p>".plogger_get_comment_text()."</p>"; 19 print "<cite> Comment by";19 print "<cite>" . plog_tr('Comment by') . " "; 20 20 print (trim($url) != '') ? "<a href=\"$url\">$author</a>" : "$author"; 21 print "- posted on".plogger_get_comment_date();21 print "- " . plog_tr('posted on') . " ".plogger_get_comment_date(); 22 22 23 23 print "</cite></li>"; … … 26 26 print "</ol>"; 27 27 } else { 28 print "<p> Like this picture? Don't like it?? Leave a comment!</p>";28 print "<p>" . plog_tr("Like this picture? Don't like it?? Leave a comment!") . "</p>"; 29 29 }; 30 30 31 31 if (plogger_picture_allows_comments()) { 32 32 if (plogger_comment_post_error()) { 33 print "<p class='errors'>Comment did not post! Please fill in the required fields.</p>"; 33 print "<p class='errors'>" . plog_tr('Comment did not post! Please fill in required fields.') . "</p>"; 34 }; 35 36 if (plogger_comment_moderated()) { 37 print "<p class='actions'>" . plog_tr('Your comment was placed in moderation, please wait for approval. Do not submit comment again!') . "</p>"; 34 38 }; 35 39 36 40 global $config; 37 41 38 print '<a name="comment-post"></a><h3> Add a comment:</h3>42 print '<a name="comment-post"></a><h3>' . plog_tr('Add a comment') . ':</h3> 39 43 <form action="' . $config["gallery_url"] . 'plog-comment.php" method="post" id="commentform"> 40 44 <p> 41 45 <input type="text" name="author" id="author" class="comment_field" value="" size="28" tabindex="1" /> 42 <label for="author"> Name (req\'d)</label> <input type="hidden" name="comment_post_ID" value="40" />46 <label for="author">' . plog_tr('Name') . ' ' . '(' . plog_tr("req'd") . ')</label> <input type="hidden" name="comment_post_ID" value="40" /> 43 47 <input type="hidden" name="parent" value="'.plogger_get_picture_id().'" /> 44 48 </p> 45 49 <p> 46 50 <input type="text" name="email" id="email" class="comment_field" value="" size="28" tabindex="2" /> 47 <label for="email"> Email (req\'d, but not publicly displayed)</label>51 <label for="email">' . plog_tr('Email') . ' ' . '(' . plog_tr("req'd, but not publicly displayed") . ')</label> 48 52 </p> 49 53 <p> 50 54 <input type="text" name="url" id="url" class="comment_field" value="" size="28" tabindex="3" /> 51 <label for="url"> Your Website (optional)</label>55 <label for="url">' . plog_tr('Your Website') . ' (' . plog_tr('optional') . ')</label> 52 56 </p> 53 57 <p> 54 <label for="comment"> Your Comment</label>58 <label for="comment">' . plog_tr('Your Comment') . '</label> 55 59 <br /><textarea name="comment" class="comment_field" rows="4" tabindex="4"></textarea> 56 60 </p> 57 61 <p> 58 <input type="image" src="'.$config["gallery_url"].'/themes/element/graphics/commentbutton.png" name="submit" tabindex="5" value=" Post Comment" />62 <input type="image" src="'.$config["gallery_url"].'/themes/element/graphics/commentbutton.png" name="submit" tabindex="5" value="' . plog_tr('Post Comment') . '" /> 59 63 </p> 60 64 </form>'; 61 65 62 66 } else { 63 print '<p class="comments-closed"> Comments for this entry are closed</p>';67 print '<p class="comments-closed">' . plog_tr('Comments for this entry are closed') . '</p>'; 64 68 } 65 69 -
themes/element/dd_functions.php
r510 r511 40 40 41 41 42 $latestlist = '<div id="sidebar">'.dd_generate_search_box().'<h2> Latest Images</h2><ul class="latest_list">';42 $latestlist = '<div id="sidebar">'.dd_generate_search_box().'<h2>' . plog_tr('Latest Images') . '</h2><ul class="latest_list">'; 43 43 44 44 $i = 0; … … 49 49 $caption = plogger_get_picture_caption(); 50 50 51 if ($caption == " ") { $caption = "Untitled"; }51 if ($caption == " ") { $caption = plog_tr("Untitled"); } 52 52 53 53 $thumbpath = plogger_get_picture_thumb(THUMB_SMALL); 54 54 $pagelink = plogger_get_picture_url(); 55 55 56 if ($caption == " ") $caption = 'Untitled';56 if ($caption == " ") $caption = plog_tr('Untitled'); 57 57 58 58 $latestlist .= ' … … 68 68 69 69 70 $latestlist .= '</ul><br /><br /><p> </p><h2> Random Image</h2><ul class="latest_list"><li>'.dd_get_random_pic().'</li></ul></div>';70 $latestlist .= '</ul><br /><br /><p> </p><h2>' . plog_tr('Random Image') . '</h2><ul class="latest_list"><li>'.dd_get_random_pic().'</li></ul></div>'; 71 71 72 72 echo $latestlist; … … 96 96 case 'exif': 97 97 98 return '<a href="#exif" onmouseover="domTT_activate(this, event, \'content\', \' View technical details\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-details.gif" class="control_pic"></a>';98 return '<a href="#exif" onmouseover="domTT_activate(this, event, \'content\', \'' . plog_tr('View technical details') . '\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-details.gif" class="control_pic"></a>'; 99 99 100 100 case 'comments': 101 101 102 return '<a href="#comments" onmouseover="domTT_activate(this, event, \'content\', \' Leave comments on this photo\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-comments.gif" class="control_pic"></a>';102 return '<a href="#comments" onmouseover="domTT_activate(this, event, \'content\', \'' . plog_tr('Leave comments on this photo') . '\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-comments.gif" class="control_pic"></a>'; 103 103 104 104 default: … … 114 114 115 115 if ($next_url) 116 $next_link = '<a accesskey="." href="'.$next_url.'" onmouseover="domTT_activate(this, event, \'content\', \'View the previous photo\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-previous.gif" class="control_pic"></a>'; 116 if ($config["embedded"] == 0) { 117 $next_link = '<a id="next-button" accesskey="." href="'.$next_url.'#prev-button" onmouseover="domTT_activate(this, event, \'content\', \'' . plog_tr('View the previous photo') . '\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-previous.gif" class="control_pic"></a>'; 118 } else { 119 $next_link = '<a id="next-button" accesskey="." href="'.$next_url.'" onmouseover="domTT_activate(this, event, \'content\', \'' . plog_tr('View the previous photo') . '\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-previous.gif" class="control_pic"></a>'; 120 } 117 121 else 118 $next_link = '<img src="'.$theme_dir.'graphics/icon-previous.gif" alt=" Not available" class="control_pic_faded">';122 $next_link = '<img src="'.$theme_dir.'graphics/icon-previous.gif" alt="' . plog_tr('Not available') . '" class="control_pic_faded">'; 119 123 120 124 return $next_link; … … 124 128 // Replacement previous picture function 125 129 $prev_url = plogger_get_prev_picture_url(); 126 130 127 131 if ($prev_url) 128 $prev_link = '<a accesskey="," href="'.$prev_url.'" onmouseover="domTT_activate(this, event, \'content\', \'View the next photo\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-next.gif" class="control_pic"></a>'; 132 if ($config["embedded"] == 0) { 133 $prev_link = '<a id="prev-button" accesskey="," href="'.$prev_url.'#next-button" onmouseover="domTT_activate(this, event, \'content\', \'' . plog_tr('View the next photo') . '\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-next.gif" class="control_pic"></a>'; 134 } else { 135 $prev_link = '<a id="prev-button" accesskey="," href="'.$prev_url.'" onmouseover="domTT_activate(this, event, \'content\', \'' . plog_tr('View the next photo') . '\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-next.gif" class="control_pic"></a>'; 136 } 129 137 else 130 $prev_link = '<img src="'.$theme_dir.'graphics/icon-next.gif" alt=" Not available" class="control_pic_faded">';131 138 $prev_link = '<img src="'.$theme_dir.'graphics/icon-next.gif" alt="' . plog_tr('Not available') . '" class="control_pic_faded">'; 139 132 140 return $prev_link; 133 134 141 135 142 } … … 140 147 141 148 if ($pic_link) 142 $zoom_link = '<a accesskey="v" rel="lightbox" class="horizontal" href="'.$pic_link.'" onmouseover="domTT_activate(this, event, \'content\', \' View the full-size picture\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-zoom.gif" class="control_pic"></a>';149 $zoom_link = '<a accesskey="v" rel="lightbox" class="horizontal" href="'.$pic_link.'" onmouseover="domTT_activate(this, event, \'content\', \'' . plog_tr('View the full-size picture') . '\', \'trail\', true);"><img src="'.$theme_dir.'graphics/icon-zoom.gif" class="control_pic"></a>'; 143 150 else 144 $zoom_link = '<img src="'.$theme_dir.'graphics/icon-zoom.gif" alt=" Not available" class="control_pic_faded">';151 $zoom_link = '<img src="'.$theme_dir.'graphics/icon-zoom.gif" alt="' . plog_tr('Not available') . '" class="control_pic_faded">'; 145 152 return $zoom_link; 146 153 … … 163 170 $size = round(filesize($img) / 1024, 2); 164 171 165 $table_data = '<div id="exif_table"><h2> Technical Details</h2><table class="exif">166 <tr> 167 <td><strong> Dimensions:</strong></td>172 $table_data = '<div id="exif_table"><h2>' . plog_tr('Technical Details') . '</h2><table class="exif"> 173 <tr> 174 <td><strong>' . plog_tr('Dimensions') . ':</strong></td> 168 175 <td>'.$width .' x ' .$height.'</td> 169 176 </tr> 170 177 <tr> 171 <td><strong> File size:</strong></td>178 <td><strong>' . plog_tr('File size') . ':</strong></td> 172 179 <td>'.$size.' kbytes</td> 173 180 </tr> 174 181 <tr> 175 <td><strong> Taken on:</strong></td>182 <td><strong>' . plog_tr('Taken on') . ':</strong></td> 176 183 <td>'.$row["EXIF_date_taken"].'</td> 177 184 </tr> 178 185 <tr> 179 <td><strong> Camera model:</strong></td>186 <td><strong>' . plog_tr('Camera model') . ':</strong></td> 180 187 <td>'.$row["EXIF_camera"].'</td> 181 188 </tr> 182 189 <tr> 183 <td><strong> Shutter speed:</strong></td>190 <td><strong>' . plog_tr('Shutter speed') . ':</strong></td> 184 191 <td>'.$row["EXIF_shutterspeed"].'</td> 185 192 </tr> 186 193 <tr> 187 <td><strong> Focal length:</strong></td>194 <td><strong>' . plog_tr('Focal length') . ':</strong></td> 188 195 <td>'.$row["EXIF_focallength"].'</td> 189 196 </tr> 190 197 <tr> 191 <td><strong> Aperture:</strong></td>198 <td><strong>' . plog_tr('Aperture') . ':</strong></td> 192 199 <td>'.$row["EXIF_aperture"].'</td> 193 200 </tr> … … 224 231 $caption = SmartStripSlashes(basename($row["caption"])); 225 232 226 if (!$caption) { $caption = 'Untitled'; }233 if (!$caption) { $caption = plog_tr('Untitled'); } 227 234 228 235 $pic_path = $row["path"]; … … 263 270 if ($input_old) { 264 271 $img_dir = $theme_dir.'graphics/searchbutton.png'; 265 $input_text = '<input type="image" src="'.$img_dir.'" value=" Search"';266 return str_replace('<input class="submit" type="submit" value=" Search"',$input_text,$input_old);272 $input_text = '<input type="image" src="'.$img_dir.'" value="' . plog_tr('Search') . '"'; 273 return str_replace('<input class="submit" type="submit" value="' . plog_tr('Search') . '"',$input_text,$input_old); 267 274 } else { 268 275 return; -
themes/element/gallery.css
r510 r511 400 400 margin: 30px 0 0; 401 401 } 402 h2.comment heading {402 h2.comment-heading { 403 403 margin: 0 0 5px; 404 404 } -
themes/element/header.php
r510 r511 3 3 4 4 $home_dir = $config["baseurl"]; 5 6 // print('*'.$config["baseurl"].'*'.$config["basedir"].'*'); 7 $config["baseurl"] = '/galleri/'; 8 //$config["baseurl"] = $config["galleryurl"]; 5 9 6 10 include(THEME_DIR .'/dd_functions.php'); … … 13 17 14 18 <div id="top_navigation"> 15 <div id="header_links">Edit header.php to insert your own links here...</div> 16 19 <div id="header_links">' . plog_tr('Send an email to') . ' <a href="mailto:lulopete@mail.dk">' . plog_tr('the gallery owner') . '</a></div> 17 20 18 21 </div> -
themes/element/meta.php
r510 r511 2 2 3 3 $theme_name = "element"; 4 $version = "1. 0";4 $version = "1.1"; 5 5 $author = "Ben Grant"; 6 6 $url = "http://www.digitaldusk.com/"; -
themes/element/picture.php
r510 r511 9 9 $picture_description = plogger_get_picture_description(); 10 10 11 if ($picture_caption == ' ') $picture_caption = 'Untitled';11 if ($picture_caption == ' ') $picture_caption = plog_tr('Untitled'); 12 12 13 13 $imgtag = '<img src="'.plogger_get_picture_thumb(THUMB_LARGE).'" title="'.$capt.'" alt="'.$capt.'" />'; … … 20 20 $thumb_collection = plogger_get_thumbnail_nav(); 21 21 22 print '<div id="picture_nav"><div id="picture_controls">'.$next_link.' '.$zoom_link.' '.$prev_link.' '.$exif_link.' '.$comments_link.'</div>'.$thumb_collection.'</div> 22 print '<div id="picture_nav"><div id="picture_controls">'. 23 $next_link.' '. 24 $zoom_link.' '. 25 $prev_link.' '. 26 $exif_link.' '. 27 $comments_link.'</div>'. 28 $thumb_collection.'</div> 23 29 24 30 <div id="picture_holder">'.$imgtag.'</div><br /> … … 35 41 } 36 42 } else { 37 print "No such image";43 print plog_tr("No such image"); 38 44 }; 39 45 plogger_get_footer(); -
themes/element/search.php
r510 r511 15 15 $capt = plogger_get_picture_caption(); 16 16 17 if ($capt == " ") { $capt = "Untitled"; }17 if ($capt == " ") { $capt = plog_tr("Untitled"); } 18 18 19 19 $img_id = "thumb-".plogger_get_picture_id(); … … 21 21 . '" class="photos" src="'.plogger_get_picture_thumb().'" />'; 22 22 23 print '<li class="thumbnail"><a href="' . plogger_get_picture_url() . '" onmouseover="domTT_activate(this, event, \'content\', \''.$capt.'\', \'trail\', true);">' . $imgtag . '</a><br />';23 print '<li class="thumbnail"><a href="' . plogger_get_picture_url() . '" onmouseover="domTT_activate(this, event, \'content\', \''.$capt.'\', \'trail\', true);">' . $imgtag . '</a><br/>'; 24 24 25 25 print plogger_download_checkbox(plogger_get_picture_id()); … … 32 32 } 33 33 else{ 34 print '<div id="no-pictures-msg"> There are no pictures that matched your search.</div>';34 print '<div id="no-pictures-msg">' . plog_tr('There are no pictures that matched your search') . '.</div>'; 35 35 } 36 36 -
themes/element/slideshow.php
r510 r511 24 24 25 25 } else { 26 print '<div id="no-pictures-msg"> No pictures to show.</div>';26 print '<div id="no-pictures-msg">' . plog_tr('No pictures to show') . '.</div>'; 27 27 } 28 28 print '</div>'; … … 32 32 $gfx_dir = $config["baseurl"] . '/themes/element/graphics/'; 33 33 34 $large_link = '<a accesskey="v" href="javascript:slides.hotlink()" title=" View Large Image"><img hspace="1" src="'.$config["baseurl"].'themes/digitaldusk/graphics/icon-zoom.gif"></a>';34 $large_link = '<a accesskey="v" href="javascript:slides.hotlink()" title="' . plog_tr('View Large Image') . '"><img hspace="1" src="'.$config["baseurl"].'themes/digitaldusk/graphics/icon-zoom.gif"></a>'; 35 35 36 $prev_url = '<a accesskey="," title=" Previous Image"36 $prev_url = '<a accesskey="," title="' . plog_tr('Previous Image') . '" 37 37 href="javascript: slides.previous();"><img hspace="1" src="'.$gfx_dir.'icon-previous.gif"></a>'; 38 38 39 $next_url = '<a accesskey="." title=" Next Image"39 $next_url = '<a accesskey="." title="' . plog_tr('Next Image') . '" 40 40 href="javascript: slides.next();"><img hspace="1" src="'.$gfx_dir.'icon-next.gif"></a>'; 41 41 42 $stop_url = '<a accesskey="x" title=" Stop Slideshow"42 $stop_url = '<a accesskey="x" title="' . plog_tr('Stop Slideshow') . '" 43 43 href="javascript: slides.pause();"><img hspace="1" src="'.$gfx_dir.'icon-stop.gif"></a>'; 44 44 45 $play_url = '<a accesskey="s" title=" Start Slideshow"45 $play_url = '<a accesskey="s" title="' . plog_tr('Start Slideshow') . '" 46 46 href="javascript: slides.play();"><img hspace="1" src="'.$gfx_dir.'icon-play.gif"></a>'; 47 47 -
themes/softer/album.php
r510 r511 35 35 <?php else : ?> 36 36 37 <div id="no-pictures-msg"> There are no pictures in this album.</div>37 <div id="no-pictures-msg"><?php plog_tr('There are no pictures in this album');?>.</div> 38 38 39 39 <?php endif; ?> -
themes/softer/collection.php
r510 r511 29 29 <?php echo plogger_download_checkbox(plogger_get_album_id()); ?> 30 30 31 <span class="meta-header"> Contains <?php echo $num_albums . ' '; echo ($num_albums == 1) ? "Picture" : "Pictures"; ?></span>31 <span class="meta-header"><?php echo plog_tr('Contains') . ' ' . $num_albums . ' '; echo ($num_albums == 1) ? plog_tr('Picture') : plog_tr('Pictures'); ?></span> 32 32 33 33 <p class="description"><?php echo $desc; ?></p> … … 41 41 <?php else : ?> 42 42 43 <p> No albums yet</p>43 <p><?php echo plog_tr('No albums yet')?></p> 44 44 45 45 <?php endif; ?> -
themes/softer/collections.php
r510 r511 27 27 <?php echo plogger_download_checkbox(plogger_get_collection_id()); ?> 28 28 29 <span class="meta-header"> Contains <?php echo $num_albums . ' '; echo ($num_albums == 1) ? "Album" : "Albums"; ?></span>29 <span class="meta-header"><?php echo plog_tr('Contains') . ' ' . $num_albums . ' '; echo ($num_albums == 1) ? plog_tr("Album") : plog_tr("Albums"); ?></span> 30 30 31 31 <p class="description"><?php echo $desc; ?></p> … … 39 39 <?php else : ?> 40 40
