Property | Type | Description | |
---|---|---|---|
$timeout | integer | Used with wp_remote_get() | |
$url | string | Service URL |
Property | Type | Description | |
---|---|---|---|
$endnotes | array | Use when overriding the footnote shortcode. | |
$frontMatterPos | integer | Keep track of where we are using this variable. | |
$hasIntroduction | boolean | Sometimes the user will omit an introduction so we must inject the style in either the first part or the first chapter ourselves. | |
$lang | string | Main language of document, two letter code |
Method | Description | |
---|---|---|
__construct ( array $args ) | ||
convert ( ) : boolean | Create $this->outputPath | |
doEndnotes ( $id ) : string | Style endnotes. | |
endnoteShortcode ( array $atts, null $content = null ) : string | Convert footnotes to endnotes by moving them to the end of the_content() | |
footnoteShortcode ( $atts, null $content = null ) : string | Wrap footnotes for Prince compatibility | |
hasDependencies ( ) : boolean | Dependency check. | |
logError ( $message, array $more_info = [] ) | Add $this->url as additional log info, fallback to parent. | |
transform ( ) | Procedure for "format/xhtml" rewrite rule. | |
validate ( ) : boolean | Check the sanity of $this->outputPath |
Method | Description | |
---|---|---|
atLeastOneExport ( array $chapters ) : boolean | Does array of chapters have at least one export? Recursive. | |
createPromo ( array $book_contents, array $metadata ) | ||
echoBackMatter ( array $book_contents, array $metadata ) | ||
echoBeforeTitle ( array $book_contents, array $metadata ) | ||
echoCopyright ( array $book_contents, array $metadata ) | ||
echoCover ( array $book_contents, array $metadata ) | ||
echoDedicationAndEpigraph ( array $book_contents, array $metadata ) | ||
echoDocType ( array $book_contents, array $metadata ) | ||
echoFrontMatter ( array $book_contents, array $metadata ) | ||
echoHalfTitle ( array $book_contents, array $metadata ) | ||
echoMetaData ( array $book_contents, array $metadata ) | ||
echoPartsAndChapters ( array $book_contents, array $metadata ) | ||
echoTitle ( array $book_contents, array $metadata ) | ||
echoToc ( array $book_contents, array $metadata ) | ||
fixInternalLinks ( string $content ) : string | ||
preProcessBookContents ( $book_contents ) : mixed | ||
preProcessPostContent ( string $content ) : string | ||
queryXhtml ( ) : boolean | string | Query the access protected "format/xhtml" URL, return the results. | |
switchLaTexFormat ( string $content ) | Replace links to QuickLaTex PNG files with links to the corresponding SVG files. | |
tidy ( string $html ) : string | Tidy HTML |
protected atLeastOneExport ( array $chapters ) : boolean | ||
$chapters | array | |
return | boolean |
protected createPromo ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected echoBackMatter ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected echoBeforeTitle ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected echoCopyright ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected echoDedicationAndEpigraph ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected echoDocType ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected echoFrontMatter ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected echoHalfTitle ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected echoMetaData ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected echoPartsAndChapters ( array $book_contents, array $metadata ) | ||
$book_contents | array | |
$metadata | array |
protected fixInternalLinks ( string $content ) : string | ||
$content | string | |
return | string |
public footnoteShortcode ( $atts, null $content = null ) : string | ||
$atts | ||
$content | null | |
return | string |
static public hasDependencies ( ) : boolean | ||
return | boolean |
protected preProcessBookContents ( $book_contents ) : mixed | ||
$book_contents | ||
return | mixed |
protected preProcessPostContent ( string $content ) : string | ||
$content | string | |
return | string |
protected queryXhtml ( ) : boolean | string | ||
return | boolean | string |
protected switchLaTexFormat ( string $content ) | ||
$content | string | The section content. |
protected array $endnotes | ||
return | array |
protected int $frontMatterPos | ||
return | integer |
protected bool $hasIntroduction | ||
return | boolean |
protected string $lang | ||
return | string |