| | @@ -153,11 +153,11 @@ |
| 153 | 153 | "Select and/or modify the web interface \"skins\""); |
| 154 | 154 | setup_menu_entry("Moderation", "setup_modreq", |
| 155 | 155 | "Enable/Disable requiring moderator approval of Wiki and/or Ticket" |
| 156 | 156 | " changes and attachments."); |
| 157 | 157 | setup_menu_entry("Ad-Unit", "setup_adunit", |
| 158 | | - "Edit HTML text for an ad unit inserted after the menu bar"); |
| 158 | + "Edit HTML/TH1 for an ad unit inserted after the menu bar"); |
| 159 | 159 | setup_menu_entry("URLs & Checkouts", "urllist", |
| 160 | 160 | "Show URLs used to access this repo and known check-outs"); |
| 161 | 161 | if( setup_user ){ |
| 162 | 162 | setup_menu_entry("Web-Cache", "cachestat", |
| 163 | 163 | "View the status of the expensive-page cache"); |
| | @@ -1784,10 +1784,12 @@ |
| 1784 | 1784 | @ <li>The "Right-Column Ad-Unit" is used on pages with tall, narrow content. |
| 1785 | 1785 | @ <li>If the "Right-Column Ad-Unit" is blank, the "Banner Ad-Unit" is |
| 1786 | 1786 | @ used on all pages. |
| 1787 | 1787 | @ <li>Properties: "adunit", "adunit-right", "adunit-omit-if-admin", and |
| 1788 | 1788 | @ "adunit-omit-if-user". |
| 1789 | + @ <li>Ad-Units can contain TH1 commands, the following TH1 variables are most |
| 1790 | + @ useful: $current_feature, $current_page, $requested_page, $login |
| 1789 | 1791 | @ <li>Suggested <a href="setup_skinedit?w=0">CSS</a> changes: |
| 1790 | 1792 | @ <blockquote><pre> |
| 1791 | 1793 | @ div.adunit_banner { |
| 1792 | 1794 | @ margin: auto; |
| 1793 | 1795 | @ width: 100%%; |
| | @@ -1808,11 +1810,20 @@ |
| 1808 | 1810 | @ height: 90px; |
| 1809 | 1811 | @ border: 1px solid #f11; |
| 1810 | 1812 | @ background-color: #fcc; |
| 1811 | 1813 | @ '>Demo Ad</div> |
| 1812 | 1814 | @ </pre></blockquote> |
| 1813 | | - @ </li> |
| 1815 | + @ <li>Example of a page-specific Ad-Unit: |
| 1816 | + @ <blockquote><pre> |
| 1817 | + @ <th1> |
| 1818 | + @ if {$current_page eq "forum"} { |
| 1819 | + @ # only show Ad-Unit on Forum start page: |
| 1820 | + @ html {<strong>Notice:</strong> Search the forum for an answer before asking in a new post!} |
| 1821 | + @ } |
| 1822 | + @ </th1> |
| 1823 | + @ </pre></blockquote> |
| 1824 | + @ </ul> |
| 1814 | 1825 | style_finish_page(); |
| 1815 | 1826 | db_end_transaction(0); |
| 1816 | 1827 | } |
| 1817 | 1828 | |
| 1818 | 1829 | /* |
| 1819 | 1830 | |