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