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
curl --request GET \ | |
--url 'https://<serverlocation>.api.mailchimp.com/3.0/lists/<listID>/interest-categories/<groupID>/interests' \ | |
--user 'anystring:<apikey>' |
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 umbraco.cms.businesslogic.web | |
@* From https://gist.github.com/joeriks/877600 | |
A Razor script to add a basic comment function to Umbraco pages | |
You need a document type called Comment with a textstring property | |
called commentName and a textbox multiple property called commentMessage | |
You also need to allow the Comment document type as child document type | |
to your textpage document type. | |
Create this script with a macro and add it below the bodyText in your | |
template(s) *@ |
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
<script src="/scripts/dev/min/jquery.cookie-min.js"></script> | |
<img id="liveChat" src="/media/6015/lc-button3.png" | |
style="cursor: pointer; cursor:hand; position: fixed; left: 0; top: 300px; display: none; height: 140px; z-index: 999;" class="nonResponsive mobiHide" onclick="Velaro.Engagement.LoadPopoutChat()"> | |
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
if (getCookie('chat_shown') != 'true') | |
{ | |
var timeout_show_chat = setTimeout('showChat()', 30*1000); |
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 allBlogPosts = Umbraco.TypedContentAtXPath("//blogPost"); | |
} | |
@{ | |
<ul> | |
@foreach (var blogPost in allBlogPosts) | |
{ | |
<li>@blogPost.Name</li> | |
} | |
</ul> |
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
[ | |
{ | |
"label": "Background Color", | |
"description": "Select the background color scheme you want for this row", | |
"key": "class1", | |
"applyTo": "row", | |
"view": "radiobuttonlist", | |
"prevalues": [ | |
"none", | |
"light-gray", |
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
$(function(){ | |
var waypoints = $('.slide1').waypoint(function(direction) { | |
//cnsole.log(this); | |
$(this.element).find('div:first').addClass('slideIn'); | |
$(window).scroll(function() { | |
var windowHeight = window.innerHeight; | |
console.log(windowHeight + 'window height') | |
var x = $(this).scrollTop(); | |
console.log(x + 'scroll top'); |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@{ | |
Layout = "Layout.cshtml"; | |
} | |
@helper helperName(string textStringName) { | |
if (!String.IsNullOrEmpty(textStringName)) { | |
<div>@textStringName</div> | |
} | |
} |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using umbraco.cms.businesslogic.Tags | |
@{ | |
@* grab your selection of content line normal *@ | |
@* set the page size and check for the query string "page" *@ | |
var pageSize =10; | |
var page =1;int.TryParse(Request.QueryString["page"],out page); | |
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
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage | |
@using System.Linq; | |
@{ | |
Layout = null; | |
Response.ContentType = "text/xml"; | |
}<?xml version='1.0' encoding='UTF-8' ?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemalocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> | |
@ListChildNodes(Umbraco.TypedContent(UmbracoContext.Current.PageId).AncestorOrSelf(1)) |
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 tags = Umbraco.TagQuery.GetContentByTag(member.Name); | |
var tagList = new List<IPublishedContent>(tags); | |
if(tagList.Any()){ | |
<div class="tagHighlights"> | |
<p>Featured Projects</p> | |
<div class="tags"> | |
@foreach(var tag in tagList) { |