ajout un logo pour la blockchaine

This commit is contained in:
Christophe 2019-12-26 16:33:41 +01:00
parent e76e626eea
commit 665c1733ec
2 changed files with 14 additions and 2 deletions

View file

@ -25,6 +25,7 @@ function trouver_blocklog($id_objet, $objet, $id = false){
'objet='.sql_quote($objet), 'objet='.sql_quote($objet),
); );
$r = sql_fetsel('id_blocklog, blockchaine, chaine', $from, $where); $r = sql_fetsel('id_blocklog, blockchaine, chaine', $from, $where);
} }
if ($id) { if ($id) {
@ -37,10 +38,17 @@ function trouver_blocklog($id_objet, $objet, $id = false){
function afficher_blocklog($texte, $id_dossier, $objet){ function afficher_blocklog($texte, $id_dossier, $objet){
$objet = trim($objet); $objet = trim($objet);
$blockchaine = ''; $blockchaine = '<span class="affichage_blockchaine">';
$img = find_in_path('img/icone_blockchaine.svg');
if ($img) {
$img = '<img class="icone_blockchaine" src="'.$img.'" style="height:1em;width: 1em;">';
$img .= "&nbsp;";
}
if (!defined('_BLOCKLOG_CACHER_PDF') or _BLOCKLOG_CACHER_PDF !== true){ if (!defined('_BLOCKLOG_CACHER_PDF') or _BLOCKLOG_CACHER_PDF !== true){
if (intval($id_dossier) and $objet) { if (intval($id_dossier) and $objet) {
$blockchaine = trouver_blocklog($id_dossier, $objet); $blockchaine .= $img;
$blockchaine .= trouver_blocklog($id_dossier, $objet);
$blockchaine .= '</span>';
} }
} }

View file

@ -0,0 +1,4 @@
<svg width="65.743" height="86.2" version="1.1" viewBox="0 0 65.743 86.2" xmlns="http://www.w3.org/2000/svg">
<style type="text/css">.st0{fill:#FFFFFF;}</style>
<path d="m55.943 27.1v-4.1c0-12.7-10.3-23-23-23s-23 10.3-23 23v4.1h-9.7l-0.2417 54.467c-0.020856 4.7 0.010836 4.6328 8.5417 4.6328h48.7c8.5672 0 8.5 0.05253 8.5-8.5v-50.6zm-17 24.7-1.3 3h-9.3v1.7h8.8l-1.3 3h-7.2c0.9 4.4 2.9 6.5 6.1 6.5 2.1 0 4.2-0.9 6.4-2.6v6.2c-1.8 1.1-4 1.6-6.4 1.6-3.5 0-6.3-1.1-8.4-3.4-1.9-2-3.2-4.8-3.8-8.4h-3.2l1.3-3h1.7v-1.8h-3l1.3-3h2.1c0.7-3.3 2-6 4.1-7.9 2.2-2.1 4.9-3.1 8.2-3.1 2.3 0 4.8 0.7 7.5 2.1l-2.5 5.3c-1.9-1.2-3.7-1.9-5.4-1.9-2.9 0-4.8 1.9-5.8 5.7zm9.8-24.7h-31.6v-4.1c0-8.9 6.9-15.8 15.8-15.8s15.8 6.9 15.8 15.8z"/>
</svg>

After

Width:  |  Height:  |  Size: 723 B