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 | |
| @* 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
| <script src="jquery.ketchup.all.min.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <div id="email"> | |
| <span>Enter your email to sign up</span> | |
| <form action="/subscribe.php" id="invite" method="POST"> |
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
| /* | |
| * Code/Mandrill.cs | |
| * These are calls to the Mandrill email service. | |
| * Reference: https://mandrillapp.com/api/docs/ | |
| * | |
| * ajh 2012-08-09: new | |
| */ | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Google Maps API and Driving Directions</title> | |
| <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script> | |
| <script type="text/javascript"> | |
| function initialize() { | |
| var myLatlng = new google.maps.LatLng(39.928294, -105.147710); | |
| var mapOptions = { | |
| zoom: 15, |
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.Web; | |
| using System.Web.Services; | |
| using System.Collections; | |
| using System.Web.Services.Protocols; | |
| using umbraco.cms.businesslogic; | |
| using umbraco.cms.businesslogic.web; | |
| using umbraco.BusinessLogic; | |
| using System.Xml.Serialization; | |
| using umbraco.cms.businesslogic.property; |
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
| <div id="banner"> | |
| <div class="wrap-center"> | |
| <div class="banner-centered" id="banner-text"> | |
| <h2>Hello <strong>We Are Company-Name</strong>, Glad To See You. :-)</h2> | |
| </div> | |
| </div> | |
| </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
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
| <title>Sample2</title> | |
| <script language="JavaScript" type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.js"></script> | |
| </head> | |
| <body> | |
| <div> | |
| <p>Make sure you've got the dev console open or you won't see my messages.</p> | |
| <button id="positionButton">Get position</button> |
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 = null; | |
| Response.ContentType = "text/xml"; | |
| }<xml version="1.0" encoding="UTF-8"> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <url> | |
| <loc>http://www.example.com/</loc> | |
| <lastmod>2005-01-01</lastmod> | |
| <changefreq>monthly</changefreq> |
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
| @model Epiphany.Web.Models.PagerViewModel | |
| @{ | |
| var showPages = 5; | |
| var maxPage = (int) Math.Ceiling((decimal) Model.Total/Model.PageSize); | |
| } | |
| @*[[ PAGER PAGE:@Model.Page PAGESIZE:@Model.PageSize TOTAL:@Model.Total MAXPAGE:@maxPage ]]*@ | |
| <div class="pagination"> |
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
| @helper RenderLink(string href, string title, string target, string text) | |
| { | |
| <a href="@(href)" title="@(title)" target="@(target)">@(text)</a> | |
| } |
OlderNewer