maj
This commit is contained in:
parent
6655919bb2
commit
2fc16099f1
2 changed files with 11 additions and 11 deletions
|
@ -366,6 +366,9 @@ endsnippet
|
||||||
snippet iosdve "<i class'osdve- osdve-lg grise'</i>" w
|
snippet iosdve "<i class'osdve- osdve-lg grise'</i>" w
|
||||||
<i class="osdve-$1 osdve-lg"></i>$0
|
<i class="osdve-$1 osdve-lg"></i>$0
|
||||||
endsnippet
|
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
|
snippet ifa "<i class'fa '</i>" w
|
||||||
<i class="fa $1"></i>$0
|
<i class="fa $1"></i>$0
|
||||||
|
|
|
@ -8,9 +8,10 @@ endsnippet
|
||||||
snippet creerobjet "SPIP creation objet"
|
snippet creerobjet "SPIP creation objet"
|
||||||
$t = [
|
$t = [
|
||||||
$0
|
$0
|
||||||
|
'date' => 'datetime NOT NULL DEFAULT "0000-00-00 00:00:00"',
|
||||||
];
|
];
|
||||||
$tables['spip_$1s'] = [
|
$tables['spip_$1s'] = [
|
||||||
'type' => '${1:objet}',
|
'type' => '${1}',
|
||||||
'principale' => 'oui',
|
'principale' => 'oui',
|
||||||
'table_objet_surnoms' => [],
|
'table_objet_surnoms' => [],
|
||||||
'field'=> array_merge([
|
'field'=> array_merge([
|
||||||
|
@ -232,15 +233,11 @@ objet_modifier($objet, $id_objet, $set);
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet api_lien "SPIP API Lien"
|
snippet api_lien "SPIP API Lien"
|
||||||
// utilisation API editier_liens
|
|
||||||
// http://www.spip.net/fr_article5477.html
|
|
||||||
include_spip('action/editer_liens');
|
include_spip('action/editer_liens');
|
||||||
|
$objets_source = ['${1:auteur}' => ${2}];
|
||||||
$objets_source = ["${1:auteur}"=>${2:id_auteur ou array}];
|
$objets_lies = ['${3:article}' => ${4}];
|
||||||
$objets_lies = ["${3:article}"=>${:id_article ou array}];
|
|
||||||
${0}
|
|
||||||
|
|
||||||
objet_associer($objets_source, $objets_lies);
|
objet_associer($objets_source, $objets_lies);
|
||||||
|
${0}
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet cache "SPIP invalide cache"
|
snippet cache "SPIP invalide cache"
|
||||||
|
|
Loading…
Add table
Reference in a new issue