Bläddra i källkod

pa #644: logo sur la vue des themes de premier niveau. pa #644: complément de renommage

FGM 13 år sedan
förälder
incheckning
4f0a2686a0
4 ändrade filer med 93 tillägg och 8 borttagningar
  1. 4 4
      fgcf.features.content.inc
  2. 19 0
      fgcf.features.inc
  3. 24 0
      theme/css/fgcf.css
  4. 46 4
      views/fgcf_thematiques_premier_niveau.php

+ 4 - 4
fgcf.features.content.inc

@@ -186,7 +186,7 @@ o|Oui',
       'show_depth' => 1,
       'default_value' => NULL,
       'default_value_php' => NULL,
-      'label' => 'Format de cours',
+      'label' => 'Supports de cours',
       'weight' => '11',
       'description' => '',
       'type' => 'content_taxonomy_autocomplete',
@@ -754,7 +754,7 @@ o|Oui',
       'active_tags' => NULL,
       'default_value' => NULL,
       'default_value_php' => NULL,
-      'label' => 'Supports remis',
+      'label' => 'Documents remis',
       'weight' => '12',
       'description' => '',
       'type' => 'content_taxonomy_autocomplete',
@@ -970,9 +970,9 @@ o|Oui',
   // Translatables
   array(
     t('Contenu'),
+    t('Documents remis'),
     t('Durée'),
     t('Eligibilité DIF'),
-    t('Format de cours'),
     t('Icône'),
     t('Logo'),
     t('Longueur'),
@@ -983,7 +983,7 @@ o|Oui',
     t('Référence'),
     t('Sanction'),
     t('Site'),
-    t('Supports remis'),
+    t('Supports de cours'),
   );
 
   return $fields;

+ 19 - 0
fgcf.features.inc

@@ -35,7 +35,26 @@ function fgcf_imagecache_default_presets() {
         ),
       ),
     ),
+    'fgcf_theme_logo_liste' => array (
+      'presetname' => 'fgcf_theme_logo_liste',
+      'actions' =>
+      array (
+        0 =>
+        array (
+          'weight' => '0',
+          'module' => 'imagecache',
+          'action' => 'imagecache_scale',
+          'data' =>
+          array (
+            'width' => '60',
+            'height' => '60',
+            'upscale' => 1,
+          ),
+        ),
+      ),
+    ),
   );
+
   return $items;
 }
 

+ 24 - 0
theme/css/fgcf.css

@@ -1,3 +1,10 @@
+/**
+ * Cette ligne orange permet de voir d'un seul coup d'oeil si la feuille de style est active sur la page
+ */ 
+body {
+  border-top: groove orange;
+}
+
 .group-prestataire-branding, .fgcf-filtre {
   float: right;
   margin: 0 0 1em 1em;
@@ -50,3 +57,20 @@
 .group-fgcf-fiche-meta .field-item {
   margin-left: 2em;
 }
+
+/**
+ * pa #644
+ */
+.view-fgcf-thematiques-premier-niveau td {
+  background-color: white;
+}
+
+/**
+ * pa #644
+ */
+.view-fgcf-thematiques-premier-niveau td.views-field-field-fgcf-thematique-logo-fid {
+  margin-left: auto;
+  margin-right: auto;
+  float: none;
+  text-align: center; 
+}

+ 46 - 4
views/fgcf_thematiques_premier_niveau.php

@@ -61,6 +61,44 @@ $handler->override_option('fields', array(
     'field' => 'tid',
     'relationship' => 'none',
   ),
+  'field_fgcf_thematique_logo_fid' => array(
+    'label' => '',
+    'alter' => array(
+      'alter_text' => 0,
+      'text' => '',
+      'make_link' => 1,
+      'path' => 'fgcf/theme/[tid]',
+      'link_class' => '',
+      'alt' => '',
+      'prefix' => '',
+      'suffix' => '',
+      'target' => '',
+      'help' => '',
+      'trim' => 0,
+      'max_length' => '',
+      'word_boundary' => 1,
+      'ellipsis' => 1,
+      'html' => 0,
+      'strip_tags' => 0,
+    ),
+    'empty' => '',
+    'hide_empty' => 0,
+    'empty_zero' => 0,
+    'link_to_node' => 0,
+    'label_type' => 'none',
+    'format' => 'fgcf_theme_logo_liste_default',
+    'multiple' => array(
+      'group' => TRUE,
+      'multiple_number' => '',
+      'multiple_from' => '',
+      'multiple_reversed' => FALSE,
+    ),
+    'exclude' => 0,
+    'id' => 'field_fgcf_thematique_logo_fid',
+    'table' => 'node_data_field_fgcf_thematique_logo',
+    'field' => 'field_fgcf_thematique_logo_fid',
+    'relationship' => 'nid',
+  ),
   'description' => array(
     'label' => '',
     'alter' => array(
@@ -173,8 +211,12 @@ $handler->override_option('empty', 'Pas de résultat');
 $handler->override_option('empty_format', '1');
 $handler->override_option('items_per_page', 0);
 $handler->override_option('use_pager', '0');
-$handler->override_option('style_plugin', 'list');
-$handler->override_option('style_options', array(
-  'grouping' => '',
-  'type' => 'ul',
+$handler->override_option('style_plugin', 'table');
+$handler->override_option('row_options', array(
+  'inline' => array(
+    'field_fgcf_thematique_logo_fid' => 'field_fgcf_thematique_logo_fid',
+    'description' => 'description',
+  ),
+  'separator' => '',
+  'hide_empty' => 0,
 ));