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 class CustomLocalFileImageService : LocalFileImageService | |
{ | |
/// <summary> | |
/// Gets the image using the given identifier. | |
/// </summary> | |
/// <param name="id"> | |
/// The value identifying the image to fetch. | |
/// </param> | |
/// <returns> | |
/// The <see cref="System.Byte"/> array containing the image data. |
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.Security.Cryptography; | |
using System.Text; | |
namespace My.Library | |
{ | |
public class GravatarHelper | |
{ | |
public static string GetGravatarImage(string email) | |
{ | |
string hash = HashEmailForGravatar(email); |
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
<umbraco:Item runat="server" field="profileImage" recursive="true" xslt="concat('<img src="', umbraco.library:GetMedia({0}, 'true')/umbracoFile, '" alt="Carsten Oldengaard" class="photo_frame" />')" xsltDisableEscaping="true" /> | |
<umbraco:Item runat="server" field="profileImage" recursive="true" xslt="concat('<img src="', '/ImageGen.ashx?altImage=/gfx/no_image.gif&transparent=false&bgcolor=ffffff&Image=', umbraco.library:GetMedia({0}, 'true')/umbracoFile, '&Width=126', '" alt="Carsten Oldengaard" class="photo_frame" />')" xsltDisableEscaping="true" /> | |
<umbraco:Item runat="server" field="profileImage" xslt="concat('<img src="/ImageGen.ashx?image=', umbraco.library:GetMedia({0}, 'true')/umbracoFile, '&amp;width=126&amp;constrain=true" class="photo_frame" />')" xsltDisableEscaping="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
<div ng-controller="Oerskov.ListView.GridMembersLayoutController as vm"> | |
<ul class="members-grid thumbnails"> | |
<li ng-repeat="item in items"> | |
<div class="member thumbnail" ng-class="{' -selected': item.selected}" ng-click="toggleItem(item)"> | |
<img src="{{item.thumbnail}}" alt="" draggable="false" /> | |
<i ng-if="item.selected" class="icon-check umb-content-grid__checkmark"></i> | |
<a href ng-click="gotoItem(item)" class="member-name">{{item.name}}</a> | |
<small>{{item.email}}</small> | |
</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
@using Umbraco.Web.PublishedCache; | |
@inherits Umbraco.Web.Macros.PartialViewMacroPage | |
@{ | |
var member = (MemberPublishedContent)Umbraco.TypedMember(Model.MacroParameters["key"]); | |
if (member != null) | |
{ | |
var guid = member.GetKey(); | |
<i class="icon icon-user"></i> <a href="/umbraco/#/member/member/edit/@guid" title="Rediger medlem">@member.Name</a> | |
} | |
} |
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
angular.module('umbraco.filters').filter('camelCase', function () { | |
var camelCaseFilter = function (input) { | |
// remove all characters that should not be in a variable name | |
// as well underscores an numbers from the beginning of the string | |
var s = (input||'').replace(/([^a-zA-Z0-9_\- ])|([_\- :,.+]+$)|^[_\-0-9]+/g, "").trim().toLowerCase(); | |
// uppercase letters preceeded by a hyphen, underscore or a space | |
s = s.replace(/([ -_]+)([a-zA-Z0-9])/g, function (a, b, c) { | |
return c.toUpperCase(); | |
}); | |
// uppercase letters following numbers |
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 Archetype.PropertyConverters; | |
@using Archetype.Models; | |
@using Archetype.Extensions; | |
@{ | |
Layout = "Master.cshtml"; | |
} | |
@foreach (var fieldset in Model.Content.GetPropertyValue<ArchetypeModel>("archetype")) | |
{ |