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
| /* Adjust portfolio shortcode item font-sizes */ | |
| .jetpack-portfolio-shortcode h2.portfolio-entry-title { | |
| font-size: 20px; | |
| } | |
| .jetpack-portfolio-shortcode .portfolio-entry-content p { | |
| font-size: 16px; | |
| } |
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
| if ( ! function_exists( 'cmcm_styles_dropdown' ) ) { | |
| function cmcm_styles_dropdown( $settings ) { | |
| // Create array of new styles | |
| $new_styles = array( | |
| array( | |
| 'title' => __( 'Campaign Monitor Styles', 'wpex' ), | |
| 'items' => array( | |
| array( | |
| 'title' => __('Paragraph 1','wpex'), |
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
| <!-- Include introductory content if this is a Landing Page --> | |
| <?php if (is_page_template( 'page-landing.php' ) ){ ?> | |
| <p>Do things here</p> | |
| <?php } ?> | |
| <!-- Include Title if this is a Section Page --> | |
| <?php if (is_page_template( 'page-section.php' ) ){ ?> | |
| <p>Do other things here</p> | |
| <?php } ?> |
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
| /** | |
| * Estimate time required to read the article | |
| * | |
| * @return string | |
| */ | |
| function bm_estimated_reading_time() { | |
| $post = get_post(); | |
| $words = str_word_count( strip_tags( $post->post_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 | |
| $page = ( get_query_var('paged') ) ? get_query_var( 'paged' ) : 1; | |
| // number of tags to show per-page | |
| $per_page = 10; | |
| $offset = ( $page-1 ) * $per_page; | |
| $args = array( 'number' => $per_page, 'offset' => $offset, 'hide_empty' => 0 ); | |
| // Loop through terms here | |
| $total_terms = wp_count_terms( 'ctc_sermon_series' ); |
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_action( 'init', 'sennza_register_cpt_testimonial' ); | |
| function sennza_register_cpt_testimonial() { | |
| $args = array( | |
| 'public' => true, | |
| 'query_var' => 'testimonial', | |
| 'rewrite' => array( | |
| 'slug' => 'testimonials', | |
| 'with_front' => false | |
| ), |