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 | |
$odd_or_even = 'even'; | |
$loop_2 = new WP_Query( 'cat=1&showposts=2&orderby=date&order=DESC' ); while ($loop_2->have_posts()) : $loop_2->the_post(); ?> | |
<div <?php post_class( $odd_or_even ); ?>> | |
<?php $odd_or_even = ( 'odd' == $odd_or_even ) ? 'even' : 'odd'; ?> | |
<div class="column-5 left"> | |
<a href="<?php the_permalink(); ?>" /><?php the_post_thumbnail( 'thumbnail', array( 'class' => 'featured-image' ) ); ?></a> | |
<a href="<?php the_permalink(); ?>" /><span class="read-more">Read More</span></a> |
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
$post_classes = get_post_class(); | |
$odd_or_even = 'even'; | |
$post_counter = 0; | |
$post_counter++; | |
$odd_or_even = ( 'odd' == $odd_or_even ) ? 'even' : 'odd'; | |
$post_classes[] = ( $post_counter == count( $posts ) ) ? 'last-post' :$odd_or_even; | |
echo '<div class="' . implode( ' ', $post_classes ) . '">'; |
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 | |
/** | |
* Adds Radio Latest News Widget. | |
* | |
* @package Radio | |
* @package Widgets | |
* @author Greg Rickaby and StudioPress | |
* @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) | |
* @link http://www.studiopress.com/themes/genesis | |
*/ |
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 | |
/** | |
* Adds Radio Latest News Widget. | |
* | |
* @package Radio | |
* @package Widgets | |
* @author Greg Rickaby and StudioPress | |
* @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) | |
* @link http://www.studiopress.com/themes/genesis | |
*/ |
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
if ( ! empty( $instance['show_content'] ) ) { | |
if ( 'excerpt' == $instance['show_content'] ) | |
the_excerpt(); | |
elseif ( 'content-limit' == $instance['show_content'] && strip_shortcodes( $post->post_content ) != '' ) { | |
the_content_limit( (int) $instance['content_limit'], esc_html( $instance['more_text'] ) ); | |
} | |
else | |
the_content( esc_html( $instance['more_text'] ) ); | |
} |
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 | |
/** | |
* Adds Radio Latest News Widget. | |
* | |
* @package Radio | |
* @package Widgets | |
* @author Greg Rickaby and StudioPress | |
* @license http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later) | |
* @link http://www.studiopress.com/themes/genesis | |
*/ |
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
if ( ! empty( $instance['show_content'] ) ) { | |
if ( 'excerpt' == $instance['show_content'] ) { | |
the_excerpt(); | |
} elseif ( 'content-limit' == $instance['show_content'] { | |
if ( strip_shortcodes( get_the_content() ) != '' ) { | |
the_content_limit( (int) $instance['content_limit'], esc_html( $instance['more_text'] ) ); | |
} elseif ( get_the_content() != '' && strip_shortcodes( get_the_content() ) == '' ) { | |
// do nothing | |
} | |
} else { |
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
/** | |
* ATG Featured Content widget class. Replacement for and based on Genesis' Featured Posts widget class | |
* | |
* @package Genesis | |
*/ | |
class ATG_Featured_Content extends WP_Widget { | |
/** | |
* Constructor. Set the default widget options and create widget. | |
*/ |
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 if ( $station_phone = genesis_get_option( 'station_phone' ) ) { ?> | |
<div class="live-toolbar-phone alignright"> | |
<span>Request Line: <?php echo $station_phone; ?></span> | |
</div> | |
<?php } ?> |
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
function nbc_dynamic_lead_link_meta_box( $post ) { | |
global $post; | |
// Use nonce for verification | |
wp_nonce_field( basename( __FILE__ ), 'nbc_dynamic_lead_link_nonce' ); | |
$link = get_post_meta( $post->ID, 'lead_link', true ); | |
$settings = array( | |
'media_buttons' => false, |
OlderNewer