Skip to content

Commit 45b25be

Browse files
committed
Bug fixes
1 parent 951c1cc commit 45b25be

9 files changed

Lines changed: 15 additions & 13 deletions

File tree

.htaccess

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Options -MultiViews -Indexes
22
Options +FollowSymLinks
33

4+
ErrorDocument 404 /no/__404err_this_is_not_found
5+
46
RewriteEngine On
57

68
# e.g. http://my-site.com/en/

data/en/core/404-error.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<p><strong><em>Suggestions, Go on:</em></strong></p>
44

55
<ul>
6-
<li><a href="{site_url}">Main Page</a></li>
7-
<li><a href="javascript:void(0);" onclick="history.go(-1);">Go back to the previous page</a></li>
6+
<li><a href="{site_url}" data-load="ajax">Main Page</a></li>
7+
<li><a href="javascript:void(0);" onclick="history.go(-1);" data-load="ajax">Go back to the previous page</a></li>
88
</ul>

data/en/core/welcome.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h1>Welcome to the pH7 &quot;Dating Community Social&quot; software documentation!</h1>
1+
<h1>Welcome to the &quot;{site_name}&quot; software documentation!</h1>

data/fr/core/404-error.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<h1>Page non trouvée !</h1>
22
<p><strong>Désolé, mais la page que vous cherchez est introuvable ou a été supprimé.</strong></p>
3-
<p><strong><em>Suggestion :</em></strong></p>
3+
<p><strong><em>Suggestions :</em></strong></p>
44

55
<ul>
6-
<li><a href="{site_url}">Page principal</a></li>
7-
<li><a href="javascript:void(0);" onclick="history.go(-1);">Aller à la page précédente</a></li>
6+
<li><a href="{site_url}" data-load="ajax">Page principal</a></li>
7+
<li><a href="javascript:void(0);" onclick="history.go(-1);" data-load="ajax">Aller à la page précédente</a></li>
88
</ul>

data/fr/core/welcome.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<h1>Bienvenue sur la documentation du logiciel pH7 &laquo;Dating Community Social&raquo; !</h1>
1+
<h1>Bienvenue sur la documentation du logiciel &laquo; {site_name} &raquo; !</h1>

inc/conf.const.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@
4141

4242
########## INFORMATION ##########
4343

44-
define('SITE_NAME', 'pH');
44+
define('SITE_NAME', 'pH7 Nav Doc');
4545
define('SITE_SLOGAN', 'Documentation');

inc/scripts/fns.html.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ function get_langs_html()
4141
$aLangs = get_dir_list(DATA_PATH);
4242
$aLangsList = include(ROOT_PATH . 'inc/conf.lang.php');
4343

44-
$sHtml = ''; // Default value
45-
44+
$sHtml = '<div id="lang">';
4645
foreach ($aLangs as $sLang)
4746
{
4847
if ($sLang === LANG) continue;
4948
$sHtml .= '<a href="' . RELATIVE . substr($sLang,0,2) . '" data-load="ajax"><img src="' . STATIC_URL . 'img/flags/' . $sLang . '.gif" alt="' . $aLangsList[$sLang] . '" title="' . $aLangsList[$sLang] . '" /></a>&nbsp;';
5049
}
50+
$sHtml .= '</div>';
5151

5252
return $sHtml;
5353
}

inc/scripts/fns.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function get_page($sPage)
3333
echo parse_var($sPage);
3434
}
3535
else
36-
{ // Page Not Found!
36+
{ // Set the Not Found page
3737
error_404();
3838
}
3939
}

static/js/ajph.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ function loadPage(sLink)
5252
{
5353
var oContent = $(oData).find("#sub_ajph"); // Get the new Contents
5454
var oTitle = $(oData).filter('title'); // Get the new Title tag
55-
var oHeadings = $(oData).find('#headings:first'); // Get the Headings Group
55+
var oHeadings = $(oData).find('#lang'); // Get the Lang Menu
5656
$('title').text(oTitle.text()); // Set Title
57-
$('#headings:first').html(oHeadings.html()); // Set the Headings Group
57+
$('#lang').html(oHeadings.html()); // Set the Lang Menu
5858
$('#ajph').fadeOut(200, function() {
5959
$(this).html(oContent.html()).fadeIn(200); // Set Contents
6060
});

0 commit comments

Comments
 (0)