Skip to content

Instantly share code, notes, and snippets.

@ajtroxell
ajtroxell / latest.cshtml
Created March 4, 2014 16:26
RazorScript for "x" amount of items from Form and List
@using System.Data;
@using DotNetNuke.Entities.Modules;
@using DotNetNuke.Entities.Portals;
@using DotNetNuke.Modules.UserDefinedTable;
@using DotNetNuke.Entities.Users;
@{
var mc = new ModuleController();
var tc = new DotNetNuke.Entities.Tabs.TabController();
int portalId = PortalController.GetCurrentPortalSettings().PortalId;
@ajtroxell
ajtroxell / contact.html
Last active October 12, 2024 16:44
Build a simple PHP, jQuery, and AJAX Powered Contact Form, from: http://ajtroxell.com/build-a-simple-php-jquery-and-ajax-powered-contact-form/
<form id="contact" name="contact" method="post">
<fieldset>
<label for="name" id="name">Name<span class="required">*</span></label>
<input type="text" name="name" id="name" size="30" value="" required/>
<label for="email" id="email">Email<span class="required">*</span></label>
<input type="text" name="email" id="email" size="30" value="" required/>
<label for="phone" id="phone">Phone</label>
<input type="text" name="phone" id="phone" size="30" value="" />
<div class="nav">
<div class="mobile-nav">Navigation</div>
<ul class="primary">
<li><a href="#link">Link</a></li>
<li><a class="has-drop">Link w/ Children <span></span></a>
<ul class="drop">
<li><a href="#link">Link</a></li>
<li><a href="#link">Link</a></li>
<li><a href="#link">Link</a></li>
<li><a href="#link">Link</a></li>
.font-size(@font-size: 16){
@pxFontValue: (@font-size / 10);
@pxLineValue: (@font-size / 10 * 1.5);
font-size: @font-size * 1px;
line-height: @font-size * 1.5 * 1px;
font-size: ~"@{pxFontValue}rem";
line-height: ~"@{pxLineValue}rem";
}
<IfModule mod_deflate.c>
# Insert filters
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
.author-list ul{
list-style: none;
width: 100%;
margin: 0;
padding: 0;
}
.author-list li {
margin: 0 15px 10px 0;
list-style: none;
height: 90px;
<?php echo gangmei_get_the_post_thumbnail_url($post->ID, 'large'); ?>
.pin {margin:0 0 15px 0;}
.pin_pop {background-color: #8CB13E; height: 110%; width: 100%; top: -10px; left: 0px; position: absolute; color:#fff;z-index:999;}