1
0
Fork 0
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:
zamentur 2014-11-23 20:39:45 +01:00
parent eb709ade9a
commit 6b9fbd2a1d
6 changed files with 13 additions and 5 deletions

View file

@ -50,6 +50,9 @@ const BASE_TYPE = 'mysql';
// Default Language using POSIX variant of BC P47 standard (choose in $ALLOWED_LANGUAGES) // Default Language using POSIX variant of BC P47 standard (choose in $ALLOWED_LANGUAGES)
const LANGUE = 'I18NTOCHANGE'; 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 // List of supported languages, fake constant as arrays can be used as constants only in PHP >=5.6
$ALLOWED_LANGUAGES = [ $ALLOWED_LANGUAGES = [
'fr_FR' => 'Français', 'fr_FR' => 'Français',

View file

@ -57,7 +57,7 @@
"de": "Tragen Sie bitte die Website ein, wo man den Impressum finden kann." "de": "Tragen Sie bitte die Website ein, wo man den Impressum finden kann."
}, },
"example": "http://example.com", "example": "http://example.com",
"default": "./apropos.php" "default": ""
}, },
{ {
"name": "language", "name": "language",

View file

@ -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/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@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@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 # Create log file
touch $final_path/admin/logs_studs.txt touch $final_path/admin/logs_studs.txt

View file

@ -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/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@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@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 # Create log file
sudo cp ../conf/logs_studs.txt $final_path/admin/ 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

View file

@ -61,7 +61,7 @@ echo '
echo '<div class="col-md-'.$colmd.'"> echo '<div class="col-md-'.$colmd.'">
<h3>'. _('What is that?') . '</h3> <h3>'. _('What is that?') . '</h3>
<p class="text-center" role="presentation"><span class="glyphicon glyphicon-question-sign" style="font-size:50px"></span></p> <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> <p>'. _('Here is how it works:') . '</p>
<ol> <ol>
<li>'. _('Make a poll') . '</li> <li>'. _('Make a poll') . '</li>
@ -101,5 +101,10 @@ echo '
</div>'; </div>';
} }
echo '</div>'."\n"; 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(); bandeau_pied();