'; the_widget( 'WP_Widget_Search', 'title=' . __( 'Search', 'ariel' ), 'before_title=

&after_title=

&before_widget=' ); the_widget( 'WP_Widget_Pages', 'title=' . __( 'Pages', 'ariel' ) , 'before_title=

&after_title=

&before_widget=
&after_widget=
' ); the_widget( 'WP_Widget_Recent_Posts', 'title=' . __( 'Recent Posts', 'ariel' ) , 'before_title=

&after_title=

&before_widget=
&after_widget=
' ); the_widget( 'WP_Widget_Archives', 'title=' . __( 'Archives', 'ariel' ), 'before_title=

&after_title=

&before_widget=
&after_widget=
' ); the_widget( 'WP_Widget_Categories', 'title=' . __( 'Categories', 'ariel' ), 'before_title=

&after_title=

&before_widget=
&after_widget=
' ); echo ''; } endif; // function_exists( 'ariel_example_sidebar' ) if ( ! function_exists( 'ariel_example_sidebar_header' ) ) : /** * Example sidebar widgets if example content is on in customizer * @return Returns header sidebar widgets */ function ariel_example_sidebar_header() { echo ''; } endif; // function_exists( 'ariel_example_sidebar_header' ) if ( ! function_exists( 'ariel_toggle_entry_meta' ) ) : /** * Toggle entry meta * * Helper function to determine whether specific meta is set to be visible * or hidden. Markup is mainly the same for single and archive view so we are * covering here both. * * @param string $feed_field Blog feed option for specific meta * @param string $single_field Single post option for specific meta * @return bool Returns true/false for specified meta */ function ariel_toggle_entry_meta( $feed_field, $single_field ) { $show = false; $ariel_blog_feed_meta_show = ariel_get_option( 'ariel_blog_feed_meta_show' ); $ariel_posts_meta_show = ariel_get_option( 'ariel_posts_meta_show' ); /** * Blog feed - front page or blog archive */ if ( is_front_page() || is_home() || is_archive() || is_search() ) : if ( $ariel_blog_feed_meta_show && $feed_field ) : $show = true; endif; /** * Single post */ elseif ( is_single() ) : if ( $ariel_posts_meta_show && $single_field ) : $show = true; endif; endif; return $show; } endif; // function_exists( 'ariel_toggle_entry_meta' ) if ( ! function_exists( 'ariel_truncated_entry_title' ) ) : /** * Truncate title * * Helper function to echo truncated title * * @param string $title Title of post * @param string $length Total length of title * @return string Returns truncated title */ function ariel_truncated_entry_title( $title, $length ) { $string = $title; if( strlen($title) > $length ) : $temp = substr($title, 0, strpos($title, ' ', $length)); if(strlen($temp) > $length) : $string = $temp . '...'; endif; endif; return $string; } endif; // function_exists( 'ariel_truncated_entry_title' )