Commit e2cf7fd2 authored by Simon's avatar Simon

sitemap update

parent 62940ad1
......@@ -266,7 +266,10 @@ rewrite ^/assets/(.*)CODE-OF-CONDUCT-EN.pdf$ /wp-content/uploads/2018/10/CODE-OF
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last;
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;
This diff is collapsed.
/*
$Id: sitemap.js 48032 2008-05-27 14:32:06Z arnee $
*/
function sm_addPage(url,priority,changeFreq,lastChanged) {
var table = document.getElementById('sm_pageTable').getElementsByTagName('TBODY')[0];
var ce = function(ele) { return document.createElement(ele) };
var tr = ce('TR');
var td = ce('TD');
var iUrl = ce('INPUT');
iUrl.type="text";
iUrl.style.width='95%';
iUrl.name="sm_pages_ur[]";
if(url) iUrl.value=url;
td.appendChild(iUrl);
tr.appendChild(td);
td = ce('TD');
td.style.width='150px';
var iPrio = ce('SELECT');
iPrio.style.width='95%';
iPrio.name="sm_pages_pr[]";
for(var i=0; i <priorities.length; i++) {
var op = ce('OPTION');
op.text = priorities[i];
op.value = priorities[i];
try {
iPrio.add(op, null); // standards compliant; doesn't work in IE
} catch(ex) {
iPrio.add(op); // IE only
}
if(priority && priority == op.value) {
iPrio.selectedIndex = i;
}
}
td.appendChild(iPrio);
tr.appendChild(td);
td = ce('TD');
td.style.width='150px';
var iFreq = ce('SELECT');
iFreq.name="sm_pages_cf[]";
iFreq.style.width='95%';
for(var i=0; i<changeFreqVals.length; i++) {
var op = ce('OPTION');
op.text = changeFreqNames[i];
op.value = changeFreqVals[i];
try {
iFreq.add(op, null); // standards compliant; doesn't work in IE
} catch(ex) {
iFreq.add(op); // IE only
}
if(changeFreq && changeFreq == op.value) {
iFreq.selectedIndex = i;
}
}
td.appendChild(iFreq);
tr.appendChild(td);
var td = ce('TD');
td.style.width='150px';
var iChanged = ce('INPUT');
iChanged.type="text";
iChanged.name="sm_pages_lm[]";
iChanged.style.width='95%';
if(lastChanged) iChanged.value=lastChanged;
td.appendChild(iChanged);
tr.appendChild(td);
var td = ce('TD');
td.style.textAlign="center";
td.style.width='5px';
var iAction = ce('A');
iAction.innerHTML = 'X';
iAction.href="javascript:void(0);"
iAction.onclick = function() { table.removeChild(tr); };
td.appendChild(iAction);
tr.appendChild(td);
var mark = ce('INPUT');
mark.type="hidden";
mark.name="sm_pages_mark[]";
mark.value="true";
tr.appendChild(mark);
var firstRow = table.getElementsByTagName('TR')[1];
if(firstRow) {
var firstCol = (firstRow.childNodes[1]?firstRow.childNodes[1]:firstRow.childNodes[0]);
if(firstCol.colSpan>1) {
firstRow.parentNode.removeChild(firstRow);
}
}
var cnt = table.getElementsByTagName('TR').length;
if(cnt%2) tr.className="alternate";
table.appendChild(tr);
}
function sm_loadPages() {
for(var i=0; i<pages.length; i++) {
sm_addPage(pages[i].url,pages[i].priority,pages[i].changeFreq,pages[i].lastChanged);
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<?php
/*
* $Id: sitemap-wpmu.php 534582 2012-04-21 22:25:36Z arnee $
*
* Google XML Sitemaps Generator for WordPress MU activation
* ==============================================================================
*
* If you want to use this plugin with a automatic network-wide activation, copy the "google-sitemaps-generator" directory
* in wp-content/mu-plugins and copy this file into wp-content/mu-plugins directly:
*
* + wp-content/
* | + mu-plugins/
* | | - sitemap-wpmu.php
* | | + google-sitemap-generator/
* | | | - sitemap.php
* | | | - [...]
*
* All files in the mu-plugins directory are included for all sites by WordPress by default, so there is no need to
* activate this plugin anymore (and it also can not be deactivated).
*/
if(!defined('WPINC')) return;
$gsgFile = dirname(__FILE__) . "/google-sitemap-generator/sitemap.php";
if(file_exists($gsgFile)) require_once($gsgFile);
else trigger_error("Google Sitemap Generator was loaded via mu-plugins directory, but the plugin was not found under $gsgFile",E_USER_WARNING);
<?php
/*
$Id: sitemap.php 1026247 2014-11-15 16:47:36Z arnee $
XML Sitemaps Generator for WordPress
==============================================================================
This generator will create a sitemaps.org compliant sitemap of your WordPress site.
For additional details like installation instructions, please check the readme.txt and documentation.txt files.
Info for WordPress:
==============================================================================
Plugin Name: XML Sitemaps
Plugin URI: http://www.arnebrachhold.de/redir/sitemap-home/
Description: This plugin improves SEO using sitemaps for best indexation by search engines like Google, Bing, Yahoo and others.
Version: 4.1.1
Author: Auctollo
Author URI: http://www.arnebrachhold.de/
Text Domain: sitemap
Domain Path: /lang
Copyright 2005 - 2018 AUCTOLLO
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Please see license.txt for the full license.
*/
define("SM_SUPPORTFEED_URL","https://wordpress.org/support/plugin/google-sitemap-generator/feed/");
/**
* Check if the requirements of the sitemap plugin are met and loads the actual loader
*
* @package sitemap
* @since 4.0
*/
function sm_Setup() {
$fail = false;
//Check minimum PHP requirements, which is 5.2 at the moment.
if (version_compare(PHP_VERSION, "5.2", "<")) {
add_action('admin_notices', 'sm_AddPhpVersionError');
$fail = true;
}
//Check minimum WP requirements, which is 3.3 at the moment.
if (version_compare($GLOBALS["wp_version"], "3.3", "<")) {
add_action('admin_notices', 'sm_AddWpVersionError');
$fail = true;
}
if (!$fail) {
require_once(trailingslashit(dirname(__FILE__)) . "sitemap-loader.php");
}
}
/**
* Adds a notice to the admin interface that the WordPress version is too old for the plugin
*
* @package sitemap
* @since 4.0
*/
function sm_AddWpVersionError() {
echo "<div id='sm-version-error' class='error fade'><p><strong>" . __('Your WordPress version is too old for XML Sitemaps.', 'sitemap') . "</strong><br /> " . sprintf(__('Unfortunately this release of Google XML Sitemaps requires at least WordPress %4$s. You are using Wordpress %2$s, which is out-dated and insecure. Please upgrade or go to <a href="%1$s">active plugins</a> and deactivate the XML Sitemaps plugin to hide this message. You can download an older version of this plugin from the <a href="%3$s">plugin website</a>.', 'sitemap'), "plugins.php?plugin_status=active", $GLOBALS["wp_version"], "http://www.arnebrachhold.de/redir/sitemap-home/","3.3") . "</p></div>";
}
/**
* Adds a notice to the admin interface that the WordPress version is too old for the plugin
*
* @package sitemap
* @since 4.0
*/
function sm_AddPhpVersionError() {
echo "<div id='sm-version-error' class='error fade'><p><strong>" . __('Your PHP version is too old for XML Sitemaps.', 'sitemap') . "</strong><br /> " . sprintf(__('Unfortunately this release of XML Sitemaps requires at least PHP %4$s. You are using PHP %2$s, which is out-dated and insecure. Please ask your web host to update your PHP installation or go to <a href="%1$s">active plugins</a> and deactivate the Google XML Sitemaps plugin to hide this message. You can download an older version of this plugin from the <a href="%3$s">plugin website</a>.', 'sitemap'), "plugins.php?plugin_status=active", PHP_VERSION, "http://www.arnebrachhold.de/redir/sitemap-home/","5.2") . "</p></div>";
}
/**
* Returns the file used to load the sitemap plugin
*
* @package sitemap
* @since 4.0
* @return string The path and file of the sitemap plugin entry point
*/
function sm_GetInitFile() {
return __FILE__;
}
//Don't do anything if this file was called directly
if (defined('ABSPATH') && defined('WPINC') && !class_exists("GoogleSitemapGeneratorLoader", false)) {
sm_Setup();
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment