Example #1
0
<?php

use_helper('VoFormat');
?>

<li>
	<div class="avatar">
  	<?php 
echo link_to(image_tag(S3Voota::getImagesUrl() . '/' . $politico->getImagePath() . '/cc_s_' . $politico->getImagen(), 'width="36" height="36" alt="' . __('Foto de %1%', array('%1%' => $politico)) . '"'), 'politico/show?id=' . $politico->getVanity());
?>
  </div>
	<h4 class="name"><?php 
echo link_to(cutToLength("" . $politico->getNombre() . " " . $politico->getApellidos(), 26) . ' ' . '(' . $politico->getPartido() . ')', 'politico/show?id=' . $politico->getVanity());
?>
</h4>
  <div class="votes">
    <?php 
if ($showSparkline) {
    ?>
		  <?php 
    include_partial('general/sparkline_box', array('id' => $id));
    ?>
		<?php 
}
?>
		<span class="votes-count">
			<?php 
if (sumu($politico) > 0 && sumd($politico) > 0) {
    ?>
				<?php 
    echo str_replace(" ", "&nbsp;", format_number_choice('[0]0|[1]1 positivo|(1,+Inf]%1% positivos', array('%1%' => sumu($politico)), sumu($politico)));
Example #2
0
<?php

use_helper('VoFormat');
use_helper('VoUser');
?>

<tr>
	<td class="photo">
        <?php 
echo !$obj->getImagen() ? '' : image_tag(S3Voota::getImagesUrl() . '/elecciones/cc_s_' . $obj->getImagen(), ' width="36" height="36" alt="' . __('Imagen de %1%', array('%1%' => $obj->getEleccion()->getNombre())) . '"');
?>
  </td>
  <td class="name">
   <?php 
echo link_to(cutToLength("" . $obj->getEleccion()->getNombre() . " " . $obj->getNombre() . "", 105), 'eleccion/show?vanity=' . $obj->getEleccion()->getVanity() . '&convocatoria=' . $obj->getNombre());
?>
  </td>
</tr>
Example #3
0
      <tr class="<?php 
    echo fmod($idx, 2) ? 'even' : 'odd';
    ?>
">
  	    <td class="position"><?php 
    echo format_number($propuestasPager->getFirstIndice() + $idx, 'es_ES');
    ?>
.</td>
  	    <td class="photo">
          <?php 
    echo link_to(image_tag(S3Voota::getImagesUrl() . '/' . $propuesta->getImagePath() . '/cc_s_' . $propuesta->getImagen(), 'alt="' . __('Foto de %1%', array('%1%' => $propuesta)) . '"'), 'propuesta/show?id=' . $propuesta->getVanity());
    ?>
  	    </td>
        <td class="name">
          <?php 
    echo link_to($propuesta->getTitulo(), 'propuesta/show?id=' . $propuesta->getVanity(), array('class' => 'tooltip_propuesta', 'title' => secureString(__('Sobre esta propuesta') . '|' . __('Creada el %1%', array('%1%' => format_date($propuesta->getCreatedAt()))) . '|' . cutToLength($propuesta->getDescripcion(), 200, '...', true))));
    ?>
        </td>
        <td class="voto">
            <?php 
    include_component_slot('quickvote', array('entity' => $propuesta));
    ?>
        </td>
        <td class="positive-votes"><?php 
    echo sumu($propuesta);
    ?>
</td>
        <td class="negative-votes"><?php 
    echo sumd($propuesta);
    ?>
</td>
Example #4
0
	var tracker = Blueknow.getTracker('<?php 
echo sfConfig::get("sf_bknumber_" . $sf_user->getCulture());
?>
');

	tracker.trackVisited(
	'<?php 
echo $politico->getId();
?>
',
	'<?php 
echo $politico;
?>
',
	'<?php 
echo cutToLength(sq(formatBio($politico->getBio())), 255, '');
?>
',
	'<?php 
echo url_for('politico/show?id=' . $politico->getVanity(), true);
?>
',
	'<?php 
echo S3Voota::getImagesUrl() . '/' . $politico->getImagePath() . '/cc_s_' . $politico->getImagen();
?>
', 
	'0',
	{
		'categoria': 'PolĂ­tico',
		'partido': '<?php 
echo sq($politico->getPartido());
Example #5
0
<?php

use_helper('VoFormat');
?>

<li>
	<div class="avatar">
    	<?php 
echo image_tag(S3Voota::getImagesUrl() . '/' . $reviewable->getImagePath() . '/cc_s_' . $reviewable->getImagen(), 'width="36" height="36" alt="' . __('Foto de %1%', array('%1%' => $reviewable)) . '"');
?>
    </div>
	<h4 class="name"><?php 
echo link_to(cutToLength($reviewable->getLongName()), $reviewable->getModule() . '/show?id=' . $reviewable->getVanity());
?>
</h4>
  <div class="votes">
    <?php 
if ($showSparkline) {
    ?>
		  <?php 
    include_partial('general/sparkline_box', array('id' => $id));
    ?>
		<?php 
}
?>
		<span class="votes-count">
			<?php 
if ($showVotes) {
    ?>
				<?php 
    if ($reviewable->getSumut() > 0 && $reviewable->getSumdt() > 0) {
Example #6
0
<?php

use_helper('VoFormat');
?>
<li>
	<div class="avatar">
    	<?php 
echo image_tag(S3Voota::getImagesUrl() . '/' . $politico->getImagePath() . '/cc_s_' . $politico->getImagen(), 'width="36" height="36" alt="' . __('Foto de %1%', array('%1%' => $politico)) . '"');
?>
    </div>
	<h4 class="name"><?php 
echo link_to(cutToLength("" . $politico->getNombre() . " " . $politico->getApellidos(), 35) . ($politico->getPartido() ? " (" . $politico->getPartido() . ")" : ''), 'politico/show?id=' . $politico->getVanity());
?>
</h4>
    <div class="votes">
  		<?php 
include_partial('general/sparkline_box', array('id' => $id));
?>
		<span class="votes-count">
			<?php 
if ($showVotes) {
    ?>
				<?php 
    if ($politico->getSumut() > 0 && $politico->getSumdt() > 0) {
        ?>
					<?php 
        echo str_replace(" ", "&nbsp;", format_number_choice('[0]0|[1]1 positivo|(1,+Inf]%1% positivos', array('%1%' => $politico->getSumut()), $politico->getSumut()));
        ?>
					<?php 
        echo str_replace(" ", "&nbsp;", format_number_choice('[0]0|[1] y 1 negativo|(1,+Inf] y %1% negativos', array('%1%' => $politico->getSumdt()), $politico->getSumdt()));
        ?>
Example #7
0
    ?>
    <?php 
    foreach ($convocatoria->getEleccion()->getEleccionInstitucions() as $eleccionInstuticion) {
        ?>
      <tr class="<?php 
        echo fmod($idx, 2) ? 'even' : 'odd';
        ?>
">
  	    <td class="photo">
          <?php 
        echo !$convocatoria->getImagen() ? '' : image_tag(S3Voota::getImagesUrl() . '/elecciones/cc_s_' . $convocatoria->getImagen(), ' width="36" height="36" alt="' . __('Imagen de %1%', array('%1%' => $convocatoria->getEleccion()->getNombre())) . '"');
        ?>
  	    </td>
        <td class="name">
          <?php 
        echo link_to(cutToLength($eleccionInstuticion->getInstitucion()->getGeo()->getNombre() . " (" . $convocatoria->getEleccion()->getNombre() . " " . $convocatoria->getNombre() . ")", 105), 'eleccion/show?vanity=' . $convocatoria->getEleccion()->getVanity() . '&convocatoria=' . $convocatoria->getNombre());
        ?>
        </td>
        <td class="lists">
         <?php 
        echo count($convocatoria->getListas());
        ?>
        </td>
        <td class="date">
         <?php 
        echo format_date($convocatoria->getFecha(), 'd/M/y');
        if ($convocatoria->getClosedAt()) {
            ?>
 <?php 
            echo __('(finalizada)');
        }
Example #8
0
    ?>
  	    </td>
        <td class="name">
          <?php 
    $multi = false;
    $count = 0;
    foreach ($lista->getConvocatoria()->getListas() as $aLista) {
        if ($aLista->getPartidoId() == $lista->getPartidoId()) {
            if ($count++ > 1) {
                $multi = true;
            }
        }
    }
    ?>
          <?php 
    echo link_to(cutToLength($lista->getPartido()->getAbreviatura() . ", " . $lista->getConvocatoria() . ($multi ? ", " . $lista->getCircunscripcion() : ''), 105), 'lista/show?vanity=' . $lista->getConvocatoria()->getEleccion()->getVanity() . '&convocatoria=' . $lista->getConvocatoria()->getNombre() . '&geo=' . $lista->getCircunscripcion()->getGeo()->getNombre() . '&partido=' . $lista->getPartido()->getAbreviatura());
    ?>
        </td>
        <td class="lists">
         &nbsp;
        </td>
        <td class="date">
         <?php 
    echo format_date($lista->getConvocatoria()->getFecha(), 'd/M/y');
    if ($lista->getConvocatoria()->getClosedAt()) {
        ?>
 <?php 
        echo __('(finalizada)');
    }
    ?>
        </td>