From 680d429e090f10419141bd919ff9757a76ce9c5f Mon Sep 17 00:00:00 2001 From: Stefan Bohacek Date: Mon, 20 Sep 2021 16:28:19 -0400 Subject: [PATCH] Added link to browse open-source bots when browsing by language. --- archive.php | 20 ++++++++++++++++++-- tag.php | 2 +- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/archive.php b/archive.php index 1b3c0d79..37ac50fd 100644 --- a/archive.php +++ b/archive.php @@ -83,7 +83,11 @@ $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); if ( get_query_var( 'taxonomy' ) === 'programing_language' ) { - $page_title = "Bots made with " . $term->name; + if ( !empty( $_GET['opensource'] ) ){ + $page_title = "Open-source bots made with " . $term->name; + } else { + $page_title = "Bots made with " . $term->name; + } } else { $page_title = "Posts tagged #" . $term->name; } @@ -95,6 +99,18 @@ if ( !empty( $term->description ) ){ echo wpautop( $term->description ); } + + if ( get_query_var( 'taxonomy' ) === 'programing_language' ) { + $page_title = "Bots made with " . $term->name; + ?> +