37 lines
1.1 KiB
PHP
Raw Normal View History

2016-11-28 21:52:15 -08:00
<?php
2018-01-26 15:50:15 +01:00
function wp_statistics_generate_about_postbox_content() {
2016-11-28 21:52:15 -08:00
2018-01-26 15:50:15 +01:00
global $wpdb, $WP_Statistics;
?>
<div style="text-align: center;">
<a href="http://wp-statistics.com" target="_blank"><img
src="<?php echo plugins_url( 'wp-statistics/assets/images/logo-250.png' ); ?>"></a>
</div>
2016-11-28 21:52:15 -08:00
2018-01-26 15:50:15 +01:00
<div id="about-links" style="text-align: center;">
<p><a href="http://wp-statistics.com" target="_blank"><?php _e( 'Website', 'wp-statistics' ); ?></a></p>
| <p>
<a href="https://wordpress.org/support/plugin/wp-statistics/reviews/?rate=5#new-post" target="_blank"><?php _e(
'Rate and Review',
'wp-statistics'
); ?></a>
</p>
<?php
if ( current_user_can(
wp_statistics_validate_capability( $WP_Statistics->get_option( 'manage_capability', 'manage_options' ) )
) ) {
?>
| <p>
<a href="?page=<?php echo WP_Statistics::$page['settings']; ?>&tab=about"><?php _e(
'More Information',
'wp-statistics'
); ?></a>
</p>
<?php
}
?>
</div>
<?php
}
2016-11-28 21:52:15 -08:00