<style>
.project-short.sml-thumb .top-project-info {
    padding: 9px;
    max-height:1000px;
    height:auto;
}
#projects-wrapper .project-short {
    max-height: 1000px;
    margin-bottom: 15px;
    font-size: 12px;
    padding: 0;
    background: #222;
}
div.project-short.sml-thumb { max-height:1000px; height:auto; }
</style>

<div class="project-short sml-thumb<?= ($is_mobile ? " deal-row" : "") ?> <?= $match_class ?>" 
data-nearby-type="user" data-pid="<?= $user['id'] ?>"<?= $featured_style ?> style="background:#222;">
    <div class="top-project-info">
        <div class="content-info-short clearfix" style="overflow:hidden;">
		<!-- PROBLEM AREA -->
        <img style="display: none;" id="star-on" src="/static/images/star-on.png" alt="Remove Favorite" title="Remove Favorite" />
        <img style="display: none;" id="star-off" src="/static/images/star-off.png" alt="Add Favorite" title="Add Favorite" />
        <?php
            if ($_SESSION['loggedin'] && $_SESSION['user_id']) :

                widget('favorite-star', [
                    'user_id'   => $_SESSION['user_id'],
                    'obj_id'    => $user['id'],
                    'controller'=> "profile",
                    'css_class' => "",
                    'is_fav'    => $is_favorited_user
                ]);

            endif;
        ?>		
		
        <?php
        $user_image = $disableThumb || false !== strpos($user['image'], "") ? "/static/images/users/default-avatar.jpg" : $user['image'];
        ?>
		
			<div style="background:none; width:auto; text-align:center; padding:0px;">
				<div style="background: url(/static/images/fadeslice.png) repeat-x; position:absolute;
				bottom:0px; background-position:bottom center; background-size:auto 159px; width:100%; height:159px;">
					<div style="position:absolute; bottom:0; width:100%; padding-bottom:10px;">
						<h3 class="rs acticle-title project-item" data-uid="<?= $sess_user['id'] ?>" data-oid="<?= $user['id'] ?>">
							<a class="" style="color:#fff; font-weight:300;" 
							href="/profile/<?= $user['user_slug'] ?>"><?= $user['name'] ?></a>
						</h3>
						<p class="rs property-price<?= $highlight_distance ?>" 
						style="text-align:center; max-width: 300px; color:#fff;">
							<center>
								<img src="/static/images/map_marker.png" style="height:15px;"> 
								<span style="color:#fff;"><?= number_format($user['distance'], 2) ?></span> 
								<span style="color:#ccc;">Miles away</span><br />
							
							    <?php if (!empty($user['talents'])) : ?>
									<span style="color:#ccc; font-weight:300">Genres: <?= implode(", ", $user['talents']); ?></span> 
								<?php endif; ?>
					
							</center>
						</p>
					</div>
				</div>			
				<a href="/profile/<?= $user['user_slug'] ?>" class="thumb-img display-property">
					<img src="<?= $user_image ?>" alt="<?= $user['name'] ?>" 
					style="margin:0px; max-width:100%; width:100%; height:auto">
				</a>
			</div>
            <div class="wrap-short-detail" style="display:none; overflow:hidden;">
                <h3 class="rs acticle-title project-item" data-uid="<?= $sess_user['id'] ?>" data-oid="<?= $user['id'] ?>">
                    <a class="be-fc-orange" href="/profile/<?= $user['user_slug'] ?>"><?= $user['name'] ?></a>
                </h3>
                <p class="rs property-price<?= $highlight_distance ?>" 
				style="max-width: 300px;">
					<img src="/static/images/map_marker.png" style="height:15px;"> <?= number_format($user['distance'], 2) ?> Miles away
					<?php if ($_SESSION['loggedin'] && $_SESSION['user_id']): ?>
						&bull; <?= widget('message-button', ['to' => $user['id']]) ?>
					<?php endif; ?>
				</p>
				<?php if ($_SESSION['loggedin'] && $_SESSION['user_id']): ?>
					<p class="rs property-price" style="margin-bottom:-2px; max-width: 345px;">
						<img src="/static/images/map_marker.png" style="height:11px;"> <a href="<?= $maps_link ?>" target="_blank" 
						class="be-fc-orange"><?= $user['location'] ?></a>
					</p>
				<?php endif; ?>
                <div class="rs property-price<?= $highlight_category ?> interests-textlist">
                    <?php if (!empty($user['talents'])) : ?>
						Genres: <?= implode(", ", $user['talents']); ?>
                    <?php endif; ?>
                </div>
            </div>		
		<!-- PROBLEM AREA -->
        </div>
    </div>
</div>
<div class="clear"></div>
	
<?php if (!isset($disableCoords) || !$disableCoords) : ?>
    <div class="user-coords"
         data-type="user"
         data-uid="<?= $user['id'] ?>"
         data-coordinates="<?= $user['user_location']['last_coordinates'] ?>"
         data-gender="<?= $user['gender'] ?>">
        <div class="infowindow-content">
            <p class="user-infowindow" data-uid="<?= $user['id'] ?>">
                <a href="/profile/<?= $user['user_slug'] ?>"><img src="<?= $user_image ?>" alt="<?= $user['name'] ?>" /></a>
                <span class="label">User:&nbsp;</span><span><?= $user['name'] ?></span><br />
                <span class="label">Last Seen:&nbsp;</span><span><?= $last_seen_date ?></span><br />
            </p>
        </div>
    </div> <!-- end .user-coords -->
<?php endif; ?>