Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Display on theGatherings as author
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Dixon <brendandixon@me.com>
  • Loading branch information
brendandixon committed May 20, 2018
1 parent c584fed commit b1d2f43
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions inc/template-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ function thegatherings_join( $values = array(), $between = ', ', $last = ' or '
}
}

function thegatherings_author() {
return 'theGatherings';
}

function thegatherings_author_url() {
return home_url();
}

function singularize($term) {
// Make this handle localized text
return ends_with($term, 'ies')
Expand Down
2 changes: 1 addition & 1 deletion sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: http://underscores.me/
Author: Brendan Dixon
Author URI: http://thegatherings.place/
Description: Description
Version: 1.1.16
Version: 1.1.17
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: thegatherings
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: http://underscores.me/
Author: Brendan Dixon
Author URI: http://thegatherings.place/
Description: Description
Version: 1.1.16
Version: 1.1.17
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: thegatherings
Expand Down
2 changes: 1 addition & 1 deletion template-parts/feed-atom.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
?>
<entry>
<author>
<name><?php the_author() ?></name>
<name><?php thegatherings_author() ?></name>
<?php $author_url = get_the_author_meta('url'); if ( !empty($author_url) ) : ?>
<uri><?php the_author_meta('url')?></uri>
<?php endif;
Expand Down
2 changes: 1 addition & 1 deletion template-parts/feed-rdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
<title><?php the_title_rss() ?></title>
<link><?php the_permalink_rss() ?></link>
<dc:date><?php echo mysql2date('Y-m-d\TH:i:s\Z', $post->post_date_gmt, false); ?></dc:date>
<dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator>
<dc:creator><![CDATA[<?php thegatherings_author() ?>]]></dc:creator>
<?php the_category_rss('rdf') ?>
<description><![CDATA[<?php echo thegatherings_get_rss_card(); ?>]]></description>
<?php
Expand Down
2 changes: 1 addition & 1 deletion template-parts/feed-rss2.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<comments><?php comments_link_feed(); ?></comments>
<?php endif; ?>
<pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', get_post_time('Y-m-d H:i:s', true), false); ?></pubDate>
<dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator>
<dc:creator><![CDATA[<?php thegatherings_author() ?>]]></dc:creator>
<?php the_category_rss('rss2') ?>

<guid isPermaLink="true"><?php echo get_the_permalink(); ?></guid>
Expand Down

0 comments on commit b1d2f43

Please # to comment.