Refactor social sharing buttons and add Twitter SVG icon
This commit is contained in:
@@ -116,24 +116,30 @@ if ( $last_updated ) {
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if ( ! empty( $repo_data ) ) :
|
||||
if ( isset( $repo_data['stargazers_count'] ) && $settings['templates']['stargazers_count'] ) : ?>
|
||||
if ( isset( $repo_data['stargazers_count'] ) && $settings['templates']['stargazers_count'] ) :
|
||||
?>
|
||||
<tr>
|
||||
<th><?php esc_html_e( 'Stars:', 'projects-wp' ); ?></th>
|
||||
<td><?php esc_html_e( $repo_data['stargazers_count'] ); ?></td>
|
||||
</tr>
|
||||
<?php endif;
|
||||
if ( isset( $repo_data['forks_count'] ) && $settings['templates']['forks'] ) : ?>
|
||||
<?php
|
||||
endif;
|
||||
if ( isset( $repo_data['forks_count'] ) && $settings['templates']['forks'] ) :
|
||||
?>
|
||||
<tr>
|
||||
<th><?php esc_html_e( 'Forks:', 'projects-wp' ); ?></th>
|
||||
<td><?php esc_html_e( $repo_data['forks_count'] ); ?></td>
|
||||
</tr>
|
||||
<?php endif;
|
||||
if ( isset( $repo_data['open_issues_count'] ) && $settings['templates']['open_issues_count'] ) : ?>
|
||||
<?php
|
||||
endif;
|
||||
if ( isset( $repo_data['open_issues_count'] ) && $settings['templates']['open_issues_count'] ) :
|
||||
?>
|
||||
<tr>
|
||||
<th><?php esc_html_e( 'Issues:', 'projects-wp' ); ?></th>
|
||||
<td><?php esc_html_e( $repo_data['open_issues_count'] ); ?></td>
|
||||
</tr>
|
||||
<?php endif;
|
||||
<?php
|
||||
endif;
|
||||
endif;
|
||||
?>
|
||||
</tbody>
|
||||
@@ -142,7 +148,7 @@ if ( $last_updated ) {
|
||||
|
||||
<?php if ( $settings['templates']['github_owner'] && $owner_avatar && $owner_name ) : ?>
|
||||
<div class="project-owner">
|
||||
<span class="project-owner-avatar" style="display:block !important;width:40px !important;height:40px !important;min-width:40px !important;min-height:40px !important;max-width:40px !important;max-height:40px !important;border-radius:50% !important;background-image:url('<?php echo esc_url( $owner_avatar ); ?>') !important;background-size:40px 40px !important;background-position:center center !important;background-repeat:no-repeat !important;flex-shrink:0 !important;flex-grow:0 !important;" aria-label="<?php echo esc_attr( $owner_name ); ?>" role="img"></span>
|
||||
<span class="project-owner-avatar" style="display:block !important;width:50px !important;height:50px !important;min-width:50px !important;min-height:50px !important;max-width:50px !important;max-height:50px !important;border-radius:50% !important;background-image:url('<?php echo esc_url( $owner_avatar ); ?>') !important;background-size:40px 40px !important;background-position:center center !important;background-repeat:no-repeat !important;flex-shrink:0 !important;flex-grow:0 !important;" aria-label="<?php echo esc_attr( $owner_name ); ?>" role="img"></span>
|
||||
<span class="project-owner-name">
|
||||
<a href="<?php echo esc_url( $owner_url ); ?>" target="_blank" rel="noopener noreferrer"><?php echo esc_html( $owner_name ); ?></a>
|
||||
</span>
|
||||
@@ -161,7 +167,7 @@ if ( $last_updated ) {
|
||||
<?php
|
||||
if ( $is_fse_theme ) {
|
||||
wp_footer();
|
||||
echo do_blocks( '<!-- wp:template-part {"slug":"footer"} /-->' );
|
||||
echo do_blocks( '<!-- wp:template-part {"slug":"footer"} /-->' ); // phpcs:ignore
|
||||
} else {
|
||||
get_footer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user