Bronson Quick BronsonQuick

View sennza_testimonials.php
1 2 3 4 5 6 7 8 9 10
<?php function sz_get_testimonials( $page_id ){
$testimonials = get_post_meta( $page_id, 'testimonial', false );
if ( $testimonials ) {
$testimonial_list = "\n<ul>\n";
foreach ( $testimonials as $testimonial ) {
$testimonial_image = false;
$testimonial_content = false;
$testimonial_list .= "\t<li class='row'>";
if ( $testimonial['testimonial-image'] ) {
$testimonial_image = wp_get_attachment_image( $testimonial['testimonial-image'], 'full', '', array( 'class' => 'columns small-3' ) );
View add_foundation_5_columns_to_wordpress_tinymce.php
1 2 3 4 5 6 7 8 9 10
<?php
/**
* Pop this into your functions.php if you like :)
*
*/
function jordesigns_mce_buttons( $buttons ) {
array_unshift( $buttons, 'styleselect' );
return $buttons;
}
add_filter( 'mce_buttons_2', 'jordesigns_mce_buttons' );
View post_thumbnail_html_foundation_wordpress.php
1 2 3 4 5 6 7 8 9 10
<?php
/**
* We need to filter our post thumbnails so we can output them in a format that Foundations Interchange needs.
* We also need a fallback for no JavaScript
*
* @param $html
* @param $post_id
* @param $post_thumbnail_id
* @param $size
* @param $attr
View gist:8233624
1 2 3 4 5 6 7 8 9 10
/* Set up a variable for maths */
 
$doc-font-size: 16;
 
/* the font-size mixin */
 
@mixin font-size($size) {
font-size: 0px + $size;
font-size: 0rem + $size / $doc-font-size;
}
View sassy-mp6.scss
1 2 3 4 5 6 7 8 9 10
@import "compass";
$base-font-family: "Open Sans", sans-serif;
$menu-base-color: #111;
$mid-menu-color: lighten( $menu-base-color, 6.5% );
$light-menu-color: lighten( $menu-base-color, 13.5% );
$menu-highlight-color: #682E93;
$active-plugins: lighten( $menu-highlight-color, 66.5% );
/* Need to revisit this */
$active-plugin-check-column: saturate( $menu-highlight-color, 50% );
@if $active-plugins == white {
View first_name_last_name_gravity_forms.php
1 2 3 4 5 6 7 8 9 10
<?php
function sennza_change_first_name( $label, $form_id ){
return "First Name";
}
add_filter( 'gform_name_first', 'sennza_change_first_name', 10, 2 );
 
function sennza_change_last_name( $label, $form_id ){
return "Last Name";
}
add_filter( 'gform_name_last', 'sennza_change_last_name', 10, 2 );
View pending_comment_to_approved.php
1 2 3
<?php
 
add_action( 'comment_unapproved_to_approved', 'sennza_run_approved_comment_awesomeness', 10, 1 );
View change_buddypress_group_slugs_from_groups_to_teams.php
1 2 3 4 5 6 7 8 9
<?php
/* Added to functions.php in the theme */
function ts_change_groups_slug(){
global $bp;
$bp->groups->root_slug = 'teams';
return $bp->groups->root_slug;
}
add_filter( 'bp_get_groups_slug', 'ts_change_groups_slug' );
add_filter( 'bp_get_groups_root_slug', 'ts_change_groups_slug' );
View gravity_forms_australian_formatted_address.php
1 2 3 4 5 6 7 8 9 10
function g8_aus_address( $address_types, $form_id ){
$address_types["australia"] = array(
"label" => "Australian",
"country" => "Australia",
"zip_label" => "Postcode",
"state_label" => "State",
"states" => array(
"NT" => "NT",
"ACT" => "ACT",
"NSW" => "NSW",
View different_coloured_numbers_in_ordered_lists.scss
1 2 3 4 5 6 7 8 9 10
ol {
counter-reset: li; /* Initiate a counter */
margin-left: 0; /* Remove the default left margin */
padding-left: 0; /* Remove the default left padding */
}
ol > li {
position: relative; /* Create a positioning context */
margin: 0 0 0 2em; /* Give each list item a left margin to make room for the numbers */
padding: 0; /* Add some spacing around the content */
list-style: none; /* Disable the normal item numbering */
Something went wrong with that request. Please try again.