Ignore:
Timestamp:
11/16/08 23:02:53 (4 years ago)
Author:
KennethLavrsen
Message:

Item203: Unbrand TipsContrib part 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TipsContrib/data/TWiki/TipsOfTheDayInclude.txt

    r749 r753  
    11%META:TOPICINFO{author="ProjectContributor" date="1167969723" format="1.0" version="$Rev$"}% 
    2 %META:TOPICPARENT{name="TWikiTipsOfTheDayAdmin"}% 
    3 ---+ TWiki Tips Of the Day Include 
     2%META:TOPICPARENT{name="TipsOfTheDayAdmin"}% 
     3---+ Tips Of the Day Include 
    44 
    55This Page randomly picks a Tip of the day to display. The %HOMETOPIC% includes the part between the horizontal rules. 
     
    88%STARTINCLUDE% 
    99<div class="tipsOfTheDay"><div class="tipsOfTheDayContents"> 
    10 <strong class="tipsOfTheDayHeader">%ICON{tip}% TWiki Tip of the Day</strong> 
    11 <div class="tipsOfTheDayText">%CALC{$SET(webtopic, $LISTRAND(%SEARCH{ "^TWiki[Custom]*Tip[0-9A-Z]" web="%SYSTEMWEB%, %MAINWEB%" topic="TWiki*Tip*" scope="topic" type="regex" casesensitive="on" nosearch="on" nototal="on" separator=", " format="$web.$topic" noheader="on" }%))$SET(pos, $FIND(., $GET(webtopic)))$SET(web, $REPLACE($GET(webtopic), $GET(pos), 100))$SET(topic, $REPLACE($GET(webtopic), 1, $GET(pos)))}% 
     10<strong class="tipsOfTheDayHeader">%ICON{tip}% Tip of the Day</strong> 
     11<div class="tipsOfTheDayText">%CALC{$SET(webtopic, $LISTRAND(%SEARCH{ "^[Custom]*TipTopic[0-9A-Z]" web="%SYSTEMWEB%, %MAINWEB%" topic="*TipTopic*" scope="topic" type="regex" casesensitive="on" nosearch="on" nototal="on" separator=", " format="$web.$topic" noheader="on" }%))$SET(pos, $FIND(., $GET(webtopic)))$SET(web, $REPLACE($GET(webtopic), $GET(pos), 100))$SET(topic, $REPLACE($GET(webtopic), 1, $GET(pos)))}% 
    1212%CALC{$NOP(%)SEARCH{ \"^$GET(topic)$\" web=\"$GET(web)\" scope="topic" regex="on" nosearch=\"on\" noheader=\"on\" nototal=\"on\" limit=\"1\" format=\"<span class=\\"tipsOfTheDayTitle\\">[[%SCRIPTURL{view}%/$web/$topic][$pattern(.*?\-\-\-\+([^\n\r]+).*)]]</span><br /> $summary(100, noheader) [[%SCRIPTURL{view}%/$web/$topic][%MAKETEXT{"Read on"}%&nbsp;<img src=\\"%ICONURL{more-small}%\\" alt=\\"Read more\\" title=\\"Read on\\" width=\\"13\\" height=\\"13\\" border=\\"0\\" />]]\"}$NOP(%)}% 
    1313</div> 
     
    1717----- 
    1818 
    19 __See also:__ TWikiTipsOfTheDay, TWikiTipsOfTheDayAdmin 
     19__See also:__ TipsOfTheDay, TipsOfTheDayAdmin 
Note: See TracChangeset for help on using the changeset viewer.