Esempio n. 1
0
			}
		}

		/**
		 * Replace endnote marker with rendered endnotes.
		 */
		if ( $this->endnoteMarker ) {
			if ( $this->notes ) {
				$endnoteText = '<ol class="endnotes"' . $this->styleHTML . '>' . PHP_EOL;
				foreach( $this->notes as $key => $note ) {
					$endnoteText .= $note->render( $bibliographyExists );
				}
				$endnoteText .= '</ol>';
			} else {
				$endnoteText = '';
			}
			$pos = strpos( $text, $this->endnoteMarker );
			if ( $pos !== false ) {
				$text = substr_replace( $text, $endnoteText, $pos, strlen( $this->endnoteMarker ) );
			}
		}
	}

}


/**
 * Static initializer.
 */
WCBibliography::init();