urlencode( implode( '|', $font_families ) ), 'subset' => urlencode( 'latin,latin-ext' ), ); $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); } return $fonts_url; } /** * Enqueue Google Fonts for Editor Styles */ function satellite_editor_styles() { add_editor_style( array( 'editor-style.css', satellite_fonts_url() ) ); } add_action( 'after_setup_theme', 'satellite_editor_styles' ); /** * Enqueue Google Fonts for custom headers */ function satellite_admin_scripts( $hook_suffix ) { wp_enqueue_style( 'satellite-fonts', satellite_fonts_url(), array(), null ); } add_action( 'admin_print_styles-appearance_page_custom-header', 'satellite_admin_scripts' ); function satellite_posted_on() { $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string .= ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); printf( __( 'Posted on %1$s ', 'satellite' ), sprintf( '%2$s', esc_url( get_permalink() ), $time_string ), sprintf( ' ', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ) ); } function satellite_categories() { if ( ! scrawl_categorized_blog() ) return; //Translators: Used between list items, there is a space after the comma echo '