.
 *
 * Galleries are displayed as a series of images as described above, encapsulated by a
 * 
.
 *
 *
 * --------
 * Captions
 * --------
 *
 * Captions of the gallery images are read from a text file "captions.conf" within the
 * gallery directory. You may edit them with the Gallery captions plugin.
 */
// include the plugin's PHP files
include_once dirname(__FILE__) . '/photoswipefunctions.class.php';
// intialize the BBCode tags of the plugin
add_filter('init', 'PhotoSwipeFunctions::initializePluginTags');
// inject neccessary JS in the  section
add_action('wp_head', 'PhotoSwipeFunctions::echoScriptTags', 0);