This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if($vimeo = $_product->getVimeo()): | |
$hash = unserialize(file_get_contents("http://vimeo.com/api/v2/video/$vimeo.php")); | |
$img = $hash[0]['thumbnail_medium']; | |
?> | |
<script type="text/javascript"> | |
jQuery(function($) { | |
$(".youtube-thumb a").fancybox({type:'iframe'}); | |
}); | |
</script> | |
<li class="youtube-thumb"><a title="<?php echo $this->__('Play Video') ?>" href="http://player.vimeo.com/video/<?php echo $vimeo; ?>?autoplay=1"> </a><img src="<?php echo $img; ?>"></li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$db = mysql_connect ('localhost','root','12345'); | |
mysql_query('SET NAMES UTF8'); | |
mysql_query('SET character_set_client="UTF8"'); | |
mysql_query('SET character_set_cоnnectiоn="UTF8"'); | |
mysql_query('SET character_set_results="UTF8"'); | |
mysql_query('SET character_set_server="UTF8"'); | |
mysql_select_db ('blog,$db); |
NewerOlder