mobile.xsl 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" exclude-result-prefixes="s">
  3. <xsl:template match="/">
  4. <html lang="en">
  5. <head>
  6. <meta charset="utf-8"/>
  7. <title>XML Sitemap (for Feature Phones)</title>
  8. <script type="text/javascript" src="https://cdn.damianoff.com/repo/jquery/jquery-1.4.2.min.js"></script>
  9. <script type="text/javascript" src="https://cdn.damianoff.com/repo/jquery.tablesorter/2.0.5/jquery.tablesorter.min.js"></script>
  10. <script type="text/javascript"><![CDATA[
  11. $(document).ready(function() {
  12. $("#sitemap").tablesorter({sortList:[[0,1]],widgets:['zebra']});
  13. $('.url').click(function(){
  14. window.open($(this).html());
  15. return false;
  16. });
  17. });]]></script>
  18. <style type="text/css">
  19. body
  20. {
  21. font-family: Helvetica, Arial, sans-serif;
  22. font-size: 13px;
  23. color: #545353;
  24. }
  25. table
  26. {
  27. border: none;
  28. border-collapse: collapse;
  29. width:100%;
  30. margin:30px 0;
  31. }
  32. #sitemap tr.odd
  33. {
  34. background-color: #eee;
  35. }
  36. #sitemap tbody tr:hover
  37. {
  38. background-color: #ccc;
  39. }
  40. #sitemap tbody tr:hover td, #sitemap tbody tr:hover td a
  41. {
  42. color: #000;
  43. }
  44. #content
  45. {
  46. margin: 10px auto;
  47. max-width: 960px;
  48. }
  49. .expl
  50. {
  51. margin: 10px 3px;
  52. line-height: 1.3em;
  53. }
  54. .expl a, .expl a:visited, footer a, footer a:visited
  55. {
  56. color: #da3114;
  57. font-weight: bold;
  58. }
  59. a
  60. {
  61. color: #000;
  62. text-decoration: none;
  63. }
  64. a:visited
  65. {
  66. color: #777;
  67. }
  68. a:hover
  69. {
  70. text-decoration: underline;
  71. }
  72. td
  73. {
  74. font-size:11px;
  75. }
  76. th
  77. {
  78. text-align:left;
  79. padding: 5px 20px 5px 5px;
  80. font-size: 12px;
  81. }
  82. thead th
  83. {
  84. border-bottom: 1px solid #dedede;
  85. cursor: pointer;
  86. }
  87. footer
  88. {
  89. margin:20px auto;
  90. text-align:left;
  91. max-width:100%;
  92. }
  93. .url:hover
  94. {
  95. cursor:pointer;
  96. }
  97. </style>
  98. </head>
  99. <body>
  100. <div id="content">
  101. <h2>XML Sitemap (for Feature Phones)</h2>
  102. <p class="expl">Generated by <a href="https://gitlab.com/Laravelium/Sitemap" target="_blank" title="Sitemap generator for Laravel">laravelium-sitemap</a>. This is styled xml sitemap (for feature phones).</p>
  103. <p class="expl">This sitemap contains <xsl:value-of select="count(s:urlset/s:url)"/> URLs.</p>
  104. <table id="sitemap" class="tablesorter" border="1" cellpadding="3">
  105. <thead>
  106. <tr bgcolor="#9acd32">
  107. <th style="text-align:left">URL</th>
  108. </tr>
  109. </thead>
  110. <tbody>
  111. <xsl:for-each select="s:urlset/s:url">
  112. <tr>
  113. <td class="url"><xsl:value-of select="s:loc"/></td>
  114. </tr>
  115. </xsl:for-each>
  116. </tbody>
  117. </table>
  118. <footer></footer>
  119. </div>
  120. </body>
  121. </html>
  122. </xsl:template>
  123. </xsl:stylesheet>