gglstmp_pro_block

The Google Sitemap by BestWebSoft gglstmp pro block function.

Description

gglstmp_pro_block( $func, (bool) $show_cross = true ); 

Parameters (2)

0. $func
The func.
1. $show_cross — Optional. (bool) => true
The show cross.

Usage

  1. if ( !function_exists( 'gglstmp_pro_block' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/includes/pro_banners.php'; 
  3.  
  4. // The func. 
  5. $func = null; 
  6.  
  7. // The show cross. 
  8. $show_cross = true; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = gglstmp_pro_block($func, $show_cross); 
  12.  

Defined (1)

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

/includes/pro_banners.php  
  1. function gglstmp_pro_block( $func, $show_cross = true ) { 
  2. global $gglstmp_plugin_info, $wp_version, $gglstmp_options; 
  3. if ( ! bws_hide_premium_options_check( $gglstmp_options ) || ! $show_cross ) { ?> 
  4. <div class="bws_pro_version_bloc gglstmp_pro_block <?php echo $func;?>" title="<?php _e( 'This options is available in Pro version of plugin', 'google-sitemap-plugin' ); ?>"> 
  5. <div class="bws_pro_version_table_bloc"> 
  6. <?php if ( $show_cross ) { ?> 
  7. <button type="submit" name="bws_hide_premium_options" class="notice-dismiss bws_hide_premium_options" title="<?php _e( 'Close', 'google-sitemap-plugin' ); ?>"></button> 
  8. <?php } ?> 
  9. <div class="bws_table_bg"></div> 
  10. <?php call_user_func( $func ); ?> 
  11. </div> 
  12. <div class="bws_pro_version_tooltip"> 
  13. <a class="bws_button" href="https://bestwebsoft.com/products/wordpress/plugins/google-sitemap/?k=28d4cf0b4ab6f56e703f46f60d34d039&pn=83&v=<?php echo $gglstmp_plugin_info["Version"]; ?>&wp_v=<?php echo $wp_version; ?>" target="_blank" title="Google Sitemap Pro"><?php _e( 'Upgrade to Pro', 'google-sitemap-plugin' ); ?></a> 
  14. </div> 
  15. </div> 
  16. <?php }