This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="two-thirds first">this column is 2/3</div> | |
<div class="one-third">this column is 1/3</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Remove post titles from Grid Loop | |
* | |
* @author Bill Erickson | |
* @link http://www.studiopress.com/forums/topic/grid-loop-plugin-remove-post-title/ | |
*/ | |
function be_remove_grid_loop_titles() { | |
if( apply_filters( 'is_genesis_grid_loop', false ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Full Width Landing Page | |
function testing() { ?> | |
This should be full width… | |
<?php } | |
add_action ('be_content_area', 'testing'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Styled Ordered List | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/styled-ordered-list/ | |
*/ | |
.entry-content ol { | |
counter-reset: li; | |
list-style: none; | |
*list-style: decimal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Intro Content | |
* | |
*/ | |
function be_intro_content() { | |
if( is_page() ) | |
$intro = get_post_meta( get_the_ID(), 'be_intro_content', true ); | |
if( is_home() ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Post Authors Post Link Shortcode | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/wordpress-post-multiple-authors/ | |
* | |
* @param array $atts | |
* @return string $authors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Category Subtitle | |
* | |
*/ | |
function be_category_subtitle() { | |
// Make sure this is a category archive | |
if( ! is_category() ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function be_call_to_action() { | |
$title = esc_html( get_option( 'options_be_cta_title' ) ); | |
$button_text = esc_html( get_option( 'options_be_cta_button_text' ) ); | |
$button_url = esc_url( get_option( 'options_be_cta_button_url' ) ); | |
if( $title && $button_text && $button_url ) | |
echo '<div class="call-to-action"><div class="wrap"><p>' . $title . '</p><p><a href="' . $button_url . '" class="button">' . $button_text . '</a></p></div></div>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Your Child Theme | |
* | |
* Template Name: Landing | |
*/ | |
/** | |
* Flexible Content | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$videos = get_post_meta( get_the_ID(), 'be_attorney_video', true ); | |
if( $videos ) { | |
for( $i = 0; $i < $videos; $i++ ) { | |
$title = esc_html( get_post_meta( get_the_ID(), 'be_attorney_video_' . $i . '_title', true ) ); | |
$video = esc_url( get_post_meta( get_the_ID(), 'be_attorney_video_' . $i . '_video', true ) ); | |
$thumbnail = (int) get_post_meta( get_the_ID(), 'be_attorney_video_' . $i . '_thumbnail', true ); | |
// Thumbnail field returns image ID, so grab image. If none provided, use default image |