- Timestamp:
- 08/01/08 14:30:36 (4 months ago)
- Location:
- trunk
- Files:
-
- 28 modified
-
plog-admin/plog-admin-functions.php (modified) (5 diffs)
-
plog-admin/plog-admin.php (modified) (1 diff)
-
plog-admin/plog-import.php (modified) (7 diffs)
-
plog-admin/plog-themes.php (modified) (1 diff)
-
plog-admin/plog-upload.php (modified) (1 diff)
-
plog-content/themes/air/album.php (modified) (1 diff)
-
plog-content/themes/air/collection.php (modified) (1 diff)
-
plog-content/themes/air/collections.php (modified) (1 diff)
-
plog-content/themes/air/gallery.css (modified) (1 diff)
-
plog-content/themes/air/header.php (modified) (1 diff)
-
plog-content/themes/air/picture.php (modified) (1 diff)
-
plog-content/themes/air/search.php (modified) (1 diff)
-
plog-content/themes/air/slideshow.php (modified) (1 diff)
-
plog-content/themes/default/album.php (modified) (1 diff)
-
plog-content/themes/default/collection.php (modified) (1 diff)
-
plog-content/themes/default/collections.php (modified) (1 diff)
-
plog-content/themes/default/gallery.css (modified) (2 diffs)
-
plog-content/themes/default/picture.php (modified) (1 diff)
-
plog-content/themes/default/search.php (modified) (1 diff)
-
plog-content/themes/default/slideshow.php (modified) (1 diff)
-
plog-content/themes/lucid/album.php (modified) (1 diff)
-
plog-content/themes/lucid/collection.php (modified) (1 diff)
-
plog-content/themes/lucid/collections.php (modified) (1 diff)
-
plog-content/themes/lucid/gallery.css (modified) (1 diff)
-
plog-content/themes/lucid/picture.php (modified) (1 diff)
-
plog-content/themes/lucid/search.php (modified) (1 diff)
-
plog-content/themes/lucid/slideshow.php (modified) (1 diff)
-
plog-includes/plog-functions.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-admin/plog-admin-functions.php
r571 r572 63 63 } 64 64 $output.= "\n\t\t\t".'</select>'; 65 $output.= "\n\t\t\t".'<input id="pagination-go" class="submit" type="submit" value="' . plog_tr('Go') . '" />'; 66 $output.= "\n\t\t\t<script type=\"text/javascript\">toggle('pagination-go');</script>\n";; 65 67 return $output; 66 68 } … … 1181 1183 // so plugins could add new fields to all those forms. 1182 1184 function plog_add_collection_form() { 1183 $output = "\n\t\t" . '<input type="button" class="submit" id="show-collection" onclick="toggle(\'create-collection\'); toggle(\'show-collection\')" value="' . plog_tr('Create a Collection') . '" />';1185 $output = "\n\t\t" . '<input type="button" class="submit" id="show-collection" onclick="toggle(\'create-collection\'); toggle(\'show-collection\')" value="' . plog_tr('Create a Collection') . '" style="display: none;" />'; 1184 1186 $output .= "\n\t\t" . '<form action="'.$_SERVER["PHP_SELF"].'" method="post"> 1185 <div id="create-collection" class="cssbox-green" style="width: 385px !important; display: none;">1187 <div id="create-collection" class="cssbox-green" style="width: 385px !important;"> 1186 1188 <div class="cssbox_head-green"><h2>' . plog_tr('Create a Collection') . '</h2></div> 1187 1189 <div class="cssbox_body-green"> … … 1195 1197 </div> 1196 1198 </form>' . "\n"; 1199 $output .= "\n\t\t<script type=\"text/javascript\">toggle('create-collection'); toggle('show-collection');</script>\n"; 1197 1200 return $output; 1198 1201 } … … 1200 1203 function plog_add_album_form($parent_collection) { 1201 1204 $parent_collection = intval($parent_collection); 1202 $output = "\n\t\t" . '<input type="button" class="submit" id="show-album" onclick="toggle(\'create-album\'); toggle(\'show-album\')" value="' . plog_tr('Create an Album') . '" />';1205 $output = "\n\t\t" . '<input type="button" class="submit" id="show-album" onclick="toggle(\'create-album\'); toggle(\'show-album\')" value="' . plog_tr('Create an Album') . '" style="display: none;" />'; 1203 1206 $output .= "\n\t\t" . '<form action="'.$_SERVER["REQUEST_URI"].'" method="post"> 1204 <div id="create-album" class="cssbox-green" style="width: 385px !important; display: none;">1207 <div id="create-album" class="cssbox-green" style="width: 385px !important;"> 1205 1208 <div class="cssbox_head-green"><h2>' . plog_tr('Create an Album') . '</h2></div> 1206 1209 <div class="cssbox_body-green"> … … 1215 1218 </div> 1216 1219 </form>' . "\n"; 1220 $output .= "\n\t\t<script type=\"text/javascript\">toggle('create-album'); toggle('show-album');</script>\n"; 1217 1221 return $output; 1218 1222 } -
trunk/plog-admin/plog-admin.php
r570 r572 34 34 $tabs = array(); 35 35 $tabs['upload'] = array('url' => 'plog-upload.php','caption' => plog_tr('<em>U</em>pload')); 36 $tabs['import'] = array('url' => 'plog-import.php ','caption' => plog_tr('<em>I</em>mport'));36 $tabs['import'] = array('url' => 'plog-import.php?nojs=1','caption' => plog_tr('<em>I</em>mport'), 'onclick' => "window.location='plog-import.php'; return false;"); 37 37 $tabs['manage'] = array('url' => 'plog-manage.php','caption' => plog_tr('<em>M</em>anage')); 38 $tabs['feedback'] = array('url' => 'plog-feedback.php','caption' => plog_tr('<em>F</em>eedback'));38 $tabs['feedback'] = array('url' => 'plog-feedback.php','caption' => plog_tr('<em>F</em>eedback')); 39 39 $tabs['options'] = array('url' => 'plog-options.php','caption' => plog_tr('<em>O</em>ptions')); 40 $tabs['themes'] = array('url' => 'plog-themes.php','caption' => plog_tr('<em>T</em>hemes'));40 $tabs['themes'] = array('url' => 'plog-themes.php','caption' => plog_tr('<em>T</em>hemes')); 41 41 $tabs['view'] = array('url' => $config['gallery_url'],'caption' => plog_tr('<em>V</em>iew'), 'target' => '_blank'); 42 42 $tabs['support'] = array('url' => 'http://www.plogger.org/forum/','caption' => plog_tr('<em>S</em>upport'), 'target' => '_blank'); -
trunk/plog-admin/plog-import.php
r558 r572 43 43 $output = ''; 44 44 $counter = $imported = 0; 45 46 // see if the 'nojs' flag has been set if javascript disabled and create query & separator strings for URLs 47 $query = (isset($_GET['nojs'])) ? "?nojs=".$_GET['nojs'] : ''; 48 $sep = (isset($_GET['nojs'])) ? "&" : '?'; 45 49 46 50 // Check if update has been clicked, handle erroneous conditions, or upload … … 159 163 160 164 foreach ($directories as $dirkey => $group) { 161 $output .= "\n\t\t\t" . '<li><a class="folder" href="'.$_SERVER['PHP_SELF']. "?directory=$dirkey".'">'.basename($group).'</a></li>';165 $output .= "\n\t\t\t" . '<li><a class="folder" href="'.$_SERVER['PHP_SELF'].$query.$sep.'directory='.$dirkey.'">'.basename($group).'</a></li>'; 162 166 } 163 167 164 168 $upload_directory = $config['basedir'] . 'plog-content/uploads'; 165 169 $dirkey = md5($upload_directory); 166 $output .= "\n\t\t\t" . '<li><a class="folder" href="'.$_SERVER['PHP_SELF']. "?directory=$dirkey".'">' . plog_tr('All Pictures') . '</a></li>';170 $output .= "\n\t\t\t" . '<li><a class="folder" href="'.$_SERVER['PHP_SELF'].$query.$sep.'directory='.$dirkey.'">' . plog_tr('All Pictures') . '</a></li>'; 167 171 $output .= "\n\t\t</ul>\n\t</div>\n"; 168 172 … … 208 212 $output .= "\n\t\t\t<ul>"; 209 213 foreach ($directories as $dirkey => $group) { 210 $output .= "\n\t\t\t\t" . '<li><a class="folder" href="'.$_SERVER['PHP_SELF']. "?directory=$dirkey".'">'.basename($group).'</a></li>';214 $output .= "\n\t\t\t\t" . '<li><a class="folder" href="'.$_SERVER['PHP_SELF'].$query.$sep.'directory='.$dirkey.'">'.basename($group).'</a></li>'; 211 215 } 212 216 //$dirkey = md5($upload_directory); 213 // $output .= '<li><a class="folder" href="'.$_SERVER['PHP_SELF']. '?directory='.$dirkey.'">All pictures</a></li>';217 // $output .= '<li><a class="folder" href="'.$_SERVER['PHP_SELF'].$query.$sep.'directory='.$dirkey.'">All pictures</a></li>'; 214 218 $output .= "\n\t\t\t</ul>\n\t\t</div>\n"; 215 219 … … 229 233 $files = get_files($real_directory); 230 234 231 if (count($files) > 0) 232 $output .= "\n\n\t\t" . '<p class="actions">' . sprintf(plog_tr('You are currently looking at <strong>%d</strong> image(s) within the <strong>%s</strong> directory.<br />' . "\n\t\t" . 'Creating thumbnails: %s done.'),count($files),$show_directory,'<span id="progress">0%</span>') . '</p>' . "\n"; 235 if (count($files) > 0) { 236 $percent = (isset($_GET['nojs'])) ? '100%': '0%'; 237 $output .= "\n\n\t\t" . '<p class="actions">' . sprintf(plog_tr('You are currently looking at <strong>%d</strong> image(s) within the <strong>%s</strong> directory.<br />' . "\n\t\t" . 'Creating thumbnails: %s done.'), count($files), $show_directory, '<span id="progress">'.$percent.'</span>') . '</p>' . "\n"; 238 } 233 239 234 240 // check to make sure album is writable and readable, and issue warning … … 245 251 $relative_name = substr($files[$i],strlen($upload_directory)+1); 246 252 if ($i == 0) 247 $output.= "\n\t\t\t" . '<form id="uploadForm" action="'.$_SERVER["PHP_SELF"]. '" method="post" enctype="multipart/form-data">253 $output.= "\n\t\t\t" . '<form id="uploadForm" action="'.$_SERVER["PHP_SELF"].$query.'" method="post" enctype="multipart/form-data"> 248 254 <table> 249 255 <tr class="header"> … … 258 264 // new loop code - it works - yea! 259 265 $table_row_color = ($counter%2) ? "color-1" : "color-2"; 266 if (isset($_GET['nojs'])) { 267 $thumbpath = generate_thumb($upload_directory.'/'.$relative_name,"import-".substr($file_key,0,2),THUMB_SMALL); 268 } else { 269 $thumbpath = $config['gallery_url'].'plog-admin/images/ajax-loader.gif'; 270 } 260 271 // start a new table row (alternating colors) and generate XHTML with thumbnail and link to picture view. 261 272 $output .= "\n\t\t\t\t" . '<tr class="'.$table_row_color.'"> 262 273 <td><input type="checkbox" name="Selected[]" value="'.$file_key.'" checked="checked" /></td> 263 <td><div class="img-shadow" id="pic_'.$file_key . '"><img src="'.$ config['gallery_url'].'plog-admin/images/ajax-loader.gif" alt="loading" /></div></td>274 <td><div class="img-shadow" id="pic_'.$file_key . '"><img src="'.$thumbpath.'" alt="thumbnail" /></div></td> 264 275 <td>'.basename($files[$i]).'</td> 265 276 <td> … … 340 351 341 352 $output .= "\n\t</form>"; 342 $key_arr = join(",\n\t\t",$keys); 343 344 $output .= "\n\n\t<script type=\"text/javascript\">\n\tvar importThumbs=[\n\t\t"; 345 $output .= $key_arr; 346 $output .= "];\n"; 347 $output .="\trequestImportThumb();\n\t</script>\n"; 353 if (!isset($_GET['nojs'])) { 354 $key_arr = join(",\n\t\t",$keys); 355 356 $output .= "\n\n\t<script type=\"text/javascript\">\n\tvar importThumbs=[\n\t\t"; 357 $output .= $key_arr; 358 $output .= "];\n"; 359 $output .="\trequestImportThumb();\n\t</script>\n"; 360 } 348 361 } 349 362 } -
trunk/plog-admin/plog-themes.php
r570 r572 87 87 // generate large Lightbox preview thumb, update thumb if preview.png has been updated 88 88 $thumbnail_config[THUMB_LARGE]['timestamp'] = $timestamp; 89 $thumbnail_config[THUMB_LARGE]['disabled'] = 0; 89 90 $preview_thumb_large = generate_thumb($theme_folder_name . "preview.png", $theme_name, THUMB_LARGE); 90 91 -
trunk/plog-admin/plog-upload.php
r570 r572 13 13 $albums_menu = isset($_REQUEST['albums_menu']) ? $_REQUEST['albums_menu'] : ''; 14 14 $new_album_name = isset($_REQUEST['new_album_name']) ? $_REQUEST['new_album_name'] : ''; 15 $output = "\n\t\t\t\t\t\t<select name=\"albums_menu\" onclick=\"var k=document.getElementsByName( \'destination_radio\');k[0].checked=true;\">";15 $output = "\n\t\t\t\t\t\t<select name=\"albums_menu\" onclick=\"var k=document.getElementsByName('destination_radio');k[0].checked=true;\">"; 16 16 foreach($albums as $album_id => $album) { 17 17 -
trunk/plog-content/themes/air/album.php
r568 r572 22 22 </ul><!-- /slides --> 23 23 <?php else : ?> 24 <div id=" error-404">25 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>26 <p><?php echo plog_tr(' We are sorry, but the image that you requested does not exist. You might try using the <strong>Search</strong> feature to locate the image you are looking for.')?></p>24 <div id="no-pictures-msg"> 25 <h2><?php echo plog_tr('No Images') ?></h2> 26 <p><?php echo plog_tr('Sorry, but there are no images in this album yet.') ?></p> 27 27 </div> 28 28 <?php endif; ?> -
trunk/plog-content/themes/air/collection.php
r568 r572 24 24 25 25 <?php else : ?> 26 <div id=" error-404">27 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>28 <p><?php echo plog_tr(' We are sorry, but the collection that you requested does not exist.')?></p>26 <div id="no-pictures-msg"> 27 <h2><?php echo plog_tr('No Albums') ?></h2> 28 <p><?php echo plog_tr('Sorry, but there are no images or albums in this collection yet.') ?></p> 29 29 </div> 30 30 <?php endif; ?> -
trunk/plog-content/themes/air/collections.php
r568 r572 23 23 24 24 <?php else : ?> 25 <div id=" error-404">26 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>27 <p><?php echo plog_tr(' We are sorry, but the collection that you requested does not exist.')?></p>25 <div id="no-pictures-msg"> 26 <h2><?php echo plog_tr('No Images') ?></h2> 27 <p><?php echo plog_tr('Sorry, but there are no images in this gallery yet.') ?></p> 28 28 </div> 29 29 <?php endif; ?> -
trunk/plog-content/themes/air/gallery.css
r568 r572 131 131 #no-pictures-msg { 132 132 /* #no-pictures-msg controls the "no collections", "no albums", and "no picture" messages displayed when a visitor goes to a page without collections, albums, or a picture */ 133 margin: 0 0 200px; 134 padding: 80px 0; 135 font-size: 1.4em; 136 text-align: center; 133 margin: 50px; 134 text-align: justify; 137 135 } 138 136 -
trunk/plog-content/themes/air/header.php
r568 r572 14 14 15 15 </div> 16 <?php echo generate_breadcrumb( ); ?>16 <?php echo generate_breadcrumb("Home", " | "); ?> 17 17 18 18 </div><!-- /breadcrumbs --> -
trunk/plog-content/themes/air/picture.php
r568 r572 45 45 <?php endwhile; ?> 46 46 <?php else : ?> 47 <div id=" error-404">48 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>49 <p><?php echo plog_tr(' We are sorry, but the image that you requested does not exist. You might try using the <strong>Search</strong> feature to locate the image you are looking for.')?></p>47 <div id="no-pictures-msg"> 48 <h2><?php echo plog_tr('Not Found') ?></h2> 49 <p><?php echo plog_tr('Sorry, but the image that you requested does not exist.') ?></p> 50 50 </div> 51 51 <?php endif; ?> -
trunk/plog-content/themes/air/search.php
r568 r572 22 22 </ul><!-- /slides --> 23 23 <?php else : ?> 24 <div id=" error-404">25 <h2><?php echo plog_tr('Search Results') ?></h2>26 <p><?php echo plog_tr(' We are sorry, but there are no pictures that matched your search.')?></p>24 <div id="no-pictures-msg"> 25 <h2><?php echo plog_tr('Search Results') ?></h2> 26 <p><?php echo plog_tr('Sorry, but there are no images that matched your search terms.') ?></p> 27 27 </div> 28 28 <?php endif; ?> -
trunk/plog-content/themes/air/slideshow.php
r568 r572 25 25 <?php echo generate_slideshow_interface(); ?> 26 26 <?php else : ?> 27 <div id=" error-404">28 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>29 <p><?php echo plog_tr(' We are sorry, but there are no images in this album to create a slideshow with.')?></p>27 <div id="no-pictures-msg"> 28 <h2><?php echo plog_tr('No Images') ?></h2> 29 <p><?php echo plog_tr('Sorry, but there are no images in this album to create a slideshow with.') ?></p> 30 30 </div> 31 32 31 <?php endif; ?> 33 32 -
trunk/plog-content/themes/default/album.php
r568 r572 29 29 </ul><!-- /slides --> 30 30 <?php else : ?> 31 <div id=" error-404">32 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>33 <p><?php echo plog_tr(' We are sorry, but the image that you requested does not exist. You might try using the <strong>Search</strong> feature to locate the image you are looking for.')?></p>31 <div id="no-pictures-msg"> 32 <h2><?php echo plog_tr('No Images') ?></h2> 33 <p><?php echo plog_tr('Sorry, but there are no images in this album yet.') ?></p> 34 34 </div> 35 36 35 <?php endif; ?> 37 36 </div><!-- /thumbnail container --> -
trunk/plog-content/themes/default/collection.php
r568 r572 23 23 </ul><!-- /slides --> 24 24 <?php else : ?> 25 <div id=" error-404">26 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>27 <p><?php echo plog_tr(' We are sorry, but the collection that you requested does not exist.')?></p>25 <div id="no-pictures-msg"> 26 <h2><?php echo plog_tr('No Albums') ?></h2> 27 <p><?php echo plog_tr('Sorry, but there are no images or albums in this collection yet.') ?></p> 28 28 </div> 29 30 29 <?php endif; ?> 31 30 </div><!-- /thumbnail container --> -
trunk/plog-content/themes/default/collections.php
r568 r572 22 22 </ul><!-- /slides --> 23 23 <?php else : ?> 24 <div id=" error-404">25 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>26 <p><?php echo plog_tr(' We are sorry, but the collection that you requested does not exist.')?></p>24 <div id="no-pictures-msg"> 25 <h2><?php echo plog_tr('No Images') ?></h2> 26 <p><?php echo plog_tr('Sorry, but there are no images in this gallery yet.') ?></p> 27 27 </div> 28 29 28 <?php endif; ?> 30 29 </div><!-- /thumbnail container --> -
trunk/plog-content/themes/default/gallery.css
r568 r572 252 252 } 253 253 254 #error-404 {254 #error-404, #no-pictures-msg { 255 255 margin: 50px 75px; 256 256 text-align: justify; … … 419 419 /* Success/Error Messages */ 420 420 421 #no-pictures-msg {422 text-align: center;423 padding: 15px 0;424 }425 426 421 .errors { 427 422 width: 500px; -
trunk/plog-content/themes/default/picture.php
r568 r572 49 49 <?php endwhile; ?> 50 50 <?php else : ?> 51 <div id=" error-404">52 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>53 <p><?php echo plog_tr(' We are sorry, but the image that you requested does not exist. You might try using the <strong>Search</strong> feature to locate the image you are looking for.')?></p>51 <div id="no-pictures-msg"> 52 <h2><?php echo plog_tr('Not Found') ?></h2> 53 <p><?php echo plog_tr('Sorry, but the image that you requested does not exist.') ?></p> 54 54 </div> 55 55 <?php endif; ?> -
trunk/plog-content/themes/default/search.php
r568 r572 26 26 </ul><!-- /slides --> 27 27 <?php else : ?> 28 <div id=" error-404">29 <h2><?php echo plog_tr('Search Results') ?></h2>30 <p><?php echo plog_tr(' We are sorry, but there are no pictures that matched your search.')?></p>28 <div id="no-pictures-msg"> 29 <h2><?php echo plog_tr('Search Results') ?></h2> 30 <p><?php echo plog_tr('Sorry, but there are no images that matched your search terms.') ?></p> 31 31 </div> 32 32 <?php endif; ?> -
trunk/plog-content/themes/default/slideshow.php
r568 r572 33 33 <?php echo generate_slideshow_interface(); ?> 34 34 <?php else : ?> 35 <div id=" error-404">36 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>37 <p><?php echo plog_tr(' We are sorry, but there are no images in this album to create a slideshow with.')?></p>35 <div id="no-pictures-msg"> 36 <h2><?php echo plog_tr('No Images') ?></h2> 37 <p><?php echo plog_tr('Sorry, but there are no images in this album to create a slideshow with.') ?></p> 38 38 </div> 39 40 39 <?php endif; ?> 41 40 -
trunk/plog-content/themes/lucid/album.php
r568 r572 27 27 </ul><!-- /slides --> 28 28 <?php else : ?> 29 <div id=" error-404">30 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>31 <p><?php echo plog_tr(' We are sorry, but the image that you requested does not exist. You might try using the <strong>Search</strong> feature to locate the image you are looking for.')?></p>29 <div id="no-pictures-msg"> 30 <h2><?php echo plog_tr('No Images') ?></h2> 31 <p><?php echo plog_tr('Sorry, but there are no images in this album yet.') ?></p> 32 32 </div> 33 34 33 <?php endif; ?> 35 34 </div><!-- /thumbnail container --> -
trunk/plog-content/themes/lucid/collection.php
r568 r572 24 24 </div><!-- /collections --> 25 25 <?php else : ?> 26 <div id=" error-404">27 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>28 <p><?php echo plog_tr(' We are sorry, but the collection that you requested does not exist.')?></p>26 <div id="no-pictures-msg"> 27 <h2><?php echo plog_tr('No Albums') ?></h2> 28 <p><?php echo plog_tr('Sorry, but there are no images or albums in this collection yet.') ?></p> 29 29 </div> 30 30 <?php endif; ?> -
trunk/plog-content/themes/lucid/collections.php
r568 r572 23 23 </div><!-- /collections --> 24 24 <?php else : ?> 25 <div id=" error-404">26 <h2><?php echo plog_tr(' 404 - Not Found')?></h2>27 <p><?php echo plog_tr(' We are sorry, but the collection that you requested does not exist.')?></p>25 <div id="no-pictures-msg"> 26 <h2><?php echo plog_tr('No Images') ?></h2> 27 <p><?php echo plog_tr('Sorry, but there are no images in this gallery yet.') ?></p> 28 28 </div> 29 29 <?php endif; ?> -
trunk/plog-content/themes/lucid/gallery.css
