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.Globalization | |
@using System.ServiceModel.Syndication | |
@using System.Text | |
@using System.Xml | |
@using HtmlAgilityPack | |
@{ | |
var feedUrl = string.Format("http://myepisodes.com/rss.php?feed={0}&uid={1}&pwdmd5={2}", Request["feed"], Request["uid"], Request["pwdmd5"]); | |
var reader = XmlReader.Create(feedUrl); | |
var feed = SyndicationFeed.Load(reader); | |
if (feed == null) |
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.Mvc; | |
using Umbraco.Cms.Web.Model.BackOffice.Editors; | |
using Umbraco.Framework; | |
using Umbraco.Framework.Context; | |
using Umbraco.Framework.Persistence.Model; | |
using Umbraco.Framework.Persistence.Model.Attribution.MetaData; | |
using Umbraco.Framework.Persistence.Model.Constants; |
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
<Project ToolsVersion="4.0" DefaultTargets="Transform" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<UsingTask TaskName="TransformXml" AssemblyFile="Tools\Microsoft.Web.Publishing.Tasks.dll"/> | |
<PropertyGroup> | |
<SitePath>$(MSBuildProjectDirectory)\..\..\Website</SitePath> | |
<WebConfigTransformFile>Web.Transform.config</WebConfigTransformFile> | |
<OutputFolder>$(MSBuildProjectDirectory)\..\Transformed</OutputFolder> | |
<StackTraceEnabled>False</StackTraceEnabled> |
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
@{ | |
if (Model.useDocCheck && MindBus.Extensions.DocCheck.IsLoggedIn() == false) | |
{ | |
@Model.IntroText | |
@DocCheck.RenderDocCheck(Model.AncestorOrSelf(1).DocCheckUrl) | |
return; | |
} | |
if (Model.HasValue("hideForm") && Model.hideForm == 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
UmbClientMgr.mainTree().syncTree(nodePath, true); | |
var id = nodePath.split(',').reverse()[0]; | |
setTimeout(function() { | |
jQuery('li#' + id, top.document).trigger('click'); | |
},500); |
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 class MyEventHandler : ApplicationStartupHandler | |
{ | |
public MyEventHandler() | |
{ | |
Document.BeforePublish += new Document.PublishEventHandler(evt); | |
} | |
void evt(Document sender, PublishEventArgs e) | |
{ | |
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
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="7zip" /> | |
<package id="notepadplusplus" /> | |
<package id="vlc" /> | |
<package id="fiddler" /> | |
<package id="skype" /> | |
<package id="lockhunter" /> | |
<package id="tortoisehg" /> | |
<package id="gitextensions" /> |
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 m = Member.GetMemberFromLoginNameAndPassword(tb_email.Text, tb_password.Text); | |
if (m != null) | |
{ | |
Member.AddMemberToCache(m); | |
} |
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
@if (post.HasValue("mediaFolder")) | |
{ | |
var media = library.MediaById(post.mediaFolder); | |
foreach (var item in media.Children()) | |
{ | |
<li> | |
<a href="@item.umbracoFile"> | |
<img style="width: 100px; height: 100px;" src="@item.umbracoFile" /> | |
</a> | |
</li> |
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
//StartupEventHandler.cs | |
using System.Linq; | |
using System.Web.Http; | |
using System.Web.Routing; | |
using Umbraco.Core; | |
using Umbraco.Web; | |
namespace Training.Site.EventHandlers | |
{ |