Skip to content

Instantly share code, notes, and snippets.

View bryanmonzon's full-sized avatar
🧇

Bryan Monzon bryanmonzon

🧇
View GitHub Profile
<script type="text/javascript">
jQuery(window).scroll(function() {
jQuery('#object').each(function(){
var imagePos = $(this).offset().top;
var topOfWindow = $(window).scrollTop();
if (imagePos < topOfWindow+400) {
$(this).addClass("slideUp");
}
@bryanmonzon
bryanmonzon / home.php
Created June 16, 2014 21:09
panel markup
<section id="help" class="bg-gray">
<div class="container">
<h5>How you can help</h5>
<h2 class="sub-title">Make a difference in your community and your world.</h2>
<div class="panel large">
<div class="span8 bg-cover" style="background: url(<?php buildon_image_path(); ?>home/help-build.jpg);"></div>
<div class="span4 content">
<img class="icon" src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/content/home/icon-map.png" alt="">
<h4>Build a Community</h4>
<p>Use your creativity and passion to raise awareness of the U.S. education crisis and fundraise to help end it.</p>
#Step 1: commit any of your current changes on the branch you're working on.
#Step 2: Create a branch locally
git checkout -b bm-cookies
#Step 3: You'll be on the bm-cookies branch now. You'll want to pull from pagoda
git pull pagoda bm-cookies
#Step 4: Checkout back to your working branch
git checkout [[NAME OF YOUR BRANCH HERE - NO BRACKETS]]
@bryanmonzon
bryanmonzon / social-opengraph.php
Created May 14, 2014 22:49
There are a couple of extra functions in here but this should do the trick.
function gmc_facebook_twitter_social_meta()
{
global $post;
$default_profile_image = 'http://www.globalmomschallenge.org/wp-content/uploads/2014/03/opengraph-default.jpg';
if( is_single() ){
$title = get_the_title( $post->ID );
$url = get_permalink( $post->ID );
@bryanmonzon
bryanmonzon / header.php
Created May 2, 2014 21:56
Namati Header
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php wp_title( '-', true, 'right' ); ?></title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,600,700,800' rel='stylesheet' type='text/css'>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
@bryanmonzon
bryanmonzon / redirects.php
Last active August 29, 2015 14:00
I need to redirect people from a page if they're logged in. I'm not sure if hooking into 'wp' is the best way.
function nam_redirects()
{
if( is_page('register')) {
if( is_user_logged_in() ) {
wp_safe_redirect( '/network' );
}
}
}
@bryanmonzon
bryanmonzon / single-dntly_campaigns.php
Created April 16, 2014 16:22
Conditional for Specific campaign ID
<?php
if( get_the_ID() === 9106 ) :
//Specific Sponsor a Mile campaign
else :
//Everything else here
@bryanmonzon
bryanmonzon / icons.css
Last active August 29, 2015 13:59
Fifty Framework Current Icons
.icon-upload
.icon-lightning
.icon-group
.icon-info
.icon-chain
.icon-heart
.icon-notepad
.icon-file
.icon-pencil
.icon-message
@bryanmonzon
bryanmonzon / plugin-class.php
Created March 31, 2014 22:46
Plugin Starter Class
<?php
/**
* Plugin Name: Fifty Framework FAQs
* Plugin URI: http://fiftyandfifty.org
* Description: Build FAQs pages for your site
* Version: 1.0
* Author: Fifty and Fifty
* Author URI: http://labs.fiftyandfifty.org
*/
@bryanmonzon
bryanmonzon / style.css
Created March 25, 2014 20:01
Theme Setup
/*
Theme Name: Natural High
Theme URI: http://naturalhigh.gopagoda.com
Author: 5ifty&5ifty
Author URI: fiftyandfifty.org
Description: Developed on Wordpress.
Version: 1.0
*/