WP Photo Album Plus - Version 7.7.02.002

Version Description

= 7.7.02 =

  • 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 7.7.02.002
Comparing to
See all releases

Code changes from version 7.7.02.001 to 7.7.02.002

changelog.txt CHANGED
@@ -3,7 +3,8 @@ WP Photo Album Plus Changelog
3
  = 7.7.02 =
4
 
5
  * New setting: Table II-E10: Album id on cover. Places the album id in parenthesis near the album name on album covers. Selectable: 'none' (default), 'If user has editi access', 'Always'.
6
- * On the Album Admin page you can now also enter an album id to edit it directly without the need to lopcate the album in the albumtable.
 
7
 
8
  * New setting: Tanle
9
  = 7.7.01 =
3
  = 7.7.02 =
4
 
5
  * New setting: Table II-E10: Album id on cover. Places the album id in parenthesis near the album name on album covers. Selectable: 'none' (default), 'If user has editi access', 'Always'.
6
+ * New setting: Table VI-C14: Album id on cover is link. The album number on the cover links to the album admin page of the album for those users who have the rights to edit the album info.
7
+ * On the Album Admin page you can now also enter an album id to edit the album directly without the need to lopcate the album in the albumtable.
8
 
9
  * New setting: Tanle
10
  = 7.7.01 =
wppa-album-covers.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
- * Version 7.7.02.001
7
  *
8
  */
9
 
@@ -1788,10 +1788,6 @@ function wppa_the_album_title( $alb, $href_title, $onclick_title, $title, $targe
1788
  $album = wppa_cache_album( $alb );
1789
 
1790
  $album_title = wppa_get_album_name( $alb );
1791
- if ( wppa_opt( 'albumid_on_cover' ) == 'all' ||
1792
- ( wppa_opt( 'albumid_on_cover' ) == 'access' && wppa_have_access( $alb ) ) ) {
1793
- $album_title .= ' <span style="font-size:0.7em;font-weight:normal;" >(' . $alb . ')</span>';
1794
- }
1795
 
1796
  wppa_out(
1797
  '<h2 class="wppa-title" style="clear:none; ' . wppa_wcs( 'wppa-title' ) . '">'
@@ -1802,19 +1798,19 @@ function wppa_the_album_title( $alb, $href_title, $onclick_title, $title, $targe
1802
  wppa_out(
1803
  '<a onclick="' . $onclick_title . '" title="' . $title .
1804
  '" class="wppa-title" style="cursor:pointer; ' . wppa_wcs( 'wppa-title' ) . '">' .
1805
- $album_title . '</a>'
1806
  );
1807
  }
1808
  else {
1809
  wppa_out(
1810
  '<a href="' . $href_title . '" target="' . $target . '" onclick="' . $onclick_title .
1811
  '" title="' . $title . '" class="wppa-title" style="' . wppa_wcs( 'wppa-title' ) . '">' .
1812
- $album_title . '</a>'
1813
  );
1814
  }
1815
  }
1816
  else {
1817
- wppa_out( $album_title );
1818
  }
1819
 
1820
  // Photo count?
@@ -1830,7 +1826,14 @@ function wppa_the_album_title( $alb, $href_title, $onclick_title, $title, $targe
1830
  }
1831
  }
1832
  if ( $cnt ) {
1833
- wppa_out( ' <span class="wppa-cover-pcount" >(' . $cnt . ')</span>' );
 
 
 
 
 
 
 
1834
  }
1835
  }
1836
 
@@ -1879,7 +1882,39 @@ function wppa_the_album_title( $alb, $href_title, $onclick_title, $title, $targe
1879
  );
1880
  }
1881
  }
1882
- wppa_out( '</h2>' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1883
  }
1884
 
1885
  function wppa_albumcover_sublinks( $id, $width, $rsp ) {
3
  * Package: wp-photo-album-plus
4
  *
5
  * Functions for album covers
6
+ * Version 7.7.02.002
7
  *
8
  */
9
 
1788
  $album = wppa_cache_album( $alb );
1789
 
1790
  $album_title = wppa_get_album_name( $alb );
 
 
 
 
1791
 
1792
  wppa_out(
1793
  '<h2 class="wppa-title" style="clear:none; ' . wppa_wcs( 'wppa-title' ) . '">'
1798
  wppa_out(
1799
  '<a onclick="' . $onclick_title . '" title="' . $title .
1800
  '" class="wppa-title" style="cursor:pointer; ' . wppa_wcs( 'wppa-title' ) . '">' .
1801
+ $album_title . '</a></h2>'
1802
  );
1803
  }
1804
  else {
1805
  wppa_out(
1806
  '<a href="' . $href_title . '" target="' . $target . '" onclick="' . $onclick_title .
1807
  '" title="' . $title . '" class="wppa-title" style="' . wppa_wcs( 'wppa-title' ) . '">' .
1808
+ $album_title . '</a></h2>'
1809
  );
1810
  }
1811
  }
1812
  else {
1813
+ wppa_out( $album_title . '</h2>' );
1814
  }
1815
 
1816
  // Photo count?
1826
  }
1827
  }
1828
  if ( $cnt ) {
1829
+ wppa_out( '
1830
+ <span
1831
+ class="wppa-cover-pcount"
1832
+ style="cursor:pointer;"
1833
+ title="' . esc_attr( __( 'Number of items', 'wp-photo-album-plus' ) ) . '"
1834
+ >
1835
+ (' . $cnt . ')
1836
+ </span>' );
1837
  }
1838
  }
1839
 
1882
  );
1883
  }
1884
  }
1885
+
1886
+ // Album id?
1887
+ $show = wppa_opt( 'albumid_on_cover' );
1888
+ $edit = wppa_have_access( $alb ) && current_user_can( 'wppa_admin' );
1889
+ if ( $show == 'all' || ( $show == 'access' && $edit ) ) {
1890
+ if ( wppa_switch( 'fe_albid_edit' ) && $edit ) {
1891
+ $href = get_admin_url() . 'admin.php?page=wppa_admin_menu&wppa_nonce=' . wp_create_nonce( 'wppa_nonce' ) . '&tab=edit&edit_id=' . $alb;
1892
+ $album_id = '
1893
+ <a
1894
+ href="' . $href . '"
1895
+ target="_blank"
1896
+ class="wppa-cover-album-id"
1897
+ style="cursor:pointer;"
1898
+ title="' . esc_attr( __( 'Edit Album', 'wp-photo-album-plus' ) ) . '"
1899
+ >
1900
+ (' . $alb . ')
1901
+ </a>';
1902
+ }
1903
+ else {
1904
+ $album_id = '
1905
+ <span
1906
+ class="wppa-cover-album-id"
1907
+ style="cursor:pointer;"
1908
+ title="' . esc_attr( __( 'Album id', 'wp-photo-album-plus' ) ) . '"
1909
+ >
1910
+ (' . $alb . ')
1911
+ </span>';
1912
+ }
1913
+ }
1914
+ else {
1915
+ $album_id = '';
1916
+ }
1917
+ wppa_out( $album_id );
1918
  }
1919
 
1920
  function wppa_albumcover_sublinks( $id, $width, $rsp ) {
wppa-defaults.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
- * Version 7.7.02.001
7
  *
8
  */
9
 
@@ -833,6 +833,7 @@ horizrailenabled:false,";
833
  'wppa_cover_sublinks_display' => 'none',
834
  'wppa_real_calendar_linktype' => 'lightbox',
835
  'wppa_fe_links_owner_only' => 'no',
 
836
 
837
  // Table VII: Security
838
  // B
3
  * Package: wp-photo-album-plus
4
  *
5
  * Contains default settings
6
+ * Version 7.7.02.002
7
  *
8
  */
9
 
833
  'wppa_cover_sublinks_display' => 'none',
834
  'wppa_real_calendar_linktype' => 'lightbox',
835
  'wppa_fe_links_owner_only' => 'no',
836
+ 'wppa_fe_albid_edit' => 'no',
837
 
838
  // Table VII: Security
839
  // B
wppa-settings-autosave.php CHANGED
@@ -3,7 +3,7 @@
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
- * Version 7.7.02.001
7
  *
8
  */
9
 
@@ -7278,6 +7278,26 @@ global $wppa_supported_camara_brands;
7278
  wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
7279
  }
7280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7281
  ?>
7282
  </tbody>
7283
  <tfoot style="font-weight: bold;" class="wppa_table_6">
3
  * Package: wp-photo-album-plus
4
  *
5
  * manage all options
6
+ * Version 7.7.02.002
7
  *
8
  */
9
 
7278
  wppa_setting($slug, '13', $name, $desc, $html, $help, $clas, $tags);
7279
  }
7280
 
7281
+ {
7282
+ $name = __('Album id on cover is link', 'wp-photo-album-plus');
7283
+ $desc = __('The album number on the cover links to the album admin page of the album', 'wp-photo-album-plus');
7284
+ $help = __('Table II-E10: <i>Album id on cover</i> must be enabled. The ids are only links when the user has edit album acces to the album', 'wp-photo-album-plus');
7285
+ $slug1 = 'wppa_fe_albid_edit';
7286
+ $slug2 = '';
7287
+ $slug3 = '';
7288
+ $slug4 = '';
7289
+ $slug = array($slug1, $slug2, $slug3, $slug4);
7290
+ $onchange = '';
7291
+ $html1 = wppa_checkbox($slug1, $onchange);
7292
+ $html2 = '';
7293
+ $slug3 = '';
7294
+ $slug4 = '';
7295
+ $html = array($html1, $html2, $html3, $html4);
7296
+ $clas = '';
7297
+ $tags = 'link';
7298
+ wppa_setting($slug, '14', $name, $desc, $html, $help, $clas, $tags);
7299
+ }
7300
+
7301
  ?>
7302
  </tbody>
7303
  <tfoot style="font-weight: bold;" class="wppa_table_6">
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: 7.7.02.001
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_revno; $wppa_revno = '7701'; // WPPA db version
27
- global $wppa_api_version; $wppa_api_version = '7.7.02.001'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_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: 7.7.02.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/
24
 
25
  /* WPPA GLOBALS */
26
  global $wppa_revno; $wppa_revno = '7701'; // WPPA db version
27
+ global $wppa_api_version; $wppa_api_version = '7.7.02.002'; // WPPA software version
28
 
29
  /* Init page js data */
30
  global $wppa_js_page_data; $wppa_js_page_data = '';