', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'borax_pingback_header' ); /*----------------------------------------------------- * Colors/Backgrounds *----------------------------------------------------*/ if (!function_exists('borax_customizer_styles')){ function borax_customizer_styles(){ wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/assets/css/theme.css', 'customizer-color' ); $header_customer = borax_option( 'header_image' ); $header_bg = borax_option( 'page_banner_img' ); $search_banner = borax_option( 'search_banner_img' ); if($header_customer != 'remove-header'){ $headerbg = $header_customer; }else{ $headerbg = $header_bg; } $custom_css = ' .page-feature { background-image: url('.$headerbg.'); } .search-banner { background-image: url('.$search_banner.'); } '; wp_add_inline_style( 'custom-style', $custom_css ); } add_action( 'wp_enqueue_scripts', 'borax_customizer_styles', 11 ); } /*----------------------------------------------------- * Borax Options *----------------------------------------------------*/ if ( !function_exists( 'borax_option' ) ) { function borax_option( $option ) { // Get options return get_theme_mod( $option, borax_defaults( $option ) ); } } /*----------------------------------------------------- * Coomment Text Area *----------------------------------------------------*/ function borax_move_comment_field_to_bottom( $fields ) { $comment_field = $fields['comment']; unset( $fields['comment'] ); $fields['comment'] = $comment_field; return $fields; } add_filter( 'comment_form_fields', 'borax_move_comment_field_to_bottom' ); /*------------------------------------------* * Excerpt Length *------------------------------------------*/ if(!function_exists('borax_excerpt')): function borax_excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt); } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('`[[^]]*]`','',$excerpt); return $excerpt; } endif; /*----------------------------------------------------- * Coomment List *----------------------------------------------------*/ if(!function_exists('borax_comments')){ function borax_comments($comment,$args,$depth){ $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); ?>
  • array('avatar-small img-responsive'))); ?>

  • "; } return $v; } } /* Breadcrumbs * sience 1.0 * */ if ( !function_exists( 'borax_breadcrumbs' ) ) { function borax_breadcrumbs( $seperator = ' / ' ) { echo ''; } } /* * WP Kses Allowed HTML Tags Array in function * @Since Version 0.1 * @param ar * Use: borax_kses($raw_string); * */ if ( !function_exists( 'borax_kses' ) ) { function borax_kses( $raw ) { $allowed_tags = array( 'span' => array( 'class' => array(), ), 'a' => array( 'class' => array(), 'href' => array(), 'rel' => array(), 'title' => array(), ), 'abbr' => array( 'title' => array(), ), 'b' => array(), 'blockquote' => array( 'cite' => array(), ), 'cite' => array( 'title' => array(), ), 'code' => array(), 'del' => array( 'datetime' => array(), 'title' => array(), ), 'dd' => array(), 'div' => array( 'class' => array(), 'title' => array(), 'style' => array(), ), 'dl' => array(), 'dt' => array(), 'em' => array(), 'h1' => array(), 'h2' => array(), 'h3' => array(), 'h4' => array(), 'h5' => array(), 'h6' => array(), 'i' => array( 'class' => array(), ), 'img' => array( 'alt' => array(), 'class' => array(), 'height' => array(), 'src' => array(), 'width' => array(), ), 'li' => array( 'class' => array(), ), 'ol' => array( 'class' => array(), ), 'p' => array( 'class' => array(), ), 'q' => array( 'cite' => array(), 'title' => array(), ), 'span' => array( 'class' => array(), 'title' => array(), 'style' => array(), ), 'iframe' => array( 'width' => array(), 'height' => array(), 'scrolling' => array(), 'frameborder' => array(), 'allow' => array(), 'src' => array(), ), 'strike' => array(), 'br' => array(), 'strong' => array(), 'data-wow-duration' => array(), 'data-wow-delay' => array(), 'data-wallpaper-options' => array(), 'data-stellar-background-ratio' => array(), 'ul' => array( 'class' => array(), ), ); if ( function_exists( 'wp_kses' ) ) { // WP is here $allowed = wp_kses( $raw, $allowed_tags ); } else { $allowed = $raw; } return $allowed; } } /** * Borax option defaults settings */ if ( !function_exists( 'borax_defaults' ) ) { function borax_defaults( $options ) { $default = array( 'theme_logo' => BORAX_IMAGES . '/logo.png', 'nav_sidebar_logo' => BORAX_IMAGES . '/logo.png', 'upload_preloader' => BORAX_IMAGES . '/logo-h.png', 'top_header_phn' => '+119-215-5596', 'top_header_email' => 'info@domain.com', 'body_font' => '"Roboto", sans-serif', 'heading_font' => '"Rufina", sans-serif', 'cta_text' => '', 'cta_url' => '//themeies.com', 'cta_icon' => 'ti-email', 'borax_preloader' => true, 'borax_scroll' => true, 'header_layout' => 1, 'header_image' => BORAX_IMAGES . '/page-feature.jpg', 'page_banner_img' => '#dee7ff', 'is_sticky_header' => false, 'is_transparent_header' => false, 'header_style' => 1, 'show_top_header' => false, 'show_top_nav' => true, 'show_breadcrumb' => true, 'nav_search' => false, 'footer_style' => 2, 'footer_widget_layout' => 4, 'footer_logo' => BORAX_IMAGES . '/logo.png', 'show_terms' => false, 'footer_menu_list' => 'footer-menu', 'show_footer_bottom_area'=> false, 'blog_single_sidebar' => 3, 'show_social' => true, 'blog_layout' => 'list', 'blog_sidebar' => 3, 'blog_style' => '1', 'blog_column_number' => '2', 'page_header_option' => true, 'show_search_banner' => true, 'show_search_breadcrumb' => true, 'show_page_banner' => true, 'show_blog_banner' => true, 'blog_header_title' => esc_html__( 'Blog Page', 'borax' ), 'show_footer_widget' => false, 'page_sidebar' => '3', 'blog_content_align' => 'text-left', 'copyright_text' => esc_html__( 'Copyrights By Themeies - 2020', 'borax' ), 'show_errpage_banner' => true, /* Page banner on Error */ 'error_banner_img' => BORAX_IMAGES . '/404.png',/* Error */ 'error_banner_title' => esc_html__( '404', 'borax' ), 'error_title' => esc_html__( 'Error Page', 'borax' ), 'error_subtitle' => esc_html__( 'Either Something went wrong or the page doesn\'t exist anymore', 'borax' ), 'error_content' => esc_html__( 'We are Sorry! Not content in this page. Either Something went wrong or the page doesn\'t exist anymore', 'borax' ), 'back_to_home' => esc_html__( 'Back to Homepage', 'borax' ), 'nav_sidebar' => true, 'lazylader' => true, 'footer_social_links' => '', 'primary_color' => '#ff5a2b', 'buttonLayout' => 'round' ); if ( !empty( $default[ $options ] ) ) return $default[ $options ]; } } if( ! function_exists( 'borax_author_meta' ) ) : /** * Tags fetch */ function borax_author_meta() { if( borax_option( 'author_profile' ) == 'show') : ?>

    urlencode( implode( '|', $font_families ) ) ); $fonts_url = add_query_arg( $query_args, '//fonts.googleapis.com/css' ); } return esc_url_raw( $fonts_url ); } } /** * * Lazy Loader * */ $lazylader = borax_option('lazylader'); if($lazylader){ add_filter( 'the_content', 'my_lazyload_content_images' ); add_filter( 'widget_text', 'my_lazyload_content_images' ); add_filter( 'wp_get_attachment_image_attributes', 'my_lazyload_attachments', 10, 2 ); // Replace the image attributes in Post/Page Content function my_lazyload_content_images( $content ) { $content = preg_replace( '/(