diff options
Diffstat (limited to 'h-source/Application/Views/Wiki/page.php')
-rw-r--r-- | h-source/Application/Views/Wiki/page.php | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/h-source/Application/Views/Wiki/page.php b/h-source/Application/Views/Wiki/page.php index d386704..1580d67 100644 --- a/h-source/Application/Views/Wiki/page.php +++ b/h-source/Application/Views/Wiki/page.php @@ -57,16 +57,18 @@ <div class="view_page_back_button"> <a title="Insert a new wiki page" href="<?php echo $this->baseUrl."/".$this->controller."/insert/$lang";?>"><img class="top_left_images" src="<?php echo $this->baseUrl;?>/Public/Img/new-60.png"></a> </div> - - <div class="view_page_history_button"> - <a title="talk page" href="<?php echo $this->baseUrl."/".$this->controller."/talk/$lang/$id_wiki";?>"><img class="top_left_note_image" src="<?php echo $this->baseUrl;?>/Public/Img/talk-60.png"></a> - </div> - <div class="view_page_history_button"> - <a title="history page" href="<?php echo $this->baseUrl."/".$this->controller."/history/$lang/$id_wiki";?>"><img class="top_left_note_image" src="<?php echo $this->baseUrl;?>/Public/Img/history-60.png"></a> - </div> + <?php if (!$isDeleted) { ?> + <div class="view_page_history_button"> + <a title="talk page" href="<?php echo $this->baseUrl."/".$this->controller."/talk/$lang/$id_wiki";?>"><img class="top_left_note_image" src="<?php echo $this->baseUrl;?>/Public/Img/talk-60.png"></a> + </div> + + <div class="view_page_history_button"> + <a title="history page" href="<?php echo $this->baseUrl."/".$this->controller."/history/$lang/$id_wiki";?>"><img class="top_left_note_image" src="<?php echo $this->baseUrl;?>/Public/Img/history-60.png"></a> + </div> + <?php } ?> - <?php if (strcmp($isDeleted,'no') === 0 and !$isBlocked) { ?> + <?php if (!$isDeleted and !$isBlocked) { ?> <div class="view_page_update_button"> <form action="<?php echo $this->baseUrl."/".$this->controller."/update/$lang";?>" method="POST"> <input title="edit page" class="update_submit_class" type="image" src="<?php echo $this->baseUrl;?>/Public/Img/edit-60.png" value="xedit"> @@ -76,10 +78,12 @@ <?php } ?> </div> - <div class="talk_numb_ext_wiki"> - <a href="<?php echo $this->baseUrl."/".$this->controller."/talk/$lang/$id_wiki";?>">talk messages: <?php echo $talk_number;?></a> - </div> - + <?php if (!$isDeleted) { ?> + <div class="talk_numb_ext_wiki"> + <a href="<?php echo $this->baseUrl."/".$this->controller."/talk/$lang/$id_wiki";?>">talk messages: <?php echo $talk_number;?></a> + </div> + <?php } ?> + <?php } else if ( strcmp($this->action,'revision') === 0 ) { ?> <div class="position_tree_box"> @@ -98,15 +102,15 @@ <div class="wiki_external_box"> - <?php if ( strcmp($isDeleted,'yes') === 0 ) { ?> + <?php if ( $isDeleted ) { ?> <div class="revision_alert"> - <?php echo gtext('This wiki page has been hidden'); ?> + <?php echo gtext('This wiki page has been deleted'); ?> </div> <?php } ?> - <?php if ( strcmp($isDeleted,'no') === 0) { ?> + <?php if (!$isDeleted) { ?> <!--if revision--> <?php if (strcmp($this->action,'revision') === 0) { ?> |