/** * handle NextGEN Gallery 2 tag galleries * @param stdClass $gallery * @return stdClass */ public static function ngg2GalleryObject($gallery) { if ($gallery->displayed_gallery->source == 'tags') { self::$taglist = implode(',', $gallery->displayed_gallery->container_ids); $gallery = self::nggGalleryObjectTagged($gallery); } else { self::$taglist = ''; } return $gallery; }
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. This program incorporates some code that is copyright by Photocrati Media 2012 under the GPLv2. Please see the readme.txt file distributed with NextGEN Gallery for more information: https://wordpress.org/plugins/nextgen-gallery/ */ if (!defined('ABSPATH')) { die('No direct access allowed'); } if (!defined('NGG_DLGALL_PLUGIN_ROOT')) { define('NGG_DLGALL_PLUGIN_ROOT', dirname(__FILE__) . '/'); define('NGG_DLGALL_PLUGIN_NAME', basename(dirname(__FILE__)) . '/' . basename(__FILE__)); define('NGG_DLGALL_PLUGIN_FILE', __FILE__); define('NGG_DLGALL_PLUGIN_VERSION', '1.5.2'); define('NGG_DLGALL_OPTIONS', 'ngg_dlgallery'); } require NGG_DLGALL_PLUGIN_ROOT . 'includes/class.NextGENDownloadGallery.php'; NextGENDownloadGallery::run();
<?php } ?> <hr class="ngg-download-separator" /> <input class="button ngg-download-selectall" type="button" style="display:none" value="<?php _e('select all', 'nextgen-download-gallery'); ?> " /> <input class="button ngg-download-download downloadButton" type="submit" value="<?php _e('download selected images', 'nextgen-download-gallery'); ?> " /> <?php // get gallery ID for downloading all images, or false if not configured to do so $ngg_dlgallery_all_id = NextGENDownloadGallery::getDownloadAllId($gallery); if ($ngg_dlgallery_all_id) { ?> <input class="button ngg-download-everything" type="submit" name="download-all" style="display:none" value="<?php _e('download all images', 'nextgen-download-gallery'); ?> " /> <input type="hidden" name="all-id" value="<?php echo esc_attr($ngg_dlgallery_all_id); ?> " /> <?php } ?> </form>