'; $output = ""; $output = ''; wp_add_inline_style( 'ariel-style', $custom_css ); } } add_action( 'wp_enqueue_scripts', 'ariel_custom_css' ); if ( ! function_exists( 'ariel_show_custom_css_field' ) ) : /** * Show custom css field in customizer if WordPress version * is less than 4.7 */ function ariel_show_custom_css_field() { if ( get_bloginfo( 'version' ) >= 4.7 ) { $ariel_advanced_css = ariel_get_option( 'ariel_advanced_css' ); if ( $ariel_advanced_css == '' ) { return false; } else { return true; } } return true; } endif; // function_exists( 'ariel_show_custom_css_field' ) /** * */ /** * Add a pingback url auto-discovery header for singularly identifiable articles. * * This function is attached to 'wp_head' action hook. * * @return Returns pingback link */ function ariel_pingback_header() { if ( is_singular() && pings_open() ) { printf( '' . "\n", get_bloginfo( 'pingback_url' ) ); } } add_action( 'wp_head', 'ariel_pingback_header' ); if ( ! function_exists( 'ariel_default_nav' ) ) : /** * Set and display default main nav if no menu is assigned * * @return Returns menu markup */ function ariel_default_nav() { echo ''; } endif; // function_exists( 'ariel_default_nav' ) /** * Add class to default page nav * * This function is attached to 'wp_page_menu' filter hook. * * For overriding in child themes remove the filter hook: * remove_filter( 'wp_page_menu', 'ariel_wp_page_menu_class' ); * * @param string $class HTML output of a page-based menu * @return string Returns filtered page memnu markup */ function ariel_wp_page_menu_class( $class ) { return preg_replace( '/