Update modules

This commit is contained in:
Brian Miyaji
2017-01-26 14:12:13 +11:00
parent bfed0c46f1
commit c05059b629
2 changed files with 37 additions and 0 deletions

View File

@@ -107,6 +107,34 @@ class SP_Settings_Modules extends SP_Settings_Page {
</table>
<?php } ?>
<?php if ( ! class_exists( 'SportsPress_Facebook' ) ) { ?>
<table class="widefat" cellspacing="0">
<thead>
<tr><th>
<strong><?php _e( 'Facebook Module', 'sportspress' ); ?></strong>
</th></tr>
</thead>
<tbody>
<tr><td>
<ol><li><?php echo str_replace(
array( '[link]', '[/link]' ),
array( '<a target="_blank" href="https://www.facebook.com/themeboy">', '</a>' ),
__( 'Like [link]ThemeBoy[/link] on Facebook.','sportspress' )
); ?></li>
<li><?php echo str_replace(
array( '[link]', '[/link]' ),
array( '<a target="_blank" href="http://tboy.co/facebookmodule">', '</a>' ),
__( '[link]Get the download link[/link].', 'sportspress' )
); ?></li></ol>
<p class="sp-module-actions">
<span><?php _e( 'Free with Like', 'sportspress' ); ?></span>
<a class="button" href="http://tboy.co/facebook" target="_blank"><?php _e( 'Visit Page', 'sportspress' ); ?></a>
</p>
</td></tr>
</tbody>
</table>
<?php } ?>
<?php if ( current_user_can( 'install_themes' ) ) { ?>
<?php $theme = wp_get_theme(); ?>
<?php if ( 'rookie' == $theme->stylesheet ) { ?>

View File

@@ -131,6 +131,15 @@ class SP_Modules {
'icon' => 'dashicons dashicons-twitter',
'desc' => __( 'Add a Twitter feed to team, player, and staff pages.', 'sportspress' ),
),
'facebook' => array(
'label' => __( 'Facebook', 'sportspress' ),
'class' => 'SportsPress_Facebook',
'action' => __( 'Like Us on Facebook', 'sportspress' ),
'link' => 'http://tboy.co/facebook',
'tip' => __( 'Help spread the word by liking our Page and get the Facebook module for free.', 'sportspress' ),
'icon' => 'dashicons dashicons-facebook',
'desc' => __( 'Add a Facebook Page widget to embed and promote each team.', 'sportspress' ),
),
'sponsors' => array(
'label' => __( 'Sponsors', 'sportspress' ),
'class' => 'SportsPress_Sponsors',