update
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<table>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Title</th>
|
||||
<th>Language</th>
|
||||
<th>Keywords</th>
|
||||
<th>Stocks</th>
|
||||
<th>Publication Date</th>
|
||||
</tr>
|
||||
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
|
||||
<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
|
||||
<xsl:for-each select="./sitemap:urlset/sitemap:url">
|
||||
<tr>
|
||||
<xsl:if test="position() mod 2 != 1">
|
||||
<xsl:attribute name="class">high</xsl:attribute>
|
||||
</xsl:if>
|
||||
<td>
|
||||
<xsl:value-of select="position()"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:variable name="url">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</xsl:variable>
|
||||
<a href="{$url}">
|
||||
<xsl:if test="news:news">
|
||||
<xsl:value-of select="news:news/news:title"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="not(news:news)">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</xsl:if>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="news:news/news:publication/news:language"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="news:news/news:keywords"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="news:news/news:stock_tickers"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:if test="news:news">
|
||||
<xsl:value-of select="concat(substring(news:news/news:publication_date, 0, 11), concat(' ', substring(news:news/news:publication_date, 12, 5)))"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="sitemap:lastmod">
|
||||
<xsl:value-of select="concat(substring(sitemap:lastmod, 0, 11), concat(' ', substring(sitemap:lastmod, 12, 5)))"/>
|
||||
</xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
/**
|
||||
* @var $args array
|
||||
*/
|
||||
|
||||
$settings = $args['settings'] ?? new stdClass();
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Page, Post, Custom Post URL</th>
|
||||
<th>Image URLs</th>
|
||||
<?php if ( ! ( $settings->hide_image_previews ?? false ) ) : ?>
|
||||
<th>Images</th>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<xsl:for-each select="./sitemap:urlset/sitemap:url">
|
||||
<tr>
|
||||
<xsl:if test="position() mod 2 != 1">
|
||||
<xsl:attribute name="class">high</xsl:attribute>
|
||||
</xsl:if>
|
||||
<td>
|
||||
<xsl:value-of select="position()"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:variable name="url">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</xsl:variable>
|
||||
<a href="{$url}" target="_blank">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:for-each select="image:image">
|
||||
<xsl:variable name='imageURL'>
|
||||
<xsl:value-of select='image:loc'/>
|
||||
</xsl:variable>
|
||||
<div>
|
||||
<a href='{$imageURL}'>
|
||||
<xsl:value-of select='image:loc'/>
|
||||
</a>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
<?php if ( ! ( $settings->hide_image_previews ?? false ) ) : ?>
|
||||
<td>
|
||||
<xsl:for-each select="image:image">
|
||||
<xsl:variable name='imageURL'>
|
||||
<xsl:value-of select='image:loc'/>
|
||||
</xsl:variable>
|
||||
<div class="image">
|
||||
<a href='{$imageURL}' class="thumbnail">
|
||||
<img src='{$imageURL}'/>
|
||||
</a>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
@@ -0,0 +1,26 @@
|
||||
<table>
|
||||
<tr>
|
||||
<th>Sitemap</th>
|
||||
<th>Last Modified</th>
|
||||
</tr>
|
||||
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
|
||||
<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
|
||||
<xsl:for-each select="./sitemap:sitemapindex/sitemap:sitemap">
|
||||
<tr>
|
||||
<xsl:if test="position() mod 2 != 1">
|
||||
<xsl:attribute name="class">high</xsl:attribute>
|
||||
</xsl:if>
|
||||
<td>
|
||||
<xsl:variable name="page">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</xsl:variable>
|
||||
<a href="{$page}">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="concat(substring(sitemap:lastmod, 0, 11), concat(' ', substring(sitemap:lastmod, 12, 5)))"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
@@ -0,0 +1,34 @@
|
||||
<table>
|
||||
<tr>
|
||||
<th>Page URL</th>
|
||||
<th>Priority</th>
|
||||
<th>Frequency</th>
|
||||
<th>Last Modified</th>
|
||||
</tr>
|
||||
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
|
||||
<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
|
||||
<xsl:for-each select="./sitemap:urlset/sitemap:url">
|
||||
<tr>
|
||||
<xsl:if test="position() mod 2 != 1">
|
||||
<xsl:attribute name="class">high</xsl:attribute>
|
||||
</xsl:if>
|
||||
<td>
|
||||
<xsl:variable name="page">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</xsl:variable>
|
||||
<a target="_blank" href="{$page}">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="sitemap:priority"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="sitemap:changefreq"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="concat(substring(sitemap:lastmod, 0, 11), concat(' ', substring(sitemap:lastmod, 12, 5)))"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
@@ -0,0 +1,66 @@
|
||||
<table>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Page, Post, Custom Post URL</th>
|
||||
<th>Thumbnail</th>
|
||||
<th>Video</th>
|
||||
<th>Description</th>
|
||||
<th>Duration</th>
|
||||
</tr>
|
||||
<xsl:for-each select="./sitemap:urlset/sitemap:url">
|
||||
<tr>
|
||||
<xsl:if test="position() mod 2 != 1">
|
||||
<xsl:attribute name="class">high</xsl:attribute>
|
||||
</xsl:if>
|
||||
<td>
|
||||
<xsl:value-of select="position()"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:variable name="url">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</xsl:variable>
|
||||
<a href="{$url}" target="_blank">
|
||||
<xsl:value-of select="sitemap:loc"/>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:for-each select="video:video">
|
||||
<xsl:variable name='thumbURL'>
|
||||
<xsl:value-of select='video:thumbnail_loc'/>
|
||||
</xsl:variable>
|
||||
<div class="loc-item">
|
||||
<a href='{$thumbURL}' class="thumbnail">
|
||||
<img src='{$thumbURL}'/>
|
||||
</a>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:for-each select="video:video">
|
||||
<xsl:variable name='videoURL'>
|
||||
<xsl:value-of select='video:player_loc'/>
|
||||
</xsl:variable>
|
||||
<div class="loc-item">
|
||||
<a href='{$videoURL}'>
|
||||
<xsl:value-of select='video:title'/>
|
||||
</a>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:for-each select="video:video">
|
||||
<div class="loc-item">
|
||||
<xsl:value-of select='video:description'/>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:for-each select="video:video">
|
||||
<div class="loc-item">
|
||||
<xsl:value-of select='video:duration'/>
|
||||
</div>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
Reference in New Issue
Block a user