Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
updated xsl styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Roumen Damianoff committed Dec 30, 2015
1 parent fe2df30 commit 45fd4b6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
20 changes: 14 additions & 6 deletions src/public/styles/google-news.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>XML Sitemap</title>
<title>XML Sitemap (for Google News)</title>
<script type="text/javascript" src="https://cdn.roumen.it/repo/jquery/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="https://cdn.roumen.it/repo/jquery.tablesorter/2.0.5/jquery.tablesorter.min.js"></script>
<script type="text/javascript"><![CDATA[
$(document).ready(function() {
$("#sitemap").tablesorter({sortList:[[6,1],[4,1]],widgets:['zebra']});
$('.url').click(function(){
window.open($(this).html());
return false;
});
});]]></script>
<style type="text/css">
body
Expand Down Expand Up @@ -70,8 +74,8 @@ td
th
{
text-align:left;
padding-right:30px;
font-size:11px;
padding: 5px 20px 5px 5px;
font-size: 12px;
}
thead th
{
Expand All @@ -84,13 +88,17 @@ footer
text-align:left;
max-width:100%;
}
.url:hover
{
cursor:pointer;
}
</style>
</head>
<body>
<div id="content">
<h2>XML Sitemap</h2>
<h2>XML Sitemap (for Google News)</h2>
<p class="expl">Generated by <a href="https://roumen.it/projects/laravel-sitemap/" target="_blank" title="Sitemap generator for Laravel">laravel-sitemap</a>. This is styled version of the sitemap, original xml is still accessible for crawlers, robots, spiders (search engines).</p>
<p class="expl">This sitemap contains <xsl:value-of select="count(s:urlset/s:url)"/> URLs</p>
<p class="expl">This sitemap contains <xsl:value-of select="count(s:urlset/s:url)"/> URLs. Table below is sorted by update date. All columns are sortable, click on them to sort or change order.</p>
<table id="sitemap" class="tablesorter" border="1" cellpadding="3">
<thead>
<tr bgcolor="#9acd32">
Expand All @@ -106,7 +114,7 @@ footer
<tbody>
<xsl:for-each select="s:urlset/s:url">
<tr>
<td><xsl:value-of select="s:loc"/></td>
<td class="url"><xsl:value-of select="s:loc"/></td>
<td><xsl:value-of select="news:news/news:title"/></td>
<td><xsl:value-of select="news:news/news:publication/news:name"/></td>
<td><xsl:value-of select="news:news/news:publication/news:language"/></td>
Expand Down
16 changes: 12 additions & 4 deletions src/public/styles/xml.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<script type="text/javascript"><![CDATA[
$(document).ready(function() {
$("#sitemap").tablesorter({sortList:[[6,1],[4,1]],widgets:['zebra']});
$('.url').click(function(){
window.open($(this).html());
return false;
});
});]]></script>
<style type="text/css">
body
Expand Down Expand Up @@ -70,8 +74,8 @@ td
th
{
text-align:left;
padding-right:30px;
font-size:11px;
padding: 5px 20px 5px 5px;
font-size: 12px;
}
thead th
{
Expand All @@ -84,13 +88,17 @@ footer
text-align:left;
max-width:100%;
}
.url:hover
{
cursor:pointer;
}
</style>
</head>
<body>
<div id="content">
<h2>XML Sitemap</h2>
<p class="expl">Generated by <a href="https://roumen.it/projects/laravel-sitemap/" target="_blank" title="Sitemap generator for Laravel">laravel-sitemap</a>. This is styled version of the sitemap, original xml is still accessible for crawlers, robots, spiders (search engines).</p>
<p class="expl">This sitemap contains <xsl:value-of select="count(s:urlset/s:url)"/> URLs</p>
<p class="expl">This sitemap contains <xsl:value-of select="count(s:urlset/s:url)"/> URLs. Table below is sorted by update date. All columns are sortable, click on them to sort or change order.</p>
<table id="sitemap" class="tablesorter" border="1" cellpadding="3">
<thead>
<tr bgcolor="#9acd32">
Expand All @@ -106,7 +114,7 @@ footer
<tbody>
<xsl:for-each select="s:urlset/s:url">
<tr>
<td><xsl:value-of select="s:loc"/></td>
<td class="url"><xsl:value-of select="s:loc"/></td>
<td><xsl:value-of select="count(xhtml:link)"/></td>
<td><xsl:value-of select="count(image:image)"/></td>
<td><xsl:value-of select="count(video:video)"/></td>
Expand Down

0 comments on commit 45fd4b6

Please sign in to comment.