Gallery – Flagallery Photo Portfolio - Version 4.36

Version Description

Download this release

Release Info

Developer pasyuk
Plugin Icon 128x128 Gallery – Flagallery Photo Portfolio
Version 4.36
Comparing to
See all releases

Code changes from version 4.35 to 4.36

admin/admin.php CHANGED
@@ -7,7 +7,7 @@
7
  class flagAdminPanel {
8
 
9
  // constructor
10
- function flagAdminPanel() {
11
 
12
  // Add the admin menu
13
  add_action( 'admin_menu', array( &$this, 'add_menu' ) );
7
  class flagAdminPanel {
8
 
9
  // constructor
10
+ function __construct() {
11
 
12
  // Add the admin menu
13
  add_action( 'admin_menu', array( &$this, 'add_menu' ) );
admin/manage.php CHANGED
@@ -11,7 +11,7 @@ class flagManageGallery {
11
  var $search_result = false;
12
 
13
  // initiate the manage page
14
- function flagManageGallery() {
15
 
16
  // GET variables
17
  if(isset($_GET['gid']))
11
  var $search_result = false;
12
 
13
  // initiate the manage page
14
+ function __construct() {
15
 
16
  // GET variables
17
  if(isset($_GET['gid']))
admin/tinymce/tinymce.php CHANGED
@@ -12,14 +12,12 @@ class add_flag_button {
12
  var $pluginname = 'FlAG';
13
  var $path = '';
14
  var $internalVersion = 430;
15
-
16
  /**
17
- * add_flag_button::add_flag_button()
18
  * the constructor
19
- *
20
- * @return void
21
  */
22
- function add_flag_button() {
23
 
24
  // Set path to editor_plugin.js
25
  $this->path = FLAG_URLPATH . 'admin/tinymce/';
12
  var $pluginname = 'FlAG';
13
  var $path = '';
14
  var $internalVersion = 430;
15
+
16
  /**
 
17
  * the constructor
18
+ *
 
19
  */
20
+ function __construct() {
21
 
22
  // Set path to editor_plugin.js
23
  $this->path = FLAG_URLPATH . 'admin/tinymce/';
flag.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: GRAND Flash Album Gallery
4
  Plugin URI: http://codeasily.com/wordpress-plugins/flag/
5
  Description: The Grand Flagallery plugin - provides a comprehensive interface for managing photos and images through a set of admin pages, and it displays photos in a way that makes your web site look very professional.
6
- Version: 4.35
7
  Author: Rattus
8
  Author URI: http://codeasily.com/
9
 
@@ -23,7 +23,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
23
  if (!class_exists('flagLoad')) {
24
  class flagLoad {
25
 
26
- var $version = '4.35';
27
  var $dbversion = '2.75';
28
  var $minium_WP = '3.0';
29
  var $minium_WPMU = '3.0';
@@ -32,7 +32,7 @@ class flagLoad {
32
  var $manage_page;
33
  var $add_PHP5_notice = false;
34
 
35
- function flagLoad() {
36
 
37
  // Load the language file
38
  $this->load_textdomain();
3
  Plugin Name: GRAND Flash Album Gallery
4
  Plugin URI: http://codeasily.com/wordpress-plugins/flag/
5
  Description: The Grand Flagallery plugin - provides a comprehensive interface for managing photos and images through a set of admin pages, and it displays photos in a way that makes your web site look very professional.
6
+ Version: 4.36
7
  Author: Rattus
8
  Author URI: http://codeasily.com/
9
 
23
  if (!class_exists('flagLoad')) {
24
  class flagLoad {
25
 
26
+ var $version = '4.36';
27
  var $dbversion = '2.75';
28
  var $minium_WP = '3.0';
29
  var $minium_WPMU = '3.0';
32
  var $manage_page;
33
  var $add_PHP5_notice = false;
34
 
35
+ function __construct() {
36
 
37
  // Load the language file
38
  $this->load_textdomain();
lib/class.swfobject.php CHANGED
@@ -16,22 +16,20 @@ class flag_swfobject {
16
  var $attributes; // array of object's attributest
17
 
18
  /**
19
- * flag_swfobject::flag_swfobject()
20
  *
21
- * @param string $swfUrl (required) specifies the URL of your SWF
22
- * @param string $id (required) specifies the id of the HTML element (containing your alternative content) you would like to have replaced by your Flash content
23
- * @param string $width (required) specifies the width of your SWF
24
- * @param string $height (required) specifies the height of your SWF
25
- * @param string $version (required) specifies the Flash player version your SWF is published for (format is: "major.minor.release")
26
  * @param bool|string $expressInstallSwfurl (optional) specifies the URL of your express install SWF and activates Adobe express install
27
- * @param array|bool $flashvars (optional) specifies your flashvars with name:value pairs
28
- * @param array|bool $params (optional) specifies your nested object element params with name:value pair
29
- * @param array|bool $attributes (optional) specifies your object's attributes with name:value pairs
30
  * @param bool $gallery
31
  *
32
- * @return string the content
33
  */
34
- function flag_swfobject($swfUrl, $id, $width, $height, $version, $expressInstallSwfurl = false, $flashvars = false, $params = false, $attributes = false, $gallery = false){
35
 
36
  global $swfCounter;
37
 
16
  var $attributes; // array of object's attributest
17
 
18
  /**
 
19
  *
20
+ * @param string $swfUrl (required) specifies the URL of your SWF
21
+ * @param string $id (required) specifies the id of the HTML element (containing your alternative content) you would like to have replaced by your Flash content
22
+ * @param string $width (required) specifies the width of your SWF
23
+ * @param string $height (required) specifies the height of your SWF
24
+ * @param string $version (required) specifies the Flash player version your SWF is published for (format is: "major.minor.release")
25
  * @param bool|string $expressInstallSwfurl (optional) specifies the URL of your express install SWF and activates Adobe express install
26
+ * @param array|bool $flashvars (optional) specifies your flashvars with name:value pairs
27
+ * @param array|bool $params (optional) specifies your nested object element params with name:value pair
28
+ * @param array|bool $attributes (optional) specifies your object's attributes with name:value pairs
29
  * @param bool $gallery
30
  *
 
31
  */
32
+ function __construct($swfUrl, $id, $width, $height, $version, $expressInstallSwfurl = false, $flashvars = false, $params = false, $attributes = false, $gallery = false){
33
 
34
  global $swfCounter;
35
 
lib/gd.thumbnail.inc.php CHANGED
@@ -102,7 +102,7 @@ class flag_Thumbnail {
102
  * @param $fileName
103
  * @param bool $no_ErrorImage
104
  */
105
- function flag_Thumbnail($fileName,$no_ErrorImage = false) {
106
  //make sure the GD library is installed
107
  if(!function_exists("gd_info")) {
108
  echo 'You do not have the GD Library installed. This class requires the GD library to function properly.' . "\n";
102
  * @param $fileName
103
  * @param bool $no_ErrorImage
104
  */
105
+ function __construct($fileName,$no_ErrorImage = false) {
106
  //make sure the GD library is installed
107
  if(!function_exists("gd_info")) {
108
  echo 'You do not have the GD Library installed. This class requires the GD library to function properly.' . "\n";
lib/image.php CHANGED
@@ -38,9 +38,8 @@ class flagImage{
38
  * Constructor
39
  *
40
  * @param object $gallery The flagGallery object representing the gallery containing this image
41
- * @return void
42
  */
43
- function flagImage($gallery) {
44
 
45
  //This must be an object
46
  $gallery = (object) $gallery;
38
  * Constructor
39
  *
40
  * @param object $gallery The flagGallery object representing the gallery containing this image
 
41
  */
42
+ function __construct($gallery) {
43
 
44
  //This must be an object
45
  $gallery = (object) $gallery;
lib/meta.php CHANGED
@@ -17,13 +17,11 @@ class flagMeta {
17
  var $xmp_array = false; // XMP data array
18
 
19
  /**
20
- * flagMeta::flagMeta()
21
  *
22
  * @param $pic_id
23
  * @param bool $onlyEXIF parse only exif if needed
24
- * @return bool
25
  */
26
- function flagMeta($pic_id, $onlyEXIF = false) {
27
 
28
  //get the path and other data about the image
29
  $this->image = flagdb::find_image( $pic_id );
17
  var $xmp_array = false; // XMP data array
18
 
19
  /**
 
20
  *
21
  * @param $pic_id
22
  * @param bool $onlyEXIF parse only exif if needed
 
23
  */
24
+ function __construct($pic_id, $onlyEXIF = false) {
25
 
26
  //get the path and other data about the image
27
  $this->image = flagdb::find_image( $pic_id );
lib/shortcodes.php CHANGED
@@ -15,7 +15,7 @@ class FlAG_shortcodes {
15
  var $flag_add_mousewheel;
16
 
17
  // register the new shortcodes
18
- function FlAG_shortcodes() {
19
 
20
  // do_shortcode on the_excerpt could causes several unwanted output. Uncomment it on your own risk
21
  // add_filter('the_excerpt', array(&$this, 'convert_shortcode'));
15
  var $flag_add_mousewheel;
16
 
17
  // register the new shortcodes
18
+ function __construct() {
19
 
20
  // do_shortcode on the_excerpt could causes several unwanted output. Uncomment it on your own risk
21
  // add_filter('the_excerpt', array(&$this, 'convert_shortcode'));
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: Rattus
3
  Donate link: http://photogallerycreator.com/grand-flagallery/
4
  Tags: admin, flash gallery, fullscreen gallery, gallery, image, images, image gallery, mp3, music, page, photo, photo gallery, slider, plugin, slideshow, video, widget, iphone gallery, best gallery, portfolio, image rotator
5
  Requires at least: 3.0
6
- Tested up to: 4.2.2
7
  Stable tag: trunk
8
 
9
  Photo Gallery, Video Gallery, Music Album & Banner Rotator plugin with powerfull admin to manage your image galleries and media content
@@ -52,6 +52,9 @@ Also available mp3 players and widgets.
52
 
53
  == Changelog ==
54
 
 
 
 
55
  = v4.35 - 01.07.2015 =
56
  * Fixed alternative gallery thumbnails not showed on some themes
57
 
3
  Donate link: http://photogallerycreator.com/grand-flagallery/
4
  Tags: admin, flash gallery, fullscreen gallery, gallery, image, images, image gallery, mp3, music, page, photo, photo gallery, slider, plugin, slideshow, video, widget, iphone gallery, best gallery, portfolio, image rotator
5
  Requires at least: 3.0
6
+ Tested up to: 4.3.0
7
  Stable tag: trunk
8
 
9
  Photo Gallery, Video Gallery, Music Album & Banner Rotator plugin with powerfull admin to manage your image galleries and media content
52
 
53
  == Changelog ==
54
 
55
+ = v4.36 - 12.08.2015 =
56
+ * Support of Wordpress v4.3
57
+
58
  = v4.35 - 01.07.2015 =
59
  * Fixed alternative gallery thumbnails not showed on some themes
60
 
widgets/widgets.php CHANGED
@@ -11,9 +11,9 @@
11
  */
12
  class flagSlideshowWidget extends WP_Widget {
13
 
14
- function flagSlideshowWidget() {
15
  $widget_ops = array('classname' => 'widget_grandpages', 'description' => __( 'Show links to GRAND Pages as random images from the galleries', 'flag') );
16
- $this->WP_Widget('flag-grandpages', __('FLAGallery GRANDPages', 'flag'), $widget_ops);
17
  }
18
 
19
  function widget( $args, $instance ) {
@@ -171,9 +171,9 @@ add_action('widgets_init', create_function('', 'return register_widget("flagSlid
171
 
172
  class flagBannerWidget extends WP_Widget {
173
 
174
- function flagBannerWidget() {
175
  $widget_ops = array('classname' => 'widget_banner', 'description' => __( 'Show a Grand Flagallery Banner', 'flag') );
176
- $this->WP_Widget('flag-banner', __('FLAGallery Banner', 'flag'), $widget_ops);
177
  }
178
 
179
  function widget( $args, $instance ) {
@@ -284,9 +284,9 @@ function flagBannerWidget($xml, $w = '100%', $h = '200', $skin = 'rotator_widget
284
  */
285
  class flagWidget extends WP_Widget {
286
 
287
- function flagWidget() {
288
  $widget_ops = array('classname' => 'flag_images', 'description' => __( 'Add recent or random images from the galleries', 'flag') );
289
- $this->WP_Widget('flag-images', __('FLAGallery Widget', 'flag'), $widget_ops);
290
  }
291
 
292
  function update( $new_instance, $old_instance ) {
@@ -505,9 +505,9 @@ add_action('widgets_init', create_function('', 'return register_widget("flagWidg
505
  */
506
  class flagVideoWidget extends WP_Widget {
507
 
508
- function flagVideoWidget() {
509
  $widget_ops = array('classname' => 'flag_video', 'description' => __( 'Add recent or random video from the galleries', 'flag') );
510
- $this->WP_Widget('flag-video', __('FLAGallery Video Widget', 'flag'), $widget_ops);
511
  }
512
 
513
  function update( $new_instance, $old_instance ) {
@@ -653,9 +653,9 @@ add_action('widgets_init', create_function('', 'return register_widget("flagVide
653
  */
654
  class flagMusicWidget extends WP_Widget {
655
 
656
- function flagMusicWidget() {
657
  $widget_ops = array('classname' => 'widget_music', 'description' => __( 'Show a Grand Flagallery Music Player', 'flag') );
658
- $this->WP_Widget('flag-music', __('FLAGallery Music', 'flag'), $widget_ops);
659
  }
660
 
661
  function widget( $args, $instance ) {
11
  */
12
  class flagSlideshowWidget extends WP_Widget {
13
 
14
+ function __construct() {
15
  $widget_ops = array('classname' => 'widget_grandpages', 'description' => __( 'Show links to GRAND Pages as random images from the galleries', 'flag') );
16
+ parent::__construct('flag-grandpages', __('FLAGallery GRANDPages', 'flag'), $widget_ops);
17
  }
18
 
19
  function widget( $args, $instance ) {
171
 
172
  class flagBannerWidget extends WP_Widget {
173
 
174
+ function __construct() {
175
  $widget_ops = array('classname' => 'widget_banner', 'description' => __( 'Show a Grand Flagallery Banner', 'flag') );
176
+ parent::__construct('flag-banner', __('FLAGallery Banner', 'flag'), $widget_ops);
177
  }
178
 
179
  function widget( $args, $instance ) {
284
  */
285
  class flagWidget extends WP_Widget {
286
 
287
+ function __construct() {
288
  $widget_ops = array('classname' => 'flag_images', 'description' => __( 'Add recent or random images from the galleries', 'flag') );
289
+ parent::__construct('flag-images', __('FLAGallery Widget', 'flag'), $widget_ops);
290
  }
291
 
292
  function update( $new_instance, $old_instance ) {
505
  */
506
  class flagVideoWidget extends WP_Widget {
507
 
508
+ function __construct() {
509
  $widget_ops = array('classname' => 'flag_video', 'description' => __( 'Add recent or random video from the galleries', 'flag') );
510
+ parent::__construct('flag-video', __('FLAGallery Video Widget', 'flag'), $widget_ops);
511
  }
512
 
513
  function update( $new_instance, $old_instance ) {
653
  */
654
  class flagMusicWidget extends WP_Widget {
655
 
656
+ function __construct() {
657
  $widget_ops = array('classname' => 'widget_music', 'description' => __( 'Show a Grand Flagallery Music Player', 'flag') );
658
+ parent::__construct('flag-music', __('FLAGallery Music', 'flag'), $widget_ops);
659
  }
660
 
661
  function widget( $args, $instance ) {