Browse Source

pa #652, #678: restylage des logos de thematiques

- suppression de la bordure apparente
- agrandissement a 120x120
- definition d'un preset imagecache a cet effet et utilisation
- il est necessaire de recharger les images de thematiques originales pour ne pas avoir de flou
FGM 13 years ago
parent
commit
19222eb2f8
4 changed files with 26 additions and 2 deletions
  1. 2 2
      fgcf.features.content.inc
  2. 15 0
      fgcf.features.inc
  3. 1 0
      fgcf.info
  4. 8 0
      theme/css/fgcf.css

+ 2 - 2
fgcf.features.content.inc

@@ -915,7 +915,7 @@ o|Oui',
         'exclude' => 0,
       ),
       'full' => array(
-        'format' => 'image_plain',
+        'format' => 'fgcf_theme_logo_full_default',
         'exclude' => 0,
       ),
       '4' => array(
@@ -950,7 +950,7 @@ o|Oui',
       'progress_indicator' => 'bar',
       'max_filesize_per_file' => '',
       'max_filesize_per_node' => '',
-      'max_resolution' => '60x60',
+      'max_resolution' => '120x120',
       'min_resolution' => '0',
       'alt' => '',
       'custom_alt' => 0,

+ 15 - 0
fgcf.features.inc

@@ -5,6 +5,21 @@
  */
 function fgcf_imagecache_default_presets() {
   $items = array(
+    'fgcf_theme_logo_full' => array(
+      'presetname' => 'fgcf_theme_logo_full',
+      'actions' => array(
+        '0' => array(
+          'weight' => '0',
+          'module' => 'imagecache',
+          'action' => 'imagecache_scale',
+          'data' => array(
+            'width' => '120',
+            'height' => '120',
+            'upscale' => 1,
+          ),
+        ),
+      ),
+    ),
     'fgcf_theme_logo_liste' => array(
       'presetname' => 'fgcf_theme_logo_liste',
       'actions' => array(

+ 1 - 0
fgcf.info

@@ -31,6 +31,7 @@ features[content][] = "fgcf_prestataire-field_fgcf_prestataire_logo"
 features[content][] = "fgcf_thematique-field_fgcf_thematique_logo"
 features[fieldgroup][] = "fgcf_fiche-group_fgcf_fiche_meta"
 features[fieldgroup][] = "fgcf_prestataire-group_prestataire_branding"
+features[imagecache][] = "fgcf_theme_logo_full"
 features[imagecache][] = "fgcf_theme_logo_liste"
 features[imagecache][] = "prestataire_logo_full"
 features[imagecache][] = "prestataire_logo_liste"

+ 8 - 0
theme/css/fgcf.css

@@ -28,6 +28,14 @@ body {
 .node-thematique {
   float: right;
   margin: 10px 0 1em 1em;
+  padding: 0.5em 0.5em 0.5em 0;
+}
+
+/**
+ * pa #678: pas de bordure autour des logos de thématiques
+ */
+.node img.imagecache-fgcf_theme_logo_full_default {
+  border: none; 
 }
 
 .node-thematique .item-list ul li {