Beispiel #1
0
/**
 * @package Helios Calendar
 * @subpackage Default Theme
 */
if (!defined('isHC')) {
    exit(-1);
}
$mySeries = series_fetch(1);
$myMeta = series_meta($mySeries);
get_header();
series_map($mySeries);
?>

	<meta property="og:title" content="<?php 
echo event_lang('SeriesTitle') . ' ' . $myMeta[0];
?>
"/>
	<meta property="og:type" content="article"/>
	<meta property="og:url" content="<?php 
echo cal_url() . '/index.php?com=series&amp;sID=' . $myMeta[2];
?>
"/>
	<meta property="og:image" content="<?php 
echo cal_url() . '/img/like/event.png';
?>
"/>
	<meta property="og:site_name" content="<?php 
echo cal_name();
?>
"/>
Beispiel #2
0
			<div class="socialF">
				<div class="fb-like" data-href="<?php 
echo $myLnks['This'];
?>
" data-send="false" data-layout="button_count" data-width="75" data-show-faces="false"></div>
			</div>
			<div class="socialL">
				<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script>
				<script type="in/share" data-url="<?php 
echo urlencode($myLnks['This']);
?>
" data-counter="right"></script>
			</div>
			
			<h2><?php 
echo event_lang('Categories');
?>
</h2>
			<div id="categories">
				<?php 
event_categories($myEvnt['EventID']);
?>
			</div>
			
			<?php 
get_comments($myEvnt['CommentsID'], $myEvnt['CommentsURL'], $myEvnt['Title'], 1);
?>
		</article>
	</section>
	
	<?php 
Beispiel #3
0
			</div>
	<?php 
if ($myEvnt['Contact'] . $myEvnt['Contact_Email'] . $myEvnt['Contact_Phone'] . $myEvnt['Contact_URL'] != '') {
    ?>
			<h2 class="sub">Event Contact</h2>
			<?php 
    echo $myEvnt['Contact'] != '' ? $myEvnt['Contact'] . '<br />' : '';
    ?>
			<?php 
    echo $myEvnt['Contact_Email'] != '' ? cleanEmailLink($myEvnt['Contact_Email'], $myEvnt['Title'], event_lang('Email') . ' ') . '<br />' : '';
    ?>
			<?php 
    echo $myEvnt['Contact_Phone'] != '' ? event_lang('Phone') . ' ' . $myEvnt['Contact_Phone'] . '<br />' : '';
    ?>
			<?php 
    echo $myEvnt['Contact_URL'] != '' ? event_lang('Website') . ' <a href="' . $myLnks['Event_URL'] . '" target="_blank">' . event_lang('ClickToVisit') . '</a><br />' : '';
    ?>

	<?php 
}
?>
			
			<h2>Similar Events</h2>
			<div id="categories">
				<?php 
event_categories($myEvnt['EventID']);
?>
			</div>
			
			<h2>&nbsp;</h2>
			<?php 
Beispiel #4
0
</a><br />
                </p>
			</div>
			
            <!--<div class="event-social-icons">-->
            		<div class="social"> 
					<div id="cmnt_cnt"><span class="arrow"><span>&nbsp;</span></span><?php 
get_comments_link($myEvnt['CommentsID'], $myEvnt['CommentsURL'], 1);
?>
</div>
					<div class="socialT">
						<a href="http://twitter.com/share" class="twitter-share-button" data-url="<?php 
echo $myLnks['This'];
?>
" data-text="<?php 
build_tweet($myEvnt['Title'] . ' @ ' . $myEvnt['Venue_Name'] . ' - ' . $myEvnt['Time'] . ' ' . event_lang('On') . ' ' . stampToDate($myEvnt['DateRaw'], $hc_cfg[24]));
?>
" data-count="horizontal">Tweet</a>
						<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
					</div>
					<div class="socialG">
						<g:plusone size="medium" count="true" href="<?php 
echo $myLnks['This'];
?>
"></g:plusone>
						<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
					</div>
					<div class="socialF">
						<div class="fb-like" data-href="<?php 
echo $myLnks['This'];
?>
Beispiel #5
0
/**
 * Retrieves array of event data.
 * @since 2.0.0
 * @version 2.2.1
 * @return array Event Data
 */
function event_fetch()
{
    global $eID, $hc_cfg, $hc_lang_event, $title, $desc, $expire;
    $result = doQuery("\tSELECT e.PkID, e.Title, e.Description, e.StartDate, e.StartTime, e.EndTime, e.TBD, e.ContactName, e.ContactEmail, e.ContactURL, e.ContactPhone, \r\n\t\t\t\t\t\t\te.LocID, e.SeriesID, e.Cost, e.LocationName, e.LocationAddress, e.LocationAddress2, e.LocationCity, e.LocationState, e.LocationZip, e.LocCountry, \r\n\t\t\t\t\t\t\te.ShortURL, e.LastMod, e.Image, e.IsFeature, e.HideDays, l.Name, l.Address, l.Address2, l.City, l.State, l.Zip, l.Country, l.URL, l.Phone, l.Email,\r\n\t\t\t\t\t\t\tl.Lat, l.Lon, en.NetworkID, er.Type,\r\n\t\t\t\t\t\tIF(er.Type != 1, NULL,\r\n\t\t\t\t\t\t\tIF(er.RegOption = 0, \r\n\t\t\t\t\t\t\t\t(SELECT CONCAT(er.OpenDate,'|',er.CloseDate,'|',er.Space,'|',er.RegOption,'|',COUNT(r.EventID),'|',e.PkID) FROM " . HC_TblPrefix . "eventrsvps er LEFT JOIN " . HC_TblPrefix . "registrants r ON (r.EventID = er.EventID AND r.IsActive = 1) WHERE er.EventID = e.PkID GROUP BY er.OpenDate,er.CloseDate,er.Space,er.RegOption LIMIT 1),\r\n\t\t\t\t\t\t\t\t(SELECT CONCAT(er.OpenDate,'|',er.CloseDate,'|',er.Space,'|',er.RegOption,'|',COUNT(r.EventID),'|',MIN(e2.PkID)) FROM " . HC_TblPrefix . "eventrsvps er LEFT JOIN " . HC_TblPrefix . "registrants r ON (r.EventID = er.EventID AND r.IsActive = 1) WHERE er.EventID = MIN(e2.PkID) GROUP BY er.OpenDate,er.CloseDate,er.Space,er.RegOption LIMIT 1)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t) AS RSVPOpts\r\n\t\t\t\t\t\tFROM " . HC_TblPrefix . "events e\r\n\t\t\t\t\t\t\tLEFT JOIN " . HC_TblPrefix . "events e2 ON (e.SeriesID = e2.SeriesID)\r\n\t\t\t\t\t\t\tLEFT JOIN " . HC_TblPrefix . "locations l ON (e.LocID = l.PkID)\r\n\t\t\t\t\t\t\tLEFT JOIN " . HC_TblPrefix . "eventnetwork en ON (e.PkID = en.EventID AND en.NetworkType = 2)\r\n\t\t\t\t\t\t\tLEFT JOIN " . HC_TblPrefix . "eventrsvps er ON (e.PkID = er.EventID)\r\n\t\t\t\t\t\tWHERE\r\n\t\t\t\t\t\t    e.IsActive = 1 AND e.IsApproved = 1\r\n\t\t\t\t\t\t\t   AND e.PkID = '" . $eID . "'\r\n\t\t\t\t\t\tGROUP BY e.PkID , e.Title , e.Description , e.StartDate , e.StartTime , e.EndTime , e.TBD , e.ContactName , e.ContactEmail , e.ContactURL , \r\n\t\t\t\t\t\te.ContactPhone , e.LocID , e.SeriesID , e.Cost , e.LocationName , e.LocationAddress , e.LocationAddress2 , e.LocationCity , e.LocationState ,\r\n\t\t\t\t\t\te.LocationZip , e.LocCountry , e.ShortURL , e.LastMod , e.Image , e.IsFeature , e.HideDays , l.Name , l.Address , l.Address2 , l.City , l.State , \r\n\t\t\t\t\t\tl.Zip , l.Country , l.URL , l.Phone , l.Email , l.Lat , l.Lon , er.Type , er.OpenDate , er.CloseDate , er.Space , er.RegOption , en.NetworkID, e2.PkID\r\n\t\t\t\t\t\tLIMIT 1");
    $rsvp_opts = mysql_result($result, 0, "RSVPOpts") != '' ? explode('|', mysql_result($result, 0, "RSVPOpts")) : array_fill(0, 5, NULL);
    if (!hasRows($result) || mysql_result($result, 0, 0) <= 0 || strtotime(mysql_result($result, 0, "StartDate")) < strtotime(SYSDATE) && $hc_cfg[11] == 0) {
        go_home();
    }
    event_add_session_view($eID);
    if (mysql_result($result, 0, 6) == 0) {
        $time = mysql_result($result, 0, 4) != '' ? stampToDate(mysql_result($result, 0, 4), $hc_cfg[23]) : '';
        $time .= mysql_result($result, 0, 5) != '' ? ' - ' . stampToDate(mysql_result($result, 0, 5), $hc_cfg[23]) : '';
        $stamp = date("Y-m-d\\Th:i:00", strtotime(mysql_result($result, 0, 3) . trim(' ' . mysql_result($result, 0, 4)))) . HCTZ;
    } else {
        $time = mysql_result($result, 0, 6) == 1 ? $hc_lang_event['AllDay'] : $hc_lang_event['TimeTBA'];
        $stamp = date("Y-m-d", strtotime(mysql_result($result, 0, 3)));
    }
    $eBrite = mysql_result($result, 0, "NetworkID") != '' ? '<iframe src="http://www.eventbrite.com/tickets-external?eid=' . mysql_result($result, 0, "NetworkID") . '" class="eventbrite"></iframe>' : '';
    $event = array('EventID' => mysql_result($result, 0, "PkID"), 'Title' => mysql_result($result, 0, "Title"), 'Description' => mysql_result($result, 0, "Description") . $eBrite, 'Date' => stampToDate(mysql_result($result, 0, "StartDate"), $hc_cfg[14]), 'Time' => $time, 'Timestamp' => $stamp, 'Contact' => mysql_result($result, 0, "ContactName"), 'Contact_Email' => mysql_result($result, 0, "ContactEmail"), 'Contact_URL' => mysql_result($result, 0, "ContactURL") != 'http://' ? mysql_result($result, 0, "ContactURL") : NULL, 'Contact_Phone' => mysql_result($result, 0, "ContactPhone"), 'RSVP' => mysql_result($result, 0, "Type"), 'RSVP_Spaces' => $rsvp_opts[2] > 0 ? $rsvp_opts[2] : event_lang('Unlimited'), 'RSVP_Taken' => $rsvp_opts[4], 'RSVP_Active' => strtotime(SYSDATE) >= strtotime($rsvp_opts[0]) && strtotime(SYSDATE) <= strtotime($rsvp_opts[1]) ? 1 : 0, 'RSVP_Open' => $rsvp_opts[0], 'RSVP_Close' => strtotime($rsvp_opts[1]) > strtotime(mysql_result($result, 0, "StartDate")) ? mysql_result($result, 0, "StartDate") : $rsvp_opts[1], 'RSVP_Type' => $rsvp_opts[3], 'VenueID' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "LocID") : 0, 'Venue_Name' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "Name") : mysql_result($result, 0, "LocationName"), 'Venue_Address' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "Address") : mysql_result($result, 0, "LocationAddress"), 'Venue_Address2' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "Address2") : mysql_result($result, 0, "LocationAddress2"), 'Venue_City' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "City") : mysql_result($result, 0, "LocationCity"), 'Venue_Region' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "State") : mysql_result($result, 0, "LocationState"), 'Venue_Postal' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "Zip") : mysql_result($result, 0, "LocationZip"), 'Venue_Country' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "Country") : mysql_result($result, 0, "LocCountry"), 'Venue_Email' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "Email") : NULL, 'Venue_URL' => mysql_result($result, 0, "LocID") > 0 && mysql_result($result, 0, "URL") != 'http://' ? mysql_result($result, 0, "URL") : NULL, 'Venue_Phone' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "Phone") : NULL, 'Venue_Lat' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "Lat") : NULL, 'Venue_Lon' => mysql_result($result, 0, "LocID") > 0 ? mysql_result($result, 0, "Lon") : NULL, 'SeriesID' => mysql_result($result, 0, "SeriesID"), 'Cost' => mysql_result($result, 0, "Cost"), 'Bitly' => mysql_result($result, 0, "ShortURL"), 'CommentsURL' => mysql_result($result, 0, "SeriesID") != '' ? CalRoot . '/index.php?com=series&sID=' . mysql_result($result, 0, "SeriesID") : CalRoot . '/index.php?eID=' . $eID, 'CommentsID' => mysql_result($result, 0, "SeriesID") != '' ? mysql_result($result, 0, "SeriesID") : $eID, 'DateRaw' => mysql_result($result, 0, "StartDate"), 'LastMod' => mysql_result($result, 0, "LastMod"), 'Image' => mysql_result($result, 0, "Image"), 'Featured' => mysql_result($result, 0, "IsFeature"));
    $title = cOut(mysql_result($result, 0, "Title"));
    $desc = cOut(mysql_result($result, 0, "Description"));
    $limit = mysql_result($result, 0, "HideDays") > 0 ? cOut(mysql_result($result, 0, "HideDays")) : $hc_cfg[134];
    $expire = $limit > 0 ? date("r", strtotime(mysql_result($result, 0, "StartDate")) + $limit * 86400) : '';
    $last_mod = date("r", strtotime(mysql_result($result, 0, "LastMod")));
    return array_map('cOut', $event);
}