<?php
/**
* Fabrik List Template: Div Row
* Note the div cell container is now generated in the default template
* in FabrikHelperHTML::bootstrapGrid();
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
?>
<div id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
<div style="clear: both;">
</div>
<?php
$array = explode(',', trim($this->_row->data->chess_clubs___club_webpage_raw, '{}'));
foreach($array as $item) {
$parts = explode('":"', trim($item, '"'));
$web_array[$parts[0]] = $parts[1];
}
$logo = $this->_row->data->chess_clubs___logo_du_club_raw;
if(is_null($logo) || $logo == '') { $logo = '/images/stories/nologo.png'; }
?>
<div style="float:left;width:10%;text-transform:capitalize;"><?php echo $this->_row->data->chess_clubs___flag;?></div>
<div style="float:right;width:87%;">
<h4>
<?php echo $this->_row->data->chess_clubs___club;?>
<?php if($web_array['link'] != 'http://') { ?><a href="<?= $web_array['link']; ?>" title="Visit their Page!" target="_blank"><?php } ?>
<img style="border: 0px solid ; width: 60px; height: 60px; position: absolute; top: 0px; right: 2px" class="img-circle" src="<?= $logo; ?>" />
<?php if($web_array['link'] != 'http://') { ?></a><?php } ?>
</h4>
<div style="width: 100%;position: absolute; left: 0px; text-transform: capitalize; list-style-type: none; margin-left:0px; padding-left:0px; display: inline-block; ">
<?php echo $this->_row->data->chess_clubs___street_name;?> <?php echo $this->_row->data->chess_clubs___post_code;?> <?php echo $this->_row->data->chess_clubs___city;?>
</div>
</div>
<div style="width: 182px; float: left;">
</div>
<div style="float: left; width: 210px; padding-right: 10px;">
<div>
</div>
</div>
<div style="clear: both;">
</div>
<div style="clear: both; margin-top: 50px;">
<div style=" float: left; width: 280px;">
<a href="<?php echo $this->_row->data->chess_clubs___email_raw;?>"><img style="border: 0px solid ; width: 20px; height: 20px;" alt="Email" src="http://chessbook.net/ZULUTESTINGSITE/images/email.png" align="left"> Contact the club</a>
</div>
<div style="width: 280px; float: left;">
<a href="#"><img style="border: 0px solid ; width: 20px; height: 20px;" alt="Email" src="http://www.clker.com/cliparts/M/0/7/s/T/o/orange-phone-hi.png" align="left"> <?php echo $this->_row->data->chess_clubs___phone_raw;?></a>
</div>
<div style="width: 280px; float: left;">
<?php
$myVar = $this->_row->data->chess_clubs___clubmap_raw;
$myVar = ltrim($myVar, '(');
$myVar = str_replace(' ', '', $myVar);
$myVar = explode(')', $myVar);
// $myVar[0] = Coordinates
// $myVar[1] = zoom
?>
<a href="http://maps.google.com/maps?q=loc:<?=$myVar[0]; ?>&z=<?= $myVar[1]; ?>" target="_blank" title="view on google map"><img style="position: absolute; top: 130px; right: 16px; border: 0px solid ; width: 30px; height: 30px;" src="http://www.chessbook.net/ZULUTESTINGSITE/images/chess.png" align="left"></a>
</div>
</div>
</div>