This file contains hidden or 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 | |
| //* Add class to .site-container | |
| add_filter('genesis_attr_site-container', 'jive_attributes_st_container'); | |
| function jive_attributes_st_container($attributes) { | |
| $attributes['class'] .= ' st-container'; | |
| return $attributes; | |
| } | |
| //* Add class to .site-inner |
This file contains hidden or 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
| add_filter( 'admin_body_class', 'ssm_home_admin_body_class' ); | |
| /* | |
| * Adds a body class to target the home page edit screen | |
| * | |
| */ | |
| function ssm_home_admin_body_class( $classes ) { | |
| global $post; | |
| $screen = get_current_screen(); | |
| $homepage = get_page_by_title( 'Home' ); |
This file contains hidden or 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 | |
| add_filter( 'pre_comment_content', function( $content ) { | |
| if ( strlen( $content ) > 64000 ) | |
| wp_die( 'Invalid comment.' ); | |
| return $content; | |
| } ); |
This file contains hidden or 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 | |
| add_filter( 'pre_comment_content', 'jb_xss_comment_overflow_protection'); | |
| function jb_xss_comment_overflow_protection( $content ) { | |
| if ( strlen( $content ) > 64000 ) { | |
| wp_die( 'Invalid comment.' ); | |
| } | |
| return $content; | |
| } |
This file contains hidden or 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
| add_action( 'woocommerce_before_cart', 'move_proceed_button' ); | |
| function move_proceed_button( $checkout ) { | |
| echo '<a href="' . esc_url( WC()->cart->get_checkout_url() ) . '" class="checkout-button button alt wc-forward" >' . __( 'Proceed to Checkout', 'woocommerce' ) . '</a>'; | |
| } |
This file contains hidden or 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="posts-container"> | |
| <?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?> | |
| <div> | |
| <?php | |
| //Here we group events by event_date and put the date at the top. | |
| $event_date = get_post_meta( $post->ID, 'event_date', true ); | |
| if ( $event_date != $date ) | |
| { | |
| $event_date_formatted = date( 'l, F jS, Y', strtotime( $event_date ) ); | |
| echo "<p class='page-header'><strong>$event_date_formatted</strong></p>"; |
OlderNewer