This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using Telerik.Sitefinity.Scheduling; | |
using System.Web.Configuration; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Web.Script.Serialization; | |
using Aptera.Sitefinity.Data.DynamicModules; | |
using System.Collections.Generic; | |
using Telerik.Sitefinity.Abstractions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@model SitefinityWebApp.Mvc.Models.HubSpotPostsModel | |
<div class="sf_cols posts"> | |
@{int column = 1;} | |
@foreach (var item in Model.Posts) | |
{ | |
string colOut = "sf_3cols_" + column + "_3" + ((column == 2) ? "4" : "3"); | |
string colIn = "sf_3cols_" + column + "in_3" + ((column == 2) ? "4" : "3"); | |
<div class="sf_colsOut @colOut"> | |
<div class="sf_colsIn @colIn"> | |
<section class="post"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Threading; | |
using System.Web.UI; | |
using Telerik.Sitefinity; | |
using Telerik.Sitefinity.Abstractions; | |
using Telerik.Sitefinity.Libraries.Model; | |
using Telerik.Sitefinity.Modules.GenericContent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static ResourceManager resources = ResourceManager.GetManager(); | |
public static string GetLabelOrMessage(string labelGroup, string key) | |
{ | |
var item = resources.GetResourceOrEmpty(Thread.CurrentThread.CurrentCulture, labelGroup, key); | |
if (!item.Value.IsNullOrEmpty()) | |
{ | |
return item.Value; | |
} | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@ Control Language="C#" %> | |
<%@ Import Namespace="Telerik.Sitefinity.Web.UI.NavigationControls.Extensions.LightNavigationControlTemplate" %> | |
<%@ Import Namespace="Telerik.Sitefinity.Web.UI.NavigationControls" %> | |
<%@ Register Assembly="Telerik.Sitefinity" TagPrefix="navigation" Namespace="Telerik.Sitefinity.Web.UI.NavigationControls" %> | |
<%@ Register Assembly="Telerik.Sitefinity" TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" %> | |
<%@ Register Assembly="Tenet.Sitefinity" TagPrefix="custom" Namespace="Tenet.Sitefinity.Widgets.Overrides" %> | |
<sf:ResourceLinks id="resLinks" runat="server" UseEmbeddedThemes="true" Theme="Basic"> | |
<sf:ResourceFile Name="Telerik.Sitefinity.Resources.Themes.Basic.Styles.nav.widget.css" Static="true" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string GetCurrentProvider(string moduleName) | |
{ | |
var multisiteContext = SystemManager.CurrentContext as MultisiteContext; | |
return multisiteContext.CurrentSite.GetProviders(moduleName).Select(p => p.ProviderName).FirstOrDefault(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension String { | |
func Contains(find: String) -> Bool{ | |
return self.rangeOfString(find) != nil | |
} | |
} | |
extension Int{ | |
func IsMultipleOf(divisableBy: Int) -> Bool{ | |
return self % divisableBy == 0 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn.delayedAction = function (options) { | |
var settings = $.extend( | |
{}, | |
{ | |
delayedAction: function () { }, | |
canceledAction: function () { }, | |
hoverTime: 1000 | |
}, | |
options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var directionsService = new google.maps.DirectionsService(); | |
var geocoder = new google.maps.Geocoder(); | |
var infoWindow = new google.maps.InfoWindow(); | |
var map, userLoc, directionsDisplay, locationRequest; | |
$(document).ready(function () { | |
LoadMap(); | |
GetUsersLocation(); | |
locationRequest = getQueryString()["location"]; | |
$(window).scroll(moveMap); |