bluvertigo
4/24/2017 - 1:20 PM

FIX edilbank video

FIX edilbank video

function get_video_homepage($youtube,$i) {
	if(  strpos($youtube[$i]->link, "youtube" ) != true) {
		$html = '<div id="video_'. $i .'">
                	<div class="video-content">
                    	<a target="_blank" href="'. $youtube[$i]->link . '" onclick="_gaq.push([\'_trackEvent\', \'Homepage Video\', \'Click Video - '. $youtube[$i]->title .'\']);">
                        	<img class="schermo" height="53px" width="71px" src="http://img.youtube.com/vi/'. id_youtube($youtube[$i]->link) .'/default.jpg" />
                    	</a>
                	</div>
            	<div>
            	<div class="descrizione">'. $youtube[$i]->title .'</div>
                	<div class="descrizione-bottone" onClick="javascript:window.open(\'http://www.edilbank.com/modifica-video/?screenNumber='. $i .'#ultimo-video\', \'_self\');" >'. $i .'</div>                
                	</div>
            	</div>';
	} else {
		$html = '<div id="video_'. $i .'">
                	<div class="video-content">
                    	<a href="https://youtube.googleapis.com/v/'. id_youtube($youtube[$i]->link) . '&hl=en&fs=1&rel=0&autoplay=1" rel="shadowbox;width=405;height=340;player=swf" onclick="_gaq.push([\'_trackEvent\', \'Homepage Video\', \'Click Video - '. $youtube[$i]->title .'\']);">
                        	<img class="schermo" height="53px" width="71px" src="http://img.youtube.com/vi/'. id_youtube($youtube[$i]->link) .'/default.jpg" />
                    	</a>
                	</div>
            	<div>
            	<div class="descrizione">'. $youtube[$i]->title .'</div>
                	<div class="descrizione-bottone" onClick="javascript:window.open(\'http://www.edilbank.com/modifica-video/?screenNumber='. $i .'#ultimo-video\', \'_self\');" >'. $i .'</div>                
                	</div>
            	</div>';
	}

	

    return $html;
}
function get_video_homepage($youtube,$i) {
	if(  strpos($youtube[$i]->link, "youtube" ) != true) {
		$html = '<div id="video_'. $i .'">
                	<div class="video-content">
                    	<a target="_blank" href="'. $youtube[$i]->link . '" onclick="_gaq.push([\'_trackEvent\', \'Homepage Video\', \'Click Video - '. $youtube[$i]->title .'\']);">
                        	<img class="schermo" height="53px" width="71px" src="http://img.youtube.com/vi/'. id_youtube($youtube[$i]->link) .'/default.jpg" />
                    	</a>
                	</div>
            	<div>
            	<div class="descrizione">'. $youtube[$i]->title .'</div>
                	<div class="descrizione-bottone" onClick="javascript:window.open(\'http://www.edilbank.com/modifica-video/?screenNumber='. $i .'#ultimo-video\', \'_self\');" >'. $i .'</div>                
                	</div>
            	</div>';
	} else {
		$html = '<div id="video_'. $i .'">
                	<div class="video-content">
                    	<a href="https://www.youtube.com/embed/'. id_youtube($youtube[$i]->link) . '?hl=en&fs=1&rel=0&autoplay=1" rel="shadowbox;width=405;height=340;" onclick="_gaq.push([\'_trackEvent\', \'Homepage Video\', \'Click Video - '. $youtube[$i]->title .'\']);">
                        	<img class="schermo" height="53px" width="71px" src="http://img.youtube.com/vi/'. id_youtube($youtube[$i]->link) .'/default.jpg" />
                    	</a>
                	</div>
            	<div>
            	<div class="descrizione">'. $youtube[$i]->title .'</div>
                	<div class="descrizione-bottone" onClick="javascript:window.open(\'http://www.edilbank.com/modifica-video/?screenNumber='. $i .'#ultimo-video\', \'_self\');" >'. $i .'</div>                
                	</div>
            	</div>';
	}

	

    return $html;
}