bws_plugin_reviews_block

The Google Sitemap by BestWebSoft bws plugin reviews block function.

Description

bws_plugin_reviews_block( (string) $plugin_name, $plugin_slug ); 

Parameters (2)

0. $plugin_name (string)
The plugin name.
1. $plugin_slug
The plugin slug.

Usage

  1. if ( !function_exists( 'bws_plugin_reviews_block' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/bws_menu/bws_functions.php'; 
  3.  
  4. // The plugin name. 
  5. $plugin_name = ''; 
  6.  
  7. // The plugin slug. 
  8. $plugin_slug = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bws_plugin_reviews_block($plugin_name, $plugin_slug); 
  12.  

Defined (1)

The function is defined in the following location(s).

/bws_menu/bws_functions.php  
  1. function bws_plugin_reviews_block( $plugin_name, $plugin_slug ) { ?> 
  2. <div class="bws-plugin-reviews"> 
  3. <div class="bws-plugin-reviews-rate"> 
  4. <?php _e( 'If you enjoy our plugin, please give it 5 stars on WordPress', 'bestwebsoft' ); ?>: 
  5. <a href="http://wordpress.org/support/view/plugin-reviews/<?php echo $plugin_slug; ?>?filter=5" target="_blank" title="<?php echo $plugin_name; ?> reviews"><?php _e( 'Rate the plugin', 'bestwebsoft' ); ?></a> 
  6. </div> 
  7. <div class="bws-plugin-reviews-support"> 
  8. <?php _e( 'If there is something wrong about it, please contact us', 'bestwebsoft' ); ?>: 
  9. <a href="http://support.bestwebsoft.com">http://support.bestwebsoft.com</a> 
  10. </div> 
  11. <div class="bws-plugin-reviews-donate"> 
  12. <?php _e( 'Donations play an important role in supporting great projects', 'bestwebsoft' ); ?>: 
  13. <a href="https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10&product_id=13">Donate</a> 
  14. </div> 
  15. </div> 
  16. <?php }