From 41ce3396fa943453190710e61d7f6b69c3f1c7c8 Mon Sep 17 00:00:00 2001 From: Hendrik Schaper Date: Thu, 6 Sep 2012 21:59:25 +1200 Subject: [PATCH] NEW: xsl stylesheet --- css/style.css | 131 +++++++++++++++++++++++++++ images/asc.gif | Bin 0 -> 54 bytes images/bg.gif | Bin 0 -> 64 bytes images/desc.gif | Bin 0 -> 54 bytes images/logo_small.png | Bin 0 -> 2119 bytes javascript/jquery.tablesorter.min.js | 4 + templates/GoogleSitemap.ss | 1 + templates/xml-sitemap.xsl | 72 +++++++++++++++ 8 files changed, 208 insertions(+) create mode 100644 css/style.css create mode 100644 images/asc.gif create mode 100644 images/bg.gif create mode 100644 images/desc.gif create mode 100644 images/logo_small.png create mode 100644 javascript/jquery.tablesorter.min.js create mode 100644 templates/xml-sitemap.xsl diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..5dc4912 --- /dev/null +++ b/css/style.css @@ -0,0 +1,131 @@ +*{ + margin: 0; + padding: 0; +} +body { + font-family: Helvetica, Arial, sans-serif; + font-size: 14px; + color: #545353; + color: #005A92; + background: #B0BEC7; + padding: 20px; +} +#content { + margin: 0 auto; + max-width: 1200px; + background: #fff; + padding: 20px 30px; + -webkit-box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.2); + box-shadow: 2px 2px 5px 1px rgba(0, 0, 0, 0.2); + -webkit-border-radius: 5px; + border-radius: 5px; +} +h1{ + font-size: 20px; + line-height: 24px; + font-weight: bold; + color: #1556B2; + color: #005A92; +/* text-shadow: 1px 1px 1px rgba(0,0,0,0.7); + filter: dropshadow(color=#000, offx=2, offy=2);*/ + padding-left: 31px; + background: url("../images/logo_small.png") transparent left top no-repeat scroll; + margin: 0 0 20px 0; + display: inline-block; +} +h1 a{ + font: inherit; + color: inherit; + text-decoration: none; +} +h1 .ss_link{ + visibility: hidden; + font-size: 9px; + display: block; + text-align: right; + margin-top: -5px; +} +h1:hover .ss_link{ + visibility: visible; + text-decoration: underline; + +} +.expl { + margin: 10px 3px; + line-height: 1.3em; +} +.expl a { + color: #1556B2; + font-weight: bold; + text-decoration: none; +} +.expl a:hover{ + text-decoration: underline; +} + +table.tablesorter { + background-color: #CDCDCD; + margin:20px 0pt 15px; + font-size: 8pt; + width: 100%; + text-align: left; + border: none; + border-collapse: collapse; + border-bottom: 1px solid #005A92; +} +table.tablesorter thead tr th, table.tablesorter tfoot tr th { + /*background-color: #e6EEEE;*/ + background-color: #F5FAFA; + font-size: 8pt; + padding: 4px 20px 4px 10px; +} +table.tablesorter thead tr .headerSortDown, table.tablesorter thead tr .headerSortUp { + background-color: #B0BEC7; + background-color: #e6EEEE; +} + +table.tablesorter thead tr .header { + background-image: url("../images/bg.gif"); + background-repeat: no-repeat; + background-position: center right; + cursor: pointer; + border-bottom: 1px solid #005A92; +} +table.tablesorter thead tr .headerSortUp { + background-image: url("../images/asc.gif"); +} +table.tablesorter thead tr .headerSortDown { + background-image: url("../images/desc.gif"); +} + +table.tablesorter tbody td { + color: #005A92; + padding: 4px; + + vertical-align: top; +} +table.tablesorter tbody tr{ + background-color: #FFF; +} +table.tablesorter tbody tr.odd { + background-color:#EFF2F3; +} + table.tablesorter tbody tr:hover { + background-color: #D8E1E8; +} +table.tablesorter tbody a{ + color: #444;color: #005A92; + text-decoration: none; +} +table.tablesorter tbody a:hover{ + text-decoration: underline; +} +table.tablesorter tbody tr:hover td, +table.tablesorter tbody tr:hover a{ + color: #000; +} +#Footer{ + margin: 50px 0 10px; + text-align: right; + font-size: 0.8em; +} diff --git a/images/asc.gif b/images/asc.gif new file mode 100644 index 0000000000000000000000000000000000000000..74157867f25acbc146704d43399d6c3605ba7724 GIT binary patch literal 54 zcmZ?wbhEHb6lGvxXkcJa);0M5|G(l-7DfgJMg|=QAOOiQF!A=tFW`Q0{?_dDi`go= G4AuZ#-wosd literal 0 HcmV?d00001 diff --git a/images/bg.gif b/images/bg.gif new file mode 100644 index 0000000000000000000000000000000000000000..fac668fcf42af844a3af0a239fa638ddbc08443c GIT binary patch literal 64 zcmZ?wbhEHb6lLIKXkcJa);0M5|G(l-7DfgJMg|=QAOOiQFp2l{H=O3Yl~fU8)V1~= QTew|n!uOuePzDBT00piR0RR91 literal 0 HcmV?d00001 diff --git a/images/desc.gif b/images/desc.gif new file mode 100644 index 0000000000000000000000000000000000000000..3b30b3c58eabdb47a1c420ad03c8e30b966cc858 GIT binary patch literal 54 zcmZ?wbhEHb6lGvxXkcJa);0M5|G(l-7DfgJMg|=QAOOiQF!A>EGoD<#VNP?1QCB1* GgEatI(+xQQ literal 0 HcmV?d00001 diff --git a/images/logo_small.png b/images/logo_small.png new file mode 100644 index 0000000000000000000000000000000000000000..fdb589e3317bd1ec26bdbb4c8dc9c9961853cf0b GIT binary patch literal 2119 zcmaJ?eK?fq8lNb(k+f@ENp*G_w%ugDjWKf>!+gZhNQjY-jG31iV?NBh%#e>Yr!$-GT>feuybl+hmWl6W}0GS-nR~i8-xpDyF%9n-%aF&=G3HSh9 zetb*^-~@pfB7}Y%ki$Mm=1IjUt{#I@iDf!A1mZ+h$+$cb0K&t8NTGy+m~Lu8z=eDY zB7nfguw`^WAaqZV1HK7fe!K(`kHkk%o#9R@vQ9t@fLypr94%3hRTRWKU9xVkKSm?q z?;xOvg7~8-4%-_}m&yS+0fj;GFb){F0~UqF+Y^aIJ2(!5#h@`bG!}=%63KWR8H0hp ze-OHCa()EahjHM2E?q=H2tZIqMx&KVB}$1$N#&7fEQv(YYv6E59RjI{mw;RqQlhY4 zQ(yoJo?Ivcg;EJzugDFT#)1@tuF^lQAeMcQl_=h~N!Kv6iYr57Q5gM|)_`pG|A&gj zAJ7WW2l%tz|0%5Si`g>eA?fLtnuzq>M7xPC39b@kqJ z`Rmu>x-J*3D+a9}?0*eua`_|ad%xV1T=hm4O2R$A_bJTx#a}6t5+Zj67-q zEb#Sx+HseCP_>zNuNrEd8Bx*^vunDn82{?5cIe7m;V?u#1JH>I_&0>^?xHQM^E zg&)Od_bmIS*%bX--d2hC?5vyW2QGul_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jO#L5dN_EHp literal 0 HcmV?d00001 diff --git a/javascript/jquery.tablesorter.min.js b/javascript/jquery.tablesorter.min.js new file mode 100644 index 0000000..b8605df --- /dev/null +++ b/javascript/jquery.tablesorter.min.js @@ -0,0 +1,4 @@ + +(function($){$.extend({tablesorter:new +function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'/\.|\,/g',onRenderHeader:null,selectorHeaders:'thead th',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}if(table.tBodies.length==0)return;var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder))return table.config.headers[i].lockedOrder;return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i b["+i+"]) ? 1 : 0));";};function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));";};function makeSortNumeric(i){return"a["+i+"]-b["+i+"];";};function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];";};function sortText(a,b){if(table.config.sortLocaleCompare)return a.localeCompare(b);return((ab)?1:0));};function sortTextDesc(a,b){if(table.config.sortLocaleCompare)return b.localeCompare(a);return((ba)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrder;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i + <% loop $Items %> diff --git a/templates/xml-sitemap.xsl b/templates/xml-sitemap.xsl new file mode 100644 index 0000000..e9fd2c6 --- /dev/null +++ b/templates/xml-sitemap.xsl @@ -0,0 +1,72 @@ + + + + + + + XML Sitemap + + + + + + + +
+

+ XML Sitemap + → www.silverstripe.org + +

+ +

+ This sitemap contains URLs. +

+ + + + + + + + + + + + + + + + + + + + + +
URLPriorityChange Freq.Last Change
+ + + + + + + + + + + + +
+ +
+ + +
+