Version Description
- After plugin update go to Skins page and update skins with 'Update skins' button.
- If you use Facebook template and copied it in the root directory, then after each plugin update click 'Copy facebook.php file to root directory'.
- If GRAND FlAGallery displays an error message after upgrade, go to FlAGallery Overview page and press 'Reset settings'.
- Have some troubles with plugin? Try first reseting settings, deactivate and reactivate plugin.
Download this release
Release Info
Developer | pasyuk |
Plugin | Gallery – Flagallery Photo Portfolio |
Version | 2.55 |
Comparing to | |
See all releases |
Code changes from version 2.54 to 2.55
- admin/banner-box.php +2 -2
- admin/css/flagallery_noflash.css +1 -2
- admin/flag_install.php +1 -0
- admin/jgallery.php +11 -3
- admin/js/script.js +2 -1
- admin/manage-banner.php +2 -2
- admin/manage-images.php +2 -2
- admin/manage-playlist.php +3 -3
- admin/manage-video.php +3 -3
- admin/meta_box.php +5 -4
- admin/music-box.php +2 -2
- admin/settings.php +6 -2
- admin/video-box.php +2 -2
- changelog.txt +7 -0
- flag.php +2 -2
- lib/swfobject.php +47 -43
- readme.txt +7 -0
admin/banner-box.php
CHANGED
@@ -170,10 +170,10 @@ if($all_playlists) {
|
|
170 |
<tr id="<?php echo $playlist_name; ?>" <?php echo $class; ?> >
|
171 |
<td>
|
172 |
<a href="<?php echo $filepath.'&playlist='.$playlist_name.'&mode=edit'; ?>" class='edit' title="<?php _e('Edit'); ?>" >
|
173 |
-
<?php echo $playlist_data['title']; ?>
|
174 |
</a>
|
175 |
</td>
|
176 |
-
<td><?php echo $playlist_data['description']; echo ' ('.__("player", "flag").': <strong>'.$playlist_data['skin'].'</strong>)' ?></td>
|
177 |
<td><?php echo count($query_m); ?></td>
|
178 |
<td style="white-space: nowrap;"><input type="text" class="shortcode1" style="width: 200px; font-size: 9px;" readonly="readonly" onfocus="this.select()" value="[grandbanner xml=<?php echo $playlist_name; ?>]" /></td>
|
179 |
<td>
|
170 |
<tr id="<?php echo $playlist_name; ?>" <?php echo $class; ?> >
|
171 |
<td>
|
172 |
<a href="<?php echo $filepath.'&playlist='.$playlist_name.'&mode=edit'; ?>" class='edit' title="<?php _e('Edit'); ?>" >
|
173 |
+
<?php echo stripslashes($playlist_data['title']); ?>
|
174 |
</a>
|
175 |
</td>
|
176 |
+
<td><?php echo stripslashes($playlist_data['description']); echo ' ('.__("player", "flag").': <strong>'.$playlist_data['skin'].'</strong>)' ?></td>
|
177 |
<td><?php echo count($query_m); ?></td>
|
178 |
<td style="white-space: nowrap;"><input type="text" class="shortcode1" style="width: 200px; font-size: 9px;" readonly="readonly" onfocus="this.select()" value="[grandbanner xml=<?php echo $playlist_name; ?>]" /></td>
|
179 |
<td>
|
admin/css/flagallery_noflash.css
CHANGED
@@ -18,8 +18,7 @@ div.flashalbum br { display: none; }
|
|
18 |
.flag_alternate .flagcategory a.flag_pic_alt:hover { background-color: #ffffff; border: 2px solid #4a4a4a; color: #4a4a4a; text-decoration: none; z-index: 3; }
|
19 |
.flag_alternate .flagcategory a.flag_pic_alt.current, .flag_alternate .flagcategory a.flag_pic_alt.last { border-color: #4a4a4a; }
|
20 |
.flag_alternate .flagcategory a.flag_pic_alt > img { vertical-align: middle; display:inline-block; position: static; margin: 0 auto; padding: 0; border: none; height: 120px; width: 120px; min-height: 120px !important; min-width: 120px !important; max-height: 150px; max-width: 150px; line-height: 96px; font-size: 0; }
|
21 |
-
.flag_alternate .flagcategory a.flag_pic_alt .flag_pic_counters { position: absolute; left: 0; bottom: 0; right: 0; height: 20px; display: block; line-height: 20px; margin: 0; padding: 0 10px; text-align: left;
|
22 |
-
.flag_alternate .flagcategory a.flag_pic_alt:hover .flag_pic_counters { visibility: visible; }
|
23 |
.flag_alternate .flagcategory .flag_pic_counters i { display: inline-block; line-height: 20px; margin: 0; padding: 0 0 0 16px; background: url(../images/views.png) 0 50% no-repeat; font-style: normal; font-size: 12px; float: left; }
|
24 |
.flag_alternate .flagcategory .flag_pic_counters b { display: inline-block; line-height: 20px; margin: 0; padding: 0 0 0 16px; background: url(../images/like.png) 0 50% no-repeat; font-weight: normal; font-size: 12px; float: right; width: 25%; }
|
25 |
|
18 |
.flag_alternate .flagcategory a.flag_pic_alt:hover { background-color: #ffffff; border: 2px solid #4a4a4a; color: #4a4a4a; text-decoration: none; z-index: 3; }
|
19 |
.flag_alternate .flagcategory a.flag_pic_alt.current, .flag_alternate .flagcategory a.flag_pic_alt.last { border-color: #4a4a4a; }
|
20 |
.flag_alternate .flagcategory a.flag_pic_alt > img { vertical-align: middle; display:inline-block; position: static; margin: 0 auto; padding: 0; border: none; height: 120px; width: 120px; min-height: 120px !important; min-width: 120px !important; max-height: 150px; max-width: 150px; line-height: 96px; font-size: 0; }
|
21 |
+
.flag_alternate .flagcategory a.flag_pic_alt .flag_pic_counters { position: absolute; left: 0; bottom: 0; right: 0; height: 20px; display: block; line-height: 20px; margin: 0; padding: 0 10px; text-align: left; opacity: 0.85; filter: "alpha(opacity=85)"; }
|
|
|
22 |
.flag_alternate .flagcategory .flag_pic_counters i { display: inline-block; line-height: 20px; margin: 0; padding: 0 0 0 16px; background: url(../images/views.png) 0 50% no-repeat; font-style: normal; font-size: 12px; float: left; }
|
23 |
.flag_alternate .flagcategory .flag_pic_counters b { display: inline-block; line-height: 20px; margin: 0; padding: 0 0 0 16px; background: url(../images/like.png) 0 50% no-repeat; font-weight: normal; font-size: 12px; float: right; width: 25%; }
|
24 |
|
admin/flag_install.php
CHANGED
@@ -240,6 +240,7 @@ function flag_list_options() {
|
|
240 |
// Alternative gallery colors
|
241 |
$flag_options['jAlterGal'] = true;
|
242 |
$flag_options['jAlterGalScript'] = 1; // If '0' - use FancyBox script
|
|
|
243 |
$flag_options['BarsBG'] = '292929';
|
244 |
$flag_options['CatBGColor'] = '292929';
|
245 |
$flag_options['CatBGColorOver'] = '737373';
|
240 |
// Alternative gallery colors
|
241 |
$flag_options['jAlterGal'] = true;
|
242 |
$flag_options['jAlterGalScript'] = 1; // If '0' - use FancyBox script
|
243 |
+
$flag_options['disableViews'] = 0;
|
244 |
$flag_options['BarsBG'] = '292929';
|
245 |
$flag_options['CatBGColor'] = '292929';
|
246 |
$flag_options['CatBGColorOver'] = '737373';
|
admin/jgallery.php
CHANGED
@@ -63,6 +63,9 @@ $gID = explode( '_', $galleryID ); // get the gallery id
|
|
63 |
if ( is_user_logged_in() ) $exclude_clause = '';
|
64 |
else $exclude_clause = ' AND exclude<>1 ';
|
65 |
$i = 0;
|
|
|
|
|
|
|
66 |
foreach ( $gID as $galID ) {
|
67 |
$galID = (int) $galID;
|
68 |
if ( $galID == 0) {
|
@@ -100,9 +103,14 @@ foreach ( $gID as $galID ) {
|
|
100 |
if ($isCrawler){
|
101 |
$xml['alt'] .= '<a style="display:block; overflow: hidden; height: 100px; width: 115px; margin-bottom: 10px; background-color: #eeeeee; background-position: 22px 44px; text-align: left;" class="i'. $j++ .' flag_pic_alt" href="'.$siteurl.'/'.$thegalleries['path'].'/'.$picture['filename'].'" id="flag_pic_'.$pid.'" rel="gid_'.$galID.'_'.$skinID.'"><img style="float:left; margin-right: 10px; width: auto; height: auto; min-height:100px; min-width:115px;" title="'.strip_tags($picture['alttext']).'" alt="'.strip_tags($picture['alttext']).'" src="'.$siteurl.'/'.$thegalleries['path'].'/thumbs/thumbs_'.$picture['filename'].'" /><span style="display: block; overflow: hidden; text-decoration: none; color: #000; font-weight: normal;" class="flag_pic_desc" id="flag_desc_'.$pid.'"><strong>'.strip_tags($picture['alttext']).'</strong><br />'.strip_tags($picture['description'],'<b><u><i><span>').'</span></a>'.PHP_EOL;
|
102 |
} else {
|
103 |
-
|
104 |
-
|
105 |
-
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
107 |
}
|
108 |
$xml['alt'] .= '</div>'.PHP_EOL;
|
63 |
if ( is_user_logged_in() ) $exclude_clause = '';
|
64 |
else $exclude_clause = ' AND exclude<>1 ';
|
65 |
$i = 0;
|
66 |
+
if(isset($flag_options['disableViews']) && !empty($flag_options['disableViews'])){
|
67 |
+
$disableViews = 1;
|
68 |
+
} else { $disableViews = 0; }
|
69 |
foreach ( $gID as $galID ) {
|
70 |
$galID = (int) $galID;
|
71 |
if ( $galID == 0) {
|
103 |
if ($isCrawler){
|
104 |
$xml['alt'] .= '<a style="display:block; overflow: hidden; height: 100px; width: 115px; margin-bottom: 10px; background-color: #eeeeee; background-position: 22px 44px; text-align: left;" class="i'. $j++ .' flag_pic_alt" href="'.$siteurl.'/'.$thegalleries['path'].'/'.$picture['filename'].'" id="flag_pic_'.$pid.'" rel="gid_'.$galID.'_'.$skinID.'"><img style="float:left; margin-right: 10px; width: auto; height: auto; min-height:100px; min-width:115px;" title="'.strip_tags($picture['alttext']).'" alt="'.strip_tags($picture['alttext']).'" src="'.$siteurl.'/'.$thegalleries['path'].'/thumbs/thumbs_'.$picture['filename'].'" /><span style="display: block; overflow: hidden; text-decoration: none; color: #000; font-weight: normal;" class="flag_pic_desc" id="flag_desc_'.$pid.'"><strong>'.strip_tags($picture['alttext']).'</strong><br />'.strip_tags($picture['description'],'<b><u><i><span>').'</span></a>'.PHP_EOL;
|
105 |
} else {
|
106 |
+
if(!$disableViews){
|
107 |
+
$views = (intval($picture['hitcounter']) < 10000) ? $picture['hitcounter'] : round($picture['hitcounter']/1000, 1).'k';
|
108 |
+
$likes = (intval($picture['total_votes']) < 10000) ? $picture['total_votes'] : round($picture['total_votes']/1000, 1).'k';
|
109 |
+
$views_panel = '<span class="flag_pic_counters"><i>'.$views.'</i><b>'.$likes.'</b></span>';
|
110 |
+
} else {
|
111 |
+
$views_panel = '';
|
112 |
+
}
|
113 |
+
$xml['alt'] .= '<a class="i'. $j++ .' flag_pic_alt" href="'.$siteurl.'/'.$thegalleries['path'].'/'.$picture['filename'].'" id="flag_pic_'.$pid.'" rel="gid_'.$galID.'_'.$skinID.'" title="'.strip_tags($picture['alttext']).'">[img src='.$siteurl.'/'.$thegalleries['path'].'/thumbs/thumbs_'.$picture['filename'].']'.$views_panel.'<span class="flag_pic_desc" id="flag_desc_'.$pid.'"><strong>'.htmlspecialchars($picture['alttext']).'</strong><br /><span>'.htmlspecialchars($picture['description']).'</span></span></a>'.PHP_EOL;
|
114 |
}
|
115 |
}
|
116 |
$xml['alt'] .= '</div>'.PHP_EOL;
|
admin/js/script.js
CHANGED
@@ -85,7 +85,8 @@ function alternate_flag_e(t, ExtendVar){
|
|
85 |
var d = jQuery(this).html();
|
86 |
if(d) {
|
87 |
d = d.replace(/\[/g, '<');
|
88 |
-
d = d.replace(
|
|
|
89 |
jQuery(this).addClass('loaded').html(d);
|
90 |
}
|
91 |
jQuery(this).show();
|
85 |
var d = jQuery(this).html();
|
86 |
if(d) {
|
87 |
d = d.replace(/\[/g, '<');
|
88 |
+
d = d.replace(/src=/g, 'src="');
|
89 |
+
d = d.replace(/\]/g, '" />');
|
90 |
jQuery(this).addClass('loaded').html(d);
|
91 |
}
|
92 |
jQuery(this).show();
|
admin/manage-banner.php
CHANGED
@@ -147,11 +147,11 @@ jQuery(document).ready(function(){
|
|
147 |
</tr>
|
148 |
<tr>
|
149 |
<th align="left" valign="middle" scope="row"><?php _e('Title', 'flag'); ?>:</th>
|
150 |
-
<td align="left" valign="middle"><input type="text" size="50" name="playlist_title" value="<?php echo $playlist['title']; ?>" /></td>
|
151 |
</tr>
|
152 |
<tr>
|
153 |
<th align="left" valign="top" scope="row"><?php _e('Description', 'flag'); ?>:</th>
|
154 |
-
<td align="left" valign="top"><textarea name="playlist_descr" cols="60" rows="2" style="width: 95%" ><?php echo $playlist['description']; ?></textarea></td>
|
155 |
</tr>
|
156 |
<!--<tr>
|
157 |
<th align="left" valign="top" scope="row"><?php _e('Path', 'flag'); ?>:</th>
|
147 |
</tr>
|
148 |
<tr>
|
149 |
<th align="left" valign="middle" scope="row"><?php _e('Title', 'flag'); ?>:</th>
|
150 |
+
<td align="left" valign="middle"><input type="text" size="50" name="playlist_title" value="<?php echo stripslashes($playlist['title']); ?>" /></td>
|
151 |
</tr>
|
152 |
<tr>
|
153 |
<th align="left" valign="top" scope="row"><?php _e('Description', 'flag'); ?>:</th>
|
154 |
+
<td align="left" valign="top"><textarea name="playlist_descr" cols="60" rows="2" style="width: 95%" ><?php echo stripslashes($playlist['description']); ?></textarea></td>
|
155 |
</tr>
|
156 |
<!--<tr>
|
157 |
<th align="left" valign="top" scope="row"><?php _e('Path', 'flag'); ?>:</th>
|
admin/manage-images.php
CHANGED
@@ -228,11 +228,11 @@ jQuery(document).ready( function() {
|
|
228 |
<table class="form-table" >
|
229 |
<tr>
|
230 |
<th align="left" scope="row"><?php _e('Title', 'flag'); ?>:</th>
|
231 |
-
<td align="left"><input type="text" size="50" name="title" value="<?php echo $gallery->title; ?>" /></td>
|
232 |
</tr>
|
233 |
<tr>
|
234 |
<th align="left" scope="row"><?php _e('Description', 'flag'); ?>:</th>
|
235 |
-
<td align="left"><textarea name="gallerydesc" cols="30" rows="3" style="width: 95%" ><?php echo $gallery->galdesc; ?></textarea></td>
|
236 |
</tr>
|
237 |
<tr>
|
238 |
<th align="left" scope="row"><?php _e('Path', 'flag'); ?>:</th>
|
228 |
<table class="form-table" >
|
229 |
<tr>
|
230 |
<th align="left" scope="row"><?php _e('Title', 'flag'); ?>:</th>
|
231 |
+
<td align="left"><input type="text" size="50" name="title" value="<?php echo stripslashes($gallery->title); ?>" /></td>
|
232 |
</tr>
|
233 |
<tr>
|
234 |
<th align="left" scope="row"><?php _e('Description', 'flag'); ?>:</th>
|
235 |
+
<td align="left"><textarea name="gallerydesc" cols="30" rows="3" style="width: 95%" ><?php echo stripslashes($gallery->galdesc); ?></textarea></td>
|
236 |
</tr>
|
237 |
<tr>
|
238 |
<th align="left" scope="row"><?php _e('Path', 'flag'); ?>:</th>
|
admin/manage-playlist.php
CHANGED
@@ -148,11 +148,11 @@ jQuery(document).ready(function(){
|
|
148 |
</tr>
|
149 |
<tr>
|
150 |
<th align="left" valign="middle" scope="row"><?php _e('Title', 'flag'); ?>:</th>
|
151 |
-
<td align="left" valign="middle"><input type="text" size="50" name="playlist_title" value="<?php echo $playlist['title']; ?>" /></td>
|
152 |
</tr>
|
153 |
<tr>
|
154 |
-
<th align="left" valign="top" scope="row"><?php _e('Description', 'flag'); ?>:</th>
|
155 |
-
<td align="left" valign="top"><textarea name="playlist_descr" cols="60" rows="2" style="width: 95%" ><?php echo $playlist['description']; ?></textarea></td>
|
156 |
</tr>
|
157 |
<!--<tr>
|
158 |
<th align="left" valign="top" scope="row"><?php _e('Path', 'flag'); ?>:</th>
|
148 |
</tr>
|
149 |
<tr>
|
150 |
<th align="left" valign="middle" scope="row"><?php _e('Title', 'flag'); ?>:</th>
|
151 |
+
<td align="left" valign="middle"><input type="text" size="50" name="playlist_title" value="<?php echo stripslashes($playlist['title']); ?>" /></td>
|
152 |
</tr>
|
153 |
<tr>
|
154 |
+
<th align="left" valign="top" scope="row"><?php _e('Description', 'flag'); ?>:</th>
|
155 |
+
<td align="left" valign="top"><textarea name="playlist_descr" cols="60" rows="2" style="width: 95%" ><?php echo stripslashes($playlist['description']); ?></textarea></td>
|
156 |
</tr>
|
157 |
<!--<tr>
|
158 |
<th align="left" valign="top" scope="row"><?php _e('Path', 'flag'); ?>:</th>
|
admin/manage-video.php
CHANGED
@@ -148,11 +148,11 @@ jQuery(document).ready(function(){
|
|
148 |
</tr>
|
149 |
<tr>
|
150 |
<th align="left" valign="middle" scope="row"><?php _e('Title', 'flag'); ?>:</th>
|
151 |
-
<td align="left" valign="middle"><input type="text" size="50" name="playlist_title" value="<?php echo $playlist['title']; ?>" /></td>
|
152 |
</tr>
|
153 |
<tr>
|
154 |
-
<th align="left" valign="top" scope="row"><?php _e('Description', 'flag'); ?>:</th>
|
155 |
-
<td align="left" valign="top"><textarea name="playlist_descr" cols="60" rows="2" style="width: 95%" ><?php echo $playlist['description']; ?></textarea></td>
|
156 |
</tr>
|
157 |
<!--<tr>
|
158 |
<th align="left" valign="top" scope="row"><?php _e('Path', 'flag'); ?>:</th>
|
148 |
</tr>
|
149 |
<tr>
|
150 |
<th align="left" valign="middle" scope="row"><?php _e('Title', 'flag'); ?>:</th>
|
151 |
+
<td align="left" valign="middle"><input type="text" size="50" name="playlist_title" value="<?php echo stripslashes($playlist['title']); ?>" /></td>
|
152 |
</tr>
|
153 |
<tr>
|
154 |
+
<th align="left" valign="top" scope="row"><?php _e('Description', 'flag'); ?>:</th>
|
155 |
+
<td align="left" valign="top"><textarea name="playlist_descr" cols="60" rows="2" style="width: 95%" ><?php echo stripslashes($playlist['description']); ?></textarea></td>
|
156 |
</tr>
|
157 |
<!--<tr>
|
158 |
<th align="left" valign="top" scope="row"><?php _e('Path', 'flag'); ?>:</th>
|
admin/meta_box.php
CHANGED
@@ -9,8 +9,8 @@ $skinname = $flag_custom["mb_skinname"][0];
|
|
9 |
$scode = $flag_custom["mb_scode"][0];
|
10 |
$button_text = $flag_custom["mb_button"][0];
|
11 |
$button_link = $flag_custom["mb_button_link"][0];
|
12 |
-
if(!$button_text) $button_text =
|
13 |
-
if(!$button_link) $button_link = '
|
14 |
$bg_link = $flag_custom["mb_bg_link"][0];
|
15 |
$bg_pos = $flag_custom["mb_bg_pos"][0];
|
16 |
$bg_repeat = $flag_custom["mb_bg_repeat"][0];
|
@@ -125,11 +125,12 @@ function short_code(galleries,skin,wmode) {
|
|
125 |
</tr>
|
126 |
<tr>
|
127 |
<td nowrap="nowrap" valign="top"><div style="padding-top: 3px;"><?php _e("Back Button Text", 'flag'); ?>: </div></td>
|
128 |
-
<td valign="top"><input id="mb_button" name="mb_button" type="text" style="width: 49%;"
|
|
|
129 |
</tr>
|
130 |
<tr>
|
131 |
<td nowrap="nowrap" valign="top"><div style="padding-top: 3px;"><?php _e("Back Button Link", 'flag'); ?>: </div></td>
|
132 |
-
<td valign="top"><input id="mb_button_link" name="mb_button_link" type="text" style="width: 49%;"
|
133 |
<small><?php _e("Leave empty to use referer link", 'flag'); ?></small></td>
|
134 |
</tr>
|
135 |
<tr>
|
9 |
$scode = $flag_custom["mb_scode"][0];
|
10 |
$button_text = $flag_custom["mb_button"][0];
|
11 |
$button_link = $flag_custom["mb_button_link"][0];
|
12 |
+
if(!$button_text) $button_text = '';
|
13 |
+
if(!$button_link) $button_link = '';
|
14 |
$bg_link = $flag_custom["mb_bg_link"][0];
|
15 |
$bg_pos = $flag_custom["mb_bg_pos"][0];
|
16 |
$bg_repeat = $flag_custom["mb_bg_repeat"][0];
|
125 |
</tr>
|
126 |
<tr>
|
127 |
<td nowrap="nowrap" valign="top"><div style="padding-top: 3px;"><?php _e("Back Button Text", 'flag'); ?>: </div></td>
|
128 |
+
<td valign="top"><input id="mb_button" name="mb_button" type="text" style="width: 49%;" placeholder="Home" value="<?php echo $button_text; ?>" /><br />
|
129 |
+
<small><?php _e("Leave empty to hide Back button", 'flag'); ?></small></td>
|
130 |
</tr>
|
131 |
<tr>
|
132 |
<td nowrap="nowrap" valign="top"><div style="padding-top: 3px;"><?php _e("Back Button Link", 'flag'); ?>: </div></td>
|
133 |
+
<td valign="top"><input id="mb_button_link" name="mb_button_link" type="text" style="width: 49%;" placeholder="<?php echo home_url(); ?>" value="<?php echo $button_link; ?>" /><br />
|
134 |
<small><?php _e("Leave empty to use referer link", 'flag'); ?></small></td>
|
135 |
</tr>
|
136 |
<tr>
|
admin/music-box.php
CHANGED
@@ -122,10 +122,10 @@ if($all_playlists) {
|
|
122 |
<tr id="<?php echo $playlist_name; ?>" <?php echo $class; ?> >
|
123 |
<td>
|
124 |
<a href="<?php echo $filepath.'&playlist='.$playlist_name.'&mode=edit'; ?>" class='edit' title="<?php _e('Edit'); ?>" >
|
125 |
-
<?php echo $playlist_data['title']; ?>
|
126 |
</a>
|
127 |
</td>
|
128 |
-
<td><?php echo $playlist_data['description']; echo ' ('.__("player", "flag").': <strong>'.$playlist_data['skin'].'</strong>)' ?></td>
|
129 |
<td><?php echo count($query_m); ?></td>
|
130 |
<td style="white-space: nowrap;"><input type="text" class="shortcode1" style="width: 200px; font-size: 9px;" readonly="readonly" onfocus="this.select()" value="[grandmusic playlist=<?php echo $playlist_name; ?>]" /></td>
|
131 |
<td>
|
122 |
<tr id="<?php echo $playlist_name; ?>" <?php echo $class; ?> >
|
123 |
<td>
|
124 |
<a href="<?php echo $filepath.'&playlist='.$playlist_name.'&mode=edit'; ?>" class='edit' title="<?php _e('Edit'); ?>" >
|
125 |
+
<?php echo stripslashes($playlist_data['title']); ?>
|
126 |
</a>
|
127 |
</td>
|
128 |
+
<td><?php echo stripslashes($playlist_data['description']); echo ' ('.__("player", "flag").': <strong>'.$playlist_data['skin'].'</strong>)' ?></td>
|
129 |
<td><?php echo count($query_m); ?></td>
|
130 |
<td style="white-space: nowrap;"><input type="text" class="shortcode1" style="width: 200px; font-size: 9px;" readonly="readonly" onfocus="this.select()" value="[grandmusic playlist=<?php echo $playlist_name; ?>]" /></td>
|
131 |
<td>
|
admin/settings.php
CHANGED
@@ -108,13 +108,13 @@ jQuery(document).ready(function() {
|
|
108 |
<div id="imageoptions" class="cptab">
|
109 |
<form name="generaloptions" method="post">
|
110 |
<?php wp_nonce_field('flag_settings'); ?>
|
111 |
-
<input type="hidden" name="page_options" value="galleryPath,flashWidth,flashHeight,deleteImg,deepLinks,useMediaRSS,jAlterGal,jAlterGalScript,BarsBG,CatBGColor,CatBGColorOver,CatColor,CatColorOver,ThumbBG,ThumbLoaderColor,TitleColor,DescrColor,imgResize,imgWidth,imgHeight,imgQuality,galSort,galSortDir" />
|
112 |
<h2><?php _e('Image Gallery Options','flag'); ?></h2>
|
113 |
<h3><?php _e('General Options','flag'); ?></h3>
|
114 |
<table class="form-table flag-options">
|
115 |
<tr valign="top">
|
116 |
<th align="left" width="200"><?php _e('Gallery path','flag'); ?></th>
|
117 |
-
<td><input
|
118 |
<span class="setting-description"><?php _e('This is the default path for all galleries','flag'); ?></span></td>
|
119 |
</tr>
|
120 |
<tr valign="top">
|
@@ -153,6 +153,10 @@ jQuery(document).ready(function() {
|
|
153 |
</select>
|
154 |
</td>
|
155 |
</tr>
|
|
|
|
|
|
|
|
|
156 |
<tr>
|
157 |
<th width="200"><?php _e('Top Bar BG','flag'); ?>:</th>
|
158 |
<td><input class="colorPick" type="text" size="7" maxlength="6" id="BarsBG" name="BarsBG" value="<?php echo $flag_options['BarsBG']?>" /><div id="cp_BarsBG" style="background:#F9F9F9;position:absolute;display:none;"></div></td>
|
108 |
<div id="imageoptions" class="cptab">
|
109 |
<form name="generaloptions" method="post">
|
110 |
<?php wp_nonce_field('flag_settings'); ?>
|
111 |
+
<input type="hidden" name="page_options" value="galleryPath,flashWidth,flashHeight,deleteImg,deepLinks,useMediaRSS,jAlterGal,jAlterGalScript,BarsBG,CatBGColor,CatBGColorOver,CatColor,CatColorOver,ThumbBG,ThumbLoaderColor,TitleColor,DescrColor,imgResize,imgWidth,imgHeight,imgQuality,galSort,galSortDir,disableViews" />
|
112 |
<h2><?php _e('Image Gallery Options','flag'); ?></h2>
|
113 |
<h3><?php _e('General Options','flag'); ?></h3>
|
114 |
<table class="form-table flag-options">
|
115 |
<tr valign="top">
|
116 |
<th align="left" width="200"><?php _e('Gallery path','flag'); ?></th>
|
117 |
+
<td><input readonly="readonly" type="text" size="35" name="galleryPath" value="<?php echo $flag_options['galleryPath']; ?>" />
|
118 |
<span class="setting-description"><?php _e('This is the default path for all galleries','flag'); ?></span></td>
|
119 |
</tr>
|
120 |
<tr valign="top">
|
153 |
</select>
|
154 |
</td>
|
155 |
</tr>
|
156 |
+
<tr>
|
157 |
+
<th align="left"><?php _e('Disable image views/likes counter on thumbnails','flag'); ?></th>
|
158 |
+
<td><input type="checkbox" name="disableViews" value="1" <?php checked('1', $flag_options['disableViews']); ?> /></td>
|
159 |
+
</tr>
|
160 |
<tr>
|
161 |
<th width="200"><?php _e('Top Bar BG','flag'); ?>:</th>
|
162 |
<td><input class="colorPick" type="text" size="7" maxlength="6" id="BarsBG" name="BarsBG" value="<?php echo $flag_options['BarsBG']?>" /><div id="cp_BarsBG" style="background:#F9F9F9;position:absolute;display:none;"></div></td>
|
admin/video-box.php
CHANGED
@@ -122,10 +122,10 @@ if($all_playlists) {
|
|
122 |
<tr id="<?php echo $playlist_name; ?>" <?php echo $class; ?> >
|
123 |
<td>
|
124 |
<a href="<?php echo $filepath.'&playlist='.$playlist_name.'&mode=edit'; ?>" class='edit' title="<?php _e('Edit'); ?>" >
|
125 |
-
<?php echo $playlist_data['title']; ?>
|
126 |
</a>
|
127 |
</td>
|
128 |
-
<td><?php echo $playlist_data['description']; echo ' ('.__("player", "flag").': <strong>'.$playlist_data['skin'].'</strong>)' ?></td>
|
129 |
<td><?php echo count($query_m); ?></td>
|
130 |
<td style="white-space: nowrap;"><input type="text" class="shortcode1" style="width: 200px; font-size: 9px;" readonly="readonly" onfocus="this.select()" value="[grandvideo playlist=<?php echo $playlist_name; ?>]" /></td>
|
131 |
<td>
|
122 |
<tr id="<?php echo $playlist_name; ?>" <?php echo $class; ?> >
|
123 |
<td>
|
124 |
<a href="<?php echo $filepath.'&playlist='.$playlist_name.'&mode=edit'; ?>" class='edit' title="<?php _e('Edit'); ?>" >
|
125 |
+
<?php echo stripslashes($playlist_data['title']); ?>
|
126 |
</a>
|
127 |
</td>
|
128 |
+
<td><?php echo stripslashes($playlist_data['description']); echo ' ('.__("player", "flag").': <strong>'.$playlist_data['skin'].'</strong>)' ?></td>
|
129 |
<td><?php echo count($query_m); ?></td>
|
130 |
<td style="white-space: nowrap;"><input type="text" class="shortcode1" style="width: 200px; font-size: 9px;" readonly="readonly" onfocus="this.select()" value="[grandvideo playlist=<?php echo $playlist_name; ?>]" /></td>
|
131 |
<td>
|
changelog.txt
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
GRAND FlAGallery
|
2 |
by Rattus & CodEasily DEV Team
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
= v2.54 - 05.03.2013 =
|
5 |
* Fixed: Error opening pages "call this page directly" message
|
6 |
* Changed: Decreased flash version detection (for Mac OS users)
|
1 |
GRAND FlAGallery
|
2 |
by Rattus & CodEasily DEV Team
|
3 |
|
4 |
+
= v2.55 - 19.03.2013 =
|
5 |
+
* Fixed: Alternative gallery on mobile browsers not shows big image on tap
|
6 |
+
* Fixed: Alternative gallery brokes if file name have spaces.
|
7 |
+
* Added: Option to hide views/likes counter on alternative gallery
|
8 |
+
* Fixed: Back button for GRAND Pages
|
9 |
+
* Fixed: Playlists not worked if galleries path different from default
|
10 |
+
|
11 |
= v2.54 - 05.03.2013 =
|
12 |
* Fixed: Error opening pages "call this page directly" message
|
13 |
* Changed: Decreased flash version detection (for Mac OS users)
|
flag.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: GRAND Flash Album Gallery
|
4 |
Plugin URI: http://codeasily.com/wordpress-plugins/flash-album-gallery/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: 2.
|
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 = '2.
|
27 |
var $dbversion = '1.24';
|
28 |
var $minium_WP = '3.0';
|
29 |
var $minium_WPMU = '3.0';
|
3 |
Plugin Name: GRAND Flash Album Gallery
|
4 |
Plugin URI: http://codeasily.com/wordpress-plugins/flash-album-gallery/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: 2.55
|
7 |
Author: Rattus
|
8 |
Author URI: http://codeasily.com/
|
9 |
|
23 |
if (!class_exists('flagLoad')) {
|
24 |
class flagLoad {
|
25 |
|
26 |
+
var $version = '2.55';
|
27 |
var $dbversion = '1.24';
|
28 |
var $minium_WP = '3.0';
|
29 |
var $minium_WPMU = '3.0';
|
lib/swfobject.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* @return string the content
|
18 |
*/
|
19 |
function flagShowFlashAlbum($galleryID, $name='', $width='', $height='', $skin='', $playlist='', $wmode='', $linkto='', $fullwindow=false, $align='') {
|
20 |
-
|
21 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
22 |
|
23 |
if($linkto) {
|
@@ -30,7 +30,7 @@ function flagShowFlashAlbum($galleryID, $name='', $width='', $height='', $skin='
|
|
30 |
if(!is_dir($skinpath)) {
|
31 |
$skin = 'minima_jn';
|
32 |
$skinpath = ABSPATH.'wp-content/plugins/flagallery-skins/'.$skin;
|
33 |
-
}
|
34 |
$swfmousewheel = '';
|
35 |
$flashBacktransparent = '';
|
36 |
$flashBackcolor = '';
|
@@ -119,13 +119,13 @@ function flagShowFlashAlbum($galleryID, $name='', $width='', $height='', $skin='
|
|
119 |
switch($align){
|
120 |
case 'left':
|
121 |
$margin = 'margin-right: auto;';
|
122 |
-
|
123 |
case 'center':
|
124 |
$margin = 'margin:0 auto;';
|
125 |
-
|
126 |
case 'right':
|
127 |
$margin = 'margin-left: auto;';
|
128 |
-
|
129 |
}
|
130 |
$out = '<div class="flashalbumwraper" style="text-align:'.$align.';"><div class="flashalbum" style="width:'.$width.';height:'.$height.';'.$margin.'">' . $swfobject->output($alternate) . '</div></div>';
|
131 |
} else {
|
@@ -141,17 +141,18 @@ function flagShowFlashAlbum($galleryID, $name='', $width='', $height='', $skin='
|
|
141 |
}
|
142 |
|
143 |
$out = apply_filters('flag_show_flash_content', $out);
|
144 |
-
|
145 |
-
return $out;
|
146 |
}
|
147 |
|
148 |
function flagShowMPlayer($playlist, $width, $height, $wmode='', $skin='', $isWidget=false) {
|
149 |
-
|
150 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
151 |
-
|
152 |
|
153 |
$flag_options = get_option('flag_options');
|
154 |
-
$
|
|
|
155 |
$playlist_data = get_playlist_data(ABSPATH.$playlistPath);
|
156 |
if(!$skin){
|
157 |
$skin = $playlist_data['skin'];
|
@@ -160,9 +161,9 @@ function flagShowMPlayer($playlist, $width, $height, $wmode='', $skin='', $isWid
|
|
160 |
include_once ( $skinpath.'/'.$skin.'.php' );
|
161 |
$isCrawler = flagGetUserNow($_SERVER['HTTP_USER_AGENT']);
|
162 |
$args = array(
|
163 |
-
'playlist' => $playlist,
|
164 |
-
'skin' => $skin,
|
165 |
-
'width' => $width,
|
166 |
'height' => $height,
|
167 |
'wmode' => $wmode,
|
168 |
'crawler' => $isCrawler,
|
@@ -173,12 +174,13 @@ function flagShowMPlayer($playlist, $width, $height, $wmode='', $skin='', $isWid
|
|
173 |
}
|
174 |
|
175 |
function flagShowVPlayer($playlist, $width, $height, $wmode='') {
|
176 |
-
|
177 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
178 |
-
|
179 |
|
180 |
$flag_options = get_option('flag_options');
|
181 |
-
$
|
|
|
182 |
$playlist_data = get_v_playlist_data(ABSPATH.$playlistPath);
|
183 |
$skin = $playlist_data['skin'];
|
184 |
$skinpath = ABSPATH.'wp-content/plugins/flagallery-skins/'.$skin;
|
@@ -190,9 +192,9 @@ function flagShowVPlayer($playlist, $width, $height, $wmode='') {
|
|
190 |
}
|
191 |
$isCrawler = flagGetUserNow($_SERVER['HTTP_USER_AGENT']);
|
192 |
$args = array(
|
193 |
-
'playlist' => $playlist,
|
194 |
-
'skin' => $skin,
|
195 |
-
'width' => $width,
|
196 |
'height' => $height,
|
197 |
'wmode' => $wmode,
|
198 |
'lkey' => $lkey,
|
@@ -247,17 +249,18 @@ function flagShowVmPlayer($id, $w, $h, $autoplay) {
|
|
247 |
}
|
248 |
|
249 |
$out = apply_filters('flag_flv_mini', $out);
|
250 |
-
|
251 |
return $out;
|
252 |
}
|
253 |
|
254 |
function flagShowBanner($xml, $width, $height, $wmode='') {
|
255 |
|
256 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
257 |
-
|
258 |
|
259 |
$flag_options = get_option('flag_options');
|
260 |
-
$
|
|
|
261 |
$playlist_data = get_b_playlist_data(ABSPATH.$playlistPath);
|
262 |
$skin = $playlist_data['skin'];
|
263 |
$items = $playlist_data['items'];
|
@@ -286,10 +289,11 @@ function flagShowBanner($xml, $width, $height, $wmode='') {
|
|
286 |
function flagShowWidgetBanner($xml, $width, $height, $skin) {
|
287 |
|
288 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
289 |
-
|
290 |
|
291 |
$flag_options = get_option('flag_options');
|
292 |
-
$
|
|
|
293 |
$playlist_data = get_b_playlist_data(ABSPATH.$playlistPath);
|
294 |
if(!$skin) {
|
295 |
$skin = $playlist_data['skin'];
|
@@ -315,32 +319,32 @@ function flagShowWidgetBanner($xml, $width, $height, $skin) {
|
|
315 |
}
|
316 |
|
317 |
function flagGetBetween($content,$start,$end){
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
}
|
325 |
|
326 |
function flagGetUserNow($userAgent) {
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
}
|
333 |
|
334 |
function get_include_contents($filename, $galleryID, $skin, $skinID, $width, $height, $altColors) {
|
335 |
-
|
336 |
-
|
337 |
extract($altColors);
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
}
|
345 |
|
346 |
?>
|
17 |
* @return string the content
|
18 |
*/
|
19 |
function flagShowFlashAlbum($galleryID, $name='', $width='', $height='', $skin='', $playlist='', $wmode='', $linkto='', $fullwindow=false, $align='') {
|
20 |
+
global $post;
|
21 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
22 |
|
23 |
if($linkto) {
|
30 |
if(!is_dir($skinpath)) {
|
31 |
$skin = 'minima_jn';
|
32 |
$skinpath = ABSPATH.'wp-content/plugins/flagallery-skins/'.$skin;
|
33 |
+
}
|
34 |
$swfmousewheel = '';
|
35 |
$flashBacktransparent = '';
|
36 |
$flashBackcolor = '';
|
119 |
switch($align){
|
120 |
case 'left':
|
121 |
$margin = 'margin-right: auto;';
|
122 |
+
break;
|
123 |
case 'center':
|
124 |
$margin = 'margin:0 auto;';
|
125 |
+
break;
|
126 |
case 'right':
|
127 |
$margin = 'margin-left: auto;';
|
128 |
+
break;
|
129 |
}
|
130 |
$out = '<div class="flashalbumwraper" style="text-align:'.$align.';"><div class="flashalbum" style="width:'.$width.';height:'.$height.';'.$margin.'">' . $swfobject->output($alternate) . '</div></div>';
|
131 |
} else {
|
141 |
}
|
142 |
|
143 |
$out = apply_filters('flag_show_flash_content', $out);
|
144 |
+
|
145 |
+
return $out;
|
146 |
}
|
147 |
|
148 |
function flagShowMPlayer($playlist, $width, $height, $wmode='', $skin='', $isWidget=false) {
|
149 |
+
|
150 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
151 |
+
require_once ( dirname(dirname(__FILE__)) . '/admin/playlist.functions.php');
|
152 |
|
153 |
$flag_options = get_option('flag_options');
|
154 |
+
$galleryPath = trim($flag_options['galleryPath'],'/');
|
155 |
+
$playlistPath = $galleryPath.'/playlists/'.$playlist.'.xml';
|
156 |
$playlist_data = get_playlist_data(ABSPATH.$playlistPath);
|
157 |
if(!$skin){
|
158 |
$skin = $playlist_data['skin'];
|
161 |
include_once ( $skinpath.'/'.$skin.'.php' );
|
162 |
$isCrawler = flagGetUserNow($_SERVER['HTTP_USER_AGENT']);
|
163 |
$args = array(
|
164 |
+
'playlist' => $playlist,
|
165 |
+
'skin' => $skin,
|
166 |
+
'width' => $width,
|
167 |
'height' => $height,
|
168 |
'wmode' => $wmode,
|
169 |
'crawler' => $isCrawler,
|
174 |
}
|
175 |
|
176 |
function flagShowVPlayer($playlist, $width, $height, $wmode='') {
|
177 |
+
|
178 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
179 |
+
require_once ( dirname(dirname(__FILE__)) . '/admin/video.functions.php');
|
180 |
|
181 |
$flag_options = get_option('flag_options');
|
182 |
+
$galleryPath = trim($flag_options['galleryPath'],'/');
|
183 |
+
$playlistPath = $galleryPath.'/playlists/video/'.$playlist.'.xml';
|
184 |
$playlist_data = get_v_playlist_data(ABSPATH.$playlistPath);
|
185 |
$skin = $playlist_data['skin'];
|
186 |
$skinpath = ABSPATH.'wp-content/plugins/flagallery-skins/'.$skin;
|
192 |
}
|
193 |
$isCrawler = flagGetUserNow($_SERVER['HTTP_USER_AGENT']);
|
194 |
$args = array(
|
195 |
+
'playlist' => $playlist,
|
196 |
+
'skin' => $skin,
|
197 |
+
'width' => $width,
|
198 |
'height' => $height,
|
199 |
'wmode' => $wmode,
|
200 |
'lkey' => $lkey,
|
249 |
}
|
250 |
|
251 |
$out = apply_filters('flag_flv_mini', $out);
|
252 |
+
|
253 |
return $out;
|
254 |
}
|
255 |
|
256 |
function flagShowBanner($xml, $width, $height, $wmode='') {
|
257 |
|
258 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
259 |
+
require_once ( dirname(dirname(__FILE__)) . '/admin/banner.functions.php');
|
260 |
|
261 |
$flag_options = get_option('flag_options');
|
262 |
+
$galleryPath = trim($flag_options['galleryPath'],'/');
|
263 |
+
$playlistPath = $galleryPath.'/playlists/banner/'.$xml.'.xml';
|
264 |
$playlist_data = get_b_playlist_data(ABSPATH.$playlistPath);
|
265 |
$skin = $playlist_data['skin'];
|
266 |
$items = $playlist_data['items'];
|
289 |
function flagShowWidgetBanner($xml, $width, $height, $skin) {
|
290 |
|
291 |
require_once ( dirname(__FILE__) . '/class.swfobject.php' );
|
292 |
+
require_once ( dirname(dirname(__FILE__)) . '/admin/banner.functions.php');
|
293 |
|
294 |
$flag_options = get_option('flag_options');
|
295 |
+
$galleryPath = trim($flag_options['galleryPath'],'/');
|
296 |
+
$playlistPath = $galleryPath.'/playlists/banner/'.$xml.'.xml';
|
297 |
$playlist_data = get_b_playlist_data(ABSPATH.$playlistPath);
|
298 |
if(!$skin) {
|
299 |
$skin = $playlist_data['skin'];
|
319 |
}
|
320 |
|
321 |
function flagGetBetween($content,$start,$end){
|
322 |
+
$r = explode($start, $content);
|
323 |
+
if (isset($r[1])){
|
324 |
+
$r = explode($end, $r[1]);
|
325 |
+
return $r[0];
|
326 |
+
}
|
327 |
+
return '';
|
328 |
}
|
329 |
|
330 |
function flagGetUserNow($userAgent) {
|
331 |
+
$crawlers = 'Google|msnbot|Rambler|Yahoo|AbachoBOT|accoona|FeedBurner|' .
|
332 |
+
'AcioRobot|ASPSeek|CocoCrawler|Dumbot|FAST-WebCrawler|' .
|
333 |
+
'GeonaBot|Gigabot|Lycos|MSRBOT|Scooter|AltaVista|IDBot|eStyle|Scrubby|yandex';
|
334 |
+
$isCrawler = (preg_match("/$crawlers/i", $userAgent) > 0);
|
335 |
+
return $isCrawler;
|
336 |
}
|
337 |
|
338 |
function get_include_contents($filename, $galleryID, $skin, $skinID, $width, $height, $altColors) {
|
339 |
+
if (is_file($filename)) {
|
340 |
+
ob_start();
|
341 |
extract($altColors);
|
342 |
+
include $filename;
|
343 |
+
$contents = ob_get_contents();
|
344 |
+
ob_end_clean();
|
345 |
+
return $contents;
|
346 |
+
}
|
347 |
+
return false;
|
348 |
}
|
349 |
|
350 |
?>
|
readme.txt
CHANGED
@@ -41,6 +41,13 @@ Now you can see "Views" of each photo in the gallery and visitors can "Like" ima
|
|
41 |
|
42 |
== Changelog ==
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
= v2.54 - 05.03.2013 =
|
45 |
* Fixed: Error opening pages "call this page directly" message
|
46 |
* Changed: Decreased flash version detection (for Mac OS users)
|
41 |
|
42 |
== Changelog ==
|
43 |
|
44 |
+
= v2.55 - 19.03.2013 =
|
45 |
+
* Fixed: Alternative gallery on mobile browsers not shows big image on tap
|
46 |
+
* Fixed: Alternative gallery brokes if file name have spaces.
|
47 |
+
* Added: Option to hide views/likes counter on alternative gallery
|
48 |
+
* Fixed: Back button for GRAND Pages
|
49 |
+
* Fixed: Playlists not worked if galleries path different from default
|
50 |
+
|
51 |
= v2.54 - 05.03.2013 =
|
52 |
* Fixed: Error opening pages "call this page directly" message
|
53 |
* Changed: Decreased flash version detection (for Mac OS users)
|