ID, 'blogin_aarambha_content_layout', true ); $classes[] = ( $content_layout ) ? 'has-'. esc_attr($content_layout) . '-layout' : 'has-portrait-layout'; } return array_unique($classes); } add_filter( 'post_class', 'blogin_aarambha_post_classes' ); /** * Add a pingback url auto-discovery header for single posts, pages, or attachments. */ function blogin_aarambha_pingback_header() { if ( is_singular() && pings_open() ) { printf( '', esc_url( get_bloginfo( 'pingback_url' ) ) ); } } add_action( 'wp_head', 'blogin_aarambha_pingback_header' ); /** * Return an array of all icons. */ function blogin_aarambha_get_fontawesome() { // Bail if the nonce doesn't check out if ( ! isset( $_POST['blogin_aarambha_customize_nonce'] ) || ! wp_verify_nonce( sanitize_key( $_POST['blogin_aarambha_customize_nonce'] ), 'blogin_aarambha_customize_nonce' ) ) { wp_die(); } // Do another nonce check check_ajax_referer( 'blogin_aarambha_customize_nonce', 'blogin_aarambha_customize_nonce' ); // Bail if user can't edit theme options if ( ! current_user_can( 'edit_theme_options' ) ) { wp_die(); } // Get all of our fonts $fonts = Blogin_Aarambha_Font_Awesome_Icons::$icons; ob_start(); if( $fonts ){ ?>