Exemplo n.º 1
0
 // Detect info about first video in first array
 if ($c == 0) {
     $FirstVideoId = $OutId;
     $FirstTitle = $Title;
 }
 //Check "here" element
 if ($Video == $OutId) {
     $CurrentClass = " here";
 } else {
     $CurrentClass = "";
 }
 //$Authors = addslashes( compAuthors($Authors, $Authors_Aliases) );
 //$Location = addslashes( compLocationYear($Location, $Year) );
 //$Brand = addslashes( compBrand($Authors, $Brand) );
 //$Tv_Channel = addslashes( compTvChannel($Tv_Channel) );
 $Motion_Type_Str = addslashes(compMotionType($Motion_Type));
 $Broadcast_Type = addslashes(compBroadcastType($Broadcast_Type));
 //Round rating
 $Rating = round($Rating / 10000, 1);
 $RatingWidth = round($Rating / 10000, 0);
 //-----------------
 //--- Pack to json
 $Collect_JSON_Attr .= '
 {
 "Title": "' . $Title . '",
 "Img": "' . $Img . '",
 "Authors": "' . $Authors . '",
 "Location": "' . $Location . '",
 "Brand": "' . $Brand . '",
 "Tv_Channel": "' . $Tv_Channel . '",
 "Likes": "' . $Likes . '",
Exemplo n.º 2
0
echo compAuthors($Authors, $Authors_Aliases);
?>
                    </div>
                </div>
                <div class="Location"><?php 
echo compLocationYear($Location, $Year);
?>
</div>
                <?php 
echo compBrand($Authors, $Brand);
?>
                <?php 
echo compTvChannel($Tv_Channel);
?>
                <div class="Motion_Type"><div class="min_cap">Production type: </div><?php 
echo compMotionType($Motion_Type);
?>
</div>
                <div class="Broadcast_Type"><div class="min_cap">Function type: </div><?php 
echo compBroadcastType($Broadcast_Type);
?>
</div>

                <div class="Rating">
                    <div class="Num"><div class="RateText"><?php 
echo round($Rating / 10000, 1);
?>
</div></div>
                    <div class="AwesomeRate">
                        <div class="min_cap">internal rating</div>
                        <div class="MeterGhost"></div>