/**
  * Initializes static values for this class.
  */
 public static function init()
 {
     if (!isset(self::$comment)) {
         self::$comment = PHP_EOL . '<!-- ' . __('Generated using Document Gallery. Get yours here: ', 'document-gallery') . 'http://wordpress.org/extend/plugins/document-gallery -->' . PHP_EOL;
         self::$no_docs = '<!-- ' . __('No attachments to display. How boring! :(', 'document-gallery') . ' -->';
         self::$defaults = array_merge(array('include' => '', 'exclude' => ''), self::getOptions());
     }
 }
Ejemplo n.º 2
0
 /**
  * Initializes static values for this class.
  */
 public static function init()
 {
     if (!isset(self::$comment)) {
         self::$comment = PHP_EOL . '<!-- ' . __('Generated using Document Gallery. Get yours here: ', 'document-gallery') . 'http://wordpress.org/extend/plugins/document-gallery -->' . PHP_EOL;
         self::$no_docs = '<!-- ' . __('No attachments to display. How boring! :(', 'document-gallery') . ' -->';
         self::$unary_err = __('The %s value entered, "%s", is not valid.', 'document-gallery');
         self::$binary_err = __('The %s parameter may only be "%s" or "%s." You entered "%s."', 'document-gallery');
     }
 }