WP Photo Album Plus - Version 8.2.08.003

Version Description

= 8.1.08 =

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

Release Info

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

Code changes from version 8.2.08.002 to 8.2.08.003

Files changed (6) hide show
  1. changelog.txt +3 -0
  2. wppa-ajax.php +2 -1
  3. wppa-defaults.php +2 -1
  4. wppa-index.php +26 -9
  5. wppa-settings-autosave.php +41 -34
  6. wppa.php +2 -2
changelog.txt CHANGED
@@ -3,6 +3,9 @@ WP Photo Album Plus Changelog
3
  = 8.2.08 =
4
 
5
  * Fixed frontend edit photo info dialog. Now also supports visual editor. To use the visual editor tick Advanced settings -> Admin -> VI -> Item 14: Enable TinyMCE editor
 
 
 
6
 
7
  = 8.2.07 =
8
 
3
  = 8.2.08 =
4
 
5
  * Fixed frontend edit photo info dialog. Now also supports visual editor. To use the visual editor tick Advanced settings -> Admin -> VI -> Item 14: Enable TinyMCE editor
6
+ * You can now exlude indexing album and photo descriptions and therefor exclude the descriptions from search.
7
+ Basic settings -> Search -> I -> Item 3:Include description. Do also search the album and photo description.
8
+ Note: The items in the settings table have been renumbered.
9
 
10
  = 8.2.07 =
11
 
wppa-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
- * Version 8.2.07.003
6
  *
7
  */
8
 
@@ -3549,6 +3549,7 @@ global $wppa;
3549
  break;
3550
 
3551
  case 'wppa_excl_sep':
 
3552
  case 'wppa_search_tags':
3553
  case 'wppa_search_cats':
3554
  case 'wppa_search_comments':
2
  /* wppa-ajax.php
3
  *
4
  * Functions used in ajax requests
5
+ * Version 8.2.08.003
6
  *
7
  */
8
 
3549
  break;
3550
 
3551
  case 'wppa_excl_sep':
3552
+ case 'wppa_search_desc':
3553
  case 'wppa_search_tags':
3554
  case 'wppa_search_cats':
3555
  case 'wppa_search_comments':
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 8.2.07.003
7
  *
8
  */
9
 
@@ -1050,6 +1050,7 @@ horizrailenabled:false,";
1050
  'wppa_search_linkpage' => '0', // 1
1051
  'wppa_search_oc' => '1',
1052
  'wppa_excl_sep' => 'no', // 2
 
1053
  'wppa_search_tags' => 'no',
1054
  'wppa_search_cats' => 'no',
1055
  'wppa_search_comments' => 'no',
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 8.2.08.003
7
  *
8
  */
9
 
1050
  'wppa_search_linkpage' => '0', // 1
1051
  'wppa_search_oc' => '1',
1052
  'wppa_excl_sep' => 'no', // 2
1053
+ 'wppa_search_desc' => 'yes',
1054
  'wppa_search_tags' => 'no',
1055
  'wppa_search_cats' => 'no',
1056
  'wppa_search_comments' => 'no',
wppa-index.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all indexing functions
6
- * Version 8.2.05.002
7
  *
8
  *
9
  */
@@ -496,15 +496,20 @@ function wppa_index_compute_skips() {
496
  // @1: int: album id
497
  function wppa_index_get_raw_album( $id ) {
498
 
499
- // Get the album data
500
  $album = wppa_cache_album( $id );
501
 
502
- // Get words from name and description
503
- $words = wppa_get_album_desc( $id, array( 'translate' => false ) ) . ' ' . wppa_get_album_name( $id, array( 'translate' => false ) );
504
 
505
- // Optionally album categories
 
 
 
 
 
506
  if ( wppa_switch( 'search_cats' ) ) {
507
- $words .= ' '.$album['cats'];
508
  }
509
 
510
  // Strip tags, but prevent cluttering
@@ -518,11 +523,23 @@ function wppa_index_get_raw_album( $id ) {
518
  function wppa_index_get_raw_photo( $id ) {
519
  global $wpdb;
520
 
521
- $thumb = wppa_cache_photo( $id );
 
 
 
 
522
 
523
- $words = wppa_get_photo_desc( $id, array( 'translate' => false ) ) . ' ' . wppa_get_photo_name( $id, array( 'translate' => false ) );
 
 
 
 
 
 
 
 
524
 
525
- if ( wppa_switch( 'search_tags' ) ) $words .= ' '.$thumb['tags']; // Tags
526
  if ( wppa_switch( 'search_comments' ) ) {
527
  $coms = $wpdb->get_results($wpdb->prepare( "SELECT comment FROM $wpdb->wppa_comments WHERE photo = %s AND status = 'approved'", $thumb['id'] ), ARRAY_A );
528
  if ( $coms ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains all indexing functions
6
+ * Version 8.2.08.003
7
  *
8
  *
9
  */
496
  // @1: int: album id
497
  function wppa_index_get_raw_album( $id ) {
498
 
499
+ // Get album data
500
  $album = wppa_cache_album( $id );
501
 
502
+ // Name
503
+ $words = wppa_get_album_name( $id, array( 'translate' => false ) );
504
 
505
+ // Description
506
+ if ( wppa_switch( 'search_desc' ) ) {
507
+ $words .= ' ' . wppa_get_album_desc( $id, array( 'translate' => false ) );
508
+ }
509
+
510
+ // Categories
511
  if ( wppa_switch( 'search_cats' ) ) {
512
+ $words .= ' ' . $album['cats'];
513
  }
514
 
515
  // Strip tags, but prevent cluttering
523
  function wppa_index_get_raw_photo( $id ) {
524
  global $wpdb;
525
 
526
+ // Get item data
527
+ $thumb = wppa_cache_photo( $id );
528
+
529
+ // Name
530
+ $words = wppa_get_photo_name( $id, array( 'translate' => false ) );
531
 
532
+ // Description
533
+ if ( wppa_switch( 'search_desc' ) ) {
534
+ $words .= ' ' . wppa_get_photo_desc( $id, array( 'translate' => false ) );
535
+ }
536
+
537
+ // Tags
538
+ if ( wppa_switch( 'search_tags' ) ) {
539
+ $words .= ' ' . $thumb['tags'];
540
+ }
541
 
542
+ // Comments
543
  if ( wppa_switch( 'search_comments' ) ) {
544
  $coms = $wpdb->get_results($wpdb->prepare( "SELECT comment FROM $wpdb->wppa_comments WHERE photo = %s AND status = 'approved'", $thumb['id'] ), ARRAY_A );
545
  if ( $coms ) {
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 8.2.07.003
7
  *
8
  */
9
 
@@ -4303,68 +4303,75 @@ global $wppa_subtab_names;
4303
  $html = wppa_checkbox($slug);
4304
  wppa_setting_new($slug, '2', $name, $desc, $html, $help);
4305
 
 
 
 
 
 
 
 
4306
  $name = __('Include tags', 'wp-photo-album-plus' );
4307
  $desc = __('Do also search the photo tags.', 'wp-photo-album-plus' );
4308
  $help = __('When checked, the tags of the photo will also be searched.', 'wp-photo-album-plus' );
4309
  $slug = 'wppa_search_tags';
4310
  $html = wppa_checkbox($slug);
4311
- wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4312
 
4313
  $name = __('Include categories', 'wp-photo-album-plus' );
4314
  $desc = __('Do also search the album categories.', 'wp-photo-album-plus' );
4315
  $help = __('When checked, the categories of the album will also be searched.', 'wp-photo-album-plus' );
4316
  $slug = 'wppa_search_cats';
4317
  $html = wppa_checkbox($slug);
4318
- wppa_setting_new($slug, '4', $name, $desc, $html, $help);
4319
 
4320
  $name = __('Include comments', 'wp-photo-album-plus' );
4321
  $desc = __('Do also search the comments on photos.', 'wp-photo-album-plus' );
4322
  $help = __('When checked, the comments of the photos will also be searched.', 'wp-photo-album-plus' );
4323
  $slug = 'wppa_search_comments' ;
4324
  $html = wppa_checkbox($slug);
4325
- wppa_setting_new($slug, '5', $name, $desc, $html, $help);
4326
 
4327
  $name = __('Photos only', 'wp-photo-album-plus' );
4328
  $desc = __('Search for photos only.', 'wp-photo-album-plus' );
4329
  $help = __('When checked, only photos will be searched for.', 'wp-photo-album-plus' );
4330
  $slug = 'wppa_photos_only';
4331
  $html = wppa_checkbox($slug);
4332
- wppa_setting_new($slug, '6', $name, $desc, $html, $help);
4333
 
4334
  $name = __('Max albums found', 'wp-photo-album-plus' );
4335
  $desc = __('The maximum number of albums to be displayed.', 'wp-photo-album-plus' );
4336
  $help = '';
4337
  $slug = 'wppa_max_search_albums';
4338
  $html = wppa_input($slug, '50px');
4339
- wppa_setting_new($slug, '7', $name, $desc, $html, $help);
4340
 
4341
  $name = __('Max photos found', 'wp-photo-album-plus' );
4342
  $desc = __('The maximum number of photos to be displayed.', 'wp-photo-album-plus' );
4343
  $help = '';
4344
  $slug = 'wppa_max_search_photos';
4345
  $html = wppa_input($slug, '50px');
4346
- wppa_setting_new($slug, '8', $name, $desc, $html, $help);
4347
 
4348
  $name = __('Tags OR only', 'wp-photo-album-plus' );
4349
  $desc = __('No and / or buttons', 'wp-photo-album-plus' );
4350
  $help = __('Hide the and/or radiobuttons and do the or method in the multitag widget and shortcode.', 'wp-photo-album-plus' );
4351
  $slug = 'wppa_tags_or_only';
4352
  $html = wppa_checkbox($slug);
4353
- wppa_setting_new($slug, '9', $name, $desc, $html, $help);
4354
 
4355
  $name = __('Tags add Inverse', 'wp-photo-album-plus' );
4356
  $desc = __('Add a checkbox to invert the selection.', 'wp-photo-album-plus' );
4357
  $help = __('Adds an Invert (NOT) checkbox on the multitag widget and shortcode.', 'wp-photo-album-plus' );
4358
  $slug = 'wppa_tags_not_on';
4359
  $html = wppa_checkbox($slug);
4360
- wppa_setting_new($slug, '10', $name, $desc, $html, $help);
4361
 
4362
  $name = __('Floating searchtoken', 'wp-photo-album-plus' );
4363
  $desc = __('A match need not start at the first char.', 'wp-photo-album-plus' );
4364
  $help = __('A match is found while searching also when the entered token is somewhere in the middle of a word.', 'wp-photo-album-plus' );
4365
  $slug = 'wppa_wild_front';
4366
  $html = wppa_checkbox($slug);
4367
- wppa_setting_new($slug, '11', $name, $desc, $html, $help);
4368
 
4369
  $name = __('Search results display', 'wp-photo-album-plus' );
4370
  $desc = __('Select the way the search results should be displayed.', 'wp-photo-album-plus' );
@@ -4377,21 +4384,21 @@ global $wppa_subtab_names;
4377
  );
4378
  $vals = array( 'content', 'slide', 'slideonly', 'albums' );
4379
  $html = wppa_select( $slug, $opts, $vals);
4380
- wppa_setting_new($slug, '12', $name, $desc, $html, $help);
4381
 
4382
  $name = __('Name max length', 'wp-photo-album-plus' );
4383
  $desc = __('Max length of displayed photonames in supersearch selectionlist', 'wp-photo-album-plus' );
4384
  $help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus' );
4385
  $slug = 'wppa_ss_name_max';
4386
  $html = $html = wppa_input($slug, '50px');
4387
- wppa_setting_new($slug, '13', $name, $desc, $html, $help);
4388
 
4389
  $name = __('Text max length', 'wp-photo-album-plus' );
4390
  $desc = __('Max length of displayed photo text in supersearch selectionlist', 'wp-photo-album-plus' );
4391
  $help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus' );
4392
  $slug = 'wppa_ss_text_max';
4393
  $html = $html = wppa_input($slug, '50px');
4394
- wppa_setting_new($slug, '14', $name, $desc, $html, $help);
4395
 
4396
  $name = __('Search toptext', 'wp-photo-album-plus' );
4397
  $desc = __('The text at the top of the search box.', 'wp-photo-album-plus' );
@@ -4399,56 +4406,56 @@ global $wppa_subtab_names;
4399
  $help .= '<br>'.__('May contain unfiltered HTML.', 'wp-photo-album-plus' );
4400
  $slug = 'wppa_search_toptext';
4401
  $html = wppa_textarea($slug, $name);
4402
- wppa_setting_new($slug, '15', $name, $desc, $html, $help);
4403
 
4404
  $name = __('Section search text', 'wp-photo-album-plus' );
4405
  $desc = __('The labeltext at the checkbox for the \'Search in current section\' checkbox.', 'wp-photo-album-plus' );
4406
  $help = ' ';
4407
  $slug = 'wppa_search_in_section';
4408
  $html = wppa_input($slug, '300px;');
4409
- wppa_setting_new($slug, '16', $name, $desc, $html, $help);
4410
 
4411
  $name = __('Results search text', 'wp-photo-album-plus' );
4412
  $desc = __('The labeltext at the checkbox for the \'Search in current results\' checkbox.', 'wp-photo-album-plus' );
4413
  $help = ' ';
4414
  $slug = 'wppa_search_in_results';
4415
  $html = wppa_input($slug, '300px;');
4416
- wppa_setting_new($slug, '17', $name, $desc, $html, $help);
4417
 
4418
  $name = __('Minimum search token length', 'wp-photo-album-plus' );
4419
  $desc = __('The minmum number of chars in a search request.', 'wp-photo-album-plus' );
4420
  $help = '';
4421
  $slug = 'wppa_search_min_length';
4422
  $html = wppa_number($slug, '1', '6');
4423
- wppa_setting_new($slug, '18', $name, $desc, $html, $help);
4424
 
4425
  $name = __('Exclude from search', 'wp-photo-album-plus' );
4426
  $desc = __('Exclude these words from search index.', 'wp-photo-album-plus' );
4427
  $help = __('Enter words separated by commas (,)', 'wp-photo-album-plus' );
4428
  $slug = 'wppa_search_user_void';
4429
  $html = wppa_input($slug, '60%;');
4430
- wppa_setting_new($slug, '19', $name, $desc, $html, $help);
4431
 
4432
  $name = __('Exclude numbers', 'wp-photo-album-plus' );
4433
  $desc = __('Exclude numbers from search index.', 'wp-photo-album-plus' );
4434
  $help = __('If ticked, photos and albums are not searchable by numbers.', 'wp-photo-album-plus' );
4435
  $slug = 'wppa_search_numbers_void';
4436
  $html = wppa_checkbox($slug);
4437
- wppa_setting_new($slug, '20', $name, $desc, $html, $help);
4438
 
4439
  $name = __('Ignore slash', 'wp-photo-album-plus' );
4440
  $desc = __('Ignore slash chracter (/).', 'wp-photo-album-plus' );
4441
  $help = '';
4442
  $slug = 'wppa_index_ignore_slash';
4443
  $html = wppa_checkbox($slug);
4444
- wppa_setting_new($slug, '21', $name, $desc, $html, $help);
4445
 
4446
  $name = __('Search category box', 'wp-photo-album-plus' );
4447
  $desc = __('Add a category selection box', 'wp-photo-album-plus' );
4448
  $help = '';
4449
  $slug = 'wppa_search_catbox';
4450
  $html = wppa_checkbox($slug);
4451
- wppa_setting_new($slug, '22', $name, $desc, $html, $help);
4452
 
4453
  $name = __('Search selection boxes', 'wp-photo-album-plus' );
4454
  $desc = __('Enter number of search selection boxes.', 'wp-photo-album-plus' );
@@ -4457,70 +4464,70 @@ global $wppa_subtab_names;
4457
  $opts = array( '0', '1', '2', '3' );
4458
  $vals = $opts;
4459
  $html = wppa_select( $slug, $opts, $vals );
4460
- wppa_setting_new($slug, '23', $name, $desc, $html, $help);
4461
 
4462
  $name = sprintf(__('Box %s caption', 'wp-photo-album-plus' ), '1');
4463
  $desc = __('Enter caption text', 'wp-photo-album-plus' );
4464
  $help = '';
4465
  $slug = 'wppa_search_caption_0';
4466
  $html = wppa_input($slug, '150px;');
4467
- wppa_setting_new($slug, '24', $name, $desc, $html, $help);
4468
 
4469
  $name = sprintf(__('Box %s content', 'wp-photo-album-plus' ), '1');
4470
  $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus' );
4471
  $help = '';
4472
  $slug = 'wppa_search_selbox_0';
4473
  $html = wppa_textarea($slug);
4474
- wppa_setting_new($slug, '25', $name, $desc, $html, $help);
4475
 
4476
  $name = sprintf(__('Box %s caption', 'wp-photo-album-plus' ), '2');
4477
  $desc = __('Enter caption text', 'wp-photo-album-plus' );
4478
  $help = '';
4479
  $slug = 'wppa_search_caption_1';
4480
  $html = wppa_input($slug, '150px;');
4481
- wppa_setting_new($slug, '26', $name, $desc, $html, $help);
4482
 
4483
  $name = sprintf(__('Box %s content', 'wp-photo-album-plus' ), '2');
4484
  $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus' );
4485
  $help = '';
4486
  $slug = 'wppa_search_selbox_1';
4487
  $html = wppa_textarea($slug);
4488
- wppa_setting_new($slug, '27', $name, $desc, $html, $help);
4489
 
4490
  $name = sprintf(__('Box %s caption', 'wp-photo-album-plus' ), '3');
4491
  $desc = __('Enter caption text', 'wp-photo-album-plus' );
4492
  $help = '';
4493
  $slug = 'wppa_search_caption_2';
4494
  $html = wppa_input($slug, '150px;');
4495
- wppa_setting_new($slug, '28', $name, $desc, $html, $help);
4496
 
4497
  $name = sprintf(__('Box %s content', 'wp-photo-album-plus' ), '3');
4498
  $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus' );
4499
  $help = '';
4500
  $slug = 'wppa_search_selbox_2';
4501
  $html = wppa_textarea($slug);
4502
- wppa_setting_new($slug, '29', $name, $desc, $html, $help);
4503
 
4504
  $name = __('Extended duplicate removal', 'wp-photo-album-plus' );
4505
  $desc = __('Remove found items from search when name, description and image are identical', 'wp-photo-album-plus' );
4506
  $help = '';
4507
  $slug = 'wppa_extended_duplicate_remove';
4508
  $html = wppa_checkbox($slug);
4509
- wppa_setting_new($slug, '30', $name, $desc, $html, $help);
4510
 
4511
  $name = __('Search field placeholder', 'wp-photo-album-plus' );
4512
  $desc = __('The text of the placeholder', 'wp-photo-album-plus' );
4513
  $help = '';
4514
  $slug = 'wppa_search_placeholder';
4515
  $html = wppa_input($slug, '150px;');
4516
- wppa_setting_new($slug, '31', $name, $desc, $html, $help);
4517
 
4518
  $name = __('Search form method', 'wp-photo-album-plus' );
4519
  $desc = __('Either "get" or "post"', 'wp-photo-album-plus' );
4520
  $help = __('May be set to "get" to avoid conflicts with other plugins or certain php versions', 'wp-photo-album-plus' );
4521
  $slug = 'wppa_search_form_method';
4522
  $html = wppa_select($slug, array('post', 'get'), array('post', 'get'));
4523
- wppa_setting_new($slug, '32', $name, $desc, $html, $help);
4524
 
4525
  $name = __('Use wppa search form', 'wp-photo-album-plus' );
4526
  $desc = __('Uses wppa specific form', 'wp-photo-album-plus' );
@@ -4528,7 +4535,7 @@ global $wppa_subtab_names;
4528
  $slug = 'wppa_use_wppa_search_form';
4529
  $onch = '';
4530
  $html = wppa_checkbox($slug, $onch);
4531
- wppa_setting_new($slug, '33', $name, $desc, $html, $help);
4532
 
4533
  $name = __('List Index', 'wp-photo-album-plus' );
4534
  $desc = __('Show the content of the index table.', 'wp-photo-album-plus' );
@@ -4538,14 +4545,14 @@ global $wppa_subtab_names;
4538
  $html1 = '<small style="float:left">'.__('Start at text:', 'wp-photo-album-plus' ).'&nbsp;</small>'.wppa_input( $slug1, '150px' );
4539
  $html2 = wppa_popup_button( $slug2, '30' );
4540
  $html = $html1 . '<span style="float:left">&nbsp;</span>' . $html2;
4541
- wppa_setting_new(false, '34', $name, $desc, $html, $help);
4542
 
4543
  $name = __('Show empty search', 'wp-photo-album-plus' );
4544
  $desc = __('Display empty search message', 'wp-photo-album-plus' );
4545
  $help = __('Display a message when a search operation has an empty result', 'wp-photo-album-plus' );
4546
  $slug = 'wppa_show_empty_search';
4547
  $html = wppa_checkbox($slug);
4548
- wppa_setting_new($slug, '35', $name, $desc, $html, $help);
4549
 
4550
  wppa_setting_box_footer_new();
4551
  }
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 8.2.08.003
7
  *
8
  */
9
 
4303
  $html = wppa_checkbox($slug);
4304
  wppa_setting_new($slug, '2', $name, $desc, $html, $help);
4305
 
4306
+ $name = __('Include description', 'wp-photo-album-plus' );
4307
+ $desc = __('Do also search the album and photo description.', 'wp-photo-album-plus' );
4308
+ $help = __('When checked, the description of the photo will also be searched.', 'wp-photo-album-plus' );
4309
+ $slug = 'wppa_search_desc';
4310
+ $html = wppa_checkbox($slug);
4311
+ wppa_setting_new($slug, '3', $name, $desc, $html, $help);
4312
+
4313
  $name = __('Include tags', 'wp-photo-album-plus' );
4314
  $desc = __('Do also search the photo tags.', 'wp-photo-album-plus' );
4315
  $help = __('When checked, the tags of the photo will also be searched.', 'wp-photo-album-plus' );
4316
  $slug = 'wppa_search_tags';
4317
  $html = wppa_checkbox($slug);
4318
+ wppa_setting_new($slug, '4', $name, $desc, $html, $help);
4319
 
4320
  $name = __('Include categories', 'wp-photo-album-plus' );
4321
  $desc = __('Do also search the album categories.', 'wp-photo-album-plus' );
4322
  $help = __('When checked, the categories of the album will also be searched.', 'wp-photo-album-plus' );
4323
  $slug = 'wppa_search_cats';
4324
  $html = wppa_checkbox($slug);
4325
+ wppa_setting_new($slug, '5', $name, $desc, $html, $help);
4326
 
4327
  $name = __('Include comments', 'wp-photo-album-plus' );
4328
  $desc = __('Do also search the comments on photos.', 'wp-photo-album-plus' );
4329
  $help = __('When checked, the comments of the photos will also be searched.', 'wp-photo-album-plus' );
4330
  $slug = 'wppa_search_comments' ;
4331
  $html = wppa_checkbox($slug);
4332
+ wppa_setting_new($slug, '6', $name, $desc, $html, $help);
4333
 
4334
  $name = __('Photos only', 'wp-photo-album-plus' );
4335
  $desc = __('Search for photos only.', 'wp-photo-album-plus' );
4336
  $help = __('When checked, only photos will be searched for.', 'wp-photo-album-plus' );
4337
  $slug = 'wppa_photos_only';
4338
  $html = wppa_checkbox($slug);
4339
+ wppa_setting_new($slug, '7', $name, $desc, $html, $help);
4340
 
4341
  $name = __('Max albums found', 'wp-photo-album-plus' );
4342
  $desc = __('The maximum number of albums to be displayed.', 'wp-photo-album-plus' );
4343
  $help = '';
4344
  $slug = 'wppa_max_search_albums';
4345
  $html = wppa_input($slug, '50px');
4346
+ wppa_setting_new($slug, '8', $name, $desc, $html, $help);
4347
 
4348
  $name = __('Max photos found', 'wp-photo-album-plus' );
4349
  $desc = __('The maximum number of photos to be displayed.', 'wp-photo-album-plus' );
4350
  $help = '';
4351
  $slug = 'wppa_max_search_photos';
4352
  $html = wppa_input($slug, '50px');
4353
+ wppa_setting_new($slug, '9', $name, $desc, $html, $help);
4354
 
4355
  $name = __('Tags OR only', 'wp-photo-album-plus' );
4356
  $desc = __('No and / or buttons', 'wp-photo-album-plus' );
4357
  $help = __('Hide the and/or radiobuttons and do the or method in the multitag widget and shortcode.', 'wp-photo-album-plus' );
4358
  $slug = 'wppa_tags_or_only';
4359
  $html = wppa_checkbox($slug);
4360
+ wppa_setting_new($slug, '10', $name, $desc, $html, $help);
4361
 
4362
  $name = __('Tags add Inverse', 'wp-photo-album-plus' );
4363
  $desc = __('Add a checkbox to invert the selection.', 'wp-photo-album-plus' );
4364
  $help = __('Adds an Invert (NOT) checkbox on the multitag widget and shortcode.', 'wp-photo-album-plus' );
4365
  $slug = 'wppa_tags_not_on';
4366
  $html = wppa_checkbox($slug);
4367
+ wppa_setting_new($slug, '11', $name, $desc, $html, $help);
4368
 
4369
  $name = __('Floating searchtoken', 'wp-photo-album-plus' );
4370
  $desc = __('A match need not start at the first char.', 'wp-photo-album-plus' );
4371
  $help = __('A match is found while searching also when the entered token is somewhere in the middle of a word.', 'wp-photo-album-plus' );
4372
  $slug = 'wppa_wild_front';
4373
  $html = wppa_checkbox($slug);
4374
+ wppa_setting_new($slug, '12', $name, $desc, $html, $help);
4375
 
4376
  $name = __('Search results display', 'wp-photo-album-plus' );
4377
  $desc = __('Select the way the search results should be displayed.', 'wp-photo-album-plus' );
4384
  );
4385
  $vals = array( 'content', 'slide', 'slideonly', 'albums' );
4386
  $html = wppa_select( $slug, $opts, $vals);
4387
+ wppa_setting_new($slug, '13', $name, $desc, $html, $help);
4388
 
4389
  $name = __('Name max length', 'wp-photo-album-plus' );
4390
  $desc = __('Max length of displayed photonames in supersearch selectionlist', 'wp-photo-album-plus' );
4391
  $help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus' );
4392
  $slug = 'wppa_ss_name_max';
4393
  $html = $html = wppa_input($slug, '50px');
4394
+ wppa_setting_new($slug, '14', $name, $desc, $html, $help);
4395
 
4396
  $name = __('Text max length', 'wp-photo-album-plus' );
4397
  $desc = __('Max length of displayed photo text in supersearch selectionlist', 'wp-photo-album-plus' );
4398
  $help = __('To limit the length of the selectionlist, enter the number of characters to show.', 'wp-photo-album-plus' );
4399
  $slug = 'wppa_ss_text_max';
4400
  $html = $html = wppa_input($slug, '50px');
4401
+ wppa_setting_new($slug, '15', $name, $desc, $html, $help);
4402
 
4403
  $name = __('Search toptext', 'wp-photo-album-plus' );
4404
  $desc = __('The text at the top of the search box.', 'wp-photo-album-plus' );
4406
  $help .= '<br>'.__('May contain unfiltered HTML.', 'wp-photo-album-plus' );
4407
  $slug = 'wppa_search_toptext';
4408
  $html = wppa_textarea($slug, $name);
4409
+ wppa_setting_new($slug, '16', $name, $desc, $html, $help);
4410
 
4411
  $name = __('Section search text', 'wp-photo-album-plus' );
4412
  $desc = __('The labeltext at the checkbox for the \'Search in current section\' checkbox.', 'wp-photo-album-plus' );
4413
  $help = ' ';
4414
  $slug = 'wppa_search_in_section';
4415
  $html = wppa_input($slug, '300px;');
4416
+ wppa_setting_new($slug, '17', $name, $desc, $html, $help);
4417
 
4418
  $name = __('Results search text', 'wp-photo-album-plus' );
4419
  $desc = __('The labeltext at the checkbox for the \'Search in current results\' checkbox.', 'wp-photo-album-plus' );
4420
  $help = ' ';
4421
  $slug = 'wppa_search_in_results';
4422
  $html = wppa_input($slug, '300px;');
4423
+ wppa_setting_new($slug, '18', $name, $desc, $html, $help);
4424
 
4425
  $name = __('Minimum search token length', 'wp-photo-album-plus' );
4426
  $desc = __('The minmum number of chars in a search request.', 'wp-photo-album-plus' );
4427
  $help = '';
4428
  $slug = 'wppa_search_min_length';
4429
  $html = wppa_number($slug, '1', '6');
4430
+ wppa_setting_new($slug, '19', $name, $desc, $html, $help);
4431
 
4432
  $name = __('Exclude from search', 'wp-photo-album-plus' );
4433
  $desc = __('Exclude these words from search index.', 'wp-photo-album-plus' );
4434
  $help = __('Enter words separated by commas (,)', 'wp-photo-album-plus' );
4435
  $slug = 'wppa_search_user_void';
4436
  $html = wppa_input($slug, '60%;');
4437
+ wppa_setting_new($slug, '20', $name, $desc, $html, $help);
4438
 
4439
  $name = __('Exclude numbers', 'wp-photo-album-plus' );
4440
  $desc = __('Exclude numbers from search index.', 'wp-photo-album-plus' );
4441
  $help = __('If ticked, photos and albums are not searchable by numbers.', 'wp-photo-album-plus' );
4442
  $slug = 'wppa_search_numbers_void';
4443
  $html = wppa_checkbox($slug);
4444
+ wppa_setting_new($slug, '21', $name, $desc, $html, $help);
4445
 
4446
  $name = __('Ignore slash', 'wp-photo-album-plus' );
4447
  $desc = __('Ignore slash chracter (/).', 'wp-photo-album-plus' );
4448
  $help = '';
4449
  $slug = 'wppa_index_ignore_slash';
4450
  $html = wppa_checkbox($slug);
4451
+ wppa_setting_new($slug, '22', $name, $desc, $html, $help);
4452
 
4453
  $name = __('Search category box', 'wp-photo-album-plus' );
4454
  $desc = __('Add a category selection box', 'wp-photo-album-plus' );
4455
  $help = '';
4456
  $slug = 'wppa_search_catbox';
4457
  $html = wppa_checkbox($slug);
4458
+ wppa_setting_new($slug, '23', $name, $desc, $html, $help);
4459
 
4460
  $name = __('Search selection boxes', 'wp-photo-album-plus' );
4461
  $desc = __('Enter number of search selection boxes.', 'wp-photo-album-plus' );
4464
  $opts = array( '0', '1', '2', '3' );
4465
  $vals = $opts;
4466
  $html = wppa_select( $slug, $opts, $vals );
4467
+ wppa_setting_new($slug, '24', $name, $desc, $html, $help);
4468
 
4469
  $name = sprintf(__('Box %s caption', 'wp-photo-album-plus' ), '1');
4470
  $desc = __('Enter caption text', 'wp-photo-album-plus' );
4471
  $help = '';
4472
  $slug = 'wppa_search_caption_0';
4473
  $html = wppa_input($slug, '150px;');
4474
+ wppa_setting_new($slug, '25', $name, $desc, $html, $help);
4475
 
4476
  $name = sprintf(__('Box %s content', 'wp-photo-album-plus' ), '1');
4477
  $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus' );
4478
  $help = '';
4479
  $slug = 'wppa_search_selbox_0';
4480
  $html = wppa_textarea($slug);
4481
+ wppa_setting_new($slug, '26', $name, $desc, $html, $help);
4482
 
4483
  $name = sprintf(__('Box %s caption', 'wp-photo-album-plus' ), '2');
4484
  $desc = __('Enter caption text', 'wp-photo-album-plus' );
4485
  $help = '';
4486
  $slug = 'wppa_search_caption_1';
4487
  $html = wppa_input($slug, '150px;');
4488
+ wppa_setting_new($slug, '27', $name, $desc, $html, $help);
4489
 
4490
  $name = sprintf(__('Box %s content', 'wp-photo-album-plus' ), '2');
4491
  $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus' );
4492
  $help = '';
4493
  $slug = 'wppa_search_selbox_1';
4494
  $html = wppa_textarea($slug);
4495
+ wppa_setting_new($slug, '28', $name, $desc, $html, $help);
4496
 
4497
  $name = sprintf(__('Box %s caption', 'wp-photo-album-plus' ), '3');
4498
  $desc = __('Enter caption text', 'wp-photo-album-plus' );
4499
  $help = '';
4500
  $slug = 'wppa_search_caption_2';
4501
  $html = wppa_input($slug, '150px;');
4502
+ wppa_setting_new($slug, '29', $name, $desc, $html, $help);
4503
 
4504
  $name = sprintf(__('Box %s content', 'wp-photo-album-plus' ), '3');
4505
  $desc = __('Enter search tokens, one per line.', 'wp-photo-album-plus' );
4506
  $help = '';
4507
  $slug = 'wppa_search_selbox_2';
4508
  $html = wppa_textarea($slug);
4509
+ wppa_setting_new($slug, '30', $name, $desc, $html, $help);
4510
 
4511
  $name = __('Extended duplicate removal', 'wp-photo-album-plus' );
4512
  $desc = __('Remove found items from search when name, description and image are identical', 'wp-photo-album-plus' );
4513
  $help = '';
4514
  $slug = 'wppa_extended_duplicate_remove';
4515
  $html = wppa_checkbox($slug);
4516
+ wppa_setting_new($slug, '31', $name, $desc, $html, $help);
4517
 
4518
  $name = __('Search field placeholder', 'wp-photo-album-plus' );
4519
  $desc = __('The text of the placeholder', 'wp-photo-album-plus' );
4520
  $help = '';
4521
  $slug = 'wppa_search_placeholder';
4522
  $html = wppa_input($slug, '150px;');
4523
+ wppa_setting_new($slug, '32', $name, $desc, $html, $help);
4524
 
4525
  $name = __('Search form method', 'wp-photo-album-plus' );
4526
  $desc = __('Either "get" or "post"', 'wp-photo-album-plus' );
4527
  $help = __('May be set to "get" to avoid conflicts with other plugins or certain php versions', 'wp-photo-album-plus' );
4528
  $slug = 'wppa_search_form_method';
4529
  $html = wppa_select($slug, array('post', 'get'), array('post', 'get'));
4530
+ wppa_setting_new($slug, '33', $name, $desc, $html, $help);
4531
 
4532
  $name = __('Use wppa search form', 'wp-photo-album-plus' );
4533
  $desc = __('Uses wppa specific form', 'wp-photo-album-plus' );
4535
  $slug = 'wppa_use_wppa_search_form';
4536
  $onch = '';
4537
  $html = wppa_checkbox($slug, $onch);
4538
+ wppa_setting_new($slug, '34', $name, $desc, $html, $help);
4539
 
4540
  $name = __('List Index', 'wp-photo-album-plus' );
4541
  $desc = __('Show the content of the index table.', 'wp-photo-album-plus' );
4545
  $html1 = '<small style="float:left">'.__('Start at text:', 'wp-photo-album-plus' ).'&nbsp;</small>'.wppa_input( $slug1, '150px' );
4546
  $html2 = wppa_popup_button( $slug2, '30' );
4547
  $html = $html1 . '<span style="float:left">&nbsp;</span>' . $html2;
4548
+ wppa_setting_new(false, '35', $name, $desc, $html, $help);
4549
 
4550
  $name = __('Show empty search', 'wp-photo-album-plus' );
4551
  $desc = __('Display empty search message', 'wp-photo-album-plus' );
4552
  $help = __('Display a message when a search operation has an empty result', 'wp-photo-album-plus' );
4553
  $slug = 'wppa_show_empty_search';
4554
  $html = wppa_checkbox($slug);
4555
+ wppa_setting_new($slug, '36', $name, $desc, $html, $help);
4556
 
4557
  wppa_setting_box_footer_new();
4558
  }
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.2.08.002
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/
@@ -23,7 +23,7 @@ global $wpdb;
23
  global $wp_version;
24
 
25
  /* WPPA Version */
26
- global $wppa_version; $wppa_version = '8.2.08.002'; // WPPA software version
27
  global $wppa_revno; $wppa_revno = str_replace( '.', '', $wppa_version ); // WPPA db version
28
 
29
  /* Init page js data */
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.2.08.003
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/
23
  global $wp_version;
24
 
25
  /* WPPA Version */
26
+ global $wppa_version; $wppa_version = '8.2.08.003'; // WPPA software version
27
  global $wppa_revno; $wppa_revno = str_replace( '.', '', $wppa_version ); // WPPA db version
28
 
29
  /* Init page js data */