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 by %2$s', 'satellite' ), sprintf( '%2$s', esc_url( get_permalink() ), $time_string ), sprintf( '%2$s', 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 '
' . get_the_category_list( __( ', ', 'satellite' ) ) . '
'; } /* * Allow .bypostauthor Author flag to be made available for translation */ function satellite_bypostauthor_flag() { if ( ! get_comments_number() && is_archive() || is_home() || is_search() ) return; ?>