">

$subvalue ) { $value[ $key ] = sanitize_text_field( $subvalue ); } return $value; } return sanitize_text_field( $value ); } /** * Theme Comment Function */ if ( ! function_exists( 'awpbusinesspress_comment' ) ) : function awpbusinesspress_comment( $comment, $args, $depth ) { //get theme data global $comment_data; //translations $leave_reply = $comment_data['translation_reply_to_coment'] ? $comment_data['translation_reply_to_coment'] : __('Reply','awpbusinesspress');?>
id="comment-">
$leave_reply,'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
comment_approved == '0' ) : ?>
ID}\" class=\"more-link\">" .esc_html__('Read More','awpbusinesspress')."

"; } add_filter( 'the_content_more_link', 'awpbusinesspress_read_more_button_class' ); function awpbusinesspress_post_thumbnail() { if(has_post_thumbnail()){ echo '
'; the_post_thumbnail( '', array( 'class'=>'img-fluid' ) ); echo '
'; } } /** * Theme Page Header Title */ function awpbusinesspress_theme_page_header_title(){ if( is_archive() ) { echo '

'; if ( is_day() ) : /* translators: %1$s %2$s: date */ printf( esc_html__( '%1$s %2$s', 'awpbusinesspress' ), esc_html__('Archives','awpbusinesspress'), get_the_date() ); elseif ( is_month() ) : /* translators: %1$s %2$s: month */ printf( esc_html__( '%1$s %2$s', 'awpbusinesspress' ), esc_html__('Archives','awpbusinesspress'), get_the_date( 'F Y' ) ); elseif ( is_year() ) : /* translators: %1$s %2$s: year */ printf( esc_html__( '%1$s %2$s', 'awpbusinesspress' ), esc_html__('Archives','awpbusinesspress'), get_the_date( 'Y' ) ); elseif( is_author() ): /* translators: %1$s %2$s: author */ printf( esc_html__( '%1$s %2$s', 'awpbusinesspress' ), esc_html__('All posts by','awpbusinesspress'), get_the_author() ); elseif( is_category() ): /* translators: %1$s %2$s: category */ printf( esc_html__( '%1$s %2$s', 'awpbusinesspress' ), esc_html__('Category','awpbusinesspress'), single_cat_title( '', false ) ); elseif( is_tag() ): /* translators: %1$s %2$s: tag */ printf( esc_html__( '%1$s %2$s', 'awpbusinesspress' ), esc_html__('Tag','awpbusinesspress'), single_tag_title( '', false ) ); elseif( class_exists( 'WooCommerce' ) && is_shop() ): /* translators: %1$s %2$s: WooCommerce */ printf( esc_html__( '%1$s %2$s', 'awpbusinesspress' ), esc_html__('Shop','awpbusinesspress'), single_tag_title( '', false )); elseif( is_archive() ): the_archive_title( '

', '

' ); endif; echo '
'; } elseif( is_404() ) { echo '

'; /* translators: %1$s: 404 */ printf( esc_html__( '%1$s', 'awpbusinesspress' ) , esc_html__('Error 404','awpbusinesspress') ); echo '

'; } elseif( is_search() ) { echo '

'; /* translators: %1$s %2$s: search */ printf( esc_html__( '%1$s %2$s', 'awpbusinesspress' ), esc_html__('Search results for','awpbusinesspress'), get_search_query() ); echo '

'; } else { echo '

'.esc_html( get_the_title() ).'

'; } } function awpbusinesspress_bootstrap_menu_notitle( $menu ){ return $menu = preg_replace('/ title=\"(.*?)\"/', '', $menu ); } add_filter( 'wp_nav_menu', 'awpbusinesspress_bootstrap_menu_notitle' ); /** * Theme Breadcrumbs Url */ function awpbusinesspress_page_url() { $page_url = 'http'; if ( key_exists("HTTPS", $_SERVER) && ( $_SERVER["HTTPS"] == "on" ) ){ $page_url .= "s"; } $page_url .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $page_url .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $page_url .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $page_url; } /** * Theme Breadcrumbs */ if( !function_exists('awpbusinesspress_page_header_breadcrumbs') ): function awpbusinesspress_page_header_breadcrumbs() { global $post; $homeLink = home_url(); $awpbusinesspress_page_header_layout = get_theme_mod('awpbusinesspress_page_header_layout', 'awpbusinesspress_page_header_layout1'); if($awpbusinesspress_page_header_layout == 'awpbusinesspress_page_header_layout1'): $breadcrumb_class = 'text-center'; else: $breadcrumb_class = 'text-right'; endif; echo ''; } endif; if( ! function_exists( 'awpbusinesspress_custom_customizer_options' ) ): function awpbusinesspress_custom_customizer_options() { $awpbusinesspress_sticky_bar_logo = get_theme_mod('awpbusinesspress_sticky_bar_logo'); $output_css = ''; if ( has_header_image() ) : $output_css .=".theme-page-header-area { background: #17212c url(" .esc_url( get_header_image() ). "); background-attachment: scroll; background-position: top center; background-repeat: no-repeat; background-size: cover; }\n"; endif; if($awpbusinesspress_sticky_bar_logo != null) : $output_css .=".navbar-fixed .navbar-brand { display: none !important; } .not-sticky .sticky-navbar-brand { display: none !important; }\n"; endif; $awpbusinesspress_menu_overlap = get_theme_mod('awpbusinesspress_menu_overlap', true); $awpbusinesspress_page_header_disabled = get_theme_mod('awpbusinesspress_page_header_disabled', true); $awpbusinesspress_main_slider_disabled = get_theme_mod('awpbusinesspress_main_slider_disabled', true); //Page header CCS for Pages + Front page if ( $awpbusinesspress_main_slider_disabled != true && $awpbusinesspress_menu_overlap == true && $awpbusinesspress_page_header_disabled != true ): $output_css .=".navbar-overlap { background-color: rgba(0, 0, 0, 0.85) !important; }\n"; $output_css .=".site-content{ margin-top:5%; }\n"; endif; //Menu css if ($awpbusinesspress_menu_overlap == true && $awpbusinesspress_page_header_disabled != true): $output_css .="#main-content .top-margin { margin-top: 12% !important; }\n"; endif; if ( is_user_logged_in() && is_admin_bar_showing() ) { $output_css .="@media (min-width: 600px){ .navbar-fixed{top:32px;} }\n"; } wp_add_inline_style( 'awpbusinesspress-style', $output_css ); } endif; add_action( 'wp_enqueue_scripts', 'awpbusinesspress_custom_customizer_options' );