Skip to content

Commit

Permalink
Merge pull request #1 from mistergraphx/master
Browse files Browse the repository at this point in the history
Version pour SPIP3
  • Loading branch information
julienmru committed Feb 20, 2015
2 parents 1b7b734 + 2392855 commit 4a0a256
Show file tree
Hide file tree
Showing 12 changed files with 148 additions and 373 deletions.
339 changes: 0 additions & 339 deletions LICENSE

This file was deleted.

3 changes: 2 additions & 1 deletion base/coordgmap.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;

function coordgmap_declarer_tables_principales($tables_principales){
// Extension de la table rubriques
// Extension de la table adresses
$tables_principales['spip_adresses']['field']['lat'] = "float DEFAULT 0 NOT NULL";
$tables_principales['spip_adresses']['field']['lng'] = "float DEFAULT 0 NOT NULL";
return $tables_principales;
Expand Down
1 change: 1 addition & 0 deletions base/coordgmap_install.php
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;

function coordgmap_upgrade($nom_meta_base_version,$version_cible){
$current_version = 0.0;
if ((!isset($GLOBALS['meta'][$nom_meta_base_version]))
Expand Down
55 changes: 55 additions & 0 deletions coordgmap_administrations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
/**
* Plugin Coordonnées GoogleMap
* (c) 2014 Julen Tessier,Mist. GraphX
* Licence GNU/GPL
*/

if (!defined('_ECRIRE_INC_VERSION')) return;


/**
* Fonction d'installation du plugin et de mise à jour.
**/
function coordgmap_upgrade($nom_meta_base_version, $version_cible) {
$maj = array();
# quelques exemples
# (que vous pouvez supprimer !)
#
# $maj['create'] = array(array('creer_base'));
#
# include_spip('inc/config')
# $maj['create'] = array(
# array('maj_tables', array('spip_xx', 'spip_xx_liens')),
# array('ecrire_config', array('genespip', array('exemple' => "Texte de l'exemple")))
#);
#
# $maj['1.1.0'] = array(array('sql_alter','TABLE spip_xx RENAME TO spip_yy'));
# $maj['1.2.0'] = array(array('sql_alter','TABLE spip_xx DROP COLUMN id_auteur'));
# $maj['1.3.0'] = array(
# array('sql_alter','TABLE spip_xx CHANGE numero numero int(11) default 0 NOT NULL'),
# array('sql_alter','TABLE spip_xx CHANGE texte petit_texte mediumtext NOT NULL default \'\''),
# );
# ...
include_spip('inc/config');
$maj['create'] = array(
array('maj_tables', array('spip_adresses')),
//array('ecrire_config', array('coorgmap', array('exemple' => "Texte de l'exemple")))
);

include_spip('base/upgrade');
maj_plugin($nom_meta_base_version, $version_cible, $maj);

}


/**
* Fonction de désinstallation du plugin.
**/
function coordgmap_vider_tables($nom_meta_base_version) {


effacer_meta($nom_meta_base_version);
}

?>
11 changes: 11 additions & 0 deletions coordgmap_fonctions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Plugin Coordonnées GoogleMap
* (c) 2014 Julen Tessier,Mist. GraphX
* Licence GNU/GPL
*/

if (!defined('_ECRIRE_INC_VERSION')) return;


?>
11 changes: 11 additions & 0 deletions coordgmap_options.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php
/**
* Plugin Coordonnées GoogleMap
* (c) 2014 Julen Tessier,Mist. GraphX
* Licence GNU/GPL
*/

if (!defined('_ECRIRE_INC_VERSION')) return;


?>
11 changes: 9 additions & 2 deletions coordgmap_pipelines.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php
if (!defined("_ECRIRE_INC_VERSION")) return;
/**
* Plugin Coordonnées GoogleMap
* (c) 2014 Julen Tessier,Mist. GraphX
* Licence GNU/GPL
*/

if (!defined('_ECRIRE_INC_VERSION')) return;


function coordgmap_editer_contenu_objet($flux){
if ($flux['args']['type'] == 'adresse') {
Expand Down Expand Up @@ -29,4 +36,4 @@ function coordgmap_pre_insertion($flux){
return $flux;
}

?>
?>
12 changes: 12 additions & 0 deletions lang/coordgmap_fr.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
// This is a SPIP language file -- Ceci est un fichier langue de SPIP

if (!defined('_ECRIRE_INC_VERSION')) return;

$GLOBALS[$GLOBALS['idx_lang']] = array(

// C
'coordgmap_titre' => 'Coordonnées GoogleMap',
);

?>
19 changes: 19 additions & 0 deletions lang/paquet-coordgmap_fr.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

// Ceci est un fichier langue de SPIP -- This is a SPIP language file

/// Fichier produit par PlugOnet
// Module: paquet-coordgmap
// Langue: fr
// Date: 11-05-2014 10:53:52
// Items: 2

if (!defined('_ECRIRE_INC_VERSION')) return;

$GLOBALS[$GLOBALS['idx_lang']] = array(

// C
'coordgmap_description' => '',
'coordgmap_slogan' => 'Ajoute un module GoogleMap sur les adresses du plugin Coordonnées',
);
?>
28 changes: 28 additions & 0 deletions paquet.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<paquet
prefix="coordgmap"
categorie="divers"
version="1.0.0"
etat="dev"
compatibilite="[3.0.16;3.0.*]"
logo=""
documentation="https://github.com/cahri/spip-coordgmap"
schema="1.0.0"
>
<!--
Paquet généré le 2014-05-11 11:21:27
-->

<nom>Coordonnées GoogleMap</nom>

<auteur>Julen Tessier,Mist. GraphX</auteur>

<licence>GNU/GPL</licence>


<pipeline nom="declarer_tables_principales" inclure="base/coordgmap.php" />
<pipeline nom="editer_contenu_objet" inclure="coordgmap_pipelines.php" />
<pipeline nom="pre_insertion" inclure="coordgmap_pipelines.php" />
<pipeline nom="pre_edition" inclure="coordgmap_pipelines.php" />

<necessite nom="coordonnees" compatibilite="[1.4.20;[" />
</paquet>
31 changes: 0 additions & 31 deletions plugin.xml

This file was deleted.

Empty file modified prive/coordgmap_editer.html
100644 → 100755
Empty file.

0 comments on commit 4a0a256

Please sign in to comment.