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); |
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.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 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 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 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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetDocsByTag.aspx.cs" Inherits="SitefinityWebApp.Sitefinity.GetDocsByTag" %> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> |
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.Linq; | |
using System.Web; | |
using Telerik.Sitefinity.Abstractions; | |
using Telerik.Sitefinity.Multisite; | |
using Telerik.Sitefinity.Services; | |
using Telerik.Sitefinity.Utilities.TypeConverters; | |
namespace SitefinityWebApp.Helpers |
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.Linq; | |
using System.Web; | |
using Telerik.Sitefinity.Configuration; | |
using Telerik.Sitefinity.Modules.Pages.Configuration; | |
namespace SitefinityWebApp.Helpers | |
{ | |
public static class ToolboxConfigHelper |