Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate em #1153

Merged
merged 1 commit into from
Feb 29, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions inc/post-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ function largo_post_social_links( $echo = true ) {
$fb_share = '<span class="facebook"><a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=%1$s"><i class="icon-facebook"></i><span class="hidden-phone">%2$s</span></a></span>';
$output .= sprintf(
$fb_share,
// Yes, rawurlencode. Otherwise, the link will break.
rawurlencode( get_permalink() ),
rawurlencode( ucfirst( of_get_option( 'fb_verb' ) ) )
__( ucfirst( of_get_option( 'fb_verb' ) ), 'largo' )
);
}

Expand Down Expand Up @@ -248,7 +247,7 @@ function largo_post_social_links( $echo = true ) {
rawurlencode( html_entity_decode( get_the_title(), ENT_QUOTES, "UTF-8" ) ),
rawurlencode( get_permalink() ),
$via,
rawurlencode( __( 'Tweet', 'largo' ) )
__( 'Tweet', 'largo' )
);
}

Expand Down Expand Up @@ -283,12 +282,12 @@ function largo_post_social_links( $echo = true ) {
$top_term = get_term( (int) $top_term_id, $top_term_taxonomy );
$top_term_link = get_term_link( (int) $top_term_id, $top_term_taxonomy );
if ( ! is_wp_error( $top_term_link ) ) {
$more_social_links[] = '<li><a href="' . $top_term_link . '"><i class="icon-link"></i> <span>More on ' . $top_term->name . '</span></a></li>';
$more_social_links[] = '<li><a href="' . $top_term_link . '"><i class="icon-link"></i> <span>' . __( 'More on ', 'largo' ) . $top_term->name . '</span></a></li>';
}

$top_term_feed_link = get_term_feed_link( $top_term_id, $top_term_taxonomy );
if ( ! is_wp_error( $top_term_feed_link ) ) {
$more_social_links[] = '<li><a href="' . $top_term_feed_link . '"><i class="icon-rss"></i> <span>Subscribe to ' . $top_term->name . '</span></a></li>';
$more_social_links[] = '<li><a href="' . $top_term_feed_link . '"><i class="icon-rss"></i> <span>' . __( 'Subscribe to ', 'largo' ) . $top_term->name . '</span></a></li>';
}
}

Expand All @@ -299,7 +298,7 @@ function largo_post_social_links( $echo = true ) {
$twitter_username = get_user_meta( $post->post_author, 'twitter', true );
if ( ! empty( $twitter_username ) ) {
$twitter_link = 'https://twitter.com/' . $twitter_username;
$more_social_links[] = '<li><a href="' . $twitter_link . '"><i class="icon-twitter"></i> <span>Follow this author</span></a></li>';
$more_social_links[] = '<li><a href="' . $twitter_link . '"><i class="icon-twitter"></i> <span>' . __( 'Follow this author', 'largo' ) . '</span></a></li>';
}
}

Expand All @@ -311,14 +310,15 @@ function largo_post_social_links( $echo = true ) {
* @since 0.5.5
* @link https://github.com/INN/Largo/issues/219
*/
$more_social_links = apply_filters('largo_post_social_more_social_links', $more_social_links);
$more_social_links = apply_filters( 'largo_post_social_more_social_links', $more_social_links );

if ( count( $more_social_links ) ) {
$more_social_links_str = implode( $more_social_links, "\n" );

$more = __( 'More', 'largo' );

$output .= <<<EOD
<span class="more-social-links">
<a class="popover-toggle" href="#"><i class="icon-plus"></i><span class="hidden-phone">More</span></a>
<a class="popover-toggle" href="#"><i class="icon-plus"></i><span class="hidden-phone">${more}</span></a>
<span class="popover">
<ul>
${more_social_links_str}
Expand Down