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
(function ($) { | |
'use strict'; | |
function display_posts(feed, slug, element, title, count) { | |
if (element == 'main') { | |
$('main').append( | |
'<section class="row margin-right gutter feed json shortcode">' | |
+ '<div id="' + slug + '" class="column one ' + slug + '">' | |
+ '<h2>' + title + '</h2>' | |
+ '</div>' |
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
(function($){ | |
function display_posts( data ) { | |
var results = data; | |
var i = 0; | |
$.each( results, function( index, value ) { | |
if(index<3){ | |
console.log( value ); // Use this to see what object properties are available, like date, content, etc... | |
var html = ''; | |
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
$(document).ready(function(){ | |
function equalizing() { | |
if( $('.equalize').length ) { | |
$('.row.equalize .column').css('min-height',''); | |
$('.row.equalize').each(function(){ | |
var tallestBox = 0; | |
$('.column', this).each(function(){ | |
if($(this).height() > tallestBox) { | |
tallestBox = $(this).outerHeight(); |
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
/** | |
* Repeatable Custom Fields in a Metabox | |
* Author: Helen Hou-Sandi | |
* Mucker: Nate Jacobson | |
* | |
* Note that this particular metadata is saved as one multidimensional array (serialized) | |
*/ | |
function get_column_options() { | |
$column_options = array ( |
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 $spine_color = get_option( 'spine_theme_options' ); echo $spine_color['grid_style']; ?> |
NewerOlder