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