Vanilla 1.1.10 es un producto de Lussumo. Para más información: Documentación, Soporte.
Posted By: MarcGracias
<Files *.md>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Files>
<Files *.html>
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Files>
'aff_id' => 'aff_id'
*/
...
aff_id: aquítuIDdeafiliado
*/
{{ meta.aff_id }}
{% if is_front_page %}
{% else %}
{% endif %}
<?php
/**
* Generate an xml sitemap for Pico
*
* @author Dave Kinsella
* @link https://github.com/Techn0tic/Pico_Sitemap
* @license http://opensource.org/licenses/MIT
*/
class Pico_Sitemap {
private $is_sitemap;
public function __construct(){
$this->is_sitemap = false;
}
public function request_url(&$url)
{
if($url == 'sitemap.xml') $this->is_sitemap = true;
}
public function get_pages(&$pages, &$current_page, &$prev_page, &$next_page){
if($this->is_sitemap){
header($_SERVER['SERVER_PROTOCOL'].' 200 OK');
header('Content-Type: application/xml; charset=UTF-8');
$xml = '<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
foreach( $pages as $page ){
$xml .= '<url><loc>'.$page['url'].'</loc></url>';
}
$xml .= '</urlset>';
header('Content-Type: text/xml');
die($xml);
}
}
}
?>