esc_html__( 'Top Menu', 'best-classifieds' ), ) ); add_theme_support( 'html5', array('comment-form','comment-list','gallery','caption',)); // Add theme support for Custom Logo. add_theme_support( 'custom-header'); add_theme_support( 'custom-logo', array( 'width' => 250, 'height' => 250, 'flex-width' => true, 'flex-height' => true, 'header-text' => array( 'site-title', 'site-description' ), ) ); } add_action( 'after_setup_theme', 'best_classifieds_setup' ); function best_classifieds_content_width() { $GLOBALS['content_width'] = apply_filters( 'best_classifieds_content_width', 640 ); } add_action( 'after_setup_theme', 'best_classifieds_content_width', 0 ); add_filter('get_custom_logo','best_classifieds_change_logo_class'); function best_classifieds_change_logo_class($html) { $html = str_replace('class="custom-logo"', 'class="img-responsive logo-fixed"', $html); $html = str_replace('width=', 'original-width=', $html); $html = str_replace('height=', 'original-height=', $html); $html = str_replace('class="custom-logo-link"', 'class="img-responsive logo-fixed"', $html); return $html; } // Filter for search form. add_filter('get_search_form', 'best_classifieds_search_form'); function best_classifieds_search_form($html) { if(is_front_page()): $html='
'; endif; return $html; } add_action( 'admin_menu', 'best_classifieds_admin_menu'); function best_classifieds_admin_menu( ) { add_theme_page( esc_html__('Pro Feature','best-classifieds'), esc_html__('Best Classifieds Pro','best-classifieds'), 'manage_options', 'best-classifieds-pro-buynow', 'best_classifieds_pro_buy_now', 300 ); } function best_classifieds_pro_buy_now(){ ?>