Tatsuki SUGIURA
sugi****@users*****
2006年 7月 12日 (水) 20:41:47 JST
Index: slashjp/plugins/Daypass/templates/data;daypass;default diff -u /dev/null slashjp/plugins/Daypass/templates/data;daypass;default:1.1 --- /dev/null Wed Jul 12 20:41:47 2006 +++ slashjp/plugins/Daypass/templates/data;daypass;default Wed Jul 12 20:41:47 2006 @@ -0,0 +1,34 @@ +__section__ +default +__description__ +Repository for random data elements. + +* value = the name of the data element to retrieve + +Each data element may have any number of other variables. +__title__ + +__page__ +daypass +__lang__ +en_US +__name__ +data +__template__ +[% SWITCH value %] + +[% CASE 'head' %] + [% returnme.data_constant = 1 %] + [% constants.sitename %]: Daypass + +[% CASE 'offertext' %] + [% returnme.data_constant = 1 %] + You're invited to <a href="/daypass.pl">earn a daypass</a> + and become an honorary subscriber for the day.<br> + +[% END %] + +__seclev__ +10000 +__version__ +$Id: data;daypass;default,v 1.1 2006/07/12 11:41:47 sugi Exp $ Index: slashjp/plugins/Daypass/templates/main;daypass;default diff -u /dev/null slashjp/plugins/Daypass/templates/main;daypass;default:1.1 --- /dev/null Wed Jul 12 20:41:47 2006 +++ slashjp/plugins/Daypass/templates/main;daypass;default Wed Jul 12 20:41:47 2006 @@ -0,0 +1,34 @@ +__section__ +default +__description__ +* adnum = ad number to display +* dpk = daypasskey text string +* minduration = minimum duration in seconds, if known + +__title__ + +__page__ +daypass +__lang__ +en_US +__name__ +main +__template__ + +<div id="msgcell"></div> +<script type="text/javascript"> +var daypassURL = "[% gSkin.rootdir %]/daypass.pl?dpk=[% dpk | strip_attribute %]&adnum=[% adnum | strip_attribute %]"; +var cntdwn = [% minduration || 15 %]; +function displayMessage() { + document.getElementById("msgcell").innerHTML = '<center><a href="'+daypassURL+'">Please enjoy your Slashdot Day Pass.</a>'; +} +document.getElementById('msgcell').innerHTML = '<center>Watch this ad for '+cntdwn+' seconds and then enjoy your Day Pass. <br><font size="-1">(a link will appear when the ad is done)</font>'; +setTimeout("displayMessage()", cntdwn * 1000); +</script> + +<p>[% Slash.getAd(adnum) %]</p> + +__seclev__ +10000 +__version__ +$Id: main;daypass;default,v 1.1 2006/07/12 11:41:47 sugi Exp $