Skip to content

Commit 45fd4b6

Browse files
author
Roumen Damianoff
committed
updated xsl styles
1 parent fe2df30 commit 45fd4b6

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

src/public/styles/google-news.xsl

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
<html lang="en">
55
<head>
66
<meta charset="utf-8"/>
7-
<title>XML Sitemap</title>
7+
<title>XML Sitemap (for Google News)</title>
88
<script type="text/javascript" src="https://cdn.roumen.it/repo/jquery/jquery-1.4.2.min.js"></script>
99
<script type="text/javascript" src="https://cdn.roumen.it/repo/jquery.tablesorter/2.0.5/jquery.tablesorter.min.js"></script>
1010
<script type="text/javascript"><![CDATA[
1111
$(document).ready(function() {
1212
$("#sitemap").tablesorter({sortList:[[6,1],[4,1]],widgets:['zebra']});
13+
$('.url').click(function(){
14+
window.open($(this).html());
15+
return false;
16+
});
1317
});]]></script>
1418
<style type="text/css">
1519
body
@@ -70,8 +74,8 @@ td
7074
th
7175
{
7276
text-align:left;
73-
padding-right:30px;
74-
font-size:11px;
77+
padding: 5px 20px 5px 5px;
78+
font-size: 12px;
7579
}
7680
thead th
7781
{
@@ -84,13 +88,17 @@ footer
8488
text-align:left;
8589
max-width:100%;
8690
}
91+
.url:hover
92+
{
93+
cursor:pointer;
94+
}
8795
</style>
8896
</head>
8997
<body>
9098
<div id="content">
91-
<h2>XML Sitemap</h2>
99+
<h2>XML Sitemap (for Google News)</h2>
92100
<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>
93-
<p class="expl">This sitemap contains <xsl:value-of select="count(s:urlset/s:url)"/> URLs</p>
101+
<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>
94102
<table id="sitemap" class="tablesorter" border="1" cellpadding="3">
95103
<thead>
96104
<tr bgcolor="#9acd32">
@@ -106,7 +114,7 @@ footer
106114
<tbody>
107115
<xsl:for-each select="s:urlset/s:url">
108116
<tr>
109-
<td><xsl:value-of select="s:loc"/></td>
117+
<td class="url"><xsl:value-of select="s:loc"/></td>
110118
<td><xsl:value-of select="news:news/news:title"/></td>
111119
<td><xsl:value-of select="news:news/news:publication/news:name"/></td>
112120
<td><xsl:value-of select="news:news/news:publication/news:language"/></td>

src/public/styles/xml.xsl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
<script type="text/javascript"><![CDATA[
1111
$(document).ready(function() {
1212
$("#sitemap").tablesorter({sortList:[[6,1],[4,1]],widgets:['zebra']});
13+
$('.url').click(function(){
14+
window.open($(this).html());
15+
return false;
16+
});
1317
});]]></script>
1418
<style type="text/css">
1519
body
@@ -70,8 +74,8 @@ td
7074
th
7175
{
7276
text-align:left;
73-
padding-right:30px;
74-
font-size:11px;
77+
padding: 5px 20px 5px 5px;
78+
font-size: 12px;
7579
}
7680
thead th
7781
{
@@ -84,13 +88,17 @@ footer
8488
text-align:left;
8589
max-width:100%;
8690
}
91+
.url:hover
92+
{
93+
cursor:pointer;
94+
}
8795
</style>
8896
</head>
8997
<body>
9098
<div id="content">
9199
<h2>XML Sitemap</h2>
92100
<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>
93-
<p class="expl">This sitemap contains <xsl:value-of select="count(s:urlset/s:url)"/> URLs</p>
101+
<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>
94102
<table id="sitemap" class="tablesorter" border="1" cellpadding="3">
95103
<thead>
96104
<tr bgcolor="#9acd32">
@@ -106,7 +114,7 @@ footer
106114
<tbody>
107115
<xsl:for-each select="s:urlset/s:url">
108116
<tr>
109-
<td><xsl:value-of select="s:loc"/></td>
117+
<td class="url"><xsl:value-of select="s:loc"/></td>
110118
<td><xsl:value-of select="count(xhtml:link)"/></td>
111119
<td><xsl:value-of select="count(image:image)"/></td>
112120
<td><xsl:value-of select="count(video:video)"/></td>

0 commit comments

Comments
 (0)