Changeset 568
- Timestamp:
- 07/25/08 08:31:16 (4 months ago)
- Location:
- trunk
- Files:
-
- 3 added
- 36 modified
-
plog-admin/css/admin.css (modified) (3 diffs)
-
plog-admin/plog-admin-functions.php (modified) (2 diffs)
-
plog-admin/plog-feedback.php (modified) (2 diffs)
-
plog-admin/plog-manage.php (modified) (8 diffs)
-
plog-admin/plog-themes.php (modified) (2 diffs)
-
plog-content/themes/air/404.php (added)
-
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/404.php (added)
-
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/header.php (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/404.php (added)
-
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/header.php (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-download.php (modified) (2 diffs)
-
plog-globals.php (modified) (1 diff)
-
plog-includes/plog-functions.php (modified) (20 diffs)
-
plog-print.php (modified) (1 diff)
-
plog-rss.php (modified) (2 diffs)
-
plog-xml.php (modified) (1 diff)
-
plogger.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plog-admin/css/admin.css
r555 r568 11 11 12 12 #theme-table td { 13 padding: 15px;14 } 15 16 #theme-table tr.header t d{13 padding: 8px; 14 } 15 16 #theme-table tr.header th { 17 17 padding: 8px; 18 18 } … … 305 305 border-top: 2px solid #ccc; 306 306 border-bottom: 2px solid #ccc; 307 width: 100%;307 width: 98%; 308 308 } 309 309 … … 404 404 405 405 #contentList #breadcrumb_links { 406 font-size: 1. 1em;407 padding: 5px 3px 5px 0;406 font-size: 1.0em; 407 padding: 3px; 408 408 } 409 409 410 410 #contentList .pagination { 411 font-size: 1.3em; 412 padding: 5px 3px 5px 0; 413 font-weight: bold; 411 font-size: 1.0em; 412 margin-right: 5px; 413 padding: 3px; 414 font-weight: bold; 415 text-align: right; 416 } 417 418 #contentList label, select, option { 419 font-weight: normal; 420 } 421 422 #contentList .entries-page { 423 text-align: right; 424 } 425 426 #contentList .entries-page label, select { 427 display: block inline; 428 margin-bottom: auto; 429 } 430 431 #contentList .move-del-manage input, select { 432 display: block inline; 433 margin-bottom: auto; 414 434 } 415 435 -
trunk/plog-admin/plog-admin-functions.php
r561 r568 1001 1001 } 1002 1002 1003 // 1003 // 1004 1004 function configure_htaccess_fullpic($allow = false) { 1005 1005 $cfg = ""; … … 1072 1072 $cfg .= "RewriteEngine on\n"; 1073 1073 $cfg .= "RewriteBase ".$rewritebase."\n"; 1074 $cfg .= "RewriteCond %{REQUEST_URI} !(\.|/\$)\n";1074 $cfg .= "RewriteCond %{REQUEST_URI} !(\.|/\$)\n"; 1075 1075 $cfg .= "RewriteRule ^.*\$ http://".parse_url($config['gallery_url'], PHP_URL_HOST)."%{REQUEST_URI}/ [R=301,L]\n"; 1076 /*$cfg .= "RewriteCond %{HTTP_HOST} !^www [NC]\n";1076 /*$cfg .= "RewriteCond %{HTTP_HOST} !^www [NC]\n"; 1077 1077 $cfg .= "RewriteRule ^(.*)\$ ".$config['gallery_url']."\$1 [R=301,L]\n";*/ 1078 1078 $cfg .= "RewriteCond %{REQUEST_FILENAME} -d [OR]\n"; -
trunk/plog-admin/plog-feedback.php
r563 r568 14 14 15 15 $possible_values = array("5"=>5, "10"=>10, "20"=>20, "50"=>50); 16 $output = plog_tr('Entries per page') . '17 <select onchange="'.$java.'" name="entries_per_page">';16 $output = "\n\t\t\t\t\t" . '<label accesskey="e" for="entries_on_page">' .plog_tr('<em>E</em>ntries per page') . '</label> 17 <select class="entries-page" onchange="'.$java.'" name="entries_per_page" style="width: 60px;">'; 18 18 foreach ($possible_values as $key => $value) 19 19 if ($_SESSION['entries_per_page'] == $key) … … 283 283 } 284 284 285 $output .= "\n\ n\t\t" . '</form>'. "\n";285 $output .= "\n\t\t" . '</form>'. "\n"; 286 286 287 287 display($output, "feedback"); -
trunk/plog-admin/plog-manage.php
r563 r568 11 11 function generate_pagination_view_menu() { 12 12 13 $java = 'document.location.href = \''.$_SERVER["PHP_SELF"].'?level='.$_REQUEST["level"]. 14 '&id='.$_REQUEST["id"].'&entries_per_page=\'+this.options[this.selectedIndex].value'; 13 $java = 'document.location.href = \''.$_SERVER["PHP_SELF"].'?level='.$_REQUEST["level"].'&id='.$_REQUEST["id"].'&entries_per_page=\'+this.options[this.selectedIndex].value'; 15 14 16 15 $possible_values = array("5"=>5, "10"=>10, "20"=>20, "50"=>50); 17 $output= '<label accesskey="e" for="entries_on_page"><em>E</em>ntries per page</label>18 <select onchange="'.$java.'" name="entries_per_page">';16 $output= "\n\t\t\t" . '<label accesskey="e" for="entries_on_page">' .plog_tr('<em>E</em>ntries per page') . '</label> 17 <select class="entries-page" onchange="'.$java.'" name="entries_per_page" style="width: 60px;">'; 19 18 foreach ($possible_values as $key => $value) 20 19 if ($_SESSION['entries_per_page'] == $key) 21 $output .= " <option value=\"$value\" selected>$key</option>";20 $output .= "\n\t\t\t\t<option value=\"$value\" selected=\"selected\">$key</option>"; 22 21 else 23 $output .= " <option value=\"$value\">$key</option>";24 $output.= '</select>';22 $output .= "\n\t\t\t\t<option value=\"$value\">$key</option>"; 23 $output.= "\n\t\t\t</select>"; 25 24 return $output; 26 25 } … … 29 28 if ($level == "albums") $parent = "collections"; 30 29 if ($level == "pictures") $parent = "albums"; 31 $output = "\n\t\t " . '<input class="submit" type="submit" name="move_checked" value="' . plog_tr("Move Checked To") . '" />';30 $output = "\n\t\t\t" . '<input class="submit" type="submit" name="move_checked" value="' . plog_tr("Move Checked To") . '" />'; 32 31 33 32 if ($level == "pictures") { … … 35 34 $output .= generate_albums_menu($albums); 36 35 } else { 37 $output .= "\n\t\t\t " . '<selectid="group_id" name="group_id">';36 $output .= "\n\t\t\t\t" . '<select class="move-del-manage" id="group_id" name="group_id">'; 38 37 $collections = get_collections(); 39 38 foreach($collections as $collection) { 40 $output .= "\n\t\t\t\t " . '<option value="'.$collection["id"].'">'.SmartStripSlashes($collection["name"]);39 $output .= "\n\t\t\t\t\t" . '<option value="'.$collection["id"].'">'.SmartStripSlashes($collection["name"]); 41 40 $output .= '</option>'; 42 41 } 43 $output .= "\n\t\t\t " . '</select>';42 $output .= "\n\t\t\t\t" . '</select>'; 44 43 } 45 44 … … 54 53 if (isset($_REQUEST["albums_menu"]) && isset($_REQUEST["new_album_name"])){ 55 54 if ($albums_menu == $album_id || $new_album_name == $album['album_name']){ 56 $selected = " selected ";55 $selected = " selected=\"selected\""; 57 56 } 58 57 } … … 125 124 $output = "\n\t" . '<h1>' . plog_tr('Manage Content') . '</h1>' . "\n"; 126 125 127 /* if ($level == "collections") { // display some high level statistics on the main page.128 $output .= '<p class="highlight">You have a total of <strong>'. count_pictures().'</strong> images within <strong>'.count_albums() .'</strong> album(s). Users have posted <strong>'. count_comments().'</strong> comment(s) to your gallery</p>'; } */126 /*if ($level == "collections") { // display some high level statistics on the main page. 127 $output .= "\n\t" . '<p class="highlight">You have a total of <strong>'. count_pictures().'</strong> images within <strong>'.count_albums() .'</strong> album(s). Users have posted <strong>'. count_comments().'</strong> comment(s) to your gallery</p>' . "\n"; } */ 129 128 130 129 global $config; … … 329 328 $totalRows = mysql_result($totalRowsResult,'num_items'); 330 329 331 $pagination_menu = "\n\t\t" . '<div class="pagination">'.generate_pagination("admin", "manage", $plog_page, $totalRows, $_SESSION['entries_per_page'], array("level" => $level, "id" => $id, "entries_per_page" => $_SESSION['entries_per_page'])).'</div>'; 330 $pagination_menu = "\n\t\t" . '<div class="entries-page">'.generate_pagination_view_menu().'</div> 331 <div class="pagination">'.generate_pagination("admin", "manage", $plog_page, $totalRows, $_SESSION['entries_per_page'], array("level" => $level, "id" => $id, "entries_per_page" => $_SESSION['entries_per_page'])).' 332 </div>'; 332 333 333 334 $output .= "\n\t\t" . '<form id="contentList" action="'.$_SERVER["PHP_SELF"].'" method="get">'; … … 336 337 337 338 if (empty($level) || $level == "collections") { 338 $output .= generate_breadcrumb_admin("").$pagination_menu;339 $output .= $pagination_menu.generate_breadcrumb_admin(""); 339 340 $output .= plog_collection_manager($first_item,$_SESSION['entries_per_page']); 340 341 } 341 342 342 343 if ($level == "albums") { 343 $output .= generate_breadcrumb_admin("albums", $id).$pagination_menu;344 $output .= $pagination_menu.generate_breadcrumb_admin("albums", $id); 344 345 $output .= plog_album_manager($id,$first_item,$_SESSION['entries_per_page']); 345 346 }; 346 347 347 348 if ($level == "pictures") { 348 $output .= generate_breadcrumb_admin("pictures", $id).$pagination_menu;349 $output .= $pagination_menu.generate_breadcrumb_admin("pictures", $id); 349 350 $output .= plog_picture_manager($id,$first_item,$_SESSION['entries_per_page']); 350 351 … … 352 353 353 354 if ($level == "comments") { 354 $output .= generate_breadcrumb_admin("comments", $id).$pagination_menu;355 $output .= $pagination_menu.generate_breadcrumb_admin("comments", $id); 355 356 $output .= plog_comment_manager($id,$first_item,$_SESSION['entries_per_page']); 356 357 }; 357 358 358 359 $output .= "\n\t\t" . '<div><a href="#" onclick="checkAll(document.getElementById(\'contentList\')); return false; ">' . plog_tr('Invert Checkbox Selection') . '</a></div> 359 '.$pagination_menu.' 360 <div><input type="hidden" name="level" value="'.$level.'" /> 361 <input type="hidden" name="id" value="'.$id.'" /> 362 <input type="hidden" name="action" value="1" /> 363 <input class="submit" type="submit" name="delete_checked" onclick="return confirm(\'' . plog_tr('Are you sure you want to delete selected items?') . '\');" value="' . plog_tr('Delete Checked') . '" />'; 360 <div class="pagination">'.generate_pagination("admin", "manage", $plog_page, $totalRows, $_SESSION['entries_per_page'], array("level" => $level, "id" => $id, "entries_per_page" => $_SESSION['entries_per_page'])).'</div> 361 <div class="move-del-manage"> 362 <input type="hidden" name="level" value="'.$level.'" /> 363 <input type="hidden" name="id" value="'.$id.'" /> 364 <input type="hidden" name="action" value="1" /> 365 <input class="submit" type="submit" name="delete_checked" onclick="return confirm(\'' . plog_tr('Are you sure you want to delete selected items?') . '\');" value="' . plog_tr('Delete Checked') . '" />'; 364 366 if (!empty($level) && $level != "collections" && $level != "comments"){ 365 367 $output .= generate_move_menu($level); -
trunk/plog-admin/plog-themes.php
r567 r568 58 58 59 59 // Output table header 60 $output .= "\n\n\t\t" . '<table id="theme-table" cellpadding=" 5" width="100%">60 $output .= "\n\n\t\t" . '<table id="theme-table" cellpadding="1" width="100%"> 61 61 <tr class="header"> 62 62 <th class="table-header-left"> </th> … … 98 98 99 99 $output .= "\t\t\t\t<td>"; 100 100 101 101 if ($preview_thumb) 102 $output .= "<div class=\"img-shadow\"><a rel=\"lightbox\" href=\"$preview_thumb_large\"><img src=\"$preview_thumb\"/></a></div>"; 103 104 $output .= "</td><td><strong>$theme_name</strong><br /> Version $version</td> 102 $output .= "<div class=\"img-shadow\"><a rel=\"lightbox\" href=\"$preview_thumb_large\"><img src=\"$preview_thumb\" alt=\"$theme_name\" /></a></div>"; 103 104 $output .= "</td> 105 <td><strong>$theme_name</strong><br /> Version $version</td> 105 106 <td>$description</td> 106 107 <td><a href=\"$url\">$author</a></td>\n"; -
trunk/plog-content/themes/air/album.php
r557 r568 22 22 </ul><!-- /slides --> 23 23 <?php else : ?> 24 <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures in this album')?>.</p> 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> 27 </div> 25 28 <?php endif; ?> 26 29 -
trunk/plog-content/themes/air/collection.php
r557 r568 24 24 25 25 <?php else : ?> 26 <p id="no-pictures-msg"><?php echo plog_tr('No albums yet')?>.</p> 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> 29 </div> 27 30 <?php endif; ?> 28 31 </div><!-- /thumbnail-container --> -
trunk/plog-content/themes/air/collections.php
r557 r568 23 23 24 24 <?php else : ?> 25 <p id="no-pictures-msg"><?php echo plog_tr('No collections yet')?>.</p> 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> 28 </div> 26 29 <?php endif; ?> 27 30 </div><!-- /thumbnail-container --> -
trunk/plog-content/themes/air/gallery.css
r557 r568 135 135 font-size: 1.4em; 136 136 text-align: center; 137 } 138 139 #error-404 { 140 /* error-404 controls the "not found" message received when going to a non-existent URL */ 141 margin: 50px; 142 text-align: justify; 137 143 } 138 144 -
trunk/plog-content/themes/air/header.php
r557 r568 1 <?php plogger_init(); ?>2 1 <div id="wrapper"> 3 2 -
trunk/plog-content/themes/air/picture.php
r557 r568 45 45 <?php endwhile; ?> 46 46 <?php else : ?> 47 <p id="no-pictures-msg"><?php echo plog_tr('No such image')?>.</p> 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> 50 </div> 48 51 <?php endif; ?> 49 52 </div><!-- /big-picture-container --> -
trunk/plog-content/themes/air/search.php
r557 r568 22 22 </ul><!-- /slides --> 23 23 <?php else : ?> 24 <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures that match this search')?>.</p> 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> 27 </div> 25 28 <?php endif; ?> 26 29 -
trunk/plog-content/themes/air/slideshow.php
r561 r568 25 25 <?php echo generate_slideshow_interface(); ?> 26 26 <?php else : ?> 27 <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures to show')?>.</p> 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> 30 </div> 28 31 29 32 <?php endif; ?> -
trunk/plog-content/themes/default/album.php
r557 r568 29 29 </ul><!-- /slides --> 30 30 <?php else : ?> 31 <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures in this album')?>.</p> 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> 34 </div> 32 35 33 36 <?php endif; ?> -
trunk/plog-content/themes/default/collection.php
r557 r568 23 23 </ul><!-- /slides --> 24 24 <?php else : ?> 25 <p id="no-pictures-msg"><?php echo plog_tr('No albums yet')?>.</p> 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> 28 </div> 26 29 27 30 <?php endif; ?> -
trunk/plog-content/themes/default/collections.php
r557 r568 22 22 </ul><!-- /slides --> 23 23 <?php else : ?> 24 <p id="no-pictures-msg"><?php echo plog_tr('No collections yet')?>.</p> 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> 27 </div> 25 28 26 29 <?php endif; ?> -
trunk/plog-content/themes/default/gallery.css
r557 r568 252 252 } 253 253 254 #error-404 { 255 margin: 50px 75px; 256 text-align: justify; 257 } 258 254 259 /* Form Structure/Elements */ 255 260 256 261 #jump_menu { 257 float: right;262 text-align: right; 258 263 } 259 264 … … 264 269 265 270 #search_box { 266 margin-left: 5px; 267 float: right; 271 text-align: right; 268 272 } 269 273 -
trunk/plog-content/themes/default/header.php
r557 r568 1 <?php plogger_init(); ?>2 1 <!--Output highest level container division--> 3 2 <div id="wrapper"> … … 7 6 <td id="jump-search-container"> 8 7 <?php echo generate_jump_menu(); ?> 9 <br /> <br />8 <br /> 10 9 <?php echo generate_search_box(); ?> 11 10 </td> -
trunk/plog-content/themes/default/picture.php
r557 r568 49 49 <?php endwhile; ?> 50 50 <?php else : ?> 51 <p id="no-pictures-msg"><?php echo plog_tr('No such image')?>.</p> 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> 54 </div> 52 55 <?php endif; ?> 53 56 </div><!-- /inner_wrapper --> -
trunk/plog-content/themes/default/search.php
r557 r568 26 26 </ul><!-- /slides --> 27 27 <?php else : ?> 28 <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures that matched your search')?>.</p> 29 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> 31 </div> 30 32 <?php endif; ?> 31 33 </div><!-- /thumbnail container --> -
trunk/plog-content/themes/default/slideshow.php
r561 r568 33 33 <?php echo generate_slideshow_interface(); ?> 34 34 <?php else : ?> 35 <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures to show')?>.</p> 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> 38 </div> 36 39 37 40 <?php endif; ?> -
trunk/plog-content/themes/lucid/album.php
r557 r568 27 27 </ul><!-- /slides --> 28 28 <?php else : ?> 29 <p id="no-pictures-msg"><?php echo plog_tr('There are no pictures in this album')?>.</p> 29 <div id="error-404"> 30 <h2><?php echo plog_tr('404
