WP Photo Album Plus - Version 8.0.00.019

Version Description

= 7.7.07 =

  • This version addresses various minor bug fixes and feature requests.
Download this release

Release Info

Developer opajaap
Plugin Icon wp plugin WP Photo Album Plus
Version 8.0.00.019
Comparing to
See all releases

Code changes from version 8.0.00.018 to 8.0.00.019

wppa-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
- * Version 8.0.00.014
7
  *
8
  */
9
 
@@ -123,9 +123,9 @@ global $wppa_api_version;
123
  }
124
  }
125
 
126
- add_action( 'admin_head', 'wppa_inject_js' );
127
 
128
- function wppa_inject_js() {
129
  global $wppa_api_version;
130
 
131
  echo '
@@ -148,6 +148,7 @@ global $wppa_api_version;
148
  wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'";
149
  wppaOutputType = "' . wppa_opt( 'photo_shortcode_fe_type' ) . '";
150
  </script>';
 
151
  }
152
 
153
  /* ADMIN PAGE PHP's */
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains the admin menu and startups the admin pages
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
123
  }
124
  }
125
 
126
+ add_action( 'admin_head', 'wppa_inject_js_css' );
127
 
128
+ function wppa_inject_js_css() {
129
  global $wppa_api_version;
130
 
131
  echo '
148
  wppaTxtErrUnable = "'.__( 'ERROR: unable to upload files.', 'wp-photo-album-plus' ).'";
149
  wppaOutputType = "' . wppa_opt( 'photo_shortcode_fe_type' ) . '";
150
  </script>';
151
+ echo wppa_create_wppa_dynamic_css();
152
  }
153
 
154
  /* ADMIN PAGE PHP's */
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 8.0.00.014
6
  *
7
  */
8
 
@@ -1103,7 +1103,7 @@ global $wppa;
1103
  $shortcode = str_replace( '@', '#', $shortcode );
1104
  $wppa['mocc']++; // = strval( intval ( $_REQUEST['moccur'] ) );
1105
  $wppa_opt['wppa_lazy'] = 'none';
1106
- $wppa_opt['wppa_inline_css'] = 'yes';
1107
  $result = do_shortcode( $shortcode );
1108
  echo $result;
1109
  wppa_exit();
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.0.00.019
6
  *
7
  */
8
 
1103
  $shortcode = str_replace( '@', '#', $shortcode );
1104
  $wppa['mocc']++; // = strval( intval ( $_REQUEST['moccur'] ) );
1105
  $wppa_opt['wppa_lazy'] = 'none';
1106
+ // $wppa_opt['wppa_inline_css'] = 'yes';
1107
  $result = do_shortcode( $shortcode );
1108
  echo $result;
1109
  wppa_exit();
wppa-album-admin-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
- * Version 8.0.00.007
7
  *
8
  */
9
 
@@ -3536,8 +3536,8 @@ global $wpdb;
3536
  '</table>' .
3537
  '</div>' .
3538
  '<div style="float:right; width:25%;" >' .
3539
- '<span style=""> ' . __( 'Id:' , 'wp-photo-album-plus' ) . ' ' . $albid . '</span>' .
3540
- '<span style=""> - ' . __( 'Ord:' , 'wp-photo-album-plus' ) . '</span>' .
3541
  '<span id="wppa-album-seqno-' . $albid . '" > ' . $album['a_order'] . '</span>' .
3542
  '<br />' .
3543
  '<a href="' . esc_url( wppa_ea_url( $albid ) ) . '" style="position:absolute;bottom:0;" >' . __( 'Edit', 'wp-photo-album-plus' ) . '</a>' .
3
  * Package: wp-photo-album-plus
4
  *
5
  * create, edit and delete albums
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
3536
  '</table>' .
3537
  '</div>' .
3538
  '<div style="float:right; width:25%;" >' .
3539
+ '<span> ' . __( 'Id:' , 'wp-photo-album-plus' ) . ' ' . $albid . '</span>' .
3540
+ '<span> - ' . __( 'Ord:' , 'wp-photo-album-plus' ) . '</span>' .
3541
  '<span id="wppa-album-seqno-' . $albid . '" > ' . $album['a_order'] . '</span>' .
3542
  '<br />' .
3543
  '<a href="' . esc_url( wppa_ea_url( $albid ) ) . '" style="position:absolute;bottom:0;" >' . __( 'Edit', 'wp-photo-album-plus' ) . '</a>' .
wppa-album-covers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
- * Version 8.0.00.016
7
  *
8
  */
9
 
@@ -212,7 +212,7 @@ global $wpdb;
212
  }
213
 
214
  // Set up album cover style
215
- $style = wppa_wcs( 'wppa-box' );
216
  if ( is_feed() ) {
217
  $style .= ' padding:7px;';
218
  }
@@ -242,7 +242,7 @@ global $wpdb;
242
  'wppa-cover-box ' .
243
  'wppa-cover-box-' . $mcr . wppa( 'mocc' ) .
244
  '"' .
245
- ' style="' . $style . wppa_wcs( 'wppa-cover-box' ) . '"' .
246
  ' >'
247
  );
248
 
@@ -296,11 +296,7 @@ global $wpdb;
296
  }
297
  wppa_out( '<div' .
298
  ' class="wppa-box-text wppa-black wppa-box-text-desc"' .
299
- ' style="' .
300
- $textheight .
301
- wppa_wcs( 'wppa-box-text' ) .
302
- wppa_wcs( 'wppa-black' ) .
303
- '"' .
304
  ' >' .
305
  wppa_get_album_desc( $albumid ) .
306
  '</div>'
@@ -489,7 +485,7 @@ global $wpdb;
489
  $href_content = "#";
490
  }
491
 
492
- $style = wppa_wcs( 'wppa-box' );
493
  if ( is_feed() ) $style .= ' padding:7px;';
494
 
495
  $style .= wppa_get_cover_width( 'cover' );
@@ -517,7 +513,7 @@ global $wpdb;
517
  'wppa-cover-box ' .
518
  'wppa-cover-box-' . $mcr . wppa( 'mocc' ) . ' ' .
519
  '"' .
520
- ' style="' . $style . wppa_wcs( 'wppa-cover-box' ) . '"' .
521
  ' >'
522
  );
523
 
@@ -528,7 +524,7 @@ global $wpdb;
528
  }
529
 
530
  // Open the Cover text frame
531
- $textframestyle = 'style="text-align:center;'.wppa_wcs( 'wppa-cover-text-frame' ).'"';
532
  wppa_out( '<div' .
533
  ' id="covertext_frame_' . $albumid . '_' . wppa( 'mocc' ) . '"' .
534
  ' class="' .
@@ -550,11 +546,7 @@ global $wpdb;
550
  '';
551
  wppa_out( '<div' .
552
  ' class="wppa-box-text wppa-black wppa-box-text-desc"' .
553
- ' style="' .
554
- $textheight .
555
- wppa_wcs( 'wppa-box-text' ) .
556
- wppa_wcs( 'wppa-black' ) .
557
- '"' .
558
  ' >' .
559
  wppa_get_album_desc( $albumid ) .
560
  '</div>'
@@ -703,7 +695,7 @@ global $wpdb;
703
 
704
  $photo_pos = wppa( 'coverphoto_pos' );
705
 
706
- $style = wppa_wcs( 'wppa-box' );
707
  if ( is_feed() ) $style .= ' padding:7px;';
708
 
709
  $style .= wppa_get_cover_width( 'cover' );
@@ -730,7 +722,7 @@ global $wpdb;
730
  'wppa-cover-box ' .
731
  'wppa-cover-box-' . $mcr . wppa( 'mocc' ) . ' ' .
732
  '"' .
733
- ' style="' . $style . wppa_wcs( 'wppa-cover-box' ) . '"' .
734
  ' >'
735
  );
736
 
@@ -791,11 +783,7 @@ global $wpdb;
791
  ' >' .
792
  '<div' .
793
  ' class="wppa-box-text wppa-black wppa-box-text-desc"' .
794
- ' style="' .
795
- $textheight .
796
- wppa_wcs( 'wppa-box-text' ) .
797
- wppa_wcs( 'wppa-black' ) .
798
- '"' .
799
  ' >' .
800
  wppa_get_album_desc( $albumid ) .
801
  '</div>' .
@@ -923,7 +911,7 @@ global $wpdb;
923
  'wppa-cover-box ' .
924
  'wppa-cover-box-' . wppa( 'mocc' ) . ' ' .
925
  '"' .
926
- ' style="' . $style . wppa_wcs( 'wppa-cover-box' ) . '"' .
927
  ' >'
928
  );
929
 
@@ -1094,8 +1082,7 @@ global $wpdb;
1094
  wppa_out(
1095
  '<video preload="metadata" class="image wppa-img" id="i-' . $image['id'] . '-' .
1096
  wppa( 'mocc' ) . '" title="' . wppa_zoom_in( $image['id'] ) .
1097
- '" style="' .
1098
- wppa_wcs( 'wppa-img' ) . $imgattr . '" ' .
1099
  $events . ' >' .
1100
  wppa_get_video_body( $image['id'] ) . '</video>'
1101
  );
@@ -1104,8 +1091,7 @@ global $wpdb;
1104
  wppa_out(
1105
  '<img class="image wppa-img" id="i-' . $image['id'] . '-' .
1106
  wppa( 'mocc' ) . '" title="' . wppa_zoom_in( $image['id'] ) .
1107
- '" src="' . $src . '" style="' .
1108
- wppa_wcs( 'wppa-img' ) . $imgattr . '" ' .
1109
  $events . ' ' . wppa_get_imgalt( $image['id'] ) . ' />'
1110
  );
1111
  }
@@ -1135,9 +1121,7 @@ global $wpdb;
1135
  ' preload="metadata"' .
1136
  ' title="' . $title . '"' .
1137
  ' class="image wppa-img"' .
1138
- // ' width="' . $imgwidth . '"' .
1139
- // ' height="' . $imgheight . '"' .
1140
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1141
  ' ' . $events .
1142
  ' ' . ( $posterurl ? 'poster="' . esc_url( $posterurl ) . '"' : '' ) .
1143
  ' >' .
@@ -1153,9 +1137,7 @@ global $wpdb;
1153
  ' src="' . $src . '"' .
1154
  ' ' . wppa_get_imgalt( $image['id'] ) .
1155
  ' class="image wppa-img"' .
1156
- // ' width="' . $imgwidth . '"' .
1157
- // ' height="' . $imgheight . '"' .
1158
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1159
  ' ' . $events .
1160
  ' />'
1161
  );
@@ -1173,9 +1155,7 @@ global $wpdb;
1173
  '<video' .
1174
  ' preload="metadata"' .
1175
  ' class="image wppa-img"' .
1176
- // ' width="' . $imgwidth . '"' .
1177
- // ' height="' . $imgheight . '"' .
1178
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1179
  ' ' . $events .
1180
  ' ' . ( $posterurl ? 'poster="' . esc_url( $posterurl ) . '"' : '' ) .
1181
  ' >' .
@@ -1191,9 +1171,7 @@ global $wpdb;
1191
  ' src="' . $src . '"' .
1192
  ' ' . wppa_get_imgalt( $image['id'] ) .
1193
  ' class="image wppa-img"' .
1194
- // ' width="' . $imgwidth . '"' .
1195
- // ' height="' . $imgheight . '"' .
1196
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1197
  ' ' . $events .
1198
  ' />'
1199
  );
@@ -1315,7 +1293,7 @@ global $wpdb;
1315
  ' class="image wppa-img"' .
1316
  ' id="i-' . $image['id'] . '-' . wppa( 'mocc' ) . '"' .
1317
  ' title="' . wppa_zoom_in( $image['id'] ) . '"' .
1318
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1319
  ' ' . $events .
1320
  ' >' .
1321
  wppa_get_video_body( $image['id'] ) .
@@ -1329,7 +1307,7 @@ global $wpdb;
1329
  ' id="i-' . $image['id'] . '-' . wppa( 'mocc' ) . '"' .
1330
  ' title="' . wppa_zoom_in( $image['id'] ) . '"' .
1331
  ' src="' . $src . '"' .
1332
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1333
  ' ' . $events .
1334
  ' ' . wppa_get_imgalt( $image['id'] ) .
1335
  ' />'
@@ -1357,7 +1335,7 @@ global $wpdb;
1357
  '<video' .
1358
  ' preload="metadata" ' .
1359
  ' class="image wppa-img"' .
1360
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1361
  ' ' . $events .
1362
  ' >' .
1363
  wppa_get_video_body( $image['id'] ) .
@@ -1371,7 +1349,7 @@ global $wpdb;
1371
  ' src="' . $src . '"' .
1372
  ' ' . wppa_get_imgalt( $image['id'] ) .
1373
  ' class="image wppa-img"' .
1374
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1375
  ' ' . $events .
1376
  ' />'
1377
  );
@@ -1388,7 +1366,7 @@ global $wpdb;
1388
  wppa_out( '<video' .
1389
  ' preload="metadata"' .
1390
  ' class="image wppa-img"' .
1391
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1392
  ' ' . $events .
1393
  ' >' .
1394
  wppa_get_video_body( $image['id'] ) .
@@ -1402,7 +1380,7 @@ global $wpdb;
1402
  ' src="' . $src . '"' .
1403
  ' ' . wppa_get_imgalt( $image['id'] ) .
1404
  ' class="image wppa-img"' .
1405
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1406
  ' ' . $events .
1407
  ' />'
1408
  );
@@ -1717,8 +1695,7 @@ function wppa_album_cover_view_link(
1717
  if ( $href_content == '#' ) {
1718
  wppa_out(
1719
  '<a class="wppa-album-cover-link" onclick="' . $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus') . ' ' .
1720
- esc_attr( stripslashes( __( $album['name'] ) ) ) . '" style="cursor:pointer;' .
1721
- wppa_wcs( 'wppa-box-text-nocolor' ) . '" >'
1722
  );
1723
  }
1724
  else {
@@ -1726,7 +1703,7 @@ function wppa_album_cover_view_link(
1726
  '<a class="wppa-album-cover-link" href="' . $href_content . '" target="' . $target . '" onclick="' .
1727
  $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus') . ' ' .
1728
  esc_attr( stripslashes( __( $album['name'] ) ) ) .
1729
- '" style="cursor:pointer;' . wppa_wcs( 'wppa-box-text-nocolor' ) . '" >'
1730
  );
1731
  }
1732
 
@@ -1784,21 +1761,21 @@ function wppa_the_album_title( $alb, $href_title, $onclick_title, $title, $targe
1784
  $album_title = wppa_get_album_name( $alb );
1785
 
1786
  wppa_out(
1787
- '<h2 class="wppa-title" style="clear:none; ' . wppa_wcs( 'wppa-title' ) . '">'
1788
  );
1789
 
1790
  if ( $href_title ) {
1791
  if ( $href_title == '#' ) {
1792
  wppa_out(
1793
  '<a onclick="' . $onclick_title . '" title="' . $title .
1794
- '" class="wppa-title" style="cursor:pointer; ' . wppa_wcs( 'wppa-title' ) . '">' .
1795
  $album_title . '</a></h2>'
1796
  );
1797
  }
1798
  else {
1799
  wppa_out(
1800
  '<a href="' . $href_title . '" target="' . $target . '" onclick="' . $onclick_title .
1801
- '" title="' . $title . '" class="wppa-title" style="' . wppa_wcs( 'wppa-title' ) . '">' .
1802
  $album_title . '</a></h2>'
1803
  );
1804
  }
@@ -2223,16 +2200,27 @@ function wppa_the_slideshow_browse_link( $photocount, $href_slideshow, $onclick_
2223
  __( 'Browse photos', 'wp-photo-album-plus' );
2224
  if ( $href_slideshow == '#' ) {
2225
  wppa_out(
2226
- '<a class="wppa-album-cover-link" onclick="' . $onclick_slideshow . '" title="' . $label . '" style="cursor:pointer;' .
2227
- wppa_wcs( 'wppa-box-text-nocolor' ) . '" >' . $label . '</a>'
2228
- );
 
 
 
 
 
2229
  }
2230
  else {
2231
  wppa_out(
2232
- '<a class="wppa-album-cover-link" href="' . $href_slideshow . '" target="' . $target . '" onclick="' .
2233
- $onclick_slideshow . '" title="' . $label . '" style="cursor:pointer;' .
2234
- wppa_wcs( 'wppa-box-text-nocolor' ) . '" >' . $label . '</a>'
2235
- );
 
 
 
 
 
 
2236
  }
2237
  }
2238
  else {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
212
  }
213
 
214
  // Set up album cover style
215
+ $style = '';
216
  if ( is_feed() ) {
217
  $style .= ' padding:7px;';
218
  }
242
  'wppa-cover-box ' .
243
  'wppa-cover-box-' . $mcr . wppa( 'mocc' ) .
244
  '"' .
245
+ ' style="' . $style . '"' .
246
  ' >'
247
  );
248
 
296
  }
297
  wppa_out( '<div' .
298
  ' class="wppa-box-text wppa-black wppa-box-text-desc"' .
299
+ ' style="' . $textheight . '"' .
 
 
 
 
300
  ' >' .
301
  wppa_get_album_desc( $albumid ) .
302
  '</div>'
485
  $href_content = "#";
486
  }
487
 
488
+ $style = '';
489
  if ( is_feed() ) $style .= ' padding:7px;';
490
 
491
  $style .= wppa_get_cover_width( 'cover' );
513
  'wppa-cover-box ' .
514
  'wppa-cover-box-' . $mcr . wppa( 'mocc' ) . ' ' .
515
  '"' .
516
+ ' style="' . $style . '"' .
517
  ' >'
518
  );
519
 
524
  }
525
 
526
  // Open the Cover text frame
527
+ $textframestyle = 'style="text-align:center;"';
528
  wppa_out( '<div' .
529
  ' id="covertext_frame_' . $albumid . '_' . wppa( 'mocc' ) . '"' .
530
  ' class="' .
546
  '';
547
  wppa_out( '<div' .
548
  ' class="wppa-box-text wppa-black wppa-box-text-desc"' .
549
+ ' style="' . $textheight . '"' .
 
 
 
 
550
  ' >' .
551
  wppa_get_album_desc( $albumid ) .
552
  '</div>'
695
 
696
  $photo_pos = wppa( 'coverphoto_pos' );
697
 
698
+ $style = '';
699
  if ( is_feed() ) $style .= ' padding:7px;';
700
 
701
  $style .= wppa_get_cover_width( 'cover' );
722
  'wppa-cover-box ' .
723
  'wppa-cover-box-' . $mcr . wppa( 'mocc' ) . ' ' .
724
  '"' .
725
+ ' style="' . $style . '"' .
726
  ' >'
727
  );
728
 
783
  ' >' .
784
  '<div' .
785
  ' class="wppa-box-text wppa-black wppa-box-text-desc"' .
786
+ ' style="' . $textheight . '"' .
 
 
 
 
787
  ' >' .
788
  wppa_get_album_desc( $albumid ) .
789
  '</div>' .
911
  'wppa-cover-box ' .
912
  'wppa-cover-box-' . wppa( 'mocc' ) . ' ' .
913
  '"' .
914
+ ' style="' . $style . '"' .
915
  ' >'
916
  );
917
 
1082
  wppa_out(
1083
  '<video preload="metadata" class="image wppa-img" id="i-' . $image['id'] . '-' .
1084
  wppa( 'mocc' ) . '" title="' . wppa_zoom_in( $image['id'] ) .
1085
+ '" style="' . $imgattr . '" ' .
 
1086
  $events . ' >' .
1087
  wppa_get_video_body( $image['id'] ) . '</video>'
1088
  );
1091
  wppa_out(
1092
  '<img class="image wppa-img" id="i-' . $image['id'] . '-' .
1093
  wppa( 'mocc' ) . '" title="' . wppa_zoom_in( $image['id'] ) .
1094
+ '" src="' . $src . '" style="' . $imgattr . '" ' .
 
1095
  $events . ' ' . wppa_get_imgalt( $image['id'] ) . ' />'
1096
  );
1097
  }
1121
  ' preload="metadata"' .
1122
  ' title="' . $title . '"' .
1123
  ' class="image wppa-img"' .
1124
+ ' style="' . $imgattr . '"' .
 
 
1125
  ' ' . $events .
1126
  ' ' . ( $posterurl ? 'poster="' . esc_url( $posterurl ) . '"' : '' ) .
1127
  ' >' .
1137
  ' src="' . $src . '"' .
1138
  ' ' . wppa_get_imgalt( $image['id'] ) .
1139
  ' class="image wppa-img"' .
1140
+ ' style="' . $imgattr . '"' .
 
 
1141
  ' ' . $events .
1142
  ' />'
1143
  );
1155
  '<video' .
1156
  ' preload="metadata"' .
1157
  ' class="image wppa-img"' .
1158
+ ' style="' . $imgattr . '"' .
 
 
1159
  ' ' . $events .
1160
  ' ' . ( $posterurl ? 'poster="' . esc_url( $posterurl ) . '"' : '' ) .
1161
  ' >' .
1171
  ' src="' . $src . '"' .
1172
  ' ' . wppa_get_imgalt( $image['id'] ) .
1173
  ' class="image wppa-img"' .
1174
+ ' style="' . $imgattr . '"' .
 
 
1175
  ' ' . $events .
1176
  ' />'
1177
  );
1293
  ' class="image wppa-img"' .
1294
  ' id="i-' . $image['id'] . '-' . wppa( 'mocc' ) . '"' .
1295
  ' title="' . wppa_zoom_in( $image['id'] ) . '"' .
1296
+ ' style="' . $imgattr . '"' .
1297
  ' ' . $events .
1298
  ' >' .
1299
  wppa_get_video_body( $image['id'] ) .
1307
  ' id="i-' . $image['id'] . '-' . wppa( 'mocc' ) . '"' .
1308
  ' title="' . wppa_zoom_in( $image['id'] ) . '"' .
1309
  ' src="' . $src . '"' .
1310
+ ' style="' . $imgattr . '"' .
1311
  ' ' . $events .
1312
  ' ' . wppa_get_imgalt( $image['id'] ) .
1313
  ' />'
1335
  '<video' .
1336
  ' preload="metadata" ' .
1337
  ' class="image wppa-img"' .
1338
+ ' style="' . $imgattr . '"' .
1339
  ' ' . $events .
1340
  ' >' .
1341
  wppa_get_video_body( $image['id'] ) .
1349
  ' src="' . $src . '"' .
1350
  ' ' . wppa_get_imgalt( $image['id'] ) .
1351
  ' class="image wppa-img"' .
1352
+ ' style="' . $imgattr . '"' .
1353
  ' ' . $events .
1354
  ' />'
1355
  );
1366
  wppa_out( '<video' .
1367
  ' preload="metadata"' .
1368
  ' class="image wppa-img"' .
1369
+ ' style="' . $imgattr . '"' .
1370
  ' ' . $events .
1371
  ' >' .
1372
  wppa_get_video_body( $image['id'] ) .
1380
  ' src="' . $src . '"' .
1381
  ' ' . wppa_get_imgalt( $image['id'] ) .
1382
  ' class="image wppa-img"' .
1383
+ ' style="' . $imgattr . '"' .
1384
  ' ' . $events .
1385
  ' />'
1386
  );
1695
  if ( $href_content == '#' ) {
1696
  wppa_out(
1697
  '<a class="wppa-album-cover-link" onclick="' . $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus') . ' ' .
1698
+ esc_attr( stripslashes( __( $album['name'] ) ) ) . '" style="cursor:pointer;" >'
 
1699
  );
1700
  }
1701
  else {
1703
  '<a class="wppa-album-cover-link" href="' . $href_content . '" target="' . $target . '" onclick="' .
1704
  $onclick_content . '" title="' . __( 'View the album' , 'wp-photo-album-plus') . ' ' .
1705
  esc_attr( stripslashes( __( $album['name'] ) ) ) .
1706
+ '" style="cursor:pointer;" >'
1707
  );
1708
  }
1709
 
1761
  $album_title = wppa_get_album_name( $alb );
1762
 
1763
  wppa_out(
1764
+ '<h2 class="wppa-title" style="clear:none;">'
1765
  );
1766
 
1767
  if ( $href_title ) {
1768
  if ( $href_title == '#' ) {
1769
  wppa_out(
1770
  '<a onclick="' . $onclick_title . '" title="' . $title .
1771
+ '" class="wppa-title" style="cursor:pointer;" >' .
1772
  $album_title . '</a></h2>'
1773
  );
1774
  }
1775
  else {
1776
  wppa_out(
1777
  '<a href="' . $href_title . '" target="' . $target . '" onclick="' . $onclick_title .
1778
+ '" title="' . $title . '" class="wppa-title" >' .
1779
  $album_title . '</a></h2>'
1780
  );
1781
  }
2200
  __( 'Browse photos', 'wp-photo-album-plus' );
2201
  if ( $href_slideshow == '#' ) {
2202
  wppa_out(
2203
+ '<a class="wppa-album-cover-link"
2204
+ onclick="' . $onclick_slideshow . '"
2205
+ title="' . $label . '"
2206
+ style="cursor:pointer;"
2207
+ >' .
2208
+ $label .
2209
+ '</a>'
2210
+ );
2211
  }
2212
  else {
2213
  wppa_out(
2214
+ '<a class="wppa-album-cover-link"
2215
+ href="' . $href_slideshow . '"
2216
+ target="' . $target . '"
2217
+ onclick="' . $onclick_slideshow . '"
2218
+ title="' . $label . '"
2219
+ style="cursor:pointer;"
2220
+ >' .
2221
+ $label .
2222
+ '</a>'
2223
+ );
2224
  }
2225
  }
2226
  else {
wppa-album-navigator-widget.php CHANGED
@@ -330,7 +330,6 @@ class AlbumNavigatorWidget extends WP_Widget {
330
  class="albnav albnav-albumlink" ' .
331
  ( $thumbs == false ? 'title="' . __( 'Too many photos to display directly', 'wp-photo-album-plus' ) . ' (' . $count . ')" ' : ' ' ) .
332
  ( $thumbs == false ? 'href="' . wppa_encrypt_url( get_permalink( $page ) . '?wppa-album=' . $a . '&wppa-cover=0&wppa-photos-only=1&wppa-occur=1' ) . '" ' : ' ' ) . '
333
- style=""
334
  >' .
335
  wppa_get_album_name( $a ) .
336
  '</a>';
@@ -342,8 +341,7 @@ class AlbumNavigatorWidget extends WP_Widget {
342
  $result .= '
343
  <a
344
  class="albnav albnav-albumlink" ' .
345
- ( $link['is_url'] ? 'href="' . $link['url'] . '" ' : ' ' ) . '
346
- style="" ' .
347
  ( $link['target'] ? 'target="' . $link['target'] . '" ' : ' ' ) .
348
  ( $link['onclick'] ? 'onclick="' . $link['onclick'] . '" ' : ' ' ) .
349
  '
330
  class="albnav albnav-albumlink" ' .
331
  ( $thumbs == false ? 'title="' . __( 'Too many photos to display directly', 'wp-photo-album-plus' ) . ' (' . $count . ')" ' : ' ' ) .
332
  ( $thumbs == false ? 'href="' . wppa_encrypt_url( get_permalink( $page ) . '?wppa-album=' . $a . '&wppa-cover=0&wppa-photos-only=1&wppa-occur=1' ) . '" ' : ' ' ) . '
 
333
  >' .
334
  wppa_get_album_name( $a ) .
335
  '</a>';
341
  $result .= '
342
  <a
343
  class="albnav albnav-albumlink" ' .
344
+ ( $link['is_url'] ? 'href="' . $link['url'] . '" ' : ' ' ) .
 
345
  ( $link['target'] ? 'target="' . $link['target'] . '" ' : ' ' ) .
346
  ( $link['onclick'] ? 'onclick="' . $link['onclick'] . '" ' : ' ' ) .
347
  '
wppa-boxes-html.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
- * Version 8.0.00.018
7
  *
8
  */
9
 
@@ -28,8 +28,7 @@ function wppa_thumb_area( $action ) {
28
  if ( is_feed() ) {
29
  $result .= '<div'.
30
  ' id="wppa-thumb-area-' . $mocc . '"' .
31
- ' class="wppa-thumb-area"' .
32
- ' style="' . wppa_wcs( 'wppa-box' ) . '"' .
33
  ' >';
34
  }
35
  else {
@@ -37,11 +36,10 @@ function wppa_thumb_area( $action ) {
37
  $result .= '<div' .
38
  ' id="wppa-thumb-area-' . $mocc . '"' .
39
  ' class="' .
40
- 'wppa-thumb-area ' .
41
  'wppa-thumb-area-' . $mocc . ' ' .
42
  '"' .
43
  ' style="' .
44
- wppa_wcs( 'wppa-box' ) .
45
  ( $maxh > '1' ? 'max-height:' . $maxh . 'px;' : '' ) .
46
  'overflow:' . $overflow . ';' .
47
  '"' .
@@ -80,7 +78,7 @@ function wppa_thumb_area( $action ) {
80
  }
81
 
82
  // Clear both
83
- $result .= '<div class="wppa-clear" style="' . wppa_wis( 'clear:both;' ) . '" ></div>';
84
 
85
  // Nicescroller
86
  if ( $nice ) {
@@ -129,8 +127,7 @@ function wppa_contest_box() {
129
  if ( is_feed() ) {
130
  $result .= '<div'.
131
  ' id="wppa-thumb-area-' . $mocc . '"' .
132
- ' class="wppa-thumb-area"' .
133
- ' style="' . wppa_wcs( 'wppa-box' ) . '"' .
134
  ' >';
135
  }
136
  else {
@@ -138,12 +135,11 @@ function wppa_contest_box() {
138
  $result .= '<div' .
139
  ' id="wppa-thumb-area-' . $mocc . '"' .
140
  ' class="' .
141
- 'wppa-contest ' .
142
  'wppa-thumb-area ' .
143
  'wppa-thumb-area-' . $mocc . ' ' .
144
  '"' .
145
  ' style="' .
146
- wppa_wcs( 'wppa-box' ) .
147
  ( $maxh > '1' ? 'max-height:' . $maxh . 'px;' : '' ) .
148
  'overflow:' . $overflow . ';' .
149
  '"' .
@@ -159,7 +155,7 @@ function wppa_contest_box() {
159
  $result .= wppa_get_contest_html( wppa( 'start_album' ) );
160
 
161
  // After content
162
- $result .= '<div class="wppa-clear" style="' . wppa_wis( 'clear:both;' ) . '" ></div>';
163
 
164
  // Nicescroller
165
  if ( $nice ) {
@@ -434,14 +430,13 @@ function wppa_search_box() {
434
  $result .= '<div' .
435
  ' id="wppa-search-'.wppa( 'mocc' ) . '"' .
436
  ' class="wppa-box wppa-search"' .
437
- ' style="' . wppa_wcs( 'wppa-box' ) . '"' .
438
  ' >';
439
 
440
  // The search html
441
  $result .= wppa_get_search_html( '', wppa( 'may_sub' ), wppa( 'may_root' ), wppa( 'forceroot' ), wppa( 'landingpage' ), wppa_switch( 'search_catbox' ), wppa_opt( 'search_selboxes' ) );
442
 
443
  // Clear both
444
- $result .= '<div class="wppa-clear" style="'.wppa_wis( 'clear:both;' ).'" ></div>';
445
 
446
  // Close wrapper
447
  $result .= '</div>';
@@ -772,10 +767,9 @@ function wppa_supersearch_box() {
772
  wppa_out( '<div' .
773
  ' id="wppa-search-' . wppa( 'mocc' ) . '"' .
774
  ' class="wppa-box wppa-search"' .
775
- ' style="' . wppa_wcs( 'wppa-box' ) . '"' .
776
  ' >' .
777
  wppa_get_supersearch_html() .
778
- '<div class="wppa-clear" style="'.wppa_wis( 'clear:both;' ).'" >' .
779
  '</div>' .
780
  '</div>'
781
  );
@@ -1400,10 +1394,9 @@ function wppa_superview_box( $album_root = '0', $sort = true ) {
1400
  '<div' .
1401
  ' id="wppa-superview-' . wppa( 'mocc' ) . '"' .
1402
  ' class="wppa-box wppa-superview"' .
1403
- ' style="' . wppa_wcs( 'wppa-box' ) . '"' .
1404
  ' >' .
1405
  wppa_get_superview_html( $album_root, $sort ) .
1406
- '<div class="wppa-clear" style="'.wppa_wis( 'clear:both;' ).'" >' .
1407
  '</div>' .
1408
  '</div>'
1409
  );
@@ -1472,10 +1465,9 @@ function wppa_admins_choice_box( $admins ) {
1472
  '<div' .
1473
  ' id="wppa-adminschoice-' . wppa( 'mocc' ) . '"' .
1474
  ' class="wppa-box wppa-adminschoice"' .
1475
- ' style="' . wppa_wcs( 'wppa-box' ) . wppa_wcs( 'wppa-adminschoice' ) . '"' .
1476
  ' >' .
1477
  wppa_get_admins_choice_html( $admins ) .
1478
- '<div class="wppa-clear" style="'.wppa_wis( 'clear:both;' ).'" >' .
1479
  '</div>' .
1480
  '</div>'
1481
  );
@@ -1575,10 +1567,9 @@ function wppa_tagcloud_box( $seltags = '', $minsize = '8', $maxsize = '24' ) {
1575
  '<div' .
1576
  ' id="wppa-tagcloud-' . wppa( 'mocc' ) . '"' .
1577
  ' class="wppa-box wppa-tagcloud"' .
1578
- ' style="'.wppa_wcs( 'wppa-box' ).'"' .
1579
  ' >' .
1580
  wppa_get_tagcloud_html( $seltags, $minsize, $maxsize ) .
1581
- '<div class="wppa-clear" style="'.wppa_wis( 'clear:both;' ).'" >' .
1582
  '</div>' .
1583
  '</div>'
1584
  );
@@ -1668,10 +1659,9 @@ function wppa_multitag_box( $nperline = '2', $seltags = '' ) {
1668
  '<div' .
1669
  ' id="wppa-multitag-' . wppa( 'mocc' ) . '"' .
1670
  ' class="wppa-box wppa-multitag"' .
1671
- ' style="' . wppa_wcs( 'wppa-box' ) . '"' .
1672
  ' >' .
1673
  wppa_get_multitag_html( $nperline, $seltags ) .
1674
- '<div class="wppa-clear" style="' . wppa_wis( 'clear:both;' ) . '" >' .
1675
  '</div>' .
1676
  '</div>'
1677
  );
@@ -1832,7 +1822,7 @@ function wppa_get_multitag_html( $nperline = '2', $seltags = '' ) {
1832
  $checked = in_array( $tag['tag'], $querystringtags ) ? 'checked="checked"' : '';
1833
  }
1834
  $result .= '<td' .
1835
- ' style="'.wppa_wis( 'padding-right:4px;' ).'"' .
1836
  ' >' .
1837
  '<input' .
1838
  ' type="checkbox"' .
@@ -2443,7 +2433,6 @@ function wppa_upload_box() {
2443
  wppa_out( '<div' .
2444
  ' id="wppa-upload-box-' . wppa( 'mocc' ) . '"' .
2445
  ' class="wppa-box wppa-upload"' .
2446
- ' style="'.wppa_wcs( 'wppa-box' ).wppa_wcs( 'wppa-upload' ).'"' .
2447
  ' >'
2448
  );
2449
 
@@ -2686,8 +2675,6 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2686
  'clear:both;' .
2687
  'float:left;' .
2688
  'text-align:left;' .
2689
- wppa_wcs( 'wppa-box-text' ) .
2690
- wppa_wcs( 'wppa-td' ) .
2691
  '"' .
2692
  ' >' .
2693
  __( 'Enter album name.', 'wp-photo-album-plus' ) .
@@ -2697,7 +2684,7 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2697
  '<input' .
2698
  ' type="text"' .
2699
  ' class="wppa-box-text"' .
2700
- ' style="padding:0; width:100%; '.wppa_wcs( 'wppa-box-text' ).'"' .
2701
  ' name="wppa-album-name"' .
2702
  ' />' .
2703
 
@@ -2709,15 +2696,13 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2709
  'clear:both;' .
2710
  'float:left;' .
2711
  'text-align:left;' .
2712
- wppa_wcs( 'wppa-box-text' ) .
2713
- wppa_wcs( 'wppa-td' ) .
2714
  '"' .
2715
  ' >' .
2716
  __( 'Enter album description', 'wp-photo-album-plus' ) .
2717
  '</div>' .
2718
  '<textarea' .
2719
  ' class="wppa-user-textarea wppa-box-text"' .
2720
- ' style="padding:0;height:120px; width:100%; '.wppa_wcs( 'wppa-box-text' ).'"' .
2721
  ' name="wppa-album-desc" >' .
2722
  '</textarea>';
2723
 
@@ -2731,7 +2716,7 @@ function wppa_get_user_create_html( $alb, $width, $where = '', $mcr = false ) {
2731
  ' type="text"' .
2732
  ' id="wppa-captcha-'.$mocc.'"' .
2733
  ' name="wppa-captcha"' .
2734
- ' style="margin-left: 6px; width:50px; '.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'"' .
2735
  ' />' .
2736
  '</div>';
2737
  }
@@ -3264,13 +3249,12 @@ static $albums_granted;
3264
  $body =
3265
  '<table' .
3266
  ' class="wppa-watermark wppa-box-text"' .
3267
- ' style="margin:0; border:0; '.wppa_wcs( 'wppa-box-text' ).'"' .
3268
  ' >' .
3269
  '<tbody>' .
3270
  '<tr valign="top" style="border: 0 none; " >' .
3271
  '<td' .
3272
  ' class="wppa-box-text wppa-td"' .
3273
- ' style="'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'"' .
3274
  ' >' .
3275
  __( 'Apply watermark file:', 'wp-photo-album-plus' ) .
3276
  '</td>' .
@@ -3278,7 +3262,7 @@ static $albums_granted;
3278
  '<tr>' .
3279
  '<td' .
3280
  ' class="wppa-box-text wppa-td"' .
3281
- ' style="width: '.$width.';'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'"' .
3282
  ' >' .
3283
  '<select' .
3284
  ' style="margin:0; padding:0; text-align:left; width:auto; "' .
@@ -3292,7 +3276,7 @@ static $albums_granted;
3292
  '<tr valign="top" style="border: 0 none; " >' .
3293
  '<td' .
3294
  ' class="wppa-box-text wppa-td"' .
3295
- ' style="width: '.$width.';'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'"' .
3296
  ' >' .
3297
  __( 'Position:', 'wp-photo-album-plus' ) .
3298
  '</td>' .
@@ -3300,7 +3284,7 @@ static $albums_granted;
3300
  '<tr>' .
3301
  '<td' .
3302
  ' class="wppa-box-text wppa-td"' .
3303
- ' style="width: '.$width.';'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'"' .
3304
  ' >' .
3305
  '<select' .
3306
  ' style="margin:0; padding:0; text-align:left; width:auto; "' .
@@ -3360,7 +3344,7 @@ static $albums_granted;
3360
  ' id="wppa-name-user-' . $mocc . '-' . $seqno . '"' .
3361
  ' type="text"' .
3362
  ' class="wppa-box-text"' .
3363
- ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; width:100%; '.wppa_wcs( 'wppa-box-text' ).'"' .
3364
  ' name="wppa-user-name"' .
3365
  ' />' .
3366
  '<div style="clear:left;font-size:10px;" >' .
@@ -3387,7 +3371,7 @@ static $albums_granted;
3387
  '<textarea' .
3388
  ' id="wppa-desc-user-' . $mocc . '-' . $seqno . '"' .
3389
  ' class="wppa-user-textarea wppa-box-text"' .
3390
- ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%; '.wppa_wcs( 'wppa-box-text' ).'"' .
3391
  ' name="wppa-user-desc"' .
3392
  ' >' .
3393
  $desc .
@@ -3419,7 +3403,7 @@ static $albums_granted;
3419
  '<input' .
3420
  ' type="text"' .
3421
  ' class="wppa-box-text"' .
3422
- ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; width:100%; '.wppa_wcs( 'wppa-box-text' ).'"' .
3423
  ' name="wppa-user-custom-'.$i.'"' .
3424
  ' />';
3425
 
@@ -3479,7 +3463,7 @@ static $albums_granted;
3479
  ' id="wppa-inp-'.$yalb.'-'.$mocc.'"' .
3480
  ' type="text"' .
3481
  ' class="wppa-box-text "' .
3482
- ' style="padding:0; width:100%; '.wppa_wcs( 'wppa-box-text' ).'"' .
3483
  ' name="wppa-new-tags"' .
3484
  ' onchange="'.$onc.'"' .
3485
  ' value="'.trim(wppa_opt('up_tagbox_new'), ',').'"' .
@@ -3566,7 +3550,7 @@ static $albums_granted;
3566
  ' id="wppa-blogit-title-'.$yalb.'-'.$mocc.'"' .
3567
  ' type="text"' .
3568
  ' class="wppa-box-text "' .
3569
- ' style="padding:0; width:100%; '.wppa_wcs( 'wppa-box-text' ).'"' .
3570
  ' name="wppa-post-title"' .
3571
  ' />' .
3572
  '<h6>' .
@@ -3576,7 +3560,7 @@ static $albums_granted;
3576
  ' id="wppa-blogit-pretext-'.$yalb.'-'.$mocc.'"' .
3577
  ' name="wppa-blogit-pretext"' .
3578
  ' class=wppa-user-textarea wppa-box-text"' .
3579
- ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%; '.wppa_wcs( 'wppa-box-text' ).'"' .
3580
  ' >' .
3581
  '</textarea>' .
3582
  '<h6>' .
@@ -3586,7 +3570,7 @@ static $albums_granted;
3586
  ' id="wppa-blogit-posttext-'.$yalb.'-'.$mocc.'"' .
3587
  ' name="wppa-blogit-posttext"' .
3588
  ' class=wppa-user-textarea wppa-box-text"' .
3589
- ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%; '.wppa_wcs( 'wppa-box-text' ).'"' .
3590
  '>' .
3591
  '</textarea>' .
3592
  '</div>';// .
@@ -3810,8 +3794,6 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
3810
  'clear:both;' .
3811
  'float:left;' .
3812
  'text-align:left;' .
3813
- wppa_wcs( 'wppa-box-text' ) .
3814
- wppa_wcs( 'wppa-td' ) .
3815
  '"' .
3816
  ' >'.
3817
  __( 'Enter album name', 'wp-photo-album-plus' ) . '&nbsp;' .
@@ -3824,7 +3806,7 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
3824
  ' id="wppaalbum-name-'.wppa( 'mocc' ).'-'.$alb.'"' .
3825
  ' class="wppa-box-text wppa-file-'.$t.wppa( 'mocc' ).'"' .
3826
  ' value="' . $name . '"' .
3827
- ' style="padding:0; width:100%;'.wppa_wcs( 'wppa-box-text' ).'"' .
3828
  ' />
3829
  <div' .
3830
  ' class="wppa-box-text wppa-td"' .
@@ -3832,8 +3814,6 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
3832
  'clear:both;' .
3833
  'float:left;' .
3834
  'text-align:left;' .
3835
- wppa_wcs( 'wppa-box-text' ) .
3836
- wppa_wcs( 'wppa-td' ) .
3837
  '"' .
3838
  ' >'.
3839
  __( 'Album description:', 'wp-photo-album-plus' ).'
@@ -3846,7 +3826,6 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
3846
  'padding:0;' .
3847
  'height:120px;' .
3848
  'width:100%;' .
3849
- wppa_wcs( 'wppa-box-text' ) .
3850
  '"' .
3851
  ' >' . $desc .
3852
  '</textarea>';
@@ -3868,8 +3847,6 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
3868
  'clear:both;' .
3869
  'float:left;' .
3870
  'text-align:left;' .
3871
- wppa_wcs( 'wppa-box-text' ) .
3872
- wppa_wcs( 'wppa-td' ) .
3873
  '"' .
3874
  ' >'.
3875
  apply_filters( 'translate_text', wppa_opt( 'album_custom_caption_' . $idx ) ) .
@@ -3879,7 +3856,7 @@ function wppa_user_albumedit_html( $alb, $width, $where = '', $mcr = false ) {
3879
  ' id="wppaalbum-custom-' . $idx . '-' . wppa( 'mocc' ) . '-' . $alb . '"' .
3880
  ' class="wppa-box-text wppa-file-' . $t . wppa( 'mocc' ) . '"' .
3881
  ' value="' . esc_attr( stripslashes( $custom_data[$idx] ) ) . '"' .
3882
- ' style="padding:0; width:100%;' . wppa_wcs( 'wppa-box-text' ) . '"' .
3883
  ' />';
3884
 
3885
  }
@@ -3975,7 +3952,7 @@ global $wpdb;
3975
  <td
3976
  valign="top"
3977
  class="wppa-box-text wppa-td"
3978
- style="vertical-align:top; width:30%; border-width: 0 0 0 0; '.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'"
3979
  >' .
3980
  ( wppa_switch( 'domain_link_buddypress' ) ?
3981
  wppa_bp_userlink( $comment['email'], false, true ) :
@@ -4061,13 +4038,13 @@ global $wpdb;
4061
  $commentblock = '
4062
  <td
4063
  class="wppa-box-text wppa-td"
4064
- style="width:70%; word-wrap:break-word; border-width: 0 0 0 0;'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'"
4065
  >';
4066
  /*
4067
  <p
4068
  class="wppa-comment-textarea wppa-comment-textarea-'.$mocc.'"
4069
  style="margin:0;background-color:transparent;width:' . ( $mob ? wppa_get_container_width() : round( wppa_get_container_width() * 0.7 ) ) . 'px;max-height:90px;overflow:auto;
4070
- word-wrap:break-word;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ) . '"
4071
  >';
4072
  */
4073
 
@@ -4274,7 +4251,7 @@ global $wpdb;
4274
  $label_html = '
4275
  <td
4276
  class="wppa-box-text wppa-td"
4277
- style="' . ( $mob ? '' : 'width:30%;' ) . 'background-color:transparent;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ) . '"
4278
  >' .
4279
  __( 'Your name:', 'wp-photo-album-plus' ) .
4280
  '</td>';
@@ -4283,7 +4260,7 @@ global $wpdb;
4283
  $value_html = '
4284
  <td
4285
  class="wppa-box-text wppa-td"
4286
- style="' . ( $mob ? '' : 'width:70%;' ) . 'background-color:transparent;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ) . '"
4287
  >
4288
  <input
4289
  type="text"
@@ -4316,7 +4293,7 @@ global $wpdb;
4316
  $label_html = '
4317
  <td
4318
  class="wppa-box-text wppa-td"
4319
- style="width:30%;background-color:transparent;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ) . '"
4320
  >' .
4321
  __( 'Your email:', 'wp-photo-album-plus' ) .
4322
  '</td>';
@@ -4325,7 +4302,7 @@ global $wpdb;
4325
  $value_html = '
4326
  <td
4327
  class="wppa-box-text wppa-td"
4328
- style="width:70%;background-color:transparent;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ) . '"
4329
  >
4330
  <input
4331
  type="text"
@@ -4372,7 +4349,7 @@ global $wpdb;
4372
  type="text"
4373
  id="wppa-captcha-' . $mocc . '"
4374
  name="wppa-captcha"
4375
- style="width:30px;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ) . '"
4376
  />';
4377
 
4378
  // The Smilypicker
@@ -4429,7 +4406,7 @@ global $wpdb;
4429
  <tr>
4430
  <td
4431
  class="wppa-box-text wppa-td"
4432
- style="background-color:transparent;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ) . '"
4433
  >' .
4434
  $comment_label . '
4435
  </td>
@@ -4437,7 +4414,7 @@ global $wpdb;
4437
  <tr>
4438
  <td
4439
  class="wppa-box-text wppa-td"
4440
- style="background-color:transparent;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ) . '"
4441
  >' .
4442
  $smily_html .
4443
  $comment_input .
@@ -4447,7 +4424,7 @@ global $wpdb;
4447
  <tr>
4448
  <td
4449
  class="wppa-box-text wppa-td"
4450
- style="background-color:transparent;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ) . '"
4451
  >';
4452
  if ( $need_captcha ) {
4453
 
@@ -4471,7 +4448,7 @@ global $wpdb;
4471
  <td
4472
  valign="top"
4473
  class="wppa-box-text wppa-td"
4474
- style="vertical-align:top; width:30%;background-color:transparent;' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-td' ).'"
4475
  >' .
4476
  $comment_label;
4477
 
@@ -4495,86 +4472,6 @@ global $wpdb;
4495
  </tr>';
4496
  }
4497
 
4498
-
4499
-
4500
-
4501
- /*
4502
-
4503
- if ( ! $mob ) {
4504
- $result .=
4505
- '<input type="button" name="commentbtn" onclick="wppaAjaxComment( '.wppa( 'mocc' ).', /'.wppa_encrypt_photo($id).'/ )" value="'.$btn.'" style="margin:0 4px 0 0;" />' .
4506
- '<img id="wppa-comment-spin-'.wppa( 'mocc' ).'" src="'.wppa_get_imgdir().'spinner.gif" style="display:none;" />';
4507
- }
4508
- $result .=
4509
- '</td>';
4510
- }
4511
-
4512
-
4513
-
4514
-
4515
- /*
4516
-
4517
-
4518
-
4519
-
4520
-
4521
- // Your comment?
4522
- $result .= '
4523
- <tr valign="top" style="vertical-align:top;">
4524
- <td valign="top" class="wppa-box-text wppa-td" style="vertical-align:top; width:30%;background-color:transparent;'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'" >' .
4525
- __( 'Your comment:', 'wp-photo-album-plus' );
4526
-
4527
- // Captcha?
4528
- if ( ( is_user_logged_in() && wppa_opt( 'comment_captcha' ) == 'all' ) ||
4529
- ( ! is_user_logged_in() && wppa_opt( 'comment_captcha' ) != 'none' ) ) {
4530
-
4531
- /*
4532
- *//*
4533
- }
4534
-
4535
- if ( ! $mob ) {
4536
- $result .=
4537
- '<input type="button" name="commentbtn" onclick="wppaAjaxComment( '.wppa( 'mocc' ).', /'.wppa_encrypt_photo($id).'/ )" value="'.$btn.'" style="margin:0 4px 0 0;" />' .
4538
- '<img id="wppa-comment-spin-'.wppa( 'mocc' ).'" src="'.wppa_get_imgdir().'spinner.gif" style="display:none;" />';
4539
- }
4540
- $result .=
4541
- '</td>';
4542
-
4543
- if ( $mob ) {
4544
- $result .= '
4545
- </tr>
4546
- <tr valign="top" style="vertical-align:top;">';
4547
- }
4548
-
4549
- $result .=
4550
- '<td valign="top" class="wppa-box-text wppa-td" style="vertical-align:top; width:70%;background-color:transparent;'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'" >';
4551
-
4552
- if ( wppa_switch( 'comment_smiley_picker' ) ) {
4553
- $result .=
4554
- }
4555
-
4556
- $result .=
4557
-
4558
- '</td>' .
4559
- '</tr>' .
4560
- '<tr valign="top" style="vertical-align:top;">';
4561
- if ( ! $mob ) {
4562
- $result .=
4563
- '<td>' .
4564
- '</td>';
4565
- }
4566
- $result .=
4567
- '<td>' .
4568
- ( wppa_switch( 'comment_need_db_agree' ) ?
4569
- : '' ) .
4570
- '</td>' .
4571
- '</tr>';
4572
-
4573
- if ( $mob ) { // go button
4574
- $result .= '
4575
-
4576
- }
4577
- */
4578
  $result .= '
4579
  </tbody>
4580
  </table>
@@ -4598,7 +4495,7 @@ global $wpdb;
4598
  '<table id="wppacommentfooter-'.wppa( 'mocc' ).'" class="wppa-comment-form" style="margin:0;">' .
4599
  '<tbody>' .
4600
  '<tr style="text-align:center;">' .
4601
- '<td style="text-align:center; cursor:pointer;'.wppa_wcs( 'wppa-box-text' ).'" >' .
4602
  '<a onclick="wppaOpenComments( '.wppa( 'mocc' ).', -1 ); return false;" >';
4603
  if ( $n_comments ) {
4604
  $result .= sprintf( _n( '%d comment', '%d comments', $n_comments, 'wp-photo-album-plus' ), $n_comments );
@@ -4753,10 +4650,10 @@ global $wppa_iptc_cache;
4753
  }
4754
  else {
4755
  $result .= '<tr style="border-bottom:0 none; border-top:0 none; border-left: 0 none; border-right: 0 none; ">' .
4756
- '<td class="wppa-iptc-label wppa-box-text wppa-td" style="'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'" >';
4757
  $result .= esc_js( __( $label ) );
4758
  $result .= '</td>' .
4759
- '<td class="wppa-iptc-value wppa-box-text wppa-td" style="'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'" >';
4760
  }
4761
  $result .= esc_js( wppa_sanitize_text( __( $iptcline['description'], 'wp-photo-album-plus' ) ) );
4762
  $oldtag = $newtag;
@@ -4875,13 +4772,13 @@ global $wppa_exif_cache;
4875
  }
4876
  else {
4877
  $result .= '<tr style="border-bottom:0 none; border-top:0 none; border-left: 0 none; border-right: 0 none;" >' .
4878
- '<td class="wppa-exif-label wppa-box-text wppa-td" style="'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'" >';
4879
 
4880
  $label = wppa_exif_tagname( $exifline['tag'], $brand ) . ':';
4881
 
4882
  $result .= esc_js( __( $label ) );
4883
 
4884
- $result .= '</td><td class="wppa-exif-value wppa-box-text wppa-td" style="'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-td' ).'" >';
4885
  }
4886
  $result .= esc_js( $exifline['f_description'] );
4887
  $oldtag = $newtag;
@@ -4912,7 +4809,7 @@ function wppa_album_name( $key ) {
4912
  $result .= '<h3' .
4913
  ' id="wppa-albname-' . wppa( 'mocc' ) . '"' .
4914
  ' class="wppa-box-text wppa-black"' .
4915
- ' style="padding-right:6px; margin:0; ' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-black' ) . '"' .
4916
  ' >' .
4917
  $name .
4918
  '</h3>' .
@@ -4922,7 +4819,7 @@ function wppa_album_name( $key ) {
4922
  $result .= '<h3' .
4923
  ' id="wppa-albname-b-' . wppa( 'mocc' ) . '"' .
4924
  ' class="wppa-box-text wppa-black"' .
4925
- ' style="clear:both; padding-right:6px; margin:0; ' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-black' ) . '"' .
4926
  ' >' .
4927
  $name .
4928
  '</h3>';
@@ -4948,7 +4845,7 @@ function wppa_album_desc( $key ) {
4948
  $result .= '<div' .
4949
  ' id="wppa-albdesc-'.wppa( 'mocc' ).'"' .
4950
  ' class="wppa-box-text wppa-black wppa-thumbarea-albdesc"' .
4951
- ' style="padding-right:6px;'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-black' ).'"' .
4952
  ' >' .
4953
  $desc .
4954
  '</div>' .
@@ -4958,7 +4855,7 @@ function wppa_album_desc( $key ) {
4958
  $result .= '<div' .
4959
  ' id="wppa-albdesc-b-'.wppa( 'mocc' ).'"' .
4960
  ' class="wppa-box-text wppa-black wppa-thumbarea-albdesc"' .
4961
- ' style="clear:both; padding-right:6px;'.wppa_wcs( 'wppa-box-text' ).wppa_wcs( 'wppa-black' ).'"' .
4962
  ' >' .
4963
  $desc .
4964
  '</div>';
@@ -4979,7 +4876,7 @@ global $wpdb;
4979
  <div' .
4980
  ' id="prevnext1-'.wppa( 'mocc' ).'"' .
4981
  ' class="wppa-box wppa-nav wppa-nav-text"' .
4982
- ' style="text-align: center; '.wppa_wcs( 'wppa-box' ).wppa_wcs( 'wppa-nav-text' ).$m.'"' .
4983
  ' >' );
4984
 
4985
  $photo = wppa( 'single_photo' );
@@ -5037,7 +4934,6 @@ function wppa_bestof_box( $args ) {
5037
  wppa_out( '<div' .
5038
  ' id="wppa-bestof-' . wppa( 'mocc' ) . '"' .
5039
  ' class="wppa-box wppa-bestof"' .
5040
- ' style="' . wppa_wcs( 'wppa-box' ) . wppa_wcs( 'wppa-bestof' ) . '"' .
5041
  '>' .
5042
  wppa_bestof_html( $args, false ) .
5043
  '<div style="clear:both; height:4px;">' .
@@ -5370,14 +5266,12 @@ function wppa_calendar_box() {
5370
  'font-size:'.$fs.'px;' .
5371
  ( $bold ? 'font-weight:bold;' : '' ) .
5372
  'line-height:'.$lh.'px;' .
5373
- wppa_wcs( 'wppa-box' ) .
5374
- wppa_wcs( 'wppa-calendar' ) .
5375
  '"' .
5376
  ' >' .
5377
  '<div style="overflow:auto;" >' .
5378
  wppa_get_calendar_html() .
5379
  '</div>' .
5380
- '<div class="wppa-clear" style="' . wppa_wis( 'clear:both;' ) . '" >' .
5381
  '</div>' .
5382
  '</div>'
5383
  );
@@ -5702,15 +5596,11 @@ function wppa_real_calendar_box() {
5702
  wppa_out( '<div' .
5703
  ' id="wppa-calendar-' . wppa( 'mocc' ) . '"' .
5704
  ' class="wppa-box wppa-calendar"' .
5705
- ' style="' .
5706
- wppa_wcs( 'wppa-box' ) .
5707
- wppa_wcs( 'wppa-calendar' ) .
5708
- '"' .
5709
  ' >' .
5710
  '<div style="overflow:visible;margin-bottom:3px;" >' .
5711
  wppa_get_real_calendar_html( $year, $month ) .
5712
  '</div>' .
5713
- '<div class="wppa-clear" style="' . wppa_wis( 'clear:both;' ) . '" >' .
5714
  '</div>' .
5715
  '</div>' );
5716
 
@@ -6116,7 +6006,7 @@ global $wpdb;
6116
  class="thumb wppa-img" id="i-' . $id . '-' . $mocc . ' wppa-realcalimg wppa-realcalimg-' . $mocc . '"
6117
  data-day="' . $current_day . '"
6118
  title="' . esc_attr( $imgtitle ) . '"
6119
- style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"
6120
  >' .
6121
  wppa_get_video_body( $id ) .
6122
  '</video>'
@@ -6130,7 +6020,7 @@ global $wpdb;
6130
  id="i-' . $id . '-' . $mocc . '"
6131
  title="' . esc_attr( $imgtitle ) . '"
6132
  src="' . wppa_get_thumb_url( $id ) . '"
6133
- style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '" ' .
6134
  wppa_get_imgalt( $id ) . '
6135
  />';
6136
  }
@@ -6199,7 +6089,7 @@ global $wpdb;
6199
  data-day="' . $current_day . '"
6200
  id="i-' . $thumb['id'] . '-' . $mocc . '"
6201
  title="' . esc_attr( $imgtitle ) . '"
6202
- style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"
6203
  >' .
6204
  wppa_get_video_body( $thumb['id'] ) .
6205
  '</video>'
@@ -6213,7 +6103,7 @@ global $wpdb;
6213
  id="i-' . $thumb['id'] . '-' . $mocc . '"
6214
  title="' . esc_attr( $imgtitle ) . '"
6215
  src="' . wppa_get_thumb_url( $id ) . '"
6216
- style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '" ' .
6217
  wppa_get_imgalt( $thumb['id'] ) . '
6218
  />';
6219
  }
@@ -6455,14 +6345,13 @@ function wppa_stereo_box() {
6455
  $result .= '<div' .
6456
  ' id="wppa-stereo-' . wppa( 'mocc' ) . '"' .
6457
  ' class="wppa-box wppa-stereo"' .
6458
- ' style="' . wppa_wcs( 'wppa-box' ) . '"' .
6459
  ' >';
6460
 
6461
  // The search html
6462
  $result .= wppa_get_stereo_html();
6463
 
6464
  // Clear both
6465
- $result .= '<div class="wppa-clear" style="'.wppa_wis( 'clear:both;' ).'" ></div>';
6466
 
6467
  // Close wrapper
6468
  $result .= '</div>';
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various wppa boxes
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
28
  if ( is_feed() ) {
29
  $result .= '<div'.
30
  ' id="wppa-thumb-area-' . $mocc . '"' .
31
+ ' class="wppa-box wppa-thumb-area"' .
 
32
  ' >';
33
  }
34
  else {
36
  $result .= '<div' .
37
  ' id="wppa-thumb-area-' . $mocc . '"' .
38
  ' class="' .
39
+ 'wppa-box wppa-thumb-area ' .
40
  'wppa-thumb-area-' . $mocc . ' ' .
41
  '"' .
42
  ' style="' .
 
43
  ( $maxh > '1' ? 'max-height:' . $maxh . 'px;' : '' ) .
44
  'overflow:' . $overflow . ';' .
45
  '"' .
78
  }
79
 
80
  // Clear both
81
+ $result .= '<div class="wppa-clear" ></div>';
82
 
83
  // Nicescroller
84
  if ( $nice ) {
127
  if ( is_feed() ) {
128
  $result .= '<div'.
129
  ' id="wppa-thumb-area-' . $mocc . '"' .
130
+ ' class="wppa-box wppa-thumb-area"' .
 
131
  ' >';
132
  }
133
  else {
135
  $result .= '<div' .
136
  ' id="wppa-thumb-area-' . $mocc . '"' .
137
  ' class="' .
138
+ 'wppa-box wppa-contest ' .
139
  'wppa-thumb-area ' .
140
  'wppa-thumb-area-' . $mocc . ' ' .
141
  '"' .
142
  ' style="' .
 
143
  ( $maxh > '1' ? 'max-height:' . $maxh . 'px;' : '' ) .
144
  'overflow:' . $overflow . ';' .
145
  '"' .
155
  $result .= wppa_get_contest_html( wppa( 'start_album' ) );
156
 
157
  // After content
158
+ $result .= '<div class="wppa-clear" ></div>';
159
 
160
  // Nicescroller
161
  if ( $nice ) {
430
  $result .= '<div' .
431
  ' id="wppa-search-'.wppa( 'mocc' ) . '"' .
432
  ' class="wppa-box wppa-search"' .
 
433
  ' >';
434
 
435
  // The search html
436
  $result .= wppa_get_search_html( '', wppa( 'may_sub' ), wppa( 'may_root' ), wppa( 'forceroot' ), wppa( 'landingpage' ), wppa_switch( 'search_catbox' ), wppa_opt( 'search_selboxes' ) );
437
 
438
  // Clear both
439
+ $result .= '<div class="wppa-clear" ></div>';
440
 
441
  // Close wrapper
442
  $result .= '</div>';
767
  wppa_out( '<div' .
768
  ' id="wppa-search-' . wppa( 'mocc' ) . '"' .
769
  ' class="wppa-box wppa-search"' .
 
770
  ' >' .
771
  wppa_get_supersearch_html() .
772
+ '<div class="wppa-clear" >' .
773
  '</div>' .
774
  '</div>'
775
  );
1394
  '<div' .
1395
  ' id="wppa-superview-' . wppa( 'mocc' ) . '"' .
1396
  ' class="wppa-box wppa-superview"' .
 
1397
  ' >' .
1398
  wppa_get_superview_html( $album_root, $sort ) .
1399
+ '<div class="wppa-clear" >' .
1400
  '</div>' .
1401
  '</div>'
1402
  );
1465
  '<div' .
1466
  ' id="wppa-adminschoice-' . wppa( 'mocc' ) . '"' .
1467
  ' class="wppa-box wppa-adminschoice"' .
 
1468
  ' >' .
1469
  wppa_get_admins_choice_html( $admins ) .
1470
+ '<div class="wppa-clear" >' .
1471
  '</div>' .
1472
  '</div>'
1473
  );
1567
  '<div' .
1568
  ' id="wppa-tagcloud-' . wppa( 'mocc' ) . '"' .
1569
  ' class="wppa-box wppa-tagcloud"' .
 
1570
  ' >' .
1571
  wppa_get_tagcloud_html( $seltags, $minsize, $maxsize ) .
1572
+ '<div class="wppa-clear" >' .
1573
  '</div>' .
1574
  '</div>'
1575
  );
1659
  '<div' .
1660
  ' id="wppa-multitag-' . wppa( 'mocc' ) . '"' .
1661
  ' class="wppa-box wppa-multitag"' .
 
1662
  ' >' .
1663
  wppa_get_multitag_html( $nperline, $seltags ) .
1664
+ '<div class="wppa-clear" >' .
1665
  '</div>' .
1666
  '</div>'
1667
  );
1822
  $checked = in_array( $tag['tag'], $querystringtags ) ? 'checked="checked"' : '';
1823
  }
1824
  $result .= '<td' .
1825
+ ' style="padding-right:4px;"' .
1826
  ' >' .
1827
  '<input' .
1828
  ' type="checkbox"' .
2433
  wppa_out( '<div' .
2434
  ' id="wppa-upload-box-' . wppa( 'mocc' ) . '"' .
2435
  ' class="wppa-box wppa-upload"' .
 
2436
  ' >'
2437
  );
2438
 
2675
  'clear:both;' .
2676
  'float:left;' .
2677
  'text-align:left;' .
 
 
2678
  '"' .
2679
  ' >' .
2680
  __( 'Enter album name.', 'wp-photo-album-plus' ) .
2684
  '<input' .
2685
  ' type="text"' .
2686
  ' class="wppa-box-text"' .
2687
+ ' style="padding:0; width:100%;"' .
2688
  ' name="wppa-album-name"' .
2689
  ' />' .
2690
 
2696
  'clear:both;' .
2697
  'float:left;' .
2698
  'text-align:left;' .
 
 
2699
  '"' .
2700
  ' >' .
2701
  __( 'Enter album description', 'wp-photo-album-plus' ) .
2702
  '</div>' .
2703
  '<textarea' .
2704
  ' class="wppa-user-textarea wppa-box-text"' .
2705
+ ' style="padding:0;height:120px; width:100%;"' .
2706
  ' name="wppa-album-desc" >' .
2707
  '</textarea>';
2708
 
2716
  ' type="text"' .
2717
  ' id="wppa-captcha-'.$mocc.'"' .
2718
  ' name="wppa-captcha"' .
2719
+ ' style="margin-left: 6px; width:50px;"' .
2720
  ' />' .
2721
  '</div>';
2722
  }
3249
  $body =
3250
  '<table' .
3251
  ' class="wppa-watermark wppa-box-text"' .
3252
+ ' style="margin:0; border:0;"' .
3253
  ' >' .
3254
  '<tbody>' .
3255
  '<tr valign="top" style="border: 0 none; " >' .
3256
  '<td' .
3257
  ' class="wppa-box-text wppa-td"' .
 
3258
  ' >' .
3259
  __( 'Apply watermark file:', 'wp-photo-album-plus' ) .
3260
  '</td>' .
3262
  '<tr>' .
3263
  '<td' .
3264
  ' class="wppa-box-text wppa-td"' .
3265
+ ' style="width: '.$width.';"' .
3266
  ' >' .
3267
  '<select' .
3268
  ' style="margin:0; padding:0; text-align:left; width:auto; "' .
3276
  '<tr valign="top" style="border: 0 none; " >' .
3277
  '<td' .
3278
  ' class="wppa-box-text wppa-td"' .
3279
+ ' style="width: '.$width.';"' .
3280
  ' >' .
3281
  __( 'Position:', 'wp-photo-album-plus' ) .
3282
  '</td>' .
3284
  '<tr>' .
3285
  '<td' .
3286
  ' class="wppa-box-text wppa-td"' .
3287
+ ' style="width: '.$width.';"' .
3288
  ' >' .
3289
  '<select' .
3290
  ' style="margin:0; padding:0; text-align:left; width:auto; "' .
3344
  ' id="wppa-name-user-' . $mocc . '-' . $seqno . '"' .
3345
  ' type="text"' .
3346
  ' class="wppa-box-text"' .
3347
+ ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; width:100%;"' .
3348
  ' name="wppa-user-name"' .
3349
  ' />' .
3350
  '<div style="clear:left;font-size:10px;" >' .
3371
  '<textarea' .
3372
  ' id="wppa-desc-user-' . $mocc . '-' . $seqno . '"' .
3373
  ' class="wppa-user-textarea wppa-box-text"' .
3374
+ ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%;"' .
3375
  ' name="wppa-user-desc"' .
3376
  ' >' .
3377
  $desc .
3403
  '<input' .
3404
  ' type="text"' .
3405
  ' class="wppa-box-text"' .
3406
+ ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; width:100%;"' .
3407
  ' name="wppa-user-custom-'.$i.'"' .
3408
  ' />';
3409
 
3463
  ' id="wppa-inp-'.$yalb.'-'.$mocc.'"' .
3464
  ' type="text"' .
3465
  ' class="wppa-box-text "' .
3466
+ ' style="padding:0; width:100%;"' .
3467
  ' name="wppa-new-tags"' .
3468
  ' onchange="'.$onc.'"' .
3469
  ' value="'.trim(wppa_opt('up_tagbox_new'), ',').'"' .
3550
  ' id="wppa-blogit-title-'.$yalb.'-'.$mocc.'"' .
3551
  ' type="text"' .
3552
  ' class="wppa-box-text "' .
3553
+ ' style="padding:0; width:100%;"' .
3554
  ' name="wppa-post-title"' .
3555
  ' />' .
3556
  '<h6>' .
3560
  ' id="wppa-blogit-pretext-'.$yalb.'-'.$mocc.'"' .
3561
  ' name="wppa-blogit-pretext"' .
3562
  ' class=wppa-user-textarea wppa-box-text"' .
3563
+ ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%;"' .
3564
  ' >' .
3565
  '</textarea>' .
3566
  '<h6>' .
3570
  ' id="wppa-blogit-posttext-'.$yalb.'-'.$mocc.'"' .
3571
  ' name="wppa-blogit-posttext"' .
3572
  ' class=wppa-user-textarea wppa-box-text"' .
3573
+ ' style="border:1px solid '.wppa_opt( 'bcolor' ).';clear:left; padding:0; height:120px; width:100%;"' .
3574
  '>' .
3575
  '</textarea>' .
3576
  '</div>';// .
3794
  'clear:both;' .
3795
  'float:left;' .
3796
  'text-align:left;' .
 
 
3797
  '"' .
3798
  ' >'.
3799
  __( 'Enter album name', 'wp-photo-album-plus' ) . '&nbsp;' .
3806
  ' id="wppaalbum-name-'.wppa( 'mocc' ).'-'.$alb.'"' .
3807
  ' class="wppa-box-text wppa-file-'.$t.wppa( 'mocc' ).'"' .
3808
  ' value="' . $name . '"' .
3809
+ ' style="padding:0; width:100%;"' .
3810
  ' />
3811
  <div' .
3812
  ' class="wppa-box-text wppa-td"' .
3814
  'clear:both;' .
3815
  'float:left;' .
3816
  'text-align:left;' .
 
 
3817
  '"' .
3818
  ' >'.
3819
  __( 'Album description:', 'wp-photo-album-plus' ).'
3826
  'padding:0;' .
3827
  'height:120px;' .
3828
  'width:100%;' .
 
3829
  '"' .
3830
  ' >' . $desc .
3831
  '</textarea>';
3847
  'clear:both;' .
3848
  'float:left;' .
3849
  'text-align:left;' .
 
 
3850
  '"' .
3851
  ' >'.
3852
  apply_filters( 'translate_text', wppa_opt( 'album_custom_caption_' . $idx ) ) .
3856
  ' id="wppaalbum-custom-' . $idx . '-' . wppa( 'mocc' ) . '-' . $alb . '"' .
3857
  ' class="wppa-box-text wppa-file-' . $t . wppa( 'mocc' ) . '"' .
3858
  ' value="' . esc_attr( stripslashes( $custom_data[$idx] ) ) . '"' .
3859
+ ' style="padding:0; width:100%;"' .
3860
  ' />';
3861
 
3862
  }
3952
  <td
3953
  valign="top"
3954
  class="wppa-box-text wppa-td"
3955
+ style="vertical-align:top; width:30%; border-width: 0 0 0 0;"
3956
  >' .
3957
  ( wppa_switch( 'domain_link_buddypress' ) ?
3958
  wppa_bp_userlink( $comment['email'], false, true ) :
4038
  $commentblock = '
4039
  <td
4040
  class="wppa-box-text wppa-td"
4041
+ style="width:70%; word-wrap:break-word; border-width: 0 0 0 0;"
4042
  >';
4043
  /*
4044
  <p
4045
  class="wppa-comment-textarea wppa-comment-textarea-'.$mocc.'"
4046
  style="margin:0;background-color:transparent;width:' . ( $mob ? wppa_get_container_width() : round( wppa_get_container_width() * 0.7 ) ) . 'px;max-height:90px;overflow:auto;
4047
+ word-wrap:break-word;"
4048
  >';
4049
  */
4050
 
4251
  $label_html = '
4252
  <td
4253
  class="wppa-box-text wppa-td"
4254
+ style="' . ( $mob ? '' : 'width:30%;' ) . 'background-color:transparent;"
4255
  >' .
4256
  __( 'Your name:', 'wp-photo-album-plus' ) .
4257
  '</td>';
4260
  $value_html = '
4261
  <td
4262
  class="wppa-box-text wppa-td"
4263
+ style="' . ( $mob ? '' : 'width:70%;' ) . 'background-color:transparent;"
4264
  >
4265
  <input
4266
  type="text"
4293
  $label_html = '
4294
  <td
4295
  class="wppa-box-text wppa-td"
4296
+ style="width:30%;background-color:transparent;"
4297
  >' .
4298
  __( 'Your email:', 'wp-photo-album-plus' ) .
4299
  '</td>';
4302
  $value_html = '
4303
  <td
4304
  class="wppa-box-text wppa-td"
4305
+ style="width:70%;background-color:transparent;"
4306
  >
4307
  <input
4308
  type="text"
4349
  type="text"
4350
  id="wppa-captcha-' . $mocc . '"
4351
  name="wppa-captcha"
4352
+ style="width:30px;"
4353
  />';
4354
 
4355
  // The Smilypicker
4406
  <tr>
4407
  <td
4408
  class="wppa-box-text wppa-td"
4409
+ style="background-color:transparent;"
4410
  >' .
4411
  $comment_label . '
4412
  </td>
4414
  <tr>
4415
  <td
4416
  class="wppa-box-text wppa-td"
4417
+ style="background-color:transparent;"
4418
  >' .
4419
  $smily_html .
4420
  $comment_input .
4424
  <tr>
4425
  <td
4426
  class="wppa-box-text wppa-td"
4427
+ style="background-color:transparent;"
4428
  >';
4429
  if ( $need_captcha ) {
4430
 
4448
  <td
4449
  valign="top"
4450
  class="wppa-box-text wppa-td"
4451
+ style="vertical-align:top; width:30%;background-color:transparent;"
4452
  >' .
4453
  $comment_label;
4454
 
4472
  </tr>';
4473
  }
4474
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4475
  $result .= '
4476
  </tbody>
4477
  </table>
4495
  '<table id="wppacommentfooter-'.wppa( 'mocc' ).'" class="wppa-comment-form" style="margin:0;">' .
4496
  '<tbody>' .
4497
  '<tr style="text-align:center;">' .
4498
+ '<td style="text-align:center; cursor:pointer;" >' .
4499
  '<a onclick="wppaOpenComments( '.wppa( 'mocc' ).', -1 ); return false;" >';
4500
  if ( $n_comments ) {
4501
  $result .= sprintf( _n( '%d comment', '%d comments', $n_comments, 'wp-photo-album-plus' ), $n_comments );
4650
  }
4651
  else {
4652
  $result .= '<tr style="border-bottom:0 none; border-top:0 none; border-left: 0 none; border-right: 0 none; ">' .
4653
+ '<td class="wppa-iptc-label wppa-box-text wppa-td" >';
4654
  $result .= esc_js( __( $label ) );
4655
  $result .= '</td>' .
4656
+ '<td class="wppa-iptc-value wppa-box-text wppa-td" >';
4657
  }
4658
  $result .= esc_js( wppa_sanitize_text( __( $iptcline['description'], 'wp-photo-album-plus' ) ) );
4659
  $oldtag = $newtag;
4772
  }
4773
  else {
4774
  $result .= '<tr style="border-bottom:0 none; border-top:0 none; border-left: 0 none; border-right: 0 none;" >' .
4775
+ '<td class="wppa-exif-label wppa-box-text wppa-td" >';
4776
 
4777
  $label = wppa_exif_tagname( $exifline['tag'], $brand ) . ':';
4778
 
4779
  $result .= esc_js( __( $label ) );
4780
 
4781
+ $result .= '</td><td class="wppa-exif-value wppa-box-text wppa-td" >';
4782
  }
4783
  $result .= esc_js( $exifline['f_description'] );
4784
  $oldtag = $newtag;
4809
  $result .= '<h3' .
4810
  ' id="wppa-albname-' . wppa( 'mocc' ) . '"' .
4811
  ' class="wppa-box-text wppa-black"' .
4812
+ ' style="padding-right:6px; margin:0;"' .
4813
  ' >' .
4814
  $name .
4815
  '</h3>' .
4819
  $result .= '<h3' .
4820
  ' id="wppa-albname-b-' . wppa( 'mocc' ) . '"' .
4821
  ' class="wppa-box-text wppa-black"' .
4822
+ ' style="clear:both; padding-right:6px; margin:0;"' .
4823
  ' >' .
4824
  $name .
4825
  '</h3>';
4845
  $result .= '<div' .
4846
  ' id="wppa-albdesc-'.wppa( 'mocc' ).'"' .
4847
  ' class="wppa-box-text wppa-black wppa-thumbarea-albdesc"' .
4848
+ ' style="padding-right:6px;"' .
4849
  ' >' .
4850
  $desc .
4851
  '</div>' .
4855
  $result .= '<div' .
4856
  ' id="wppa-albdesc-b-'.wppa( 'mocc' ).'"' .
4857
  ' class="wppa-box-text wppa-black wppa-thumbarea-albdesc"' .
4858
+ ' style="clear:both; padding-right:6px;"' .
4859
  ' >' .
4860
  $desc .
4861
  '</div>';
4876
  <div' .
4877
  ' id="prevnext1-'.wppa( 'mocc' ).'"' .
4878
  ' class="wppa-box wppa-nav wppa-nav-text"' .
4879
+ ' style="text-align: center; ' . $m . '"' .
4880
  ' >' );
4881
 
4882
  $photo = wppa( 'single_photo' );
4934
  wppa_out( '<div' .
4935
  ' id="wppa-bestof-' . wppa( 'mocc' ) . '"' .
4936
  ' class="wppa-box wppa-bestof"' .
 
4937
  '>' .
4938
  wppa_bestof_html( $args, false ) .
4939
  '<div style="clear:both; height:4px;">' .
5266
  'font-size:'.$fs.'px;' .
5267
  ( $bold ? 'font-weight:bold;' : '' ) .
5268
  'line-height:'.$lh.'px;' .
 
 
5269
  '"' .
5270
  ' >' .
5271
  '<div style="overflow:auto;" >' .
5272
  wppa_get_calendar_html() .
5273
  '</div>' .
5274
+ '<div class="wppa-clear" >' .
5275
  '</div>' .
5276
  '</div>'
5277
  );
5596
  wppa_out( '<div' .
5597
  ' id="wppa-calendar-' . wppa( 'mocc' ) . '"' .
5598
  ' class="wppa-box wppa-calendar"' .
 
 
 
 
5599
  ' >' .
5600
  '<div style="overflow:visible;margin-bottom:3px;" >' .
5601
  wppa_get_real_calendar_html( $year, $month ) .
5602
  '</div>' .
5603
+ '<div class="wppa-clear" >' .
5604
  '</div>' .
5605
  '</div>' );
5606
 
6006
  class="thumb wppa-img" id="i-' . $id . '-' . $mocc . ' wppa-realcalimg wppa-realcalimg-' . $mocc . '"
6007
  data-day="' . $current_day . '"
6008
  title="' . esc_attr( $imgtitle ) . '"
6009
+ style="' . $imgattr . '"
6010
  >' .
6011
  wppa_get_video_body( $id ) .
6012
  '</video>'
6020
  id="i-' . $id . '-' . $mocc . '"
6021
  title="' . esc_attr( $imgtitle ) . '"
6022
  src="' . wppa_get_thumb_url( $id ) . '"
6023
+ style="' . $imgattr . '" ' .
6024
  wppa_get_imgalt( $id ) . '
6025
  />';
6026
  }
6089
  data-day="' . $current_day . '"
6090
  id="i-' . $thumb['id'] . '-' . $mocc . '"
6091
  title="' . esc_attr( $imgtitle ) . '"
6092
+ style="' . $imgattr . '"
6093
  >' .
6094
  wppa_get_video_body( $thumb['id'] ) .
6095
  '</video>'
6103
  id="i-' . $thumb['id'] . '-' . $mocc . '"
6104
  title="' . esc_attr( $imgtitle ) . '"
6105
  src="' . wppa_get_thumb_url( $id ) . '"
6106
+ style="' . $imgattr . '" ' .
6107
  wppa_get_imgalt( $thumb['id'] ) . '
6108
  />';
6109
  }
6345
  $result .= '<div' .
6346
  ' id="wppa-stereo-' . wppa( 'mocc' ) . '"' .
6347
  ' class="wppa-box wppa-stereo"' .
 
6348
  ' >';
6349
 
6350
  // The search html
6351
  $result .= wppa_get_stereo_html();
6352
 
6353
  // Clear both
6354
+ $result .= '<div class="wppa-clear" ></div>';
6355
 
6356
  // Close wrapper
6357
  $result .= '</div>';
wppa-breadcrumb.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for breadcrumbs
6
- * Version 8.0.00.017
7
  *
8
  */
9
 
@@ -88,8 +88,6 @@ global $wppa_session;
88
  ' id="wppa-bc-'.wppa( 'mocc' ) . '"' .
89
  ' class="wppa-nav wppa-box wppa-nav-text wppa-bc"' .
90
  ' style="' .
91
- wppa_wcs( 'wppa-box' ) .
92
- wppa_wcs( 'wppa-nav-text' ) .
93
  '" >' );
94
 
95
  // Do we need Home?
@@ -579,7 +577,7 @@ global $wppa_session;
579
  ' href="' . $thumbhref . '"' .
580
  ' title="' . __( 'Thumbnail view' , 'wp-photo-album-plus') . '"' .
581
  ' class="wppa-nav-text"' .
582
- ' style="' . wppa_wcs( 'wppa-nav-text' ) . 'float:right; cursor:pointer; text-decoration:none;"' .
583
  ' >' .
584
  wppa_get_svghtml( 'Content-View', wppa_icon_size( '1.5em' ), false, false, '10', '10', '10', '10' ) .
585
  '</a>' );
@@ -592,7 +590,7 @@ global $wppa_session;
592
  wppa_out( '<span' .
593
  ' title="' . __( 'Thumbnail view', 'wp-photo-album-plus' ) . '"' .
594
  ' class="wppa-nav-text"' .
595
- ' style="'.wppa_wcs( 'wppa-nav-text' ).'float:right; cursor:pointer;"' .
596
  ' onclick="' . $onclick . '"' .
597
  ' >' .
598
  wppa_get_svghtml( 'Content-View', wppa_icon_size( '1.5em' ), false, false, '10', '10', '10', '10' ) .
@@ -653,7 +651,7 @@ global $wppa_lang;
653
  ' onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax . '\', \'' . $href . '\' );"' :
654
  ' href="' . $href . '"' ) .
655
  ' class="wppa-nav-text ' . $class . '"' .
656
- ' style="cursor:pointer;' . wppa_wcs( 'wppa-nav-text' ).'"' .
657
  ' title="' . esc_attr( $title ) . '" >' .
658
  $value .
659
  '</a>' );
@@ -664,7 +662,6 @@ global $wppa_lang;
664
  ' class="wppa-nav-text ' . $class . ( wppa( 'is_slide' ) ? ' bc-pname' : '' ) . '"' .
665
  ' style="' .
666
  ( $title ? 'cursor:pointer;' : '' ) .
667
- wppa_wcs( 'wppa-nav-text' ) .
668
  '"' .
669
  ' title="' . esc_attr( $title ) . '"' .
670
  ' >' .
@@ -700,7 +697,6 @@ global $wppa_lang;
700
  }
701
  wppa_out( '<span' .
702
  ' class="wppa-nav-text ' . $class . ( wppa( 'is_slide' ) && $is_pname ? ' bc-pname' : '' ) . '"' .
703
- ' style="' . wppa_wcs( 'wppa-nav-text' ).'"' .
704
  ' >' .
705
  $sep .
706
  '</span>' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for breadcrumbs
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
88
  ' id="wppa-bc-'.wppa( 'mocc' ) . '"' .
89
  ' class="wppa-nav wppa-box wppa-nav-text wppa-bc"' .
90
  ' style="' .
 
 
91
  '" >' );
92
 
93
  // Do we need Home?
577
  ' href="' . $thumbhref . '"' .
578
  ' title="' . __( 'Thumbnail view' , 'wp-photo-album-plus') . '"' .
579
  ' class="wppa-nav-text"' .
580
+ ' style="float:right; cursor:pointer; text-decoration:none;"' .
581
  ' >' .
582
  wppa_get_svghtml( 'Content-View', wppa_icon_size( '1.5em' ), false, false, '10', '10', '10', '10' ) .
583
  '</a>' );
590
  wppa_out( '<span' .
591
  ' title="' . __( 'Thumbnail view', 'wp-photo-album-plus' ) . '"' .
592
  ' class="wppa-nav-text"' .
593
+ ' style="float:right; cursor:pointer;"' .
594
  ' onclick="' . $onclick . '"' .
595
  ' >' .
596
  wppa_get_svghtml( 'Content-View', wppa_icon_size( '1.5em' ), false, false, '10', '10', '10', '10' ) .
651
  ' onclick="wppaDoAjaxRender(' . wppa( 'mocc' ) . ', \'' . $ajax . '\', \'' . $href . '\' );"' :
652
  ' href="' . $href . '"' ) .
653
  ' class="wppa-nav-text ' . $class . '"' .
654
+ ' style="cursor:pointer;"' .
655
  ' title="' . esc_attr( $title ) . '" >' .
656
  $value .
657
  '</a>' );
662
  ' class="wppa-nav-text ' . $class . ( wppa( 'is_slide' ) ? ' bc-pname' : '' ) . '"' .
663
  ' style="' .
664
  ( $title ? 'cursor:pointer;' : '' ) .
 
665
  '"' .
666
  ' title="' . esc_attr( $title ) . '"' .
667
  ' >' .
697
  }
698
  wppa_out( '<span' .
699
  ' class="wppa-nav-text ' . $class . ( wppa( 'is_slide' ) && $is_pname ? ' bc-pname' : '' ) . '"' .
 
700
  ' >' .
701
  $sep .
702
  '</span>' );
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 8.0.00.018
7
  *
8
  */
9
 
@@ -474,7 +474,7 @@ horizrailenabled:false,";
474
  'wppa_auto_page_type' => 'photo',
475
  'wppa_auto_page_links' => 'bottom',
476
  'wppa_defer_javascript' => 'yes',
477
- 'wppa_inline_css' => 'yes',
478
  'wppa_custom_style' => '',
479
  'wppa_custom_style_chrome' => '',
480
  'wppa_custom_style_firefox' => '',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
474
  'wppa_auto_page_type' => 'photo',
475
  'wppa_auto_page_links' => 'bottom',
476
  'wppa_defer_javascript' => 'yes',
477
+ // 'wppa_inline_css' => 'yes',
478
  'wppa_custom_style' => '',
479
  'wppa_custom_style_chrome' => '',
480
  'wppa_custom_style_firefox' => '',
wppa-functions.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
- * Version 8.0.00.017
7
  *
8
  */
9
 
@@ -4139,7 +4139,7 @@ function wppa_popup() {
4139
  wppa_out( '<div' .
4140
  ' id="wppa-popup-'.wppa( 'mocc' ).'"' .
4141
  ' class="wppa-popup-frame wppa-thumb-text"' .
4142
- ' style="max-width:2048px;'.wppa_wcs( 'wppa-thumb-text' ).'"' .
4143
  ' onmouseout="wppaPopDown( '.wppa( 'mocc' ).' );"' .
4144
  ' >' .
4145
  '</div>' .
@@ -4300,7 +4300,7 @@ function wppa_get_preambule() {
4300
 
4301
  function wppa_dummy_bar( $msg = '' ) {
4302
 
4303
- wppa_out( '<div style="margin:4px 0; '.wppa_wcs( 'wppa-box' ).'text-align:center;">'.$msg.'</div>' );
4304
  }
4305
 
4306
  function wppa_rating_count_by_id( $id = '' ) {
@@ -4393,14 +4393,14 @@ function wppa_get_text_frame_style( $photo_left, $type ) {
4393
  }
4394
  switch ( $photo_pos ) {
4395
  case 'left':
4396
- $result = 'style="width:'.$width.'%;float:right;'.wppa_wcs( 'wppa-cover-text-frame' ).'"';
4397
  break;
4398
  case 'right':
4399
- $result = 'style="width:'.$width.'%;float:left;'.wppa_wcs( 'wppa-cover-text-frame' ).'"';
4400
  break;
4401
  case 'top':
4402
  case 'bottom':
4403
- $result = 'style="'.wppa_wcs( 'wppa-cover-text-frame' ).'"';
4404
  break;
4405
  default:
4406
  wppa_dbg_msg( 'Illegal $photo_pos in wppa_get_text_frame_style', 'red' );
@@ -4410,15 +4410,15 @@ function wppa_get_text_frame_style( $photo_left, $type ) {
4410
  switch ( $photo_pos ) {
4411
  case 'left':
4412
  $width -= wppa_get_textframe_delta();
4413
- $result = 'style="width:'.$width.'px; float:right;'.wppa_wcs( 'wppa-cover-text-frame' ).'"';
4414
  break;
4415
  case 'right':
4416
  $width -= wppa_get_textframe_delta();
4417
- $result = 'style="width:'.$width.'px; float:left;'.wppa_wcs( 'wppa-cover-text-frame' ).'"';
4418
  break;
4419
  case 'top':
4420
  case 'bottom':
4421
- $result = 'style="'.wppa_wcs( 'wppa-cover-text-frame' ).'"';
4422
  break;
4423
  default:
4424
  wppa_dbg_msg( 'Illegal $photo_pos in wppa_get_text_frame_style', 'red' );
3
  * Package: wp-photo-album-plus
4
  *
5
  * Various functions
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
4139
  wppa_out( '<div' .
4140
  ' id="wppa-popup-'.wppa( 'mocc' ).'"' .
4141
  ' class="wppa-popup-frame wppa-thumb-text"' .
4142
+ ' style="max-width:2048px;"' .
4143
  ' onmouseout="wppaPopDown( '.wppa( 'mocc' ).' );"' .
4144
  ' >' .
4145
  '</div>' .
4300
 
4301
  function wppa_dummy_bar( $msg = '' ) {
4302
 
4303
+ wppa_out( '<div style="margin:4px 0; text-align:center;">'.$msg.'</div>' );
4304
  }
4305
 
4306
  function wppa_rating_count_by_id( $id = '' ) {
4393
  }
4394
  switch ( $photo_pos ) {
4395
  case 'left':
4396
+ $result = 'style="width:'.$width.'%;float:right;"';
4397
  break;
4398
  case 'right':
4399
+ $result = 'style="width:'.$width.'%;float:left;"';
4400
  break;
4401
  case 'top':
4402
  case 'bottom':
4403
+ $result = '';
4404
  break;
4405
  default:
4406
  wppa_dbg_msg( 'Illegal $photo_pos in wppa_get_text_frame_style', 'red' );
4410
  switch ( $photo_pos ) {
4411
  case 'left':
4412
  $width -= wppa_get_textframe_delta();
4413
+ $result = 'style="width:'.$width.'px; float:right;"';
4414
  break;
4415
  case 'right':
4416
  $width -= wppa_get_textframe_delta();
4417
+ $result = 'style="width:'.$width.'px; float:left;"';
4418
  break;
4419
  case 'top':
4420
  case 'bottom':
4421
+ $result = '';
4422
  break;
4423
  default:
4424
  wppa_dbg_msg( 'Illegal $photo_pos in wppa_get_text_frame_style', 'red' );
wppa-gutenberg-photo.php CHANGED
@@ -65,7 +65,7 @@ global $wpdb;
65
 
66
  // My photos selection
67
  '
68
- <tr id="wppaphoto-myphoto-tr" style="" >' .
69
  '<th><label for="wppaphoto-myphoto" class="wppaphoto-myphoto" >'.__('My Photo to be used', 'wp-photo-album-plus').':</label></th>'.
70
  '<td>'.
71
  '<select id="wppaphoto-myphoto" name="photo" class="wppaphoto-myphoto" onchange="wppaGutenbergPhotoEvaluate()" >' .
@@ -77,7 +77,7 @@ global $wpdb;
77
  ' onclick="jQuery(\'#wppaphoto-myphoto-tr\').hide();jQuery(\'#wppaphoto-allphoto-tr\').show();wppaMyPhotoSelection=false;jQuery(\'#wppaphoto-photo-preview\').html(\'\');wppaGutenbergPhotoEvaluate();"' .
78
  ' />' .
79
  '<br />'.
80
- '<small style="" class="wppamyphoto-photo" >'.
81
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
82
  __('You can select one of your photos from a maximum of 100 most recently added', 'wp-photo-album-plus').'<br />'.
83
  '</small>'.
@@ -93,7 +93,7 @@ global $wpdb;
93
  wppa_get_allphotos_selection_body_for_gutenberg() .
94
  '</select>' .
95
  '<br />' .
96
- '<small style="" class="wppaphoto-allphoto" >'.
97
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
98
  __('You can select from a maximum of 100 most recently added photos', 'wp-photo-album-plus').'<br />'.
99
  '</small>'.
@@ -102,7 +102,7 @@ global $wpdb;
102
 
103
  // Photo preview
104
  '
105
- <tr id="wppaphoto-photo-preview-tr" style="" >'.
106
  '<th>' .
107
  __( 'Preview image', 'wp-photo-album-plus').':' .
108
  '</th>'.
65
 
66
  // My photos selection
67
  '
68
+ <tr id="wppaphoto-myphoto-tr" >' .
69
  '<th><label for="wppaphoto-myphoto" class="wppaphoto-myphoto" >'.__('My Photo to be used', 'wp-photo-album-plus').':</label></th>'.
70
  '<td>'.
71
  '<select id="wppaphoto-myphoto" name="photo" class="wppaphoto-myphoto" onchange="wppaGutenbergPhotoEvaluate()" >' .
77
  ' onclick="jQuery(\'#wppaphoto-myphoto-tr\').hide();jQuery(\'#wppaphoto-allphoto-tr\').show();wppaMyPhotoSelection=false;jQuery(\'#wppaphoto-photo-preview\').html(\'\');wppaGutenbergPhotoEvaluate();"' .
78
  ' />' .
79
  '<br />'.
80
+ '<small class="wppamyphoto-photo" >'.
81
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
82
  __('You can select one of your photos from a maximum of 100 most recently added', 'wp-photo-album-plus').'<br />'.
83
  '</small>'.
93
  wppa_get_allphotos_selection_body_for_gutenberg() .
94
  '</select>' .
95
  '<br />' .
96
+ '<small class="wppaphoto-allphoto" >'.
97
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
98
  __('You can select from a maximum of 100 most recently added photos', 'wp-photo-album-plus').'<br />'.
99
  '</small>'.
102
 
103
  // Photo preview
104
  '
105
+ <tr id="wppaphoto-photo-preview-tr" >'.
106
  '<th>' .
107
  __( 'Preview image', 'wp-photo-album-plus').':' .
108
  '</th>'.
wppa-links.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
- * Version 8.0.00.018
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -1241,7 +1241,7 @@ global $previous_page_last_id;
1241
  $result = "\n" .
1242
  '<div' .
1243
  ' class="wppa-nav-text wppa-box wppa-nav"' .
1244
- ' style="clear:both;text-align:center;' . wppa_wcs( 'wppa-box' ) . '"' .
1245
  ' >';
1246
 
1247
  $vis = $curpage == '1' ? 'visibility: hidden;' : '';
@@ -1283,7 +1283,7 @@ global $previous_page_last_id;
1283
  $result .=
1284
  '<div' .
1285
  ' class="wppa-mini-box wppa-alt wppa-black wppa-active-pagelink"' .
1286
- ' style="display:inline;text-align:center;' . wppa_wcs( 'wppa-mini-box' ) . wppa_wcs( 'wppa-black' ) .' text-decoration:none;cursor:default;"' .
1287
  ' >' .
1288
  '&nbsp;' . $i . '&nbsp;' .
1289
  '</div>';
@@ -1292,7 +1292,7 @@ global $previous_page_last_id;
1292
  $result .=
1293
  '<div' .
1294
  ' class="wppa-mini-box wppa-even"' .
1295
- ' style="display:inline;text-align:center;' . wppa_wcs( 'wppa-mini-box' ) . '"' .
1296
  ' >' .
1297
 
1298
  '<a' .
@@ -1345,7 +1345,7 @@ global $previous_page_last_id;
1345
  $result = "\n" . '
1346
  <div
1347
  class="wppa-nav-text wppa-box wppa-nav"
1348
- style="clear:both; text-align:center; ' . wppa_wcs( 'wppa-box' ) . '"
1349
  >';
1350
 
1351
  $vis = $curpage == '1' ? 'visibility: hidden;' : '';
@@ -1355,7 +1355,7 @@ global $previous_page_last_id;
1355
  >
1356
  <span
1357
  class="wppa-arrow"
1358
- style="' . wppa_wcs( 'wppa-arrow' ) . 'cursor:default;" >&laquo;&nbsp;
1359
  </span>
1360
  <a
1361
  style="cursor:pointer;"
@@ -1379,7 +1379,7 @@ global $previous_page_last_id;
1379
  </a>
1380
  <span
1381
  class="wppa-arrow"
1382
- style="' . wppa_wcs( 'wppa-arrow' ) . 'cursor:default;" >&nbsp;&raquo;</span
1383
  >
1384
  </div><!-- #next-page -->';
1385
 
@@ -1393,7 +1393,7 @@ global $previous_page_last_id;
1393
  $result .= '
1394
  <div
1395
  class="wppa-mini-box wppa-alt wppa-black wppa-active-pagelink"
1396
- style="display:inline; text-align:center; ' . wppa_wcs( 'wppa-mini-box' ) . wppa_wcs( 'wppa-black' ) . ' text-decoration: none; cursor: default;"
1397
  >&nbsp;' . $i . '&nbsp;</div
1398
  >';
1399
  }
@@ -1401,7 +1401,7 @@ global $previous_page_last_id;
1401
  $result .= '
1402
  <div
1403
  class="wppa-mini-box wppa-even"
1404
- style="display:inline; text-align:center; ' . wppa_wcs( 'wppa-mini-box' ) . '"
1405
  >
1406
  <a
1407
  id="wppa-pagelink-' . $mocc . '-' . $i . '"
3
  * Package: wp-photo-album-plus
4
  *
5
  * Frontend links
6
+ * Version 8.0.00.019
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
1241
  $result = "\n" .
1242
  '<div' .
1243
  ' class="wppa-nav-text wppa-box wppa-nav"' .
1244
+ ' style="clear:both;text-align:center;"' .
1245
  ' >';
1246
 
1247
  $vis = $curpage == '1' ? 'visibility: hidden;' : '';
1283
  $result .=
1284
  '<div' .
1285
  ' class="wppa-mini-box wppa-alt wppa-black wppa-active-pagelink"' .
1286
+ ' style="display:inline;text-align:center;text-decoration:none;cursor:default;"' .
1287
  ' >' .
1288
  '&nbsp;' . $i . '&nbsp;' .
1289
  '</div>';
1292
  $result .=
1293
  '<div' .
1294
  ' class="wppa-mini-box wppa-even"' .
1295
+ ' style="display:inline;text-align:center;"' .
1296
  ' >' .
1297
 
1298
  '<a' .
1345
  $result = "\n" . '
1346
  <div
1347
  class="wppa-nav-text wppa-box wppa-nav"
1348
+ style="clear:both; text-align:center;"
1349
  >';
1350
 
1351
  $vis = $curpage == '1' ? 'visibility: hidden;' : '';
1355
  >
1356
  <span
1357
  class="wppa-arrow"
1358
+ style="cursor:default;" >&laquo;&nbsp;
1359
  </span>
1360
  <a
1361
  style="cursor:pointer;"
1379
  </a>
1380
  <span
1381
  class="wppa-arrow"
1382
+ style="cursor:default;" >&nbsp;&raquo;</span
1383
  >
1384
  </div><!-- #next-page -->';
1385
 
1393
  $result .= '
1394
  <div
1395
  class="wppa-mini-box wppa-alt wppa-black wppa-active-pagelink"
1396
+ style="display:inline; text-align:center; text-decoration: none; cursor: default;"
1397
  >&nbsp;' . $i . '&nbsp;</div
1398
  >';
1399
  }
1401
  $result .= '
1402
  <div
1403
  class="wppa-mini-box wppa-even"
1404
+ style="display:inline; text-align:center;"
1405
  >
1406
  <a
1407
  id="wppa-pagelink-' . $mocc . '-' . $i . '"
wppa-non-admin.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
- * Version 8.0.00.016
7
  *
8
  */
9
 
@@ -55,16 +55,6 @@ global $wppa_api_version;
55
  wp_register_style('wppa_style', WPPA_URL.'/theme/wppa-style.css', array(), $ver);
56
  wp_enqueue_style('wppa_style');
57
 
58
- // Dynamic css
59
- if ( get_option( 'wppa_inline_css', 'yes' ) == 'no' ) {
60
- if ( ! file_exists( WPPA_UPLOAD_PATH.'/dynamic/wppa-dynamic.css' ) ) {
61
- wppa_create_wppa_dynamic_css();
62
- update_option( 'wppa_dynamic_css_version', wppa_get_option( 'wppa_dynamic_css_version', '0' ) + '1' );
63
- }
64
- if ( file_exists( WPPA_UPLOAD_PATH.'/dynamic/wppa-dynamic.css' ) ) {
65
- wp_enqueue_style( 'wppa-dynamic', WPPA_UPLOAD_URL.'/dynamic/wppa-dynamic.css', array('wppa_style'), wppa_get_option( 'wppa_dynamic_css_version' ) );
66
- }
67
- }
68
  }
69
 
70
  /* SEO META TAGS AND SM SHARE DATA */
@@ -760,10 +750,9 @@ function wppa_kickoff() {
760
  global $wppa_lang;
761
  global $wppa_api_version;
762
  global $wppa_init_js_data;
763
- global $wppa_dynamic_css_data;
764
 
765
- // init.css failed?
766
- if ( $wppa_dynamic_css_data ) echo $wppa_dynamic_css_data;
767
 
768
  // init.js failed?
769
  if ( $wppa_init_js_data ) echo $wppa_init_js_data;
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the non admin stuff
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
55
  wp_register_style('wppa_style', WPPA_URL.'/theme/wppa-style.css', array(), $ver);
56
  wp_enqueue_style('wppa_style');
57
 
 
 
 
 
 
 
 
 
 
 
58
  }
59
 
60
  /* SEO META TAGS AND SM SHARE DATA */
750
  global $wppa_lang;
751
  global $wppa_api_version;
752
  global $wppa_init_js_data;
 
753
 
754
+ // dynamic css
755
+ echo wppa_create_wppa_dynamic_css();
756
 
757
  // init.js failed?
758
  if ( $wppa_init_js_data ) echo $wppa_init_js_data;
wppa-photo-admin-autosave.php CHANGED
@@ -2463,7 +2463,6 @@ function wppaToggleExif( id, count ) {
2463
  '<td style="padding:0 4px;" >' .
2464
  '<select' .
2465
  ' id="com-stat-' . $comment['id'] . '"' .
2466
- ' style=""' .
2467
  ' onchange="wppaAjaxUpdateCommentStatus( '.$id.', '.$comment['id'].', this.value );wppaSetComBgCol(' . $comment['id'] . ');"' .
2468
  ' >' .
2469
  '<option value="pending" '.$p.'>'.__( 'Pending' , 'wp-photo-album-plus').'</option>' .
2463
  '<td style="padding:0 4px;" >' .
2464
  '<select' .
2465
  ' id="com-stat-' . $comment['id'] . '"' .
 
2466
  ' onchange="wppaAjaxUpdateCommentStatus( '.$id.', '.$comment['id'].', this.value );wppaSetComBgCol(' . $comment['id'] . ');"' .
2467
  ' >' .
2468
  '<option value="pending" '.$p.'>'.__( 'Pending' , 'wp-photo-album-plus').'</option>' .
wppa-potd-widget.php CHANGED
@@ -2,8 +2,8 @@
2
  /* wppa-potd-widget.php
3
  * Package: wp-photo-album-plus
4
  *
5
- * display the widget
6
- * Version 8.0.00.012
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
@@ -130,7 +130,8 @@ class PhotoOfTheDay extends WP_Widget {
130
  $widget_content .= "\n\t\t".wppa_get_video_html( array ( 'id' => $id,
131
  'title' => $title,
132
  'controls' => ( wppa_opt( 'potd_linktype' ) == 'none' ),
133
- 'cursor' => $cursor
 
134
  ));
135
  }
136
  else {
2
  /* wppa-potd-widget.php
3
  * Package: wp-photo-album-plus
4
  *
5
+ * display the photo of the day widget
6
+ * Version 8.0.00.019
7
  */
8
 
9
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
130
  $widget_content .= "\n\t\t".wppa_get_video_html( array ( 'id' => $id,
131
  'title' => $title,
132
  'controls' => ( wppa_opt( 'potd_linktype' ) == 'none' ),
133
+ 'cursor' => $cursor,
134
+ 'widthp' => '100'
135
  ));
136
  }
137
  else {
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.0.00.018
7
  *
8
  */
9
 
@@ -6485,13 +6485,6 @@ global $wppa_subtab_names;
6485
  $html = wppa_checkbox($slug);
6486
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
6487
 
6488
- $name = __('Inline styles', 'wp-photo-album-plus');
6489
- $desc = __('Set style specifications inline.', 'wp-photo-album-plus');
6490
- $help = __('If checked: May fix layout problems, but slows down page appearing.', 'wp-photo-album-plus');
6491
- $slug = 'wppa_inline_css';
6492
- $html = wppa_checkbox($slug);
6493
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
6494
-
6495
  global $wppa_setting_error;
6496
  $wppa_setting_error = true;
6497
 
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
6485
  $html = wppa_checkbox($slug);
6486
  wppa_setting_new($slug, '11', $name, $desc, $html, $help);
6487
 
 
 
 
 
 
 
 
6488
  global $wppa_setting_error;
6489
  $wppa_setting_error = true;
6490
 
wppa-slideshow.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the slideshow high level functions
6
- * Version 8.0.00.018
7
  *
8
  */
9
 
@@ -270,12 +270,12 @@ function wppa_start_stop_icons( $opt = '' ) {
270
  wppa_out( '<div' .
271
  ' id="prevnext1-'.wppa( 'mocc' ).'"' .
272
  ' class="wppa-box wppa-nav wppa-nav-text"' .
273
- ' style="text-align:center;'.wppa_wcs('wppa-box').wppa_wcs('wppa-nav-text').$hide.'line-height:0;"' .
274
  ' >' .
275
  '<span' .
276
  ' id="speed0-'.wppa( 'mocc' ).'"' .
277
  ' class="wppa-nav-text speed0"' .
278
- ' style="'.wppa_wcs('wppa-nav-text').'display:inline-block;"' .
279
  ' title="' . __('Slower', 'wp-photo-album-plus') . '"' .
280
  ( $Filmonlynavcontin ?
281
  ' onclick="wppaAnimationSpeed*=1.25;";' :
@@ -288,7 +288,7 @@ function wppa_start_stop_icons( $opt = '' ) {
288
  '<span' .
289
  ' id="startstop-'.wppa( 'mocc' ).'"' .
290
  ' class="wppa-nav-text startstop"' .
291
- ' style="'.wppa_wcs('wppa-nav-text').'display:inline-block;"' .
292
  ' title="' . __( 'Start / stop slideshow', 'wp-photo-album-plus' ) . '"' .
293
  ' onclick="wppaStartStop(' . wppa( 'mocc' ) . ', -1); return false;"' .
294
  ' >' .
@@ -298,7 +298,7 @@ function wppa_start_stop_icons( $opt = '' ) {
298
  '<span' .
299
  ' id="speed1-'.wppa( 'mocc' ).'"' .
300
  ' class="wppa-nav-text speed1"' .
301
- ' style="'.wppa_wcs('wppa-nav-text').'display:inline-block;"' .
302
  ' title="' . __('Faster', 'wp-photo-album-plus') . '"' .
303
  ( $Filmonlynavcontin ?
304
  ' onclick="wppaAnimationSpeed*=0.8;";' :
@@ -315,7 +315,7 @@ function wppa_start_stop_icons( $opt = '' ) {
315
  '<span
316
  id="renew-'.wppa( 'mocc' ).'"
317
  class="wppa-nav-text renew"
318
- style="'.wppa_wcs('wppa-nav-text').' float:right;"
319
  title="' . esc_attr( __('Renew', 'wp-photo-album-plus') ) . '"
320
  onclick="_wppaStop('.wppa('mocc').');wppaDoAjaxRender('.wppa('mocc').', \''.$ajax_url.
321
  'wppa-slideonly=1&amp;wppa-filmonly=1&amp;wppa-album='.wppa('start_album').'&amp;wppa-occur='.wppa('mocc').'\', \'\' )"
@@ -361,12 +361,11 @@ function wppa_start_stop_text( $opt = '' ) {
361
  wppa_out( '<div' .
362
  ' id="prevnext1-'.wppa( 'mocc' ).'"' .
363
  ' class="wppa-box wppa-nav wppa-nav-text"' .
364
- ' style="text-align:center;'.wppa_wcs('wppa-box').wppa_wcs('wppa-nav-text').$hide.'"' .
365
  ' >' .
366
  '<a' .
367
  ' id="speed0-'.wppa( 'mocc' ).'"' .
368
  ' class="wppa-nav-text speed0"' .
369
- ' style="'.wppa_wcs('wppa-nav-text').'"' .
370
  ( $Filmonlynavcontin ?
371
  ' onclick="wppaAnimationSpeed*=1.25;";' :
372
  ' onclick="wppaSpeed('.wppa( 'mocc' ).', false); return false;"'
@@ -378,7 +377,6 @@ function wppa_start_stop_text( $opt = '' ) {
378
  '<a' .
379
  ' id="startstop-'.wppa( 'mocc' ).'"' .
380
  ' class="wppa-nav-text startstop"' .
381
- ' style="'.wppa_wcs('wppa-nav-text').'"' .
382
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1); return false;">' .
383
  __('Start', 'wp-photo-album-plus') .
384
  '</a>' .
@@ -386,7 +384,6 @@ function wppa_start_stop_text( $opt = '' ) {
386
  '<a' .
387
  ' id="speed1-'.wppa( 'mocc' ).'"' .
388
  ' class="wppa-nav-text speed1"' .
389
- ' style="'.wppa_wcs('wppa-nav-text').'"' .
390
  ( $Filmonlynavcontin ?
391
  ' onclick="wppaAnimationSpeed*=0.8;";' :
392
  ' onclick="wppaSpeed('.wppa( 'mocc' ).', true); return false;"'
@@ -402,7 +399,7 @@ function wppa_start_stop_text( $opt = '' ) {
402
  '<a
403
  id="renew-'.wppa( 'mocc' ).'"
404
  class="wppa-nav-text renew"
405
- style="'.wppa_wcs('wppa-nav-text').' float:right;"
406
  onclick="_wppaStop('.wppa('mocc').');wppaDoAjaxRender('.wppa('mocc').', \''.$ajax_url.
407
  'wppa-slideonly=1&amp;wppa-filmonly=1&amp;wppa-album='.wppa('start_album').'&amp;wppa-occur='.wppa('mocc').'\', \'\' )"
408
  >' .
@@ -599,7 +596,6 @@ function wppa_slide_name_desc( $key = 'optional' ) {
599
  wppa_out( '<div' .
600
  ' id="namedesc-' . wppa( 'mocc' ) . '"' .
601
  ' class="wppa-box wppa-name-desc"' .
602
- ' style="' . wppa_wcs('wppa-box') .'"' .
603
  ' >'
604
  );
605
 
@@ -630,7 +626,6 @@ function wppa_slide_name_box( $key = 'optional' ) {
630
  wppa_out( '<div' .
631
  ' id="namebox-' . wppa( 'mocc' ) . '"' .
632
  ' class="wppa-box wppa-name-desc"' .
633
- ' style="' . wppa_wcs( 'wppa-box' ) . '"' .
634
  ' >'
635
  );
636
  wppa_slide_name( $key ); // The name of the photo
@@ -653,7 +648,6 @@ function wppa_slide_desc_box( $key = 'optional' ) {
653
  wppa_out( '<div' .
654
  ' id="descbox-'.wppa( 'mocc' ).'"' .
655
  ' class="wppa-box wppa-name-desc"' .
656
- ' style="' . wppa_wcs( 'wppa-box' ) . '"' .
657
  ' >' );
658
  wppa_slide_description( $key ); // The description of the photo
659
  wppa_out( '</div>' );
@@ -679,7 +673,7 @@ function wppa_slide_name($opt = '') {
679
  wppa_out( '<div' .
680
  ' id="imagetitle-'.wppa( 'mocc' ).'"' .
681
  ' class="wppa-fulltitle imagetitle"' .
682
- ' style="'.wppa_wcs('wppa-fulltitle').'padding:3px; width:100%"' .
683
  ' >' .
684
  '</div>'
685
  );
@@ -706,7 +700,6 @@ function wppa_slide_description( $opt = '' ) {
706
  ' id="imagedesc-'.wppa( 'mocc' ).'"' .
707
  ' class="wppa-fulldesc imagedesc"' .
708
  ' style="' .
709
- wppa_wcs( 'wppa-fulldesc' ) .
710
  'padding:3px;' .
711
  'width:100%;' .
712
  'text-align:' . wppa_opt( 'fulldesc_align' ) .
@@ -782,7 +775,6 @@ function wppa_slide_custom( $opt = '' ) {
782
  wppa_out( '<div' .
783
  ' id="wppa-custom-'.wppa( 'mocc' ).'"' .
784
  ' class="wppa-box wppa-custom"' .
785
- ' style="'.wppa_wcs('wppa-box').'"' .
786
  ' >' .
787
  $content .
788
  '</div>'
@@ -820,11 +812,7 @@ function wppa_get_slide_rating_vote_only( $opt, $id = '0', $is_lightbox = false
820
  '<div' .
821
  ' id="wppa-rating-'.wppa( 'mocc' ).'"' .
822
  ' class="wppa-box wppa-nav wppa-nav-text"' .
823
- ' style="' .
824
- wppa_wcs( 'wppa-box' ) .
825
- wppa_wcs( 'wppa-nav-text' ) .
826
- 'text-align:center;' .
827
- '"' .
828
  '>';
829
  }
830
 
@@ -996,7 +984,6 @@ global $wpdb;
996
  ' id="wppa-rating-'.wppa( 'mocc' ).'"' .
997
  ' class="wppa-rating-numeric-box ' . ( $idorlb ? $class : 'wppa-box wppa-nav wppa-nav-text' ) . '"' .
998
  ' style="' .
999
- ( $idorlb ? 'padding:4px;' : wppa_wcs( 'wppa-box' ) . wppa_wcs( 'wppa-nav-text' ) ) .
1000
  $size .
1001
  ' text-align:center;"' .
1002
  '> ';
@@ -1339,14 +1326,14 @@ function wppa_slide_filmstrip( $opt = '' ) {
1339
  </script>' ) );
1340
 
1341
  if ( is_feed() ) {
1342
- wppa_out( '<div style="'.wppa_wcs('wppa-box').'">' );
1343
  }
1344
  else {
1345
 
1346
  $iconsize = wppa_icon_size( $fs . 'px;' );
1347
  wppa_out( '<div' .
1348
  ' class="wppa-box wppa-nav wppa-filmstrip-box"' .
1349
- ' style="text-align:center; '.wppa_wcs('wppa-box').'height:'.$height.'px;"' .
1350
  ' >' .
1351
  '<div' .
1352
  ' class="wppa-fs-arrow-cont-'.wppa( 'mocc' ).'"' .
@@ -1354,7 +1341,7 @@ function wppa_slide_filmstrip( $opt = '' ) {
1354
  ' >' .
1355
  '<span' .
1356
  ' class="wppa-first-'.wppa( 'mocc' ).' wppa-arrow"' .
1357
- ' style="'.wppa_wcs('wppa-arrow').'display:inline-block;"' .
1358
  ' id="first-film-arrow-'.wppa( 'mocc' ).'"' .
1359
  ' onclick="wppaFirst('.wppa( 'mocc' ).');"' .
1360
  ' title="'.__('First', 'wp-photo-album-plus').'"' .
@@ -1368,7 +1355,7 @@ function wppa_slide_filmstrip( $opt = '' ) {
1368
  ' >' .
1369
  '<span' .
1370
  ' class="wppa-last-'.wppa( 'mocc' ).' wppa-arrow"' .
1371
- ' style="'.wppa_wcs('wppa-arrow').'display:inline-block;"' .
1372
  ' id="last-film-arrow-'.wppa( 'mocc' ).'"' .
1373
  ' onclick="wppaLast('.wppa( 'mocc' ).');"' .
1374
  ' title="'.__('Last', 'wp-photo-album-plus').'"' .
@@ -1612,12 +1599,12 @@ function wppa_browsebar_icons( $opt = '' ) {
1612
  wppa_out( '<div' .
1613
  ' id="prevnext2-' . wppa( 'mocc' ) . '"' .
1614
  ' class="wppa-box wppa-nav wppa-nav-text"' .
1615
- ' style="text-align:center;' . wppa_wcs( 'wppa-box' ) . wppa_wcs( 'wppa-nav-text' ) . '"' .
1616
  ' >' .
1617
  '<span' .
1618
  ' id="prev-arrow-' . wppa( 'mocc' ) . '"' .
1619
  ' class="wppa-prev-' . wppa( 'mocc' ) . ' wppa-nav-text arrow-' . wppa( 'mocc' ) . '"' .
1620
- ' style="float:left;text-align:left;cursor:pointer;' . wppa_wcs('wppa-nav-text') . '"' .
1621
  ' title="' . __( 'Previous photo', 'wp-photo-album-plus' ) . '"' .
1622
  ' onclick="wppaPrev(' . wppa( 'mocc' ) . ')"' .
1623
  ' >' .
@@ -1626,7 +1613,7 @@ function wppa_browsebar_icons( $opt = '' ) {
1626
  '<span' .
1627
  ' id="next-arrow-' . wppa( 'mocc' ) . '"' .
1628
  ' class="wppa-next-' . wppa( 'mocc' ) . ' wppa-nav-text arrow-' . wppa( 'mocc' ) . '"' .
1629
- ' style="float:right;text-align:right;cursor:pointer;' . wppa_wcs( 'wppa-nav-text' ) . '"' .
1630
  ' title="' . __( 'Next photo', 'wp-photo-album-plus' ) . '"' .
1631
  ' onclick="wppaNext(' . wppa( 'mocc' ) . ')"' .
1632
  ' >' .
@@ -1635,7 +1622,7 @@ function wppa_browsebar_icons( $opt = '' ) {
1635
  '<span' .
1636
  ' id="counter-'.wppa( 'mocc' ).'"' .
1637
  ' class="wppa-nav-text wppa-black"' .
1638
- ' style="text-align:center; '.wppa_wcs('wppa-nav-text').'; cursor:pointer;"' .
1639
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1);"' .
1640
  ' title="'.__('Click to start/stop', 'wp-photo-album-plus').'"' .
1641
  ' >' .
@@ -1662,25 +1649,25 @@ function wppa_browsebar_text( $opt = '' ) {
1662
  wppa_out( '<div' .
1663
  ' id="prevnext2-'.wppa( 'mocc' ).'"' .
1664
  ' class="wppa-box wppa-nav wppa-nav-text"' .
1665
- ' style="text-align: center; '.wppa_wcs('wppa-box').wppa_wcs('wppa-nav-text').'"' .
1666
  ' >' .
1667
  '<a' .
1668
  ' id="prev-arrow-'.wppa( 'mocc' ).'"' .
1669
  ' class="wppa-prev-'.wppa( 'mocc' ).' wppa-nav-text arrow-'.wppa( 'mocc' ).'"' .
1670
- ' style="float:left; text-align:left; cursor:pointer; '.wppa_wcs('wppa-nav-text').'" onclick="wppaPrev('.wppa( 'mocc' ).')"' .
1671
  ' >' .
1672
  '</a>' .
1673
  '<a' .
1674
  ' id="next-arrow-'.wppa( 'mocc' ).'"' .
1675
  ' class="wppa-next-'.wppa( 'mocc' ).' wppa-nav-text arrow-'.wppa( 'mocc' ).'"' .
1676
- ' style="float:right; text-align:right; cursor:pointer; '.wppa_wcs('wppa-nav-text').'"' .
1677
  ' onclick="wppaNext('.wppa( 'mocc' ).')"' .
1678
  ' >' .
1679
  '</a>' .
1680
  '<span' .
1681
  ' id="counter-'.wppa( 'mocc' ).'"' .
1682
  ' class="wppa-nav-text wppa-black"' .
1683
- ' style="text-align:center; '.wppa_wcs('wppa-nav-text').'; cursor:pointer;"' .
1684
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1);"' .
1685
  ' title="'.__('Click to start/stop', 'wp-photo-album-plus').'"' .
1686
  ' >' .
@@ -1707,7 +1694,7 @@ function wppa_comments( $opt = '' ) {
1707
  wppa_out( '<div' .
1708
  ' id="wppa-comments-'.wppa( 'mocc' ).'"' .
1709
  ' class="wppa-box wppa-comments"' .
1710
- ' style="text-align: center; '.wppa_wcs('wppa-box').'"' .
1711
  ' >' .
1712
  '</div>'
1713
  );
@@ -1731,7 +1718,7 @@ function wppa_iptc( $opt = '' ) {
1731
  wppa_out( '<div' .
1732
  ' id="iptc-'.wppa( 'mocc' ).'"' .
1733
  ' class="wppa-box wppa-box-text wppa-iptc"' .
1734
- ' style="text-align: center; '.wppa_wcs('wppa-box').wppa_wcs('wppa-box-text').'"' .
1735
  ' >' .
1736
  '</div>'
1737
  );
@@ -1755,7 +1742,7 @@ function wppa_exif( $opt = '' ) {
1755
  wppa_out( '<div' .
1756
  ' id="exif-'.wppa( 'mocc' ).'"' .
1757
  ' class="wppa-box wppa-box-text wppa-exif"' .
1758
- ' style="text-align: center; '.wppa_wcs('wppa-box').wppa_wcs('wppa-box-text').'"' .
1759
  ' >' .
1760
  '</div>'
1761
  );
@@ -1779,7 +1766,7 @@ function wppa_share( $opt = '' ) {
1779
  wppa_out( '<div' .
1780
  ' id="wppa-share-'.wppa( 'mocc' ).'"' .
1781
  ' class="wppa-box wppa-box-text wppa-share"' .
1782
- ' style="text-align: center; '.wppa_wcs('wppa-box').wppa_wcs('wppa-box-text').'"' .
1783
  ' >' .
1784
  '</div>'
1785
  );
@@ -1791,7 +1778,7 @@ function wppa_errorbox( $text ) {
1791
  wppa_out( '<div' .
1792
  ' id="error-'.wppa( 'mocc' ).'"' .
1793
  ' class="wppa-box wppa-box-text wppa-nav wppa-errorbox"' .
1794
- ' style="text-align: center; '.wppa_wcs('wppa-box').wppa_wcs('wppa-box-text').'"' .
1795
  ' >' .
1796
  $text .
1797
  '</div>'
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all the slideshow high level functions
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
270
  wppa_out( '<div' .
271
  ' id="prevnext1-'.wppa( 'mocc' ).'"' .
272
  ' class="wppa-box wppa-nav wppa-nav-text"' .
273
+ ' style="text-align:center;'.$hide.'line-height:0;"' .
274
  ' >' .
275
  '<span' .
276
  ' id="speed0-'.wppa( 'mocc' ).'"' .
277
  ' class="wppa-nav-text speed0"' .
278
+ ' style="display:inline-block;"' .
279
  ' title="' . __('Slower', 'wp-photo-album-plus') . '"' .
280
  ( $Filmonlynavcontin ?
281
  ' onclick="wppaAnimationSpeed*=1.25;";' :
288
  '<span' .
289
  ' id="startstop-'.wppa( 'mocc' ).'"' .
290
  ' class="wppa-nav-text startstop"' .
291
+ ' style="display:inline-block;"' .
292
  ' title="' . __( 'Start / stop slideshow', 'wp-photo-album-plus' ) . '"' .
293
  ' onclick="wppaStartStop(' . wppa( 'mocc' ) . ', -1); return false;"' .
294
  ' >' .
298
  '<span' .
299
  ' id="speed1-'.wppa( 'mocc' ).'"' .
300
  ' class="wppa-nav-text speed1"' .
301
+ ' style="display:inline-block;"' .
302
  ' title="' . __('Faster', 'wp-photo-album-plus') . '"' .
303
  ( $Filmonlynavcontin ?
304
  ' onclick="wppaAnimationSpeed*=0.8;";' :
315
  '<span
316
  id="renew-'.wppa( 'mocc' ).'"
317
  class="wppa-nav-text renew"
318
+ style="float:right;"
319
  title="' . esc_attr( __('Renew', 'wp-photo-album-plus') ) . '"
320
  onclick="_wppaStop('.wppa('mocc').');wppaDoAjaxRender('.wppa('mocc').', \''.$ajax_url.
321
  'wppa-slideonly=1&amp;wppa-filmonly=1&amp;wppa-album='.wppa('start_album').'&amp;wppa-occur='.wppa('mocc').'\', \'\' )"
361
  wppa_out( '<div' .
362
  ' id="prevnext1-'.wppa( 'mocc' ).'"' .
363
  ' class="wppa-box wppa-nav wppa-nav-text"' .
364
+ ' style="text-align:center;'.$hide.'"' .
365
  ' >' .
366
  '<a' .
367
  ' id="speed0-'.wppa( 'mocc' ).'"' .
368
  ' class="wppa-nav-text speed0"' .
 
369
  ( $Filmonlynavcontin ?
370
  ' onclick="wppaAnimationSpeed*=1.25;";' :
371
  ' onclick="wppaSpeed('.wppa( 'mocc' ).', false); return false;"'
377
  '<a' .
378
  ' id="startstop-'.wppa( 'mocc' ).'"' .
379
  ' class="wppa-nav-text startstop"' .
 
380
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1); return false;">' .
381
  __('Start', 'wp-photo-album-plus') .
382
  '</a>' .
384
  '<a' .
385
  ' id="speed1-'.wppa( 'mocc' ).'"' .
386
  ' class="wppa-nav-text speed1"' .
 
387
  ( $Filmonlynavcontin ?
388
  ' onclick="wppaAnimationSpeed*=0.8;";' :
389
  ' onclick="wppaSpeed('.wppa( 'mocc' ).', true); return false;"'
399
  '<a
400
  id="renew-'.wppa( 'mocc' ).'"
401
  class="wppa-nav-text renew"
402
+ style="float:right;"
403
  onclick="_wppaStop('.wppa('mocc').');wppaDoAjaxRender('.wppa('mocc').', \''.$ajax_url.
404
  'wppa-slideonly=1&amp;wppa-filmonly=1&amp;wppa-album='.wppa('start_album').'&amp;wppa-occur='.wppa('mocc').'\', \'\' )"
405
  >' .
596
  wppa_out( '<div' .
597
  ' id="namedesc-' . wppa( 'mocc' ) . '"' .
598
  ' class="wppa-box wppa-name-desc"' .
 
599
  ' >'
600
  );
601
 
626
  wppa_out( '<div' .
627
  ' id="namebox-' . wppa( 'mocc' ) . '"' .
628
  ' class="wppa-box wppa-name-desc"' .
 
629
  ' >'
630
  );
631
  wppa_slide_name( $key ); // The name of the photo
648
  wppa_out( '<div' .
649
  ' id="descbox-'.wppa( 'mocc' ).'"' .
650
  ' class="wppa-box wppa-name-desc"' .
 
651
  ' >' );
652
  wppa_slide_description( $key ); // The description of the photo
653
  wppa_out( '</div>' );
673
  wppa_out( '<div' .
674
  ' id="imagetitle-'.wppa( 'mocc' ).'"' .
675
  ' class="wppa-fulltitle imagetitle"' .
676
+ ' style="padding:3px; width:100%"' .
677
  ' >' .
678
  '</div>'
679
  );
700
  ' id="imagedesc-'.wppa( 'mocc' ).'"' .
701
  ' class="wppa-fulldesc imagedesc"' .
702
  ' style="' .
 
703
  'padding:3px;' .
704
  'width:100%;' .
705
  'text-align:' . wppa_opt( 'fulldesc_align' ) .
775
  wppa_out( '<div' .
776
  ' id="wppa-custom-'.wppa( 'mocc' ).'"' .
777
  ' class="wppa-box wppa-custom"' .
 
778
  ' >' .
779
  $content .
780
  '</div>'
812
  '<div' .
813
  ' id="wppa-rating-'.wppa( 'mocc' ).'"' .
814
  ' class="wppa-box wppa-nav wppa-nav-text"' .
815
+ ' style="text-align:center;"' .
 
 
 
 
816
  '>';
817
  }
818
 
984
  ' id="wppa-rating-'.wppa( 'mocc' ).'"' .
985
  ' class="wppa-rating-numeric-box ' . ( $idorlb ? $class : 'wppa-box wppa-nav wppa-nav-text' ) . '"' .
986
  ' style="' .
 
987
  $size .
988
  ' text-align:center;"' .
989
  '> ';
1326
  </script>' ) );
1327
 
1328
  if ( is_feed() ) {
1329
+ wppa_out( '<div>' );
1330
  }
1331
  else {
1332
 
1333
  $iconsize = wppa_icon_size( $fs . 'px;' );
1334
  wppa_out( '<div' .
1335
  ' class="wppa-box wppa-nav wppa-filmstrip-box"' .
1336
+ ' style="text-align:center;height:'.$height.'px;"' .
1337
  ' >' .
1338
  '<div' .
1339
  ' class="wppa-fs-arrow-cont-'.wppa( 'mocc' ).'"' .
1341
  ' >' .
1342
  '<span' .
1343
  ' class="wppa-first-'.wppa( 'mocc' ).' wppa-arrow"' .
1344
+ ' style="display:inline-block;"' .
1345
  ' id="first-film-arrow-'.wppa( 'mocc' ).'"' .
1346
  ' onclick="wppaFirst('.wppa( 'mocc' ).');"' .
1347
  ' title="'.__('First', 'wp-photo-album-plus').'"' .
1355
  ' >' .
1356
  '<span' .
1357
  ' class="wppa-last-'.wppa( 'mocc' ).' wppa-arrow"' .
1358
+ ' style="display:inline-block;"' .
1359
  ' id="last-film-arrow-'.wppa( 'mocc' ).'"' .
1360
  ' onclick="wppaLast('.wppa( 'mocc' ).');"' .
1361
  ' title="'.__('Last', 'wp-photo-album-plus').'"' .
1599
  wppa_out( '<div' .
1600
  ' id="prevnext2-' . wppa( 'mocc' ) . '"' .
1601
  ' class="wppa-box wppa-nav wppa-nav-text"' .
1602
+ ' style="text-align:center;"' .
1603
  ' >' .
1604
  '<span' .
1605
  ' id="prev-arrow-' . wppa( 'mocc' ) . '"' .
1606
  ' class="wppa-prev-' . wppa( 'mocc' ) . ' wppa-nav-text arrow-' . wppa( 'mocc' ) . '"' .
1607
+ ' style="float:left;text-align:left;cursor:pointer;"' .
1608
  ' title="' . __( 'Previous photo', 'wp-photo-album-plus' ) . '"' .
1609
  ' onclick="wppaPrev(' . wppa( 'mocc' ) . ')"' .
1610
  ' >' .
1613
  '<span' .
1614
  ' id="next-arrow-' . wppa( 'mocc' ) . '"' .
1615
  ' class="wppa-next-' . wppa( 'mocc' ) . ' wppa-nav-text arrow-' . wppa( 'mocc' ) . '"' .
1616
+ ' style="float:right;text-align:right;cursor:pointer;"' .
1617
  ' title="' . __( 'Next photo', 'wp-photo-album-plus' ) . '"' .
1618
  ' onclick="wppaNext(' . wppa( 'mocc' ) . ')"' .
1619
  ' >' .
1622
  '<span' .
1623
  ' id="counter-'.wppa( 'mocc' ).'"' .
1624
  ' class="wppa-nav-text wppa-black"' .
1625
+ ' style="text-align:center;cursor:pointer;"' .
1626
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1);"' .
1627
  ' title="'.__('Click to start/stop', 'wp-photo-album-plus').'"' .
1628
  ' >' .
1649
  wppa_out( '<div' .
1650
  ' id="prevnext2-'.wppa( 'mocc' ).'"' .
1651
  ' class="wppa-box wppa-nav wppa-nav-text"' .
1652
+ ' style="text-align: center;"' .
1653
  ' >' .
1654
  '<a' .
1655
  ' id="prev-arrow-'.wppa( 'mocc' ).'"' .
1656
  ' class="wppa-prev-'.wppa( 'mocc' ).' wppa-nav-text arrow-'.wppa( 'mocc' ).'"' .
1657
+ ' style="float:left; text-align:left; cursor:pointer;" onclick="wppaPrev('.wppa( 'mocc' ).')"' .
1658
  ' >' .
1659
  '</a>' .
1660
  '<a' .
1661
  ' id="next-arrow-'.wppa( 'mocc' ).'"' .
1662
  ' class="wppa-next-'.wppa( 'mocc' ).' wppa-nav-text arrow-'.wppa( 'mocc' ).'"' .
1663
+ ' style="float:right; text-align:right; cursor:pointer;"' .
1664
  ' onclick="wppaNext('.wppa( 'mocc' ).')"' .
1665
  ' >' .
1666
  '</a>' .
1667
  '<span' .
1668
  ' id="counter-'.wppa( 'mocc' ).'"' .
1669
  ' class="wppa-nav-text wppa-black"' .
1670
+ ' style="text-align:center; cursor:pointer;"' .
1671
  ' onclick="wppaStartStop('.wppa( 'mocc' ).', -1);"' .
1672
  ' title="'.__('Click to start/stop', 'wp-photo-album-plus').'"' .
1673
  ' >' .
1694
  wppa_out( '<div' .
1695
  ' id="wppa-comments-'.wppa( 'mocc' ).'"' .
1696
  ' class="wppa-box wppa-comments"' .
1697
+ ' style="text-align: center;"' .
1698
  ' >' .
1699
  '</div>'
1700
  );
1718
  wppa_out( '<div' .
1719
  ' id="iptc-'.wppa( 'mocc' ).'"' .
1720
  ' class="wppa-box wppa-box-text wppa-iptc"' .
1721
+ ' style="text-align: center;"' .
1722
  ' >' .
1723
  '</div>'
1724
  );
1742
  wppa_out( '<div' .
1743
  ' id="exif-'.wppa( 'mocc' ).'"' .
1744
  ' class="wppa-box wppa-box-text wppa-exif"' .
1745
+ ' style="text-align: center;"' .
1746
  ' >' .
1747
  '</div>'
1748
  );
1766
  wppa_out( '<div' .
1767
  ' id="wppa-share-'.wppa( 'mocc' ).'"' .
1768
  ' class="wppa-box wppa-box-text wppa-share"' .
1769
+ ' style="text-align: center;"' .
1770
  ' >' .
1771
  '</div>'
1772
  );
1778
  wppa_out( '<div' .
1779
  ' id="error-'.wppa( 'mocc' ).'"' .
1780
  ' class="wppa-box wppa-box-text wppa-nav wppa-errorbox"' .
1781
+ ' style="text-align: center;"' .
1782
  ' >' .
1783
  $text .
1784
  '</div>'
wppa-statistics.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * Functions for counts etc
6
  * Common use front and admin
7
- * Version 8.0.00.017
8
  *
9
  */
10
 
@@ -23,7 +23,7 @@ function wppa_get_statistics() {
23
  $p_id = wppa_get_parentalbumid($y_id);
24
  $p_name = __(wppa_get_album_name($p_id), 'wp-photo-album-plus');
25
 
26
- $result = '<div class="wppa-box wppa-nav" style="text-align: center; '.wppa_wcs('wppa-box').'">';
27
  $result .= sprintf( _n( 'There is %d photo album', 'There are %d photo albums', $count, 'wp-photo-album-plus'), $count );
28
  $result .= ' '.__('The last album added is', 'wp-photo-album-plus').' ';
29
  $result .= '<a href="'.wppa_get_permalink().'wppa-album='.$y_id.'&amp;wppa-cover=0&amp;wppa-occur=1">'.$y_name.'</a>';
4
  *
5
  * Functions for counts etc
6
  * Common use front and admin
7
+ * Version 8.0.00.019
8
  *
9
  */
10
 
23
  $p_id = wppa_get_parentalbumid($y_id);
24
  $p_name = __(wppa_get_album_name($p_id), 'wp-photo-album-plus');
25
 
26
+ $result = '<div class="wppa-box wppa-nav" style="text-align: center;">';
27
  $result .= sprintf( _n( 'There is %d photo album', 'There are %d photo albums', $count, 'wp-photo-album-plus'), $count );
28
  $result .= ' '.__('The last album added is', 'wp-photo-album-plus').' ';
29
  $result .= '<a href="'.wppa_get_permalink().'wppa-album='.$y_id.'&amp;wppa-cover=0&amp;wppa-occur=1">'.$y_name.'</a>';
wppa-styles.php CHANGED
@@ -3,178 +3,94 @@
3
  /* Package: wp-photo-album-plus
4
  /*
5
  /* Various style computation routines
6
- /* Version 8.0.00.004
7
  /*
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
11
 
12
- // Create dynamic css file
13
- // This function creates the dynamic css file with styles that depend on the settings.
14
- // Any updates to this routine must also be implemented in wppa_wcs()
15
  function wppa_create_wppa_dynamic_css() {
16
- global $wppa_dynamic_css_data;
17
 
18
- $header =
19
- '/* -- WPPA+ css
20
- /*
21
- /* Dynamicly Created on ' . date( 'c' ) . '
22
- /*
23
- */
24
- ';
25
-
26
- $content = '
27
- .wppa-box {
28
- ' . ( wppa_opt( 'bwidth' ) > '0' ? 'border-style: solid; border-width:' . wppa_opt( 'bwidth' ) . 'px; ' : '' ) . '
29
- ' . ( wppa_opt( 'bradius' ) > '0' ? 'border-radius:' . wppa_opt( 'bradius' ) . 'px; -moz-border-radius:' . wppa_opt( 'bradius' ) . 'px; ' : '' ) . '
30
- ' . ( wppa_opt( 'box_spacing' ) ? 'margin-bottom:' . wppa_opt( 'box_spacing' ) . 'px; ' : '' ) . '
31
- ' . ( wppa_opt( 'bgcolor' ) ? 'background-color:' . wppa_opt( 'bgcolor' ) . '; ' : '' ) . '
32
- ' . ( wppa_opt( 'bcolor' ) ? 'border-color:' . wppa_opt( 'bcolor' ) . '; ' : '' ) . '
33
- }';
34
-
35
- $content .= '
36
- .wppa-mini-box {
37
- ' . ( wppa_opt( 'bwidth' ) > '0' ?
38
- 'border-style: solid; border-width:' . floor( ( wppa_opt( 'bwidth' ) + 2 ) / 3 ) . 'px; ' :
39
- '' ) . '
40
- ' . ( wppa_opt( 'bradius' ) > '0' ?
41
- 'border-radius:' . floor( ( wppa_opt( 'bradius' ) + 2 ) / 3 ) . 'px; ' : '' ) . '
42
- }';
43
-
44
- $content .= '
45
- .wppa-cover-box {
46
- ' . ( wppa_opt( 'cover_minheight' ) ?
47
- 'min-height:' . wppa_opt( 'cover_minheight' ) . 'px; ' :
48
- '' ) . '
49
- }';
50
-
51
- $content .= '
52
- .wppa-cover-text-frame {
53
- ' . ( wppa_opt( 'head_and_text_frame_height' ) ?
54
- 'min-height:' . wppa_opt( 'head_and_text_frame_height' ) . 'px; ' :
55
- '' ) . '
56
- }';
57
-
58
- $content .= '
59
- .wppa-box-text {
60
- ' . ( wppa_opt( 'fontcolor_box' ) ?
61
- 'color:' . wppa_opt( 'fontcolor_box' ) . '; ' :
62
- '' ) . '
63
- }
64
- .wppa-box-text, .wppa-box-text-nocolor {
65
- ' . ( wppa_opt( 'fontfamily_box' ) ?
66
- 'font-family:' . wppa_opt( 'fontfamily_box' ) . '; ' :
67
- '' ) . '
68
- ' . ( wppa_opt( 'fontsize_box' ) ?
69
- 'font-size:' . wppa_opt( 'fontsize_box' ) . 'px; ' :
70
- '' ) . '
71
- ' . ( wppa_opt( 'fontweight_box' ) ?
72
- 'font-weight:' . wppa_opt( 'fontweight_box' ) . '; ' :
73
- '' ) . '
74
- }';
75
-
76
- $content .= '
77
- .wppa-thumb-text {
78
- ' . ( wppa_opt( 'fontfamily_thumb' ) ?
79
- 'font-family:' . wppa_opt( 'fontfamily_thumb' ) . '; ' :
80
- '' ) . '
81
- ' . ( wppa_opt( 'fontsize_thumb' ) ?
82
- 'font-size:' . wppa_opt( 'fontsize_thumb' ) . 'px; line-height:' .
83
- floor( wppa_opt( 'fontsize_thumb' ) * 1.29 ) . 'px; ' :
84
- '' ) . '
85
- ' . ( wppa_opt( 'fontcolor_thumb' ) ?
86
- 'color:' . wppa_opt( 'fontcolor_thumb' ) . '; ' :
87
- '' ) . '
88
- ' . ( wppa_opt( 'fontweight_thumb' ) ?
89
- 'font-weight:' . wppa_opt( 'fontweight_thumb' ) . '; ' :
90
- '' ) . '
91
- }';
92
-
93
- $content .= '
94
- .wppa-nav-text {
95
- ' . ( wppa_opt( 'fontfamily_nav' ) ? 'font-family:' . wppa_opt( 'fontfamily_nav' ) . '; ' : '' ) . '
96
- ' . ( wppa_opt( 'fontsize_nav' ) ? 'font-size:' . wppa_opt( 'fontsize_nav' ) . 'px; ' : '' ) . '
97
- ' . ( wppa_opt( 'fontcolor_nav' ) ? 'color:' . wppa_opt( 'fontcolor_nav' ) . '; ' : '' ) . '
98
- ' . ( wppa_opt( 'fontweight_nav' ) ? 'font-weight:' . wppa_opt( 'fontweight_nav' ) . '; ' : '' ) . '
99
- }';
100
-
101
- $content .= '
102
- .wppa-img {
103
- ' . ( wppa_opt( 'bgcolor_img' ) ? 'background-color:' . wppa_opt( 'bgcolor_img' ) . '; ' : '' ) . '
104
- }';
105
-
106
- $content .= '
107
- .wppa-title {
108
- ' . ( wppa_opt( 'fontfamily_title' ) ? 'font-family:' . wppa_opt( 'fontfamily_title' ) . '; ' : '' ) . '
109
- ' . ( wppa_opt( 'fontsize_title' ) ? 'font-size:' . wppa_opt( 'fontsize_title' ) . 'px; ' : '' ) . '
110
- ' . ( wppa_opt( 'fontcolor_title' ) ? 'color:' . wppa_opt( 'fontcolor_title' ) . '; ' : '' ) . '
111
- ' . ( wppa_opt( 'fontweight_title' ) ? 'font-weight:' . wppa_opt( 'fontweight_title' ) . '; ' : '' ) . '
112
- }';
113
-
114
- $content .= '
115
- .wppa-fulldesc {
116
- ' . ( wppa_opt( 'fontfamily_fulldesc' ) ? 'font-family:' . wppa_opt( 'fontfamily_fulldesc' ) . '; ' : '' ) . '
117
- ' . ( wppa_opt( 'fontsize_fulldesc' ) ? 'font-size:' . wppa_opt( 'fontsize_fulldesc' ) . 'px; ' : '' ) . '
118
- ' . ( wppa_opt( 'fontcolor_fulldesc' ) ? 'color:' . wppa_opt( 'fontcolor_fulldesc' ) . '; ' : '' ) . '
119
- ' . ( wppa_opt( 'fontweight_fulldesc' ) ? 'font-weight:' . wppa_opt( 'fontweight_fulldesc' ) . '; ' : '' ) . '
120
- }';
121
-
122
- $content .= '
123
- .wppa-fulltitle {
124
- ' . ( wppa_opt( 'fontfamily_fulltitle' ) ? 'font-family:' . wppa_opt( 'fontfamily_fulltitle' ) . '; ' : '' ) . '
125
- ' . ( wppa_opt( 'fontsize_fulltitle' ) ? 'font-size:' . wppa_opt( 'fontsize_fulltitle' ) . 'px; ' : '' ) . '
126
- ' . ( wppa_opt( 'fontcolor_fulltitle' ) ? 'color:' . wppa_opt( 'fontcolor_fulltitle' ) . '; ' : '' ) . '
127
- ' . ( wppa_opt( 'fontweight_fulltitle' ) ? 'font-weight:' . wppa_opt( 'fontweight_fulltitle' ) . '; ' : '' ) . '
128
- }';
129
 
130
  // Add miscellaneous styles
131
  if ( ! wppa_switch( 'show_pname' ) ) {
132
- $content .= '
133
  .bc-pname { display:none; }';
134
  }
135
 
136
  // Add custom style
137
- $content .= wppa_opt( 'custom_style' );
138
-
139
- // Minify
140
- $old_len = strlen( $content );
141
- $new_len = '0';
142
- while ( $old_len != $new_len ) {
143
- $content = str_replace( ' ', ' ', $content );
144
- $old_len = $new_len;
145
- $new_len = strlen( $content );
146
- }
147
- $content = str_replace( "\t", '', $content );
148
- $content = str_replace( "\n", '', $content );
149
- $content = str_replace( ' }', '}', $content );
150
- $content = str_replace( '} ', '}', $content );
151
- $content = str_replace( ' {', '{', $content );
152
- $content = str_replace( '{ ', '{', $content );
153
- $content = str_replace( ' ;', ';', $content );
154
- $content = str_replace( '; ', ';', $content );
155
- $content = str_replace( ' :', ':', $content );
156
- $content = str_replace( ': ', ':', $content );
157
- $content = str_replace( '}', "}\n", $content );
158
- $content = str_replace( '*/', "*/\n", $content );
159
- $content = str_replace( ",\n", ',', $content );
160
-
161
- // Write to file
162
- $path = WPPA_UPLOAD_PATH . '/dynamic/wppa-dynamic.css';
163
- if ( wppa_put_contents( $path, $header . $content ) ) {
164
- $wppa_dynamic_css_data = '';
165
- }
166
-
167
- // File error, keep data in global for output on page
168
- else {
169
- $wppa_dynamic_css_data =
170
- '<style type="text/css">
171
- /* Warning: file wppa-dynamic.css could not be created */
172
- /* The content is therefor output here */
173
 
174
- ' . $content . '
175
  </style>
 
176
  ';
177
- }
 
 
178
  }
179
 
180
  // get full img style
@@ -541,175 +457,6 @@ function wppa_get_imgstyle_a( $id, $file, $xmax_size, $xvalign = '', $type = ''
541
  return $result;
542
  }
543
 
544
- // This function is used to either provide inline styles or hide them,
545
- // dependant of the wppa_inline_css switch.
546
- // Styles should be passed as is . They must be independatnt of settings,
547
- // and appear in the standard wppa-styles.css file.
548
- function wppa_wis( $style ) {
549
-
550
- if ( ! wppa_switch( 'inline_css' ) ) {
551
- return ''; // No inline styles
552
- }
553
- else {
554
- return $style;
555
- }
556
- }
557
-
558
- // This function returns styles dependant of settings or hides them,
559
- // dependant of the wppa_inline_css switch.
560
- // The class is passed and the corresponding inline styles are returned.
561
- // Any updates to this routine must also be implemented in wppa_create_wppa_dynamic_css().
562
- function wppa_wcs( $class ) {
563
-
564
- if ( ! wppa_switch( 'inline_css' ) ) {
565
- return ''; // No inline styles
566
- }
567
-
568
- $opt = '';
569
- $result = '';
570
-
571
- switch ( $class ) {
572
- case 'wppa-box':
573
- $opt = wppa_opt( 'bwidth' );
574
- if ( $opt > '0' ) {
575
- $result .= 'border-style: solid; border-width:' . $opt . 'px; ';
576
- }
577
- $opt = wppa_opt( 'bradius' );
578
- if ( $opt > '0' ) {
579
- $result .= 'border-radius:' . $opt . 'px; ';
580
- }
581
- $opt = wppa_opt( 'box_spacing' );
582
- if ( $opt != '' ) {
583
- $result .= 'margin-bottom:' . $opt . 'px; ';
584
- }
585
- $opt = wppa_opt( 'bgcolor' );
586
- if ( $opt ) {
587
- $result .= 'background-color:' . $opt . '; ';
588
- }
589
- $opt = wppa_opt( 'bcolor' );
590
- if ( $opt ) {
591
- $result .= 'border-color:' . $opt . '; ';
592
- }
593
- break;
594
- case 'wppa-mini-box':
595
- $opt = wppa_opt( 'bwidth' );
596
- if ( $opt > '0' ) {
597
- $opt = floor( ( $opt + 2 ) / 3 );
598
- $result .= 'border-style: solid; border-width:' . $opt . 'px; ';
599
- }
600
- $opt = wppa_opt( 'bradius' );
601
- if ( $opt > '0' ) {
602
- $opt = floor( ( $opt + 2 ) / 3 );
603
- $result .= 'border-radius:' . $opt . 'px; ';
604
- }
605
- $opt = wppa_opt( 'bcolor' );
606
- if ( $opt ) {
607
- $result .= 'border-color:' . $opt . '; ';
608
- }
609
- break;
610
- case 'wppa-cover-box':
611
- $opt = wppa_opt( 'cover_minheight' );
612
- if ( $opt ) $result .= 'min-height:' . $opt . 'px; ';
613
- break;
614
- case 'wppa-cover-text-frame':
615
- $opt = wppa_opt( 'head_and_text_frame_height' );
616
- if ( $opt ) $result .= 'min-height:' . $opt . 'px; ';
617
- break;
618
- case 'wppa-thumb-text':
619
- $opt = wppa_opt( 'fontfamily_thumb' );
620
- if ( $opt ) $result .= 'font-family:' . $opt . '; ';
621
- $opt = wppa_opt( 'fontsize_thumb' );
622
- if ( $opt ) {
623
- $ls = floor( $opt * 1.29 );
624
- $result .= 'font-size:' . $opt . 'px; line-height:' . $ls . 'px; ';
625
- }
626
- $opt = wppa_opt( 'fontcolor_thumb' );
627
- if ( $opt ) $result .= 'color:' . $opt . '; ';
628
- $opt = wppa_opt( 'fontweight_thumb' );
629
- if ( $opt ) $result .= 'font-weight:' . $opt . '; ';
630
- break;
631
- case 'wppa-box-text':
632
- $opt = wppa_opt( 'fontcolor_box' );
633
- if ( $opt ) $result .= 'color:' . $opt . '; ';
634
- $opt = wppa_opt( 'fontfamily_box' );
635
- if ( $opt ) $result .= 'font-family:' . $opt . '; ';
636
- $opt = wppa_opt( 'fontsize_box' );
637
- if ( $opt ) $result .= 'font-size:' . $opt . 'px; ';
638
- $opt = wppa_opt( 'fontweight_box' );
639
- if ( $opt ) $result .= 'font-weight:' . $opt . '; ';
640
- break;
641
- case 'wppa-box-text-nocolor':
642
- $opt = wppa_opt( 'fontfamily_box' );
643
- if ( $opt ) $result .= 'font-family:' . $opt . '; ';
644
- $opt = wppa_opt( 'fontsize_box' );
645
- if ( $opt ) $result .= 'font-size:' . $opt . 'px; ';
646
- $opt = wppa_opt( 'fontweight_box' );
647
- if ( $opt ) $result .= 'font-weight:' . $opt . '; ';
648
- break;
649
-
650
- case 'wppa-nav-text':
651
- $opt = wppa_opt( 'fontfamily_nav' );
652
- if ( $opt ) $result .= 'font-family:' . $opt . '; ';
653
- $opt = wppa_opt( 'fontsize_nav' );
654
- if ( $opt ) $result .= 'font-size:' . $opt . 'px; ';
655
- $opt = wppa_opt( 'fontcolor_nav' );
656
- if ( $opt ) $result .= 'color:' . $opt . '; ';
657
- $opt = wppa_opt( 'fontweight_nav' );
658
- if ( $opt ) $result .= 'font-weight:' . $opt . '; ';
659
- break;
660
- case 'wppa-img':
661
- $opt = wppa_opt( 'bgcolor_img' );
662
- if ( $opt ) $result .= 'background-color:' . $opt . '; ';
663
- break;
664
- case 'wppa-title':
665
- $opt = wppa_opt( 'fontfamily_title' );
666
- if ( $opt ) $result .= 'font-family:' . $opt . '; ';
667
- $opt = wppa_opt( 'fontsize_title' );
668
- if ( $opt ) $result .= 'font-size:' . $opt . 'px; ';
669
- $opt = wppa_opt( 'fontcolor_title' );
670
- if ( $opt ) $result .= 'color:' . $opt . '; ';
671
- $opt = wppa_opt( 'fontweight_title' );
672
- if ( $opt ) $result .= 'font-weight:' . $opt . '; ';
673
- break;
674
- case 'wppa-fulldesc':
675
- $opt = wppa_opt( 'fontfamily_fulldesc' );
676
- if ( $opt ) $result .= 'font-family:' . $opt . '; ';
677
- $opt = wppa_opt( 'fontsize_fulldesc' );
678
- if ( $opt ) $result .= 'font-size:' . $opt . 'px; ';
679
- $opt = wppa_opt( 'fontcolor_fulldesc' );
680
- if ( $opt ) $result .= 'color:' . $opt . '; ';
681
- $opt = wppa_opt( 'fontweight_fulldesc' );
682
- if ( $opt ) $result .= 'font-weight:' . $opt . '; ';
683
- break;
684
- case 'wppa-fulltitle':
685
- $opt = wppa_opt( 'fontfamily_fulltitle' );
686
- if ( $opt ) $result .= 'font-family:' . $opt . '; ';
687
- $opt = wppa_opt( 'fontsize_fulltitle' );
688
- if ( $opt ) $result .= 'font-size:' . $opt . 'px; ';
689
- $opt = wppa_opt( 'fontcolor_fulltitle' );
690
- if ( $opt ) $result .= 'color:' . $opt . '; ';
691
- $opt = wppa_opt( 'fontweight_fulltitle' );
692
- if ( $opt ) $result .= 'font-weight:' . $opt . '; ';
693
- break;
694
-
695
- case 'wppa-black':
696
- // $opt = wppa_opt( 'black' );
697
- // if ( $opt ) $result .= 'color:' . $opt . '; ';
698
- // break;
699
- break;
700
- case 'wppa-arrow':
701
- // $opt = wppa_opt( 'arrow_color' );
702
- // if ( $opt ) $result .= 'color:' . $opt . '; ';
703
- break;
704
- case 'wppa-td';
705
- $result .= 'padding: 3px 2px 3px 0; border: 0';
706
- break;
707
- default:
708
- wppa_dbg_msg( 'Unexpected error in wppa_wcs, unknown class: ' . $class, 'red' );
709
- wppa_log( 'Err', 'Unexpected error in wppa_wcs, unknown class: ' . $class );
710
- }
711
- return $result;
712
- }
713
 
714
  function wppa_get_text_medal_color_style( $type, $bw ='1' ) {
715
 
3
  /* Package: wp-photo-album-plus
4
  /*
5
  /* Various style computation routines
6
+ /* Version 8.0.00.019
7
  /*
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
11
 
12
+ // Create dynamic css
 
 
13
  function wppa_create_wppa_dynamic_css() {
 
14
 
15
+ $result = '
16
+ <!-- WPPA+ dynamic css -->
17
+ <style type="text/css" >
18
+ .wppa-box { ' .
19
+ ( wppa_opt( 'bwidth' ) > '0' ? 'border-style: solid; border-width:' . wppa_opt( 'bwidth' ) . 'px; ' : '' ) .
20
+ ( wppa_opt( 'bradius' ) > '0' ? 'border-radius:' . wppa_opt( 'bradius' ) . 'px; -moz-border-radius:' . wppa_opt( 'bradius' ) . 'px; ' : '' ) .
21
+ ( wppa_opt( 'box_spacing' ) ? 'margin-bottom:' . wppa_opt( 'box_spacing' ) . 'px; ' : '' ) .
22
+ ( wppa_opt( 'bgcolor' ) ? 'background-color:' . wppa_opt( 'bgcolor' ) . '; ' : '' ) .
23
+ ( wppa_opt( 'bcolor' ) ? 'border-color:' . wppa_opt( 'bcolor' ) . '; ' : '' ) .
24
+ ' }
25
+ .wppa-mini-box { ' .
26
+ ( wppa_opt( 'bwidth' ) > '0' ? 'border-style: solid; border-width:' . floor( ( wppa_opt( 'bwidth' ) + 2 ) / 3 ) . 'px; ' : '' ) .
27
+ ( wppa_opt( 'bradius' ) > '0' ? 'border-radius:' . floor( ( wppa_opt( 'bradius' ) + 2 ) / 3 ) . 'px; ' : '' ) .
28
+ ( wppa_opt( 'bcolor' ) ? 'border-color:' . wppa_opt( 'bcolor' ) . ';' : '' ) .
29
+ ' }
30
+ .wppa-cover-box { ' .
31
+ ( wppa_opt( 'cover_minheight' ) ? 'min-height:' . wppa_opt( 'cover_minheight' ) . 'px; ' : '' ) .
32
+ ' }
33
+ .wppa-cover-text-frame { ' .
34
+ ( wppa_opt( 'head_and_text_frame_height' ) ? 'min-height:' . wppa_opt( 'head_and_text_frame_height' ) . 'px; ' : '' ) .
35
+ ' }
36
+ .wppa-box-text { ' .
37
+ ( wppa_opt( 'fontcolor_box' ) ? 'color:' . wppa_opt( 'fontcolor_box' ) . '; ' : '' ) .
38
+ ' }
39
+ .wppa-box-text, .wppa-box-text-nocolor { ' .
40
+ ( wppa_opt( 'fontfamily_box' ) ? 'font-family:' . wppa_opt( 'fontfamily_box' ) . '; ' : '' ) .
41
+ ( wppa_opt( 'fontsize_box' ) ? 'font-size:' . wppa_opt( 'fontsize_box' ) . 'px; ' : '' ) .
42
+ ( wppa_opt( 'fontweight_box' ) ? 'font-weight:' . wppa_opt( 'fontweight_box' ) . '; ' : '' ) .
43
+ ' }
44
+ .wppa-thumb-text { ' .
45
+ ( wppa_opt( 'fontfamily_thumb' ) ? 'font-family:' . wppa_opt( 'fontfamily_thumb' ) . '; ' : '' ) .
46
+ ( wppa_opt( 'fontsize_thumb' ) ? 'font-size:' . wppa_opt( 'fontsize_thumb' ) . 'px; line-height:' . floor( wppa_opt( 'fontsize_thumb' ) * 1.29 ) . 'px; ' : '' ) .
47
+ ( wppa_opt( 'fontcolor_thumb' ) ? 'color:' . wppa_opt( 'fontcolor_thumb' ) . '; ' : '' ) .
48
+ ( wppa_opt( 'fontweight_thumb' ) ? 'font-weight:' . wppa_opt( 'fontweight_thumb' ) . '; ' : '' ) .
49
+ ' }
50
+ .wppa-nav-text { ' .
51
+ ( wppa_opt( 'fontfamily_nav' ) ? 'font-family:' . wppa_opt( 'fontfamily_nav' ) . '; ' : '' ) .
52
+ ( wppa_opt( 'fontsize_nav' ) ? 'font-size:' . wppa_opt( 'fontsize_nav' ) . 'px; ' : '' ) .
53
+ ( wppa_opt( 'fontcolor_nav' ) ? 'color:' . wppa_opt( 'fontcolor_nav' ) . '; ' : '' ) .
54
+ ( wppa_opt( 'fontweight_nav' ) ? 'font-weight:' . wppa_opt( 'fontweight_nav' ) . '; ' : '' ) .
55
+ ' }
56
+ .wppa-img { ' .
57
+ ( wppa_opt( 'bgcolor_img' ) ? 'background-color:' . wppa_opt( 'bgcolor_img' ) . '; ' : '' ) .
58
+ ' }
59
+ .wppa-title { ' .
60
+ ( wppa_opt( 'fontfamily_title' ) ? 'font-family:' . wppa_opt( 'fontfamily_title' ) . '; ' : '' ) .
61
+ ( wppa_opt( 'fontsize_title' ) ? 'font-size:' . wppa_opt( 'fontsize_title' ) . 'px; ' : '' ) .
62
+ ( wppa_opt( 'fontcolor_title' ) ? 'color:' . wppa_opt( 'fontcolor_title' ) . '; ' : '' ) .
63
+ ( wppa_opt( 'fontweight_title' ) ? 'font-weight:' . wppa_opt( 'fontweight_title' ) . '; ' : '' ) .
64
+ ' }
65
+ .wppa-fulldesc { ' .
66
+ ( wppa_opt( 'fontfamily_fulldesc' ) ? 'font-family:' . wppa_opt( 'fontfamily_fulldesc' ) . '; ' : '' ) .
67
+ ( wppa_opt( 'fontsize_fulldesc' ) ? 'font-size:' . wppa_opt( 'fontsize_fulldesc' ) . 'px; ' : '' ) .
68
+ ( wppa_opt( 'fontcolor_fulldesc' ) ? 'color:' . wppa_opt( 'fontcolor_fulldesc' ) . '; ' : '' ) .
69
+ ( wppa_opt( 'fontweight_fulldesc' ) ? 'font-weight:' . wppa_opt( 'fontweight_fulldesc' ) . '; ' : '' ) .
70
+ ' }
71
+ .wppa-fulltitle { ' .
72
+ ( wppa_opt( 'fontfamily_fulltitle' ) ? 'font-family:' . wppa_opt( 'fontfamily_fulltitle' ) . '; ' : '' ) .
73
+ ( wppa_opt( 'fontsize_fulltitle' ) ? 'font-size:' . wppa_opt( 'fontsize_fulltitle' ) . 'px; ' : '' ) .
74
+ ( wppa_opt( 'fontcolor_fulltitle' ) ? 'color:' . wppa_opt( 'fontcolor_fulltitle' ) . '; ' : '' ) .
75
+ ( wppa_opt( 'fontweight_fulltitle' ) ? 'font-weight:' . wppa_opt( 'fontweight_fulltitle' ) . '; ' : '' ) .
76
+ ' }';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
  // Add miscellaneous styles
79
  if ( ! wppa_switch( 'show_pname' ) ) {
80
+ $result .= '
81
  .bc-pname { display:none; }';
82
  }
83
 
84
  // Add custom style
85
+ $result .= wppa_opt( 'custom_style' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
 
87
+ $result .= '
88
  </style>
89
+ <!-- END WPPA+ dynamic css -->
90
  ';
91
+
92
+ return $result;
93
+
94
  }
95
 
96
  // get full img style
457
  return $result;
458
  }
459
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
460
 
461
  function wppa_get_text_medal_color_style( $type, $bw ='1' ) {
462
 
wppa-thumbnails.php CHANGED
@@ -5,7 +5,7 @@
5
  * Various funcions to display a thumbnail image
6
  * Contains all possible frontend thumbnail types
7
  *
8
- * Version 8.0.00.016
9
  *
10
  */
11
 
@@ -582,7 +582,6 @@ global $wpdb;
582
  '<span' .
583
  ' id="wppa-liketext-' . $id . '-' . $mocc . '"' .
584
  ' class="wppa-thumb-text"' .
585
- ' style="'.wppa_wcs( 'wppa-thumb-text' ).'"' .
586
  '> ' .
587
  $lt['display'] .
588
  '</span>';
@@ -609,7 +608,6 @@ global $wpdb;
609
  if ( wppa_is_item_displayable( $alb, 'name', 'thumb_text_name' ) ) {
610
  $result .= '<div' .
611
  ' class="wppa-thumb-text"' .
612
- ' style="'.wppa_wcs( 'wppa-thumb-text' ).'"' .
613
  ' >' .
614
  wppa_get_photo_name( $id, array( 'addowner' => wppa_switch( 'thumb_text_owner' ) ) ) .
615
  '</div>';
@@ -619,7 +617,6 @@ global $wpdb;
619
  if ( wppa_switch( 'thumb_text_virt_album' ) && wppa_is_virtual() && wppa( 'start_album' ) != $thumb['album'] ) {
620
  $result .= '<div' .
621
  ' class="wppa-thumb-text"' .
622
- ' style="' . wppa_wcs( 'wppa-thumb-text' ) . '"' .
623
  ' >' .
624
  '<a' .
625
  ' href="' . wppa_get_album_url( $thumb['album'] ) . '"' .
@@ -635,7 +632,6 @@ global $wpdb;
635
  if ( wppa_switch( 'share_on_thumbs' ) ) {
636
  $result .= '<div' .
637
  ' class="wppa-thumb-text"' .
638
- ' style="' . wppa_wcs( 'wppa-thumb-text' ) . '"' .
639
  ' >' .
640
  wppa_get_share_html( $id, 'thumb' ) .
641
  '</div>';
@@ -648,7 +644,6 @@ global $wpdb;
648
  $result .=
649
  '<div' .
650
  ' class="wppa-thumb-text"' .
651
- ' style="' . wppa_wcs( 'wppa-thumb-text' ) . '"' .
652
  ' >';
653
 
654
  // The admins choice link
@@ -730,7 +725,6 @@ global $wpdb;
730
 
731
  $result .= '<div' .
732
  ' class="wppa-thumb-text"' .
733
- ' style="'.wppa_wcs( 'wppa-thumb-text' ).'"' .
734
  ' >' . $desc .
735
  '</div>';
736
  }
@@ -747,7 +741,6 @@ global $wpdb;
747
  }
748
  $result .= '<div' .
749
  ' class="wppa-thumb-text"' .
750
- ' style="'.wppa_wcs( 'wppa-thumb-text' ).'"' .
751
  ' >' . $rating .
752
  '</div>';
753
  }
@@ -759,7 +752,6 @@ global $wpdb;
759
  if ( $comcount ) {
760
  $result .= '<div' .
761
  ' class="wppa-thumb-text"' .
762
- ' style="'.wppa_wcs( 'wppa-thumb-text' ).'"' .
763
  ' >' . sprintf( _n( '%d comment', '%d comments', $comcount, 'wp-photo-album-plus'), $comcount ) .
764
  '</div>';
765
  }
@@ -769,7 +761,7 @@ global $wpdb;
769
  if ( wppa_switch( 'thumb_text_viewcount' ) ) {
770
  $result .= '<div' .
771
  ' class="wppa-thumb-text"' .
772
- ' style="clear:both;'.wppa_wcs( 'wppa-thumb-text' ).'"' .
773
  ' >' . sprintf( _n( '%d view', '%d views', $thumb['views'], 'wp-photo-album-plus'), $thumb['views'] ) .
774
  '</div>';
775
  }
@@ -834,7 +826,7 @@ global $thlinkmsggiven;
834
  $photo_left = wppa_switch( 'thumbphoto_left' );
835
  $class_asym = 'wppa-asym-text-frame-'.$mcr.$mocc;
836
 
837
- $style = wppa_wcs( 'wppa-box' );
838
  if ( is_feed() ) $style .= ' padding:7px;';
839
 
840
  $wid = wppa_get_cover_width( 'thumb' );
@@ -879,7 +871,6 @@ global $thlinkmsggiven;
879
  ' href="' . $href . '"' .
880
  ' target="' . $target . '"' .
881
  ' title="' . $title . '"' .
882
- ' style="' . wppa_wcs( 'wppa-title' ) . '"' .
883
  ' >' . wppa_get_photo_name( $id ) .
884
  '</a>';
885
  }
@@ -899,7 +890,6 @@ global $thlinkmsggiven;
899
 
900
  $result .= '<p' .
901
  ' class="wppa-box-text wppa-black"' .
902
- ' style="' . wppa_wcs( 'wppa-box-text' ) . wppa_wcs( 'wppa-black' ) .
903
  '" >' . $desc .
904
  '</p>';
905
  $result .= '</div>';
@@ -973,7 +963,7 @@ function wppa_the_thumbascoverphoto( $id, $src, $photo_left, $link, $imgattr_a,
973
  // 'onclick' => '',
974
  'lb' => false,
975
  'class' => 'image wppa-img',
976
- 'style' => wppa_wcs( 'wppa-img' ).$imgattr.$cursor //$imgstyle
977
  ) );
978
  }
979
  else {
@@ -983,7 +973,7 @@ function wppa_the_thumbascoverphoto( $id, $src, $photo_left, $link, $imgattr_a,
983
  ' class="image wppa-img"' .
984
  ' width="' . $imgwidth . '"' .
985
  ' height="' . $imgheight . '"' .
986
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . $cursor . '"' .
987
  ' ' . $events .
988
  ' />';
989
  }
@@ -1012,7 +1002,7 @@ function wppa_the_thumbascoverphoto( $id, $src, $photo_left, $link, $imgattr_a,
1012
  // 'onclick' => '',
1013
  'lb' => false,
1014
  'class' => 'image wppa-img',
1015
- 'style' => wppa_wcs( 'wppa-img' ).$imgattr //$imgstyle
1016
  ) );
1017
  }
1018
  else {
@@ -1022,7 +1012,7 @@ function wppa_the_thumbascoverphoto( $id, $src, $photo_left, $link, $imgattr_a,
1022
  ' class="image wppa-img"' .
1023
  ' width="' . $imgwidth . '"' .
1024
  ' height="' . $imgheight . '"' .
1025
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1026
  ' ' . $events .
1027
  ' />';
1028
  }
@@ -1045,7 +1035,7 @@ function wppa_the_thumbascoverphoto( $id, $src, $photo_left, $link, $imgattr_a,
1045
  'onclick' => $href,
1046
  'lb' => false,
1047
  'class' => 'image wppa-img',
1048
- 'style' => wppa_wcs( 'wppa-img' ).$imgattr //$imgstyle
1049
  ) );
1050
  }
1051
  else {
@@ -1055,7 +1045,7 @@ function wppa_the_thumbascoverphoto( $id, $src, $photo_left, $link, $imgattr_a,
1055
  ' class="image wppa-img"' .
1056
  ' width="' . $imgwidth . '"' .
1057
  ' height="' . $imgheight . '"' .
1058
- ' style="' . wppa_wcs( 'wppa-img' ) . $imgattr . '"' .
1059
  ' ' . $events .
1060
  ' onclick="' . $href . '"' .
1061
  ' />';
5
  * Various funcions to display a thumbnail image
6
  * Contains all possible frontend thumbnail types
7
  *
8
+ * Version 8.0.00.019
9
  *
10
  */
11
 
582
  '<span' .
583
  ' id="wppa-liketext-' . $id . '-' . $mocc . '"' .
584
  ' class="wppa-thumb-text"' .
 
585
  '> ' .
586
  $lt['display'] .
587
  '</span>';
608
  if ( wppa_is_item_displayable( $alb, 'name', 'thumb_text_name' ) ) {
609
  $result .= '<div' .
610
  ' class="wppa-thumb-text"' .
 
611
  ' >' .
612
  wppa_get_photo_name( $id, array( 'addowner' => wppa_switch( 'thumb_text_owner' ) ) ) .
613
  '</div>';
617
  if ( wppa_switch( 'thumb_text_virt_album' ) && wppa_is_virtual() && wppa( 'start_album' ) != $thumb['album'] ) {
618
  $result .= '<div' .
619
  ' class="wppa-thumb-text"' .
 
620
  ' >' .
621
  '<a' .
622
  ' href="' . wppa_get_album_url( $thumb['album'] ) . '"' .
632
  if ( wppa_switch( 'share_on_thumbs' ) ) {
633
  $result .= '<div' .
634
  ' class="wppa-thumb-text"' .
 
635
  ' >' .
636
  wppa_get_share_html( $id, 'thumb' ) .
637
  '</div>';
644
  $result .=
645
  '<div' .
646
  ' class="wppa-thumb-text"' .
 
647
  ' >';
648
 
649
  // The admins choice link
725
 
726
  $result .= '<div' .
727
  ' class="wppa-thumb-text"' .
 
728
  ' >' . $desc .
729
  '</div>';
730
  }
741
  }
742
  $result .= '<div' .
743
  ' class="wppa-thumb-text"' .
 
744
  ' >' . $rating .
745
  '</div>';
746
  }
752
  if ( $comcount ) {
753
  $result .= '<div' .
754
  ' class="wppa-thumb-text"' .
 
755
  ' >' . sprintf( _n( '%d comment', '%d comments', $comcount, 'wp-photo-album-plus'), $comcount ) .
756
  '</div>';
757
  }
761
  if ( wppa_switch( 'thumb_text_viewcount' ) ) {
762
  $result .= '<div' .
763
  ' class="wppa-thumb-text"' .
764
+ ' style="clear:both;"' .
765
  ' >' . sprintf( _n( '%d view', '%d views', $thumb['views'], 'wp-photo-album-plus'), $thumb['views'] ) .
766
  '</div>';
767
  }
826
  $photo_left = wppa_switch( 'thumbphoto_left' );
827
  $class_asym = 'wppa-asym-text-frame-'.$mcr.$mocc;
828
 
829
+ $style = '';
830
  if ( is_feed() ) $style .= ' padding:7px;';
831
 
832
  $wid = wppa_get_cover_width( 'thumb' );
871
  ' href="' . $href . '"' .
872
  ' target="' . $target . '"' .
873
  ' title="' . $title . '"' .
 
874
  ' >' . wppa_get_photo_name( $id ) .
875
  '</a>';
876
  }
890
 
891
  $result .= '<p' .
892
  ' class="wppa-box-text wppa-black"' .
 
893
  '" >' . $desc .
894
  '</p>';
895
  $result .= '</div>';
963
  // 'onclick' => '',
964
  'lb' => false,
965
  'class' => 'image wppa-img',
966
+ 'style' => $imgattr.$cursor //$imgstyle
967
  ) );
968
  }
969
  else {
973
  ' class="image wppa-img"' .
974
  ' width="' . $imgwidth . '"' .
975
  ' height="' . $imgheight . '"' .
976
+ ' style="' . $imgattr . $cursor . '"' .
977
  ' ' . $events .
978
  ' />';
979
  }
1002
  // 'onclick' => '',
1003
  'lb' => false,
1004
  'class' => 'image wppa-img',
1005
+ 'style' => $imgattr //$imgstyle
1006
  ) );
1007
  }
1008
  else {
1012
  ' class="image wppa-img"' .
1013
  ' width="' . $imgwidth . '"' .
1014
  ' height="' . $imgheight . '"' .
1015
+ ' style="' . $imgattr . '"' .
1016
  ' ' . $events .
1017
  ' />';
1018
  }
1035
  'onclick' => $href,
1036
  'lb' => false,
1037
  'class' => 'image wppa-img',
1038
+ 'style' => $imgattr //$imgstyle
1039
  ) );
1040
  }
1041
  else {
1045
  ' class="image wppa-img"' .
1046
  ' width="' . $imgwidth . '"' .
1047
  ' height="' . $imgheight . '"' .
1048
+ ' style="' . $imgattr . '"' .
1049
  ' ' . $events .
1050
  ' onclick="' . $href . '"' .
1051
  ' />';
wppa-tinymce-common.php CHANGED
@@ -103,7 +103,7 @@ global $wpdb;
103
 
104
  // My photos selection
105
  '
106
- <tr id="wppaphoto-myphoto-tr" style="" >' .
107
  '<th><label for="wppaphoto-myphoto" class="wppaphoto-myphoto" >'.__('My Photo to be used', 'wp-photo-album-plus').':</label></th>'.
108
  '<td>'.
109
  '<select id="wppaphoto-myphoto" name="photo" class="wppaphoto-myphoto" onchange="wppaPhotoEvaluate()" >' .
@@ -115,7 +115,7 @@ global $wpdb;
115
  ' onclick="jQuery(\'#wppaphoto-myphoto-tr\').hide();jQuery(\'#wppaphoto-allphoto-tr\').show();wppaMyPhotoSelection=false;jQuery(\'#wppaphoto-photo-preview\').html(\'\');wppaPhotoEvaluate();"' .
116
  ' />' .
117
  '<br />'.
118
- '<small style="" class="wppamyphoto-photo" >'.
119
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
120
  sprintf( __('You can select one of your photos from a maximum of %d most recently added', 'wp-photo-album-plus'), wppa_opt( 'generator_max' ) ).'<br />'.
121
  '</small>'.
@@ -131,7 +131,7 @@ global $wpdb;
131
  wppa_get_allphotos_selection_body_for_tinymce() .
132
  '</select>' .
133
  '<br />' .
134
- '<small style="" class="wppaphoto-allphoto" >'.
135
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
136
  sprintf( __('You can select from a maximum of %d most recently added photos', 'wp-photo-album-plus'), wppa_opt( 'generator_max' ) ).'<br />'.
137
  '</small>'.
@@ -140,7 +140,7 @@ global $wpdb;
140
 
141
  // Photo preview
142
  '
143
- <tr id="wppaphoto-photo-preview-tr" style="" >'.
144
  '<th>' .
145
  __( 'Preview image', 'wp-photo-album-plus').':' .
146
  '</th>'.
103
 
104
  // My photos selection
105
  '
106
+ <tr id="wppaphoto-myphoto-tr" >' .
107
  '<th><label for="wppaphoto-myphoto" class="wppaphoto-myphoto" >'.__('My Photo to be used', 'wp-photo-album-plus').':</label></th>'.
108
  '<td>'.
109
  '<select id="wppaphoto-myphoto" name="photo" class="wppaphoto-myphoto" onchange="wppaPhotoEvaluate()" >' .
115
  ' onclick="jQuery(\'#wppaphoto-myphoto-tr\').hide();jQuery(\'#wppaphoto-allphoto-tr\').show();wppaMyPhotoSelection=false;jQuery(\'#wppaphoto-photo-preview\').html(\'\');wppaPhotoEvaluate();"' .
116
  ' />' .
117
  '<br />'.
118
+ '<small class="wppamyphoto-photo" >'.
119
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
120
  sprintf( __('You can select one of your photos from a maximum of %d most recently added', 'wp-photo-album-plus'), wppa_opt( 'generator_max' ) ).'<br />'.
121
  '</small>'.
131
  wppa_get_allphotos_selection_body_for_tinymce() .
132
  '</select>' .
133
  '<br />' .
134
+ '<small class="wppaphoto-allphoto" >'.
135
  __('Specify the photo to be used', 'wp-photo-album-plus').'<br />'.
136
  sprintf( __('You can select from a maximum of %d most recently added photos', 'wp-photo-album-plus'), wppa_opt( 'generator_max' ) ).'<br />'.
137
  '</small>'.
140
 
141
  // Photo preview
142
  '
143
+ <tr id="wppaphoto-photo-preview-tr" >'.
144
  '<th>' .
145
  __( 'Preview image', 'wp-photo-album-plus').':' .
146
  '</th>'.
wppa-video.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all video routines
6
- * Version 7.0.02
7
  *
8
  */
9
 
@@ -44,6 +44,7 @@ function wppa_get_video_html( $args ) {
44
  extract( wp_parse_args( (array) $args, array (
45
  'id' => '0',
46
  'width' => '0',
 
47
  'height' => '0',
48
  'controls' => true,
49
  'margin_top' => '0',
@@ -75,6 +76,7 @@ function wppa_get_video_html( $args ) {
75
 
76
  // Prepare attributes
77
  $w = $width ? ' width:'.$width.'px;' : '';
 
78
  $h = $height ? ' height:'.$height.'px;' : '';
79
  $t = $margin_top ? ' margin-top:'.$margin_top.'px;' : '';
80
  $b = $margin_bottom ? ' margin-bottom:'.$margin_bottom.'px;' : '';
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all video routines
6
+ * Version 8.0.00.019
7
  *
8
  */
9
 
44
  extract( wp_parse_args( (array) $args, array (
45
  'id' => '0',
46
  'width' => '0',
47
+ 'widthp' => '0',
48
  'height' => '0',
49
  'controls' => true,
50
  'margin_top' => '0',
76
 
77
  // Prepare attributes
78
  $w = $width ? ' width:'.$width.'px;' : '';
79
+ $w = $widthp ? ' width:'.$widthp.'%;' : $w;
80
  $h = $height ? ' height:'.$height.'px;' : '';
81
  $t = $margin_top ? ' margin-top:'.$margin_top.'px;' : '';
82
  $b = $margin_bottom ? ' margin-bottom:'.$margin_bottom.'px;' : '';
wppa.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
- * Version: 8.0.00.018
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
@@ -24,7 +24,7 @@ global $wp_version;
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
- $wppa_api_version = '8.0.00.018'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30
 
2
  /*
3
  * Plugin Name: WP Photo Album Plus
4
  * Description: Easily manage and display your photo albums and slideshows within your WordPress site.
5
+ * Version: 8.0.00.019
6
  * Author: J.N. Breetvelt a.k.a. OpaJaap
7
  * Author URI: http://wppa.opajaap.nl/
8
  * Plugin URI: http://wordpress.org/extend/plugins/wp-photo-album-plus/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_api_version;
27
+ $wppa_api_version = '8.0.00.019'; // WPPA software version
28
  global $wppa_revno;
29
  $wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
30