View connections.php
<?php | |
add_action( 'mb_relationships_init', function () { | |
MB_Relationships_API::register( array( | |
'id' => 'programs_to_updates', | |
'to' => 'projects', | |
'from' => 'updates', | |
) ); |
View style.css
@media( max-width: 600px ) { | |
p[text-align:"center"], | |
p.align-center { | |
text-align: left; | |
} | |
} |
View gist:3de11664fc4925514d434cbd5a26865f
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' ); |
View counter.js
<?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 |
View _ab-container-defaults.scss
/* | |
Frontend | |
========================================================================== */ | |
.entry-content > .wp-block-atomic-blocks-ab-container.alignfull { | |
padding: 10% 5%; | |
.ab-container-inside { | |
max-width: 1200px; | |
} |
View gist:924314af51697c964e03d688ab92ea56
(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() ); |
View template.php
<?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' ); |
View init.php
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; | |
} |
View global.scss
/* ========================================================================== | |
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 { |
View gutenberg-single-blog.scss
// Import some colors and other global variables (no styles included here) | |
@import 'global'; | |
// Make sure that we only target things on single blog posts in the editor | |
body.post-type-post { | |
// Only affect things inside the editor-styles-wrapper | |
.editor-styles-wrapper { |
NewerOlder