]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/wikilens/templates/categorypage.tmpl
Activated Id substitution for Subversion
[SourceForge/phpwiki.git] / themes / wikilens / templates / categorypage.tmpl
1 <?php
2   rcs_id('$Id$');
3 ?>
4 <div class="categorypage categorypage-form">
5
6 This page represents the <?=$SINGULAR?> category.
7
8 <br/>
9
10 All pages that are in the <?=$SINGULAR?> category refer to this page.
11
12 <br/><br/>
13 <?php
14
15 $this->_printPlugin("<" . "?plugin UserRatings nobuds=" . ($SHOWBUDS ? 0 : 1) . " category=\"" . $PAGENAME . "\" ?" . ">");
16 ?>
17 <br/>
18 <?php 
19 if ($SHOWBUDS){
20         $btn = Button(array('exclude'  => "$EXCLUDE", 
21                                                 'category' => "$PAGENAME",
22                                 'showbuds' => false),
23                        _("Hide Buddy Ratings in the $SINGULAR category"), 
24                                 $PAGENAME); 
25
26
27 } else {
28 $btn = Button(array('exclude'  => "$EXCLUDE", 
29                                                 'category' => "$PAGENAME",
30                        'showbuds' => true),
31                        _("Show Buddy Ratings in the $SINGULAR category"), 
32                                 $PAGENAME); 
33 }
34                  ?>
35 <?= $btn ?>
36
37
38 <h3>To create a page in the <?=$SINGULAR?> category</h3>
39
40 <ol>
41
42 <li>
43
44 Search to see if it already exists.  We don't want lots of
45 duplicate pages.  You can use this FuzzyPages search:
46
47 <?plugin-form FuzzyPages ?>
48
49 </li>
50 <br/>
51
52 <li>
53
54 If it does not exist, you can create the page.  You can use this
55 CreatePage button, or see <?php $link = WikiLink("HowToUseWiki"); ?> <?=
56 $link ?> for more ways to navigate or create pages.
57
58 <?php
59   $bpage = "~~[" . $PAGENAME . "]";
60
61   $initial_content = "\"This page is in the $bpage category.  You must leave in at least one reference to $bpage in order for this page to be in the $bpage category.  Otherwise, edit this text to describe your page.\"";
62         $adder = "";
63   
64   //if($SELF_ON_CREATE == true){
65         //$adder = "save_and_redirect_to=\"" . $PAGENAME . "\"";
66   //}   
67   
68   $this->_printPlugin("<" . "?plugin-form CreatePage " . $adder . " initial_content=" . $initial_content . " ?" . ">");
69 ?>
70
71 </li>
72 <br/>
73
74 <li>
75 Once you have created a page, it will simply appear in the list above.  If you would
76 like to add information about the page, click on its name in the list and edit and save the text.
77 To ensure that the page stays in this category, make sure <b>[<?=$PAGENAME?>]</b> is in the description somewhere (including the
78 brackets to be safe).
79
80 </li>
81
82 </ol>
83
84 </div>
85