Skip to content

Instantly share code, notes, and snippets.

View jonschr's full-sized avatar

Jon Schroeder jonschr

View GitHub Profile
/* ==========================================================================
Color loop
========================================================================== */
$colors: ("black": $black, "dark": $dark, "dark2": $dark2, "gray": $gray, "orange": $orange, "red": $red, "light": $light, "lightred": $lightred, "white": $white);
$dark: ("black": $black, "dark": $dark, "dark2": $dark2, "gray": $gray, "orange": $orange, "red": $red);
@each $name,
$color in $colors {
function genesis_sample_blocks_body_classes( $classes ) {
if ( ! is_singular() || ! function_exists( 'has_blocks' ) || ! function_exists( 'parse_blocks') ) {
return $classes;
}
if ( ! has_blocks() ) {
$classes[] = 'has-no-blocks';
return $classes;
}
<?php
//* Output services before
// add_action( 'before_loop_layout_services_photo', 'rb_services_photo_before' );
function rb_services_photo_before( $args ) {
// wp_enqueue_script( 'SCRIPTHANDLE' );
}
//* Output each services
add_action( 'add_loop_layout_services_photo', 'rb_services_photo_each' );
(function($){
$(document).ready(function(){
$('input[name="input_4"]').on( 'input', function() {
if( $('select[name="input_2"]').val() === 'en_option2' || $('select[name="input_2"]').val() === 'en_option4' ){
$('#name').html( 'When You Support<br><span>' + $(this).val() + '</span><br>You Support' );
}else if( $('select[name="input_2"]').val() === 'es_option2' || $('select[name="input_2"]').val() === 'es_option4' ){
$('#name').html( 'Cuando Apoyas<br><span>' + $(this).val() + '</span><br>Tu Apoyo' );
}else{
$('#name').html( $(this).val() );
/*
Frontend
========================================================================== */
.entry-content > .wp-block-atomic-blocks-ab-container.alignfull {
padding: 10% 5%;
.ab-container-inside {
max-width: 1200px;
}
<?php
/*
Plugin Name: Counter
Plugin URI: https://github.com/jonschr/elodin-counter
GitHub Plugin URI: https://github.com/jonschr/elodin-counter
Description: Just another counter plugin
Version: 0.1
Author: Jon Schroeder
Author URI: http://elod.in
jQuery(document).ready(function( $ ) {
$( window ).on( 'load', staffpageload );
$( '.stafftermlink' ).on( 'click', stafftermclick );
function stafftermclick( e ) {
e.preventDefault();
//* set the clicked link to active
$( '.stafftermlink' ).attr( 'data-status', 'inactive' );
@media( max-width: 600px ) {
p[text-align:"center"],
p.align-center {
text-align: left;
}
}
<?php
add_action( 'mb_relationships_init', function () {
MB_Relationships_API::register( array(
'id' => 'programs_to_updates',
'to' => 'projects',
'from' => 'updates',
) );
100011th,1002univ,100615th,101012th,1010Linc,10119th,101210th,101214th,101215th,1014penn,101511th,1015penn,1018col,101914,102010th,1025-102,102714,10309th,1030smon,1031Port,103314th,103712th,104113th,1041gr,104511th,104512th,104514th,1050sir,105914th,106511th,1065-112,1065-116,1065-122,1065-204,1065-203,1065-219,1065-102,1065-120,1065-110,1065-118,1065-218,1065-220,106813,1075sir,107511th,10779th,108010th,108011th,108013th,1085-11,1085-13,1085-19,1085-3,1085b5,1100Clar,1101penn,1101-110,1111linc,1111Maxw,111412th,1115penn,112510th,1125Linc,112712th,1131UNIV,113111th,113510th,113710th,1137colu,1138-40,113912th,114010th,1150Coll,1150lin,115110th,1151Gran,1156Linc,1163linc,1189Monr,1200-224,1200-118,1200-125,1200-201,1200203,1200-210,1200-213,1200-219,1200-220,1200-205,1200108,1200-101,1200-106,1200-109,1200-110,1200-112,1200-113,1200-124,1200207,1200208,1200-211,1200-214,1200215,1200-216,1200-218,1201Bren,1215resi,1215E14t,1215comm,1217east,122126th,1235resi,1235comm,1238was,1242was,1302mil,1308gra,1328coff,135