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
@each $breakpoint in map-keys($grid-breakpoints) { | |
@include media-breakpoint-up($breakpoint) { | |
$infix: breakpoint-infix($breakpoint, $grid-breakpoints); | |
@each $prop, $abbrev in (width: w, height: h) { | |
@each $size, $length in $sizes { | |
.#{$abbrev}#{$infix}-#{$size} { #{$prop}: $length !important; } | |
} | |
} | |
} |
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> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/> | |
<title>Down for maintenance</title> | |
<style type="text/css"> | |
body { background:#fbfbfb; font-family:arial;} | |
h1, p { text-align:center; } |
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
// In \Umbraco\Js\umbraco.controllers.js find this code (line 5429-5432 in version 7.1.3): | |
else if (rule.selector[0] == "#") { | |
r.inline = "span"; | |
r.attributes = { id: rule.selector.substring(1) }; | |
} | |
// directly after, add this: | |
else if (rule.selector.indexOf("p.") == 0) { | |
r.classes = rule.selector.substring(2); | |
r.block = 'p'; |
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
// | |
// IMPORTANT, as of ver. 7.2.4 there's a max size in the RTE which you can set to zeo. That will disable the auto resize, so you don't need the code below | |
// | |
// In \Umbraco\Js\umbraco.services.js uncomment this (line 5218-5233 in version 7.1.3): |
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
protected string MD5CheckSum(IDictionary<string, string> inputFields, string md5secret) | |
{ | |
string[] keys = { "protocol", "msgtype", "merchant", "language", "ordernumber", "amount", "currency", "continueurl", "cancelurl", "callbackurl" }; | |
string values = ""; | |
foreach (string key in keys) | |
if (inputFields.Any(s => s.Key == key)) | |
values += inputFields[key]; | |
return GetMd5Hash(values + md5secret); | |
} |
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 (SqlConnection cn = new SqlConnection("***connection string***")) { | |
cn.Open(); | |
SqlCommand cmd = new SqlCommand("SELECT id, contentNodeId, dataInt, dataNtext FROM cmsPropertyData WHERE (propertytypeid = ***id***) AND (dataNtext IS NOT NULL) ORDER BY contentNodeId", cn); | |
SqlDataReader dr = cmd.ExecuteReader(); | |
while (dr.Read()) { | |
int dataInt; | |
int nodeId; | |
if (int.TryParse(dr["id"].ToString(), out nodeId) && int.TryParse(dr["dataNtext"].ToString(), out dataInt)) { |