Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reworking settings page

  • Loading branch information...
commit b5414b6709e6833c65da9637c2877cd944168925 2 parents e0fd550 + 158761e
@randyhoyt randyhoyt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 openphoto-wordpress.php
View
4 openphoto-wordpress.php
@@ -141,6 +141,7 @@ function media_render_openphoto_tab() {
if ( $photos ) {
if ($total_pages > 1) {
echo '<div class="tablenav-pages">';
+
if ($current_page > 1) {
echo '<a class="next page-numbers" href="?post_id='. $post_id . '&amp;type=image&amp;tab=openphoto&amp;m=' . $m . '&amp;pg='. ($current_page-1) . '">&laquo;</a> ';
}
@@ -153,6 +154,7 @@ function media_render_openphoto_tab() {
echo '<a class="page-numbers" href="?post_id=' . $post_id . '&amp;type=image&amp;tab=openphoto&amp;m=' . $m . '&amp;pg='. $i . '">'. $i . '</a> ';
}
}
+
if ($current_page < $total_pages) {
echo '<a class="next page-numbers" href="?post_id='. $post_id . '&amp;type=image&amp;tab=openphoto&amp;m=' . $m . '&amp;pg='. ($current_page+1) . '">&raquo;</a> ';
}
@@ -495,4 +497,4 @@ function settings_validate_submission( $input ) {
}
new WP_OpenPhoto;
-require_once('openphoto-php/OpenPhotoOAuth.php');
+require_once('openphoto-php/OpenPhotoOAuth.php');
Please sign in to comment.
Something went wrong with that request. Please try again.