Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Final Code

By: a guest on Jan 19th, 2013  |  syntax: PHP  |  size: 0.29 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.     $images = intval($wpdb->get_var("SELECT COUNT(*) FROM $wpdb->nggpictures"));
  3.     $ngg_options = nggGallery::get_option("ngg_options");
  4.     $maxElement = $ngg_options["galImages"];
  5.     if ($images > $maxElement) {
  6.         echo "<div class='ngg-navigation-end'><!-- --></div>";
  7.     }
  8. ?>