Version Description
Download this release
Release Info
Developer | contact-banker |
Plugin | Gallery Bank: WordPress Photo Gallery Plugin |
Version | 3.1.33 |
Comparing to | |
See all releases |
Code changes from version 3.1.32 to 3.1.33
- assets/css/jquery.ui.plupload.css +2 -2
- assets/css/stylesheet.css +214 -0
- front_views/grid-albums.php +2 -2
- front_views/listed-album.php +1 -1
- front_views/masonry-gallery.php +1 -1
- front_views/thumbnail-gallery.php +1 -1
- gallery-bank.php +207 -2
- lib/add-new-album-class.php +111 -0
- lib/gallery-bank-class.php +80 -31
- lib/install-script.php +1 -0
- readme.txt +55 -47
- views/wizard.php +150 -0
assets/css/jquery.ui.plupload.css
CHANGED
@@ -52,7 +52,7 @@
|
|
52 |
.plupload_logo {
|
53 |
width: 40px;
|
54 |
height: 40px;
|
55 |
-
background: url('../
|
56 |
position: absolute;
|
57 |
top: 8px;
|
58 |
left: 8px;
|
@@ -130,7 +130,7 @@
|
|
130 |
}
|
131 |
|
132 |
.plupload_thumb_loading {
|
133 |
-
background: #eee url(../
|
134 |
}
|
135 |
|
136 |
.plupload_thumb_loading .plupload_file_dummy,
|
52 |
.plupload_logo {
|
53 |
width: 40px;
|
54 |
height: 40px;
|
55 |
+
background: url('../images/plupload/plupload.png') no-repeat 0 0;
|
56 |
position: absolute;
|
57 |
top: 8px;
|
58 |
left: 8px;
|
130 |
}
|
131 |
|
132 |
.plupload_thumb_loading {
|
133 |
+
background: #eee url(../images/plupload/loading.gif) center no-repeat;
|
134 |
}
|
135 |
|
136 |
.plupload_thumb_loading .plupload_file_dummy,
|
assets/css/stylesheet.css
CHANGED
@@ -2727,3 +2727,217 @@ li.active a, li.active a:hover {
|
|
2727 |
.service-div-settings .desc p {
|
2728 |
line-height: 2em !important;
|
2729 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2727 |
.service-div-settings .desc p {
|
2728 |
line-height: 2em !important;
|
2729 |
}
|
2730 |
+
|
2731 |
+
.header-wizard
|
2732 |
+
{
|
2733 |
+
width : 50%;
|
2734 |
+
background-color : #fff;
|
2735 |
+
}
|
2736 |
+
.dashicons-wordpress
|
2737 |
+
{
|
2738 |
+
font-size : 90px;
|
2739 |
+
background : #01749a;
|
2740 |
+
color : #fff;
|
2741 |
+
width : 110px;
|
2742 |
+
height : 110px;
|
2743 |
+
padding : 10px;
|
2744 |
+
}
|
2745 |
+
|
2746 |
+
.dashicons-plus
|
2747 |
+
{
|
2748 |
+
position: absolute;
|
2749 |
+
top : 30px;
|
2750 |
+
left : 30%;
|
2751 |
+
font-size : 60px;
|
2752 |
+
color : #bbb;
|
2753 |
+
}
|
2754 |
+
.textalign p
|
2755 |
+
{
|
2756 |
+
font-size : 16px;
|
2757 |
+
color : #444;
|
2758 |
+
padding-left : 40px;
|
2759 |
+
padding-right : 40px;
|
2760 |
+
}
|
2761 |
+
.allow
|
2762 |
+
{
|
2763 |
+
padding-left : 0px;
|
2764 |
+
padding-right : 0px;
|
2765 |
+
}
|
2766 |
+
.tech-banker-actions
|
2767 |
+
{
|
2768 |
+
padding : 10px 20px 10px 20px;
|
2769 |
+
}
|
2770 |
+
.button.button-primary-wizard
|
2771 |
+
{
|
2772 |
+
padding : 5px 35px 5px 10px !important;
|
2773 |
+
border-width : 2px !important;
|
2774 |
+
font-size : 14px !important;
|
2775 |
+
font-weight : 800 !important;
|
2776 |
+
height : 100% !important;
|
2777 |
+
line-height : 30px !important;
|
2778 |
+
|
2779 |
+
}
|
2780 |
+
.button-primary-wizard
|
2781 |
+
{
|
2782 |
+
background-color : #a4cd39 !important;
|
2783 |
+
border-color : #a4cd39 !important;
|
2784 |
+
color : #fff !important;
|
2785 |
+
display : inline-block !important;
|
2786 |
+
text-decoration : none !important;
|
2787 |
+
border-style : outset !important;
|
2788 |
+
float : right !important;
|
2789 |
+
position : relative !important;
|
2790 |
+
}
|
2791 |
+
.button-primary-wizard:hover
|
2792 |
+
{
|
2793 |
+
color : #fff !important;
|
2794 |
+
text-decoration : none !important;
|
2795 |
+
}
|
2796 |
+
.button-secondary-wizard
|
2797 |
+
{
|
2798 |
+
color : #fff !important;
|
2799 |
+
background : #C0C7CA !important;
|
2800 |
+
text-decoration : none !important;
|
2801 |
+
font-size : 14px !important;
|
2802 |
+
padding : 5px 35px 5px 10px !important;
|
2803 |
+
border : 2px outset #f7f7f7 !important;
|
2804 |
+
display : inline-block !important;
|
2805 |
+
position : relative !important;
|
2806 |
+
font-weight : 800 !important;
|
2807 |
+
height : 100% !important;
|
2808 |
+
line-height : 30px !important;
|
2809 |
+
}
|
2810 |
+
.button-secondary-wizard:hover
|
2811 |
+
{
|
2812 |
+
color : #fff !important;
|
2813 |
+
}
|
2814 |
+
.permissions
|
2815 |
+
{
|
2816 |
+
font-size : 18px;
|
2817 |
+
text-decoration : none;
|
2818 |
+
text-align : center;
|
2819 |
+
display : block;
|
2820 |
+
color : #a4cd39;
|
2821 |
+
padding-top : 10px;
|
2822 |
+
padding-bottom : 10px;
|
2823 |
+
margin-bottom : 10px;
|
2824 |
+
cursor: -webkit-grab;
|
2825 |
+
}
|
2826 |
+
.permissions:hover
|
2827 |
+
{
|
2828 |
+
color : #a4cd39;
|
2829 |
+
}
|
2830 |
+
.dashicons-admin-users
|
2831 |
+
{
|
2832 |
+
float : left;
|
2833 |
+
font-size : 45px;
|
2834 |
+
width : 50px;
|
2835 |
+
height : 50px;
|
2836 |
+
margin-right : 30px;
|
2837 |
+
}
|
2838 |
+
.admin p
|
2839 |
+
{
|
2840 |
+
margin : 0px;
|
2841 |
+
font-size : 12px;
|
2842 |
+
}
|
2843 |
+
.admin span
|
2844 |
+
{
|
2845 |
+
font-size : 16px;
|
2846 |
+
}
|
2847 |
+
.dashicons-welcome-view-site
|
2848 |
+
{
|
2849 |
+
float : left;
|
2850 |
+
font-size : 45px;
|
2851 |
+
width : 50px;
|
2852 |
+
height : 50px;
|
2853 |
+
margin-right : 30px;
|
2854 |
+
}
|
2855 |
+
.settings p
|
2856 |
+
{
|
2857 |
+
margin : 0px;
|
2858 |
+
font-size : 12px;
|
2859 |
+
}
|
2860 |
+
.settings span
|
2861 |
+
{
|
2862 |
+
font-size : 16px;
|
2863 |
+
}
|
2864 |
+
.dashicons-testimonial
|
2865 |
+
{
|
2866 |
+
float : left;
|
2867 |
+
font-size : 45px;
|
2868 |
+
width : 50px;
|
2869 |
+
height : 50px;
|
2870 |
+
margin-right : 30px;
|
2871 |
+
}
|
2872 |
+
.testimonial p
|
2873 |
+
{
|
2874 |
+
margin : 0px;
|
2875 |
+
font-size : 12px;
|
2876 |
+
}
|
2877 |
+
.testimonial span
|
2878 |
+
{
|
2879 |
+
margin : 0px;
|
2880 |
+
font-size : 16px;
|
2881 |
+
}
|
2882 |
+
.dashicons-admin-plugins
|
2883 |
+
{
|
2884 |
+
float : left;
|
2885 |
+
font-size : 45px;
|
2886 |
+
width : 50px;
|
2887 |
+
height : 50px;
|
2888 |
+
margin-right : 30px;
|
2889 |
+
}
|
2890 |
+
.admin-plugins p
|
2891 |
+
{
|
2892 |
+
margin : 0px;
|
2893 |
+
font-size : 12px;
|
2894 |
+
}
|
2895 |
+
.admin-plugins span
|
2896 |
+
{
|
2897 |
+
font-size : 16px;
|
2898 |
+
}
|
2899 |
+
.terms
|
2900 |
+
{
|
2901 |
+
background : #e1e1e1;
|
2902 |
+
text-align : center;
|
2903 |
+
padding-top : 10px;
|
2904 |
+
padding-bottom : 10px;
|
2905 |
+
}
|
2906 |
+
.terms a, .terms span
|
2907 |
+
{
|
2908 |
+
color : #999;
|
2909 |
+
font-size : 10px;
|
2910 |
+
text-decoration : none !important;
|
2911 |
+
}
|
2912 |
+
.styling
|
2913 |
+
{
|
2914 |
+
padding : 20px 0 0 0 !important;
|
2915 |
+
}
|
2916 |
+
.dashicons-arrow-right-alt
|
2917 |
+
{
|
2918 |
+
position : absolute;
|
2919 |
+
top : 12px;
|
2920 |
+
right : 5px;
|
2921 |
+
}
|
2922 |
+
.center
|
2923 |
+
{
|
2924 |
+
text-align : center;
|
2925 |
+
}
|
2926 |
+
.align2
|
2927 |
+
{
|
2928 |
+
padding-left : 0px;
|
2929 |
+
}
|
2930 |
+
.p2
|
2931 |
+
{
|
2932 |
+
padding-top : 35px;
|
2933 |
+
}
|
2934 |
+
.row-custom
|
2935 |
+
{
|
2936 |
+
margin-right : 0px !important;
|
2937 |
+
margin-left : 0px !important
|
2938 |
+
}
|
2939 |
+
.row-bg
|
2940 |
+
{
|
2941 |
+
background-color : #e1e1e1;
|
2942 |
+
padding : 20px 0px 20px 0px;
|
2943 |
+
}
|
front_views/grid-albums.php
CHANGED
@@ -4,11 +4,11 @@ if(!defined("ABSPATH")) exit; //exit if accessed directly
|
|
4 |
<button class="album_back_btn" id="back_button<?php echo $unique_id; ?>" style="display: none;" onclick="view_albums<?php echo $unique_id; ?>(<?php echo $unique_id; ?>);"><span style="color: <?php echo $button_text_color; ?>;"> <?php echo $back_button_text; ?></span></button>
|
5 |
<!------------------------------------------->
|
6 |
|
7 |
-
|
8 |
<div id="seperator<?php echo $unique_id; ?>" class="separator-doubled" style="display: none"></div>
|
9 |
<!------------------------------------------->
|
10 |
|
11 |
-
|
12 |
<div class="albums-in-row_<?php echo $unique_id; ?>" id="view_gallery_bank_albums_<?php echo $unique_id; ?>">
|
13 |
<?php
|
14 |
for ($flag = 0;$flag < count($album);$flag++)
|
4 |
<button class="album_back_btn" id="back_button<?php echo $unique_id; ?>" style="display: none;" onclick="view_albums<?php echo $unique_id; ?>(<?php echo $unique_id; ?>);"><span style="color: <?php echo $button_text_color; ?>;"> <?php echo $back_button_text; ?></span></button>
|
5 |
<!------------------------------------------->
|
6 |
|
7 |
+
<!-- Code for Back Button Separator ------->
|
8 |
<div id="seperator<?php echo $unique_id; ?>" class="separator-doubled" style="display: none"></div>
|
9 |
<!------------------------------------------->
|
10 |
|
11 |
+
<!-- Code for Albums ------->
|
12 |
<div class="albums-in-row_<?php echo $unique_id; ?>" id="view_gallery_bank_albums_<?php echo $unique_id; ?>">
|
13 |
<?php
|
14 |
for ($flag = 0;$flag < count($album);$flag++)
|
front_views/listed-album.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
if(!defined("ABSPATH")) exit; //exit if accessed directly
|
3 |
?>
|
4 |
-
|
5 |
<button class="album_back_btn" id="back_button<?php echo $unique_id; ?>" style="display: none;" onclick="view_list_albums<?php echo $unique_id; ?>(<?php echo $unique_id; ?>);"><span style="color: <?php echo $button_text_color; ?>;"> <?php echo $back_button_text ?></span></button>
|
6 |
<div id="seperator<?php echo $unique_id; ?>" class="separator-doubled" style="display: none"></div>
|
7 |
<!------------------------------------------->
|
1 |
<?php
|
2 |
if(!defined("ABSPATH")) exit; //exit if accessed directly
|
3 |
?>
|
4 |
+
<!-- Code for Back Buttons ------->
|
5 |
<button class="album_back_btn" id="back_button<?php echo $unique_id; ?>" style="display: none;" onclick="view_list_albums<?php echo $unique_id; ?>(<?php echo $unique_id; ?>);"><span style="color: <?php echo $button_text_color; ?>;"> <?php echo $back_button_text ?></span></button>
|
6 |
<div id="seperator<?php echo $unique_id; ?>" class="separator-doubled" style="display: none"></div>
|
7 |
<!------------------------------------------->
|
front_views/masonry-gallery.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
if(!defined("ABSPATH")) exit; //exit if accessed directly
|
3 |
-
remove_filter (
|
4 |
?>
|
5 |
<style type="text/css">
|
6 |
.<?php echo $class_images_in_row ?> > a
|
1 |
<?php
|
2 |
if(!defined("ABSPATH")) exit; //exit if accessed directly
|
3 |
+
remove_filter ("comment_text", "wpautop");
|
4 |
?>
|
5 |
<style type="text/css">
|
6 |
.<?php echo $class_images_in_row ?> > a
|
front_views/thumbnail-gallery.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
if(!defined("ABSPATH")) exit; //exit if accessed directly
|
3 |
-
remove_filter (
|
4 |
?>
|
5 |
<style>
|
6 |
.<?php echo $class_images_in_row ?> > a
|
1 |
<?php
|
2 |
if(!defined("ABSPATH")) exit; //exit if accessed directly
|
3 |
+
remove_filter ("comment_text", "wpautop");
|
4 |
?>
|
5 |
<style>
|
6 |
.<?php echo $class_images_in_row ?> > a
|
gallery-bank.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://tech-banker.com
|
5 |
* Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
|
6 |
* Author: Tech Banker
|
7 |
-
* Version: 3.1.
|
8 |
* Author URI: http://tech-banker.com
|
9 |
* License: GPLv3 or later
|
10 |
* Text Domain: gallery-bank
|
@@ -25,7 +25,8 @@ if (!defined("GALLERY_BK_THUMB_URL")) define("GALLERY_BK_THUMB_URL", content_url
|
|
25 |
if (!defined("GALLERY_BK_THUMB_SMALL_URL")) define("GALLERY_BK_THUMB_SMALL_URL", content_url()."/gallery-bank/thumbs/");
|
26 |
if (!defined("GALLERY_BK_ALBUM_THUMB_URL")) define("GALLERY_BK_ALBUM_THUMB_URL", content_url()."/gallery-bank/album-thumbs/");
|
27 |
if (!defined("GALLERY_BK_PLUGIN_BASENAME")) define("GALLERY_BK_PLUGIN_BASENAME", plugin_basename(__FILE__));
|
28 |
-
|
|
|
29 |
if (!is_dir(GALLERY_MAIN_DIR))
|
30 |
{
|
31 |
wp_mkdir_p(GALLERY_MAIN_DIR);
|
@@ -42,6 +43,16 @@ if (!is_dir(GALLERY_MAIN_ALB_THUMB_DIR))
|
|
42 |
{
|
43 |
wp_mkdir_p(GALLERY_MAIN_ALB_THUMB_DIR);
|
44 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
/*************************************************************************************/
|
46 |
if (file_exists(GALLERY_BK_PLUGIN_DIR . "/lib/gallery-bank-class.php"))
|
47 |
{
|
@@ -91,11 +102,204 @@ if(!function_exists("plugin_install_script_for_gallery_bank"))
|
|
91 |
}
|
92 |
|
93 |
/*************************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
if(!function_exists("plugin_uninstall_script_for_gallery_bank"))
|
95 |
{
|
96 |
function plugin_uninstall_script_for_gallery_bank()
|
97 |
{
|
98 |
wp_clear_scheduled_hook("gallery_bank_auto_update");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
}
|
101 |
/*************************************************************************************/
|
@@ -461,6 +665,7 @@ add_action("admin_bar_menu", "add_gallery_bank_icon", 100);
|
|
461 |
add_action("plugins_loaded", "gallery_bank_plugin_load_text_domain");
|
462 |
add_action("in_plugin_update_message-".GALLERY_FILE,"gallery_bank_plugin_update_message");
|
463 |
register_activation_hook(__FILE__, "plugin_install_script_for_gallery_bank");
|
|
|
464 |
register_uninstall_hook(__FILE__, "plugin_uninstall_script_for_gallery_bank");
|
465 |
/*************************************************************************************/
|
466 |
?>
|
4 |
* Plugin URI: http://tech-banker.com
|
5 |
* Description: Gallery Bank is an easy to use Responsive WordPress Gallery Plugin for photos, videos, galleries and albums.
|
6 |
* Author: Tech Banker
|
7 |
+
* Version: 3.1.33
|
8 |
* Author URI: http://tech-banker.com
|
9 |
* License: GPLv3 or later
|
10 |
* Text Domain: gallery-bank
|
25 |
if (!defined("GALLERY_BK_THUMB_SMALL_URL")) define("GALLERY_BK_THUMB_SMALL_URL", content_url()."/gallery-bank/thumbs/");
|
26 |
if (!defined("GALLERY_BK_ALBUM_THUMB_URL")) define("GALLERY_BK_ALBUM_THUMB_URL", content_url()."/gallery-bank/album-thumbs/");
|
27 |
if (!defined("GALLERY_BK_PLUGIN_BASENAME")) define("GALLERY_BK_PLUGIN_BASENAME", plugin_basename(__FILE__));
|
28 |
+
if(!defined("tech_banker_stats_url")) define("tech_banker_stats_url", "stats.tech-banker-services.org");
|
29 |
+
if(!defined("gallery_bank_version_number")) define("gallery_bank_version_number","3.1.33");
|
30 |
if (!is_dir(GALLERY_MAIN_DIR))
|
31 |
{
|
32 |
wp_mkdir_p(GALLERY_MAIN_DIR);
|
43 |
{
|
44 |
wp_mkdir_p(GALLERY_MAIN_ALB_THUMB_DIR);
|
45 |
}
|
46 |
+
|
47 |
+
$memory_limit_gallery_bank = intval(ini_get("memory_limit"));
|
48 |
+
if (!extension_loaded('suhosin') && $memory_limit_gallery_bank < 512)
|
49 |
+
{
|
50 |
+
@ini_set("memory_limit", "512M");
|
51 |
+
}
|
52 |
+
|
53 |
+
@ini_set("max_execution_time", 6000);
|
54 |
+
@ini_set("max_input_vars", 10000);
|
55 |
+
|
56 |
/*************************************************************************************/
|
57 |
if (file_exists(GALLERY_BK_PLUGIN_DIR . "/lib/gallery-bank-class.php"))
|
58 |
{
|
102 |
}
|
103 |
|
104 |
/*************************************************************************************/
|
105 |
+
if(!class_exists("class_plugin_info_gallery_bank"))
|
106 |
+
{
|
107 |
+
class class_plugin_info_gallery_bank
|
108 |
+
{
|
109 |
+
function get_plugin_info()
|
110 |
+
{
|
111 |
+
$active_plugins = (array)get_option("active_plugins", array());
|
112 |
+
if (is_multisite())
|
113 |
+
$active_plugins = array_merge($active_plugins, get_site_option("active_sitewide_plugins", array()));
|
114 |
+
$plugins = array();
|
115 |
+
if(count($active_plugins) > 0)
|
116 |
+
{
|
117 |
+
$get_plugins = array();
|
118 |
+
foreach ($active_plugins as $plugin)
|
119 |
+
{
|
120 |
+
$plugin_data = @get_plugin_data(WP_PLUGIN_DIR . "/" . $plugin);
|
121 |
+
|
122 |
+
$get_plugins["plugin_name"] = strip_tags($plugin_data["Name"]);
|
123 |
+
$get_plugins["plugin_author"] = strip_tags($plugin_data["Author"]);
|
124 |
+
$get_plugins["plugin_version"] = strip_tags($plugin_data["Version"]);
|
125 |
+
array_push($plugins,$get_plugins);
|
126 |
+
}
|
127 |
+
return $plugins;
|
128 |
+
}
|
129 |
+
}
|
130 |
+
}
|
131 |
+
}
|
132 |
+
if(!function_exists("deactivation_function_for_gallery_bank"))
|
133 |
+
{
|
134 |
+
function deactivation_function_for_gallery_bank()
|
135 |
+
{
|
136 |
+
$class_plugin_info_gallery_bank = new class_plugin_info_gallery_bank();
|
137 |
+
global $wp_version,$wpdb;
|
138 |
+
|
139 |
+
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
|
140 |
+
$type = get_option("gallery-bank-wizard");
|
141 |
+
|
142 |
+
delete_option("gallery-bank-wizard");
|
143 |
+
|
144 |
+
$theme_details = array();
|
145 |
+
|
146 |
+
if($wp_version >= 3.4)
|
147 |
+
{
|
148 |
+
$active_theme = wp_get_theme();
|
149 |
+
$theme_details["theme_name"] = strip_tags($active_theme->Name);
|
150 |
+
$theme_details["theme_version"] = strip_tags($active_theme->Version);
|
151 |
+
$theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
|
152 |
+
}
|
153 |
+
|
154 |
+
$plugin_stat_data = array();
|
155 |
+
$plugin_stat_data["plugin_slug"] = "gallery-bank";
|
156 |
+
$plugin_stat_data["type"] = "standard_edition";
|
157 |
+
$plugin_stat_data["version_number"] = gallery_bank_version_number;
|
158 |
+
$plugin_stat_data["status"] = $type;
|
159 |
+
$plugin_stat_data["event"] = "de-activate";
|
160 |
+
$plugin_stat_data["domain_url"] = site_url();
|
161 |
+
|
162 |
+
switch($type)
|
163 |
+
{
|
164 |
+
case "opt_in" :
|
165 |
+
$plugin_stat_data["email"] = get_option("admin_email");
|
166 |
+
$plugin_stat_data["wp_version"] = $wp_version;
|
167 |
+
$plugin_stat_data["php_version"] = esc_html(phpversion());
|
168 |
+
$plugin_stat_data["mysql_version"] = $wpdb->db_version();
|
169 |
+
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
170 |
+
$plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
|
171 |
+
$plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
|
172 |
+
$plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
|
173 |
+
$plugin_stat_data["extensions"] = get_loaded_extensions();
|
174 |
+
$plugin_stat_data["plugins"] = $class_plugin_info_gallery_bank->get_plugin_info();
|
175 |
+
$plugin_stat_data["themes"] = $theme_details;
|
176 |
+
break;
|
177 |
+
}
|
178 |
+
if(function_exists("curl_init"))
|
179 |
+
{
|
180 |
+
$ch = curl_init();
|
181 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
182 |
+
curl_setopt($ch, CURLOPT_POST, 1);
|
183 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
|
184 |
+
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
185 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
186 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
187 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS,
|
188 |
+
http_build_query(array( "data" => serialize($plugin_stat_data), "site_id" => get_option("gallery_bank_site_id") !="" ? get_option("gallery_bank_site_id") : "", "action"=>"plugin_analysis_data")));
|
189 |
+
$result = curl_exec($ch);
|
190 |
+
update_option("gallery_bank_site_id",$result);
|
191 |
+
curl_close($ch);
|
192 |
+
}
|
193 |
+
else
|
194 |
+
{
|
195 |
+
$response = wp_safe_remote_post($url, array
|
196 |
+
(
|
197 |
+
"method" => "POST",
|
198 |
+
"timeout" => 45,
|
199 |
+
"redirection" => 5,
|
200 |
+
"httpversion" => "1.0",
|
201 |
+
"blocking" => true,
|
202 |
+
"headers" => array(),
|
203 |
+
"body" => array( "data" => serialize($plugin_stat_data), "site_id" => get_option("gallery_bank_site_id") != "" ? get_option("gallery_bank_site_id") : "","action"=>"plugin_analysis_data")
|
204 |
+
));
|
205 |
+
|
206 |
+
if(!is_wp_error($response))
|
207 |
+
{
|
208 |
+
$response["body"] != "" ? update_option("gallery_bank_site_id", $response["body"]) : "";
|
209 |
+
}
|
210 |
+
else
|
211 |
+
{
|
212 |
+
update_option("gallery_bank_site_id", "error");
|
213 |
+
}
|
214 |
+
}
|
215 |
+
}
|
216 |
+
}
|
217 |
+
|
218 |
+
|
219 |
if(!function_exists("plugin_uninstall_script_for_gallery_bank"))
|
220 |
{
|
221 |
function plugin_uninstall_script_for_gallery_bank()
|
222 |
{
|
223 |
wp_clear_scheduled_hook("gallery_bank_auto_update");
|
224 |
+
$class_plugin_info_gallery_bank = new class_plugin_info_gallery_bank();
|
225 |
+
global $wp_version,$wpdb;
|
226 |
+
|
227 |
+
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
|
228 |
+
$type = get_option("gallery-bank-wizard");
|
229 |
+
|
230 |
+
delete_option("gallery-bank-wizard");
|
231 |
+
|
232 |
+
$theme_details = array();
|
233 |
+
|
234 |
+
if($wp_version >= 3.4)
|
235 |
+
{
|
236 |
+
$active_theme = wp_get_theme();
|
237 |
+
$theme_details["theme_name"] = strip_tags($active_theme->Name);
|
238 |
+
$theme_details["theme_version"] = strip_tags($active_theme->Version);
|
239 |
+
$theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
|
240 |
+
}
|
241 |
+
|
242 |
+
$plugin_stat_data = array();
|
243 |
+
$plugin_stat_data["plugin_slug"] = "gallery-bank";
|
244 |
+
$plugin_stat_data["type"] = "standard_edition";
|
245 |
+
$plugin_stat_data["version_number"] = gallery_bank_version_number;
|
246 |
+
$plugin_stat_data["status"] = $type;
|
247 |
+
$plugin_stat_data["event"] = "uninstall";
|
248 |
+
$plugin_stat_data["domain_url"] = site_url();
|
249 |
+
|
250 |
+
switch($type)
|
251 |
+
{
|
252 |
+
case "opt_in" :
|
253 |
+
$plugin_stat_data["email"] = get_option("admin_email");
|
254 |
+
$plugin_stat_data["wp_version"] = $wp_version;
|
255 |
+
$plugin_stat_data["php_version"] = esc_html(phpversion());
|
256 |
+
$plugin_stat_data["mysql_version"] = $wpdb->db_version();
|
257 |
+
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
258 |
+
$plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
|
259 |
+
$plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
|
260 |
+
$plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
|
261 |
+
$plugin_stat_data["extensions"] = get_loaded_extensions();
|
262 |
+
$plugin_stat_data["plugins"] = $class_plugin_info_gallery_bank->get_plugin_info();
|
263 |
+
$plugin_stat_data["themes"] = $theme_details;
|
264 |
+
break;
|
265 |
+
}
|
266 |
+
if(function_exists("curl_init"))
|
267 |
+
{
|
268 |
+
$ch = curl_init();
|
269 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
270 |
+
curl_setopt($ch, CURLOPT_POST, 1);
|
271 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
|
272 |
+
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
273 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
274 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
275 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS,
|
276 |
+
http_build_query(array( "data" => serialize($plugin_stat_data), "site_id" => get_option("gallery_bank_site_id") !="" ? get_option("gallery_bank_site_id") : "", "action"=>"plugin_analysis_data")));
|
277 |
+
$result = curl_exec($ch);
|
278 |
+
update_option("gallery_bank_site_id",$result);
|
279 |
+
curl_close($ch);
|
280 |
+
}
|
281 |
+
else
|
282 |
+
{
|
283 |
+
$response = wp_safe_remote_post($url, array
|
284 |
+
(
|
285 |
+
"method" => "POST",
|
286 |
+
"timeout" => 45,
|
287 |
+
"redirection" => 5,
|
288 |
+
"httpversion" => "1.0",
|
289 |
+
"blocking" => true,
|
290 |
+
"headers" => array(),
|
291 |
+
"body" => array( "data" => serialize($plugin_stat_data), "site_id" => get_option("gallery_bank_site_id") != "" ? get_option("gallery_bank_site_id") : "","action"=>"plugin_analysis_data")
|
292 |
+
));
|
293 |
+
|
294 |
+
if(!is_wp_error($response))
|
295 |
+
{
|
296 |
+
$response["body"] != "" ? update_option("gallery_bank_site_id", $response["body"]) : "";
|
297 |
+
}
|
298 |
+
else
|
299 |
+
{
|
300 |
+
update_option("gallery_bank_site_id", "error");
|
301 |
+
}
|
302 |
+
}
|
303 |
}
|
304 |
}
|
305 |
/*************************************************************************************/
|
665 |
add_action("plugins_loaded", "gallery_bank_plugin_load_text_domain");
|
666 |
add_action("in_plugin_update_message-".GALLERY_FILE,"gallery_bank_plugin_update_message");
|
667 |
register_activation_hook(__FILE__, "plugin_install_script_for_gallery_bank");
|
668 |
+
register_deactivation_hook(__FILE__, "deactivation_function_for_gallery_bank");
|
669 |
register_uninstall_hook(__FILE__, "plugin_uninstall_script_for_gallery_bank");
|
670 |
/*************************************************************************************/
|
671 |
?>
|
lib/add-new-album-class.php
CHANGED
@@ -20,6 +20,33 @@ if (!current_user_can($user_role_permission))
|
|
20 |
}
|
21 |
else
|
22 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
if(!function_exists("process_image_upload"))
|
24 |
{
|
25 |
function process_image_upload($image, $width, $height)
|
@@ -129,6 +156,90 @@ else
|
|
129 |
{
|
130 |
switch(esc_attr($_REQUEST["param"]))
|
131 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
case "add_new_dynamic_row_for_image":
|
133 |
$img_path = isset($_REQUEST["img_path"]) ? esc_attr($_REQUEST["img_path"]) : "";
|
134 |
$img_name = isset($_REQUEST["img_name"]) ? esc_attr($_REQUEST["img_name"]) : "";
|
20 |
}
|
21 |
else
|
22 |
{
|
23 |
+
if(!class_exists("class_plugin_info_gallery_bank"))
|
24 |
+
{
|
25 |
+
class class_plugin_info_gallery_bank
|
26 |
+
{
|
27 |
+
function get_plugin_info()
|
28 |
+
{
|
29 |
+
$active_plugins = (array)get_option("active_plugins", array());
|
30 |
+
if (is_multisite())
|
31 |
+
$active_plugins = array_merge($active_plugins, get_site_option("active_sitewide_plugins", array()));
|
32 |
+
$plugins = array();
|
33 |
+
if(count($active_plugins) > 0)
|
34 |
+
{
|
35 |
+
$get_plugins = array();
|
36 |
+
foreach ($active_plugins as $plugin)
|
37 |
+
{
|
38 |
+
$plugin_data = @get_plugin_data(WP_PLUGIN_DIR . "/" . $plugin);
|
39 |
+
|
40 |
+
$get_plugins["plugin_name"] = strip_tags($plugin_data["Name"]);
|
41 |
+
$get_plugins["plugin_author"] = strip_tags($plugin_data["Author"]);
|
42 |
+
$get_plugins["plugin_version"] = strip_tags($plugin_data["Version"]);
|
43 |
+
array_push($plugins,$get_plugins);
|
44 |
+
}
|
45 |
+
return $plugins;
|
46 |
+
}
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|
50 |
if(!function_exists("process_image_upload"))
|
51 |
{
|
52 |
function process_image_upload($image, $width, $height)
|
156 |
{
|
157 |
switch(esc_attr($_REQUEST["param"]))
|
158 |
{
|
159 |
+
case "wizard_gallery" :
|
160 |
+
if(wp_verify_nonce((isset($_REQUEST["_wp_nonce"]) ? esc_attr($_REQUEST["_wp_nonce"]) : ""), "gallery_bank_check_status"))
|
161 |
+
{
|
162 |
+
$class_plugin_info_gallery_bank = new class_plugin_info_gallery_bank();
|
163 |
+
global $wp_version;
|
164 |
+
|
165 |
+
$url = tech_banker_stats_url."/wp-admin/admin-ajax.php";
|
166 |
+
$type = isset($_REQUEST["type"]) ? esc_attr($_REQUEST["type"]) : "";
|
167 |
+
|
168 |
+
update_option("gallery-bank-wizard", $type);
|
169 |
+
|
170 |
+
$theme_details = array();
|
171 |
+
|
172 |
+
if($wp_version >= 3.4)
|
173 |
+
{
|
174 |
+
$active_theme = wp_get_theme();
|
175 |
+
$theme_details["theme_name"] = strip_tags($active_theme->Name);
|
176 |
+
$theme_details["theme_version"] = strip_tags($active_theme->Version);
|
177 |
+
$theme_details["author_url"] = strip_tags($active_theme->{"Author URI"});
|
178 |
+
}
|
179 |
+
|
180 |
+
$plugin_stat_data = array();
|
181 |
+
$plugin_stat_data["plugin_slug"] = "gallery-bank";
|
182 |
+
$plugin_stat_data["type"] = "standard_edition";
|
183 |
+
$plugin_stat_data["version_number"] = gallery_bank_version_number;
|
184 |
+
$plugin_stat_data["status"] = $type;
|
185 |
+
$plugin_stat_data["event"] = "activate";
|
186 |
+
$plugin_stat_data["domain_url"] = site_url();
|
187 |
+
|
188 |
+
switch($type)
|
189 |
+
{
|
190 |
+
case "opt_in" :
|
191 |
+
$plugin_stat_data["email"] = get_option("admin_email");
|
192 |
+
$plugin_stat_data["wp_version"] = $wp_version;
|
193 |
+
$plugin_stat_data["php_version"] = esc_html(phpversion());
|
194 |
+
$plugin_stat_data["mysql_version"] = $wpdb->db_version();
|
195 |
+
$plugin_stat_data["wp_language"] = defined("WPLANG") && WPLANG ? WPLANG : get_locale();
|
196 |
+
$plugin_stat_data["max_input_vars"] = ini_get("max_input_vars");
|
197 |
+
$plugin_stat_data["operating_system"] = PHP_OS ." (".PHP_INT_SIZE * 8 .") BIT";
|
198 |
+
$plugin_stat_data["php_memory_limit"] = ini_get("memory_limit") ? ini_get("memory_limit") : "N/A";
|
199 |
+
$plugin_stat_data["extensions"] = get_loaded_extensions();
|
200 |
+
$plugin_stat_data["plugins"] = $class_plugin_info_gallery_bank->get_plugin_info();
|
201 |
+
$plugin_stat_data["themes"] = $theme_details;
|
202 |
+
break;
|
203 |
+
}
|
204 |
+
if(function_exists("curl_init"))
|
205 |
+
{
|
206 |
+
$ch = curl_init();
|
207 |
+
curl_setopt($ch, CURLOPT_URL, $url);
|
208 |
+
curl_setopt($ch, CURLOPT_POST, 1);
|
209 |
+
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
|
210 |
+
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
|
211 |
+
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
212 |
+
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
213 |
+
curl_setopt($ch, CURLOPT_POSTFIELDS,
|
214 |
+
http_build_query(array( "data" => serialize($plugin_stat_data), "site_id" => get_option("gallery_bank_site_id") !="" ? get_option("gallery_bank_site_id") : "", "action"=>"plugin_analysis_data")));
|
215 |
+
$result = curl_exec($ch);
|
216 |
+
update_option("gallery_bank_site_id",$result);
|
217 |
+
curl_close($ch);
|
218 |
+
}
|
219 |
+
else
|
220 |
+
{
|
221 |
+
$response = wp_safe_remote_post($url, array
|
222 |
+
(
|
223 |
+
"method" => "POST",
|
224 |
+
"timeout" => 45,
|
225 |
+
"redirection" => 5,
|
226 |
+
"httpversion" => "1.0",
|
227 |
+
"blocking" => true,
|
228 |
+
"headers" => array(),
|
229 |
+
"body" => array( "data" => serialize($plugin_stat_data), "site_id" => get_option("gallery_bank_site_id") != "" ? get_option("gallery_bank_site_id") : "","action"=>"plugin_analysis_data")
|
230 |
+
));
|
231 |
+
|
232 |
+
if(!is_wp_error($response))
|
233 |
+
{
|
234 |
+
$response["body"] != "" ? update_option("gallery_bank_site_id", $response["body"]) : "";
|
235 |
+
}
|
236 |
+
else
|
237 |
+
{
|
238 |
+
update_option("gallery_bank_site_id", "error");
|
239 |
+
}
|
240 |
+
}
|
241 |
+
}
|
242 |
+
break;
|
243 |
case "add_new_dynamic_row_for_image":
|
244 |
$img_path = isset($_REQUEST["img_path"]) ? esc_attr($_REQUEST["img_path"]) : "";
|
245 |
$img_name = isset($_REQUEST["img_name"]) ? esc_attr($_REQUEST["img_name"]) : "";
|
lib/gallery-bank-class.php
CHANGED
@@ -18,53 +18,80 @@ if(!function_exists("create_global_menus_for_gallery_bank"))
|
|
18 |
$current_user->role = array_keys($current_user->$gb_role);
|
19 |
$gb_role = $current_user->role[0];
|
20 |
}
|
|
|
|
|
|
|
21 |
switch ($gb_role) {
|
22 |
case "administrator":
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
add_submenu_page("gallery_bank", "
|
33 |
-
add_submenu_page("gallery_bank", "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
add_submenu_page("", "", "", "read", "view_album", "view_album");
|
35 |
add_submenu_page("", "", "", "read", "album_preview", "album_preview");
|
36 |
add_submenu_page("", "", "", "read", "save_album", "save_album");
|
37 |
add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
|
38 |
break;
|
39 |
case "editor":
|
|
|
|
|
40 |
add_menu_page("Gallery Bank", __("Gallery Bank", "gallery-bank"), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
add_submenu_page("
|
46 |
-
|
47 |
-
add_submenu_page("gallery_bank", "
|
48 |
-
add_submenu_page("gallery_bank", "
|
49 |
-
add_submenu_page("gallery_bank", "
|
50 |
-
add_submenu_page("gallery_bank", "
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
add_submenu_page("", "", "", "read", "view_album", "view_album");
|
52 |
add_submenu_page("", "", "", "read", "album_preview", "album_preview");
|
53 |
add_submenu_page("", "", "", "read", "save_album", "save_album");
|
54 |
add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
|
55 |
break;
|
56 |
case "author":
|
|
|
|
|
57 |
add_menu_page("Gallery Bank", __("Gallery Bank", "gallery-bank"), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
add_submenu_page("
|
63 |
-
|
64 |
-
add_submenu_page("gallery_bank", "
|
65 |
-
add_submenu_page("gallery_bank", "
|
66 |
-
add_submenu_page("gallery_bank", "
|
67 |
-
add_submenu_page("gallery_bank", "
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
add_submenu_page("", "", "", "read", "view_album", "view_album");
|
69 |
add_submenu_page("", "", "", "read", "album_preview", "album_preview");
|
70 |
add_submenu_page("", "", "", "read", "save_album", "save_album");
|
@@ -104,6 +131,27 @@ if(!function_exists("gallery_bank_settings"))
|
|
104 |
//--------------------------------------------------------------------------------------------------------------//
|
105 |
// CODE FOR CREATING PAGES
|
106 |
//---------------------------------------------------------------------------------------------------------------//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
if(!function_exists("gallery_bank"))
|
108 |
{
|
109 |
function gallery_bank()
|
@@ -440,6 +488,7 @@ if(!function_exists("gallery_bank_feature_request"))
|
|
440 |
}
|
441 |
}
|
442 |
}
|
|
|
443 |
//--------------------------------------------------------------------------------------------------------------//
|
444 |
//CODE FOR CALLING JAVASCRIPT FUNCTIONS
|
445 |
//--------------------------------------------------------------------------------------------------------------//
|
18 |
$current_user->role = array_keys($current_user->$gb_role);
|
19 |
$gb_role = $current_user->role[0];
|
20 |
}
|
21 |
+
$gallery_bank_wizard = get_option("gallery-bank-wizard");
|
22 |
+
global $wp_version;
|
23 |
+
|
24 |
switch ($gb_role) {
|
25 |
case "administrator":
|
26 |
+
if(get_option("gallery-bank-wizard"))
|
27 |
+
{
|
28 |
+
add_menu_page("Gallery Bank", __("Gallery Bank", "gallery-bank"), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
29 |
+
}
|
30 |
+
else
|
31 |
+
{
|
32 |
+
add_menu_page("Gallery Bank", __("Gallery Bank", "gallery-bank"), "read","gallery_bank_wizard","",plugins_url("assets/images/icon.png",dirname(__FILE__)));
|
33 |
+
add_submenu_page("Gallery Bank", __("Gallery Bank", "gallery-bank") ,"","read","gallery_bank_wizard", "gallery_bank_wizard");
|
34 |
+
}
|
35 |
+
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", "gallery-bank"), "read", "gallery_bank", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank");
|
36 |
+
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", "gallery-bank"), "read", "gallery_bank_shortcode", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_shortcode");
|
37 |
+
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", "gallery-bank"), "read", "gallery_album_sorting", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_album_sorting");
|
38 |
+
add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", "gallery-bank"), "read", "global_settings", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "global_settings");
|
39 |
+
add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", "gallery-bank"), "read", "gallery_auto_plugin_update", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_auto_plugin_update");
|
40 |
+
add_submenu_page("gallery_bank", "Feature Requests", __("Feature Requests", "gallery-bank"), "read", "gallery_bank_feature_request", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_feature_request");
|
41 |
+
add_submenu_page("gallery_bank", "System Status", __("System Status", "gallery-bank"), "read", "gallery_bank_system_status", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_system_status");
|
42 |
+
add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", "gallery-bank"), "read", "gallery_bank_recommended_plugins", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_recommended_plugins");
|
43 |
+
add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", "gallery-bank"), "read", "gallery_bank_purchase", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_purchase");
|
44 |
+
add_submenu_page("gallery_bank", " Our Other Services ", __("Our Other Services", "gallery-bank"), "read", "gallery_bank_other_services", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_other_services");
|
45 |
add_submenu_page("", "", "", "read", "view_album", "view_album");
|
46 |
add_submenu_page("", "", "", "read", "album_preview", "album_preview");
|
47 |
add_submenu_page("", "", "", "read", "save_album", "save_album");
|
48 |
add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
|
49 |
break;
|
50 |
case "editor":
|
51 |
+
if(get_option("gallery-bank-wizard"))
|
52 |
+
{
|
53 |
add_menu_page("Gallery Bank", __("Gallery Bank", "gallery-bank"), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
54 |
+
}
|
55 |
+
else
|
56 |
+
{
|
57 |
+
add_menu_page("Gallery Bank", __("Gallery Bank", "gallery-bank"), "read","gallery_bank_wizard","",plugins_url("assets/global/img/icon.png",dirname(__FILE__)));
|
58 |
+
add_submenu_page("Gallery Bank", __("Gallery Bank", "gallery-bank") ,"","read","gallery_bank_wizard", "gallery_bank_wizard");
|
59 |
+
}
|
60 |
+
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", "gallery-bank"), "read", "gallery_bank", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank");
|
61 |
+
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", "gallery-bank"), "read", "gallery_bank_shortcode", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_shortcode");
|
62 |
+
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", "gallery-bank"), "read", "gallery_album_sorting", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_album_sorting");
|
63 |
+
add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", "gallery-bank"), "read", "global_settings", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "global_settings");
|
64 |
+
add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", "gallery-bank"), "read", "gallery_auto_plugin_update", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_auto_plugin_update");
|
65 |
+
add_submenu_page("gallery_bank", "Feature Requests", __("Feature Requests", "gallery-bank"), "read", "gallery_bank_feature_request", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_feature_request");
|
66 |
+
add_submenu_page("gallery_bank", "System Status", __("System Status", "gallery-bank"), "read", "gallery_bank_system_status", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_system_status");
|
67 |
+
add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", "gallery-bank"), "read", "gallery_bank_recommended_plugins", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_recommended_plugins");
|
68 |
+
add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", "gallery-bank"), "read", "gallery_bank_purchase", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_purchase");
|
69 |
+
add_submenu_page("gallery_bank", " Our Other Services ", __("Our Other Services", "gallery-bank"), "read", "gallery_bank_other_services", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_other_services");
|
70 |
add_submenu_page("", "", "", "read", "view_album", "view_album");
|
71 |
add_submenu_page("", "", "", "read", "album_preview", "album_preview");
|
72 |
add_submenu_page("", "", "", "read", "save_album", "save_album");
|
73 |
add_submenu_page("", "", "", "read", "images_sorting", "images_sorting");
|
74 |
break;
|
75 |
case "author":
|
76 |
+
if(get_option("gallery-bank-wizard"))
|
77 |
+
{
|
78 |
add_menu_page("Gallery Bank", __("Gallery Bank", "gallery-bank"), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
|
79 |
+
}
|
80 |
+
else
|
81 |
+
{
|
82 |
+
add_menu_page("Gallery Bank", __("Gallery Bank", "gallery-bank"), "read","gallery_bank_wizard","",plugins_url("assets/global/img/icon.png",dirname(__FILE__)));
|
83 |
+
add_submenu_page("Gallery Bank", __("Gallery Bank", "gallery-bank") ,"","read","gallery_bank_wizard", "gallery_bank_wizard");
|
84 |
+
}
|
85 |
+
add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", "gallery-bank"), "read", "gallery_bank", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank");
|
86 |
+
add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", "gallery-bank"), "read", "gallery_bank_shortcode", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_shortcode");
|
87 |
+
add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", "gallery-bank"), "read", "gallery_album_sorting", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_album_sorting");
|
88 |
+
add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", "gallery-bank"), "read", "global_settings", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "global_settings");
|
89 |
+
add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", "gallery-bank"), "read", "gallery_auto_plugin_update", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_auto_plugin_update");
|
90 |
+
add_submenu_page("gallery_bank", "Feature Requests", __("Feature Requests", "gallery-bank"), "read", "gallery_bank_feature_request", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_feature_request");
|
91 |
+
add_submenu_page("gallery_bank", "System Status", __("System Status", "gallery-bank"), "read", "gallery_bank_system_status", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_system_status");
|
92 |
+
add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", "gallery-bank"), "read", "gallery_bank_recommended_plugins", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_recommended_plugins");
|
93 |
+
add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", "gallery-bank"), "read", "gallery_bank_purchase", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_purchase");
|
94 |
+
add_submenu_page("gallery_bank", " Our Other Services ", __("Our Other Services", "gallery-bank"), "read", "gallery_bank_other_services", $gallery_bank_wizard == "" ? "gallery_bank_wizard" : "gallery_bank_other_services");
|
95 |
add_submenu_page("", "", "", "read", "view_album", "view_album");
|
96 |
add_submenu_page("", "", "", "read", "album_preview", "album_preview");
|
97 |
add_submenu_page("", "", "", "read", "save_album", "save_album");
|
131 |
//--------------------------------------------------------------------------------------------------------------//
|
132 |
// CODE FOR CREATING PAGES
|
133 |
//---------------------------------------------------------------------------------------------------------------//
|
134 |
+
if(!function_exists("gallery_bank_wizard"))
|
135 |
+
{
|
136 |
+
function gallery_bank_wizard()
|
137 |
+
{
|
138 |
+
global $wpdb,$current_user,$user_role_permission;
|
139 |
+
if(is_super_admin())
|
140 |
+
{
|
141 |
+
$gb_role = "administrator";
|
142 |
+
}
|
143 |
+
else
|
144 |
+
{
|
145 |
+
$gb_role = $wpdb->prefix . "capabilities";
|
146 |
+
$current_user->role = array_keys($current_user->$gb_role);
|
147 |
+
$gb_role = $current_user->role[0];
|
148 |
+
}
|
149 |
+
if(file_exists(GALLERY_BK_PLUGIN_DIR . "/views/wizard.php"))
|
150 |
+
{
|
151 |
+
include_once GALLERY_BK_PLUGIN_DIR . "/views/wizard.php";
|
152 |
+
}
|
153 |
+
}
|
154 |
+
}
|
155 |
if(!function_exists("gallery_bank"))
|
156 |
{
|
157 |
function gallery_bank()
|
488 |
}
|
489 |
}
|
490 |
}
|
491 |
+
|
492 |
//--------------------------------------------------------------------------------------------------------------//
|
493 |
//CODE FOR CALLING JAVASCRIPT FUNCTIONS
|
494 |
//--------------------------------------------------------------------------------------------------------------//
|
lib/install-script.php
CHANGED
@@ -185,6 +185,7 @@ else
|
|
185 |
$version = get_option("gallery-bank-pro-edition");
|
186 |
if($version == "")
|
187 |
{
|
|
|
188 |
if (count($wpdb->get_var("SHOW TABLES LIKE '" . gallery_bank_albums() . "'")) == 0)
|
189 |
{
|
190 |
create_table_albums();
|
185 |
$version = get_option("gallery-bank-pro-edition");
|
186 |
if($version == "")
|
187 |
{
|
188 |
+
|
189 |
if (count($wpdb->get_var("SHOW TABLES LIKE '" . gallery_bank_albums() . "'")) == 0)
|
190 |
{
|
191 |
create_table_albums();
|
readme.txt
CHANGED
@@ -1,16 +1,18 @@
|
|
1 |
-
=== Gallery
|
2 |
-
Contributors: Gallery-Bank,contact-banker
|
3 |
-
Tags: album, gallery,
|
4 |
Requires at least: 3.4
|
5 |
-
Tested up to: 4.7.
|
6 |
-
Stable
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
10 |
-
Gallery Bank is an
|
11 |
|
12 |
== Description ==
|
13 |
|
|
|
|
|
14 |
**Gallery Bank** is a WordPress Gallery Plugin designed to create Elegant and Beautiful **Photo Gallery Albums** along with Images and videos using Grid Albums, List Albums, Individual Albums, Masonry Layouts and Thumbnail Layouts along with Special Effects and Animation Effects.
|
15 |
|
16 |
**Gallery Bank** is the only available WordPress Plugin in the market with extra-ordinary features. It is loaded with 200+ features and creates stunning Photo Galleries on any WordPress site.
|
@@ -64,7 +66,7 @@ Gallery Bank Regularly updates and simplicity of usage along with efficient func
|
|
64 |
|
65 |
[vimeo https://vimeo.com/92378296]
|
66 |
|
67 |
-
**[Support Desk - Feel Free to ask your Queries](http://tech-banker.com/
|
68 |
|
69 |
**[Knowledge Base](http://tech-banker.com/products/wp-gallery-bank/knowledge-base/)**
|
70 |
|
@@ -76,13 +78,13 @@ Gallery Bank Regularly updates and simplicity of usage along with efficient func
|
|
76 |
|
77 |
* Multi-Lingual. Available now in 36 Languages.
|
78 |
* Responsive Photo Gallery
|
79 |
-
*
|
80 |
* Unlimited Albums Creation(Premium Versions). With Free Standard Version, you can only create upto 3 albums.
|
81 |
* Unlimited Images in each Album.
|
82 |
-
* Edit Albums and add/
|
83 |
* Bulk Upload of Images
|
84 |
* Url Redirect to redirect on click of an image.
|
85 |
-
* Upload Videos from Youtube,Vimeo
|
86 |
* Set Cover Image
|
87 |
* Compact Albums
|
88 |
* Extended Albums
|
@@ -101,34 +103,34 @@ Gallery Bank Regularly updates and simplicity of usage along with efficient func
|
|
101 |
* Special Effects on Images & Albums
|
102 |
* Animation Effects on Images & Albums
|
103 |
* Bulk Deletion of Images
|
104 |
-
* Fully CSS3 compliant with text shadowing, box shadowing, gradients, etc
|
105 |
* Sorting of Images
|
106 |
* Sorting of Albums
|
107 |
* Social Sharing
|
108 |
* Commenting on Images
|
109 |
* Widgets
|
110 |
-
* Tags for each Image to make
|
111 |
* Bulk Deletion of Albums
|
112 |
* Purging Albums and Images
|
113 |
* Restore Factory Settings
|
114 |
* Global Settings
|
115 |
* Thumbnail Settings
|
116 |
* Album Settings
|
117 |
-
*
|
118 |
-
* Different
|
119 |
* Pagination
|
120 |
* Filter Settings
|
121 |
* Roles & Capabilities
|
122 |
* Front End Layout Settings
|
123 |
* See your media on different theme and more.
|
124 |
-
*
|
125 |
* 24/7 Technical Support
|
126 |
|
127 |
Visit [here](http://tech-banker.com/products/wp-gallery-bank/) to upgrade to Pro Editions now.
|
128 |
|
129 |
= Add New Albums using Gallery Bank =
|
130 |
|
131 |
-
You can add
|
132 |
|
133 |
= Editing Albums using Gallery Bank =
|
134 |
|
@@ -144,19 +146,19 @@ Sorting of Albums can be done in your albums. With this feature, you can re-arra
|
|
144 |
|
145 |
= Album Preview using Gallery Bank =
|
146 |
|
147 |
-
In album preview you can view the pictures/images on your back-end before implementing the
|
148 |
|
149 |
= Cover Image using Gallery Bank =
|
150 |
|
151 |
-
You can easily set the cover image in your album. This cover image would be used to display on your Pages/Post when using the Album
|
152 |
|
153 |
= Short Codes using Gallery Bank =
|
154 |
|
155 |
-
There is a
|
156 |
|
157 |
= Global Settings using Gallery Bank =
|
158 |
|
159 |
-
With Global Settings, you can define different settings for Thumbnails, Albums,
|
160 |
|
161 |
= Gallery Bank is now available in the following Languages =
|
162 |
|
@@ -234,7 +236,7 @@ After downloading the ZIP file,
|
|
234 |
== Other Notes ==
|
235 |
|
236 |
= Minimum requirements for Gallery Bank. =
|
237 |
-
*
|
238 |
* PHP 5.x
|
239 |
* MySQL 5.x
|
240 |
|
@@ -301,7 +303,7 @@ Click on "OK" to proceed and your Album would be deleted.
|
|
301 |
|
302 |
= How to set Short code for Masonry Gallery? =
|
303 |
|
304 |
-
In order to set
|
305 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
306 |
|
307 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
@@ -317,14 +319,14 @@ Once you click on the Pages, there will be two options. Click on Add New button
|
|
317 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry3-1024x451.png)
|
318 |
|
319 |
NOTE: You can set Images in Row for Masonry Gallery only if Show Responsive Gallery
|
320 |
-
option is False in
|
321 |
|
322 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry4-1024x657.png)
|
323 |
|
324 |
|
325 |
= How to set Short code for Thumbnail Gallery? =
|
326 |
|
327 |
-
In order to set
|
328 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
329 |
|
330 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
@@ -340,14 +342,14 @@ Once you click on the Pages, there will be two options. Click on Add New button
|
|
340 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thumbnail1-1024x493.png)
|
341 |
|
342 |
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery option
|
343 |
-
is False in
|
344 |
|
345 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thmbnail2-1024x450.png)
|
346 |
|
347 |
|
348 |
= How to set Short code for Grid Album using Masonry Gallery? =
|
349 |
|
350 |
-
In order to set
|
351 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
352 |
|
353 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
@@ -363,14 +365,14 @@ Once you click on the Pages, there will be two options. Click on Add New button
|
|
363 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_masonry1-1024x541.png)
|
364 |
|
365 |
Note: You can set Images in Row for Masonry Gallery only if Show Responsive Gallery option
|
366 |
-
is False in
|
367 |
|
368 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_masonry2-1024x573.png)
|
369 |
|
370 |
|
371 |
= How to set Short code for Grid Album using Thumbnail Gallery? =
|
372 |
|
373 |
-
In order to set
|
374 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
375 |
|
376 |
Once you click on the Pages, this page would open. Click on Add New button to add a new page.
|
@@ -386,14 +388,14 @@ Once you click on the Pages, this page would open. Click on Add New button to ad
|
|
386 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_thumbnail2-1024x574.png)
|
387 |
|
388 |
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery
|
389 |
-
option is False in
|
390 |
|
391 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_thumbnail2-1024x574.png)
|
392 |
|
393 |
|
394 |
= How to set Short code for List Album using Masonry Gallery? =
|
395 |
|
396 |
-
In order to set
|
397 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
398 |
|
399 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
@@ -411,7 +413,7 @@ Once you click on the Pages, there will be two options. Click on Add New button
|
|
411 |
|
412 |
= How to set Short code for List Album using Thumbnail Gallery? =
|
413 |
|
414 |
-
In order to set
|
415 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
416 |
|
417 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
@@ -427,14 +429,14 @@ Once you click on the Pages, there will be two options. Click on Add New button
|
|
427 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thumbnail_list_1-1024x467.png)
|
428 |
|
429 |
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery option
|
430 |
-
is False in
|
431 |
|
432 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thumbnail_list_2-1024x462.png)
|
433 |
|
434 |
|
435 |
= How to set Short code for Individual Album using Masonry Gallery? =
|
436 |
|
437 |
-
In order to set
|
438 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
439 |
|
440 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
@@ -450,14 +452,14 @@ Once you click on the Pages, there will be two options. Click on Add New button
|
|
450 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/individual_masonry1-1024x495.png)
|
451 |
|
452 |
NOTE: You can set Images in Row for Masonry Gallery only if Show Responsive Gallery option
|
453 |
-
is False in
|
454 |
|
455 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/individual_masonry_2-1024x559.png)
|
456 |
|
457 |
|
458 |
= How to set Short code for Individual Album using Thumbnail Gallery? =
|
459 |
|
460 |
-
In order to set
|
461 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
462 |
|
463 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
@@ -482,15 +484,15 @@ is False in shortcode.
|
|
482 |
|
483 |
1. Gallery Bank Dashboard Page
|
484 |
2. Add New Album
|
485 |
-
3. How to create
|
486 |
-
4.
|
487 |
-
5.
|
488 |
-
6.
|
489 |
-
7.
|
490 |
-
8.
|
491 |
-
9.
|
492 |
-
10.
|
493 |
-
11.
|
494 |
12. System Status
|
495 |
13. Displaying Images using Masonry Layout.
|
496 |
14. Displaying Images using Thumbnail Layout.
|
@@ -500,12 +502,18 @@ is False in shortcode.
|
|
500 |
|
501 |
== Changelog ==
|
502 |
|
503 |
-
= 3.0.
|
|
|
|
|
|
|
|
|
|
|
|
|
504 |
|
505 |
* Translation Files Updated
|
506 |
-
*
|
507 |
|
508 |
-
= 3.0.31 =
|
509 |
|
510 |
* Obsolete Code removed
|
511 |
* Unused Files removed
|
1 |
+
=== Responsive Photo Gallery for WordPress by Gallery Bank ===
|
2 |
+
Contributors: Gallery-Bank, contact-banker
|
3 |
+
Tags: album, content gallery, fancy gallery, fullscreen gallery, gallery, gallery lightbox, gallery plugin, gallery slider, gallery slideshow, gallery widget, grid gallery, image gallery, masonry gallery, media gallery, mosaic gallery, photo album, photo gallery, polaroid gallery, portfolio gallery, post gallery, responsive gallery, thumbnail gallery, video gallery, wordpress gallery, wordpress gallery plugin, youtube gallery
|
4 |
Requires at least: 3.4
|
5 |
+
Tested up to: 4.7.3
|
6 |
+
Stable Tag: 3.1.33
|
7 |
License: GPLv3 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
10 |
+
Gallery Bank is an advanced plugin which creates Beautiful Photo Galleries and Albums for different views. It is fully responsive.
|
11 |
|
12 |
== Description ==
|
13 |
|
14 |
+
Gallery Bank is a fully responsive WordPress gallery plugin with advanced functionality.
|
15 |
+
|
16 |
**Gallery Bank** is a WordPress Gallery Plugin designed to create Elegant and Beautiful **Photo Gallery Albums** along with Images and videos using Grid Albums, List Albums, Individual Albums, Masonry Layouts and Thumbnail Layouts along with Special Effects and Animation Effects.
|
17 |
|
18 |
**Gallery Bank** is the only available WordPress Plugin in the market with extra-ordinary features. It is loaded with 200+ features and creates stunning Photo Galleries on any WordPress site.
|
66 |
|
67 |
[vimeo https://vimeo.com/92378296]
|
68 |
|
69 |
+
**[Support Desk - Feel Free to ask your Queries](http://tech-banker.com/forum/gallery-bank-support/)**
|
70 |
|
71 |
**[Knowledge Base](http://tech-banker.com/products/wp-gallery-bank/knowledge-base/)**
|
72 |
|
78 |
|
79 |
* Multi-Lingual. Available now in 36 Languages.
|
80 |
* Responsive Photo Gallery
|
81 |
+
* Short code Wizard in your Page/Post.
|
82 |
* Unlimited Albums Creation(Premium Versions). With Free Standard Version, you can only create upto 3 albums.
|
83 |
* Unlimited Images in each Album.
|
84 |
+
* Edit Albums and add/edit/delete images.
|
85 |
* Bulk Upload of Images
|
86 |
* Url Redirect to redirect on click of an image.
|
87 |
+
* Upload Videos from Youtube, Vimeo etc.
|
88 |
* Set Cover Image
|
89 |
* Compact Albums
|
90 |
* Extended Albums
|
103 |
* Special Effects on Images & Albums
|
104 |
* Animation Effects on Images & Albums
|
105 |
* Bulk Deletion of Images
|
106 |
+
* Fully CSS3 compliant with text shadowing, box shadowing, gradients, etc.
|
107 |
* Sorting of Images
|
108 |
* Sorting of Albums
|
109 |
* Social Sharing
|
110 |
* Commenting on Images
|
111 |
* Widgets
|
112 |
+
* Tags for each Image to make Filterable Gallery Album
|
113 |
* Bulk Deletion of Albums
|
114 |
* Purging Albums and Images
|
115 |
* Restore Factory Settings
|
116 |
* Global Settings
|
117 |
* Thumbnail Settings
|
118 |
* Album Settings
|
119 |
+
* Light box Settings
|
120 |
+
* Different Light boxes like FooBox, ColorBox, FancyBox2, Lightbox2, Custom GB Lightbox, Pretty Photo
|
121 |
* Pagination
|
122 |
* Filter Settings
|
123 |
* Roles & Capabilities
|
124 |
* Front End Layout Settings
|
125 |
* See your media on different theme and more.
|
126 |
+
* Powerful control panel and Short code Manager make getting started super easy
|
127 |
* 24/7 Technical Support
|
128 |
|
129 |
Visit [here](http://tech-banker.com/products/wp-gallery-bank/) to upgrade to Pro Editions now.
|
130 |
|
131 |
= Add New Albums using Gallery Bank =
|
132 |
|
133 |
+
You can add up to 3 albums with unlimited images in your Gallery Bank. After that you need to upgrade to one of the Premium Editions for unlimited access with different features available according to different packages of Gallery Bank.
|
134 |
|
135 |
= Editing Albums using Gallery Bank =
|
136 |
|
146 |
|
147 |
= Album Preview using Gallery Bank =
|
148 |
|
149 |
+
In album preview you can view the pictures/images on your back-end before implementing the short codes on your Pages/Posts.
|
150 |
|
151 |
= Cover Image using Gallery Bank =
|
152 |
|
153 |
+
You can easily set the cover image in your album. This cover image would be used to display on your Pages/Post when using the Album short codes.
|
154 |
|
155 |
= Short Codes using Gallery Bank =
|
156 |
|
157 |
+
There is a Short code Editor available in your Page/Post where you want to implement the Gallery Bank Short code. You just need to go to your Page/Post where you want to implement it and then above your Text Editor/ WP Editor, there would be a button called Gallery Bank. Once you click on it, you can generate your short code easily and quickly.
|
158 |
|
159 |
= Global Settings using Gallery Bank =
|
160 |
|
161 |
+
With Global Settings, you can define different settings for Thumbnails, Albums, Light boxes, Filters, Pagination and Slideshows.
|
162 |
|
163 |
= Gallery Bank is now available in the following Languages =
|
164 |
|
236 |
== Other Notes ==
|
237 |
|
238 |
= Minimum requirements for Gallery Bank. =
|
239 |
+
* Word Press 3.3+
|
240 |
* PHP 5.x
|
241 |
* MySQL 5.x
|
242 |
|
303 |
|
304 |
= How to set Short code for Masonry Gallery? =
|
305 |
|
306 |
+
In order to set Short code for Masonry Gallery, you need to follow these steps :
|
307 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
308 |
|
309 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
319 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry3-1024x451.png)
|
320 |
|
321 |
NOTE: You can set Images in Row for Masonry Gallery only if Show Responsive Gallery
|
322 |
+
option is False in short code.
|
323 |
|
324 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/masonry4-1024x657.png)
|
325 |
|
326 |
|
327 |
= How to set Short code for Thumbnail Gallery? =
|
328 |
|
329 |
+
In order to set Short code for Thumbnail Gallery, you need to follow these steps :
|
330 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
331 |
|
332 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
342 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thumbnail1-1024x493.png)
|
343 |
|
344 |
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery option
|
345 |
+
is False in short code.
|
346 |
|
347 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thmbnail2-1024x450.png)
|
348 |
|
349 |
|
350 |
= How to set Short code for Grid Album using Masonry Gallery? =
|
351 |
|
352 |
+
In order to set Short code for Grid Album with Masonry Gallery, you need to follow these steps :
|
353 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
354 |
|
355 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
365 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_masonry1-1024x541.png)
|
366 |
|
367 |
Note: You can set Images in Row for Masonry Gallery only if Show Responsive Gallery option
|
368 |
+
is False in short code.
|
369 |
|
370 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_masonry2-1024x573.png)
|
371 |
|
372 |
|
373 |
= How to set Short code for Grid Album using Thumbnail Gallery? =
|
374 |
|
375 |
+
In order to set Short code for Grid Album with Thumbnail Gallery, you need to follow these steps :
|
376 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
377 |
|
378 |
Once you click on the Pages, this page would open. Click on Add New button to add a new page.
|
388 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_thumbnail2-1024x574.png)
|
389 |
|
390 |
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery
|
391 |
+
option is False in short code.
|
392 |
|
393 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/grid_thumbnail2-1024x574.png)
|
394 |
|
395 |
|
396 |
= How to set Short code for List Album using Masonry Gallery? =
|
397 |
|
398 |
+
In order to set Short code for List Album with Masonry Gallery, you need to follow these steps :
|
399 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
400 |
|
401 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
413 |
|
414 |
= How to set Short code for List Album using Thumbnail Gallery? =
|
415 |
|
416 |
+
In order to set Short code for List Album with Thumbnail Gallery, you need to follow these steps :
|
417 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
418 |
|
419 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
429 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thumbnail_list_1-1024x467.png)
|
430 |
|
431 |
NOTE: You can set Images in Row for Thumbnail Gallery only if Show Responsive Gallery option
|
432 |
+
is False in short code.
|
433 |
|
434 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/thumbnail_list_2-1024x462.png)
|
435 |
|
436 |
|
437 |
= How to set Short code for Individual Album using Masonry Gallery? =
|
438 |
|
439 |
+
In order to set Short code for Individual Album with Masonry Gallery, you need to follow these steps :
|
440 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
441 |
|
442 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
452 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/individual_masonry1-1024x495.png)
|
453 |
|
454 |
NOTE: You can set Images in Row for Masonry Gallery only if Show Responsive Gallery option
|
455 |
+
is False in short code.
|
456 |
|
457 |
[Click here to view the Image](http://tech-banker.com/wp-content/uploads/2013/11/individual_masonry_2-1024x559.png)
|
458 |
|
459 |
|
460 |
= How to set Short code for Individual Album using Thumbnail Gallery? =
|
461 |
|
462 |
+
In order to set Short code for Individual Album with Thumbnail Gallery, you need to follow these steps :
|
463 |
1) Locate Pages Menu on the left side of WordPress Dashboard Menus and then click on Pages.
|
464 |
|
465 |
Once you click on the Pages, there will be two options. Click on Add New button to add a new page.
|
484 |
|
485 |
1. Gallery Bank Dashboard Page
|
486 |
2. Add New Album
|
487 |
+
3. How to create Short code using Short code Editor.
|
488 |
+
4. Short Code Implementation for Images using Masonry Layout.
|
489 |
+
5. Short Code Implementation for Images using Thumbnails Layout.
|
490 |
+
6. Short Code Implementation for Grid Albums using Masonry Layout.
|
491 |
+
7. Short Code Implementation for Grid Albums using Thumbnail Layout.
|
492 |
+
8. Short Code Implementation for List Albums using Masonry Layout.
|
493 |
+
9. Short Code Implementation for List Albums using Thumbnail Layout.
|
494 |
+
10. Short Code Implementation for Individual Albums using Masonry Layout.
|
495 |
+
11. Short Code Implementation for Individual Albums using Thumbnail Layout.
|
496 |
12. System Status
|
497 |
13. Displaying Images using Masonry Layout.
|
498 |
14. Displaying Images using Thumbnail Layout.
|
502 |
|
503 |
== Changelog ==
|
504 |
|
505 |
+
= 3.0.33 =
|
506 |
+
|
507 |
+
* Major Bugs Fixed
|
508 |
+
* Ini Default Values Set
|
509 |
+
* Compatibility with 4.7.3
|
510 |
+
|
511 |
+
= 3.0.32 =
|
512 |
|
513 |
* Translation Files Updated
|
514 |
+
* Translation Constant Bug Fixed
|
515 |
|
516 |
+
= 3.0.31 =
|
517 |
|
518 |
* Obsolete Code removed
|
519 |
* Unused Files removed
|
views/wizard.php
ADDED
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
if(!defined("ABSPATH")) exit; //exit if accessed directly
|
3 |
+
switch($gb_role)
|
4 |
+
{
|
5 |
+
case "administrator":
|
6 |
+
$user_role_permission = "manage_options";
|
7 |
+
break;
|
8 |
+
case "editor":
|
9 |
+
$user_role_permission = "publish_pages";
|
10 |
+
break;
|
11 |
+
case "author":
|
12 |
+
$user_role_permission = "publish_posts";
|
13 |
+
break;
|
14 |
+
}
|
15 |
+
if (!current_user_can($user_role_permission))
|
16 |
+
{
|
17 |
+
return;
|
18 |
+
}
|
19 |
+
else
|
20 |
+
{
|
21 |
+
$gallery_bank_check_status = wp_create_nonce("gallery_bank_check_status");
|
22 |
+
?>
|
23 |
+
<div class="page-container header-wizard">
|
24 |
+
<div class="page-content">
|
25 |
+
<div class="fluid-layout">
|
26 |
+
|
27 |
+
<div class="layout-span6 center">
|
28 |
+
<img src="<?php echo plugins_url("assets/images/gallery-bank.png",dirname(__FILE__));?>">
|
29 |
+
</div>
|
30 |
+
<div class="layout-span1">
|
31 |
+
</div>
|
32 |
+
</div>
|
33 |
+
<div class="fluid-layout">
|
34 |
+
<div class="layout-span12 textalign">
|
35 |
+
<p>Hi there!</p>
|
36 |
+
<p>Don't ever miss an important opportunity to opt in for Latest Features & Security Updates as well as non-sensitive diagnostic tracking.</p>
|
37 |
+
<p>If you're not ready to Opt-In, that's ok too!</p>
|
38 |
+
<p><strong>Gallery Bank will still work fine.</strong></p>
|
39 |
+
</div>
|
40 |
+
</div>
|
41 |
+
<div class="fluid-layout">
|
42 |
+
<div class="layout-span12">
|
43 |
+
<a class="permissions" onclick="show_hide_details_gallery_bank();">What permissions are being granted?</a>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
<div style="display:none;" id="ux_div_wizard_set_up">
|
47 |
+
<div class="fluid-layout">
|
48 |
+
<div class="layout-span6">
|
49 |
+
<ul>
|
50 |
+
<li>
|
51 |
+
<i class="dashicons dashicons-admin-users"></i>
|
52 |
+
<div class="admin">
|
53 |
+
<span><strong>User Details</strong></span>
|
54 |
+
<p>Name and Email Address</p>
|
55 |
+
</div>
|
56 |
+
</li>
|
57 |
+
</ul>
|
58 |
+
</div>
|
59 |
+
<div class="layout-span6 align align2">
|
60 |
+
<ul>
|
61 |
+
<li>
|
62 |
+
<i class="dashicons dashicons-admin-plugins"></i>
|
63 |
+
<div class="admin-plugins">
|
64 |
+
<span><strong>Current Plugin Status</strong></span>
|
65 |
+
<p>Activation, Deactivation and Uninstall</p>
|
66 |
+
</div>
|
67 |
+
</li>
|
68 |
+
</ul>
|
69 |
+
</div>
|
70 |
+
</div>
|
71 |
+
<div class="fluid-layout">
|
72 |
+
<div class="layout-span6">
|
73 |
+
<ul>
|
74 |
+
<li>
|
75 |
+
<i class="dashicons dashicons-testimonial"></i>
|
76 |
+
<div class="testimonial">
|
77 |
+
<span><strong>Notifications</strong></span>
|
78 |
+
<p>Updates & Announcements</p>
|
79 |
+
</div>
|
80 |
+
</li>
|
81 |
+
</ul>
|
82 |
+
</div>
|
83 |
+
<div class="layout-span6 align2">
|
84 |
+
<ul>
|
85 |
+
<li>
|
86 |
+
<i class="dashicons dashicons-welcome-view-site"></i>
|
87 |
+
<div class="settings">
|
88 |
+
<span><strong>Website Overview</strong></span>
|
89 |
+
<p>Site URL, WP Version, PHP Info, Plugins & Themes Info</p>
|
90 |
+
</div>
|
91 |
+
</li>
|
92 |
+
</ul>
|
93 |
+
</div>
|
94 |
+
</div>
|
95 |
+
</div>
|
96 |
+
<div class="fluid-layout">
|
97 |
+
<div class="layout-span12 allow">
|
98 |
+
<div class="tech-banker-actions">
|
99 |
+
<a onclick="plugin_stats('opt_in');" class="button button-primary-wizard">
|
100 |
+
<strong>Opt-In & Continue </strong>
|
101 |
+
<i class="dashicons dashicons-arrow-right-alt"></i>
|
102 |
+
</a>
|
103 |
+
<a onclick="plugin_stats('skip');" class="button button-secondary-wizard" tabindex="2">
|
104 |
+
<strong>Skip & Continue </strong>
|
105 |
+
<i class="dashicons dashicons-arrow-right-alt"></i>
|
106 |
+
</a>
|
107 |
+
<div class="clearfix"></div>
|
108 |
+
</div>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
</div>
|
112 |
+
</div>
|
113 |
+
<script type="text/javascript">
|
114 |
+
if(typeof(show_hide_details_gallery_bank) != "function")
|
115 |
+
{
|
116 |
+
function show_hide_details_gallery_bank()
|
117 |
+
{
|
118 |
+
if(jQuery("#ux_div_wizard_set_up").hasClass("wizard-set-up"))
|
119 |
+
{
|
120 |
+
jQuery("#ux_div_wizard_set_up").css("display","none");
|
121 |
+
jQuery("#ux_div_wizard_set_up").removeClass("wizard-set-up");
|
122 |
+
}
|
123 |
+
else
|
124 |
+
{
|
125 |
+
jQuery("#ux_div_wizard_set_up").css("display","block");
|
126 |
+
jQuery("#ux_div_wizard_set_up").addClass("wizard-set-up");
|
127 |
+
}
|
128 |
+
}
|
129 |
+
}
|
130 |
+
if(typeof(plugin_stats) != "function")
|
131 |
+
{
|
132 |
+
function plugin_stats(type)
|
133 |
+
{
|
134 |
+
jQuery.post(ajaxurl,
|
135 |
+
{
|
136 |
+
type: type,
|
137 |
+
param: "wizard_gallery",
|
138 |
+
action: "add_new_album_library",
|
139 |
+
_wp_nonce: "<?php echo $gallery_bank_check_status; ?>"
|
140 |
+
},
|
141 |
+
function(data)
|
142 |
+
{
|
143 |
+
window.location.href = "admin.php?page=gallery_bank";
|
144 |
+
});
|
145 |
+
}
|
146 |
+
}
|
147 |
+
</script>
|
148 |
+
<?php
|
149 |
+
}
|
150 |
+
?>
|