>
Download This Plugin | |
Download Elegant Themes | |
Name | Kocuj Sitemap |
Version | 1.3.0 |
Author | Dominik Kocuj |
Rating | 94 |
Last updated | 2013-12-17 12:07:00 |
Downloads |
3244
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Kocuj Sitemap plugin added 13 bytes of resources to the Home page and 27 bytes of resources to the sample Post page.
Kocuj Sitemap plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Kocuj Sitemap plugin ads no tables to your Wordpress blog database.Kocuj Sitemap plugin adds shortcode [KocujSitemap]
that puts the sitemap in the place where it is located. This allows you to display links to all of your posts, pages and menu items anywhere on your website - even within the article. There is also a PHP function that allows you to place the sitemap anywhere on the website.
This plugin supports multilingual websites. If you have installed the plugin compatible with Kocuj Sitemap plugin (currently it is qTranslate), the plugin will generate a sitemap on your website in accordance with the currently selected language. If you do not have the plugin that supports multilingualism, Kocuj Sitemap plugin will display a sitemap for the default language defined for your WordPress installation.
The sitemap is automatically generated and stored in the cache after each change of any element in the administration panel, which is used in it (for example, when you change a post) to avoid using the database when loading a web page. This process speeds up the loading of sitemap on your website.
This plugin requires PHP 5 (up to PHP 5.4.x version) and WordPress 2.8 or greater. It is recommended to use WordPress in, at least, 3.5 version.
The shortcode [KocujSitemap]
has optional parameters:
title
- text that will be used as the title of the link to the main page,class
- name of the style sheet class that will be added to the block element (div
or nav
) containing the entire sitemap.For example, if you add:
[KocujSitemap title="NEW TITLE" class="new_class"]
the sitemap will be displayed in the block element (div
or nav
) with the CSS class new_class
and link to the home page with title NEW TITLE
.
If you do not want to put the sitemap in the article, you can edit the PHP file responsible for the theme. Kocuj Sitemap plugin defines global PHP function which declaration is as follows:
<?php function kocujsitemap_show_sitemap($title = '', $class = '') ?>
The parameters $title
and $class
perform the same function as the corresponding parameters in the shortcode [KocujSitemap]
. For example, if you add:
<?php kocujsitemap_show_sitemap('NEW TITLE', 'new_class'); ?>
the sitemap will be displayed in the block element (div
or nav
) with the CSS class new_class
and link to the home page with title NEW TITLE
.
There is option Sitemap in the administration panel, which is used to configure the behavior of the Kocuj Sitemap plugin. If you select Settings from the plugin menu, you will find yourself in a place where you can set options for the plugin.
The settings are divided into tabs. There can be active only one tab at once. Tab is selected by clicking on its name.
Each tab contains a set of options. Each option has a description that is displayed when you set mouse cursor over it.
Changes in the configuration can be saved by clicking on the Save settings button. Clicking on the Restore default settings button restore the settings that were set after installing a plugin.
There are available the following languages for Kocuj Sitemap plugin:
Plugin Kocuj Sitemap gives you the ability to translate your texts into other languages. To do this, you should prepare 3 PO files created from the following templates:
More information about translating are available in WordPress Codex.
If you translate this plugin, please send it to author at dominik@kocuj.pl to add your contribution to project.
The Kocuj Sitemap plugin contains a set of filters that allow you to change some behavior of the plugin. This allows you to adapt the plugin to the requirements of the developer of another plugin or theme without making changes to the code in Kocuj Sitemap plugin.
If you think that Kocuj Sitemap plugin should add another filter, please inform the author at dominik@kocuj.pl .
Kocuj Sitemap plugin contains the following filters:
kocujsitemap_additionalmultilangphpclasses
Parameters:
Returned value:
Description:
This filter adds a PHP class for supporting multi-language websites. To add a new PHP class, you need to add a new element to array which contains the following fields:
dir
- full path to the file with a new PHP class,class
- PHP class name.More information about this functionality can be found by looking into file classes/multilang/qtranslate.class.php which can be a good example for developer of another PHP class.
This filter is available from version 1.2.0 of the Kocuj Sitemap plugin.
kocujsitemap_defaultclass
Parameters:
div
or nav
)Returned value:
div
or nav
)Description:
This filter sets the default CSS class that is used in the block element of the sitemap. It is used if there is not specified class
parameter in the [KocujSitemap]
shortcode, or if there is not specified $class
parameter in the kocujsitemap_show_sitemap
PHP function.
kocujsitemap_defaultmenus
Parameters:
Returned value:
Description:
This filter sets the default list of menus that appear in the sitemap if the list in the "menus list" in administration panel is empty. This filter exists only in WordPress version 3.0 and newer.
kocujsitemap_defaulttitle
Parameters:
Returned value:
Description:
This filter sets the default title that is used in the link to the main page in the sitemap. It is used if there is not specified title
parameter in the [KocujSitemap]
shortcode, or if there is not specified $title
parameter in the kocujsitemap_show_sitemap
PHP function.
kocujsitemap_firstclass
Parameters:
Returned value:
Description:
This filter sets the CSS class that is used in the first element of the sitemap.
kocujsitemap_linktitle
Parameters:
Returned value:
Description:
This filter sets the link title.
kocujsitemap_menuelement
Parameters:
Returned value:
Description:
This filter sets a menu option - with all HTML tags and attributes. This filter exists only in WordPress version 3.0 and newer.
You can also suggest a feature by sending a message to dominik@kocuj.pl .
If you have any suggestion, feel free to email me at dominik@kocuj.pl .
If you want to have a regular information about this plugin, please become a fan of plugin on Facebook: http://www.facebook.com/kocujsitemap
See also official plugin site: http://kocujsitemap.wpplugin.kocuj.pl