Plugin sitemap class
| access | public |
|---|---|
| package | kocuj_sitemap |
create(string $locale = '') : array
| access | public |
|---|
stringLanguage locale - default: empty
arraySitemap dataget(string $homeLinkText= '', string $class= '', array $exclude= array(), array $hideTypes= array(), integer $widget= \KocujSitemapPlugin\Enums\Widget::NO, integer $display= \KocujSitemapPlugin\Enums\DisplayType::STANDARD) : string
| access | public |
|---|
stringHome link text in the sitemap - default: empty
stringSitemap class - default: empty
arrayList of elements to exclude - it is divided into sections: "post", "category", "author", "term" - default: empty
arrayList of elements types to hide; there are the following types allowed: "authors", "custom", "home", "menus", "pages", "posts", "tags" - default: empty
integerIt is widget or not; must be one of the following constants from \KocujSitemapPlugin\Enums\Widget: NO (when it is not widget) or YES (when it is widget) - default: \KocujSitemapPlugin\Enums\Widget::NO
integerDisplay type; must be one of the following constants from \KocujSitemapPlugin\Enums\DisplayType: STANDARD (when it is standard display) or DROPDOWN (when it is drop-down list display) - default: \KocujSitemapPlugin\Enums\DisplayType::STANDARD
stringSitemap to displaygetElementType(string $type) : array
| access | public |
|---|
stringElement type
arrayElement typegetElementTypeAdminObject(string $type) : object
| access | public |
|---|
stringElement type
objectElement type administration panel classgetElementTypeObject(string $type) : object
| access | public |
|---|
stringElement type
objectElement type classgetElementsTypes(integer $onlyWithConfigurableOrder = \KocujSitemapPlugin\Enums\OnlyWithConfigurableOrder::NO) : array
| access | public |
|---|
integerGet only elements types with configurable order or all of them; must be one of the following constants from \KocujSitemapPlugin\Enums\OnlyWithConfigurableOrder: NO (to get all elements types) or YES (to get elements types only with configurable order) - default: \KocujSitemapPlugin\Enums\OnlyWithConfigurableOrder::NO
arrayElements typesgetExcludeDefaults(array $labels, string $keyPrefix= 'exclude', string $filterPrefix= 'kocujsitemap_default_exclude_') : array
| access | public |
|---|
arrayOutput with labels for each suffix
stringPrefix for keys in output array - default: exclude
stringPrefix for filter with default value; if empty, there will be not filter - default: kocujsitemap_defaultexclude
arrayAll exclude defaultsgetHideTypesList() : array
| access | public |
|---|
arrayHide types listgetHomeLinkTextPos() : integer
| access | public |
|---|
integerHome link text positiongetInstance() : object
| access | public |
|---|
objectSingleton instancesetHomeLinkTextPos(integer $homeLinkTextPos) : void
| access | public |
|---|
integerHome link text position
shortcode(array|string $args) : string
| access | public |
|---|
arraystringArguments
stringParsed output__clone() : void
| access | private |
|---|
__construct() : void
| access | private |
|---|
addSitemapText(string $type, array $attr, array $data, array $index, $first, array $exclude, boolean $isWidget, integer $display) : string
| access | private |
|---|
stringSitemap data type
arrayAttributes
arraySitemap data
arraySitemap data index
arrayList of elements to exclude - it is divided into sections: "post", "category", "author", "term"
booleanSitemap for widget (true) or not (false)
integerDisplay type; must be one of the following constants from \KocujSitemapPlugin\Enums\DisplayType: STANDARD (when it is standard display) or DROPDOWN (when it is drop-down list display)
stringSitemap textaddSitemapTextReccurence(string $type, array $data, array $index, array $attr, boolean $firstLevel, $first, array $exclude, boolean $isWidget, integer $display, integer $depth, $urls) : string
| access | private |
|---|
stringSitemap data type
arraySitemap data
arraySitemap data index
arrayAttributes
booleanIt is first level on list (true) or not (false)
arrayList of elements to exclude - it is divided into sections: "post", "category", "author", "term"
booleanSitemap for widget (true) or not (false)
integerDisplay type; must be one of the following constants from \KocujSitemapPlugin\Enums\DisplayType: STANDARD (when it is standard display) or DROPDOWN (when it is drop-down list display)
integerDepth
stringSitemap textaddSitemapTextReccurencePrepareForExclude(string $type, $data, array $index, array $attr, array $exclude) : void
| access | private |
|---|
stringSitemap data type
arraySitemap data index
arrayAttributes
arrayList of elements to exclude - it is divided into sections: "post", "category", "author", "term"
compressElements($data, $index, array $attr) : void
| access | private |
|---|
arrayAttributes
compressText(string $text) : string
| access | private |
|---|
stringText to compress
stringCompressed textdecompressElement(array $element, array $index, array $attr) : array
| access | private |
|---|
arraySitemap element to change
arraySitemap data index
arrayAttributes
arrayDecompressed sitemap elementdecompressText(string $text) : string
| access | private |
|---|
stringText to decompress
stringDecompressed text$elementsTypes : array
array()| access | private |
|---|
$homeLinkTextPos : integer
-1| access | private |
|---|
$instance : object
NULL| access | private |
|---|
LINK_ROOT_URL_STANDARD_POS = 9
| access | public |
|---|
LINK_SHORTER_META_LENGTH = 15
| access | public |
|---|