Skip to content

Commit

Permalink
Reinserted Sitemap and made a better page-title.
Browse files Browse the repository at this point in the history
  • Loading branch information
skaldrom committed Jun 2, 2004
1 parent 9073c44 commit f80b073
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
14 changes: 8 additions & 6 deletions lang/en/wiki.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
$string['wikilinks'] = 'Wiki Links'; $string['wikilinks'] = 'Wiki Links';
$string['choosewikilinks'] = '-- Choose Wiki Links --'; $string['choosewikilinks'] = '-- Choose Wiki Links --';
$string['viewpage'] = 'View Page'; $string['viewpage'] = 'View Page';
$string['sitemap'] = 'Sitemap';
$string['pageindex'] = 'Page Index'; $string['pageindex'] = 'Page Index';
$string['newestpages'] = 'Newest pages'; $string['newestpages'] = 'Newest pages';
$string['mostvisitedpages'] = 'Most visited pages'; $string['mostvisitedpages'] = 'Most visited pages';
Expand Down Expand Up @@ -81,7 +82,6 @@
$string['nothingtostrip'] = 'There are no pages with more than one version.'; $string['nothingtostrip'] = 'There are no pages with more than one version.';
$string['version'] = 'Version'; $string['version'] = 'Version';
$string['versions'] = 'Versions'; $string['versions'] = 'Versions';
$string['versions'] = 'Versions';
$string['pagesstripped'] = 'Pages stripped.'; $string['pagesstripped'] = 'Pages stripped.';
$string['wrongversionrange'] = '$a is not a correct range!'; $string['wrongversionrange'] = '$a is not a correct range!';
$string['versionrangetoobig'] = 'You cannot delete all versions of a page! The last version should remain.'; $string['versionrangetoobig'] = 'You cannot delete all versions of a page! The last version should remain.';
Expand Down Expand Up @@ -126,10 +126,6 @@


$string['submit'] = 'Submit'; $string['submit'] = 'Submit';


# Initial contents: Name as the directory
$string['00empty']="Empty";
$string['ewikidefault']="ErfurtWiki Default";

# Ewiki # Ewiki
$string['editform1']='Try not to worry too much about formatting, it can always be improved later.'; $string['editform1']='Try not to worry too much about formatting, it can always be improved later.';
$string['editform2']='Please write sensibly, and remember that all editing is logged.'; $string['editform2']='Please write sensibly, and remember that all editing is logged.';
Expand Down Expand Up @@ -170,5 +166,11 @@
$string['refs']='References'; $string['refs']='References';
$string['contentsize']='Content size'; $string['contentsize']='Content size';
$string['pageslinkingto']="Pages linking to this page"; $string['pageslinkingto']="Pages linking to this page";
$string['viewsmfor']="View sitemap for";
$string['smfor']="Sitemap for";
$string['invalidroot']="You are not authorized to access the current root page so no sitemap can be created.";
$string['thispageisntlinkedfromanywhereelse'] = 'This page isn\'t linked from anywhere else.'; $string['thispageisntlinkedfromanywhereelse'] = 'This page isn\'t linked from anywhere else.';
?>
$string['wikidump']='Here you can tailor your WikiDump to your needs. When you are ready, click the "Export" button.';
$string['export']='Export.';
?>
1 change: 1 addition & 0 deletions mod/wiki/lib.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -899,6 +899,7 @@ function wiki_print_wikilinks_block($cmid, $binary=false, $return=false) {


$links=array(); $links=array();


$links["SiteMap"]=get_string("sitemap", "wiki");
$links["PageIndex"]=get_string("pageindex", "wiki"); $links["PageIndex"]=get_string("pageindex", "wiki");
$links["NewestPages"]=get_string("newestpages", "wiki"); $links["NewestPages"]=get_string("newestpages", "wiki");
$links["MostVisitedPages"]=get_string("mostvisitedpages", "wiki"); $links["MostVisitedPages"]=get_string("mostvisitedpages", "wiki");
Expand Down
5 changes: 3 additions & 2 deletions mod/wiki/view.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/feature/imgresize_gd.php"); include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/feature/imgresize_gd.php");
include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/moodle/moodle_highlight.php"); include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/moodle/moodle_highlight.php");
include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/moodle/f_fixhtml.php"); include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/moodle/f_fixhtml.php");
include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/moodle/sitemap.php");
include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/aview/backlinks.php"); include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/aview/backlinks.php");
#include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/markup/css.php"); #include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/markup/css.php");
include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/markup/footnotes.php"); include_once($CFG->dirroot."/mod/wiki/ewiki/plugins/markup/footnotes.php");
Expand Down Expand Up @@ -221,7 +222,7 @@
$strwikis = get_string("modulenameplural", "wiki"); $strwikis = get_string("modulenameplural", "wiki");
$strwiki = get_string("modulename", "wiki"); $strwiki = get_string("modulename", "wiki");


print_header("$course->shortname: $wiki_entry->pagename", "$course->fullname", print_header("$course->shortname: ".($ewiki_title?$ewiki_title:$wiki->name), "$course->fullname",
"$navigation <A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$moodleID\">$wiki->name</a> -> $ewiki_title", "$navigation <A HREF=\"index.php?id=$course->id\">$strwikis</A> -> <A HREF=\"view.php?id=$moodleID\">$wiki->name</a> -> $ewiki_title",
"", "", true, update_module_button($cm->id, $course->id, $strwiki), "", "", true, update_module_button($cm->id, $course->id, $strwiki),
navmenu($course, $cm)); navmenu($course, $cm));
Expand Down Expand Up @@ -258,7 +259,7 @@
} }


if ($wiki_entry) { if ($wiki_entry) {
$specialpages=array("SearchPages", "PageIndex","NewestPages","MostVisitedPages","MostOftenChangedPages","UpdatedPages","FileDownload","FileUpload","OrphanedPages","WantedPages"); $specialpages=array("SiteMap", "SearchPages", "PageIndex","NewestPages","MostVisitedPages","MostOftenChangedPages","UpdatedPages","FileDownload","FileUpload","OrphanedPages","WantedPages");
/// Page Actions /// Page Actions
echo '<table border="0" width="100%">'; echo '<table border="0" width="100%">';
echo '<tr>'; echo '<tr>';
Expand Down

0 comments on commit f80b073

Please sign in to comment.