Categorias

Google Sitemap Generator

Ótima solução para você que esta procurando um gerador de mapas de sites.

Gera o mapa do seu site em segundos.

Ferramenta idêntica à da Google.

if(defined("ABSPATH") && defined("WPINC")) {
	define("SM_ACTIVE",true);
} else {
	define("SM_ACTIVE",false);	
}
#endregion

/******** Needed classes ********/

#region class sm_page
if(!class_exists("sm_page")) {
	/**
	 * Represents an item in the page list
	 * @author Arne Brachhold 
	 * @since 2005-06-12
	 */
	class sm_page {
		/**
		 * @var bool $_enabled Sets if page is enabled ans hould be listed in the sitemap
		 * @access private
		 */
		var $_enabled;
		
		/**
		 * @var string $_url Sets the URL or the relative path to the blog dir of the page
		 * @access private
		 */
		var $_url;
		
		/**
		 * @var float $_priority Sets the priority of this page
		 * @access private
		 */
		var $_priority;
		
		/**
		 * @var string $_changeFreq Sets the chanfe frequency of the page. I want Enums!
		 * @access private
		 */
		var $_changeFreq;
		
		/**
		 * @var int $_lastMod Sets the lastMod of the page as a php timestamp. 
		 * @access private
		 */
		var $_lastMod;	
		
		/**
		 * Initialize a new page object
		 * 
		 * @param bool $enabled bool Should this page be included in thesitemap
		 * @param string $url The URL or path of the file
		 * @param float $priority The Priority of the page 0.0 to 1.0
		 * @param string $changeFreq The change frequency like daily, hourly, weekly
		 * @param int $lastMod The last mod date as a php timestamp
		 */
		function sm_page($enabled=false,$url="",$priority=0.0,$changeFreq="never",$lastMod=0) {
			$this->setEnabled($enabled);
			$this->setUrl($url);
			$this->setProprity($priority);
			$this->setChangeFreq($changeFreq);
			$this->setLastMod($lastMod);
		}

		
		/**
		 * Returns if the page should be included in the sitemap
		 * @return bool 
		 */
		function getEnabled() {
			return $this->_enabled;			
		}
		
		/**
		 * Sets if the page should be included in the sitemap
		 * @param bool $enabled value;
		 */
		function setEnabled($enabled) {
			$this->_enabled=(bool) $enabled;	
		}
		
		/**
		 * Returns the URL of the page
		 * @return string The URL
		 */
		function getUrl() {
			return $this->_url;	

Arquivos para Download:

google-sitemap-generator.rar