Changeset 753 for trunk/TipsContrib/data/TWiki/TipsOfTheDayInclude.txt
- Timestamp:
- 11/16/08 23:02:53 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TipsContrib/data/TWiki/TipsOfTheDayInclude.txt
r749 r753 1 1 %META:TOPICINFO{author="ProjectContributor" date="1167969723" format="1.0" version="$Rev$"}% 2 %META:TOPICPARENT{name="T WikiTipsOfTheDayAdmin"}%3 ---+ T Wiki Tips Of the Day Include2 %META:TOPICPARENT{name="TipsOfTheDayAdmin"}% 3 ---+ Tips Of the Day Include 4 4 5 5 This Page randomly picks a Tip of the day to display. The %HOMETOPIC% includes the part between the horizontal rules. … … 8 8 %STARTINCLUDE% 9 9 <div class="tipsOfTheDay"><div class="tipsOfTheDayContents"> 10 <strong class="tipsOfTheDayHeader">%ICON{tip}% T Wiki 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)))}% 12 12 %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"}% <img src=\\"%ICONURL{more-small}%\\" alt=\\"Read more\\" title=\\"Read on\\" width=\\"13\\" height=\\"13\\" border=\\"0\\" />]]\"}$NOP(%)}% 13 13 </div> … … 17 17 ----- 18 18 19 __See also:__ T WikiTipsOfTheDay, TWikiTipsOfTheDayAdmin19 __See also:__ TipsOfTheDay, TipsOfTheDayAdmin
Note: See TracChangeset
for help on using the changeset viewer.
