<?

	/*==================================================================*\
	######################################################################
	#                                                                    #
	# Copyright 2005 Arca Solutions, Inc. All Rights Reserved.           #
	#                                                                    #
	# This file may not be redistributed in whole or part.               #
	# eDirectory is licensed on a per-domain basis.                      #
	#                                                                    #
	# ---------------- eDirectory IS NOT FREE SOFTWARE ----------------- #
	#                                                                    #
	# http://www.edirectory.com | http://www.edirectory.com/license.html #
	######################################################################
	\*==================================================================*/

	# ----------------------------------------------------------------------------------------------------
	# * FILE: /includes/views/view_event_detail_code_realestate.php
	# ----------------------------------------------------------------------------------------------------
	
?>

	<div class="detail">
		
		<h1><?=$event_title;?></h1>
        
        <? include(system_getFrontendPath("detail_socialbuttons.php", "frontend", false, EVENT_EDIRECTORY_ROOT)); ?>
        
        <span class="clear">&nbsp;</span>
        
		<div class="columns">
            
            <? if (($imageTag || $eventGallery) && $event_video_snippet) { ?>
                <div>
                    <ul class="detail-tabs">
                        <li id="li_gallery" class="tab_media_active">
                            <a href="javascript: void(0);" <?=($tPreview || !$user) ? "style=\"cursor:default;\"" : "onclick=\"displayMediaFront('gallery');\"" ?>>
                                <?=system_showText(LANG_LABEL_PHOTO_GALLERY);?>
                            </a>
                        </li>
                        <li id="li_video">
                            <a href="javascript: void(0);" <?=($tPreview || !$user) ? "style=\"cursor:default;\"" : "onclick=\"displayMediaFront('video');\"" ?>>
                                <?=system_showText(LANG_LABEL_VIDEO);?>
                            </a>
                        </li>
                    </ul>    
                </div>    
            <? } ?>
        
        	<? if (($imageTag && !$eventGallery && $onlyMain) || ($tPreview && $imageTag)) { ?>
                <div class="image-shadow" <?=(!$tPreview ? "id=\"detail_image\"" : "" )?>>
                    <div class="image">
                        <?=$imageTag?>
                    </div>
                </div>
            <? } ?>
    
            <? if ($eventGallery) { ?>
                 <div class="ad-gallery <?=$tPreview ? "gallery" : ""?>" <?=(!$tPreview ? "id=\"detail_gallery\"" : "" )?>>
                    <?=$eventGallery?>
                </div>
            <? } ?>
            
            <? if ($event_video_snippet) { ?>
                <div class="video" id="detail_video" <?=(($imageTag || $eventGallery) && $event_video_snippet ? "style=\"display: none\"" : "")?>>
                    <script language="javascript" type="text/javascript">
                    //<![CDATA[
                    document.write("<?=str_replace("\"","'",$event_video_snippet)?>");
                    //]]>
                    </script>
                </div>
            <? } ?>
            
            <div class="share">
                <?=$event_icon_navbar?>
            </div>
            
            <? if ($event_category_tree) { ?>
                <?=$event_category_tree?>
            <? } ?>
			
            <p><strong><?=system_showText(LANG_EVENT_WHEN);?>:</strong> <?=($event->getString("recurring") != "Y" ? $str_date : $str_recurring);?></p>

            <? if ($str_time) { ?>
                <p><strong><?=system_showText(LANG_EVENT_TIME)?>:</strong> <?=$str_time?></p>
            <? } ?>

            <? if ($event_location) { ?>
                <p><strong><?=system_showText(LANG_SEARCH_LABELLOCATION)?>:</strong> <?=nl2br($event_location)?></p>
            <? } ?>

            <? if ($location_map) { ?>
                <? if ($user) { ?>
                    <p><a href="<?=$map_link?>" target="_blank"><?=system_showText(LANG_EVENT_DRIVINGDIRECTIONS)?> &raquo;</a></p>
                <? } else { ?>
                    <p><a href="javascript:void(0);" style="cursor:default"><?=system_showText(LANG_EVENT_DRIVINGDIRECTIONS)?> &raquo;</a></p>
                <? } ?>
            <? } ?>

            <? if (($location) || ($event_address) || ($event_address2)) echo "<address>\n";  ?>

            <? if($event_address) { ?>
                <span><?=nl2br($event_address)?></span>
            <? } ?>

            <? if($event_address2) { ?>
                <span><?=nl2br($event_address2)?></span>
            <? } ?>

            <? if($location) { ?>
                <span><?=$location?></span>
            <? } ?>

            <? if (($location) || ($event_address) || ($event_address2)) echo "</address>\n";  ?>

            <? if($event_url) { ?>
                <p><strong><?=system_showText(LANG_EVENT_WEBSITE)?>:</strong>
                <? if (!$user){
                    echo "<a href=\"javascript:void(0);\" style=\"cursor:default\">".$dispurl."</a>";
                } else {
                    echo "<a href=\"".$event_url."\" target=\"_blank\">".$event_url."</a>";
                }?>
                </p>
            <? } ?>

            <? if ($event_email){ ?>
                <p><strong><?=system_showText(LANG_LABEL_EMAIL)?>:</strong> <a rel="nofollow" href="<?=$contact_email?>" class="<?=!$tPreview? "fancy_window_tofriend": "";?>" style="<?=$contact_email_style?>"><?=system_showText(LANG_SEND_AN_EMAIL);?></a></p>
            <? } ?>	

            <? if($event_contactName) { ?>
                <p><strong><?=system_showText(LANG_LABEL_CONTACTNAME)?>:</strong> <?=$event_contactName?></p>
            <? } ?>

            <? if($event_phone) { ?>
                <p><strong><?=system_showText(LANG_LABEL_PHONE)?>:</strong> <?=$event_phone?></p>
            <? } ?>
			
		</div>
		
		<? if ($event_description) { ?>
			<div class="content-box">
				<p><?=$event_description?></p>
			</div>
		<? }?>
	
	</div>