Version Description
= 8.1.08 =
- This version addresses various bug fixes, feature requests and security fixes.
Download this release
Release Info
Developer | opajaap |
Plugin | WP Photo Album Plus |
Version | 8.2.02.006 |
Comparing to | |
See all releases |
Code changes from version 8.2.02.004 to 8.2.02.006
- blocks/slideshow/editor.css +0 -3
- wppa-admin-styles.css +42 -3
- wppa-admin.php +9 -1
- wppa-album-admin-autosave.php +932 -658
- wppa-edit-tags.php +2 -2
- wppa-import.php +4 -4
- wppa-lasten-widget.php +2 -2
- wppa-maintenance.php +2 -2
- wppa-photo-admin-autosave.php +34 -23
- wppa-scripts.php +8 -8
- wppa-setting-see-also.php +12 -2
- wppa-slideshow-widget.php +2 -2
- wppa-stats-widget.php +12 -4
- wppa-thumbnail-widget.php +2 -2
- wppa-tinymce-common.php +2 -2
- wppa-tinymce-shortcodes.php +2 -2
- wppa-topten-widget.php +4 -6
- wppa-wrappers.php +7 -1
- wppa.php +2 -2
blocks/slideshow/editor.css
CHANGED
@@ -12,6 +12,3 @@
|
|
12 |
border: 1px solid #000;
|
13 |
padding: 0 4px;
|
14 |
}
|
15 |
-
.wp-block-wp-photo-album-plus-slideshow select {
|
16 |
-
max-width: 50%;
|
17 |
-
}
|
12 |
border: 1px solid #000;
|
13 |
padding: 0 4px;
|
14 |
}
|
|
|
|
|
|
wppa-admin-styles.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/* admin-styles.css
|
2 |
*
|
3 |
* wp-photo-album-plus
|
4 |
-
* version 8.
|
5 |
*/
|
6 |
#files_list, #files_list2
|
7 |
{
|
@@ -117,7 +117,7 @@ ul.wppa_nav
|
|
117 |
font-size: 13px !important;
|
118 |
line-height: 15px !important;
|
119 |
}
|
120 |
-
.wppa-table input
|
121 |
height: 20px !important;
|
122 |
padding:0 !important;
|
123 |
}
|
@@ -545,4 +545,43 @@ border:1px solid black;
|
|
545 |
|
546 |
.wppa-admin-button {
|
547 |
margin: 6px !important;
|
548 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
/* admin-styles.css
|
2 |
*
|
3 |
* wp-photo-album-plus
|
4 |
+
* version 8.2.02.006
|
5 |
*/
|
6 |
#files_list, #files_list2
|
7 |
{
|
117 |
font-size: 13px !important;
|
118 |
line-height: 15px !important;
|
119 |
}
|
120 |
+
.wppa-table input {
|
121 |
height: 20px !important;
|
122 |
padding:0 !important;
|
123 |
}
|
545 |
|
546 |
.wppa-admin-button {
|
547 |
margin: 6px !important;
|
548 |
+
}
|
549 |
+
|
550 |
+
/* Album admin new */
|
551 |
+
details {
|
552 |
+
margin-top: 20px;
|
553 |
+
clear:both;
|
554 |
+
}
|
555 |
+
|
556 |
+
details.hidden {
|
557 |
+
display: none;
|
558 |
+
}
|
559 |
+
|
560 |
+
.wppa-summary-toplevel {
|
561 |
+
background-color: #686;
|
562 |
+
color: white;
|
563 |
+
font-size: 1.5em;
|
564 |
+
margin-bottom: 6px;
|
565 |
+
line-height: 1.8em;
|
566 |
+
cursor:pointer;
|
567 |
+
}
|
568 |
+
.wppa-summary-sublevel {
|
569 |
+
background-color: #8a8;
|
570 |
+
color: white;
|
571 |
+
font-size: 1.2em;
|
572 |
+
margin-bottom: 6px;
|
573 |
+
line-height: 1.5em;
|
574 |
+
cursor:pointer;
|
575 |
+
}
|
576 |
+
|
577 |
+
.wppa-flex-container {
|
578 |
+
display: flex;
|
579 |
+
flex-flow: row wrap;
|
580 |
+
align-items: stretch;
|
581 |
+
justify-content: space-between;
|
582 |
+
-- background-color:#ffcc66;
|
583 |
+
padding: 10px;
|
584 |
+
margin:0 -10;
|
585 |
+
}
|
586 |
+
|
587 |
+
|
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.2.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -113,6 +113,14 @@ global $wppa_api_version;
|
|
113 |
$the_css = wppa_create_wppa_dynamic_css();
|
114 |
wp_add_inline_style( 'wppa_style', $the_css );
|
115 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
116 |
}
|
117 |
|
118 |
/* ADMIN SCRIPTS */
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains the admin menu and startups the admin pages
|
6 |
+
* Version 8.2.02.006
|
7 |
*
|
8 |
*/
|
9 |
|
113 |
$the_css = wppa_create_wppa_dynamic_css();
|
114 |
wp_add_inline_style( 'wppa_style', $the_css );
|
115 |
|
116 |
+
$the_css = '
|
117 |
+
.wppa-toplevel-details > summary::before {
|
118 |
+
content: "' . __( 'Show', 'wp-photo-album-plus' ) . '";
|
119 |
+
}
|
120 |
+
.wppa-toplevel-details[open] > summary::before {
|
121 |
+
content: "' . __( 'Hide', 'wp-photo-album-plus' ) . '";
|
122 |
+
}';
|
123 |
+
wp_add_inline_style( 'wppa_style', $the_css );
|
124 |
}
|
125 |
|
126 |
/* ADMIN SCRIPTS */
|
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.2.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -417,6 +417,7 @@ global $wppa_revno;
|
|
417 |
wppa_admin_spinner();
|
418 |
|
419 |
// Local js functions
|
|
|
420 |
$the_js = '
|
421 |
function wppaTryInheritCats( id ) {
|
422 |
|
@@ -484,568 +485,841 @@ global $wppa_revno;
|
|
484 |
}';
|
485 |
|
486 |
wppa_add_inline_script( 'wppa-admin', $the_js );
|
|
|
487 |
|
488 |
// The header
|
489 |
-
wppa_echo( '
|
490 |
-
<img src="' . WPPA_URL . '/img/album32.png' . '" alt="Album icon" />
|
491 |
-
<h1 style="display:inline">' .
|
492 |
-
__( 'Edit Album Information', 'wp-photo-album-plus' ) . '
|
493 |
-
</h1>
|
494 |
-
<p class="description">' .
|
495 |
-
__( 'All modifications are instantly updated on the server, except for those that require a button push.', 'wp-photo-album-plus' ) . ' ' .
|
496 |
-
__( 'After entering/modification of text, click outside the textfield to get it updated.', 'wp-photo-album-plus' ) . ' ' .
|
497 |
-
'<br>' . __( 'The <b style="color:#070" >Remark</b> fields keep you informed on the actions taken at the background.', 'wp-photo-album-plus' ) . '
|
498 |
-
</p>
|
499 |
-
<input
|
500 |
-
type="hidden"
|
501 |
-
id="album-nonce-' . $id . '"
|
502 |
-
value="' . wp_create_nonce( 'wppa-nonce_' . $id ) . '"
|
503 |
-
/>' );
|
504 |
|
505 |
-
// The edit albuminfo panel
|
506 |
-
$result = '
|
507 |
-
<div
|
508 |
-
id="albumitem-' . $id . '"
|
509 |
-
class="wppa-table-wrap"
|
510 |
-
style="width:100%;position:relative;"
|
511 |
-
>';
|
512 |
-
{
|
513 |
-
// Section 1
|
514 |
-
$result .= '
|
515 |
-
<!-- Album Section 1 -->
|
516 |
-
<table class="wppa-table wppa-album-table" >
|
517 |
-
<tbody>
|
518 |
-
<tr>
|
519 |
-
<td>';
|
520 |
|
521 |
-
// More or less static data
|
522 |
-
$result .=
|
523 |
-
__( 'Album number:', 'wp-photo-album-plus' ) . ' ' .
|
524 |
-
$id . '. ' .
|
525 |
|
526 |
-
|
527 |
-
|
|
|
|
|
|
|
|
|
|
|
528 |
|
529 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
530 |
|
531 |
-
|
532 |
-
|
533 |
|
534 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
535 |
|
536 |
-
|
537 |
-
if (
|
538 |
-
$result .= wppa_local_date( '', $modified ) . ' ' . __( 'local time' , 'wp-photo-album-plus' ) . '. ' . $br;
|
539 |
-
}
|
540 |
-
else {
|
541 |
-
$result .= __( 'Not modified', 'wp-photo-album-plus' ) . '. ' . $br;
|
542 |
-
}
|
543 |
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
|
|
|
|
|
|
|
|
553 |
}
|
554 |
|
555 |
-
// Clicks
|
556 |
-
if ( wppa_switch( 'track_clickcounts' ) ) {
|
557 |
-
$click_arr = $wpdb->get_col( "SELECT clicks FROM $wpdb->wppa_photos WHERE album = $id" );
|
558 |
-
$result .=
|
559 |
-
__( 'Clicks:', 'wp-photo-album-plus' ) . ' ' . array_sum( $click_arr ) . '. ' . $br;
|
560 |
-
}
|
561 |
|
562 |
-
$result .= '<br>';
|
563 |
|
564 |
-
|
565 |
-
$result .=
|
566 |
-
__( 'Owned by:', 'wp-photo-album-plus' ) . ' ';
|
567 |
-
if ( ! wppa_user_is( 'administrator' ) ) {
|
568 |
-
if ( $owner == '--- public ---' ) {
|
569 |
-
$result .= __( '--- public ---', 'wp-photo-album-plus' ) . ' ' . $br;
|
570 |
-
}
|
571 |
-
else {
|
572 |
-
$result .= $owner . '. ' . $br;
|
573 |
-
}
|
574 |
-
}
|
575 |
-
else {
|
576 |
-
if ( wppa_get_user_count() > wppa_opt( 'max_users' ) ) {
|
577 |
-
$result .= '
|
578 |
-
<input
|
579 |
-
type="text"
|
580 |
-
value="' . esc_attr( $owner ) . '"
|
581 |
-
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'owner\', this )"
|
582 |
-
/>';
|
583 |
-
}
|
584 |
-
else {
|
585 |
-
if ( wppa_switch( 'user_upload_on' ) ) {
|
586 |
-
if ( $owner == '--- public ---' ) {
|
587 |
-
$title = __( 'Frontend upload to this album is open to visitors', 'wp-photo-album-plus' );
|
588 |
-
}
|
589 |
-
else {
|
590 |
-
$title = __( 'Frontend upload to this album is open for the owner and the admin', 'wp-photo-album-plus' );
|
591 |
-
}
|
592 |
-
}
|
593 |
-
else {
|
594 |
-
$title = '';
|
595 |
-
}
|
596 |
-
$result .= '
|
597 |
-
<select
|
598 |
-
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'owner\', this )"
|
599 |
-
title="' . esc_attr( $title ) . '"
|
600 |
-
>' .
|
601 |
-
wppa_get_user_select( $owner ) . '
|
602 |
-
</select>';
|
603 |
-
}
|
604 |
|
605 |
-
|
606 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
607 |
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
style="width:50px;"
|
616 |
-
/> ';
|
617 |
-
if ( wppa_opt( 'list_albums_by' ) != '1' && $a_order != '0' ) {
|
618 |
-
$result .=
|
619 |
-
'<small class="description" style="color:red" >' .
|
620 |
-
esc_html__( 'Album sequence number has only effect if you set the album sort order method to <b>Order #</b> in the Photo Albums -> Settings screen.<br>', 'wp-photo-album-plus' ) .
|
621 |
-
'</small>';
|
622 |
-
}
|
623 |
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
</select>' . $br;
|
643 |
|
644 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
645 |
$result .=
|
646 |
-
__( '
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
669 |
}
|
670 |
else {
|
|
|
|
|
|
|
|
|
|
|
671 |
$result .= '
|
672 |
-
<
|
673 |
-
id="
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
'exclude' => $id,
|
679 |
-
'selected' => $a_parent,
|
680 |
-
'addnone' => wppa_can_create_top_album(),
|
681 |
-
'addselected' => true,
|
682 |
-
'disableancestors' => true,
|
683 |
-
'path' => true,
|
684 |
-
'sort' => true,
|
685 |
-
)
|
686 |
-
) .
|
687 |
-
'</select>';
|
688 |
}
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
__( 'Order #', 'wp-photo-album-plus' ),
|
697 |
-
__( 'Name', 'wp-photo-album-plus' ),
|
698 |
-
__( 'Random', 'wp-photo-album-plus' ),
|
699 |
-
__( 'Rating mean value', 'wp-photo-album-plus' ),
|
700 |
-
__( 'Number of votes', 'wp-photo-album-plus' ),
|
701 |
-
__( 'Timestamp', 'wp-photo-album-plus' ),
|
702 |
-
__( 'EXIF Date', 'wp-photo-album-plus' ),
|
703 |
-
__( 'Order # desc', 'wp-photo-album-plus' ),
|
704 |
-
__( 'Name desc', 'wp-photo-album-plus' ),
|
705 |
-
__( 'Rating mean value desc', 'wp-photo-album-plus' ),
|
706 |
-
__( 'Number of votes desc', 'wp-photo-album-plus' ),
|
707 |
-
__( 'Timestamp desc', 'wp-photo-album-plus' ),
|
708 |
-
__( 'EXIF Date desc', 'wp-photo-album-plus' )
|
709 |
-
);
|
710 |
-
$values = array( '0',
|
711 |
-
'1',
|
712 |
-
'2',
|
713 |
-
'3',
|
714 |
-
'4',
|
715 |
-
'6',
|
716 |
-
'5',
|
717 |
-
'7',
|
718 |
-
'-1',
|
719 |
-
'-2',
|
720 |
-
'-4',
|
721 |
-
'-6',
|
722 |
-
'-5',
|
723 |
-
'-7'
|
724 |
-
);
|
725 |
-
|
726 |
-
$dflt = '';
|
727 |
-
$df = wppa_opt( 'list_photos_by' );
|
728 |
-
if ( $df == '0' ) $dflt = __( 'not specified', 'wp-photo-album-plus' );
|
729 |
-
else foreach( array_keys( $values ) as $key ) {
|
730 |
-
if ( $df == $values[$key] ) {
|
731 |
-
$dflt = $options[$key];
|
732 |
}
|
733 |
}
|
734 |
-
|
735 |
-
|
|
|
736 |
$result .= '
|
737 |
<select
|
738 |
-
|
|
|
|
|
739 |
title="' . esc_attr( $title ) . '"
|
740 |
-
>'
|
741 |
-
|
742 |
-
|
743 |
-
$result .= '<option value="' . $values[$key] . '"' . $sel . '>' . $options[$key] . '</option>';
|
744 |
-
}
|
745 |
-
$result .= '
|
746 |
-
</select>' . $br;
|
747 |
}
|
|
|
|
|
|
|
|
|
748 |
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
764 |
if ( $df == '0' ) $dflt = __( 'not specified', 'wp-photo-album-plus' );
|
765 |
-
else foreach( array_keys( $
|
766 |
-
if ( $df == $
|
767 |
-
$dflt = $
|
768 |
}
|
769 |
}
|
|
|
770 |
|
771 |
-
$
|
772 |
-
|
773 |
-
$result .=
|
774 |
-
__( 'Subalbum sort order', 'wp-photo-album-plus' ) . ':
|
775 |
<select
|
776 |
-
|
|
|
|
|
777 |
title="' . esc_attr( $title ) . '"
|
778 |
>';
|
779 |
-
|
780 |
-
$
|
|
|
781 |
}
|
782 |
$result .= '
|
783 |
-
</select>
|
|
|
|
|
|
|
784 |
|
785 |
-
|
786 |
-
|
787 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
788 |
|
789 |
-
|
790 |
-
$result .= __( 'Use alt thumbsize', 'wp-photo-album-plus' ) . ':
|
791 |
-
<select
|
792 |
-
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'alt_thumbsize\', this )"
|
793 |
-
title="' . esc_attr( $title ) . '"
|
794 |
-
>
|
795 |
-
<option value="0"' . ( $alt_thumbsize ? '' : $sel ) . ' >' .
|
796 |
-
__( 'no', 'wp-photo-album-plus' ) . '
|
797 |
-
</option>
|
798 |
-
<option value="yes"' . ( $alt_thumbsize ? $sel : '' ) . ' >' .
|
799 |
-
__( 'yes', 'wp-photo-album-plus' ) . '
|
800 |
-
</option>
|
801 |
-
</select>' . $br;
|
802 |
-
}
|
803 |
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
<option value="longdesc"' . ( $cover_type == 'longdesc' ? $sel : '' ) . ' >' .
|
821 |
-
__( 'Long Descriptions', 'wp-photo-album-plus' ) . '
|
822 |
-
</option>
|
823 |
-
<option value="imagefactory"' . ( $cover_type == 'imagefactory' ? $sel : '' ) . ' >' .
|
824 |
-
__( 'Image Factory', 'wp-photo-album-plus' ) . '
|
825 |
-
</option>
|
826 |
-
<option value="default-mcr"' . ( $cover_type == 'default-mcr' ? $sel : '' ) . ' >' .
|
827 |
-
__( 'Standard mcr', 'wp-photo-album-plus' ) . '
|
828 |
-
</option>
|
829 |
-
<option value="longdesc-mcr"' . ( $cover_type == 'longdesc-mcr' ? $sel : '' ) . ' >' .
|
830 |
-
__( 'Long Descriptions mcr', 'wp-photo-album-plus' ) . '
|
831 |
-
</option>
|
832 |
-
<option value="imagefactory-mcr"' . ( $cover_type == 'imagefactory-mcr' ? $sel : '' ) . ' >' .
|
833 |
-
__( 'Image Factory mcr', 'wp-photo-album-plus' ) . '
|
834 |
-
</option>
|
835 |
-
</select>' . $br;
|
836 |
}
|
|
|
|
|
|
|
|
|
837 |
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
870 |
}
|
871 |
else {
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
$result .=
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
case '604800': $result .= __( 'per week', 'wp-photo-album-plus' ); break;
|
881 |
-
case '2592000': $result .= __( 'per month', 'wp-photo-album-plus' ); break;
|
882 |
-
case '31536000': $result .= __( 'per year', 'wp-photo-album-plus' ); break;
|
883 |
-
default: $result .= sprintf( 'per %d seconds', $lims[1] );
|
884 |
-
}
|
885 |
}
|
886 |
-
$result .= '. ';
|
887 |
}
|
888 |
-
$result .=
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
__( '0 means no limit.', 'wp-photo-album-plus' );
|
894 |
-
$result .= __( 'Tree upload limit', 'wp-photo-album-plus' ) . ':
|
895 |
-
<input
|
896 |
-
type="number"
|
897 |
-
min="0"
|
898 |
-
title="' . esc_attr( $title ) . '"
|
899 |
-
value="' . $tree_limit . '"
|
900 |
-
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'upload_limit_tree\', this )"
|
901 |
-
style="cursor:pointer"/>' .
|
902 |
|
903 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
904 |
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
|
910 |
-
|
911 |
-
|
912 |
-
|
|
|
913 |
|
914 |
-
|
|
|
|
|
|
|
|
|
|
|
915 |
__( 'Photos are zoomable:', 'wp-photo-album-plus' ) . '
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
if ( ! isset( $disp_opt[$i] ) ) {
|
928 |
-
$disp_opt[$i] = '0';
|
929 |
-
}
|
930 |
-
}
|
931 |
|
932 |
-
|
933 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
934 |
|
935 |
-
|
936 |
-
|
937 |
-
wppa_setting_path( 'b', 'slide', 1, 17, wppa_switch( 'show_full_name' ) ? $yes : $no ) . ',
' .
|
938 |
-
wppa_setting_path( 'b', 'thumbs', 2, 1, wppa_switch( 'thumb_text_name' ) ? $yes : $no ) . ' ' . __( 'and' , 'wp-photo-album-plus' ) . '
' .
|
939 |
-
wppa_setting_path( 'b', 'lightbox', 1, 3, wppa_switch( 'ovl_name' ) ? $yes : $no ) . '.';
|
940 |
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
</select>' . $br;
|
948 |
-
|
949 |
-
// Display description
|
950 |
-
$title = $title_head .
|
951 |
-
wppa_setting_path( 'b', 'slide', 1, 20, wppa_switch( 'show_full_desc' ) ? $yes : $no ) . ',
' .
|
952 |
-
wppa_setting_path( 'b', 'thumbs', 2, 3, wppa_switch( 'thumb_text_desc' ) ? $yes : $no ) . ' ' . __( 'and' , 'wp-photo-album-plus' ) . '
' .
|
953 |
-
wppa_setting_path( 'b', 'lightbox', 1, 4, wppa_switch( 'ovl_desc' ) ? $yes : $no ) . '.';
|
954 |
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
|
|
|
|
|
|
|
|
|
|
968 |
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
</select>' . $br;
|
976 |
-
|
977 |
-
// Display comments
|
978 |
-
$title = $title_head .
|
979 |
-
wppa_setting_path( 'b', 'general', 1, 4, wppa_switch( 'show_comments' ) ? $yes : $no ) . ' ' . __( 'and' , 'wp-photo-album-plus' ) . '
' .
|
980 |
-
wppa_setting_path( 'b', 'thumbs', 2, 4, wppa_switch( 'thumb_text_comcount' ) ? $yes : $no ) . '.';
|
981 |
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
989 |
|
990 |
-
|
991 |
-
|
|
|
|
|
|
|
|
|
992 |
|
993 |
-
|
994 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
995 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
996 |
__( 'Watermark file:', 'wp-photo-album-plus' ) . '
|
997 |
-
|
998 |
-
|
999 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1000 |
__( 'Watermark pos:', 'wp-photo-album-plus' ) . '
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1005 |
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1009 |
|
1010 |
-
$result .=
|
1011 |
-
__( 'Delete at', 'wp-photo-album-plus' ) .
|
1012 |
-
' ' . '
|
1013 |
-
<input
|
1014 |
-
type="checkbox"
|
1015 |
-
id="scheduledel"' .
|
1016 |
-
( $scheduledel ? ' checked="checked"' : '' ) .
|
1017 |
-
( $may_change ? '' : ' disabled' ) . '
|
1018 |
-
onchange="wppaChangeScheduleDelAlbum( ' . $id . ', this );"
|
1019 |
-
/>
|
1020 |
|
1021 |
-
<input type="hidden" value="" id="wppa-dummy-del" />
|
1022 |
-
<span
|
1023 |
-
class="wppa-datetimedel-' . $id . '"' .
|
1024 |
-
( $albuminfo['scheduledel'] ? '' : ' style="display:none"' ) . '
|
1025 |
-
>' .
|
1026 |
-
wppa_get_date_time_select_html( 'delalbum', $id, $may_change ) . '
|
1027 |
-
</span>
|
1028 |
-
' . $br;
|
1029 |
-
}
|
1030 |
|
1031 |
-
// Status
|
1032 |
-
$result .= '<br>' .
|
1033 |
-
esc_html__( 'Remark', 'wp-photo-album-plus' ) . ':
|
1034 |
-
<span
|
1035 |
-
id="albumstatus-' . $id . '"
|
1036 |
-
style="font-weight:bold;color:#00AA00">' .
|
1037 |
-
esc_html( $remark ) . '
|
1038 |
-
</span>' . $br;
|
1039 |
|
1040 |
|
1041 |
-
$result .= '
|
1042 |
-
</td>
|
1043 |
-
</tr>
|
1044 |
-
</tbody>
|
1045 |
-
</table>';
|
1046 |
wppa_echo( $result );
|
1047 |
-
|
1048 |
-
|
|
|
|
|
1049 |
// Section 2
|
1050 |
$result = '
|
1051 |
<!-- Album Section 2 -->
|
@@ -1097,7 +1371,7 @@ global $wppa_revno;
|
|
1097 |
$result = '
|
1098 |
<input
|
1099 |
type="button"
|
1100 |
-
class="button-secundary"
|
1101 |
value="' . esc_attr( __( 'Update Album description', 'wp-photo-album-plus' ) ) . '"
|
1102 |
onclick="wppaAjaxUpdateAlbum( ' . $id . ', \'description\', wppaGetTinyMceContent(\'wppaalbumdesc\') )"
|
1103 |
/>
|
@@ -1372,9 +1646,10 @@ global $wppa_revno;
|
|
1372 |
$result .= '
|
1373 |
</tbody>
|
1374 |
</table>';
|
|
|
|
|
1375 |
wppa_echo( $result );
|
1376 |
-
|
1377 |
-
{
|
1378 |
// Section 3, Actions
|
1379 |
$result = '
|
1380 |
<!-- Album Section 3 -->
|
@@ -1385,35 +1660,135 @@ global $wppa_revno;
|
|
1385 |
<tr>
|
1386 |
<td>';
|
1387 |
|
1388 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1389 |
$result .= '
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1404 |
|
1405 |
// Apply default tags
|
1406 |
-
$result
|
1407 |
<input
|
1408 |
type="button"
|
1409 |
-
class="wppa-admin-button"
|
1410 |
title="' . esc_attr( __( 'Tag all photos in this album with the default tags.', 'wp-photo-album-plus' ) ) . '"
|
1411 |
onclick="wppaTryApplyDeftags( ' . $id . ' )"
|
1412 |
value="' . esc_attr( __( 'Apply default tags', 'wp-photo-album-plus' ) ) . '"
|
1413 |
/>' . $br . '
|
1414 |
<input
|
1415 |
type="button"
|
1416 |
-
class="wppa-admin-button"
|
1417 |
title="' . esc_attr( __( 'Add the default tags to all photos in this album.', 'wp-photo-album-plus' ) ) . '"
|
1418 |
onclick="wppaTryAddDeftags( ' . $id . ' )"
|
1419 |
value="' . esc_attr( __( 'Add default tags', 'wp-photo-album-plus' ) ) . '"
|
@@ -1423,7 +1798,7 @@ global $wppa_revno;
|
|
1423 |
$result .= '
|
1424 |
<input
|
1425 |
type="button"
|
1426 |
-
class="wppa-admin-button"
|
1427 |
title="' . esc_attr( __( 'Schedule all photos in this album for later publishing.', 'wp-photo-album-plus' ) ) . '"
|
1428 |
onclick="wppaTryScheduleAll( ' . $id . ' )"
|
1429 |
value="' . esc_attr( __( 'Schedule all', 'wp-photo-album-plus' ) ) . '"
|
@@ -1435,7 +1810,7 @@ global $wppa_revno;
|
|
1435 |
$result .= '
|
1436 |
<input
|
1437 |
type="button"
|
1438 |
-
class="wppa-admin-button"
|
1439 |
onclick="' . $onc . '"
|
1440 |
value="' . esc_attr( __( 'Reset ratings', 'wp-photo-album-plus' ) ) . '"
|
1441 |
/>' . $br;
|
@@ -1447,7 +1822,7 @@ global $wppa_revno;
|
|
1447 |
$result .= '
|
1448 |
<input
|
1449 |
type="button"
|
1450 |
-
class="wppa-admin-button"
|
1451 |
onclick="' . $onc . '"
|
1452 |
value="' . esc_attr( __( 'Apply new photo desc', 'wp-photo-album-plus' ) ) . '"
|
1453 |
/>' . $br;
|
@@ -1459,120 +1834,12 @@ global $wppa_revno;
|
|
1459 |
$result .= '
|
1460 |
<input
|
1461 |
type="button"
|
1462 |
-
class="wppa-admin-button"
|
1463 |
onclick="' . $onc . '"
|
1464 |
value="' . esc_attr( __( 'Remake all', 'wp-photo-album-plus' ) ) . '"
|
1465 |
/>' . $br;
|
1466 |
}
|
1467 |
|
1468 |
-
// Create subalbum
|
1469 |
-
if ( wppa_can_create_album() ) {
|
1470 |
-
$url = wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&tab=edit&edit-id=new&parent_id=' . $albuminfo['id'] . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) );
|
1471 |
-
$onc = 'if (confirm(\''.__( 'Are you sure you want to create a subalbum?', 'wp-photo-album-plus' ).'\')) document.location=\''.$url.'\';';
|
1472 |
-
|
1473 |
-
$result .= '
|
1474 |
-
<input
|
1475 |
-
type="button"
|
1476 |
-
class="wppa-admin-button"
|
1477 |
-
onclick="' . $onc . '"
|
1478 |
-
value="' . esc_attr( __( 'Create child', 'wp-photo-album-plus' ) ) . '"
|
1479 |
-
/>' . $br;
|
1480 |
-
}
|
1481 |
-
|
1482 |
-
// Create sibling
|
1483 |
-
if ( $albuminfo['a_parent'] > '0' && wppa_can_create_album() ||
|
1484 |
-
$albuminfo['a_parent'] < '1' && wppa_can_create_top_album() ) {
|
1485 |
-
$url = wppa_dbg_url( get_admin_url() .
|
1486 |
-
'admin.php' .
|
1487 |
-
'?page=wppa_admin_menu' .
|
1488 |
-
'&tab=edit' .
|
1489 |
-
'&edit-id=new' .
|
1490 |
-
'&parent_id=' . $albuminfo['a_parent'] .
|
1491 |
-
'&is-sibling-of=' . $albuminfo['id'] .
|
1492 |
-
'&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) );
|
1493 |
-
$onc = 'if (confirm(\''.__( 'Are you sure you want to create a subalbum?', 'wp-photo-album-plus' ).'\')) document.location=\''.$url.'\';';
|
1494 |
-
|
1495 |
-
$result .= '
|
1496 |
-
<input
|
1497 |
-
type="button"
|
1498 |
-
class="wppa-admin-button"
|
1499 |
-
onclick="' . $onc . '"
|
1500 |
-
value="' . esc_attr( __( 'Create sibling', 'wp-photo-album-plus' ) ) . '"
|
1501 |
-
/>' . $br;
|
1502 |
-
}
|
1503 |
-
|
1504 |
-
// Edit parent
|
1505 |
-
if ( $albuminfo['a_parent'] > '0' && wppa_album_exists( $albuminfo['a_parent'] ) && wppa_have_access( $albuminfo['a_parent'] ) ) {
|
1506 |
-
$url = wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&tab=edit&edit-id=' . $albuminfo['a_parent'] . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) );
|
1507 |
-
$onc = 'document.location=\''.$url.'\';';
|
1508 |
-
$result .= '
|
1509 |
-
<input
|
1510 |
-
type="button"
|
1511 |
-
class="wppa-admin-button"
|
1512 |
-
onclick="' . $onc . '"
|
1513 |
-
value="' . esc_attr( __( 'Edit parent', 'wp-photo-album-plus' ) ) . '"
|
1514 |
-
/>' . $br;
|
1515 |
-
}
|
1516 |
-
|
1517 |
-
$a = wppa_allow_uploads( $id );
|
1518 |
-
if ( $a ) {
|
1519 |
-
$full = false;
|
1520 |
-
}
|
1521 |
-
else {
|
1522 |
-
$full = true;
|
1523 |
-
}
|
1524 |
-
|
1525 |
-
// Goto Upload
|
1526 |
-
if ( current_user_can( 'wppa_upload' ) ) {
|
1527 |
-
|
1528 |
-
$onc = ( $full ?
|
1529 |
-
'alert(\''.__( 'Change the upload limit or remove photos to enable new uploads.', 'wp-photo-album-plus' ).'\')' :
|
1530 |
-
'document.location = \''.wppa_dbg_url(get_admin_url()).'/admin.php?page=wppa_upload_photos&wppa-set-album='.$id.'\''
|
1531 |
-
);
|
1532 |
-
$val = ( $full ?
|
1533 |
-
__( 'Album is full', 'wp-photo-album-plus' ) :
|
1534 |
-
__( 'Upload to this album', 'wp-photo-album-plus' ) . ( $a > '0' ? ' ' . sprintf( __( '(max %d)', 'wp-photo-album-plus' ), $a ) : '' )
|
1535 |
-
);
|
1536 |
-
$result .= '
|
1537 |
-
<input
|
1538 |
-
type="button"
|
1539 |
-
class="wppa-admin-button"
|
1540 |
-
onclick="' . $onc . '"
|
1541 |
-
value="' . $val .'"
|
1542 |
-
/>' . $br;
|
1543 |
-
}
|
1544 |
-
|
1545 |
-
// Goto Import
|
1546 |
-
if ( current_user_can( 'wppa_import' ) && ! $full ) {
|
1547 |
-
|
1548 |
-
$onc = 'document.location = \''.wppa_dbg_url(get_admin_url()).'admin.php?page=wppa_import_photos&wppa-set-album='.$id.'\'';
|
1549 |
-
$val = __( 'Import to this album', 'wp-photo-album-plus' ) . ( $a > '0' ? ' ' . sprintf( __( '(max %d)', 'wp-photo-album-plus' ), $a ) : '' );
|
1550 |
-
$result .= '
|
1551 |
-
<input
|
1552 |
-
type="button"
|
1553 |
-
class="wppa-admin-button"
|
1554 |
-
onclick="' . $onc . '"
|
1555 |
-
value="' . $val .'"
|
1556 |
-
/>' . $br;
|
1557 |
-
}
|
1558 |
-
|
1559 |
-
// Download album
|
1560 |
-
if ( wppa_switch( 'allow_download_album' ) && ( ! wppa_switch( 'download_album_is_restricted' ) || wppa_user_is( 'administrator' ) ) ) {
|
1561 |
-
|
1562 |
-
$result .= '
|
1563 |
-
<input
|
1564 |
-
type="button"
|
1565 |
-
class="wppa-admin-button"
|
1566 |
-
onclick="wppaAjaxDownloadAlbum( 0, ' . $albuminfo['id'] . ' );"
|
1567 |
-
value="' . esc_attr( __( 'Download album', 'wp-photo-album-plus' ) ).'"
|
1568 |
-
/>
|
1569 |
-
<img
|
1570 |
-
id="dwnspin-0-' . $albuminfo['id'] . '"
|
1571 |
-
src="' . wppa_get_imgdir() . 'spinner.gif"
|
1572 |
-
style="margin-left:6px;display:none;height:18px;position:relative;bottom:-6px"
|
1573 |
-
alt="spinner"
|
1574 |
-
/>' . $br;
|
1575 |
-
}
|
1576 |
|
1577 |
// Set all to pano
|
1578 |
if ( wppa_switch( 'enable_panorama' ) ) {
|
@@ -1580,12 +1847,13 @@ global $wppa_revno;
|
|
1580 |
$result .= '
|
1581 |
<input
|
1582 |
type="button"
|
1583 |
-
class="wppa-admin-button"
|
1584 |
onclick="wppaTrySetAllPanorama(' . $albuminfo['id'] . ')"
|
1585 |
value="' . esc_attr( __( 'Set all to panorama', 'wp-photo-album-plus' ) ).':"
|
1586 |
/>
|
1587 |
|
1588 |
-
<select id="pano-opt"
|
|
|
1589 |
<option value="9" disabled selected>' . __( 'Select a mode', 'wp-photo-album-plus' ) . '</option>
|
1590 |
<option value="0">' . __( '- none -', 'wp-photo-album-plus' ) . '</option>
|
1591 |
<option value="1">' . __( '360° Spheric', 'wp-photo-album-plus' ) . '</option>
|
@@ -1593,37 +1861,38 @@ global $wppa_revno;
|
|
1593 |
</select>' . $br;
|
1594 |
}
|
1595 |
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
|
1601 |
-
wppa_echo( $result );
|
1602 |
-
}
|
1603 |
|
1604 |
-
// End edit album info panel
|
1605 |
-
wppa_echo( '</div>' );
|
1606 |
|
1607 |
-
// Subalbums sequence
|
1608 |
-
wppa_album_sequence( $edit_id );
|
1609 |
|
1610 |
// Manage photos section
|
1611 |
-
|
1612 |
-
|
1613 |
-
<
|
1614 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1615 |
if ( wppa_get( 'bulk' ) )
|
1616 |
-
$result
|
1617 |
elseif ( wppa_get( 'seq' ) )
|
1618 |
-
$result
|
1619 |
elseif ( wppa_get( 'quick' ) )
|
1620 |
-
$result
|
1621 |
else
|
1622 |
-
$result
|
1623 |
$result .= '
|
1624 |
-
|
1625 |
-
|
1626 |
-
wppa_echo( $result );
|
|
|
1627 |
|
1628 |
if ( wppa_get( 'bulk' ) )
|
1629 |
wppa_album_photos_bulk( $edit_id );
|
@@ -1632,6 +1901,8 @@ global $wppa_revno;
|
|
1632 |
else
|
1633 |
wppa_album_photos( $edit_id );
|
1634 |
|
|
|
|
|
1635 |
$result = '
|
1636 |
<br>
|
1637 |
<a href="' . $back_url . '" >' .
|
@@ -1727,13 +1998,13 @@ global $wppa_revno;
|
|
1727 |
/>
|
1728 |
<input
|
1729 |
type="button"
|
1730 |
-
class="button-primary"
|
1731 |
value="' . __( 'Cancel', 'wp-photo-album-plus' ) . '"
|
1732 |
onclick="parent.history.back()"
|
1733 |
/>
|
1734 |
<input
|
1735 |
type="submit"
|
1736 |
-
class="button-primary"
|
1737 |
style="color: red"
|
1738 |
name="wppa-del-confirm"
|
1739 |
value="' . __( 'Delete', 'wp-photo-album-plus' ) . '"
|
@@ -1805,7 +2076,7 @@ global $wppa_revno;
|
|
1805 |
$result .= '
|
1806 |
<input
|
1807 |
type="button"
|
1808 |
-
class="button-secundary"
|
1809 |
onclick="document.location=\'' . wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&switchto=collapsible' ) . '\'"
|
1810 |
value="' . esc_attr__( 'Switch to Collapsable table', 'wp-photo-album-plus' ) . '"
|
1811 |
/>';
|
@@ -1814,7 +2085,7 @@ global $wppa_revno;
|
|
1814 |
$result .= '
|
1815 |
<input
|
1816 |
type="button"
|
1817 |
-
class="button-secundary"
|
1818 |
onclick="document.location=\'' . wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&switchto=flat ' ) . '\'"
|
1819 |
value="' . esc_attr__( 'Switch to Flat table', 'wp-photo-album-plus' ) . '"
|
1820 |
/>';
|
@@ -1825,7 +2096,7 @@ global $wppa_revno;
|
|
1825 |
$result .= '
|
1826 |
<input
|
1827 |
type="button"
|
1828 |
-
class="button-secundary"
|
1829 |
id="wppa-open-all"
|
1830 |
style="display:inline"
|
1831 |
onclick=" jQuery(\'#wppa-close-all\').css(\'display\',\'inline\');
|
@@ -1838,7 +2109,7 @@ global $wppa_revno;
|
|
1838 |
/>
|
1839 |
<input
|
1840 |
type="button"
|
1841 |
-
class="button-secundary"
|
1842 |
id="wppa-close-all"
|
1843 |
style="display:inline"
|
1844 |
onclick=" jQuery(\'#wppa-open-all\').css(\'display\',\'inline\');
|
@@ -1883,7 +2154,7 @@ global $wppa_revno;
|
|
1883 |
<select
|
1884 |
id="wppa-edit-albid"
|
1885 |
title="' . __( 'Select the number of the album you want to edit', 'wp-photo-album-plus' ) . '"
|
1886 |
-
style="width:120px;cursor:pointer"
|
1887 |
/>
|
1888 |
<option value="" selected disabled>' . __( 'Album id', 'wp-photo-album-plus' ) . '</option>';
|
1889 |
foreach( $albids as $alb ) {
|
@@ -1893,6 +2164,7 @@ global $wppa_revno;
|
|
1893 |
</select>
|
1894 |
<input
|
1895 |
type="button"
|
|
|
1896 |
value="' . __( 'Edit album', 'wp-photo-album-plus' ) . '"
|
1897 |
onclick="wppaGoEditAlbNo();"
|
1898 |
/>
|
@@ -1903,10 +2175,11 @@ global $wppa_revno;
|
|
1903 |
$opts = $wpdb->get_col( "SELECT slug FROM $wpdb->wppa_index WHERE albums <> '' ORDER BY slug" );
|
1904 |
$f = wppa_get( 'filter' );
|
1905 |
$result .= '
|
1906 |
-
<p style="float:right">
|
1907 |
<select
|
1908 |
id="wppa-edit-filter"
|
1909 |
-
title="' . __( 'Select an album search word', 'wp-photo-album-plus' ) . '"
|
|
|
1910 |
<option value="" selected disabled>' . __( 'Filter by', 'wp-photo-album-plus' ) . '</option>';
|
1911 |
foreach( $opts as $opt ) {
|
1912 |
$result .= '<option value="' . $opt . '"' . ( $f == $opt ? ' selected ' : '' ) . '>' . $opt . '</option>';
|
@@ -1915,7 +2188,7 @@ global $wppa_revno;
|
|
1915 |
'</select>
|
1916 |
<input
|
1917 |
type="button"
|
1918 |
-
class="button-secundary"
|
1919 |
onclick="wppaGoApplyFilter();"
|
1920 |
value="' . __( 'Apply filter', 'wp-photo-album-plus' ) . '"
|
1921 |
/>
|
@@ -3031,6 +3304,7 @@ global $wpdb;
|
|
3031 |
|
3032 |
$output .= '
|
3033 |
<select
|
|
|
3034 |
name="wppa-main" onchange="wppaAjaxUpdateAlbum('.$a_id.', \'main_photo\', this)"
|
3035 |
title="' . esc_attr( $title ) . '"
|
3036 |
>';
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* create, edit and delete albums
|
6 |
+
* Version 8.2.02.006
|
7 |
*
|
8 |
*/
|
9 |
|
417 |
wppa_admin_spinner();
|
418 |
|
419 |
// Local js functions
|
420 |
+
{
|
421 |
$the_js = '
|
422 |
function wppaTryInheritCats( id ) {
|
423 |
|
485 |
}';
|
486 |
|
487 |
wppa_add_inline_script( 'wppa-admin', $the_js );
|
488 |
+
}
|
489 |
|
490 |
// The header
|
491 |
+
wppa_echo( '<h1 style="display:inline">' . __( wppa_get_album_name( $id ) ) . '</h1>' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
493 |
|
|
|
|
|
|
|
|
|
494 |
|
495 |
+
$a = wppa_allow_uploads( $id );
|
496 |
+
if ( $a ) {
|
497 |
+
$full = false;
|
498 |
+
}
|
499 |
+
else {
|
500 |
+
$full = true;
|
501 |
+
}
|
502 |
|
503 |
+
// Goto Upload
|
504 |
+
if ( current_user_can( 'wppa_upload' ) ) {
|
505 |
+
|
506 |
+
$onc = ( $full ?
|
507 |
+
'alert(\''.__( 'Change the upload limit or remove photos to enable new uploads.', 'wp-photo-album-plus' ).'\')' :
|
508 |
+
'document.location = \''.wppa_dbg_url(get_admin_url()).'/admin.php?page=wppa_upload_photos&wppa-set-album='.$id.'\''
|
509 |
+
);
|
510 |
+
$val = ( $full ?
|
511 |
+
__( 'Album is full', 'wp-photo-album-plus' ) :
|
512 |
+
__( 'Upload to this album', 'wp-photo-album-plus' ) . ( $a > '0' ? ' ' . sprintf( __( '(max %d)', 'wp-photo-album-plus' ), $a ) : '' )
|
513 |
+
);
|
514 |
+
$result = '
|
515 |
+
<input
|
516 |
+
type="button"
|
517 |
+
class="wppa-admin-button button"
|
518 |
+
onclick="' . $onc . '"
|
519 |
+
value="' . $val .'"
|
520 |
+
/>';
|
521 |
+
}
|
522 |
|
523 |
+
// Goto Import
|
524 |
+
if ( current_user_can( 'wppa_import' ) && ! $full ) {
|
525 |
|
526 |
+
$onc = 'document.location = \''.wppa_dbg_url(get_admin_url()).'admin.php?page=wppa_import_photos&wppa-set-album='.$id.'\'';
|
527 |
+
$val = __( 'Import to this album', 'wp-photo-album-plus' ) . ( $a > '0' ? ' ' . sprintf( __( '(max %d)', 'wp-photo-album-plus' ), $a ) : '' );
|
528 |
+
$result .= '
|
529 |
+
<input
|
530 |
+
type="button"
|
531 |
+
class="wppa-admin-button button"
|
532 |
+
onclick="' . $onc . '"
|
533 |
+
value="' . $val .'"
|
534 |
+
/>';
|
535 |
+
}
|
536 |
|
537 |
+
// Download album
|
538 |
+
if ( wppa_switch( 'allow_download_album' ) && ( ! wppa_switch( 'download_album_is_restricted' ) || wppa_user_is( 'administrator' ) ) ) {
|
|
|
|
|
|
|
|
|
|
|
539 |
|
540 |
+
$result .= '
|
541 |
+
<input
|
542 |
+
type="button"
|
543 |
+
class="wppa-admin-button button"
|
544 |
+
onclick="wppaAjaxDownloadAlbum( 0, ' . $albuminfo['id'] . ' );"
|
545 |
+
value="' . esc_attr( __( 'Download album', 'wp-photo-album-plus' ) ).'"
|
546 |
+
/>
|
547 |
+
<img
|
548 |
+
id="dwnspin-0-' . $albuminfo['id'] . '"
|
549 |
+
src="' . wppa_get_imgdir() . 'spinner.gif"
|
550 |
+
style="margin-left:6px;display:none;height:18px;position:relative;bottom:-6px"
|
551 |
+
alt="spinner"
|
552 |
+
/>' . $br;
|
553 |
}
|
554 |
|
|
|
|
|
|
|
|
|
|
|
|
|
555 |
|
|
|
556 |
|
557 |
+
wppa_echo( $result );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
558 |
|
559 |
+
$result = '
|
560 |
+
<details class="wppa-toplevel-details">
|
561 |
+
<summary class="toplevel wppa-summary-toplevel"> ' .
|
562 |
+
__( 'the gallery settings', 'wp-photo-album-plus' ) . '
|
563 |
+
</summary>';
|
564 |
+
|
565 |
+
$result .=
|
566 |
+
'<p class="description" style="margin:1em">' .
|
567 |
+
__( 'All modifications are instantly updated on the server, except for those that require a button push.', 'wp-photo-album-plus' ) . ' ' .
|
568 |
+
__( 'After entering/modification of text, click outside the textfield to get it updated.', 'wp-photo-album-plus' ) . ' ' .
|
569 |
+
'<br>' . __( 'The <b style="color:#070" >Remark</b> fields keep you informed on the actions taken at the background.', 'wp-photo-album-plus' ) . '
|
570 |
+
</p>
|
571 |
+
<input
|
572 |
+
type="hidden"
|
573 |
+
id="album-nonce-' . $id . '"
|
574 |
+
value="' . wp_create_nonce( 'wppa-nonce_' . $id ) . '"
|
575 |
+
/>';
|
576 |
+
wppa_echo( $result );
|
577 |
|
578 |
+
// The edit albuminfo panel
|
579 |
+
$result = '
|
580 |
+
<div
|
581 |
+
id="albumitem-' . $id . '"
|
582 |
+
class="wppa-table-wrap"
|
583 |
+
style="width:100%;position:relative;"
|
584 |
+
>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
|
586 |
+
// Section 0
|
587 |
+
$result .= '
|
588 |
+
<!-- Album Section 0 static data -->';
|
589 |
+
|
590 |
+
// More or less static data
|
591 |
+
$result .= '<p style="margin:1em">';
|
592 |
+
|
593 |
+
$result .=
|
594 |
+
__( 'Album number:', 'wp-photo-album-plus' ) . ' ' .
|
595 |
+
$id . '. ' .
|
596 |
+
|
597 |
+
__( 'Crypt:', 'wp-photo-album-plus' ) . ' ' .
|
598 |
+
$crypt . '. ' .
|
599 |
+
|
600 |
+
$br .
|
601 |
+
|
602 |
+
__( 'Created:', 'wp-photo-album-plus' ) . ' ' .
|
603 |
+
wppa_local_date( '', $timestamp ) . ' ' . __( 'local time' , 'wp-photo-album-plus' ) . '. ' .
|
|
|
604 |
|
605 |
+
$br .
|
606 |
+
|
607 |
+
__( 'Modified:', 'wp-photo-album-plus' ) . ' ';
|
608 |
+
if ( $modified > $timestamp ) {
|
609 |
+
$result .= wppa_local_date( '', $modified ) . ' ' . __( 'local time' , 'wp-photo-album-plus' ) . '. ' . $br;
|
610 |
+
}
|
611 |
+
else {
|
612 |
+
$result .= __( 'Not modified', 'wp-photo-album-plus' ) . '. ' . $br;
|
613 |
+
}
|
614 |
+
|
615 |
+
// Views
|
616 |
+
if ( wppa_switch( 'track_viewcounts' ) ) {
|
617 |
+
$result .=
|
618 |
+
__( 'Album Views:', 'wp-photo-album-plus' ) . ' ' . $views . ', ' .
|
619 |
+
__( 'Photo views:', 'wp-photo-album-plus' ) . ' ' . $pviews . '. ';
|
620 |
+
if ( $nsub ) {
|
621 |
$result .=
|
622 |
+
__( 'Photo views inc subalbums:', 'wp-photo-album-plus' ) . ' ' . $tpviews . '. ' . $br;
|
623 |
+
}
|
624 |
+
}
|
625 |
+
|
626 |
+
// Clicks
|
627 |
+
if ( wppa_switch( 'track_clickcounts' ) ) {
|
628 |
+
$click_arr = $wpdb->get_col( "SELECT clicks FROM $wpdb->wppa_photos WHERE album = $id" );
|
629 |
+
$result .=
|
630 |
+
__( 'Clicks:', 'wp-photo-album-plus' ) . ' ' . array_sum( $click_arr ) . '. ' . $br;
|
631 |
+
}
|
632 |
+
|
633 |
+
$result .= '</P>';
|
634 |
+
|
635 |
+
$result .= '
|
636 |
+
<!-- Album Section 1 simple settings -->';
|
637 |
+
|
638 |
+
$result .= '<div style="display: flex; flex-flow: row wrap; align-items: flex-start; align-content: space-between; padding: 10px;">';
|
639 |
+
|
640 |
+
// Owner
|
641 |
+
{
|
642 |
+
$result .= '
|
643 |
+
<div style="max-width: 200px;margin-right: 4px;">
|
644 |
+
<label
|
645 |
+
for="albumowner"
|
646 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
647 |
+
__( 'Owned by:', 'wp-photo-album-plus' ) . '
|
648 |
+
</label><br>';
|
649 |
+
|
650 |
+
if ( ! wppa_user_is( 'administrator' ) ) {
|
651 |
+
if ( $owner == '--- public ---' ) {
|
652 |
+
$result .= __( '--- public ---', 'wp-photo-album-plus' );
|
653 |
}
|
654 |
else {
|
655 |
+
$result .= $owner;
|
656 |
+
}
|
657 |
+
}
|
658 |
+
else {
|
659 |
+
if ( wppa_get_user_count() > wppa_opt( 'max_users' ) ) {
|
660 |
$result .= '
|
661 |
+
<input
|
662 |
+
id="albumowner"
|
663 |
+
type="text"
|
664 |
+
value="' . esc_attr( $owner ) . '"
|
665 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'owner\', this )"
|
666 |
+
/>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
667 |
}
|
668 |
+
else {
|
669 |
+
if ( wppa_switch( 'user_upload_on' ) ) {
|
670 |
+
if ( $owner == '--- public ---' ) {
|
671 |
+
$title = __( 'Frontend upload to this album is open to visitors', 'wp-photo-album-plus' );
|
672 |
+
}
|
673 |
+
else {
|
674 |
+
$title = __( 'Frontend upload to this album is open for the owner and the admin', 'wp-photo-album-plus' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
675 |
}
|
676 |
}
|
677 |
+
else {
|
678 |
+
$title = '';
|
679 |
+
}
|
680 |
$result .= '
|
681 |
<select
|
682 |
+
id="albumowner"
|
683 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'owner\', this )"
|
684 |
+
style="max-width:200px;"
|
685 |
title="' . esc_attr( $title ) . '"
|
686 |
+
>' .
|
687 |
+
wppa_get_user_select( $owner ) . '
|
688 |
+
</select>';
|
|
|
|
|
|
|
|
|
689 |
}
|
690 |
+
}
|
691 |
+
$result .= '
|
692 |
+
</div>' . $br;
|
693 |
+
}
|
694 |
|
695 |
+
// Order # -->
|
696 |
+
{
|
697 |
+
$result .= '
|
698 |
+
<div style="max-width: 200px;margin-right: 4px;">
|
699 |
+
<label
|
700 |
+
for="albumseqno"
|
701 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
702 |
+
__( 'Sequence number', 'wp-photo-album-plus' ) . '
|
703 |
+
</label><br>
|
704 |
+
<input
|
705 |
+
id="albumseqno"
|
706 |
+
type="text"
|
707 |
+
style="width:50px;cursor:pointer"
|
708 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'a_order\', this )"
|
709 |
+
value="' . esc_attr( $a_order ) . '"' .
|
710 |
+
( wppa_opt( 'list_albums_by' ) != '1' && $a_order != '0' ? ' title="' . esc_attr( __( 'Album sequence number has only effect if you set the album sort order method to Order # in the Photo Albums -> Settings screen.', 'wp-photo-album-plus' )) . '"' : '' ) . '
|
711 |
+
/> ';
|
712 |
+
$result .= '
|
713 |
+
</div>' . $br;
|
714 |
+
}
|
715 |
+
|
716 |
+
// Status
|
717 |
+
{
|
718 |
+
$title = __( 'Set the frontend visibility of the album cover and items not including subalbums.', 'wp-photo-album-plus' ) . ' ' .
|
719 |
+
__( 'Publish: visible for all, Private: visible for logged in only, Hidden: visible for admin only', 'wp-photo-album-plus' );
|
720 |
+
|
721 |
+
$result .= '
|
722 |
+
<div style="max-width: 200px;margin-right: 4px;">
|
723 |
+
<label
|
724 |
+
for="albumstatus"
|
725 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
726 |
+
__( 'Status', 'wp-photo-album-plus' ) . '
|
727 |
+
</label><br>
|
728 |
+
<select
|
729 |
+
style="max-width:200px;"
|
730 |
+
id="albumstatus"
|
731 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'status\', this )"
|
732 |
+
title="' . esc_attr( $title ) . '" >
|
733 |
+
<option value="publish"' . ( $status == 'publish' ? ' selected' : '' ) . '>' .
|
734 |
+
__( 'Publish', 'wp-photo-album-plus' ) . '
|
735 |
+
</option>
|
736 |
+
<option value="private"' . ( $status == 'private' ? ' selected' : '' ) . '>' .
|
737 |
+
__( 'Private', 'wp-photo-album-plus' ) . '
|
738 |
+
</option>
|
739 |
+
<option value="hidden"' . ( $status == 'hidden' ? ' selected' : '' ) . '>' .
|
740 |
+
__( 'Hidden', 'wp-photo-album-plus' ) . '
|
741 |
+
</option>
|
742 |
+
</select>
|
743 |
+
</div>' . $br;
|
744 |
+
}
|
745 |
+
|
746 |
+
// Parent
|
747 |
+
{
|
748 |
+
$result .= '
|
749 |
+
<div style="max-width: 200px;margin-right: 4px;">
|
750 |
+
<label
|
751 |
+
for="wppa-parsel"
|
752 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
753 |
+
__( 'Parent album', 'wp-photo-album-plus' ) . '
|
754 |
+
</label><br>';
|
755 |
+
if ( wppa_extended_access() ) {
|
756 |
+
$result .=
|
757 |
+
wppa_album_select_a( array( 'checkaccess' => true,
|
758 |
+
'exclude' => $id,
|
759 |
+
'selected' => $a_parent,
|
760 |
+
'addselected' => true,
|
761 |
+
'addnone' => true,
|
762 |
+
'addseparate' => true,
|
763 |
+
'disableancestors' => true,
|
764 |
+
'path' => true,
|
765 |
+
'sort' => true,
|
766 |
+
'tagopen' => '<select' .
|
767 |
+
' id="wppa-parsel"' .
|
768 |
+
' style="max-width:200px;"' .
|
769 |
+
' onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'a_parent\', this )"' .
|
770 |
+
' >',
|
771 |
+
'tagid' => 'wppa-parsel',
|
772 |
+
'tagonchange' => 'wppaAjaxUpdateAlbum( ' . $id . ', \'a_parent\', this )',
|
773 |
+
'tagstyle' => 'font-size:13px;height:20px;cursor:pointer;',
|
774 |
+
)
|
775 |
+
) .
|
776 |
+
'</select>';
|
777 |
+
}
|
778 |
+
else {
|
779 |
+
$result .= '
|
780 |
+
<select
|
781 |
+
id="wppa-parsel"
|
782 |
+
style="max-width:200px;"
|
783 |
+
onchange="wppaAjaxUpdateAlbum( '. $id . ', \'a_parent\', this )"
|
784 |
+
>' .
|
785 |
+
wppa_album_select_a( array( 'checkaccess' => true,
|
786 |
+
'exclude' => $id,
|
787 |
+
'selected' => $a_parent,
|
788 |
+
'addnone' => wppa_can_create_top_album(),
|
789 |
+
'addselected' => true,
|
790 |
+
'disableancestors' => true,
|
791 |
+
'path' => true,
|
792 |
+
'sort' => true,
|
793 |
+
)
|
794 |
+
) .
|
795 |
+
'</select>';
|
796 |
+
}
|
797 |
+
$result .= '
|
798 |
+
</div>' . $br;
|
799 |
+
}
|
800 |
+
|
801 |
+
// P-order-by
|
802 |
+
{
|
803 |
+
if ( ! wppa_switch( 'porder_restricted' ) || wppa_user_is( 'administrator' ) ) {
|
804 |
+
$result .= '
|
805 |
+
<div
|
806 |
+
style="max-width: 200px;margin-right: 4px;">
|
807 |
+
<label
|
808 |
+
for="photo-order"
|
809 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;"
|
810 |
+
>' .
|
811 |
+
|
812 |
+
__( 'Photo order:', 'wp-photo-album-plus' ) . '
|
813 |
+
</label><br>';
|
814 |
+
$options = array( __( '--- default ---', 'wp-photo-album-plus' ),
|
815 |
+
__( 'Order #', 'wp-photo-album-plus' ),
|
816 |
+
__( 'Name', 'wp-photo-album-plus' ),
|
817 |
+
__( 'Random', 'wp-photo-album-plus' ),
|
818 |
+
__( 'Rating mean value', 'wp-photo-album-plus' ),
|
819 |
+
__( 'Number of votes', 'wp-photo-album-plus' ),
|
820 |
+
__( 'Timestamp', 'wp-photo-album-plus' ),
|
821 |
+
__( 'EXIF Date', 'wp-photo-album-plus' ),
|
822 |
+
__( 'Order # desc', 'wp-photo-album-plus' ),
|
823 |
+
__( 'Name desc', 'wp-photo-album-plus' ),
|
824 |
+
__( 'Rating mean value desc', 'wp-photo-album-plus' ),
|
825 |
+
__( 'Number of votes desc', 'wp-photo-album-plus' ),
|
826 |
+
__( 'Timestamp desc', 'wp-photo-album-plus' ),
|
827 |
+
__( 'EXIF Date desc', 'wp-photo-album-plus' )
|
828 |
+
);
|
829 |
+
$values = array( '0',
|
830 |
+
'1',
|
831 |
+
'2',
|
832 |
+
'3',
|
833 |
+
'4',
|
834 |
+
'6',
|
835 |
+
'5',
|
836 |
+
'7',
|
837 |
+
'-1',
|
838 |
+
'-2',
|
839 |
+
'-4',
|
840 |
+
'-6',
|
841 |
+
'-5',
|
842 |
+
'-7'
|
843 |
+
);
|
844 |
+
|
845 |
+
$dflt = '';
|
846 |
+
$df = wppa_opt( 'list_photos_by' );
|
847 |
if ( $df == '0' ) $dflt = __( 'not specified', 'wp-photo-album-plus' );
|
848 |
+
else foreach( array_keys( $values ) as $key ) {
|
849 |
+
if ( $df == $values[$key] ) {
|
850 |
+
$dflt = $options[$key];
|
851 |
}
|
852 |
}
|
853 |
+
$title = sprintf( __( 'The default is set in %s and is currently set to %s', 'wp-photo-album-plus' ), wppa_setting_path( 'b', 'misc', 1, 2 ), $dflt );
|
854 |
|
855 |
+
$result .= '
|
|
|
|
|
|
|
856 |
<select
|
857 |
+
id="photo-order"
|
858 |
+
style="max-width:200px;"
|
859 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'p_order_by\', this )"
|
860 |
title="' . esc_attr( $title ) . '"
|
861 |
>';
|
862 |
+
foreach ( array_keys( $options ) as $key ) {
|
863 |
+
$sel = $values[$key] == $p_order_by ? ' selected' : '';
|
864 |
+
$result .= '<option value="' . $values[$key] . '"' . $sel . '>' . $options[$key] . '</option>';
|
865 |
}
|
866 |
$result .= '
|
867 |
+
</select>
|
868 |
+
</div>';
|
869 |
+
}
|
870 |
+
}
|
871 |
|
872 |
+
// Subalbum order
|
873 |
+
{
|
874 |
+
$sel = ' selected';
|
875 |
+
$opts = array(
|
876 |
+
__( '--- default ---', 'wp-photo-album-plus' ),
|
877 |
+
__( 'Random', 'wp-photo-album-plus' ),
|
878 |
+
__( 'Order #', 'wp-photo-album-plus' ),
|
879 |
+
__( 'Order # reverse', 'wp-photo-album-plus' ),
|
880 |
+
__( 'Name', 'wp-photo-album-plus' ),
|
881 |
+
__( 'Name reverse', 'wp-photo-album-plus' ),
|
882 |
+
__( 'Timestamp', 'wp-photo-album-plus' ),
|
883 |
+
__( 'Timestamp reverse', 'wp-photo-album-plus' ),
|
884 |
+
);
|
885 |
+
$vals = array( '0', '3', '1', '-1', '2', '-2', '5', '-5' );
|
886 |
+
|
887 |
+
$df = wppa_opt( 'list_albums_by' );
|
888 |
+
if ( $df == '0' ) $dflt = __( 'not specified', 'wp-photo-album-plus' );
|
889 |
+
else foreach( array_keys( $vals ) as $key ) {
|
890 |
+
if ( $df == $vals[$key] ) {
|
891 |
+
$dflt = $opts[$key];
|
892 |
+
}
|
893 |
+
}
|
894 |
|
895 |
+
$title = sprintf( __( 'The default is set in %s and is currently set to %s', 'wp-photo-album-plus' ), wppa_setting_path( 'b', 'misc', 1, 1 ), $dflt );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
896 |
|
897 |
+
$result .= '
|
898 |
+
<div
|
899 |
+
style="max-width: 200px;margin-right: 4px;">
|
900 |
+
<label
|
901 |
+
for="subalbumorder"
|
902 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
903 |
+
__( 'Subalbum sort order', 'wp-photo-album-plus' ) . '
|
904 |
+
</label><br>
|
905 |
+
<select
|
906 |
+
id="subalbumorder"
|
907 |
+
style="max-width:200px;"
|
908 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'suba_order_by\', this )"
|
909 |
+
title="' . esc_attr( $title ) . '"
|
910 |
+
>';
|
911 |
+
for ( $i = 0; $i < 7; $i++ ) {
|
912 |
+
$result .= '<option value="' . esc_attr( $vals[$i] ) . '" ' . ( $suba_order_by == $vals[$i] ? $sel : '' ) . ' >' . $opts[$i] . '</option>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
913 |
}
|
914 |
+
$result .= '
|
915 |
+
</select>
|
916 |
+
</div>' . $br;
|
917 |
+
}
|
918 |
|
919 |
+
// Alternative thumbnail size
|
920 |
+
{
|
921 |
+
if ( ! wppa_switch( 'alt_is_restricted' ) || wppa_user_is( 'administrator' ) ) {
|
922 |
+
$title = sprintf( __( 'The alternate thumbnail size is set in %s and is currently set to %s', 'wp-photo-album-plus' ), wppa_setting_path( 'b', 'thumbs', 1, 2 ), wppa_opt( 'thumbsize_alt' ) );
|
923 |
|
924 |
+
$sel = ' selected';
|
925 |
+
$result .= '
|
926 |
+
<div
|
927 |
+
style="max-width: 200px;margin-right: 4px;">
|
928 |
+
<label
|
929 |
+
for="altthumb"
|
930 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
931 |
+
__( 'Use alt thumbsize', 'wp-photo-album-plus' ) . '
|
932 |
+
</label><br>
|
933 |
+
<select
|
934 |
+
id="altthumb"
|
935 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'alt_thumbsize\', this )"
|
936 |
+
title="' . esc_attr( $title ) . '"
|
937 |
+
>
|
938 |
+
<option value="0"' . ( $alt_thumbsize ? '' : $sel ) . ' >' .
|
939 |
+
__( 'no', 'wp-photo-album-plus' ) . '
|
940 |
+
</option>
|
941 |
+
<option value="yes"' . ( $alt_thumbsize ? $sel : '' ) . ' >' .
|
942 |
+
__( 'yes', 'wp-photo-album-plus' ) . '
|
943 |
+
</option>
|
944 |
+
</select>
|
945 |
+
</div>' . $br;
|
946 |
+
}
|
947 |
+
}
|
948 |
+
|
949 |
+
// Cover type
|
950 |
+
{
|
951 |
+
if ( ! wppa_switch( 'covertype_is_restricted' ) || wppa_user_is( 'administrator' ) ) {
|
952 |
+
$sel = ' selected';
|
953 |
+
$title = sprintf( __( 'The default is set in %s and is currently set to %s', 'wp-photo-album-plus' ), wppa_setting_path( 'b', 'covers', 3, 4 ), wppa_opt( 'cover_type' ) );
|
954 |
+
|
955 |
+
$result .= '<div
|
956 |
+
style="max-width: 200px;margin-right: 4px;">
|
957 |
+
<label
|
958 |
+
for="covertype"
|
959 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
960 |
+
__( 'Cover Type', 'wp-photo-album-plus' ) . '
|
961 |
+
</label><br>
|
962 |
+
<select
|
963 |
+
id="covertype"
|
964 |
+
style="max-width:200px;"
|
965 |
+
onchange="wppaAjaxUpdateAlbum( '. $id . ', \'cover_type\', this )"
|
966 |
+
title="' . esc_attr( $title ) . '"
|
967 |
+
>
|
968 |
+
<option value=""' . ( $cover_type == '' ? $sel : '' ) . ' >' .
|
969 |
+
__( '--- default ---', 'wp-photo-album-plus' ) . '
|
970 |
+
</option>
|
971 |
+
<option value="default"' . ( $cover_type == 'default' ? $sel : '' ) . ' >' .
|
972 |
+
__( 'Standard', 'wp-photo-album-plus' ) . '
|
973 |
+
</option>
|
974 |
+
<option value="longdesc"' . ( $cover_type == 'longdesc' ? $sel : '' ) . ' >' .
|
975 |
+
__( 'Long Descriptions', 'wp-photo-album-plus' ) . '
|
976 |
+
</option>
|
977 |
+
<option value="imagefactory"' . ( $cover_type == 'imagefactory' ? $sel : '' ) . ' >' .
|
978 |
+
__( 'Image Factory', 'wp-photo-album-plus' ) . '
|
979 |
+
</option>
|
980 |
+
<option value="default-mcr"' . ( $cover_type == 'default-mcr' ? $sel : '' ) . ' >' .
|
981 |
+
__( 'Standard mcr', 'wp-photo-album-plus' ) . '
|
982 |
+
</option>
|
983 |
+
<option value="longdesc-mcr"' . ( $cover_type == 'longdesc-mcr' ? $sel : '' ) . ' >' .
|
984 |
+
__( 'Long Descriptions mcr', 'wp-photo-album-plus' ) . '
|
985 |
+
</option>
|
986 |
+
<option value="imagefactory-mcr"' . ( $cover_type == 'imagefactory-mcr' ? $sel : '' ) . ' >' .
|
987 |
+
__( 'Image Factory mcr', 'wp-photo-album-plus' ) . '
|
988 |
+
</option>
|
989 |
+
</select></div>';
|
990 |
+
}
|
991 |
+
}
|
992 |
+
|
993 |
+
// Cover photo
|
994 |
+
{
|
995 |
+
$result .= '
|
996 |
+
<div
|
997 |
+
style="max-width: 200px;margin-right: 4px;">
|
998 |
+
<label
|
999 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1000 |
+
__( 'Cover Photo:', 'wp-photo-album-plus' ) . '
|
1001 |
+
</label><br>' .
|
1002 |
+
wppa_main_photo( $main_photo, $cover_type ) . '
|
1003 |
+
</div>' . $br;
|
1004 |
+
}
|
1005 |
+
|
1006 |
+
// Upload limit
|
1007 |
+
{
|
1008 |
+
$result .= '
|
1009 |
+
<div
|
1010 |
+
style="max-width: 200px;margin-right: 4px;">
|
1011 |
+
<label
|
1012 |
+
for="upload_limit_count"
|
1013 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1014 |
+
__( 'Upload limit:', 'wp-photo-album-plus' ) . '
|
1015 |
+
</label><br>';
|
1016 |
+
$lims = explode( '/', $upload_limit );
|
1017 |
+
if ( ! is_array( $lims ) ) {
|
1018 |
+
$lims = array( '0', '0' );
|
1019 |
+
}
|
1020 |
+
if ( wppa_user_is( 'administrator' ) ) {
|
1021 |
+
$sel = ' selected';
|
1022 |
+
$title = __( 'Set the upload limit (0 means unlimited).', 'wp-photo-album-plus' );
|
1023 |
+
$result .= '
|
1024 |
+
<input
|
1025 |
+
type="text"
|
1026 |
+
id="upload_limit_count"
|
1027 |
+
value="' . $lims[0] . '"
|
1028 |
+
style="max-width:50px;"
|
1029 |
+
title="' . esc_attr( $title ) . '"
|
1030 |
+
onchange="wppaRefreshAfter(); wppaAjaxUpdateAlbum( ' . $id . ', \'upload_limit_count\', this )"
|
1031 |
+
/>
|
1032 |
+
<select
|
1033 |
+
style="max-width:150px;vertical-align:baseline"
|
1034 |
+
onchange="wppaRefreshAfter(); wppaAjaxUpdateAlbum( ' . $id . ', \'upload_limit_time\', this )" >
|
1035 |
+
<option value="0"' . ( $lims[1] == '0' ? $sel : '' ) . ' >' . __( 'for ever', 'wp-photo-album-plus' ) . '</option>
|
1036 |
+
<option value="3600"' . ( $lims[1] == '3600' ? $sel : '' ) . ' >' . __( 'per hour', 'wp-photo-album-plus' ) . '</option>
|
1037 |
+
<option value="86400"' . ( $lims[1] == '86400' ? $sel : '' ) . ' >' . __( 'per day', 'wp-photo-album-plus' ) . '</option>
|
1038 |
+
<option value="604800"' . ( $lims[1] == '604800' ? $sel : '' ) . ' >' . __( 'per week', 'wp-photo-album-plus' ) . '</option>
|
1039 |
+
<option value="2592000"' . ( $lims[1] == '2592000' ? $sel : '' ) . ' >' . __( 'per month', 'wp-photo-album-plus' ) . '</option>
|
1040 |
+
<option value="31536000"' . ( $lims[1] == '31536000' ? $sel : '' ) . ' >' . __( 'per year', 'wp-photo-album-plus' ) . '</option>
|
1041 |
+
</select>';
|
1042 |
+
}
|
1043 |
+
else {
|
1044 |
+
if ( $lims[0] == '0' ) {
|
1045 |
+
$result .= __( 'Unlimited', 'wp-photo-album-plus' );
|
1046 |
}
|
1047 |
else {
|
1048 |
+
$result .= $lims[0] . ' ';
|
1049 |
+
switch ( $lims[1] ) {
|
1050 |
+
case '3600': $result .= __( 'per hour', 'wp-photo-album-plus' ); break;
|
1051 |
+
case '86400': $result .= __( 'per day', 'wp-photo-album-plus' ); break;
|
1052 |
+
case '604800': $result .= __( 'per week', 'wp-photo-album-plus' ); break;
|
1053 |
+
case '2592000': $result .= __( 'per month', 'wp-photo-album-plus' ); break;
|
1054 |
+
case '31536000': $result .= __( 'per year', 'wp-photo-album-plus' ); break;
|
1055 |
+
default: $result .= sprintf( 'per %d seconds', $lims[1] );
|
|
|
|
|
|
|
|
|
|
|
1056 |
}
|
|
|
1057 |
}
|
1058 |
+
$result .= '. ';
|
1059 |
+
}
|
1060 |
+
$result .= '
|
1061 |
+
</div>' . $br;
|
1062 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1063 |
|
1064 |
+
// Tree limit
|
1065 |
+
{
|
1066 |
+
$title = __( 'The upload limit for this album and all its (grand)children.', 'wp-photo-album-plus' ) . ' ' .
|
1067 |
+
__( 'This setting overrules all other limits that may apply to this album or its (grand)children.', 'wp-photo-album-plus' ) . ' ' .
|
1068 |
+
__( '0 means no limit.', 'wp-photo-album-plus' );
|
1069 |
+
$result .= '
|
1070 |
+
<div
|
1071 |
+
style="max-width: 200px;margin-right: 4px;">
|
1072 |
+
<label
|
1073 |
+
for="uploadlimittree"
|
1074 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1075 |
+
__( 'Tree upload limit', 'wp-photo-album-plus' ) . '
|
1076 |
+
</label><br>
|
1077 |
+
<input
|
1078 |
+
type="number"
|
1079 |
+
id="uploadlimittree"
|
1080 |
+
min="0"
|
1081 |
+
title="' . esc_attr( $title ) . '"
|
1082 |
+
value="' . $tree_limit . '"
|
1083 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'upload_limit_tree\', this )"
|
1084 |
+
style="cursor:pointer"/>' .
|
1085 |
+
|
1086 |
+
'</div>' . $br;
|
1087 |
+
}
|
1088 |
|
1089 |
+
// Need this the next 5 items
|
1090 |
+
$yes = __( 'yes', 'wp-photo-album-plus' );
|
1091 |
+
$no = __( 'no', 'wp-photo-album-plus' );
|
1092 |
+
$def = __( 'default', 'wp-photo-album-plus' );
|
1093 |
|
1094 |
+
// Zoomable
|
1095 |
+
{
|
1096 |
+
$title = __( 'When set other than default, this setting will overrule the default settings.', 'wp-photo-album-plus' ) . ' ' .
|
1097 |
+
sprintf( __( 'The default is set in %s and is currently %s', 'wp-photo-album-plus' ), wppa_setting_path( 'b', 'photos', 1, 4 ), ( wppa_switch( 'zoom_on' ) ? $yes : $no ) );
|
1098 |
|
1099 |
+
$result .= '
|
1100 |
+
<div
|
1101 |
+
style="max-width: 200px;margin-right: 4px;">
|
1102 |
+
<label
|
1103 |
+
for="zoomable"
|
1104 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1105 |
__( 'Photos are zoomable:', 'wp-photo-album-plus' ) . '
|
1106 |
+
</label><br>
|
1107 |
+
<select
|
1108 |
+
id="zoomable"
|
1109 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'zoomable\', this )"
|
1110 |
+
title="' . esc_attr( $title ) . '" >
|
1111 |
+
<option value=""'.($zoomable==''?' selected': '').'>' . $def . '</option>
|
1112 |
+
<option value="on"'.($zoomable=='on'?' selected': '').'>' . $yes . '</option>
|
1113 |
+
<option value="off"'.($zoomable=='off'?' selected': '').'>' . $no . '</option>
|
1114 |
+
</select>
|
1115 |
+
</div>' . $br;
|
1116 |
+
}
|
|
|
|
|
|
|
|
|
1117 |
|
1118 |
+
// Overrulable display options / next 4 items
|
1119 |
+
if ( $displayopts ) {
|
1120 |
+
$disp_opt = explode( ',', $displayopts );
|
1121 |
+
}
|
1122 |
+
for ( $i = 0; $i < 4; $i++ ) {
|
1123 |
+
if ( ! isset( $disp_opt[$i] ) ) {
|
1124 |
+
$disp_opt[$i] = '0';
|
1125 |
+
}
|
1126 |
+
}
|
1127 |
|
1128 |
+
$title_head = __( 'When set other than default, this setting will overrule the default settings.', 'wp-photo-album-plus' ) . '
' .
|
1129 |
+
__( 'The defaults are set in', 'wp-photo-album-plus' ). ':
';
|
|
|
|
|
|
|
1130 |
|
1131 |
+
// Display name
|
1132 |
+
{
|
1133 |
+
$title = $title_head .
|
1134 |
+
wppa_setting_path( 'b', 'slide', 1, 17, wppa_switch( 'show_full_name' ) ? $yes : $no ) . ',
' .
|
1135 |
+
wppa_setting_path( 'b', 'thumbs', 2, 1, wppa_switch( 'thumb_text_name' ) ? $yes : $no ) . ' ' . __( 'and' , 'wp-photo-album-plus' ) . '
' .
|
1136 |
+
wppa_setting_path( 'b', 'lightbox', 1, 3, wppa_switch( 'ovl_name' ) ? $yes : $no ) . '.';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1137 |
|
1138 |
+
$result .= '
|
1139 |
+
<div
|
1140 |
+
style="max-width: 200px;margin-right: 4px;">
|
1141 |
+
<label
|
1142 |
+
for="showname"
|
1143 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1144 |
+
__( 'Show names:', 'wp-photo-album-plus' ) . '
|
1145 |
+
</label><br>
|
1146 |
+
<select
|
1147 |
+
id="showname"
|
1148 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'displayopt0\', this )"
|
1149 |
+
title="' . esc_attr( $title ) . '">
|
1150 |
+
<option value="0"'.($disp_opt[0]=='0'?' selected': '').'>' . $def . '</option>
|
1151 |
+
<option value="1"'.($disp_opt[0]=='1'?' selected': '').'>' . $yes . '</option>
|
1152 |
+
<option value="-1"'.($disp_opt[0]=='-1'?' selected': '').'>' . $no . '</option>
|
1153 |
+
</select>
|
1154 |
+
</div>' . $br;
|
1155 |
+
}
|
1156 |
|
1157 |
+
// Display description
|
1158 |
+
{
|
1159 |
+
$title = $title_head .
|
1160 |
+
wppa_setting_path( 'b', 'slide', 1, 20, wppa_switch( 'show_full_desc' ) ? $yes : $no ) . ',
' .
|
1161 |
+
wppa_setting_path( 'b', 'thumbs', 2, 3, wppa_switch( 'thumb_text_desc' ) ? $yes : $no ) . ' ' . __( 'and' , 'wp-photo-album-plus' ) . '
' .
|
1162 |
+
wppa_setting_path( 'b', 'lightbox', 1, 4, wppa_switch( 'ovl_desc' ) ? $yes : $no ) . '.';
|
|
|
|
|
|
|
|
|
|
|
|
|
1163 |
|
1164 |
+
$result .= '
|
1165 |
+
<div
|
1166 |
+
style="max-width: 200px;margin-right: 4px;">
|
1167 |
+
<label
|
1168 |
+
for="showdesc"
|
1169 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1170 |
+
__( 'Show descriptions:', 'wp-photo-album-plus' ) . '
|
1171 |
+
</label><br>
|
1172 |
+
<select
|
1173 |
+
id="showdesc"
|
1174 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'displayopt1\', this )"
|
1175 |
+
title="' . esc_attr( $title ) . '" >
|
1176 |
+
<option value="0"'.($disp_opt[1]=='0'?' selected': '').'>' . $def . '</option>
|
1177 |
+
<option value="1"'.($disp_opt[1]=='1'?' selected': '').'>' . $yes . '</option>
|
1178 |
+
<option value="-1"'.($disp_opt[1]=='-1'?' selected': '').'>' . $no . '</option>
|
1179 |
+
</select>
|
1180 |
+
</div>' . $br;
|
1181 |
+
}
|
1182 |
|
1183 |
+
// Display rating
|
1184 |
+
{
|
1185 |
+
$title = $title_head .
|
1186 |
+
wppa_setting_path( 'b', 'general', 1, 5, wppa_switch( 'rating_on' ) ? $yes : $no ) . ',
' .
|
1187 |
+
wppa_setting_path( 'b', 'thumbs', 2, 3, wppa_switch( 'thumb_text_rating' ) ? $yes : $no ) . ' ' . __( 'and' , 'wp-photo-album-plus' ) . '
' .
|
1188 |
+
wppa_setting_path( 'b', 'lightbox', 1, 5, wppa_switch( 'ovl_rating' ) ? $yes : $no ) . '.';
|
1189 |
|
1190 |
+
$result .= '
|
1191 |
+
<div
|
1192 |
+
style="max-width: 200px;margin-right: 4px;">
|
1193 |
+
<label
|
1194 |
+
for="showrating"
|
1195 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1196 |
+
__( 'Show rating:', 'wp-photo-album-plus' ) . '
|
1197 |
+
</label><br>
|
1198 |
+
<select
|
1199 |
+
id="showrating"
|
1200 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'displayopt2\', this )"
|
1201 |
+
title="' . esc_attr( $title ) . '" >
|
1202 |
+
<option value="0"'.($disp_opt[2]=='0'?' selected': '').'>' . $def . '</option>
|
1203 |
+
<option value="1"'.($disp_opt[2]=='1'?' selected': '').'>' . $yes . '</option>
|
1204 |
+
<option value="-1"'.($disp_opt[2]=='-1'?' selected': '').'>' . $no . '</option>
|
1205 |
+
</select>
|
1206 |
+
</div>' . $br;
|
1207 |
+
}
|
1208 |
|
1209 |
+
// Display comments
|
1210 |
+
{
|
1211 |
+
$title = $title_head .
|
1212 |
+
wppa_setting_path( 'b', 'general', 1, 4, wppa_switch( 'show_comments' ) ? $yes : $no ) . ' ' . __( 'and' , 'wp-photo-album-plus' ) . '
' .
|
1213 |
+
wppa_setting_path( 'b', 'thumbs', 2, 4, wppa_switch( 'thumb_text_comcount' ) ? $yes : $no ) . '.';
|
1214 |
+
|
1215 |
+
$result .= '
|
1216 |
+
<div
|
1217 |
+
style="max-width: 200px;margin-right: 4px;">
|
1218 |
+
<label
|
1219 |
+
for="showcomments"
|
1220 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1221 |
+
__( 'Show comments:', 'wp-photo-album-plus' ) . '
|
1222 |
+
</label><br>
|
1223 |
+
<select
|
1224 |
+
id="showcomments"
|
1225 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'displayopt3\', this )"
|
1226 |
+
title="' . esc_attr( $title ) . '" >
|
1227 |
+
<option value="0"'.($disp_opt[3]=='0'?' selected': '').'>' . $def . '</option>
|
1228 |
+
<option value="1"'.($disp_opt[3]=='1'?' selected': '').'>' . $yes . '</option>
|
1229 |
+
<option value="-1"'.($disp_opt[3]=='-1'?' selected': '').'>' . $no . '</option>
|
1230 |
+
</select>
|
1231 |
+
</div>' . $br;
|
1232 |
+
}
|
1233 |
+
|
1234 |
+
// Watermark
|
1235 |
+
{
|
1236 |
+
if ( wppa_switch( 'watermark_on' ) ) {
|
1237 |
+
|
1238 |
+
$result .= '
|
1239 |
+
<div
|
1240 |
+
style="max-width: 200px;margin-right: 4px;">
|
1241 |
+
<label
|
1242 |
+
for="watermarkfile"
|
1243 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1244 |
__( 'Watermark file:', 'wp-photo-album-plus' ) . '
|
1245 |
+
</label><br>
|
1246 |
+
<select
|
1247 |
+
id="watermarkfile"
|
1248 |
+
style="max-width:200px"
|
1249 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'wmfile\', this )" >' .
|
1250 |
+
wppa_watermark_file_select( 'album', $id ) . '
|
1251 |
+
</select>
|
1252 |
+
</div>' . $br . '
|
1253 |
+
<div
|
1254 |
+
style="max-width: 200px;margin-right: 4px;">
|
1255 |
+
<label
|
1256 |
+
for="watermarkpos"
|
1257 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1258 |
__( 'Watermark pos:', 'wp-photo-album-plus' ) . '
|
1259 |
+
</label><br>
|
1260 |
+
<select
|
1261 |
+
id="watermarkpos"
|
1262 |
+
style="max-width:200px"
|
1263 |
+
onchange="wppaAjaxUpdateAlbum( ' . $id . ', \'wmpos\', this )" >' .
|
1264 |
+
wppa_watermark_pos_select( 'album', $id ) . '
|
1265 |
+
</select>
|
1266 |
+
</div>' . $br;
|
1267 |
+
}
|
1268 |
+
}
|
1269 |
|
1270 |
+
// Schedule for delete
|
1271 |
+
{
|
1272 |
+
if ( wppa_user_is( 'administrator' ) || $owner == wppa_get_user() ) {
|
1273 |
+
$may_change = wppa_user_is( 'administrator' ) || current_user_can( 'wppa_moderate' );
|
1274 |
+
|
1275 |
+
$result .= '
|
1276 |
+
<div
|
1277 |
+
style="max-width: 500px;margin-right: 4px;">
|
1278 |
+
<label
|
1279 |
+
for="scheduledel"
|
1280 |
+
style="font-size:0.8em;font-weight: 600;margin-bottom: 10px;">' .
|
1281 |
+
__( 'Delete at', 'wp-photo-album-plus' ) . '
|
1282 |
+
</label><br>
|
1283 |
+
<input
|
1284 |
+
type="checkbox"
|
1285 |
+
id="scheduledel"' .
|
1286 |
+
( $scheduledel ? ' checked="checked"' : '' ) .
|
1287 |
+
( $may_change ? '' : ' disabled' ) . '
|
1288 |
+
onchange="wppaChangeScheduleDelAlbum( ' . $id . ', this );"
|
1289 |
+
/>
|
1290 |
+
<input type="hidden" value="" id="wppa-dummy-del" />
|
1291 |
+
<span
|
1292 |
+
class="wppa-datetimedel-' . $id . '"' .
|
1293 |
+
( $albuminfo['scheduledel'] ? '' : ' style="display:none"' ) . '
|
1294 |
+
>' .
|
1295 |
+
wppa_get_date_time_select_html( 'delalbum', $id, $may_change ) . '
|
1296 |
+
</span>
|
1297 |
+
</div>' . $br;
|
1298 |
+
}
|
1299 |
+
}
|
1300 |
+
|
1301 |
+
$result .= '</div><div>';
|
1302 |
+
|
1303 |
+
// Status
|
1304 |
+
{
|
1305 |
+
$result .= '<h3 style="margin-left:1em">' .
|
1306 |
+
esc_html__( 'Remark', 'wp-photo-album-plus' ) . ':
|
1307 |
+
<span
|
1308 |
+
id="albumstatus-' . $id . '"
|
1309 |
+
style="font-weight:bold;color:#00AA00">' .
|
1310 |
+
esc_html( $remark ) . '
|
1311 |
+
</span></h3>';
|
1312 |
+
}
|
1313 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1314 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1315 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1316 |
|
1317 |
|
|
|
|
|
|
|
|
|
|
|
1318 |
wppa_echo( $result );
|
1319 |
+
|
1320 |
+
|
1321 |
+
|
1322 |
+
|
1323 |
// Section 2
|
1324 |
$result = '
|
1325 |
<!-- Album Section 2 -->
|
1371 |
$result = '
|
1372 |
<input
|
1373 |
type="button"
|
1374 |
+
class="button button-secundary"
|
1375 |
value="' . esc_attr( __( 'Update Album description', 'wp-photo-album-plus' ) ) . '"
|
1376 |
onclick="wppaAjaxUpdateAlbum( ' . $id . ', \'description\', wppaGetTinyMceContent(\'wppaalbumdesc\') )"
|
1377 |
/>
|
1646 |
$result .= '
|
1647 |
</tbody>
|
1648 |
</table>';
|
1649 |
+
|
1650 |
+
|
1651 |
wppa_echo( $result );
|
1652 |
+
|
|
|
1653 |
// Section 3, Actions
|
1654 |
$result = '
|
1655 |
<!-- Album Section 3 -->
|
1660 |
<tr>
|
1661 |
<td>';
|
1662 |
|
1663 |
+
|
1664 |
+
|
1665 |
+
|
1666 |
+
|
1667 |
+
|
1668 |
+
|
1669 |
+
|
1670 |
+
|
1671 |
$result .= '
|
1672 |
+
</td>
|
1673 |
+
</tr>
|
1674 |
+
</tbody>
|
1675 |
+
</table>';
|
1676 |
+
|
1677 |
+
$result .= '</details>'; //<div>';
|
1678 |
+
wppa_echo( $result );
|
1679 |
+
|
1680 |
+
|
1681 |
+
|
1682 |
+
|
1683 |
+
wppa_echo( '
|
1684 |
+
<details class="wppa-toplevel-details">
|
1685 |
+
<summary class="toplevel wppa-summary-toplevel"> '.
|
1686 |
+
__( 'related album options', 'wp-photo-album-plus' ) . '
|
1687 |
+
</summary>
|
1688 |
+
<div class="wppa-table-wrap">' );
|
1689 |
+
|
1690 |
+
wppa_echo( '<p style="margin:1em">' . __( 'The following buttons perform actions on albums related to this album', 'wp-photo-album-plus' ) . '</p>' );
|
1691 |
+
|
1692 |
+
// Create subalbum
|
1693 |
+
if ( wppa_can_create_album() ) {
|
1694 |
+
$url = get_admin_url() . 'admin.php?page=wppa_admin_menu&tab=edit&edit-id=new&parent_id=' . $albuminfo['id'] . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' );
|
1695 |
+
$onc = 'if (confirm(\''.__( 'Are you sure you want to create a subalbum?', 'wp-photo-album-plus' ).'\')) document.location=\''.$url.'\';';
|
1696 |
+
|
1697 |
+
$result = '
|
1698 |
+
<input
|
1699 |
+
type="button"
|
1700 |
+
class="wppa-admin-button button"
|
1701 |
+
onclick="' . $onc . '"
|
1702 |
+
value="' . esc_attr( __( 'Create child', 'wp-photo-album-plus' ) ) . '"
|
1703 |
+
/>';
|
1704 |
+
}
|
1705 |
+
|
1706 |
+
// Create sibling
|
1707 |
+
if ( $albuminfo['a_parent'] > '0' && wppa_can_create_album() ||
|
1708 |
+
$albuminfo['a_parent'] < '1' && wppa_can_create_top_album() ) {
|
1709 |
+
$url = wppa_dbg_url( get_admin_url() .
|
1710 |
+
'admin.php' .
|
1711 |
+
'?page=wppa_admin_menu' .
|
1712 |
+
'&tab=edit' .
|
1713 |
+
'&edit-id=new' .
|
1714 |
+
'&parent_id=' . $albuminfo['a_parent'] .
|
1715 |
+
'&is-sibling-of=' . $albuminfo['id'] .
|
1716 |
+
'&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) );
|
1717 |
+
$onc = 'if (confirm(\''.__( 'Are you sure you want to create a subalbum?', 'wp-photo-album-plus' ).'\')) document.location=\''.$url.'\';';
|
1718 |
+
|
1719 |
+
$result .= '
|
1720 |
+
<input
|
1721 |
+
type="button"
|
1722 |
+
class="wppa-admin-button button"
|
1723 |
+
onclick="' . $onc . '"
|
1724 |
+
value="' . esc_attr( __( 'Create sibling', 'wp-photo-album-plus' ) ) . '"
|
1725 |
+
/>';
|
1726 |
+
}
|
1727 |
+
|
1728 |
+
// Edit parent
|
1729 |
+
if ( $albuminfo['a_parent'] > '0' && wppa_album_exists( $albuminfo['a_parent'] ) && wppa_have_access( $albuminfo['a_parent'] ) ) {
|
1730 |
+
$url = wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&tab=edit&edit-id=' . $albuminfo['a_parent'] . '&wppa-nonce=' . wp_create_nonce( 'wppa-nonce' ) );
|
1731 |
+
$onc = 'document.location=\''.$url.'\';';
|
1732 |
+
$result .= '
|
1733 |
+
<input
|
1734 |
+
type="button"
|
1735 |
+
class="wppa-admin-button button"
|
1736 |
+
onclick="' . $onc . '"
|
1737 |
+
value="' . esc_attr( __( 'Edit parent', 'wp-photo-album-plus' ) ) . '"
|
1738 |
+
/>' . $br;
|
1739 |
+
}
|
1740 |
+
|
1741 |
+
// Inherit cats
|
1742 |
+
$has_children = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->wppa_albums WHERE a_parent = %d", $id ) );
|
1743 |
+
if ( $has_children ) {
|
1744 |
+
$result .= '
|
1745 |
+
<input
|
1746 |
+
type="button"
|
1747 |
+
class="wppa-admin-button button"
|
1748 |
+
title="' . esc_attr( __( 'Apply categories to all (grand)children.', 'wp-photo-album-plus' ) ) . '"
|
1749 |
+
onclick="wppaTryInheritCats( ' . $id . ' )"
|
1750 |
+
value="' . esc_attr( __( 'Apply Cats to subalbums', 'wp-photo-album-plus' ) ) . '"
|
1751 |
+
/>' . $br . '
|
1752 |
+
<input
|
1753 |
+
type="button"
|
1754 |
+
class="wppa-admin-button button"
|
1755 |
+
title="' . esc_attr( __( 'Add categories to all (grand)children.', 'wp-photo-album-plus' ) ) . '"
|
1756 |
+
onclick="wppaTryAddCats( ' . $id . ' )"
|
1757 |
+
value="' . esc_attr( __( 'Add Cats to subalbums', 'wp-photo-album-plus' ) ) . '"
|
1758 |
+
/>' . $br;
|
1759 |
+
}
|
1760 |
+
|
1761 |
+
wppa_echo( $result );
|
1762 |
+
|
1763 |
+
// Subalbums sequence
|
1764 |
+
if ( $has_children ) {
|
1765 |
+
wppa_album_sequence( $edit_id );
|
1766 |
+
}
|
1767 |
+
|
1768 |
+
wppa_echo( '</div></details>' );
|
1769 |
+
|
1770 |
+
wppa_echo( '
|
1771 |
+
<details class="wppa-toplevel-details">
|
1772 |
+
<summary class="toplevel wppa-summary-toplevel">
|
1773 |
+
all item actions
|
1774 |
+
</summary>
|
1775 |
+
<div class="wppa-table-wrap">' );
|
1776 |
+
|
1777 |
+
wppa_echo( '<p style="margin:1em">' . __( 'The following buttons perform actions onto all items in this album', 'wp-photo-album-plus' ) . '</p>' );
|
1778 |
+
|
1779 |
|
1780 |
// Apply default tags
|
1781 |
+
$result = '
|
1782 |
<input
|
1783 |
type="button"
|
1784 |
+
class="wppa-admin-button button"
|
1785 |
title="' . esc_attr( __( 'Tag all photos in this album with the default tags.', 'wp-photo-album-plus' ) ) . '"
|
1786 |
onclick="wppaTryApplyDeftags( ' . $id . ' )"
|
1787 |
value="' . esc_attr( __( 'Apply default tags', 'wp-photo-album-plus' ) ) . '"
|
1788 |
/>' . $br . '
|
1789 |
<input
|
1790 |
type="button"
|
1791 |
+
class="wppa-admin-button button"
|
1792 |
title="' . esc_attr( __( 'Add the default tags to all photos in this album.', 'wp-photo-album-plus' ) ) . '"
|
1793 |
onclick="wppaTryAddDeftags( ' . $id . ' )"
|
1794 |
value="' . esc_attr( __( 'Add default tags', 'wp-photo-album-plus' ) ) . '"
|
1798 |
$result .= '
|
1799 |
<input
|
1800 |
type="button"
|
1801 |
+
class="wppa-admin-button button"
|
1802 |
title="' . esc_attr( __( 'Schedule all photos in this album for later publishing.', 'wp-photo-album-plus' ) ) . '"
|
1803 |
onclick="wppaTryScheduleAll( ' . $id . ' )"
|
1804 |
value="' . esc_attr( __( 'Schedule all', 'wp-photo-album-plus' ) ) . '"
|
1810 |
$result .= '
|
1811 |
<input
|
1812 |
type="button"
|
1813 |
+
class="wppa-admin-button button"
|
1814 |
onclick="' . $onc . '"
|
1815 |
value="' . esc_attr( __( 'Reset ratings', 'wp-photo-album-plus' ) ) . '"
|
1816 |
/>' . $br;
|
1822 |
$result .= '
|
1823 |
<input
|
1824 |
type="button"
|
1825 |
+
class="wppa-admin-button button"
|
1826 |
onclick="' . $onc . '"
|
1827 |
value="' . esc_attr( __( 'Apply new photo desc', 'wp-photo-album-plus' ) ) . '"
|
1828 |
/>' . $br;
|
1834 |
$result .= '
|
1835 |
<input
|
1836 |
type="button"
|
1837 |
+
class="wppa-admin-button button"
|
1838 |
onclick="' . $onc . '"
|
1839 |
value="' . esc_attr( __( 'Remake all', 'wp-photo-album-plus' ) ) . '"
|
1840 |
/>' . $br;
|
1841 |
}
|
1842 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1843 |
|
1844 |
// Set all to pano
|
1845 |
if ( wppa_switch( 'enable_panorama' ) ) {
|
1847 |
$result .= '
|
1848 |
<input
|
1849 |
type="button"
|
1850 |
+
class="wppa-admin-button button"
|
1851 |
onclick="wppaTrySetAllPanorama(' . $albuminfo['id'] . ')"
|
1852 |
value="' . esc_attr( __( 'Set all to panorama', 'wp-photo-album-plus' ) ).':"
|
1853 |
/>
|
1854 |
|
1855 |
+
<select id="pano-opt"
|
1856 |
+
style="margin-top:6px;">
|
1857 |
<option value="9" disabled selected>' . __( 'Select a mode', 'wp-photo-album-plus' ) . '</option>
|
1858 |
<option value="0">' . __( '- none -', 'wp-photo-album-plus' ) . '</option>
|
1859 |
<option value="1">' . __( '360° Spheric', 'wp-photo-album-plus' ) . '</option>
|
1861 |
</select>' . $br;
|
1862 |
}
|
1863 |
|
1864 |
+
wppa_echo( $result );
|
1865 |
+
|
1866 |
+
|
1867 |
+
wppa_echo( '</div></details>' );
|
1868 |
+
|
|
|
|
|
1869 |
|
|
|
|
|
1870 |
|
|
|
|
|
1871 |
|
1872 |
// Manage photos section
|
1873 |
+
|
1874 |
+
wppa_echo( '
|
1875 |
+
<details class="wppa-toplevel-details">
|
1876 |
+
<summary class="toplevel wppa-summary-toplevel"> ' .
|
1877 |
+
__( 'the photo details', 'wp-photo-album-plus' ) . '
|
1878 |
+
</summary>
|
1879 |
+
<div class="wppa-table-wrap">' );
|
1880 |
+
/*
|
1881 |
+
wppa_echo( '<h3>' );
|
1882 |
+
|
1883 |
if ( wppa_get( 'bulk' ) )
|
1884 |
+
$result = __( 'Copy / move / delete / edit name / edit description / change status', 'wp-photo-album-plus' );
|
1885 |
elseif ( wppa_get( 'seq' ) )
|
1886 |
+
$result = __( 'Change sequence order by drag and drop', 'wp-photo-album-plus' );
|
1887 |
elseif ( wppa_get( 'quick' ) )
|
1888 |
+
$result = __( 'Edit photo information except copy and move', 'wp-photo-album-plus' );
|
1889 |
else
|
1890 |
+
$result = __( 'Edit photo information', 'wp-photo-album-plus' );
|
1891 |
$result .= '
|
1892 |
+
|
1893 |
+
</h3><div style="clear:both"></div>';
|
1894 |
+
// wppa_echo( $result );
|
1895 |
+
*/
|
1896 |
|
1897 |
if ( wppa_get( 'bulk' ) )
|
1898 |
wppa_album_photos_bulk( $edit_id );
|
1901 |
else
|
1902 |
wppa_album_photos( $edit_id );
|
1903 |
|
1904 |
+
wppa_echo( '</div></details>' );
|
1905 |
+
|
1906 |
$result = '
|
1907 |
<br>
|
1908 |
<a href="' . $back_url . '" >' .
|
1998 |
/>
|
1999 |
<input
|
2000 |
type="button"
|
2001 |
+
class="button button-primary"
|
2002 |
value="' . __( 'Cancel', 'wp-photo-album-plus' ) . '"
|
2003 |
onclick="parent.history.back()"
|
2004 |
/>
|
2005 |
<input
|
2006 |
type="submit"
|
2007 |
+
class="button button-primary"
|
2008 |
style="color: red"
|
2009 |
name="wppa-del-confirm"
|
2010 |
value="' . __( 'Delete', 'wp-photo-album-plus' ) . '"
|
2076 |
$result .= '
|
2077 |
<input
|
2078 |
type="button"
|
2079 |
+
class="button button-secundary"
|
2080 |
onclick="document.location=\'' . wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&switchto=collapsible' ) . '\'"
|
2081 |
value="' . esc_attr__( 'Switch to Collapsable table', 'wp-photo-album-plus' ) . '"
|
2082 |
/>';
|
2085 |
$result .= '
|
2086 |
<input
|
2087 |
type="button"
|
2088 |
+
class="button button-secundary"
|
2089 |
onclick="document.location=\'' . wppa_dbg_url( get_admin_url() . 'admin.php?page=wppa_admin_menu&switchto=flat ' ) . '\'"
|
2090 |
value="' . esc_attr__( 'Switch to Flat table', 'wp-photo-album-plus' ) . '"
|
2091 |
/>';
|
2096 |
$result .= '
|
2097 |
<input
|
2098 |
type="button"
|
2099 |
+
class="button button-secundary"
|
2100 |
id="wppa-open-all"
|
2101 |
style="display:inline"
|
2102 |
onclick=" jQuery(\'#wppa-close-all\').css(\'display\',\'inline\');
|
2109 |
/>
|
2110 |
<input
|
2111 |
type="button"
|
2112 |
+
class="button button-secundary"
|
2113 |
id="wppa-close-all"
|
2114 |
style="display:inline"
|
2115 |
onclick=" jQuery(\'#wppa-open-all\').css(\'display\',\'inline\');
|
2154 |
<select
|
2155 |
id="wppa-edit-albid"
|
2156 |
title="' . __( 'Select the number of the album you want to edit', 'wp-photo-album-plus' ) . '"
|
2157 |
+
style="width:120px;cursor:pointer;vertical-align:baseline"
|
2158 |
/>
|
2159 |
<option value="" selected disabled>' . __( 'Album id', 'wp-photo-album-plus' ) . '</option>';
|
2160 |
foreach( $albids as $alb ) {
|
2164 |
</select>
|
2165 |
<input
|
2166 |
type="button"
|
2167 |
+
class="button button-secundary"
|
2168 |
value="' . __( 'Edit album', 'wp-photo-album-plus' ) . '"
|
2169 |
onclick="wppaGoEditAlbNo();"
|
2170 |
/>
|
2175 |
$opts = $wpdb->get_col( "SELECT slug FROM $wpdb->wppa_index WHERE albums <> '' ORDER BY slug" );
|
2176 |
$f = wppa_get( 'filter' );
|
2177 |
$result .= '
|
2178 |
+
<p style="float:right;">
|
2179 |
<select
|
2180 |
id="wppa-edit-filter"
|
2181 |
+
title="' . __( 'Select an album search word', 'wp-photo-album-plus' ) . '"
|
2182 |
+
style="vertical-align:baseline">
|
2183 |
<option value="" selected disabled>' . __( 'Filter by', 'wp-photo-album-plus' ) . '</option>';
|
2184 |
foreach( $opts as $opt ) {
|
2185 |
$result .= '<option value="' . $opt . '"' . ( $f == $opt ? ' selected ' : '' ) . '>' . $opt . '</option>';
|
2188 |
'</select>
|
2189 |
<input
|
2190 |
type="button"
|
2191 |
+
class="button button-secundary"
|
2192 |
onclick="wppaGoApplyFilter();"
|
2193 |
value="' . __( 'Apply filter', 'wp-photo-album-plus' ) . '"
|
2194 |
/>
|
3304 |
|
3305 |
$output .= '
|
3306 |
<select
|
3307 |
+
style="max-width:200px;"
|
3308 |
name="wppa-main" onchange="wppaAjaxUpdateAlbum('.$a_id.', \'main_photo\', this)"
|
3309 |
title="' . esc_attr( $title ) . '"
|
3310 |
>';
|
wppa-edit-tags.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-edit-tags.php
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
-
* Version 8.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -91,7 +91,7 @@ function _wppa_edit_tags() {
|
|
91 |
<input
|
92 |
id="wppa_edit_tag_button"
|
93 |
type="button"
|
94 |
-
class="button-secundary"
|
95 |
style="float:left;border-radius:3px;font-size:11px;height:18px;margin 0 4px;padding: 0 6px"
|
96 |
value="' . esc_attr( $label ) . '"
|
97 |
onclick="' . $onclick . '"
|
2 |
/* wppa-edit-tags.php
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
+
* Version 8.2.02.005
|
6 |
*
|
7 |
*/
|
8 |
|
91 |
<input
|
92 |
id="wppa_edit_tag_button"
|
93 |
type="button"
|
94 |
+
class="button button-secundary"
|
95 |
style="float:left;border-radius:3px;font-size:11px;height:18px;margin 0 4px;padding: 0 6px"
|
96 |
value="' . esc_attr( $label ) . '"
|
97 |
onclick="' . $onclick . '"
|
wppa-import.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the import pages and functions
|
6 |
-
* Version 8.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -276,7 +276,7 @@ global $wppa_session;
|
|
276 |
<input
|
277 |
id="wppa-import-set-source"
|
278 |
type="submit"
|
279 |
-
class="button-secundary"
|
280 |
name="wppa-import-set-source"
|
281 |
style="display:none;"
|
282 |
/>
|
@@ -301,7 +301,7 @@ global $wppa_session;
|
|
301 |
<input
|
302 |
id="wppa-import-set-source-dir"
|
303 |
type="submit"
|
304 |
-
class="button-secundary"
|
305 |
name="wppa-import-set-source-dir"
|
306 |
style="display:none;"
|
307 |
/>
|
@@ -348,7 +348,7 @@ global $wppa_session;
|
|
348 |
id="wppa-import-set-source-url"
|
349 |
type="submit"
|
350 |
onclick="jQuery( \'#rem-rem\' ).css( \'display\',\'inline\' ); return true;"
|
351 |
-
class="button-secundary"
|
352 |
name="wppa-import-set-source-url"
|
353 |
style="display:none;"
|
354 |
/>
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains all the import pages and functions
|
6 |
+
* Version 8.2.02.005
|
7 |
*
|
8 |
*/
|
9 |
|
276 |
<input
|
277 |
id="wppa-import-set-source"
|
278 |
type="submit"
|
279 |
+
class="button button-secundary"
|
280 |
name="wppa-import-set-source"
|
281 |
style="display:none;"
|
282 |
/>
|
301 |
<input
|
302 |
id="wppa-import-set-source-dir"
|
303 |
type="submit"
|
304 |
+
class="button button-secundary"
|
305 |
name="wppa-import-set-source-dir"
|
306 |
style="display:none;"
|
307 |
/>
|
348 |
id="wppa-import-set-source-url"
|
349 |
type="submit"
|
350 |
onclick="jQuery( \'#rem-rem\' ).css( \'display\',\'inline\' ); return true;"
|
351 |
+
class="button button-secundary"
|
352 |
name="wppa-import-set-source-url"
|
353 |
style="display:none;"
|
354 |
/>
|
wppa-lasten-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the last uploaded photos
|
6 |
-
* Version 8.2.
|
7 |
*/
|
8 |
|
9 |
class LasTenWidget extends WP_Widget {
|
@@ -280,7 +280,7 @@ class LasTenWidget extends WP_Widget {
|
|
280 |
$result = '
|
281 |
<p>' .
|
282 |
__( 'You can set the sizes in this widget in the <b>Photo Albums -> Settings</b> admin page.', 'wp-photo-album-plus' ) .
|
283 |
-
' ' .
|
284 |
</p>';
|
285 |
wppa_echo( strip_tags( wp_check_invalid_utf8( $result), ["<br>", "<a>", "<i>", "<b>", "<p>"] ) );
|
286 |
}
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the last uploaded photos
|
6 |
+
* Version 8.2.02.005
|
7 |
*/
|
8 |
|
9 |
class LasTenWidget extends WP_Widget {
|
280 |
$result = '
|
281 |
<p>' .
|
282 |
__( 'You can set the sizes in this widget in the <b>Photo Albums -> Settings</b> admin page.', 'wp-photo-album-plus' ) .
|
283 |
+
' ' . wppa_setting_path( 'b', 'widget', '1', ['8', '9'] ) . '
|
284 |
</p>';
|
285 |
wppa_echo( strip_tags( wp_check_invalid_utf8( $result), ["<br>", "<a>", "<i>", "<b>", "<p>"] ) );
|
286 |
}
|
wppa-maintenance.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains (not yet, but in the future maybe) all the maintenance routines
|
6 |
-
* Version 8.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -1691,7 +1691,7 @@ function wppa_log_page() {
|
|
1691 |
<img id="icon-album" src="' . esc_url( WPPA_URL . '/img/page_green.png' ) . '" />
|
1692 |
<h1 style="display:inline">' . htmlspecialchars( __('WP Photo Album Plus Logfile', 'wp-photo-album-plus' ) ) . '
|
1693 |
<input
|
1694 |
-
class="button-secundary"
|
1695 |
style="float:right; border-radius:3px; font-size: 16px; height: 28px; padding: 0 4px;"
|
1696 |
value="Purge logfile"
|
1697 |
onclick="wppaAjaxUpdateOptionValue(\'errorlog_purge\', 0);jQuery(\'#wppa-maintenance-list\').fadeOut(2000);"
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* Contains (not yet, but in the future maybe) all the maintenance routines
|
6 |
+
* Version 8.2.02.005
|
7 |
*
|
8 |
*/
|
9 |
|
1691 |
<img id="icon-album" src="' . esc_url( WPPA_URL . '/img/page_green.png' ) . '" />
|
1692 |
<h1 style="display:inline">' . htmlspecialchars( __('WP Photo Album Plus Logfile', 'wp-photo-album-plus' ) ) . '
|
1693 |
<input
|
1694 |
+
class="button button-secundary"
|
1695 |
style="float:right; border-radius:3px; font-size: 16px; height: 28px; padding: 0 4px;"
|
1696 |
value="Purge logfile"
|
1697 |
onclick="wppaAjaxUpdateOptionValue(\'errorlog_purge\', 0);jQuery(\'#wppa-maintenance-list\').fadeOut(2000);"
|
wppa-photo-admin-autosave.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* edit and delete photos
|
6 |
-
* Version 8.2.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -192,7 +192,7 @@ global $wpdb;
|
|
192 |
|
193 |
// If i am admin, i can edit all photos here, sorted by timestamp desc
|
194 |
if ( wppa_user_is( 'administrator' ) ) {
|
195 |
-
wppa_echo( '<
|
196 |
|
197 |
$photos = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
198 |
ORDER BY timestamp DESC
|
@@ -241,12 +241,12 @@ global $wpdb;
|
|
241 |
|
242 |
// Search
|
243 |
if ( wppa_get( 'searchstring' ) ) {
|
244 |
-
wppa_echo( '<
|
245 |
}
|
246 |
|
247 |
// Album
|
248 |
else {
|
249 |
-
wppa_echo( '<
|
250 |
}
|
251 |
}
|
252 |
|
@@ -552,9 +552,9 @@ function wppaToggleExif( id, count ) {
|
|
552 |
|
553 |
// Album for moderate
|
554 |
if ( $modalbum != $album && $album && ! wppa_get( 'just-edit' ) && wppa_get( 'edit-id' ) != 'trash' ) {
|
555 |
-
wppa_echo( '<
|
556 |
'<i>' . sanitize_text_field( wppa_get_album_name( $album ) ) . '</i>',
|
557 |
-
'<i>' . sanitize_user( wppa_get_album_item( $album, 'owner' ) ) . '</i>' ) . '</
|
558 |
$modalbum = $album;
|
559 |
}
|
560 |
|
@@ -1460,14 +1460,21 @@ function wppaToggleExif( id, count ) {
|
|
1460 |
// Section 3a ImageMagick editing commands
|
1461 |
if ( wppa_can_admin_magick( $id ) && ! $quick ) {
|
1462 |
|
1463 |
-
wppa_echo( '
|
|
|
|
|
|
|
|
|
|
|
|
|
1464 |
<table
|
1465 |
class="wppa-table wppa-photo-table"
|
|
|
1466 |
>
|
1467 |
<tbody>
|
1468 |
<tr>
|
1469 |
<td>' .
|
1470 |
-
__( '
|
1471 |
__( 'A new thumbnail image will be created from the display file.', 'wp-photo-album-plus' ) . '
|
1472 |
</td>
|
1473 |
</tr>
|
@@ -1789,6 +1796,8 @@ function wppaToggleExif( id, count ) {
|
|
1789 |
/>' );
|
1790 |
|
1791 |
$the_js = '
|
|
|
|
|
1792 |
window.addEventListener("DOMContentLoaded", function () {
|
1793 |
|
1794 |
/* Responive does not always works correcly, */
|
@@ -1824,7 +1833,9 @@ function wppaToggleExif( id, count ) {
|
|
1824 |
</td>
|
1825 |
</tr>
|
1826 |
</tbody>
|
1827 |
-
</table>
|
|
|
|
|
1828 |
}
|
1829 |
|
1830 |
// Reset switch
|
@@ -1886,7 +1897,7 @@ function wppaToggleExif( id, count ) {
|
|
1886 |
<input
|
1887 |
type="button"
|
1888 |
style="clear:left"
|
1889 |
-
class="button-secundary"
|
1890 |
value="' . esc_attr( __( 'Update Photo description', 'wp-photo-album-plus' ) ) . '"
|
1891 |
onclick="wppaAjaxUpdatePhoto( ' . $id . ', \'description\', wppaGetTinyMceContent(\'wppaphotodesc' . $alfaid . '\') )"
|
1892 |
/>
|
@@ -2241,7 +2252,7 @@ function wppaToggleExif( id, count ) {
|
|
2241 |
<table><tbody><tr><td><input
|
2242 |
type="button"
|
2243 |
id="wppa-iptc-button-' . $id . '"
|
2244 |
-
class="button-secundary"
|
2245 |
value="' . esc_attr( sprintf( __( 'Show %d IPTC items', 'wp-photo-album-plus' ), count( $iptcs ) ) ) . '"
|
2246 |
onclick="wppaToggleIptc( ' . $id . ', ' . count( $iptcs ) . ' )"
|
2247 |
/></td></tr></tbody></table>
|
@@ -2293,7 +2304,7 @@ function wppaToggleExif( id, count ) {
|
|
2293 |
<table><tbody><tr><td><input
|
2294 |
type="button"
|
2295 |
id="wppa-exif-button-' . $id . '"
|
2296 |
-
class="button-secundary"
|
2297 |
value="' . esc_attr( sprintf( __( 'Show %d EXIF items', 'wp-photo-album-plus' ), count( $exifs ) ) ) . '"
|
2298 |
onclick="wppaToggleExif( ' . $id . ', ' . count( $exifs ) . ' )"
|
2299 |
/></td></tr></tbody></table>
|
@@ -2680,7 +2691,7 @@ function wppaTryMove( id, video ) {
|
|
2680 |
$result = '
|
2681 |
<form action="' . $link . '&wppa-page=' . $page . '#manage-photos" method="post">' .
|
2682 |
wp_nonce_field( 'wppa-bulk', 'wppa-bulk' ) . '
|
2683 |
-
<
|
2684 |
<span style="font-weight:bold">' . __( 'Bulk action:', 'wp-photo-album-plus' ) . '</span>
|
2685 |
<select id="wppa-bulk-action" name="wppa-bulk-action" onchange="wppaBulkActionChange( this, \'bulk-album\' )">
|
2686 |
<option value=""></option>';
|
@@ -2795,7 +2806,7 @@ function wppaTryMove( id, video ) {
|
|
2795 |
<?php wppa_echo( '<small style="float:right"> (' . count( $photos ) . ')</small>' );
|
2796 |
|
2797 |
?>
|
2798 |
-
</
|
2799 |
<?php $edit_link = wppa_ea_url( 'single', 'edit' ) ?>
|
2800 |
<table class="widefat">
|
2801 |
<thead style="font-weight:bold">
|
@@ -2820,11 +2831,11 @@ function wppaTryMove( id, video ) {
|
|
2820 |
wppa_echo( '
|
2821 |
<tr>
|
2822 |
<td colspan="8" style="background-color:lightgreen">
|
2823 |
-
<
|
2824 |
sprintf( __( 'Moderate photos from album %s by %s', 'wp-photo-album-plus' ),
|
2825 |
'<i>' . htmlspecialchars( wppa_get_album_name( $photo['album'] ) ) . '</i>',
|
2826 |
'<i>' . htmlspecialchars( wppa_get_album_item( $photo['album'], 'owner' ) ) . '</i>' ) .
|
2827 |
-
'</
|
2828 |
</td>
|
2829 |
</tr>' );
|
2830 |
$modalbum = $photo['album'];
|
@@ -3009,16 +3020,16 @@ function wppaTryMove( id, video ) {
|
|
3009 |
else {
|
3010 |
if ( $page == '1' ) {
|
3011 |
if ( wppa_get( 'searchstring' ) ) {
|
3012 |
-
wppa_echo( '<
|
3013 |
}
|
3014 |
elseif ( $album == 'moderate' ) {
|
3015 |
-
wppa_echo( '<
|
3016 |
}
|
3017 |
elseif ( $album == 'trash' ) {
|
3018 |
-
wppa_echo( '<
|
3019 |
}
|
3020 |
else {
|
3021 |
-
wppa_echo( '<
|
3022 |
}
|
3023 |
}
|
3024 |
else {
|
@@ -3193,7 +3204,7 @@ global $wpdb;
|
|
3193 |
<?php
|
3194 |
}
|
3195 |
else {
|
3196 |
-
wppa_echo( '<
|
3197 |
}
|
3198 |
}
|
3199 |
else {
|
@@ -3432,14 +3443,14 @@ function wppa_fe_edit_photo( $photo ) {
|
|
3432 |
'<div' .
|
3433 |
' style="width:100%;margin-top:8px;padding:8px;display:block;box-sizing:border-box;background-color:#fff"' .
|
3434 |
' >' .
|
3435 |
-
'<
|
3436 |
'<img' .
|
3437 |
' style="height:50px"' .
|
3438 |
' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . esc_url( wppa_get_thumb_url( $photo ) ) . '"' .
|
3439 |
wppa_get_imgalt( $photo ) .
|
3440 |
' />' .
|
3441 |
' ' .
|
3442 |
-
wppa_opt( 'fe_edit_caption' ) . '</
|
3443 |
|
3444 |
// Open form
|
3445 |
wppa_echo(
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* edit and delete photos
|
6 |
+
* Version 8.2.02.006
|
7 |
*
|
8 |
*/
|
9 |
|
192 |
|
193 |
// If i am admin, i can edit all photos here, sorted by timestamp desc
|
194 |
if ( wppa_user_is( 'administrator' ) ) {
|
195 |
+
wppa_echo( '<h1>' . esc_html__( 'Manage all photos by timestamp', 'wp-photo-album-plus' ) . '</h1>' );
|
196 |
|
197 |
$photos = $wpdb->get_results( $wpdb->prepare( "SELECT * FROM $wpdb->wppa_photos
|
198 |
ORDER BY timestamp DESC
|
241 |
|
242 |
// Search
|
243 |
if ( wppa_get( 'searchstring' ) ) {
|
244 |
+
wppa_echo( '<h1>' . esc_html__( 'No photos matching your search criteria.', 'wp-photo-album-plus' ) . '</h1>' );
|
245 |
}
|
246 |
|
247 |
// Album
|
248 |
else {
|
249 |
+
wppa_echo( '<h1>' . esc_html__( 'No photos yet in this album.', 'wp-photo-album-plus' ) . '</h1>' );
|
250 |
}
|
251 |
}
|
252 |
|
552 |
|
553 |
// Album for moderate
|
554 |
if ( $modalbum != $album && $album && ! wppa_get( 'just-edit' ) && wppa_get( 'edit-id' ) != 'trash' ) {
|
555 |
+
wppa_echo( '<h1>' . sprintf( __( 'Edit/Moderate photos from album %s by %s', 'wp-photo-album-plus' ),
|
556 |
'<i>' . sanitize_text_field( wppa_get_album_name( $album ) ) . '</i>',
|
557 |
+
'<i>' . sanitize_user( wppa_get_album_item( $album, 'owner' ) ) . '</i>' ) . '</h1>' );
|
558 |
$modalbum = $album;
|
559 |
}
|
560 |
|
1460 |
// Section 3a ImageMagick editing commands
|
1461 |
if ( wppa_can_admin_magick( $id ) && ! $quick ) {
|
1462 |
|
1463 |
+
// wppa_echo( '<fieldset style="padding:6px;border:1px solid lightgray;margin:2px 20px 20px"><legend>' . __( '<b>ImageMagick</b> commands.', 'wp-photo-album-plus' ) . '</legend>
|
1464 |
+
wppa_echo( '<div style="padding:0 20px;">
|
1465 |
+
<details class="wppa-sublevel-details">
|
1466 |
+
<summary class="toplevel wppa-summary-sublevel"> '.
|
1467 |
+
__( 'ImageMagick commands', 'wp-photo-album-plus' ) . '
|
1468 |
+
</summary>
|
1469 |
+
|
1470 |
<table
|
1471 |
class="wppa-table wppa-photo-table"
|
1472 |
+
style="border:1px solid lightgray;margin:2px 20px 20px 0"
|
1473 |
>
|
1474 |
<tbody>
|
1475 |
<tr>
|
1476 |
<td>' .
|
1477 |
+
__( 'The operations are executed upon the display file.', 'wp-photo-album-plus' ) . ' ' .
|
1478 |
__( 'A new thumbnail image will be created from the display file.', 'wp-photo-album-plus' ) . '
|
1479 |
</td>
|
1480 |
</tr>
|
1796 |
/>' );
|
1797 |
|
1798 |
$the_js = '
|
1799 |
+
|
1800 |
+
/* jQuery(document).ready(function() { */
|
1801 |
window.addEventListener("DOMContentLoaded", function () {
|
1802 |
|
1803 |
/* Responive does not always works correcly, */
|
1833 |
</td>
|
1834 |
</tr>
|
1835 |
</tbody>
|
1836 |
+
</table>
|
1837 |
+
</details></div>' );
|
1838 |
+
//</fieldset>' );
|
1839 |
}
|
1840 |
|
1841 |
// Reset switch
|
1897 |
<input
|
1898 |
type="button"
|
1899 |
style="clear:left"
|
1900 |
+
class="button button-secundary"
|
1901 |
value="' . esc_attr( __( 'Update Photo description', 'wp-photo-album-plus' ) ) . '"
|
1902 |
onclick="wppaAjaxUpdatePhoto( ' . $id . ', \'description\', wppaGetTinyMceContent(\'wppaphotodesc' . $alfaid . '\') )"
|
1903 |
/>
|
2252 |
<table><tbody><tr><td><input
|
2253 |
type="button"
|
2254 |
id="wppa-iptc-button-' . $id . '"
|
2255 |
+
class="button button-secundary"
|
2256 |
value="' . esc_attr( sprintf( __( 'Show %d IPTC items', 'wp-photo-album-plus' ), count( $iptcs ) ) ) . '"
|
2257 |
onclick="wppaToggleIptc( ' . $id . ', ' . count( $iptcs ) . ' )"
|
2258 |
/></td></tr></tbody></table>
|
2304 |
<table><tbody><tr><td><input
|
2305 |
type="button"
|
2306 |
id="wppa-exif-button-' . $id . '"
|
2307 |
+
class="button button-secundary"
|
2308 |
value="' . esc_attr( sprintf( __( 'Show %d EXIF items', 'wp-photo-album-plus' ), count( $exifs ) ) ) . '"
|
2309 |
onclick="wppaToggleExif( ' . $id . ', ' . count( $exifs ) . ' )"
|
2310 |
/></td></tr></tbody></table>
|
2691 |
$result = '
|
2692 |
<form action="' . $link . '&wppa-page=' . $page . '#manage-photos" method="post">' .
|
2693 |
wp_nonce_field( 'wppa-bulk', 'wppa-bulk' ) . '
|
2694 |
+
<h1>
|
2695 |
<span style="font-weight:bold">' . __( 'Bulk action:', 'wp-photo-album-plus' ) . '</span>
|
2696 |
<select id="wppa-bulk-action" name="wppa-bulk-action" onchange="wppaBulkActionChange( this, \'bulk-album\' )">
|
2697 |
<option value=""></option>';
|
2806 |
<?php wppa_echo( '<small style="float:right"> (' . count( $photos ) . ')</small>' );
|
2807 |
|
2808 |
?>
|
2809 |
+
</h1>
|
2810 |
<?php $edit_link = wppa_ea_url( 'single', 'edit' ) ?>
|
2811 |
<table class="widefat">
|
2812 |
<thead style="font-weight:bold">
|
2831 |
wppa_echo( '
|
2832 |
<tr>
|
2833 |
<td colspan="8" style="background-color:lightgreen">
|
2834 |
+
<h1 style="margin:0">' .
|
2835 |
sprintf( __( 'Moderate photos from album %s by %s', 'wp-photo-album-plus' ),
|
2836 |
'<i>' . htmlspecialchars( wppa_get_album_name( $photo['album'] ) ) . '</i>',
|
2837 |
'<i>' . htmlspecialchars( wppa_get_album_item( $photo['album'], 'owner' ) ) . '</i>' ) .
|
2838 |
+
'</h1>
|
2839 |
</td>
|
2840 |
</tr>' );
|
2841 |
$modalbum = $photo['album'];
|
3020 |
else {
|
3021 |
if ( $page == '1' ) {
|
3022 |
if ( wppa_get( 'searchstring' ) ) {
|
3023 |
+
wppa_echo( '<h1>' . __( 'No photos matching your search criteria.', 'wp-photo-album-plus' ) . '</h1>' );
|
3024 |
}
|
3025 |
elseif ( $album == 'moderate' ) {
|
3026 |
+
wppa_echo( '<h1>' . __( 'No photos to moderate', 'wp-photo-album-plus' ) . '</h1>' );
|
3027 |
}
|
3028 |
elseif ( $album == 'trash' ) {
|
3029 |
+
wppa_echo( '<h1>' . __( 'No photos left', 'wp-photo-album-plus' ) . '</h1>' );
|
3030 |
}
|
3031 |
else {
|
3032 |
+
wppa_echo( '<h1>' . __( 'No photos yet in this album.', 'wp-photo-album-plus' ) . '</h1>' );
|
3033 |
}
|
3034 |
}
|
3035 |
else {
|
3204 |
<?php
|
3205 |
}
|
3206 |
else {
|
3207 |
+
wppa_echo( '<h1>'.__( 'The album is empty.' , 'wp-photo-album-plus' ).'</h1>' );
|
3208 |
}
|
3209 |
}
|
3210 |
else {
|
3443 |
'<div' .
|
3444 |
' style="width:100%;margin-top:8px;padding:8px;display:block;box-sizing:border-box;background-color:#fff"' .
|
3445 |
' >' .
|
3446 |
+
'<h1>' .
|
3447 |
'<img' .
|
3448 |
' style="height:50px"' .
|
3449 |
' ' . ( wppa_lazy() ? 'data-' : '' ) . 'src="' . esc_url( wppa_get_thumb_url( $photo ) ) . '"' .
|
3450 |
wppa_get_imgalt( $photo ) .
|
3451 |
' />' .
|
3452 |
' ' .
|
3453 |
+
wppa_opt( 'fe_edit_caption' ) . '</h1>' );
|
3454 |
|
3455 |
// Open form
|
3456 |
wppa_echo(
|
wppa-scripts.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* This file contains all functions for activating javascript
|
6 |
*
|
7 |
-
* Version 8.2.
|
8 |
*/
|
9 |
|
10 |
// Place all wppa related js declarations in the header, both admin and frontend
|
@@ -483,7 +483,7 @@ global $wpdb;
|
|
483 |
$result = wppa_compress_js( $result );
|
484 |
wp_add_inline_script('jquery-core', $result);
|
485 |
wp_add_inline_script('wppa-admin', $result);
|
486 |
-
/*
|
487 |
$result = '
|
488 |
<!-- wppa js inits -->
|
489 |
<script>
|
@@ -493,11 +493,11 @@ global $wpdb;
|
|
493 |
';
|
494 |
echo $result;
|
495 |
/* */
|
496 |
-
|
497 |
// Texts for block activations
|
498 |
$the_js = '
|
499 |
-
var
|
500 |
-
wppaTextSlideshow = "' . __( 'WPPA Slideshow', 'wp-photo-album-plus' ) . '",
|
501 |
wppaTextSimpleSlideshow = "' . __( 'WPPA Simple slideshow', 'wp-photo-album-plus' ) . '",
|
502 |
wppaTextEnterWidgetCaption = "' . __( 'Enter widget caption', 'wp-photo-album-plus' ) . '",
|
503 |
wppaTextSelectAlbum = "' . __( 'Select the album for the slideshow', 'wp-photo-album-plus' ) . '",
|
@@ -511,10 +511,10 @@ global $wpdb;
|
|
511 |
wppaTextUploadHelp = "' . __( 'If you want to limit uploads to a specific album, select it here', 'wp-photo-album-plus' ) . '"
|
512 |
wppaTextLoginOnly = "' . __( 'Show to logged in users only?', 'wp-photo-album-plus' ) . '",
|
513 |
wppaTextAdminOnly = "' . __( 'Show to admin only?', 'wp-photo-album-plus' ) . '",
|
514 |
-
wppaTextUpload = "' . __( 'WPPA upload', 'wp-photo-album-plus' ) . '",
|
515 |
-
wppaTextPotd = "' . __( 'WPPA Potd', 'wp-photo-album-plus' ) . '",
|
516 |
wppaTextPhotoOfTheDay = "' . __( 'WPPA Photo of the day','wp-photo-album-plus' ) . '"';
|
517 |
-
wp_add_inline_script( 'wppa-admin', $the_js );
|
518 |
|
519 |
}
|
520 |
add_action( 'wp_head', 'wppa_initialize_javascript', 2 );
|
4 |
*
|
5 |
* This file contains all functions for activating javascript
|
6 |
*
|
7 |
+
* Version 8.2.02.005
|
8 |
*/
|
9 |
|
10 |
// Place all wppa related js declarations in the header, both admin and frontend
|
483 |
$result = wppa_compress_js( $result );
|
484 |
wp_add_inline_script('jquery-core', $result);
|
485 |
wp_add_inline_script('wppa-admin', $result);
|
486 |
+
/*
|
487 |
$result = '
|
488 |
<!-- wppa js inits -->
|
489 |
<script>
|
493 |
';
|
494 |
echo $result;
|
495 |
/* */
|
496 |
+
|
497 |
// Texts for block activations
|
498 |
$the_js = '
|
499 |
+
var
|
500 |
+
wppaTextSlideshow = "' . __( 'WPPA+ Slideshow', 'wp-photo-album-plus' ) . '",
|
501 |
wppaTextSimpleSlideshow = "' . __( 'WPPA Simple slideshow', 'wp-photo-album-plus' ) . '",
|
502 |
wppaTextEnterWidgetCaption = "' . __( 'Enter widget caption', 'wp-photo-album-plus' ) . '",
|
503 |
wppaTextSelectAlbum = "' . __( 'Select the album for the slideshow', 'wp-photo-album-plus' ) . '",
|
511 |
wppaTextUploadHelp = "' . __( 'If you want to limit uploads to a specific album, select it here', 'wp-photo-album-plus' ) . '"
|
512 |
wppaTextLoginOnly = "' . __( 'Show to logged in users only?', 'wp-photo-album-plus' ) . '",
|
513 |
wppaTextAdminOnly = "' . __( 'Show to admin only?', 'wp-photo-album-plus' ) . '",
|
514 |
+
wppaTextUpload = "' . __( 'WPPA+ upload', 'wp-photo-album-plus' ) . '",
|
515 |
+
wppaTextPotd = "' . __( 'WPPA+ Potd', 'wp-photo-album-plus' ) . '",
|
516 |
wppaTextPhotoOfTheDay = "' . __( 'WPPA Photo of the day','wp-photo-album-plus' ) . '"';
|
517 |
+
wp_add_inline_script( 'wppa-admin', $the_js );
|
518 |
|
519 |
}
|
520 |
add_action( 'wp_head', 'wppa_initialize_javascript', 2 );
|
wppa-setting-see-also.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
-
* Version 8.2.
|
7 |
*
|
8 |
*/
|
9 |
|
@@ -190,7 +190,17 @@ global $wppa_subtab_names;
|
|
190 |
|
191 |
// Yes
|
192 |
else {
|
193 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
|
195 |
// Default given?
|
196 |
if ( $default ) {
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* manage all options
|
6 |
+
* Version 8.2.02.005
|
7 |
*
|
8 |
*/
|
9 |
|
190 |
|
191 |
// Yes
|
192 |
else {
|
193 |
+
if ( is_array( $item ) ) {
|
194 |
+
$count = count( $item );
|
195 |
+
$disp = implode( ', ', $item );
|
196 |
+
}
|
197 |
+
else {
|
198 |
+
$count = '1';
|
199 |
+
$disp = $item;
|
200 |
+
}
|
201 |
+
$itemlabel = _n( 'Item', 'Items', $count, 'wp-photo-album-plus' );
|
202 |
+
|
203 |
+
$result .= $wppa_tab_names[$tab] . ' -> ' . $greek[$subtab] . ': ' . $wppa_subtab_names[$tab][$subtab] . ' -> ' . $itemlabel . ': ' . $disp;
|
204 |
|
205 |
// Default given?
|
206 |
if ( $default ) {
|
wppa-slideshow-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display a slideshow in the sidebar
|
6 |
-
* Version 8.2.02.
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
@@ -197,7 +197,7 @@ class SlideshowWidget extends WP_Widget {
|
|
197 |
}
|
198 |
|
199 |
// Including subalbums?
|
200 |
-
wppa_widget_checkbox( $this, 'incsubs', $instance['incsubs'], __( '
|
201 |
|
202 |
// Max
|
203 |
$body =
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display a slideshow in the sidebar
|
6 |
+
* Version 8.2.02.005
|
7 |
*/
|
8 |
|
9 |
if ( ! defined( 'ABSPATH' ) ) die( "Can't load this file directly" );
|
197 |
}
|
198 |
|
199 |
// Including subalbums?
|
200 |
+
wppa_widget_checkbox( $this, 'incsubs', $instance['incsubs'], __( 'Include subalbums', 'wp-photo-album-plus' ) );
|
201 |
|
202 |
// Max
|
203 |
$body =
|
wppa-stats-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the stats widget
|
6 |
-
* Version 8.2.
|
7 |
*
|
8 |
*/
|
9 |
class WppaStatsWidget extends WP_Widget {
|
@@ -11,7 +11,7 @@ class WppaStatsWidget extends WP_Widget {
|
|
11 |
// Constructor
|
12 |
function __construct() {
|
13 |
$widget_ops = array( 'classname' => 'wppa_stats_widget', 'description' => __( 'WPPA Statistics', 'your-ip-widget' ) );
|
14 |
-
parent::__construct( 'your_ip', __( 'WPPA Stats', 'wppa_stats_widget' ), $widget_ops );
|
15 |
}
|
16 |
|
17 |
// Widget
|
@@ -160,11 +160,13 @@ class WppaStatsWidget extends WP_Widget {
|
|
160 |
wppa_widget_input( $this, 'title', $instance['title'], __( 'Title', 'wp-photo-album-plus' ) );
|
161 |
|
162 |
// Ip
|
|
|
|
|
|
|
163 |
wppa_widget_checkbox( $this,
|
164 |
'ip',
|
165 |
$instance['ip'],
|
166 |
__( 'Show IP address', 'wp-photo-album-plus' ),
|
167 |
-
__( 'Tick this box when the widget is used on non-cached pages only', 'wp-photo-album-plus' )
|
168 |
);
|
169 |
|
170 |
// Ip
|
@@ -172,9 +174,13 @@ class WppaStatsWidget extends WP_Widget {
|
|
172 |
'browser',
|
173 |
$instance['browser'],
|
174 |
__( 'Show browser', 'wp-photo-album-plus' ),
|
175 |
-
__( 'Tick this box when the widget is used on non-cached pages only', 'wp-photo-album-plus' )
|
176 |
);
|
177 |
|
|
|
|
|
|
|
|
|
|
|
178 |
// Dayno
|
179 |
wppa_widget_checkbox( $this,
|
180 |
'dayno',
|
@@ -260,6 +266,8 @@ class WppaStatsWidget extends WP_Widget {
|
|
260 |
);
|
261 |
}
|
262 |
|
|
|
|
|
263 |
// Loggedin only
|
264 |
wppa_widget_checkbox( $this,
|
265 |
'logonly',
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the stats widget
|
6 |
+
* Version 8.2.02.005
|
7 |
*
|
8 |
*/
|
9 |
class WppaStatsWidget extends WP_Widget {
|
11 |
// Constructor
|
12 |
function __construct() {
|
13 |
$widget_ops = array( 'classname' => 'wppa_stats_widget', 'description' => __( 'WPPA Statistics', 'your-ip-widget' ) );
|
14 |
+
parent::__construct( 'your_ip', __( 'WPPA+ Stats', 'wppa_stats_widget' ), $widget_ops );
|
15 |
}
|
16 |
|
17 |
// Widget
|
160 |
wppa_widget_input( $this, 'title', $instance['title'], __( 'Title', 'wp-photo-album-plus' ) );
|
161 |
|
162 |
// Ip
|
163 |
+
wppa_echo( '<fieldset style="padding:6px;border:1px solid lightgray;margin-top:2px">
|
164 |
+
<legend>' . __( 'Use only on non-cached pages', 'wp-photo-album-plus' ) . '</legend>' );
|
165 |
+
|
166 |
wppa_widget_checkbox( $this,
|
167 |
'ip',
|
168 |
$instance['ip'],
|
169 |
__( 'Show IP address', 'wp-photo-album-plus' ),
|
|
|
170 |
);
|
171 |
|
172 |
// Ip
|
174 |
'browser',
|
175 |
$instance['browser'],
|
176 |
__( 'Show browser', 'wp-photo-album-plus' ),
|
|
|
177 |
);
|
178 |
|
179 |
+
wppa_echo( '</fieldset>
|
180 |
+
<fieldset style="padding:6px;border:1px solid lightgray;margin-top:2px">
|
181 |
+
<legend>' . __( 'Can be used on cached pages if regularely cleared', 'wp-photo-album-plus' ) . '</legend>' );
|
182 |
+
|
183 |
+
|
184 |
// Dayno
|
185 |
wppa_widget_checkbox( $this,
|
186 |
'dayno',
|
266 |
);
|
267 |
}
|
268 |
|
269 |
+
wppa_echo( '</fieldset>' );
|
270 |
+
|
271 |
// Loggedin only
|
272 |
wppa_widget_checkbox( $this,
|
273 |
'logonly',
|
wppa-thumbnail-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display thumbnail photos
|
6 |
-
* Version 8.2.
|
7 |
*/
|
8 |
|
9 |
class ThumbnailWidget extends WP_Widget {
|
@@ -245,7 +245,7 @@ class ThumbnailWidget extends WP_Widget {
|
|
245 |
$result = '
|
246 |
<p>' .
|
247 |
__( 'You can set the sizes in this widget in the <b>Photo Albums -> Settings</b> admin page.', 'wp-photo-album-plus' ) .
|
248 |
-
' ' .
|
249 |
'</p>';
|
250 |
wppa_echo( strip_tags( wp_check_invalid_utf8( $result), ["<br>", "<a>", "<i>", "<b>"] ) );
|
251 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display thumbnail photos
|
6 |
+
* Version 8.2.02.005
|
7 |
*/
|
8 |
|
9 |
class ThumbnailWidget extends WP_Widget {
|
245 |
$result = '
|
246 |
<p>' .
|
247 |
__( 'You can set the sizes in this widget in the <b>Photo Albums -> Settings</b> admin page.', 'wp-photo-album-plus' ) .
|
248 |
+
' ' . wppa_setting_path( 'b', 'widget', '1', ['6', '7'] ) .
|
249 |
'</p>';
|
250 |
wppa_echo( strip_tags( wp_check_invalid_utf8( $result), ["<br>", "<a>", "<i>", "<b>"] ) );
|
251 |
|
wppa-tinymce-common.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-tinymce-common.php
|
3 |
* Pachkage: wp-photo-album-plus
|
4 |
*
|
5 |
-
* Version 8.
|
6 |
*
|
7 |
*/
|
8 |
|
@@ -202,7 +202,7 @@ global $wpdb;
|
|
202 |
'
|
203 |
<p class="submit" style="padding:4px;margin:0">'.
|
204 |
'<input type="button" id="wppaphoto-submit" class="button-primary" value="'.__( 'Insert Photo', 'wp-photo-album-plus' ).'" name="submit" /> '.
|
205 |
-
'<input type="button" id="wppaphoto-submit-notok" class="button-secundary" value="'.__( 'Insert Photo', 'wp-photo-album-plus' ).'" onclick="alert(\''.esc_js(__('Please select a photo', 'wp-photo-album-plus' )).'\')" /> '.
|
206 |
'</p>' .
|
207 |
|
208 |
// Close main wrapper
|
2 |
/* wppa-tinymce-common.php
|
3 |
* Pachkage: wp-photo-album-plus
|
4 |
*
|
5 |
+
* Version 8.2.02.005
|
6 |
*
|
7 |
*/
|
8 |
|
202 |
'
|
203 |
<p class="submit" style="padding:4px;margin:0">'.
|
204 |
'<input type="button" id="wppaphoto-submit" class="button-primary" value="'.__( 'Insert Photo', 'wp-photo-album-plus' ).'" name="submit" /> '.
|
205 |
+
'<input type="button" id="wppaphoto-submit-notok" class="button button-secundary" value="'.__( 'Insert Photo', 'wp-photo-album-plus' ).'" onclick="alert(\''.esc_js(__('Please select a photo', 'wp-photo-album-plus' )).'\')" /> '.
|
206 |
'</p>' .
|
207 |
|
208 |
// Close main wrapper
|
wppa-tinymce-shortcodes.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/* wppa-tinymce-shortcodes.php
|
3 |
* Pachkage: wp-photo-album-plus
|
4 |
*
|
5 |
-
* Version 8.
|
6 |
*/
|
7 |
|
8 |
if ( ! defined( 'ABSPATH' ) )
|
@@ -695,7 +695,7 @@ global $wpdb;
|
|
695 |
<div><small>' . __( 'This is a preview of the shortcode that is being generated.', 'wp-photo-album-plus' ) . '</small></div>
|
696 |
<p class="submit">
|
697 |
<input type="button" id="wppagallery-submit" class="button-primary" value="' . __( 'Insert Shortcode', 'wp-photo-album-plus' ) . '" name="submit" />
|
698 |
-
<input type="button" id="wppagallery-submit-notok" class="button-secundary" value="' . __( 'Insert Shortcode', 'wp-photo-album-plus' ) . '" onclick="alert(\'' . esc_js( __( 'Please complete the shortcode specs', 'wp-photo-album-plus' ) ) . '\')" />
|
699 |
</p>
|
700 |
</div>';
|
701 |
|
2 |
/* wppa-tinymce-shortcodes.php
|
3 |
* Pachkage: wp-photo-album-plus
|
4 |
*
|
5 |
+
* Version 8.2.02.005
|
6 |
*/
|
7 |
|
8 |
if ( ! defined( 'ABSPATH' ) )
|
695 |
<div><small>' . __( 'This is a preview of the shortcode that is being generated.', 'wp-photo-album-plus' ) . '</small></div>
|
696 |
<p class="submit">
|
697 |
<input type="button" id="wppagallery-submit" class="button-primary" value="' . __( 'Insert Shortcode', 'wp-photo-album-plus' ) . '" name="submit" />
|
698 |
+
<input type="button" id="wppagallery-submit-notok" class="button button-secundary" value="' . __( 'Insert Shortcode', 'wp-photo-album-plus' ) . '" onclick="alert(\'' . esc_js( __( 'Please complete the shortcode specs', 'wp-photo-album-plus' ) ) . '\')" />
|
699 |
</p>
|
700 |
</div>';
|
701 |
|
wppa-topten-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the top rated photos
|
6 |
-
* Version 8.2.02.
|
7 |
*/
|
8 |
|
9 |
class TopTenWidget extends WP_Widget {
|
@@ -602,9 +602,7 @@ class TopTenWidget extends WP_Widget {
|
|
602 |
wppa_widget_checkbox( $this, 'medalsonly', $instance['medalsonly'], __( 'Only with medals', 'wp-photo-album-plus' ) );
|
603 |
|
604 |
// Subtitles
|
605 |
-
wppa_echo(
|
606 |
-
__( 'Subtitles', 'wp-photo-album-plus' ) . ':' .
|
607 |
-
'<div style="padding:6px;border:1px solid lightgray;margin-top:2px">' );
|
608 |
|
609 |
// Owner
|
610 |
wppa_widget_checkbox( $this, 'showowner', $instance['showowner'], __( 'Owner', 'wp-photo-album-plus' ) );
|
@@ -624,7 +622,7 @@ class TopTenWidget extends WP_Widget {
|
|
624 |
// Download count
|
625 |
wppa_widget_checkbox( $this, 'dlcount', $instance['dlcount'], __( 'Download count', 'wp-photo-album-plus' ) );
|
626 |
|
627 |
-
wppa_echo( '</
|
628 |
|
629 |
// Loggedin only
|
630 |
wppa_widget_checkbox( $this, 'logonly', $instance['logonly'], __( 'Show to logged in visitors only', 'wp-photo-album-plus' ) );
|
@@ -635,7 +633,7 @@ class TopTenWidget extends WP_Widget {
|
|
635 |
$result =
|
636 |
'<p>' .
|
637 |
__( 'You can set the sizes in this widget in the <b>Photo Albums -> Settings</b> admin page.', 'wp-photo-album-plus' ) .
|
638 |
-
' ' .
|
639 |
'</p>';
|
640 |
wppa_echo( strip_tags( wp_check_invalid_utf8( $result), ["<br>", "<a>", "<i>", "<b>"] ) );
|
641 |
|
3 |
* Package: wp-photo-album-plus
|
4 |
*
|
5 |
* display the top rated photos
|
6 |
+
* Version 8.2.02.005
|
7 |
*/
|
8 |
|
9 |
class TopTenWidget extends WP_Widget {
|
602 |
wppa_widget_checkbox( $this, 'medalsonly', $instance['medalsonly'], __( 'Only with medals', 'wp-photo-album-plus' ) );
|
603 |
|
604 |
// Subtitles
|
605 |
+
wppa_echo( '<fieldset style="padding:6px;border:1px solid lightgray;margin-top:2px"><legend>' . __( 'Subtitles', 'wp-photo-album-plus' ) . '</legend>' );
|
|
|
|
|
606 |
|
607 |
// Owner
|
608 |
wppa_widget_checkbox( $this, 'showowner', $instance['showowner'], __( 'Owner', 'wp-photo-album-plus' ) );
|
622 |
// Download count
|
623 |
wppa_widget_checkbox( $this, 'dlcount', $instance['dlcount'], __( 'Download count', 'wp-photo-album-plus' ) );
|
624 |
|
625 |
+
wppa_echo( '</fieldset>' );
|
626 |
|
627 |
// Loggedin only
|
628 |
wppa_widget_checkbox( $this, 'logonly', $instance['logonly'], __( 'Show to logged in visitors only', 'wp-photo-album-plus' ) );
|
633 |
$result =
|
634 |
'<p>' .
|
635 |
__( 'You can set the sizes in this widget in the <b>Photo Albums -> Settings</b> admin page.', 'wp-photo-album-plus' ) .
|
636 |
+
' ' . wppa_setting_path( 'b', 'widget', '1', ['2', '3'] ) .
|
637 |
'</p>';
|
638 |
wppa_echo( strip_tags( wp_check_invalid_utf8( $result), ["<br>", "<a>", "<i>", "<b>"] ) );
|
639 |
|
wppa-wrappers.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Contains wrappers for standard php functions
|
6 |
* For security and bug reasons
|
7 |
*
|
8 |
-
* Version 8.2.
|
9 |
*
|
10 |
*/
|
11 |
|
@@ -932,6 +932,12 @@ static $allowed_tags;
|
|
932 |
'ul' => $sa,
|
933 |
'ol' => $sa,
|
934 |
'li' => $sa,
|
|
|
|
|
|
|
|
|
|
|
|
|
935 |
);
|
936 |
}
|
937 |
|
5 |
* Contains wrappers for standard php functions
|
6 |
* For security and bug reasons
|
7 |
*
|
8 |
+
* Version 8.2.02.006
|
9 |
*
|
10 |
*/
|
11 |
|
932 |
'ul' => $sa,
|
933 |
'ol' => $sa,
|
934 |
'li' => $sa,
|
935 |
+
'fieldset' => $sa,
|
936 |
+
'legend' => $sa,
|
937 |
+
'summary' => $sa,
|
938 |
+
'details' => array_merge( $sa, array(
|
939 |
+
'open' => true,
|
940 |
+
) ),
|
941 |
);
|
942 |
}
|
943 |
|
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.02.
|
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.2.02.
|
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.2.02.006
|
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.2.02.006'; // WPPA software version
|
28 |
global $wppa_revno;
|
29 |
$wppa_revno = str_replace( '.', '', $wppa_api_version ); // WPPA db version
|
30 |
|