Changeset 117627 in spip-zone
- Timestamp:
- Aug 23, 2019, 6:37:40 PM (17 months ago)
- Location:
- _plugins_/picto/trunk
- Files:
-
- 14 added
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/picto/trunk/modeles/picto.yaml
r116249 r117627 1 1 nom: 'un Pictogramme FontAwesome' 2 logo: ' images/picto-48.jpg'2 logo: 'prive/themes/spip/images/picto-48.jpg' 3 3 icone_barre: 'picto.png' 4 4 parametres: … … 14 14 label: 'Nom du picto (voir le site de FontAwesome)' 15 15 explication: '<a href="https://fontawesome.com/v4.7.0/icons/" class="spip_out" target="_blonk" rel="noopener noreferrer">Liste des pictos disponibles</a>' 16 defaut: '' 16 defaut: '' 17 17 - 18 18 saisie: 'selection' -
_plugins_/picto/trunk/paquet.xml
r116249 r117627 2 2 prefix="picto" 3 3 categorie="edition" 4 version="1. 0.3"4 version="1.1.0" 5 5 etat="stable" 6 6 compatibilite="[3.0.0;3.2.*]" 7 logo=" images/picto-48.jpg"7 logo="prive/themes/spip/images/picto-64.jpg" 8 8 documentation="https://contrib.spip.net/Picto-avec-FontAwesome" 9 9 > … … 13 13 <pipeline nom="insert_head_css" inclure="picto_pipelines.php" /> 14 14 <pipeline nom="header_prive" inclure="picto_pipelines.php" /> 15 15 16 <menu nom="picto" parent="menu_squelette" icone="images/picto-16.jpg" action="picto" titre="picto:titre_page_picto" /> 17 16 18 </paquet> -
_plugins_/picto/trunk/picto_fonctions.php
r109708 r117627 92 92 return ''; 93 93 } 94 95 /** 96 * Lister le nom des classes mis à disposition par la librairie FontAwesome. 97 * 98 * @return array 99 */ 100 function lister_picto() { 101 $style_picto = find_in_path('fontAwesome/css/font-awesome.min.css'); 102 $style_picto = file_get_contents($style_picto); 103 $list = array(); 104 105 preg_match_all("/\.fa-([[:alpha:]]+-?[[:alpha:]]+?):before/", $style_picto, $picto); 106 if (isset($picto[1]) and is_array($picto[1]) and count($picto[1])) { 107 natsort($picto[1]); 108 $list = array_merge($list, $picto[1]); 109 } 110 preg_match_all("/,\.fa-([[:alpha:]]+-?[[:alpha:]]+?):before/", $style_picto, $picto); 111 if (isset($picto[1]) and is_array($picto[1]) and count($picto[1])) { 112 natsort($picto[1]); 113 $list = array_diff($list, $picto[1]); 114 foreach ($picto[1] as $index => $alias) { 115 $list[] = $alias . " <em>(alias)</em>"; 116 } 117 } 118 natsort($list); 119 120 return $list; 121 } -
_plugins_/picto/trunk/picto_pipelines.php
r109708 r117627 7 7 8 8 function picto_header_prive($flux) { 9 include_spip('inc/utils'); 9 10 $flux .= "\n" . '<link rel="stylesheet" type="text/css" media="all" href="' . find_in_path('fontAwesome/css/font-awesome.min.css') . '" />'; 10 11 $flux .= "\n" . '<link rel="stylesheet" type="text/css" media="all" href="' . find_in_path('css/picto.css') . '" />'; … … 14 15 15 16 function picto_insert_head_css($flux) { 17 include_spip('inc/utils'); 16 18 $flux .= "\n" . '<link rel="stylesheet" type="text/css" media="all" href="' . find_in_path('fontAwesome/css/font-awesome.min.css') . '" />'; 17 19 $flux .= "\n" . '<link rel="stylesheet" type="text/css" media="all" href="' . find_in_path('css/picto.css') . '" />';
Note: See TracChangeset
for help on using the changeset viewer.