http://www.pixelz.com/blog/marketplace-image-guidelines/ http://www.shopify.co.uk/blog/12206313-the-ultimate-diy-guide-to-beautiful-product-photography
http://www.practicalecommerce.com/articles/3889-How-to-Take-Gorgeous-Product-Photos
before_filter :validate_user | |
def validate_user | |
redirect_to home_path unless current_user and current_user.id == params[:id] | |
end |
jQuery(document).ready(function($) { | |
items = $('#menu-main-menu-1 li'); | |
$.each(items, function() { | |
parent = $(this); | |
target = $(parent).find('.sub-menu-item-image'); | |
image = $(parent).find('img'); | |
src = $(image).prop('src'); | |
$(target).html("<img class='menu-image' src='" + src + "' alt='menu image'>"); | |
$(image).hide(); | |
}); |
$(function() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |
<div class="medium-3 columns"> | |
<h4 id="accordion">Accordion</h4> | |
<dl class="accordion" data-accordion> | |
<dd> | |
<a href="#panel1">Section 1</a> | |
<div id="panel1" class="content active"> | |
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sunt placeat recusandae, quos quis dicta quod.</p> | |
</div> | |
</dd> | |
<dd> |
.online-course-icon { | |
display: block; | |
float: right; | |
height: 20px; | |
width: 20px; | |
background: url("/wp-content/themes/InfiniteFoundation/assets/img/online.png") no-repeat; | |
} |
- if @template.blank? | |
%section.content.interior | |
.row | |
.medium-10.columns.medium-offset-1 | |
- @benefits.each do |benefit| | |
.benefits-heading.medium-12 | |
.inner | |
.outer | |
.inner.benefit-inner | |
= benefit.title |
<?php | |
/* Template Name: Gallery */ | |
get_header(); ?> | |
<main role="main"> | |
<section class="hero gallery-hero"> | |
<div class="menus-headline"> | |
<h1>Gallery</h1> | |
</div> |
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) { | |
} |
<?php | |
/** | |
* Check to see if the visitor is coming from the mobile site link | |
* | |
*/ | |
$token = isset($_GET['token']) ? $_GET['token'] : null; | |
/** | |
* If they are coming from the mobile site, set a cookie that expires in 1 hour |