diff options
author | Claire Revillet <grenoya@mageia.org> | 2014-01-29 22:46:15 +0000 |
---|---|---|
committer | Claire Revillet <grenoya@mageia.org> | 2014-01-29 22:46:15 +0000 |
commit | 0a5d38fd6885c0105fbc73146bd47caa7d7d9343 (patch) | |
tree | 9c7d75658476bee3a0c13294e667ba08389b0db6 | |
parent | 5afee12a8829f6c4b37bc28210b04d72118f2c46 (diff) | |
download | www-0a5d38fd6885c0105fbc73146bd47caa7d7d9343.tar www-0a5d38fd6885c0105fbc73146bd47caa7d7d9343.tar.gz www-0a5d38fd6885c0105fbc73146bd47caa7d7d9343.tar.bz2 www-0a5d38fd6885c0105fbc73146bd47caa7d7d9343.tar.xz www-0a5d38fd6885c0105fbc73146bd47caa7d7d9343.zip |
- hide EPUB and PDF link as long as we can't provide them
-rw-r--r-- | en/doc/doc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/en/doc/doc.php b/en/doc/doc.php index cec324811..ba8f67b87 100644 --- a/en/doc/doc.php +++ b/en/doc/doc.php @@ -25,6 +25,8 @@ function doc_list($documentation_name, $type, $version, $link, $epub_link = null $your_language_present = FALSE; $other_languages_present = FALSE; $note_printed = FALSE; + // temporary hidding of the EPUB and PDF links + $hide_epub_pdf = TRUE; $table = PHP_EOL . '<table class="dlt2 dlinfo" style="font-size: 10pt;">' . PHP_EOL; // $table .= '<thead><tr><th></th></tr></thead>'; $table .= "\t<tbody>" . PHP_EOL; @@ -40,7 +42,7 @@ function doc_list($documentation_name, $type, $version, $link, $epub_link = null if ($link_locale == $lng) { $your_language_present = TRUE; - if (is_null($epub_link) or is_null($pdf_link)) { + if (is_null($epub_link) or is_null($pdf_link) or $hide_epub_pdf) { $your_language = sprintf(_t('%s available in %s') . '<br/>%s', '<span style="font-weight:bold">' . $documentation_name . '</span>', $lng_name, sprintf($link, $lng)); } else { @@ -51,7 +53,7 @@ function doc_list($documentation_name, $type, $version, $link, $epub_link = null } } else { $other_languages_present = TRUE; - if (is_null($epub_link) or is_null($pdf_link)) { + if (is_null($epub_link) or is_null($pdf_link) or $hide_epub_pdf) { $others[] = sprintf('%s<br/>%s', $lng_name, sprintf($link, $lng)); } else { if(!$note_printed) { |