This file contains hidden or 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 SitefinityWebApp.Mvc.Models; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Linq; | |
| using System.Web; | |
| using Telerik.Sitefinity.Data.Metadata; | |
| using Telerik.Sitefinity.Frontend.Forms; | |
| using Telerik.Sitefinity.Frontend.Forms.Mvc.Controllers.Base; | |
| using Telerik.Sitefinity.Model; |
This file contains hidden or 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 %> | |
| <%@ Register Assembly="Telerik.Sitefinity" TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" %> | |
| <div class="sfFormDropdown stateDropDown"> | |
| <asp:Label runat="server" ID="titleLabel" CssClass="sfTxtLbl" Text="title label" AssociatedControlID="DropDownList" /> | |
| <span class="sfFieldWrp sfDropdownList"> | |
| <asp:DropDownList runat="server" ID="DropDownList"></asp:DropDownList> | |
| <sf:SitefinityLabel runat="server" ID="descriptionLabel" WrapperTagName="div" CssClass="sfDescription"/> | |
| <sf:SitefinityLabel runat="server" ID="exampleLabel" WrapperTagName="div" CssClass="sfExample"/> | |
| </span> |
This file contains hidden or 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.Linq; | |
| using System.Web; | |
| using System.Web.UI; | |
| using System.Web.UI.WebControls; | |
| using Telerik.Sitefinity.GenericContent.Model; | |
| using Telerik.Sitefinity.Modules.Pages; | |
| using Telerik.Sitefinity.Pages.Model; | |
| using Telerik.Sitefinity.Model; |
This file contains hidden or 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); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.ComponentModel; | |
| using System.Linq; | |
| using System.Web.Mvc; | |
| using Telerik.Sitefinity.Mvc; | |
| using SitefinityWebApp.Mvc.Models; | |
| using Telerik.Sitefinity.Multisite; | |
| using Telerik.Sitefinity.Modules.Libraries; | |
| using Telerik.Sitefinity.Libraries.Model; | |
| using Telerik.Sitefinity.Services; |
This file contains hidden or 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 hidden or 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 |