id_base . self::$index; } /** * Output the shortcode. * * Calls the template function to output the shortcode and passes it a global variable that holds all of the * information needed to output the shortcode. * * @since 1.0.0 * * @param array $atts Required. Options for display. */ public function display( $atts ) { extract( $atts ); // Get the template $template = locate_template( 'templates/flickr-photos.php', false, false ); // If theme does not provide a template, then will use the one provided by the plugin. if ( empty( $template ) ) { $template = dirname( dirname ( dirname(__FILE__) ) ) . '/templates/flickr-photos.php'; } include( $template ); } } }