<?php defined('WPINC') or exit; include_once DG_PATH . 'inc/class-gallery-sanitization.php'; DG_Gallery::init(); /** * Holds data specific to a given document gallery. * * @author drossiter */ class DG_Gallery { /*========================================================================== * PRIVATE FIELDS *=========================================================================*/ private $atts, $taxa; private $docs = array(); private $errs = array(); private $instance; private $pg_count = 1, $cur_pg = 1; // templates for HTML output private static $no_docs, $comment, $defaults; /*========================================================================== * PUBLIC FUNCTIONS *=========================================================================*/ /** * @return bool Whether to link to attachment pg. */ public function linkToAttachmentPg() { return $this->atts['attachment_pg'];