Skip to content

Instantly share code, notes, and snippets.

@elchingon
Created January 28, 2017 00:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elchingon/6d05605b8905c46e916d77970ef70876 to your computer and use it in GitHub Desktop.
Save elchingon/6d05605b8905c46e916d77970ef70876 to your computer and use it in GitHub Desktop.
Adding Events to Site
---------------------
There are 4 different viewTypes that pass events or coupons based on adId or organizationId.
{ viewType: eventsForAd, adId: 360APIAdId, limit: LIMIT} -- limit is optional
{ viewType: couponsForAd, adId: 360APIAdId }
{ viewType: couponsSmallForAd, adId: 360APIAdId }
{ viewType: eventsForOrganization, organizationId: 360DurangoAPIOrganizationId }
{ viewType: adsForOrganization, organizationId: 360DurangoAPIOrganizationId }
{ viewType: couponsForOrganization, organizationId: 360DurangoAPIOrganizationId }
Adding Script to Html based on version. Be sure to match the id of the div with the fullcircle declaration..
<script type="text/javascript">// <![CDATA[ $.noConflict(); // ]]></script>
<script src="http://static.fullcircle.eckmedia.com/0.2.7/js/full_circle_all.js"></script>
<link rel="stylesheet" href="http://static.fullcircle.eckmedia.com/0.2.7/css/full_circle.css" >
<div id="org-event-list"></div>
<p><script> jQuery( function($){$("#org-event-list").fullcircle({viewType: "eventsForAd", adId: 89540});}); </script> </p>
<script type="text/javascript">// <![CDATA[ $.noConflict(); // ]]&gt;</script><br>
<script src="http://static.fullcircle.eckmedia.com/0.2.6/js/full_circle_all.js"></script>
<link rel="stylesheet" href="http://static.fullcircle.eckmedia.com/0.2.6/css/full_circle.css">
<div id="org-event-list"></div>
<p><script> jQuery( function($){$("#org-event-list").fullcircle({viewType: "eventsForOrganization", organizationId: 66});}); </script> </p>
Customizing CSS
.event .event-text-wrapper {
text-align: left;
font-size: 1.2em !important;
}
.event .event-description {
margin-top:1em;
}
#org-event-list .event-title, #event-list .event-title {
font-size: 1.8em !important;
line-height:1.6em !important;
}
Adding default image if no image script hack
<script type="text/javascript">// <![CDATA
setTimeout(function() {
$(".event-image").each(function() {
if ($(this).attr("src") ==""){
$(this).attr("src", 'http://www.durangobusiness.org/uploads/3/9/2/7/39274993/1443109167.png');
}
});
}, 2000);
// ]]&gt;
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment