Skip to content

Instantly share code, notes, and snippets.

<?php get_header(); ?>
<!--Slider area start here-->
<section class="slider-area">
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="headingOne">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
@jerrylee
jerrylee / gist:cd94bfb2621e4044b67e4eefe3db5ecc
Created September 14, 2018 17:15 — forked from adamrosloniec/gist:a3995cc3aec2537d7ee4
wordpress acf bootstrap carousel - simple example
// bootstrap carousel build with wordpress acf - simple method
// with add class 'active' to first div - MUST BE!
// also you must add css:
// .item {display:none;}
// .item.active {display:block;}
// first method
<ul id="carousel" class="slider carousel" data-ride="carousel" data-interval="<?php if ( get_field('slider__speed','option') ) { the_field('slider__speed','option'); } else { echo '4000'; } ?>"><!-- add sub_field to change slide time --!>
<?php if ( have_rows('slider__item','option') ) : ?> <!-- take slides from Options Page > slider__item -->
$('.explore-unit').click(function(){
if($(this).hasClass('hide-it')){
$('#side_wrapper').animate({
left:"-500px",
top:"-500px"
});
$(this).removeClass('hide-it');
} else {
$('#side_wrapper').animate({
left:"0",
@jerrylee
jerrylee / wp-query-ref.php
Created June 28, 2017 17:16 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(
@jerrylee
jerrylee / 01-gulpfile.js
Created June 9, 2017 12:36 — forked from markgoodyear/01-gulpfile.js
Comparison between gulp and Grunt. See http://markgoodyear.com/2014/01/getting-started-with-gulp/ for a write-up.
/*!
* gulp
* $ npm install gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev
*/
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
cssnano = require('gulp-cssnano'),
@jerrylee
jerrylee / gist:965c9ecb6f1a26ffca8e
Created November 19, 2015 22:49
Form functionality
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
@jerrylee
jerrylee / .gitignore
Last active August 29, 2015 14:26 — forked from jjeaton/.gitignore
WordPress root .gitignore. Ignore everything and then opt-in (exclude from the ignore) for your custom code.
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@jerrylee
jerrylee / Map Search List Results
Created May 4, 2015 13:54
List Results Code from Google Maps.
Javascript code:
MapsLib.prototype.displayList = function(json) {
var self = this;
var data = json['rows'];
var template = '';
var results = $('#results_list');
results.hide().empty(); //hide the existing list and empty it out first
@jerrylee
jerrylee / Tab Tool
Created February 20, 2015 19:33
Tab Tool
<?php
/*
Easy to use Tabs maker for Bootsrap 3
*/
$tabone = $_POST['tabone'];
$tabtwo = $_POST['tabtwo'];
$tabthree = $_POST['tabthree'];
$tabfour = $_POST['tabfour'];
$tabcontentone = $_POST['tabcontentone'];