



<?php

/**

 * @version 1

 * mod_yelp_recent_reviews

 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL

* @author Sergey Druginin

* Email : Sergey.dru@gmail.com

* 

*/









defined( '_JEXEC' ) or die( 'Restricted access' );



	$version    = $params->get('version','');

	$width      = $params->get('width','');

	$height     = $params->get('height','');



	$border_color         = $params->get('bord_color','');

	$text_color           = $params->get('text_color','');

	$background_color     = $params->get('background_color','');

	$speed		      = $params->get('speed','');

	$yelp_api	      = $params->get('yelp_api','');

	$Name	    	      = $params->get('Name','');

	$Flashspeed 	      = $speed*1000;		    



?>



<!-- Begin Yelp Badge - get your own at http://www.yelp.com/bling -->

<div style="line-height: 1px"><div style="width:<?php echo $width; ?>px; height:40px; overflow:hidden; line-height: 100%; background-image : url(http://static1.px.yelpcdn.com/bling_borders?color=<?php echo $border_color; ?>&width=<?php echo $width; ?>&BGcolor=<?php echo $background_color; ?>&position=top&height=40) ">



<a href="http://www.yelp.com"><img src="http://static2.px.yelpcdn.com/static/200911301522729853/i/p.gif" style="height: 20px; width: 40px; margin-top: 2px; margin-left: 80px; margin-right: 80px; border:none; "/>







</a>

<div style="text-align:center"><a href="http://www.yelp.com/user_details?userid=<?php echo $yelp_api; ?>" style="font-family:arial;color:#<?php echo $text_color; ?>; font-size: 12px !important; ">Recent reviews by <?php echo $Name; ?> .</a>



</div></div>



<?php if( $version ==1){ ?>





<iframe frameborder="0" width="<?php echo $width; ?>" height="<?php echo $height; ?>" scrolling="no" src="http://www.yelp.com/blogbadgemap?v=2&amp;userid=<?php echo $yelp_api; ?>&amp;width=<?php echo $width; ?>&amp;height=<?php echo $height; ?>&amp;uicolor=<?php  echo $border_color;    ?>&amp;textcolor=<?php  echo $text_color;  ?>&amp;type=latest&amp;speed=<?php echo $speed; ?>">

</iframe>



<?php 

}else{

?>



<object id="burst" width="<?php echo $width; ?>" height="<?php echo $height; ?>" align="middle" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"><param name="FlashVars" value="enableTour=true&tourInterval=<?php echo $Flashspeed; ?>&userid= <?php echo $yelp_api; ?>&backgroundColor=0x<?php echo $background_color; ?>&type=latest&rmrlink=true&actualWidth=<?php echo $width; ?>&actualHeight=<?php echo $height; ?>" />





<param name="allowScriptAccess" value="always"/>





<embed width="<?php echo $width; ?>" height="<?php echo $height; ?>" name="burst" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://api.yelp.com/bling/map/burst.swf" flashvars="enableTour=true&tourInterval=<?php echo $Flashspeed; ?>&userid=<?php echo $yelp_api; ?>&backgroundColor=0x<?php echo $border_color ; ?>&type=latest&rmrlink=true&actualWidth=<?php echo $width; ?>&actualHeight=<?php echo $height; ?>" /></object>





<?php

}

?>



<div style="width:<?php echo $width; ?>px; height:15px; text-align : center; line-height: 100%; background-image : url(http://static1.px.yelpcdn.com/bling_borders?color=<?php echo $border_color; ?>&width=<?php echo $width; ?>&BGcolor=<?php echo $background_color; ?>&position=bottom&height=15) "></div>

</div><!-- End Yelp Badge - get your own at http://www.yelp.com/bling -->









