WCPGSK_About

The Woocommerce Poor Guys Swiss Knife WCPGSK About class.

Defined (1)

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

/classes/woocommerce-poor-guys-swiss-knife-about.php  
  1. class WCPGSK_About { 
  2. private $dir; 
  3. private $assets_dir; 
  4. private $assets_url; 
  5. private $file; 
  6.  
  7. /** 
  8. * Constructor function. 
  9. * @access public 
  10. * @since 1.1.1 
  11. * @return void 
  12. */ 
  13. public function __construct( $file ) { 
  14. global $wcpgsk; 
  15. $this->dir = dirname( $file ); 
  16. $this->file = $file; 
  17. $this->assets_dir = trailingslashit( $this->dir ) . 'assets'; 
  18. $this->assets_url = esc_url( trailingslashit( plugins_url( '/assets/', $file ) ) ); 
  19. $active_plugins = (array) get_option( 'active_plugins', array() ); 
  20. if ( is_multisite() ) : 
  21. $active_plugins = array_merge( $active_plugins, get_site_option( 'active_sitewide_plugins', array() ) ); 
  22. endif; 
  23. if ( !in_array( 'woocommerce-rich-guys-swiss-knife/woocommerce-rich-guys-swiss-knife.php', $active_plugins ) || array_key_exists( 'woocommerce-rich-guys-swiss-knife/woocommerce-rich-guys-swiss-knife.php', $active_plugins ) ) : 
  24. add_action( 'wcpgsk_settings_page_about', array($this, 'wcpgsk_settings_page_about'), 10, 1 ); 
  25. endif; 
  26.  
  27. /** 
  28. * WCPGSK About . 
  29. * @access public 
  30. * @param $options (contains wcpgsk settings) 
  31. * @since 1.1.1 
  32. * @output html 
  33. */ 
  34. public function wcpgsk_settings_page_about($options) { 
  35. global $wcpgsk; 
  36. ?> 
  37.  
  38. <h3 class="wcpgsk_acc_header"><?php echo __('About WooCommerce Poor Guys Swiss Knife', WCPGSK_DOMAIN); ?></h3> 
  39. <div> 
  40.  
  41. <div class="postbox" style="display:block;width:100%;margin:10px;clear:left;"> 
  42. WooCommerce Poor Guys Swiss Knife <?php _e('Version', WCPGSK_DOMAIN); ?>: <strong><?php echo $wcpgsk->version; ?></strong> 
  43. <br /><br /> 
  44. <h3 style="padding:5px;"><span><?php _e("Useful links:", WCPGSK_DOMAIN); ?></span></h3> 
  45. <div class="inside"> 
  46. <a href="http://wordpress.org/support/plugin/<?php echo WCPGSK_SLUG; ?>" class="button-secondary button-large"><?php _e("Support Forum", WCPGSK_DOMAIN); ?></a> 
  47. <a href="http://wordpress.org/extend/plugins/<?php echo WCPGSK_SLUG; ?>" class="button-secondary" button-large><?php _e("Rate this plugin", WCPGSK_DOMAIN); ?></a> 
  48. <a href="http://wordpress.org/support/view/plugin-reviews/<?php echo WCPGSK_SLUG; ?>" class="button-secondary button-large"><?php _e("Write a review about this plugin", WCPGSK_DOMAIN); ?></a> 
  49. <a href="http://profiles.wordpress.org/ulih/" class="button-secondary button-large" title="on WordPress.org"><?php _e("Wordpress Profile of the author", WCPGSK_DOMAIN); ?></a> 
  50. </div> 
  51. </div>  
  52. <div class="postbox" style="display:block;width:100%;margin:10px;clear:left;"> 
  53. <h3 style="padding:5px;"><span><?php _e("Like this plugin?", WCPGSK_DOMAIN); ?></span></h3> 
  54. <div class="inside"> 
  55. <p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KJ4K2X953H8CC" target="_blank"><img title="Thank you in advance!" src="https://www.paypalobjects.com/en_US/ES/i/btn/btn_donateCC_LG.gif" /></a></p> 
  56. </div> 
  57. </div>  
  58. <div class="postbox" style="display:block;width:100%;margin:10px;clear:left;"> 
  59. <h3 style="padding:5px;"><span><?php _e("Check out these themes and plugins too:", WCPGSK_DOMAIN); ?></span></h3> 
  60. <div class="inside"> 
  61. <ul> 
  62. <li><a href="http://takebarcelona.com/woocommerce-rich-guys-swiss-knife/">WooCommerce Rich Guys Swiss Knife</a> - <em><?php _e("The big brother of WooCommerce Poor Guys Swiss Knife", WCPGSK_DOMAIN); ?></em></li> 
  63. <li><a href="http://takebarcelona.com/tessa-authorship/">Tessa Authorship</a> - <em><?php _e("User independent authorship reflection for WordPress", WCPGSK_DOMAIN); ?></em></li> 
  64. <li><a href="http://takebarcelona.com/tessa-theme">Tessa</a> - <em><?php _e("A gallery, exposition and portfolio theme with built-in support for WooCommerce", WCPGSK_DOMAIN); ?></em></li> 
  65. </ul> 
  66. </div> 
  67. </div>  
  68. <div class="postbox" style="display:block;width:100%;margin:10px;clear:left;"> 
  69. <h3 style="padding:5px;"><span><?php _e("Sponsors:", WCPGSK_DOMAIN); ?></span></h3> 
  70. <div class="inside"> 
  71. <ul> 
  72. <li><a href="http://nicestay.net/">Nicestay</a> - <em><?php _e("Company that offers short term rentals of apartments and accommodations for holidays and business, based in Barcelona, Catalonia, Spain", WCPGSK_DOMAIN); ?></em></li> 
  73. </ul> 
  74. </div> 
  75. </div>  
  76. </div> 
  77. <?php