File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/xml.tar
default.php 0000644 00000003620 15155423160 0006704 0 ustar 00 <?php
/**
* XML template for our sitemap index pages.
*
* @since 4.0.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// phpcs:disable
?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
<?php if ( ! aioseo()->sitemap->helpers->excludeImages() ): ?>
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
<?php endif; ?>
>
<?php foreach ( $entries as $entry ) {
if ( empty( $entry['loc'] ) ) {
continue;
}
?>
<url>
<loc><?php aioseo()->sitemap->output->escapeAndEcho( $entry['loc'] ); ?></loc><?php
if ( ! empty( $entry['lastmod'] ) ) {
?>
<lastmod><?php aioseo()->sitemap->output->escapeAndEcho( $entry['lastmod'] ); ?></lastmod><?php
}
if ( ! empty( $entry['changefreq'] ) ) {
?>
<changefreq><?php aioseo()->sitemap->output->escapeAndEcho( $entry['changefreq'] ); ?></changefreq><?php
}
if ( isset( $entry['priority'] ) ) {
?>
<priority><?php aioseo()->sitemap->output->escapeAndEcho( $entry['priority'] ); ?></priority><?php
}
if ( ! empty( $entry['languages'] ) ) {
foreach ( $entry['languages'] as $subentry ) {
if ( empty( $subentry['language'] ) || empty( $subentry['location'] ) ) {
continue;
}
?>
<xhtml:link rel="alternate" hreflang="<?php echo esc_attr( $subentry['language'] ); ?>" href="<?php echo esc_url( $subentry['location'] ); ?>" /><?php
}
}
if ( ! aioseo()->sitemap->helpers->excludeImages() && ! empty( $entry['images'] ) ) {
foreach ( $entry['images'] as $image ) {
$image = (array) $image;
?>
<image:image>
<image:loc>
<?php
if ( aioseo()->helpers->isRelativeUrl( $image['image:loc'] ) ) {
$image['image:loc'] = aioseo()->helpers->makeUrlAbsolute( $image['image:loc'] );
}
aioseo()->sitemap->output->escapeAndEcho( $image['image:loc'] );
?>
</image:loc>
</image:image><?php
}
}
?>
</url>
<?php } ?>
</urlset>
root.php 0000644 00000001147 15155423160 0006245 0 ustar 00 <?php
/**
* XML template for our root index page.
*
* @since 4.0.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// phpcs:disable
?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?php foreach ( $entries as $entry ) {
if ( empty( $entry['loc'] ) ) {
continue;
}
?>
<sitemap>
<loc><?php aioseo()->sitemap->output->escapeAndEcho( $entry['loc'] ); ?></loc><?php
if ( ! empty( $entry['lastmod'] ) ) {
?>
<lastmod><?php aioseo()->sitemap->output->escapeAndEcho( $entry['lastmod'] ); ?></lastmod><?php
}
?>
</sitemap>
<?php } ?>
</sitemapindex>
rss.php 0000644 00000003306 15155423160 0006070 0 ustar 00 <?php
/**
* XML template for the RSS Sitemap.
*
* @since 4.0.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// phpcs:disable
?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel><?php
// Yandex doesn't support some tags so we need to check the user agent.
if ( ! aioseo()->helpers->isYandexUserAgent() ) {
?>
<title><?php aioseo()->sitemap->output->escapeAndEcho( $title, false ); ?></title>
<link><?php aioseo()->sitemap->output->escapeAndEcho( $link ); ?></link>
<?php if ( $description ) {
?><description><?php aioseo()->sitemap->output->escapeAndEcho( $description ); ?></description>
<?php }
?><?php if ( ! empty( $entries[0]['pubDate'] ) ) {
?><lastBuildDate><?php aioseo()->sitemap->output->escapeAndEcho( $entries[0]['pubDate'] ); ?></lastBuildDate>
<?php }
?><docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<atom:link href="<?php echo aioseo()->sitemap->helpers->getUrl( 'rss' ); ?>" rel="self" type="application/rss+xml" />
<ttl><?php aioseo()->sitemap->output->escapeAndEcho( $ttl ); ?></ttl>
<?php }
foreach ( $entries as $entry ) {
if ( empty( $entry['guid'] ) ) {
continue;
}?>
<item>
<guid><?php aioseo()->sitemap->output->escapeAndEcho( $entry['guid'] ); ?></guid>
<link><?php aioseo()->sitemap->output->escapeAndEcho( $entry['guid'] ); ?></link><?php
if ( ! empty( $entry['title'] ) ) {
?>
<title><?php aioseo()->sitemap->output->escapeAndEcho( $entry['title'], false ); ?></title><?php
}
if ( ! empty( $entry['pubDate'] ) ) {
?>
<pubDate><?php aioseo()->sitemap->output->escapeAndEcho( $entry['pubDate'] ); ?></pubDate><?php
}
?>
</item>
<?php } ?>
</channel>
</rss>