@@ -90,14 +90,15 @@ public static function card_post(
9090 $ out .= '<span class="pre-title"> ' . $ pre_title . '</span> ' ;
9191 }
9292 $ out .= '<h4 class="card-title"><a href=" ' . $ card_url . '"> ' . $ card_title . '</a></h4> ' ;
93- if ( ! $ is_video && ! empty ( $ card_date ) ) {
93+ if ( ! $ is_video && ! empty ( $ card_date ) & $ date ) {
9494 $ out .= '<span class="subtitle"> ' . $ card_date . ' </span> ' ;
9595 }
9696 if ( $ has_content ) {
9797 $ the_post = ( $ use_post_data ) ? get_post ( $ post_id ) : false ;
9898 $ the_description = ( $ use_post_data ) ? do_excerpt ( $ the_post , array ( 'length ' => 110 ) ) : $ description ;
99+ $ filtered_content = apply_filters ( 'cc_theme_base_filter_card_content ' , $ the_description , $ post_id );
99100 $ out .= '<div class="content"> ' ;
100- $ out .= $ the_description ;
101+ $ out .= $ filtered_content ;
101102 $ out .= '</div> ' ;
102103 }
103104 if ( $ has_button ) {
@@ -128,11 +129,13 @@ public static function card_post_event( $post_id, $has_content = true ) {
128129 $ out .= '<h4 class="card-title"><a href=" ' . get_permalink ( $ post_id ) . '"> ' . get_the_title ( $ post_id ) . '</a></h4> ' ;
129130 if ( $ has_content ) {
130131 $ the_post = get_post ( $ post_id );
132+ $ entry_content = do_excerpt ( $ the_post );
133+ $ filtered_content = apply_filters ( 'cc_theme_base_filter_card_event_content ' , $ entry_content , $ post_id );
131134 $ out .= '<div class="content"> ' ;
132- $ out .= do_excerpt ( $ the_post ) ;
135+ $ out .= $ filtered_content ;
133136 $ out .= '</div> ' ;
134137 }
135- $ out .= '<a href=" ' . get_permalink ( $ post_id ) . '" class="read-more">Read more</a> ' ;
138+ $ out .= '<a href=" ' . get_permalink ( $ post_id ) . '" class="read-more">Read more <i class="icon chevron-right"></i> </a> ' ;
136139 $ out .= '</div> ' ;
137140 $ out .= '</article> ' ;
138141
@@ -161,8 +164,10 @@ public static function card_statistic( $post_id, $number, $caption, $caption_is_
161164 $ out .= '<div class="card-content"> ' ;
162165 if ( $ has_content ) {
163166 $ the_post = get_post ( $ post_id );
167+ $ entry_content = do_excerpt ( $ the_post );
168+ $ filtered_content = apply_filters ( 'cc_theme_base_filter_card_event_content ' , $ entry_content , $ post_id );
164169 $ out .= '<div class="content"> ' ;
165- $ out .= do_excerpt ( $ the_post ) ;
170+ $ out .= $ filtered_content ;
166171 $ out .= '</div> ' ;
167172 }
168173 if ( $ has_link ) {
@@ -194,8 +199,10 @@ public static function card_quote( $post_id, $show_image = true, $author_name, $
194199 $ out .= '<div class="card-content"> ' ;
195200 $ out .= '<span class="quote"></span> ' ;
196201 $ the_post = get_post ( $ post_id );
202+ $ entry_content = apply_filters ( 'the_content ' , $ the_post ->post_content );
203+ $ filtered_content = apply_filters ( 'cc_theme_base_filter_card_quote_content ' , $ entry_content , $ post_id );
197204 $ out .= '<div class="content"> ' ;
198- $ out .= apply_filters ( ' the_content ' , $ the_post -> post_content ) ;
205+ $ out .= $ filtered_content ;
199206 $ out .= '<div class="quote-author"> ' ;
200207 $ out .= '<strong class="title"> ' . $ author_name . '</strong> ' ;
201208 $ out .= '<p class="description"> ' . $ author_description . '</p> ' ;
@@ -268,9 +275,12 @@ public static function card_link( $post_id = null, $use_post_data = false, $back
268275 if ( $ has_content ) {
269276 if ( $ use_post_data ) {
270277 $ the_post = get_post ( $ post_id );
271- $ the_content = do_excerpt ( $ the_post );
278+ $ get_content = do_excerpt ( $ the_post );
279+ $ filtered_content = apply_filters ( 'cc_theme_base_filter_card_link_content ' , $ get_content , $ post_id );
280+ $ the_content = $ filtered_content ;
272281 } else {
273- $ the_content = $ description ;
282+ $ filtered_content = apply_filters ( 'cc_theme_base_filter_card_link_content ' , $ description , $ post_id );
283+ $ the_content = $ filtered_content ;
274284 }
275285 $ out .= '<span class="content"> ' . esc_attr ( $ description ) . '</span> ' ;
276286 }
@@ -361,8 +371,10 @@ public static function simple_entry( $post_id, $has_content = true, $has_image =
361371 $ out .= '<span class="entry-date"> ' . get_the_date ( CC_Site::get_date_format () ) . '</span> ' ;
362372 if ( $ has_content ) {
363373 $ the_post = get_post ( $ post_id );
374+ $ the_content = do_excerpt ( $ the_post );
375+ $ filtered_content = apply_filters ( 'cc_theme_base_filter_card_link_content ' , $ the_content , $ post_id );
364376 $ out .= '<div class="entry-description"> ' ;
365- $ out .= do_excerpt ( $ the_post ) ;
377+ $ out .= $ filtered_content ;
366378 $ out .= '</div> ' ;
367379 }
368380 $ out .= '</div> ' ;
0 commit comments