Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added 'HowToWiki' help file to view wiki screen.

  • Loading branch information...
commit 012791873cea132eac86a061cfc486e41e11c442 1 parent 3164a1a
mchurch authored
Showing with 12 additions and 6 deletions.
  1. +12 −6 mod/wiki/view.php
View
18 mod/wiki/view.php
@@ -264,23 +264,29 @@
echo '<table border="0" width="100%">';
echo '<tr>';
+ echo '<td>';
+ helpbutton('howtowiki', get_string('howtowiki', 'wiki'), 'wiki');
if ($canedit) {
$iconstr="";
$editicon= '<img hspace=1 alt="'.get_string("editthispage","wiki").'" height=16 width=16 border=0 src="'.$CFG->pixpath.'/t/edit.gif">';
$infoicon= '<img hspace=1 alt="'.get_string("pageinfo","wiki").'" height=16 width=16 border=0 src="'.$CFG->pixpath.'/i/info.gif">';
+
if($ewiki_action!="edit" && !in_array($wikipage, $specialpages)) {
- $iconstr='<a title="'.get_string("editthispage","wiki").'" href="'.EWIKI_SCRIPT.'&wikipage=edit/'.$ewiki_id.'">'.$editicon."</a>";
- } else {
- $iconstr=$editicon;
+ $iconstr.='<a title="'.get_string("editthispage","wiki").'" href="'.EWIKI_SCRIPT.'&wikipage=edit/'.$ewiki_id.'">'.$editicon."</a>";
}
+ else {
+ $iconstr.=$editicon;
+ }
+
if($ewiki_action!="info" && !in_array($wikipage, $specialpages)) {
$iconstr.='<a title="'.get_string("pageinfo","wiki").'" href="'.EWIKI_SCRIPT.'&wikipage=info/'.$ewiki_id.'">'.$infoicon."</a>";
- } else {
+ }
+ else {
$iconstr.=$infoicon;
}
- echo "<td>$iconstr</td>";
+ echo $iconstr;
}
-
+ echo '</td>';
echo '<td>';
wiki_print_page_actions($cm->id, $specialpages, $ewiki_id, $ewiki_action, $wiki->ewikiacceptbinary, $canedit);
echo '</td>';
Please sign in to comment.
Something went wrong with that request. Please try again.