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
<div class="navi-live"> | |
<ol ui-nested-sortable="{ | |
listType: 'ol', | |
items: 'li', | |
doNotClear: true, | |
placeholder: 'ui-state-highlight', | |
forcePlaceholderSize: true, | |
toleranceElement: '> div' | |
}" ui-nested-sortable-stop="update($event, $ui)" class="navi-item-container ui-sortable"><li ya-tree="child in data.children at ol" ng-class="{minimized:child.minimized}" class="navi-item ng-scope" ng-style="getStyle(child)" style="font-weight: bold;"> | |
<div class="nav-item-contents"> |
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
#! /usr/bin/env ruby | |
# usage: | |
# $ das_download.rb email password | |
# based on various gists from this thread https://gist.github.com/maca/1798070 | |
require "mechanize" | |
require "nokogiri" | |
require "fileutils" | |
class DasDownloader |
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
routes: | |
match '*segments' => 'RumaRequest#out' | |
request url: | |
http://rumaengine.dev/ds/dsa/dsa?fds=fds | |
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
<?php | |
namespace Craft; | |
$craft = require '../craft/app/bootstrap.php'; | |
$craft->plugins->loadPlugins(); | |
$productIds = craft()->elements->getCriteria('Commerce_Product', ['limit' => null])->ids(); | |
// Configuration |
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
<?php | |
namespace Craft; | |
// This file could be placed into your public_html folder and visited to import a cheese product. | |
$craft = require '../craft/app/bootstrap.php'; | |
$craft->plugins->loadPlugins(); | |
$newProduct = new Commerce_ProductModel(); |
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
{% extends "shop/_layouts/main" %} | |
{% block main %} | |
<div class="row"> | |
<div class="twelve columns"> | |
{% if cart.lineItems|length %} | |
<table class="u-full-width"> | |
<thead> | |
<tr> |
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
server { | |
listen 80; | |
server_name tenina.com direct.tenina.com new.tenina.com; | |
# server_name .tenina.com; | |
root /home/forge/tenina.com/public; | |
rewrite /2013/12/brown-sugar-pavlova-summer-berries/ http://tenina.com/recipes/brown-sugar-pavlova-with-summer-berries permanent; | |
rewrite /2013/12/pomegranate-sangria/ http://tenina.com/recipes/pomegranate-sangria permanent; | |
rewrite /2013/12/tasmanian-salmon-pate/ http://tenina.com/recipes/tasmanian-salmon-pate permanent; | |
rewrite /2013/12/fruit-mince-baklava/ http://tenina.com/recipes/fruit-mince-baklava permanent; |
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
<form method="post"> | |
{% set model = cart.shippingAddress %} | |
<input type="hidden" name="action" value="commerce/cart/updateCart"> | |
<input type="hidden" name="redirect" value="placeyourredirecturlhere"/> | |
{{ getCsrfInput() }} | |
<div class="row"> | |
<div class="six columns"> | |
<label>First Name *</label> | |
<input type="text" id="shippingAddress-firstName" class="u-full-width" name="shippingAddress[firstName]" value="{{ model.firstName ?? "" }}"> |
NewerOlder