Changeset 2729


Ignore:
Timestamp:
May 18, 2012, 12:48:22 PM (8 years ago)
Author:
goya
Message:

ajout tags à widget

Location:
cpc/trunk/project/apps/frontend/modules/parlementaire
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/parlementaire/actions/actions.class.php

    r2727 r2729  
    542542#     $dep = Doctrine::getTable('Parlementaire')->findOneByNomSexeGroupeCirco($search, $sexe);
    543543    $this->parl = $dep->slug;
    544     $this->options = array('titre' => 1, 'photo' => 1, 'graphe' => 1, 'activite' => 1);
     544    $this->options = array('titre' => 1, 'photo' => 1, 'graphe' => 1, 'activite' => 1, 'tags' => 1);
    545545    if ($request->getParameter('notitre', false))
    546546      $this->options['titre'] = 0;
     
    551551    if ($request->getParameter('noactivite', false))
    552552      $this->options['activite'] = 0;
     553    if ($request->getParameter('notags', false))
     554      $this->options['tags'] = 0;
    553555    $this->setLayout(false);
    554556  }
  • cpc/trunk/project/apps/frontend/modules/parlementaire/actions/components.class.php

    r2726 r2729  
    5353    $this->parl = Doctrine::getTable('Parlementaire')->findOneBySlug($this->slug);
    5454    if (!$this->options)
    55       $this->options = array('titre' => 1, 'photo' => 1, 'graphe' => 1, 'activite' => 1);
     55      $this->options = array('titre' => 1, 'photo' => 1, 'graphe' => 1, 'activite' => 1, 'tags' => 1);
    5656  } 
    5757}
  • cpc/trunk/project/apps/frontend/modules/parlementaire/templates/_widget.php

    r2725 r2729  
    77 .nosdeputes_widget a { text-decoration: none; color: inherit; }
    88 .nosdeputes_widget #overDiv { position: absolute; visibility: hidden; z-index: 1000; }
     9<?php if ($options['graphe']) : ?>
    910 .nosdeputes_widget .graph_depute { float: left; height: 170px; margin-right: 3px; width: 800px; }
    1011 .nosdeputes_widget .graph_depute p { margin: 0; padding: 0; }
    11  .nosdeputes_widget .barre_activite { text-align: center; background-color: #BFBFBF; float: left; margin-top: 10px; padding-top: 3px; width: 920px; text-align: left; }
     12<?php endif;
     13if ($options['activite']) : ?>
     14 .nosdeputes_widget .barre_activite { text-align: center; background-color: #EBEBEB; float: left; margin-top: 10px; padding-top: 3px; width: 935px; text-align: left; }
    1215 .nosdeputes_widget .barre_activite ul, .barre_activite li { background-color: transparent; display: inline; font-weight: bold; line-height: 24px; margin: -3px; padding: 0; }
    13  .nosdeputes_widget .barre_activite h3 { background-color: transparent; color: #6F6F6F; display: inline; font-size: 1.3em; line-height: 24px; margin: 0; padding-left: 5px; }
     16 .nosdeputes_widget .barre_activite h3 { background-color: transparent; color: #6B6B6B; display: inline; font-size: 1.3em; line-height: 24px; margin: 0; padding-left: 5px; }
    1417 .nosdeputes_widget .barre_activite li img { margin-left: 25px; }
     18<?php endif;
     19if ($options['tags']) : ?>
     20 .nosdeputes_widget .tag_level_0 { font-size: 0.8em; }
     21 .nosdeputes_widget .tag_level_1 { font-size: 0.9em; }
     22 .nosdeputes_widget .tag_level_2 { font-size: 1em; }
     23 .nosdeputes_widget .tag_level_3 { font-size: 1.5em; }
     24 .nosdeputes_widget .tag_level_4 { font-size: 1.7em; }
     25 .nosdeputes_widget .internal_tag_cloud { margin: auto; position: relative; text-align: center; }
     26 <?php endif; ?>
    1527</style>
    1628<div class="nosdeputes_widget">
     
    2133 <?php endif;
    2234 if ($options['photo']) : ?>
    23   <div style="float: left; border: 2px solid #DCD6CA; height: 160px; width: 125px;">
     35  <div style="float: left; border: 2px solid #DCD6CA; height: 160px; width: 125px; margin-right: 3px;">
    2436   <a href="<?php echo $url; ?>"><?php include_partial('parlementaire/photoParlementaire', array('parlementaire' => $parl, 'height' => 160)); ?></a>
    2537  </div>
     
    3648  </div>
    3749  <div style="clear: both;"></div>
     50 <?php endif;
     51 if ($options['tags']) : ?>
     52  <div style="text-align: justify; border: 2px solid #EBEBEB">
     53    <?php echo include_component('tag', 'parlementaire', array('parlementaire'=>$parl)); ?>
     54  </div>
    3855 <?php endif; ?>
    3956</div>
Note: See TracChangeset for help on using the changeset viewer.