| Current Path : /home/juvelize/www/administrator/manifests/packages/GalleryFP/ |
| Current File : /home/juvelize/www/administrator/manifests/packages/GalleryFP/install.php |
<?php
/*
* Module GalleryFP pour Joomla! 3.x
* Version J3.14P
* Creation date: Octobre 2015
* Author: Fabrice4821 - www.gmapfp.org
* Author email: webmaster@gmapfp.org
* License GNU/GPL
*/
// no direct access
defined('_JEXEC') or die;
class pkg_galleryfpInstallerScript{
function postflight($type, $parent)
{
if($type=='install' || $type=='update'){
// $parent is the class calling this method
// $type is the type of change (install, update or discover_install)
$manifest = $parent->get('manifest');
// Load language file for module
$lang = JFactory::getLanguage();
$langue = substr((@$lang->getTag()),0,2);
if ($langue!='fr') $langue = 'en';
if ($langue=='fr') {
echo '<h2>Installation de GalleryFP : la galerie d\'image simple d\'utilisation.</h2>';
echo "<a style='float:left;' href='http://gmapfp.org'><img src='../modules/mod_galleryfp/logo/logo_GMapFP_dev.png'/></a>
<a href='http://joomla-slideshow.com/fr/'>GalleryFP</a> est un module Joomla de Galerie d'image développé par GMapFP.<br/>
Ajouter facilement vos images grace à sa fonction glisser/déposer.";
} else {
echo '<h2>GalleryFP installation : the simple image gallery to use.</h2>';
echo "<a style='float:left;' href='http://gmapfp.org'><img src='../modules/mod_galleryfp/logo/logo_GMapFP_dev.png'/></a>
<a href='http://joomla-slideshow.com/en/'>GalleryFP</a> is a Joomla Module image gallery developed by GMapFP.<br/>
Easily add your pictures thanks to its drag/drop.";
}
}
return true;
}
}