This commit is contained in:
Christophe 2023-02-21 23:34:19 +01:00
parent 6655919bb2
commit 2fc16099f1
2 changed files with 11 additions and 11 deletions

View file

@ -366,6 +366,9 @@ endsnippet
snippet iosdve "<i class'osdve- osdve-lg grise'</i>" w
<i class="osdve-$1 osdve-lg"></i>$0
endsnippet
snippet igf "<i class'gf- gf-lg grise'</i>" w
<i class="gf-$1 gf-lg"></i>$0
endsnippet
snippet ifa "<i class'fa '</i>" w
<i class="fa $1"></i>$0

View file

@ -8,9 +8,10 @@ endsnippet
snippet creerobjet "SPIP creation objet"
$t = [
$0
'date' => 'datetime NOT NULL DEFAULT "0000-00-00 00:00:00"',
];
$tables['spip_$1s'] = [
'type' => '${1:objet}',
'type' => '${1}',
'principale' => 'oui',
'table_objet_surnoms' => [],
'field'=> array_merge([
@ -232,15 +233,11 @@ objet_modifier($objet, $id_objet, $set);
endsnippet
snippet api_lien "SPIP API Lien"
// utilisation API editier_liens
// http://www.spip.net/fr_article5477.html
include_spip('action/editer_liens');
$objets_source = ["${1:auteur}"=>${2:id_auteur ou array}];
$objets_lies = ["${3:article}"=>${:id_article ou array}];
${0}
$objets_source = ['${1:auteur}' => ${2}];
$objets_lies = ['${3:article}' => ${4}];
objet_associer($objets_source, $objets_lies);
${0}
endsnippet
snippet cache "SPIP invalide cache"