CWS_Google_Picasa_Pro_Public

The public-facing functionality of the plugin.

Defined (2)

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

/public/class-cws-google-picasa-pro-public.php  
  1. class CWS_Google_Picasa_Pro_Public { 
  2.  
  3. /** 
  4. * The ID of this plugin. 
  5. * @since 2.0.0 
  6. * @access private 
  7. * @var string $plugin_name The ID of this plugin. 
  8. */ 
  9. private $plugin_name; 
  10.  
  11. /** 
  12. * The version of this plugin. 
  13. * @since 2.0.0 
  14. * @access private 
  15. * @var string $version The current version of this plugin. 
  16. */ 
  17. private $version; 
  18.  
  19. /** 
  20. * Initialize the class and set its properties. 
  21. * @since 2.0.0 
  22. * @param string $plugin_name The name of the plugin. 
  23. * @param string $version The version of this plugin. 
  24. */ 
  25. public function __construct( $plugin_name, $version, $isPro ) { 
  26.  
  27. $this->plugin_name = $plugin_name; 
  28. $this->version = $version; 
  29. $this->isPro = $isPro; 
  30.  
  31.  
  32. /** 
  33. * Register the stylesheets for the public-facing side of the site. 
  34. * @since 2.0.0 
  35. */ 
  36. public function enqueue_styles() { 
  37.  
  38. /** 
  39. * This function is provided for demonstration purposes only. 
  40. * An instance of this class should be passed to the run() function 
  41. * defined in CWS_Google_Picasa_Pro_Loader as all of the hooks are defined 
  42. * in that particular class. 
  43. * The CWS_Google_Picasa_Pro_Loader will then create the relationship 
  44. * between the defined hooks and the functions defined in this 
  45. * class. 
  46. */ 
  47.  
  48. wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/cws-google-picasa-pro-public.css', array(), $this->version, 'all' ); 
  49.  
  50. // TODO: make the inclusion of this conditional? 
  51. // can I move this to results_grid.php 
  52. wp_enqueue_style( 'lightbox', plugin_dir_url( __FILE__ ) . 'css/lightbox/lightbox.css', array(), $this->version, 'all' ); 
  53.  
  54. // removed these ready for v3 
  55. //wp_enqueue_style( 'cws_gpp_thumbnail_grid_css', plugin_dir_url( __FILE__ ) . 'css/default.css', array(), $this->version, 'all' ); 
  56. //wp_enqueue_style( 'cws_gpp_thumbnail_grid_css1', plugin_dir_url( __FILE__ ) . 'css/component.css', array(), $this->version, 'all' ); 
  57.  
  58. /** 
  59. * Register the stylesheets for the public-facing side of the site. 
  60. * @since 2.0.0 
  61. */ 
  62. public function enqueue_scripts() { 
  63.  
  64. /** 
  65. * This function is provided for demonstration purposes only. 
  66. * An instance of this class should be passed to the run() function 
  67. * defined in CWS_Google_Picasa_Pro_Loader as all of the hooks are defined 
  68. * in that particular class. 
  69. * The CWS_Google_Picasa_Pro_Loader will then create the relationship 
  70. * between the defined hooks and the functions defined in this 
  71. * class. 
  72. */ 
  73.  
  74. wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/cws-google-picasa-pro-public.js', array( 'jquery' ), $this->version, false ); 
  75.  
  76.  
  1. class CWS_Google_Picasa_Pro_Public { 
  2.  
  3. /** 
  4. * The ID of this plugin. 
  5. * @since 2.0.0 
  6. * @access private 
  7. * @var string $plugin_name The ID of this plugin. 
  8. */ 
  9. private $plugin_name; 
  10.  
  11. /** 
  12. * The version of this plugin. 
  13. * @since 2.0.0 
  14. * @access private 
  15. * @var string $version The current version of this plugin. 
  16. */ 
  17. private $version; 
  18.  
  19. /** 
  20. * Initialize the class and set its properties. 
  21. * @since 2.0.0 
  22. * @param string $plugin_name The name of the plugin. 
  23. * @param string $version The version of this plugin. 
  24. */ 
  25. public function __construct( $plugin_name, $version, $isPro ) { 
  26.  
  27. $this->plugin_name = $plugin_name; 
  28. $this->version = $version; 
  29. $this->isPro = $isPro; 
  30.  
  31.  
  32. /** 
  33. * Register the stylesheets for the public-facing side of the site. 
  34. * @since 2.0.0 
  35. */ 
  36. public function enqueue_styles() { 
  37.  
  38. /** 
  39. * This function is provided for demonstration purposes only. 
  40. * An instance of this class should be passed to the run() function 
  41. * defined in CWS_Google_Picasa_Pro_Loader as all of the hooks are defined 
  42. * in that particular class. 
  43. * The CWS_Google_Picasa_Pro_Loader will then create the relationship 
  44. * between the defined hooks and the functions defined in this 
  45. * class. 
  46. */ 
  47.  
  48. wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/cws-google-picasa-pro-public.css', array(), $this->version, 'all' ); 
  49.  
  50. // TODO: make the inclusion of this conditional? 
  51. // can I move this to results_grid.php 
  52. wp_enqueue_style( 'lightbox', plugin_dir_url( __FILE__ ) . 'css/lightbox/lightbox.css', array(), $this->version, 'all' ); 
  53.  
  54. // removed these ready for v3 
  55. //wp_enqueue_style( 'cws_gpp_thumbnail_grid_css', plugin_dir_url( __FILE__ ) . 'css/default.css', array(), $this->version, 'all' ); 
  56. //wp_enqueue_style( 'cws_gpp_thumbnail_grid_css1', plugin_dir_url( __FILE__ ) . 'css/component.css', array(), $this->version, 'all' ); 
  57.  
  58. /** 
  59. * Register the stylesheets for the public-facing side of the site. 
  60. * @since 2.0.0 
  61. */ 
  62. public function enqueue_scripts() { 
  63.  
  64. /** 
  65. * This function is provided for demonstration purposes only. 
  66. * An instance of this class should be passed to the run() function 
  67. * defined in CWS_Google_Picasa_Pro_Loader as all of the hooks are defined 
  68. * in that particular class. 
  69. * The CWS_Google_Picasa_Pro_Loader will then create the relationship 
  70. * between the defined hooks and the functions defined in this 
  71. * class. 
  72. */ 
  73.  
  74. wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/cws-google-picasa-pro-public.js', array( 'jquery' ), $this->version, false ); 
  75.  
  76.