Beispiel #1
0
 $nbTem = count($medias);
 // TEMOIGNAGES
 foreach ($medias as $m) {
     $votePlus = 0;
     $voteMoins = 0;
     $datas = api__getDatas($m->id);
     foreach ($datas['Vote'] as $vote) {
         if (intval($vote->rate) > 0) {
             $votePlus++;
         } elseif (intval($vote->rate) < 0) {
             $voteMoins++;
         }
     }
     $votePlusQu += $votePlus;
     $voteMoinsQu += $voteMoins;
     $comments = getItemComments($m);
     $metas = getMetas($m);
     $tagName = "";
     $tagContent = "";
     if (count($metas) > 0) {
         foreach ($metas as $meta) {
             if (is_object($meta)) {
                 $meta = (array) $meta;
             }
             $tagName = $meta["name"];
             $tagContent = $meta["content"];
         }
         /*
         					$tagName = $metas["name"];
         					$tagContent = $metas["content"];*/
     }
Beispiel #2
0
								<div class="clear"></div>
							</div>
							
							<div id="media-vote-thumbs">
								<div class="vote-thumbs thumbs-ok"><?php echo getTextToSpeech("D'accord"); ?></div>
								<div class="vote-thumbs thumbs-notok"><?php echo getTextToSpeech("Pas d'accord"); ?></div>
								<div class="clear"></div>
							</div>
                            
						</div>
						<div id="media-vote-thanks"><?php echo getTextToSpeech("J'ai voté !");?></div>
					</div>
*/
?>
					<?php 
$comments = getItemComments($item);
$countTotal = 0;
$commentaireCG = false;
foreach ($comments as $c) {
    if ($c->isValid) {
        $countTotal++;
    }
    $user_id = $c->__get("users_id");
    if (in_array($user_id, array(500, 94))) {
        $commentaireCG = true;
    }
}
?>
					
          			<div id="media-vote-acces-commentaires">
          				<?php