Plugin sitemap class
access | public |
---|---|
package | kocuj_sitemap |
create(string $locale = ''
) : array
access | public |
---|
string
Language locale - default: empty
array
Sitemap 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 |
---|
string
Home link text in the sitemap - default: empty
string
Sitemap class - default: empty
array
List of elements to exclude - it is divided into sections: "post", "category", "author", "term" - default: empty
array
List of elements types to hide; there are the following types allowed: "authors", "custom", "home", "menus", "pages", "posts", "tags" - default: empty
integer
It 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
integer
Display 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
string
Sitemap to displaygetElementType(string $type) : array
access | public |
---|
string
Element type
array
Element typegetElementTypeAdminObject(string $type) : object
access | public |
---|
string
Element type
object
Element type administration panel classgetElementTypeObject(string $type) : object
access | public |
---|
string
Element type
object
Element type classgetElementsTypes(integer $onlyWithConfigurableOrder = \KocujSitemapPlugin\Enums\OnlyWithConfigurableOrder::NO
) : array
access | public |
---|
integer
Get 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
array
Elements typesgetExcludeDefaults(array $labels, string $keyPrefix= 'exclude'
, string $filterPrefix= 'kocujsitemap_default_exclude_'
) : array
access | public |
---|
array
Output with labels for each suffix
string
Prefix for keys in output array - default: exclude
string
Prefix for filter with default value; if empty, there will be not filter - default: kocujsitemap_defaultexclude
array
All exclude defaultsgetHideTypesList() : array
access | public |
---|
array
Hide types listgetHomeLinkTextPos() : integer
access | public |
---|
integer
Home link text positiongetInstance() : object
access | public |
---|
object
Singleton instancesetHomeLinkTextPos(integer $homeLinkTextPos) : void
access | public |
---|
integer
Home link text position
shortcode(array|string $args) : string
access | public |
---|
array
string
Arguments
string
Parsed 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 |
---|
string
Sitemap data type
array
Attributes
array
Sitemap data
array
Sitemap data index
array
List of elements to exclude - it is divided into sections: "post", "category", "author", "term"
boolean
Sitemap for widget (true) or not (false)
integer
Display 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)
string
Sitemap textaddSitemapTextReccurence(string $type, array $data, array $index, array $attr, boolean $firstLevel, $first, array $exclude, boolean $isWidget, integer $display, integer $depth, $urls) : string
access | private |
---|
string
Sitemap data type
array
Sitemap data
array
Sitemap data index
array
Attributes
boolean
It is first level on list (true) or not (false)
array
List of elements to exclude - it is divided into sections: "post", "category", "author", "term"
boolean
Sitemap for widget (true) or not (false)
integer
Display 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)
integer
Depth
string
Sitemap textaddSitemapTextReccurencePrepareForExclude(string $type, $data, array $index, array $attr, array $exclude) : void
access | private |
---|
string
Sitemap data type
array
Sitemap data index
array
Attributes
array
List of elements to exclude - it is divided into sections: "post", "category", "author", "term"
compressElements($data, $index, array $attr) : void
access | private |
---|
array
Attributes
compressText(string $text) : string
access | private |
---|
string
Text to compress
string
Compressed textdecompressElement(array $element, array $index, array $attr) : array
access | private |
---|
array
Sitemap element to change
array
Sitemap data index
array
Attributes
array
Decompressed sitemap elementdecompressText(string $text) : string
access | private |
---|
string
Text to decompress
string
Decompressed 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 |
---|