<?php
/**
* Fabrik List Template: Admin Row
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/

// No direct access
defined('_JEXEC') or die('Restricted access');

?>
<?php
if (date("d-m-Y",strtotime($this->_row->data->x80ml_fabrik_musiaa___field_date)) == date("d-m-Y"))
{

$selected_option = $this->_row->data->x80ml_fabrik_musiaa___field_hastime;
if (!(strpos($selected_option, 'hastime') !== FALSE && date("H",strtotime($this->_row->data->x80ml_fabrik_musiaa___field_date)) <= (date("H")-1)))

{ ?>


<a id="sobimodparentdivimage" href="/<?php echo $this->_row->data->x80ml_fabrik_musiaa___field_url; ?>">
<div id="<?php echo $this->_row->id; ?>" class="row-fluid">
<div class="span3 sobimodleft">

<img src="/<?php echo $this->_row->data->x80ml_fabrik_musiaa___field_imageurl; ?>" />

</div>
<div class="span9 sobimodright">

<div class="span9">
<div class="sobimodvenue" >
<?php echo $this->_row->data->x80ml_fabrik_musiaa___field_location; ?>
</div>
<div class="sobimodtitle" >
<?php echo $this->_row->data->x80ml_fabrik_musiaa___field_concert; ?>
</div>
</div>

<div class="span3 less-hor-space" >
<div class="sobimoddate">
<div class="dateday">
<?php echo date("d-m",strtotime($this->_row->data->x80ml_fabrik_musiaa___field_date)); ?>
</div>
<div class="dateyear">
<?php echo date("Y",strtotime($this->_row->data->x80ml_fabrik_musiaa___field_date)); ?>
</div>
<?php $selected_option = $this->_row->data->x80ml_fabrik_musiaa___field_hastime; if (strpos($selected_option, 'hastime') !== FALSE) { ?>
<div class="datetime">
<?php
$datestamp = $this->_row->data->x80ml_fabrik_musiaa___field_date;
$todaydate = strtotime($datestamp);
echo date("H:i",$todaydate); ?>
</div>
<?php } ?>
</div>
</div>


</div>
</div>
</a>
<?php } } ?>