post_author ) ) { // Get Author Data $author = get_the_author(); $author_description = get_the_author_meta( 'description', $post->post_author ); $author_url = get_author_posts_url( $post->post_author ); $author_avatar = get_avatar( get_the_author_meta( 'user_email', $post->post_author ), apply_filters( 'wpex_author_bio_avatar_size', 100 ) ); // Only display if author has a description if ( $author_description ) : ?>

'; $defaults[ 'title_reply_after' ] = ''; return $defaults; } } add_filter( 'comment_form_defaults', 'punte_change_reply_html' ); if ( !function_exists( 'punte_responsive_navigation' ) ) { function punte_responsive_navigation() { echo '
'; wp_nav_menu( array( 'theme_location' => 'primary', 'fallback_cb' => false, 'container' => false, ) ); echo '
'; } } add_action( 'punte_below_body', 'punte_responsive_navigation' ); if ( !function_exists( 'punte_get_elementor_templates' ) ) { function punte_get_elementor_templates() { $args = [ 'post_type' => 'elementor_library', ]; $page_templates = get_posts( $args ); $options = array(); if ( !empty( $page_templates ) && !is_wp_error( $page_templates ) ) { $options['0'] = esc_html__('Select Template','punte'); foreach ( $page_templates as $post ) { $options[ $post->ID ] = $post->post_title; } } return $options; } } /** * escape unknown values from colors * */ function punte_escape_colors( $color ) { if ( empty( $color ) || is_array( $color ) ) { return ''; } if ( false === strpos( $color, 'rgba' ) ) { return sanitize_hex_color( $color ); } $color = str_replace( ' ', '', $color ); sscanf( $color, 'rgba(%d,%d,%d,%f)', $red, $green, $blue, $alpha ); return 'rgba('.$red.','.$green.','.$blue.','.$alpha.')'; }