Gallery – Flagallery Photo Portfolio - Version 4.35

Version Description

Download this release

Release Info

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

Code changes from version 4.33 to 4.35

admin/banner-sort.php CHANGED
@@ -1,115 +1,115 @@
1
  <?php
2
 
3
- function flag_b_playlist_order($playlist = 'deprecated'){
4
  global $wpdb;
5
-
6
  //this is the url without any presort variable
7
- $base_url = admin_url() . 'admin.php?page=' . urlencode($_GET['page']);
8
- $flag_options = get_option('flag_options');
9
- $filename = sanitize_flagname($_GET['playlist']);
10
- $playlistPath = $flag_options['galleryPath'].'playlists/banner/'.$filename.'.xml';
11
- $playlist = get_b_playlist_data(ABSPATH.$playlistPath);
12
- $items_a = $playlist['items'];
13
- $items = implode(',',$playlist['items']);
14
- ?>
15
- <script type="text/javascript" src="<?php echo FLAG_URLPATH; ?>admin/js/jquery.tablednd_0_5.js"></script>
16
- <script type="text/javascript" src="<?php echo FLAG_URLPATH; ?>admin/js/jquery.tablesorter.js"></script>
17
- <div class="flag-wrap">
18
- <h2><?php _e('Sort Gallery', 'flag'); ?></h2>
19
 
20
- <div class="alignright tablenav" style="margin-bottom: -36px;">
21
- <a href="<?php echo esc_url($base_url.'&playlist='.$filename.'&mode=edit'); ?>" class="button-secondary action"><?php _e('Back to playlist', 'flag'); ?></a>
22
- </div>
23
- <form id="sortPlaylist" method="POST" action="<?php echo esc_url($base_url.'&playlist='.$filename.'&mode=edit'); ?>" accept-charset="utf-8">
24
- <div class="alignleft tablenav">
25
- <?php wp_nonce_field('flag_update'); ?>
26
- <input class="button-primary action" type="submit" name="updatePlaylist" value="<?php _e('Update Sort Order', 'flag'); ?>" />
27
  </div>
28
- <br clear="all" />
29
- <input type="hidden" name="playlist_title" value="<?php echo esc_html($playlist['title']); ?>" />
30
- <input type="hidden" name="skinname" value="<?php echo sanitize_flagname($playlist['skin']); ?>" />
31
- <input type="hidden" name="skinaction" value="<?php echo sanitize_flagname($playlist['skin']); ?>" />
32
- <textarea style="display: none;" name="playlist_descr" cols="40" rows="1"><?php echo esc_html($playlist['description']); ?></textarea>
33
- <script type="text/javascript">
34
- /*<![CDATA[*/
35
- jQuery(document).ready(function($) {
36
- // Initialise the table
37
- jQuery("#listitems").tableDnD({
38
- onDragClass: "myDragClass",
39
- onDrop: function() {
40
- jQuery("#listitems tr:even").addClass('alternate');
41
- jQuery("#listitems tr:odd").removeClass('alternate');
42
- }
43
- });
44
- $("#flag-listitems").tablesorter({
45
- // pass the headers argument and assing a object
46
- headers: {
47
- // assign the secound column (we start counting zero)
48
- 1: {
49
- // disable it by setting the property sorter to false
50
- sorter: false
51
- }
52
- }
53
- });
54
- $("#flag-listitems").bind("sortEnd",function() {
55
- jQuery("#listitems tr:even").addClass('alternate');
56
- jQuery("#listitems tr:odd").removeClass('alternate');
57
- });
 
 
 
 
 
58
 
59
- });
60
- /*]]>*/
61
- </script>
62
- <table id="flag-listitems" class="widefat fixed flag-table" cellspacing="0" >
63
 
64
- <thead>
65
- <tr>
66
- <th class="header" width="54"><p style="margin-right:-10px;"><?php _e('ID', 'flag'); ?></p></th>
67
- <th width="50"><p><?php _e('Thumb', 'flag'); ?></p></th>
68
- <th class="header"><p><?php _e('Filename', 'flag'); ?></p></th>
69
- <th class="header"><p><?php _e('Title', 'flag'); ?></p></th>
70
- </tr>
71
- </thead>
72
- <tfoot>
73
- <tr>
74
- <th><p><?php _e('ID', 'flag'); ?></p></th>
75
- <th><p><?php _e('Thumb', 'flag'); ?></p></th>
76
- <th><p><?php _e('Filename', 'flag'); ?></p></th>
77
- <th><p><?php _e('Title', 'flag'); ?></p></th>
78
- </tr>
79
- </tfoot>
80
- <tbody id="listitems">
81
- <?php
82
- if(count($items_a)) {
83
- $counter = 0;
84
- foreach($items_a as $item) {
85
- $ban = get_post($item);
86
- $thumb = get_post_meta($item, 'thumbnail', true);
87
- if(empty($thumb)) {
88
- $thumb = wp_get_attachment_thumb_url($ban->ID);
89
- }
90
- $alternate = ( !isset($alternate) || $alternate == 'alternate' ) ? '' : 'alternate';
91
- $counter++;
92
- $bg = ( !isset($alternate) || $alternate == 'alternate' ) ? 'f9f9f9' : 'ffffff';
93
- $url = wp_get_attachment_url($ban->ID);
94
- ?>
95
- <tr id="$ban-<?php echo $ban->ID; ?>" class="<?php echo $alternate; ?> iedit" valign="top">
96
- <td scope="row"><input type="hidden" name="item_a[<?php echo $ban->ID; ?>][ID]" value="<?php echo $ban->ID; ?>" /><strong><?php echo $ban->ID; ?></strong></td>
97
- <td width="100"><a class="thickbox" title="<?php echo basename($url); ?>" href="<?php echo $url; ?>"><img id="thumb-<?php echo $ban->ID; ?>" src="<?php echo $thumb; ?>" width="80" style="height:auto" alt="" /></a></td>
98
- <td><?php echo basename($url); ?></td>
99
- <td><?php echo esc_html(stripslashes($ban->post_title)); ?></td>
100
- </tr>
101
- <?php
102
- }
103
- } else {
104
- echo '<tr><td colspan="4" align="center"><strong>'.__('No entries found','flag').'</strong></td></tr>';
105
- }
106
- ?>
107
- </tbody>
108
- </table>
109
- <p class="actions"><input type="submit" class="button-primary action" name="updatePlaylist" value="<?php _e('Update Sort Order', 'flag'); ?>" /></p>
110
- </form>
111
- <br class="clear"/>
112
- </div><!-- /#wrap -->
113
 
114
  <?php
115
  }
1
  <?php
2
 
3
+ function flag_b_playlist_order( $playlist = 'deprecated' ) {
4
  global $wpdb;
5
+
6
  //this is the url without any presort variable
7
+ $base_url = admin_url() . 'admin.php?page=' . urlencode( $_GET['page'] );
8
+ $flag_options = get_option( 'flag_options' );
9
+ $filename = sanitize_flagname( $_GET['playlist'] );
10
+ $playlistPath = $flag_options['galleryPath'] . 'playlists/banner/' . $filename . '.xml';
11
+ $playlist = get_b_playlist_data( ABSPATH . $playlistPath );
12
+ $items_a = $playlist['items'];
13
+ $items = implode( ',', $playlist['items'] );
14
+ ?>
15
+ <script type="text/javascript" src="<?php echo FLAG_URLPATH; ?>admin/js/jquery.tablednd_0_5.js"></script>
16
+ <script type="text/javascript" src="<?php echo FLAG_URLPATH; ?>admin/js/jquery.tablesorter.js"></script>
17
+ <div class="flag-wrap">
18
+ <h2><?php _e( 'Sort Gallery', 'flag' ); ?></h2>
19
 
20
+ <div class="alignright tablenav" style="margin-bottom: -36px;">
21
+ <a href="<?php echo esc_url( $base_url . '&playlist=' . $filename . '&mode=edit' ); ?>" class="button-secondary action"><?php _e( 'Back to playlist', 'flag' ); ?></a>
 
 
 
 
 
22
  </div>
23
+ <form id="sortPlaylist" method="POST" action="<?php echo esc_url( $base_url . '&playlist=' . $filename . '&mode=edit' ); ?>" accept-charset="utf-8">
24
+ <div class="alignleft tablenav">
25
+ <?php wp_nonce_field( 'flag_update' ); ?>
26
+ <input class="button-primary action" type="submit" name="updatePlaylist" value="<?php _e( 'Update Sort Order', 'flag' ); ?>"/>
27
+ </div>
28
+ <br clear="all"/>
29
+ <input type="hidden" name="playlist_title" value="<?php echo esc_html( $playlist['title'] ); ?>"/>
30
+ <input type="hidden" name="skinname" value="<?php echo sanitize_flagname( $playlist['skin'] ); ?>"/>
31
+ <input type="hidden" name="skinaction" value="<?php echo sanitize_flagname( $playlist['skin'] ); ?>"/>
32
+ <textarea style="display: none;" name="playlist_descr" cols="40" rows="1"><?php echo esc_html( $playlist['description'] ); ?></textarea>
33
+ <script type="text/javascript">
34
+ /*<![CDATA[*/
35
+ jQuery(document).ready(function($){
36
+ // Initialise the table
37
+ jQuery("#listitems").tableDnD({
38
+ onDragClass: "myDragClass",
39
+ onDrop: function(){
40
+ jQuery("#listitems tr:even").addClass('alternate');
41
+ jQuery("#listitems tr:odd").removeClass('alternate');
42
+ }
43
+ });
44
+ $("#flag-listitems").tablesorter({
45
+ // pass the headers argument and assing a object
46
+ headers: {
47
+ // assign the secound column (we start counting zero)
48
+ 1: {
49
+ // disable it by setting the property sorter to false
50
+ sorter: false
51
+ }
52
+ }
53
+ });
54
+ $("#flag-listitems").bind("sortEnd", function(){
55
+ jQuery("#listitems tr:even").addClass('alternate');
56
+ jQuery("#listitems tr:odd").removeClass('alternate');
57
+ });
58
 
59
+ });
60
+ /*]]>*/
61
+ </script>
62
+ <table id="flag-listitems" class="widefat fixed flag-table" cellspacing="0">
63
 
64
+ <thead>
65
+ <tr>
66
+ <th class="header" width="54"><p style="margin-right:-10px;"><?php _e( 'ID', 'flag' ); ?></p></th>
67
+ <th width="50"><p><?php _e( 'Thumb', 'flag' ); ?></p></th>
68
+ <th class="header"><p><?php _e( 'Filename', 'flag' ); ?></p></th>
69
+ <th class="header"><p><?php _e( 'Title', 'flag' ); ?></p></th>
70
+ </tr>
71
+ </thead>
72
+ <tfoot>
73
+ <tr>
74
+ <th><p><?php _e( 'ID', 'flag' ); ?></p></th>
75
+ <th><p><?php _e( 'Thumb', 'flag' ); ?></p></th>
76
+ <th><p><?php _e( 'Filename', 'flag' ); ?></p></th>
77
+ <th><p><?php _e( 'Title', 'flag' ); ?></p></th>
78
+ </tr>
79
+ </tfoot>
80
+ <tbody id="listitems">
81
+ <?php
82
+ if ( count( $items_a ) ) {
83
+ $counter = 0;
84
+ foreach ( $items_a as $item ) {
85
+ $ban = get_post( $item );
86
+ $thumb = get_post_meta( $item, 'thumbnail', true );
87
+ if ( empty( $thumb ) ) {
88
+ $thumb = wp_get_attachment_thumb_url( $ban->ID );
89
+ }
90
+ $alternate = ( ! isset( $alternate ) || $alternate == 'alternate' ) ? '' : 'alternate';
91
+ $counter ++;
92
+ $bg = ( ! isset( $alternate ) || $alternate == 'alternate' ) ? 'f9f9f9' : 'ffffff';
93
+ $url = wp_get_attachment_url( $ban->ID );
94
+ ?>
95
+ <tr id="$ban-<?php echo $ban->ID; ?>" class="<?php echo $alternate; ?> iedit" valign="top">
96
+ <td scope="row"><input type="hidden" name="item_a[<?php echo $ban->ID; ?>][ID]" value="<?php echo $ban->ID; ?>"/><strong><?php echo $ban->ID; ?></strong></td>
97
+ <td width="100"><a class="thickbox" title="<?php echo basename( $url ); ?>" href="<?php echo $url; ?>"><img id="thumb-<?php echo $ban->ID; ?>" src="<?php echo $thumb; ?>" width="80" style="height:auto" alt=""/></a></td>
98
+ <td><?php echo basename( $url ); ?></td>
99
+ <td><?php echo esc_html( stripslashes( $ban->post_title ) ); ?></td>
100
+ </tr>
101
+ <?php
102
+ }
103
+ } else {
104
+ echo '<tr><td colspan="4" align="center"><strong>' . __( 'No entries found', 'flag' ) . '</strong></td></tr>';
105
+ }
106
+ ?>
107
+ </tbody>
108
+ </table>
109
+ <p class="actions"><input type="submit" class="button-primary action" name="updatePlaylist" value="<?php _e( 'Update Sort Order', 'flag' ); ?>"/></p>
110
+ </form>
111
+ <br class="clear"/>
112
+ </div><!-- /#wrap -->
113
 
114
  <?php
115
  }
admin/css/flagallery_noflash.css CHANGED
@@ -17,7 +17,8 @@ div.flashalbum br { display: none; }
17
  .flag_alternate .flagcategory a.flag_pic_alt > .flag_pic_desc * { display: none; line-height: 140%; font-size: 12px !important; }
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%; }
17
  .flag_alternate .flagcategory a.flag_pic_alt > .flag_pic_desc * { display: none; line-height: 140%; font-size: 12px !important; }
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 { opacity: 1; 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
+ div.flashalbum .flag_alternate .flagcategory a.flag_pic_alt > img { opacity: 1; }
22
  .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)"; }
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%; }
admin/db_skin_color_scheme.php CHANGED
@@ -1,122 +1,154 @@
1
- <?php function flag_skin_options() {
2
- $flag_options = get_option('flag_options');
3
- $flashBacktransparent = $flag_options['flashBacktransparent'];
4
- $flashBackcolor = str_replace('#','',$flag_options['flashBackcolor']);
5
- $buttonsBG = str_replace('#','',$flag_options['buttonsBG']);
6
- $buttonsMouseOver = str_replace('#','',$flag_options['buttonsMouseOver']);
7
- $buttonsMouseOut = str_replace('#','',$flag_options['buttonsMouseOut']);
8
- $catButtonsMouseOver = str_replace('#','',$flag_options['catButtonsMouseOver']);
9
- $catButtonsMouseOut = str_replace('#','',$flag_options['catButtonsMouseOut']);
10
- $catButtonsTextMouseOver = str_replace('#','',$flag_options['catButtonsTextMouseOver']);
11
- $catButtonsTextMouseOut = str_replace('#','',$flag_options['catButtonsTextMouseOut']);
12
- $thumbMouseOver = str_replace('#','',$flag_options['thumbMouseOver']);
13
- $thumbMouseOut = str_replace('#','',$flag_options['thumbMouseOut']);
14
- $mainTitle = str_replace('#','',$flag_options['mainTitle']);
15
- $categoryTitle = str_replace('#','',$flag_options['categoryTitle']);
16
- $itemBG = str_replace('#','',$flag_options['itemBG']);
17
- $itemTitle = str_replace('#','',$flag_options['itemTitle']);
18
- $itemDescription = str_replace('#','',$flag_options['itemDescription']);
19
- ?>
20
- <script type="text/javascript">
21
- jQuery(document).ready(function() {
22
- jQuery('#colors .colorPick').each( function(){
23
- var inpID = jQuery(this).attr('name');
24
- jQuery('#cp_'+inpID).farbtastic('#'+inpID);
25
- jQuery('#'+inpID).focus( function(){
26
- jQuery('#cp_'+inpID).show();
27
- });
28
- jQuery('#'+inpID).blur( function(){
29
- jQuery('#cp_'+inpID).hide();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  });
31
- });
32
- function tChecked() {
33
- if( jQuery('#flashBacktransparent').attr('checked') ) {
34
- var dclone=jQuery('#flashBackcolor').clone();
35
- jQuery('#flashBackcolor').hide();
36
- dclone.removeAttr('style').removeAttr('id').removeAttr('name').addClass('flashBackcolor').attr('disabled','disabled').insertAfter('#flashBackcolor');
37
- } else {
38
- jQuery('.flashBackcolor').remove();
39
- jQuery('#flashBackcolor').show();
40
- }
41
- }
42
- tChecked();
43
- jQuery("#flashBacktransparent").click(tChecked);
44
- });
45
- </script>
46
- <form method="POST"><div>
47
- <?php wp_nonce_field('flag_settings'); ?>
48
- <input type="hidden" name="page_options" value="flashBackcolor,buttonsBG,flashBacktransparent,buttonsMouseOver,buttonsMouseOut,catButtonsMouseOver,catButtonsMouseOut,catButtonsTextMouseOver,catButtonsTextMouseOut,thumbMouseOver,thumbMouseOut,mainTitle,categoryTitle,itemBG,itemTitle,itemDescription" />
49
-
50
- <!-- Color settings -->
51
- <h3><?php _e('Color Settings','flag'); ?></h3>
52
- <table id="colors" class="form-table flag-options">
53
- <tr>
54
- <th style="width: 30%;"><?php _e('Background Color','flag'); ?>:</th>
55
- <td><input class="colorPick" type="text" size="7" maxlength="6" id="flashBackcolor" name="flashBackcolor" value="<?php echo $flashBackcolor?>" /><div id="cp_flashBackcolor" style="background:#F9F9F9;position:absolute;display:none;"></div> <label><input type="checkbox" id="flashBacktransparent" name="flashBacktransparent" value="transparent" <?php checked('transparent', $flashBacktransparent); ?> /> transparent</label></td>
56
- </tr>
57
- <tr>
58
- <th><?php _e('Buttons Background Color','flag'); ?>:</th>
59
- <td><input class="colorPick" type="text" size="7" maxlength="6" id="buttonsBG" name="buttonsBG" value="<?php echo $buttonsBG; ?>" /><div id="cp_buttonsBG" style="background:#F9F9F9;position:absolute;display:none;"></div></td>
60
- </tr>
61
- <tr>
62
- <th><?php _e('Buttons Text Color','flag'); ?>:</th>
63
- <td>
64
- <input class="colorPick" type="text" size="7" maxlength="6" id="buttonsMouseOver" name="buttonsMouseOver" value="<?php echo $buttonsMouseOver; ?>" /> mouseOver<br />
65
- <div id="cp_buttonsMouseOver" style="background:#F9F9F9;position:absolute;display:none;"></div>
66
- <input class="colorPick" type="text" size="7" maxlength="6" id="buttonsMouseOut" name="buttonsMouseOut" value="<?php echo $buttonsMouseOut; ?>" /> mouseOut<br />
67
- <div id="cp_buttonsMouseOut" style="background:#F9F9F9;position:absolute;display:none;"></div>
68
- </td>
69
- </tr>
70
- <tr>
71
- <th><?php _e('Category Buttons Color','flag'); ?>:</th>
72
- <td>
73
- <input class="colorPick" type="text" size="7" maxlength="6" id="catButtonsMouseOver" name="catButtonsMouseOver" value="<?php echo $catButtonsMouseOver; ?>" /> mouseOver<br />
74
- <div id="cp_catButtonsMouseOver" style="background:#F9F9F9;position:absolute;display:none;"></div>
75
- <input class="colorPick" type="text" size="7" maxlength="6" id="catButtonsMouseOut" name="catButtonsMouseOut" value="<?php echo $catButtonsMouseOut; ?>" /> mouseOut<br />
76
- <div id="cp_catButtonsMouseOut" style="background:#F9F9F9;position:absolute;display:none;"></div>
77
- </td>
78
- </tr>
79
- <tr>
80
- <th><?php _e('Category Buttons Text Color','flag'); ?>:</th>
81
- <td>
82
- <input class="colorPick" type="text" size="7" maxlength="6" id="catButtonsTextMouseOver" name="catButtonsTextMouseOver" value="<?php echo $catButtonsTextMouseOver; ?>" /> mouseOver<br />
83
- <div id="cp_catButtonsTextMouseOver" style="background:#F9F9F9;position:absolute;display:none;"></div>
84
- <input class="colorPick" type="text" size="7" maxlength="6" id="catButtonsTextMouseOut" name="catButtonsTextMouseOut" value="<?php echo $catButtonsTextMouseOut; ?>" /> mouseOut<br />
85
- <div id="cp_catButtonsTextMouseOut" style="background:#F9F9F9;position:absolute;display:none;"></div>
86
- </td>
87
- </tr>
88
- <tr>
89
- <th><?php _e('Thumbs Rollover Color','flag'); ?>:</th>
90
- <td>
91
- <input class="colorPick" type="text" size="7" maxlength="6" id="thumbMouseOver" name="thumbMouseOver" value="<?php echo $thumbMouseOver; ?>" /> mouseOver<br />
92
- <div id="cp_thumbMouseOver" style="background:#F9F9F9;position:absolute;display:none;"></div>
93
- <input class="colorPick" type="text" size="7" maxlength="6" id="thumbMouseOut" name="thumbMouseOut" value="<?php echo $thumbMouseOut; ?>" /> mouseOut<br />
94
- <div id="cp_thumbMouseOut" style="background:#F9F9F9;position:absolute;display:none;"></div>
95
- </td>
96
- </tr>
97
- <tr>
98
- <th><?php _e('Main Title','flag'); ?>:</th>
99
- <td><input class="colorPick" type="text" size="7" maxlength="6" id="mainTitle" name="mainTitle" value="<?php echo $mainTitle; ?>" /><div id="cp_mainTitle" style="background:#F9F9F9;position:absolute;display:none;"></div></td>
100
- </tr>
101
- <tr>
102
- <th><?php _e('Category Title','flag'); ?>:</th>
103
- <td><input class="colorPick" type="text" size="7" maxlength="6" id="categoryTitle" name="categoryTitle" value="<?php echo $categoryTitle; ?>" /><div id="cp_categoryTitle" style="background:#F9F9F9;position:absolute;display:none;"></div></td>
104
- </tr>
105
- <tr>
106
- <th><?php _e('Item Background','flag'); ?>:</th>
107
- <td><input class="colorPick" type="text" size="7" maxlength="6" id="itemBG" name="itemBG" value="<?php echo $itemBG; ?>" /><div id="cp_itemBG" style="background:#F9F9F9;position:absolute;display:none;"></div></td>
108
- </tr>
109
- <tr>
110
- <th><?php _e('Item Title','flag'); ?>:</th>
111
- <td><input class="colorPick" type="text" size="7" maxlength="6" id="itemTitle" name="itemTitle" value="<?php echo $itemTitle; ?>" /><div id="cp_itemTitle" style="background:#F9F9F9;position:absolute;display:none;"></div></td>
112
- </tr>
113
- <tr>
114
- <th><?php _e('Item Description','flag'); ?>:</th>
115
- <td><input class="colorPick" type="text" size="7" maxlength="6" id="itemDescription" name="itemDescription" value="<?php echo $itemDescription; ?>" /><div id="cp_itemDescription" style="background:#F9F9F9;position:absolute;display:none;"></div></td>
116
- </tr>
117
- </table>
118
-
119
- <div class="clear"> &nbsp; </div>
120
- <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e('Save Changes', 'flag'); ?>"/></div>
121
- </div></form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
122
  <?php }
1
+ <?php function flag_skin_options() {
2
+ $flag_options = get_option( 'flag_options' );
3
+ $flashBacktransparent = $flag_options['flashBacktransparent'];
4
+ $flashBackcolor = str_replace( '#', '', $flag_options['flashBackcolor'] );
5
+ $buttonsBG = str_replace( '#', '', $flag_options['buttonsBG'] );
6
+ $buttonsMouseOver = str_replace( '#', '', $flag_options['buttonsMouseOver'] );
7
+ $buttonsMouseOut = str_replace( '#', '', $flag_options['buttonsMouseOut'] );
8
+ $catButtonsMouseOver = str_replace( '#', '', $flag_options['catButtonsMouseOver'] );
9
+ $catButtonsMouseOut = str_replace( '#', '', $flag_options['catButtonsMouseOut'] );
10
+ $catButtonsTextMouseOver = str_replace( '#', '', $flag_options['catButtonsTextMouseOver'] );
11
+ $catButtonsTextMouseOut = str_replace( '#', '', $flag_options['catButtonsTextMouseOut'] );
12
+ $thumbMouseOver = str_replace( '#', '', $flag_options['thumbMouseOver'] );
13
+ $thumbMouseOut = str_replace( '#', '', $flag_options['thumbMouseOut'] );
14
+ $mainTitle = str_replace( '#', '', $flag_options['mainTitle'] );
15
+ $categoryTitle = str_replace( '#', '', $flag_options['categoryTitle'] );
16
+ $itemBG = str_replace( '#', '', $flag_options['itemBG'] );
17
+ $itemTitle = str_replace( '#', '', $flag_options['itemTitle'] );
18
+ $itemDescription = str_replace( '#', '', $flag_options['itemDescription'] );
19
+ ?>
20
+ <script type="text/javascript">
21
+ jQuery(document).ready(function(){
22
+ jQuery('#colors .colorPick').each(function(){
23
+ var inpID = jQuery(this).attr('name');
24
+ jQuery('#cp_' + inpID).farbtastic('#' + inpID);
25
+ jQuery('#' + inpID).focus(function(){
26
+ jQuery('#cp_' + inpID).show();
27
+ });
28
+ jQuery('#' + inpID).blur(function(){
29
+ jQuery('#cp_' + inpID).hide();
30
+ });
31
+ });
32
+ function tChecked(){
33
+ if(jQuery('#flashBacktransparent').attr('checked')){
34
+ var dclone = jQuery('#flashBackcolor').clone();
35
+ jQuery('#flashBackcolor').hide();
36
+ dclone.removeAttr('style').removeAttr('id').removeAttr('name').addClass('flashBackcolor').attr('disabled', 'disabled').insertAfter('#flashBackcolor');
37
+ } else{
38
+ jQuery('.flashBackcolor').remove();
39
+ jQuery('#flashBackcolor').show();
40
+ }
41
+ }
42
+
43
+ tChecked();
44
+ jQuery("#flashBacktransparent").click(tChecked);
45
  });
46
+ </script>
47
+ <form method="POST">
48
+ <div>
49
+ <?php wp_nonce_field( 'flag_settings' ); ?>
50
+ <input type="hidden" name="page_options" value="flashBackcolor,buttonsBG,flashBacktransparent,buttonsMouseOver,buttonsMouseOut,catButtonsMouseOver,catButtonsMouseOut,catButtonsTextMouseOver,catButtonsTextMouseOut,thumbMouseOver,thumbMouseOut,mainTitle,categoryTitle,itemBG,itemTitle,itemDescription"/>
51
+
52
+ <!-- Color settings -->
53
+ <h3><?php _e( 'Color Settings', 'flag' ); ?></h3>
54
+ <table id="colors" class="form-table flag-options">
55
+ <tr>
56
+ <th style="width: 30%;"><?php _e( 'Background Color', 'flag' ); ?>:</th>
57
+ <td><input class="colorPick" type="text" size="7" maxlength="6" id="flashBackcolor" name="flashBackcolor" value="<?php echo $flashBackcolor ?>"/>
58
+
59
+ <div id="cp_flashBackcolor" style="background:#F9F9F9;position:absolute;display:none;"></div>
60
+ <label><input type="checkbox" id="flashBacktransparent" name="flashBacktransparent" value="transparent" <?php checked( 'transparent', $flashBacktransparent ); ?> /> transparent</label></td>
61
+ </tr>
62
+ <tr>
63
+ <th><?php _e( 'Buttons Background Color', 'flag' ); ?>:</th>
64
+ <td><input class="colorPick" type="text" size="7" maxlength="6" id="buttonsBG" name="buttonsBG" value="<?php echo $buttonsBG; ?>"/>
65
+
66
+ <div id="cp_buttonsBG" style="background:#F9F9F9;position:absolute;display:none;"></div>
67
+ </td>
68
+ </tr>
69
+ <tr>
70
+ <th><?php _e( 'Buttons Text Color', 'flag' ); ?>:</th>
71
+ <td>
72
+ <input class="colorPick" type="text" size="7" maxlength="6" id="buttonsMouseOver" name="buttonsMouseOver" value="<?php echo $buttonsMouseOver; ?>"/> mouseOver<br/>
73
+
74
+ <div id="cp_buttonsMouseOver" style="background:#F9F9F9;position:absolute;display:none;"></div>
75
+ <input class="colorPick" type="text" size="7" maxlength="6" id="buttonsMouseOut" name="buttonsMouseOut" value="<?php echo $buttonsMouseOut; ?>"/> mouseOut<br/>
76
+
77
+ <div id="cp_buttonsMouseOut" style="background:#F9F9F9;position:absolute;display:none;"></div>
78
+ </td>
79
+ </tr>
80
+ <tr>
81
+ <th><?php _e( 'Category Buttons Color', 'flag' ); ?>:</th>
82
+ <td>
83
+ <input class="colorPick" type="text" size="7" maxlength="6" id="catButtonsMouseOver" name="catButtonsMouseOver" value="<?php echo $catButtonsMouseOver; ?>"/> mouseOver<br/>
84
+
85
+ <div id="cp_catButtonsMouseOver" style="background:#F9F9F9;position:absolute;display:none;"></div>
86
+ <input class="colorPick" type="text" size="7" maxlength="6" id="catButtonsMouseOut" name="catButtonsMouseOut" value="<?php echo $catButtonsMouseOut; ?>"/> mouseOut<br/>
87
+
88
+ <div id="cp_catButtonsMouseOut" style="background:#F9F9F9;position:absolute;display:none;"></div>
89
+ </td>
90
+ </tr>
91
+ <tr>
92
+ <th><?php _e( 'Category Buttons Text Color', 'flag' ); ?>:</th>
93
+ <td>
94
+ <input class="colorPick" type="text" size="7" maxlength="6" id="catButtonsTextMouseOver" name="catButtonsTextMouseOver" value="<?php echo $catButtonsTextMouseOver; ?>"/> mouseOver<br/>
95
+
96
+ <div id="cp_catButtonsTextMouseOver" style="background:#F9F9F9;position:absolute;display:none;"></div>
97
+ <input class="colorPick" type="text" size="7" maxlength="6" id="catButtonsTextMouseOut" name="catButtonsTextMouseOut" value="<?php echo $catButtonsTextMouseOut; ?>"/> mouseOut<br/>
98
+
99
+ <div id="cp_catButtonsTextMouseOut" style="background:#F9F9F9;position:absolute;display:none;"></div>
100
+ </td>
101
+ </tr>
102
+ <tr>
103
+ <th><?php _e( 'Thumbs Rollover Color', 'flag' ); ?>:</th>
104
+ <td>
105
+ <input class="colorPick" type="text" size="7" maxlength="6" id="thumbMouseOver" name="thumbMouseOver" value="<?php echo $thumbMouseOver; ?>"/> mouseOver<br/>
106
+
107
+ <div id="cp_thumbMouseOver" style="background:#F9F9F9;position:absolute;display:none;"></div>
108
+ <input class="colorPick" type="text" size="7" maxlength="6" id="thumbMouseOut" name="thumbMouseOut" value="<?php echo $thumbMouseOut; ?>"/> mouseOut<br/>
109
+
110
+ <div id="cp_thumbMouseOut" style="background:#F9F9F9;position:absolute;display:none;"></div>
111
+ </td>
112
+ </tr>
113
+ <tr>
114
+ <th><?php _e( 'Main Title', 'flag' ); ?>:</th>
115
+ <td><input class="colorPick" type="text" size="7" maxlength="6" id="mainTitle" name="mainTitle" value="<?php echo $mainTitle; ?>"/>
116
+
117
+ <div id="cp_mainTitle" style="background:#F9F9F9;position:absolute;display:none;"></div>
118
+ </td>
119
+ </tr>
120
+ <tr>
121
+ <th><?php _e( 'Category Title', 'flag' ); ?>:</th>
122
+ <td><input class="colorPick" type="text" size="7" maxlength="6" id="categoryTitle" name="categoryTitle" value="<?php echo $categoryTitle; ?>"/>
123
+
124
+ <div id="cp_categoryTitle" style="background:#F9F9F9;position:absolute;display:none;"></div>
125
+ </td>
126
+ </tr>
127
+ <tr>
128
+ <th><?php _e( 'Item Background', 'flag' ); ?>:</th>
129
+ <td><input class="colorPick" type="text" size="7" maxlength="6" id="itemBG" name="itemBG" value="<?php echo $itemBG; ?>"/>
130
+
131
+ <div id="cp_itemBG" style="background:#F9F9F9;position:absolute;display:none;"></div>
132
+ </td>
133
+ </tr>
134
+ <tr>
135
+ <th><?php _e( 'Item Title', 'flag' ); ?>:</th>
136
+ <td><input class="colorPick" type="text" size="7" maxlength="6" id="itemTitle" name="itemTitle" value="<?php echo $itemTitle; ?>"/>
137
+
138
+ <div id="cp_itemTitle" style="background:#F9F9F9;position:absolute;display:none;"></div>
139
+ </td>
140
+ </tr>
141
+ <tr>
142
+ <th><?php _e( 'Item Description', 'flag' ); ?>:</th>
143
+ <td><input class="colorPick" type="text" size="7" maxlength="6" id="itemDescription" name="itemDescription" value="<?php echo $itemDescription; ?>"/>
144
+
145
+ <div id="cp_itemDescription" style="background:#F9F9F9;position:absolute;display:none;"></div>
146
+ </td>
147
+ </tr>
148
+ </table>
149
+
150
+ <div class="clear"> &nbsp; </div>
151
+ <div class="submit"><input class="button-primary" type="submit" name="updateoption" value="<?php _e( 'Save Changes', 'flag' ); ?>"/></div>
152
+ </div>
153
+ </form>
154
  <?php }
admin/jgallery.php CHANGED
@@ -146,7 +146,7 @@ foreach ( $gID as $galID ) {
146
  } else {
147
  $views_panel = '';
148
  }
149
- $xml['alt'] .= '<a class="i' . $j++ . ' flag_pic_alt" href="' . $siteurl . '/' . $thegalleries['path'] . $webview . '/' . $picture['filename'] . '" id="flag_pic_' . $pid . '" title="' . esc_attr(strip_tags(htmlspecialchars_decode($picture['alttext']))) . '">[img src=' . $siteurl . '/' . $thegalleries['path'] . '/thumbs/thumbs_' . $picture['filename'] . ']' . $views_panel . '<span class="flag_pic_desc" id="flag_desc_' . $pid . '"><strong>' . $picture['alttext'] . '</strong><br /><span>' . nl2br($picture['description']) . '</span></span></a>';
150
  }
151
  }
152
  $xml['alt'] .= '</div>';
@@ -154,5 +154,6 @@ foreach ( $gID as $galID ) {
154
  }
155
  }
156
  $xml['alt'] .= '</div>';
157
- $d = array('properties'=>$data) + $c + $musicData;
 
158
  $xml['json'] = json_encode($d);
146
  } else {
147
  $views_panel = '';
148
  }
149
+ $xml['alt'] .= '<a class="i' . $j++ . ' flag_pic_alt" href="' . $siteurl . '/' . $thegalleries['path'] . $webview . '/' . $picture['filename'] . '" id="flag_pic_' . $pid . '" title="' . esc_attr(strip_tags(htmlspecialchars_decode($picture['alttext']))) . '">[img src=' . $siteurl . '/' . $thegalleries['path'] . '/thumbs/thumbs_' . $picture['filename'] . ']' . $views_panel . '<span class="flag_pic_desc" id="flag_desc_' . $pid . '"><strong>' . strip_tags($picture['alttext']) . '</strong><br /><span>' . htmlspecialchars(nl2br($picture['description'])) . '</span></span></a>';
150
  }
151
  }
152
  $xml['alt'] .= '</div>';
154
  }
155
  }
156
  $xml['alt'] .= '</div>';
157
+ $content_data = $c + $musicData;
158
+ $d = array('properties'=>$data) + $content_data;
159
  $xml['json'] = json_encode($d);
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.33
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.33';
27
  var $dbversion = '2.75';
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/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
  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';
readme.txt CHANGED
@@ -52,6 +52,12 @@ Also available mp3 players and widgets.
52
 
53
  == Changelog ==
54
 
 
 
 
 
 
 
55
  = v4.33 - 24.04.2015 =
56
  * Compatibility with WP 4.2
57
 
52
 
53
  == Changelog ==
54
 
55
+ = v4.35 - 01.07.2015 =
56
+ * Fixed alternative gallery thumbnails not showed on some themes
57
+
58
+ = v4.34 - 02.05.2015 =
59
+ * Fixed alternative gallery (when links in image descriptions)
60
+
61
  = v4.33 - 24.04.2015 =
62
  * Compatibility with WP 4.2
63