PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.2.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.2.0
2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 1.26.0 All 55 releases
thinkrank / static / xsl / sitemap-index.xsl

sitemap-index.xsl in ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO 2.2.0, at static/xsl/sitemap-index.xsl

243 lines 10.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9">
3 <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
4
5 <xsl:template match="/">
6 <html xmlns="http://www.w3.org/1999/xhtml">
7 <head>
8 <title>XML Sitemap Index - ThinkRank SEO</title>
9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
10 <style type="text/css">
11 body {
12 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
13 margin: 0;
14 padding: 20px;
15 background-color: #f8f9fa;
16 color: #333;
17 line-height: 1.6;
18 }
19 .header {
20 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
21 color: white;
22 padding: 30px;
23 border-radius: 10px;
24 margin-bottom: 30px;
25 text-align: center;
26 }
27 .header h1 {
28 margin: 0;
29 font-size: 2.5em;
30 font-weight: 300;
31 }
32 .header p {
33 margin: 10px 0 0 0;
34 opacity: 0.9;
35 font-size: 1.1em;
36 }
37 .stats {
38 display: flex;
39 justify-content: center;
40 gap: 30px;
41 margin: 20px 0;
42 flex-wrap: wrap;
43 }
44 .stat-item {
45 background: rgba(255,255,255,0.2);
46 padding: 15px 25px;
47 border-radius: 8px;
48 text-align: center;
49 }
50 .stat-number {
51 font-size: 2em;
52 font-weight: bold;
53 display: block;
54 }
55 .stat-label {
56 font-size: 0.9em;
57 opacity: 0.8;
58 }
59 .container {
60 max-width: 1200px;
61 margin: 0 auto;
62 background: white;
63 border-radius: 10px;
64 box-shadow: 0 4px 6px rgba(0,0,0,0.1);
65 overflow: hidden;
66 }
67 .table-header {
68 background: #f8f9fa;
69 padding: 20px;
70 border-bottom: 2px solid #e9ecef;
71 }
72 .table-header h2 {
73 margin: 0;
74 color: #495057;
75 font-size: 1.5em;
76 }
77 .description {
78 background: #e3f2fd;
79 padding: 15px 20px;
80 border-left: 4px solid #2196f3;
81 margin: 20px;
82 border-radius: 4px;
83 }
84 .description p {
85 margin: 0;
86 color: #1565c0;
87 font-size: 0.95em;
88 }
89 table {
90 width: 100%;
91 border-collapse: collapse;
92 font-size: 14px;
93 }
94 th {
95 background: #6c757d;
96 color: white;
97 padding: 15px 10px;
98 text-align: left;
99 font-weight: 600;
100 text-transform: uppercase;
101 font-size: 12px;
102 letter-spacing: 0.5px;
103 }
104 td {
105 padding: 12px 10px;
106 border-bottom: 1px solid #e9ecef;
107 vertical-align: top;
108 }
109 tr:hover {
110 background-color: #f8f9fa;
111 }
112 .sitemap-cell {
113 max-width: 400px;
114 word-break: break-all;
115 }
116 .sitemap-cell a {
117 color: #007bff;
118 text-decoration: none;
119 font-weight: 500;
120 }
121 .sitemap-cell a:hover {
122 text-decoration: underline;
123 color: #0056b3;
124 }
125 .sitemap-type {
126 display: inline-block;
127 background: #28a745;
128 color: white;
129 padding: 4px 8px;
130 border-radius: 12px;
131 font-size: 11px;
132 font-weight: 600;
133 text-transform: uppercase;
134 letter-spacing: 0.5px;
135 }
136 .lastmod {
137 color: #6c757d;
138 font-family: 'Courier New', monospace;
139 font-size: 13px;
140 }
141 .footer {
142 text-align: center;
143 margin-top: 40px;
144 padding: 20px;
145 color: #6c757d;
146 font-size: 14px;
147 }
148 .footer a {
149 color: #007bff;
150 text-decoration: none;
151 }
152 .footer a:hover {
153 text-decoration: underline;
154 }
155
156 /* Responsive design */
157 @media (max-width: 768px) {
158 body { padding: 10px; }
159 .header { padding: 20px; }
160 .header h1 { font-size: 2em; }
161 .stats { gap: 15px; }
162 .stat-item { padding: 10px 15px; }
163 table { font-size: 12px; }
164 th, td { padding: 8px 6px; }
165 .sitemap-cell { max-width: 200px; }
166 }
167 </style>
168 </head>
169 <body>
170 <div class="header">
171 <h1>XML Sitemap Index</h1>
172 <p>Generated by ThinkRank SEO Plugin</p>
173 <div class="stats">
174 <div class="stat-item">
175 <span class="stat-number"><xsl:value-of select="count(sitemap:sitemapindex/sitemap:sitemap)"/></span>
176 <span class="stat-label">Total Sitemaps</span>
177 </div>
178 <div class="stat-item">
179 <span class="stat-number">Today</span>
180 <span class="stat-label">Generated</span>
181 </div>
182 </div>
183 </div>
184
185 <div class="description">
186 <p><strong>What is a Sitemap Index?</strong> This file contains links to all the individual sitemaps for this website. Each sitemap contains specific types of content (posts, pages, products, etc.) to help search engines crawl and index your site more efficiently.</p>
187 </div>
188
189 <div class="container">
190 <div class="table-header">
191 <h2>Individual Sitemaps</h2>
192 </div>
193 <table>
194 <thead>
195 <tr>
196 <th>Sitemap URL</th>
197 <th>Content Type</th>
198 <th>Last Modified</th>
199 </tr>
200 </thead>
201 <tbody>
202 <xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap">
203 <tr>
204 <td class="sitemap-cell">
205 <a href="{sitemap:loc}" target="_blank">
206 <xsl:value-of select="sitemap:loc"/>
207 </a>
208 </td>
209 <td>
210 <span class="sitemap-type">
211 <xsl:choose>
212 <xsl:when test="contains(sitemap:loc, 'posts')">Posts</xsl:when>
213 <xsl:when test="contains(sitemap:loc, 'pages')">Pages</xsl:when>
214 <xsl:when test="contains(sitemap:loc, 'categories')">Categories</xsl:when>
215 <xsl:when test="contains(sitemap:loc, 'products')">Products</xsl:when>
216 <xsl:when test="contains(sitemap:loc, 'product-categories')">Product Categories</xsl:when>
217 <xsl:otherwise>Content</xsl:otherwise>
218 </xsl:choose>
219 </span>
220 </td>
221 <td class="lastmod">
222 <xsl:choose>
223 <xsl:when test="sitemap:lastmod">
224 <xsl:value-of select="substring(sitemap:lastmod, 1, 10)"/>
225 </xsl:when>
226 <xsl:otherwise>-</xsl:otherwise>
227 </xsl:choose>
228 </td>
229 </tr>
230 </xsl:for-each>
231 </tbody>
232 </table>
233 </div>
234
235 <div class="footer">
236 <p>This XML sitemap index helps search engines discover and crawl all your website's content efficiently.</p>
237 <p>Generated by <a href="https://wordpress.org/plugins/thinkrank/" target="_blank">ThinkRank SEO</a></p>
238 </div>
239 </body>
240 </html>
241 </xsl:template>
242 </xsl:stylesheet>
243