mirror of
https://github.com/YunoHost-Apps/opensondage_ynh.git
synced 2024-09-03 19:46:28 +02:00
[fix] About link is back
This commit is contained in:
parent
eb709ade9a
commit
6b9fbd2a1d
6 changed files with 13 additions and 5 deletions
|
@ -50,6 +50,9 @@ const BASE_TYPE = 'mysql';
|
|||
// Default Language using POSIX variant of BC P47 standard (choose in $ALLOWED_LANGUAGES)
|
||||
const LANGUE = 'I18NTOCHANGE';
|
||||
|
||||
// Database password
|
||||
const URL_ABOUT = 'yunoabout';
|
||||
|
||||
// List of supported languages, fake constant as arrays can be used as constants only in PHP >=5.6
|
||||
$ALLOWED_LANGUAGES = [
|
||||
'fr_FR' => 'Français',
|
||||
|
|
|
@ -57,7 +57,7 @@
|
|||
"de": "Tragen Sie bitte die Website ein, wo man den Impressum finden kann."
|
||||
},
|
||||
"example": "http://example.com",
|
||||
"default": "./apropos.php"
|
||||
"default": ""
|
||||
},
|
||||
{
|
||||
"name": "language",
|
||||
|
|
|
@ -49,7 +49,7 @@ sudo sed -i "s/yunoadmin/$admin/g" $final_path/app/inc/constants.php
|
|||
sudo sed -i "s/I18NTOCHANGE/$language/g" $final_path/app/inc/constants.php
|
||||
sudo sed -i "s@yunourl@$domain$path@g" $final_path/app/inc/constants.php
|
||||
sudo sed -i "s@yunodomain@$domain@g" $final_path/app/inc/constants.php
|
||||
sudo sed -i "s@yunoinfolegal@$legal@g" $final_path/app/inc/constants.php
|
||||
sudo sed -i "s@yunoabout@$legal@g" $final_path/app/inc/constants.php
|
||||
|
||||
# Create log file
|
||||
touch $final_path/admin/logs_studs.txt
|
||||
|
|
|
@ -48,7 +48,7 @@ sudo sed -i "s/yunoadmin/$admin/g" $final_path/app/inc/constants.php
|
|||
sudo sed -i "s/I18NTOCHANGE/$language/g" $final_path/app/inc/constants.php
|
||||
sudo sed -i "s@yunourl@$domain$path@g" $final_path/app/inc/constants.php
|
||||
sudo sed -i "s@yunodomain@$domain@g" $final_path/app/inc/constants.php
|
||||
sudo sed -i "s@yunoinfolegal@$legal@g" $final_path/app/inc/constants.php
|
||||
sudo sed -i "s@yunoabout@$legal@g" $final_path/app/inc/constants.php
|
||||
|
||||
# Create log file
|
||||
sudo cp ../conf/logs_studs.txt $final_path/admin/
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 7.4 KiB |
|
@ -61,7 +61,7 @@ echo '
|
|||
echo '<div class="col-md-'.$colmd.'">
|
||||
<h3>'. _('What is that?') . '</h3>
|
||||
<p class="text-center" role="presentation"><span class="glyphicon glyphicon-question-sign" style="font-size:50px"></span></p>
|
||||
<p>'. _('Framadate is an online service for planning an appointment or make a decision quickly and easily. No registration is required.') .'</p>
|
||||
<p>'. str_replace('Framadate',NOMAPPLICATION,_('Framadate is an online service for planning an appointment or make a decision quickly and easily. No registration is required.')) .'</p>
|
||||
<p>'. _('Here is how it works:') . '</p>
|
||||
<ol>
|
||||
<li>'. _('Make a poll') . '</li>
|
||||
|
@ -101,5 +101,10 @@ echo '
|
|||
</div>';
|
||||
}
|
||||
echo '</div>'."\n";
|
||||
|
||||
if (URL_ABOUT && !is_empty(URL_ABOUT) && URL_ABOUT!='./apropos.php')
|
||||
{
|
||||
echo '<div class="row" style="text-align:center">'."\n";
|
||||
echo '<a href="'.URL_ABOUT.'">'._("About").'</a>';
|
||||
echo '</div>'."\n";
|
||||
}
|
||||
bandeau_pied();
|
||||
|
|
Loading…
Add table
Reference in a new issue