comments and minor fixes
This commit is contained in:
parent
bd559904ec
commit
3564ab1d8f
|
@ -61,10 +61,9 @@ class Page {
|
||||||
return $contentRaw;
|
return $contentRaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the content
|
// Returns the full content
|
||||||
// This content is markdown parser
|
// This content is markdown parser
|
||||||
// (boolean) $fullContent, TRUE returns all content, if FALSE returns the first part of the content
|
// (boolean) $sanitize, TRUE returns the content sanitized
|
||||||
// (boolean) $noSanitize, TRUE returns the content without sanitized
|
|
||||||
public function content($sanitize=false)
|
public function content($sanitize=false)
|
||||||
{
|
{
|
||||||
// If already set the content, return it
|
// If already set the content, return it
|
||||||
|
@ -73,6 +72,7 @@ class Page {
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get the raw content
|
||||||
$content = $this->contentRaw();
|
$content = $this->contentRaw();
|
||||||
|
|
||||||
// Parse Markdown
|
// Parse Markdown
|
||||||
|
@ -92,9 +92,11 @@ class Page {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the first part of the content if the content is splited, otherwise is returned the full content
|
// Returns the first part of the content if the content is splited, otherwise is returned the full content
|
||||||
public function contentBreak()
|
// This content is markdown parser
|
||||||
|
// (boolean) $sanitize, TRUE returns the content sanitized
|
||||||
|
public function contentBreak($sanitize=false)
|
||||||
{
|
{
|
||||||
$content = $this->content();
|
$content = $this->content($sanitize);
|
||||||
$explode = explode(PAGE_BREAK, $content);
|
$explode = explode(PAGE_BREAK, $content);
|
||||||
return $explode[0];
|
return $explode[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue