Adaptation à SPIP v4.0.0 de Pensebetes

pull/1/head v2.0.0
thrax 2 years ago
parent 1d4de1cd75
commit f47668aebe

@ -1,10 +1,10 @@
<paquet
prefix="pensebetes"
categorie="edition"
version="1.1.6"
version="2.0.0"
etat="stable"
compatibilite="[3.2.0;3.2.*]"
logo="prive/themes/spip/images/pensebetes-64.png"
compatibilite="[3.3.0-dev;4.0.*]"
logo="pensebetes.svg"
schema="1.0.5"
documentation="https://contrib.spip.net/5220"
>
@ -17,7 +17,7 @@
<credit lien="https://code.tutsplus.com/tutorials/create-a-sticky-note-effect-in-5-easy-steps-with-css3-and-html5--net-13934">Chris Heilmann pour son exemple de post-it en CSS3 and HTML5</credit>
<necessite nom="saisies" compatibilite="[3.43.2;]" />
<necessite nom="saisies" compatibilite="[4.0.2;]" />
<necessite nom="verifier" compatibilite="[1.8.1;]" />
<pipeline nom="autoriser" inclure="pensebetes_autorisations.php" />
@ -30,8 +30,8 @@
<pipeline nom="insert_head_css" inclure="pensebetes_pipelines.php" />
<pipeline nom="header_prive_css" action="insert_head_prive_css" inclure="pensebetes_pipelines.php" />
<menu nom="murs" titre="pensebete:titre_murs" parent="outils_collaboratifs" icone="images/mur-16.png" />
<menu nom="pensebetes" titre="pensebete:titre_pensebetes" parent="menu_edition" icone="images/pensebete-16.png" />
<menu nom="pensebete_creer" titre="pensebete:icone_creer_pensebete" parent="outils_rapides" icone="images/pensebete-new-16.png" action="pensebete_edit" parametres="new=oui" />
<menu nom="murs" titre="pensebete:titre_murs" parent="outils_collaboratifs" icone="images/mur-xx.svg" />
<menu nom="pensebetes" titre="pensebete:titre_pensebetes" parent="menu_edition" icone="images/pensebete-xx.svg" />
<menu nom="pensebete_creer" titre="pensebete:icone_creer_pensebete" parent="outils_rapides" icone="images/pensebete-new-16.svg" action="pensebete_edit" parametres="new=oui" />
</paquet>

@ -66,7 +66,7 @@ function pensebetes_affiche_gauche($flux){
$id_auteur = $flux['args']['id_auteur'] ? $flux['args']['id_auteur'] : $GLOBALS['visiteur_session']['id_auteur'];
include_spip('inc/presentation');
$titre = "<a href='".generer_url_ecrire('murs')."'>"._T('pensebete:titre_activite_mur')."</a></h3>";
$flux['data'] .= debut_cadre_relief('mur-24.png',true,'',$titre);
$flux['data'] .= debut_cadre_relief('mur-24.svg',true,'',$titre);
$flux['data'] .= recuperer_fond('prive/squelettes/inclure/pensebetes_donnes', array('id_donneur' => $id_auteur));
$flux['data'] .= recuperer_fond('prive/squelettes/inclure/pensebetes_recus',array('id_receveur' => $id_auteur));
$flux['data'] .= fin_cadre_relief(true);

@ -24,7 +24,7 @@
<tbody>
<BOUCLE_liste_pensebetes(PENSEBETES){id_mot?}{id_donneur=#SESSION{id_auteur}}{where?}{recherche?}{tri #ENV{par,num id_donneur},#GET{defaut_tri}}{pagination #ENV{nb,10}}>
<tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
<td class='picto'>[(#CHEMIN_IMAGE{pensebete-16.png}|balise_img)]</td>
<td class='picto'>[(#CHEMIN_IMAGE{pensebete-xx.svg}|balise_img)]</td>
<td class='titre principale'>[(#LOGO_PENSEBETE|image_reduire{20,26})]<a href="[(#ID_PENSEBETE|generer_url_entite{pensebete})]" title="<:info_numero_abbreviation|attribut_html:> #ID_PENSEBETE">[(#RANG). ]#TITRE</a></td>
<td class='donneur'><a href="[(#URL_ECRIRE{auteur,id_auteur=#ID_DONNEUR})]">#INFO_NOM{'auteur',#ID_DONNEUR}</a></td>
<td class='date'>[(#DATE|affdate_jourcourt)]</td>
@ -36,7 +36,7 @@
</BOUCLE_liste_pensebetes>
</tbody>
</table>
[<p class='pagination'>(#PAGINATION{prive})</p>]
[<nav class='pagination' role='navigation'>(#PAGINATION)</nav>]
</div>
</B_liste_pensebetes>[
<div class="liste-objets pensebetes caption-wrap"><strong class="caption">(#ENV*{sinon,''})</strong></div>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

@ -30,5 +30,5 @@
]
[(#AUTORISER{poserpensebete}|oui)
[(#URL_ECRIRE{pensebete_edit,new=oui}|icone_verticale{<:pensebete:icone_creer_pensebete:>,pensebete-24.png,new,right})]
[(#URL_ECRIRE{pensebete_edit,new=oui}|icone_verticale{<:pensebete:icone_creer_pensebete:>,pensebete-24.svg,new,right})]
]

@ -6,7 +6,7 @@
<B_affiche_pensebetes>
[(#ANCRE_PAGINATION)]
[<p class='pagination'>(#PAGINATION{#GET{modele_de_pagination}})</p>]
[<nav class='pagination' role='navigation'>(#PAGINATION)</nav>]
<div class="monpostit">
<ul>
<BOUCLE_affiche_pensebetes(PENSEBETES){id_objet?}{objet?}{id_pensebete?}{id_mot?}{id_donneur?}{where?}{recherche?}{pagination 4}>

@ -5,7 +5,7 @@
<B_affiche_pensebetes>
[(#ANCRE_PAGINATION)]
[<p class='pagination'>(#PAGINATION{#GET{modele_de_pagination}})</p>]
[<nav class='pagination' role='navigation'>(#PAGINATION)</nav>]
<div class="monpostit">
<ul>
<BOUCLE_affiche_pensebetes(PENSEBETES spip_pensebetes_receveurs){spip_pensebetes_receveurs.id_receveur?=#ID_RECEVEUR}{id_objet?}{objet?}{id_pensebete?}{id_mot?}{id_donneur?}{where?}{recherche?}{pagination 4}>

@ -4,7 +4,7 @@
Nombre de pense-bêtes donnés]
<B_donneur>
[(#ID_DONNEUR|=={#SESSION{id_auteur}}|oui)<a href="[(#VAL{murs}|generer_url_ecrire{quoi=mien})]">]
[(#CHEMIN_IMAGE{pensebete-16.png}|balise_img)] [(#GRAND_TOTAL|singulier_ou_pluriel{pensebete:info_1_pensebete_donne,pensebete:info_nb_pensebetes_donnes})]
[(#CHEMIN_IMAGE{pensebete-xx.svg}|balise_img)] [(#GRAND_TOTAL|singulier_ou_pluriel{pensebete:info_1_pensebete_donne,pensebete:info_nb_pensebetes_donnes})]
[(#ID_DONNEUR|=={#SESSION{id_auteur}}|oui)</a>]
<br />
<BOUCLE_donneur(PENSEBETES){id_donneur}{tout}{par date}>

@ -4,7 +4,7 @@
Nombre de pense-bêtes reçus]
<B_receveur>
[(#ID_RECEVEUR|=={#SESSION{id_auteur}}|oui)<a href="[(#VAL{murs}|generer_url_ecrire{quoi=mien})]">]
[(#CHEMIN_IMAGE{pensebete-16.png}|balise_img)] [(#GRAND_TOTAL|singulier_ou_pluriel{pensebete:info_1_pensebete_recu,pensebete:info_nb_pensebetes_recus})]<br />
[(#CHEMIN_IMAGE{pensebete-xx.svg}|balise_img)] [(#GRAND_TOTAL|singulier_ou_pluriel{pensebete:info_1_pensebete_recu,pensebete:info_nb_pensebetes_recus})]<br />
<BOUCLE_receveur(spip_pensebetes_receveurs){id_receveur=#ID_RECEVEUR}>
<BOUCLE_par_moi(PENSEBETES){id_pensebete=#ID_PENSEBETE}{id_donneur=#SESSION{id_auteur}}>
#SET{par_moi,#GET{par_moi}|plus{1}}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="64px" height="64px" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<!-- Generated by Pixelmator Pro 2.1.2 -->
<path id="Tracé" d="M4 62 L60 62 60 5 12.937 5 4 13.799 Z" fill="#fffc67" fill-opacity="1" stroke="#ff9400" stroke-width="3" stroke-opacity="1" stroke-linejoin="round" stroke-linecap="round"/>
<path id="Ligne" d="M4 14 L12 14" fill="#f9e231" fill-opacity="1" stroke="#ff9400" stroke-width="3" stroke-opacity="1" stroke-linejoin="round" stroke-linecap="round"/>
<path id="Ligne-1" d="M13 5 L13 14" fill="#f9e231" fill-opacity="1" stroke="#ff9400" stroke-width="3" stroke-opacity="1" stroke-linejoin="round" stroke-linecap="round"/>
<g id="group">
<path id="Tracé-1" d="M64 16 C64 24.837 56.837 32 48 32 39.163 32 32 24.837 32 16 32 7.163 39.163 0 48 0 56.837 0 64 7.163 64 16 Z" fill="#4caf50" fill-opacity="1" stroke="none"/>
<path id="Tracé-2" d="M59.2 13.2 C58.8 12.8 58.4 12.8 58 12.8 L50.8 12.8 50.8 5.6 C50.8 5.2 50.8 4.8 50.4 4.4 50.4 4 50 4 49.6 4 L46.4 4 C46 4 45.6 4 45.2 4.4 44.8 4.8 44.8 5.2 44.8 5.6 L44.8 12.8 37.6 12.8 C37.2 12.8 36.8 12.8 36.4 13.2 36 13.6 36 14 36 14.4 L36 17.6 C36 18 36 18.4 36.4 18.8 36.8 19.2 37.2 19.2 37.6 19.2 L44.8 19.2 44.8 26.4 C44.8 26.8 44.8 27.2 45.2 27.6 45.6 28 46 28 46.4 28 L49.6 28 C50 28 50.4 28 50.8 27.6 51.2 27.2 51.2 26.8 51.2 26.4 L51.2 19.2 58.4 19.2 C58.8 19.2 59.2 19.2 59.6 18.8 60 18.4 60 18 60 17.6 L60 14.4 C60 14 59.6 13.6 59.2 13.2 Z" fill="#ffffff" fill-opacity="1" stroke="none"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -1,10 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="120px" height="120px" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<!-- Generated by Pixelmator Pro 2.0.6 -->
<svg width="24px" height="24px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<!-- Generated by Pixelmator Pro 2.1.2 -->
<g id="New-Group">
<path id="Rectangle-copie-1" d="M5.476 117 L115 117 114 37 79 2 5.476 2 Z" fill="#ffffcc" fill-opacity="1" stroke="#50503b" stroke-width="5.476" stroke-opacity="1" stroke-linejoin="round" stroke-linecap="round"/>
<path id="Tracé" d="M12.778 18.429 L77 18 77 7 12.778 7.476 Z" fill="#f9f9e3" fill-opacity="1" stroke="none"/>
<path id="Ligne" d="M79 2 L79 37" fill="none" stroke="#50503b" stroke-width="5" stroke-opacity="1" stroke-linejoin="round" stroke-linecap="round"/>
<path id="Ligne-1" d="M114 37 L79 37" fill="none" stroke="#50503b" stroke-width="5" stroke-opacity="1" stroke-linejoin="round" stroke-linecap="round"/>
<path id="Tracé" d="M1.5 23.25 L22.5 23.25 22.5 1.875 8 2 2 8 Z" fill="#fffc67" fill-opacity="1" stroke="#ff9400" stroke-width="1.125" stroke-opacity="1" stroke-linejoin="round" stroke-linecap="round"/>
<path id="Ligne" d="M2 9 L8 9" fill="#f9e231" fill-opacity="1" stroke="#ff9400" stroke-width="2.063" stroke-opacity="1" stroke-linejoin="round" stroke-linecap="round"/>
<path id="Ligne-1" d="M9 3 L9 9" fill="#f9e231" fill-opacity="1" stroke="#ff9400" stroke-width="2.063" stroke-opacity="1" stroke-linejoin="round" stroke-linecap="round"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 898 B

After

Width:  |  Height:  |  Size: 811 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

Loading…
Cancel
Save