프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$timeout | integer | Used with wp_remote_get() | |
$url | string | Service URL |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | 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 | |
리턴 | string |
public footnoteShortcode ( $atts, null $content = null ) : string | ||
$atts | ||
$content | null | |
리턴 | string |
static public hasDependencies ( ) : boolean | ||
리턴 | boolean |
protected preProcessBookContents ( $book_contents ) : mixed | ||
$book_contents | ||
리턴 | mixed |
protected preProcessPostContent ( string $content ) : string | ||
$content | string | |
리턴 | string |
protected queryXhtml ( ) : boolean | string | ||
리턴 | boolean | string |
protected switchLaTexFormat ( string $content ) | ||
$content | string | The section content. |
protected array $endnotes | ||
리턴 | array |
protected int $frontMatterPos | ||
리턴 | integer |
protected bool $hasIntroduction | ||
리턴 | boolean |