This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // If you have a function with a default argument: | |
| function bla ( $echo = true ) { | |
| if ( !$echo ) | |
| return 'bla'; | |
| else | |
| echo 'bla'; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # WordPress SEO - XML Sitemap Rewrite Fix | |
| RewriteEngine On | |
| RewriteBase /wordpress/ | |
| RewriteRule ^sitemap_index.xml$ /wordpress/index.php?sitemap=1 [L] | |
| RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /wordpress/index.php?sitemap=$1&sitemap_n=$2 [L] | |
| # END WordPress SEO - XML Sitemap Rewrite Fix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # WordPress SEO - XML Sitemap Rewrite Fix | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L] | |
| RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L] | |
| RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L] | |
| # END WordPress SEO - XML Sitemap Rewrite Fix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # WordPress SEO - XML Sitemap Rewrite Fix - for subfolder install | |
| RewriteEngine On | |
| RewriteBase /wordpress/ | |
| RewriteRule ^sitemap_index.xml$ /wordpress/index.php?sitemap=1 [L] | |
| RewriteRule ^locations.kml$ /wordpress/index.php?sitemap=wpseo_local_kml [L] | |
| RewriteRule ^geo_sitemap.xml$ /wordpress/index.php?sitemap=wpseo_local [L] | |
| RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /wordpress/index.php?sitemap=$1&sitemap_n=$2 [L] | |
| # END WordPress SEO - XML Sitemap Rewrite Fix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # WordPress SEO - XML Sitemap Rewrite Fix | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L] | |
| RewriteRule ^locations.kml$ /index.php?sitemap=wpseo_local_kml [L] | |
| RewriteRule ^geo_sitemap.xml$ /index.php?sitemap=geo [L] | |
| RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L] | |
| RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L] | |
| # END WordPress SEO - XML Sitemap Rewrite Fix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Template for displaying a map on the locations post-type archive page. | |
| * | |
| * @package Twenty_Twelve | |
| * @subpackage Local SEO for WordPress Archive page template | |
| * @author Joost de Valk | |
| */ | |
| get_header(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) { | |
| require_once plugin_dir_path( __FILE__ ) . 'admin/ajax.php'; | |
| } else if ( defined('DOING_CRON') && DOING_CRON ) { | |
| $options = get_option( 'Yoast_Google_Analytics' ); | |
| if ( isset( $options['yoast_tracking'] ) && $options['yoast_tracking'] ) |