Gallery Bank: WordPress Photo Gallery Plugin - Version 3.0.103

Version Description

  • Added new feature of Feature Request.
  • Shortcode Editor Redesigned.
Download this release

Release Info

Developer Gallery-Bank
Plugin Icon 128x128 Gallery Bank: WordPress Photo Gallery Plugin
Version 3.0.103
Comparing to
See all releases

Code changes from version 3.0.102 to 3.0.103

assets/css/stylesheet.css CHANGED
@@ -2480,975 +2480,7 @@ Popover
2480
  }
2481
 
2482
 
2483
- @media (min-width: 768px) and (max-width: 979px) {
2484
- .hidden-desktop {
2485
- display: inherit !important;
2486
- }
2487
-
2488
- .visible-desktop {
2489
- display: none !important;
2490
- }
2491
-
2492
- .visible-tablet {
2493
- display: inherit !important;
2494
- }
2495
-
2496
- .hidden-tablet {
2497
- display: none !important;
2498
- }
2499
- }
2500
-
2501
- @media (max-width: 767px) {
2502
- .hidden-desktop {
2503
- display: inherit !important;
2504
- }
2505
-
2506
- .visible-desktop {
2507
- display: none !important;
2508
- }
2509
-
2510
- .visible-phone {
2511
- display: inherit !important;
2512
- }
2513
-
2514
- .hidden-phone {
2515
- display: none !important;
2516
- }
2517
- }
2518
-
2519
- @media (min-width: 1200px) {
2520
-
2521
- [class*="layout-span"] {
2522
- float: left;
2523
- min-height: 1px;
2524
- margin-left: 30px;
2525
- }
2526
-
2527
- .layout-span12 {
2528
- width: 1170px;
2529
- }
2530
-
2531
- .layout-span11 {
2532
- width: 1070px;
2533
- }
2534
-
2535
- .layout-span10 {
2536
- width: 970px;
2537
- }
2538
-
2539
- .layout-span9 {
2540
- width: 870px;
2541
- }
2542
-
2543
- .layout-span8 {
2544
- width: 770px;
2545
- }
2546
-
2547
- .layout-span7 {
2548
- width: 670px;
2549
- }
2550
-
2551
- .layout-span6 {
2552
- width: 570px;
2553
- }
2554
-
2555
- .layout-span5 {
2556
- width: 470px;
2557
- }
2558
-
2559
- .layout-span4 {
2560
- width: 370px;
2561
- }
2562
-
2563
- .layout-span3 {
2564
- width: 270px;
2565
- }
2566
-
2567
- .layout-span2 {
2568
- width: 170px;
2569
- }
2570
-
2571
- .layout-span1 {
2572
- width: 70px;
2573
- }
2574
-
2575
- .offset12 {
2576
- margin-left: 1230px;
2577
- }
2578
-
2579
- .offset11 {
2580
- margin-left: 1130px;
2581
- }
2582
-
2583
- .offset10 {
2584
- margin-left: 1030px;
2585
- }
2586
-
2587
- .offset9 {
2588
- margin-left: 930px;
2589
- }
2590
-
2591
- .offset8 {
2592
- margin-left: 830px;
2593
- }
2594
-
2595
- .offset7 {
2596
- margin-left: 730px;
2597
- }
2598
-
2599
- .offset6 {
2600
- margin-left: 630px;
2601
- }
2602
-
2603
- .offset5 {
2604
- margin-left: 530px;
2605
- }
2606
-
2607
- .offset4 {
2608
- margin-left: 430px;
2609
- }
2610
-
2611
- .offset3 {
2612
- margin-left: 330px;
2613
- }
2614
-
2615
- .offset2 {
2616
- margin-left: 230px;
2617
- }
2618
-
2619
- .offset1 {
2620
- margin-left: 130px;
2621
- }
2622
- .fluid-layout {
2623
- width: 99%;
2624
- margin-top: 1%;
2625
- *zoom: 1;
2626
- }
2627
-
2628
- .fluid-layout:before,
2629
- .fluid-layout:after {
2630
- display: table;
2631
- line-height: 0;
2632
- content: "";
2633
- }
2634
-
2635
- .fluid-layout:after {
2636
- clear: both;
2637
- }
2638
-
2639
- .fluid-layout [class*="layout-span"] {
2640
- display: block;
2641
- float: left;
2642
- width: 100%;
2643
- min-height: 30px;
2644
- margin-left: 2.564102564102564%;
2645
- *margin-left: 2.5109110747408616%;
2646
- -webkit-box-sizing: border-box;
2647
- -moz-box-sizing: border-box;
2648
- box-sizing: border-box;
2649
- }
2650
-
2651
- .fluid-layout [class*="layout-span"]:first-child {
2652
- margin-left: 0;
2653
- }
2654
-
2655
- .fluid-layout .controls-row [class*="layout-span"] + [class*="layout-span"] {
2656
- margin-left: 2.564102564102564%;
2657
- }
2658
-
2659
- .fluid-layout .layout-span12 {
2660
- width: 100%;
2661
- *width: 99.94680851063829% !important;
2662
- }
2663
-
2664
- .fluid-layout .layout-span11 {
2665
- width: 91.45299145299145%;
2666
- *width: 91.39979996362975%;
2667
- }
2668
-
2669
- .fluid-layout .layout-span10 {
2670
- width: 82.90598290598291%;
2671
- *width: 82.8527914166212%;
2672
- }
2673
-
2674
- .fluid-layout .layout-span9 {
2675
- width: 74.35897435897436%;
2676
- *width: 74.30578286961266%;
2677
- }
2678
-
2679
- .fluid-layout .layout-span8 {
2680
- width: 65.81196581196582%;
2681
- *width: 65.75877432260411%;
2682
- }
2683
-
2684
- .fluid-layout .layout-span7 {
2685
- width: 57.26495726495726%;
2686
- *width: 57.21176577559556%;
2687
- }
2688
-
2689
- .fluid-layout .layout-span6 {
2690
- width: 48.717948717948715%;
2691
- *width: 48.664757228587014%;
2692
- }
2693
-
2694
- .fluid-layout .layout-span5 {
2695
- width: 40.17094017094017%;
2696
- *width: 40.11774868157847%;
2697
- }
2698
-
2699
- .fluid-layout .layout-span4 {
2700
- width: 31.623931623931625%;
2701
- *width: 31.570740134569924%;
2702
- }
2703
-
2704
- .fluid-layout .layout-span3 {
2705
- width: 23.076923076923077%;
2706
- *width: 23.023731587561375%;
2707
- }
2708
-
2709
- .fluid-layout .layout-span2 {
2710
- width: 14.52991452991453%;
2711
- *width: 14.476723040552828%;
2712
- }
2713
-
2714
- .fluid-layout .layout-span1 {
2715
- width: 5.982905982905983%;
2716
- *width: 5.929714493544281%;
2717
- }
2718
-
2719
- .fluid-layout .offset12 {
2720
- margin-left: 105.12820512820512%;
2721
- *margin-left: 105.02182214948171%;
2722
- }
2723
-
2724
- .fluid-layout .offset12:first-child {
2725
- margin-left: 102.56410256410257%;
2726
- *margin-left: 102.45771958537915%;
2727
- }
2728
-
2729
- .fluid-layout .offset11 {
2730
- margin-left: 96.58119658119658%;
2731
- *margin-left: 96.47481360247316%;
2732
- }
2733
-
2734
- .fluid-layout .offset11:first-child {
2735
- margin-left: 94.01709401709402%;
2736
- *margin-left: 93.91071103837061%;
2737
- }
2738
-
2739
- .fluid-layout .offset10 {
2740
- margin-left: 88.03418803418803%;
2741
- *margin-left: 87.92780505546462%;
2742
- }
2743
-
2744
- .fluid-layout .offset10:first-child {
2745
- margin-left: 85.47008547008548%;
2746
- *margin-left: 85.36370249136206%;
2747
- }
2748
-
2749
- .fluid-layout .offset9 {
2750
- margin-left: 79.48717948717949%;
2751
- *margin-left: 79.38079650845607%;
2752
- }
2753
-
2754
- .fluid-layout .offset9:first-child {
2755
- margin-left: 76.92307692307693%;
2756
- *margin-left: 76.81669394435352%;
2757
- }
2758
-
2759
- .fluid-layout .offset8 {
2760
- margin-left: 70.94017094017094%;
2761
- *margin-left: 70.83378796144753%;
2762
- }
2763
-
2764
- .fluid-layout .offset8:first-child {
2765
- margin-left: 68.37606837606839%;
2766
- *margin-left: 68.26968539734497%;
2767
- }
2768
-
2769
- .fluid-layout .offset7 {
2770
- margin-left: 62.393162393162385%;
2771
- *margin-left: 62.28677941443899%;
2772
- }
2773
-
2774
- .fluid-layout .offset7:first-child {
2775
- margin-left: 59.82905982905982%;
2776
- *margin-left: 59.72267685033642%;
2777
- }
2778
-
2779
- .fluid-layout .offset6 {
2780
- margin-left: 53.84615384615384%;
2781
- *margin-left: 53.739770867430444%;
2782
- }
2783
-
2784
- .fluid-layout .offset6:first-child {
2785
- margin-left: 51.28205128205128%;
2786
- *margin-left: 51.175668303327875%;
2787
- }
2788
-
2789
- .fluid-layout .offset5 {
2790
- margin-left: 45.299145299145295%;
2791
- *margin-left: 45.1927623204219%;
2792
- }
2793
-
2794
- .fluid-layout .offset5:first-child {
2795
- margin-left: 42.73504273504273%;
2796
- *margin-left: 42.62865975631933%;
2797
- }
2798
-
2799
- .fluid-layout .offset4 {
2800
- margin-left: 36.75213675213675%;
2801
- *margin-left: 36.645753773413354%;
2802
- }
2803
-
2804
- .fluid-layout .offset4:first-child {
2805
- margin-left: 34.18803418803419%;
2806
- *margin-left: 34.081651209310785%;
2807
- }
2808
-
2809
- .fluid-layout .offset3 {
2810
- margin-left: 28.205128205128204%;
2811
- *margin-left: 28.0987452264048%;
2812
- }
2813
-
2814
- .fluid-layout .offset3:first-child {
2815
- margin-left: 25.641025641025642%;
2816
- *margin-left: 25.53464266230224%;
2817
- }
2818
-
2819
- .fluid-layout .offset2 {
2820
- margin-left: 19.65811965811966%;
2821
- *margin-left: 19.551736679396257%;
2822
- }
2823
-
2824
- .fluid-layout .offset2:first-child {
2825
- margin-left: 17.094017094017094%;
2826
- *margin-left: 16.98763411529369%;
2827
- }
2828
-
2829
- .fluid-layout .offset1 {
2830
- margin-left: 11.11111111111111%;
2831
- *margin-left: 11.004728132387708%;
2832
- }
2833
-
2834
- .fluid-layout .offset1:first-child {
2835
- margin-left: 8.547008547008547%;
2836
- *margin-left: 8.440625568285142%;
2837
- }
2838
-
2839
- input,
2840
- textarea,
2841
- .uneditable-input {
2842
- margin-left: 0;
2843
- }
2844
-
2845
- .controls-row [class*="layout-span"] + [class*="layout-span"] {
2846
- margin-left: 30px;
2847
- }
2848
-
2849
- input.layout-span12,
2850
- textarea.layout-span12,
2851
- .uneditable-input.layout-span12 {
2852
- width: 1156px;
2853
- }
2854
-
2855
- input.layout-span11,
2856
- textarea.layout-span11,
2857
- .uneditable-input.layout-span11 {
2858
- width: 1056px;
2859
- }
2860
-
2861
- input.layout-span10,
2862
- textarea.layout-span10,
2863
- .uneditable-input.layout-span10 {
2864
- width: 956px;
2865
- }
2866
-
2867
- input.layout-span9,
2868
- textarea.layout-span9,
2869
- .uneditable-input.layout-span9 {
2870
- width: 856px;
2871
- }
2872
-
2873
- input.layout-span8,
2874
- textarea.layout-span8,
2875
- .uneditable-input.layout-span8 {
2876
- width: 756px;
2877
- }
2878
-
2879
- input.layout-span7,
2880
- textarea.layout-span7,
2881
- .uneditable-input.layout-span7 {
2882
- width: 656px;
2883
- }
2884
-
2885
- input.layout-span6,
2886
- textarea.layout-span6,
2887
- .uneditable-input.layout-span6 {
2888
- width: 556px;
2889
- }
2890
-
2891
- input.layout-span5,
2892
- textarea.layout-span5,
2893
- .uneditable-input.layout-span5 {
2894
- width: 456px;
2895
- }
2896
-
2897
- input.layout-span4,
2898
- textarea.layout-span4,
2899
- .uneditable-input.layout-span4 {
2900
- width: 356px;
2901
- }
2902
-
2903
- input.layout-span3,
2904
- textarea.layout-span3,
2905
- .uneditable-input.layout-span3 {
2906
- width: 256px;
2907
- }
2908
-
2909
- input.layout-span2,
2910
- textarea.layout-span2,
2911
- .uneditable-input.layout-span2 {
2912
- width: 156px;
2913
- }
2914
-
2915
- input.layout-span1,
2916
- textarea.layout-span1,
2917
- .uneditable-input.layout-span1 {
2918
- width: 56px;
2919
- }
2920
-
2921
- .thumbnails {
2922
- margin-left: -30px;
2923
- }
2924
-
2925
- .thumbnails > li {
2926
- margin-left: 30px;
2927
- }
2928
-
2929
- .fluid-layout .thumbnails {
2930
- margin-left: 0;
2931
- }
2932
- }
2933
-
2934
- @media (min-width: 768px) and (max-width: 979px) {
2935
-
2936
- [class*="layout-span"] {
2937
- float: left;
2938
- min-height: 1px;
2939
- margin-left: 20px;
2940
- }
2941
-
2942
- .container,
2943
- .navbar-static-top .container,
2944
- .navbar-fixed-top .container,
2945
- .navbar-fixed-bottom .container {
2946
- width: 724px;
2947
- }
2948
-
2949
- .layout-span12 {
2950
- width: 724px;
2951
- }
2952
-
2953
- .layout-span11 {
2954
- width: 662px;
2955
- }
2956
-
2957
- .layout-span10 {
2958
- width: 600px;
2959
- }
2960
-
2961
- .layout-span9 {
2962
- width: 538px;
2963
- }
2964
-
2965
- .layout-span8 {
2966
- width: 476px;
2967
- }
2968
-
2969
- .layout-span7 {
2970
- width: 414px;
2971
- }
2972
-
2973
- .layout-span6 {
2974
- width: 352px;
2975
- }
2976
-
2977
- .layout-span5 {
2978
- width: 290px;
2979
- }
2980
-
2981
- .layout-span4 {
2982
- width: 228px;
2983
- }
2984
-
2985
- .layout-span3 {
2986
- width: 166px;
2987
- }
2988
-
2989
- .layout-span2 {
2990
- width: 104px;
2991
- }
2992
-
2993
- .layout-span1 {
2994
- width: 42px;
2995
- }
2996
-
2997
- .offset12 {
2998
- margin-left: 764px;
2999
- }
3000
-
3001
- .offset11 {
3002
- margin-left: 702px;
3003
- }
3004
-
3005
- .offset10 {
3006
- margin-left: 640px;
3007
- }
3008
-
3009
- .offset9 {
3010
- margin-left: 578px;
3011
- }
3012
-
3013
- .offset8 {
3014
- margin-left: 516px;
3015
- }
3016
-
3017
- .offset7 {
3018
- margin-left: 454px;
3019
- }
3020
-
3021
- .offset6 {
3022
- margin-left: 392px;
3023
- }
3024
-
3025
- .offset5 {
3026
- margin-left: 330px;
3027
- }
3028
-
3029
- .offset4 {
3030
- margin-left: 268px;
3031
- }
3032
-
3033
- .offset3 {
3034
- margin-left: 206px;
3035
- }
3036
-
3037
- .offset2 {
3038
- margin-left: 144px;
3039
- }
3040
-
3041
- .offset1 {
3042
- margin-left: 82px;
3043
- }
3044
-
3045
- .fluid-layout {
3046
- width: 99%;
3047
- margin-top: 1%;
3048
- *zoom: 1;
3049
- }
3050
-
3051
- .fluid-layout:before,
3052
- .fluid-layout:after {
3053
- display: table;
3054
- line-height: 0;
3055
- content: "";
3056
- }
3057
-
3058
- .fluid-layout:after {
3059
- clear: both;
3060
- }
3061
-
3062
- .fluid-layout [class*="layout-span"] {
3063
- display: block;
3064
- float: left;
3065
- width: 100%;
3066
- min-height: 30px;
3067
- margin-left: 2.7624309392265194%;
3068
- *margin-left: 2.709239449864817%;
3069
- -webkit-box-sizing: border-box;
3070
- -moz-box-sizing: border-box;
3071
- box-sizing: border-box;
3072
- }
3073
-
3074
- .fluid-layout [class*="layout-span"]:first-child {
3075
- margin-left: 0;
3076
- }
3077
-
3078
- .fluid-layout .controls-row [class*="layout-span"] + [class*="layout-span"] {
3079
- margin-left: 2.7624309392265194%;
3080
- }
3081
-
3082
- .fluid-layout .layout-span12 {
3083
- width: 100%;
3084
- *width: 99.94680851063829%;
3085
- }
3086
-
3087
- .fluid-layout .layout-span11 {
3088
- width: 91.43646408839778%;
3089
- *width: 91.38327259903608%;
3090
- }
3091
-
3092
- .fluid-layout .layout-span10 {
3093
- width: 82.87292817679558%;
3094
- *width: 82.81973668743387%;
3095
- }
3096
-
3097
- .fluid-layout .layout-span9 {
3098
- width: 74.30939226519337%;
3099
- *width: 74.25620077583166%;
3100
- }
3101
-
3102
- .fluid-layout .layout-span8 {
3103
- width: 65.74585635359117%;
3104
- *width: 65.69266486422946%;
3105
- }
3106
-
3107
- .fluid-layout .layout-span7 {
3108
- width: 57.18232044198895%;
3109
- *width: 57.12912895262725%;
3110
- }
3111
-
3112
- .fluid-layout .layout-span6 {
3113
- width: 48.61878453038674%;
3114
- *width: 48.56559304102504%;
3115
- }
3116
-
3117
- .fluid-layout .layout-span5 {
3118
- width: 40.05524861878453%;
3119
- *width: 40.00205712942283%;
3120
- }
3121
-
3122
- .fluid-layout .layout-span4 {
3123
- width: 31.491712707182323%;
3124
- *width: 31.43852121782062%;
3125
- }
3126
-
3127
- .fluid-layout .layout-span3 {
3128
- width: 22.92817679558011%;
3129
- *width: 22.87498530621841%;
3130
- }
3131
-
3132
- .fluid-layout .layout-span2 {
3133
- width: 14.3646408839779%;
3134
- *width: 14.311449394616199%;
3135
- }
3136
-
3137
- .fluid-layout .layout-span1 {
3138
- width: 5.801104972375691%;
3139
- *width: 5.747913483013988%;
3140
- }
3141
-
3142
- .fluid-layout .offset12 {
3143
- margin-left: 105.52486187845304%;
3144
- *margin-left: 105.41847889972962%;
3145
- }
3146
-
3147
- .fluid-layout .offset12:first-child {
3148
- margin-left: 102.76243093922652%;
3149
- *margin-left: 102.6560479605031%;
3150
- }
3151
-
3152
- .fluid-layout .offset11 {
3153
- margin-left: 96.96132596685082%;
3154
- *margin-left: 96.8549429881274%;
3155
- }
3156
-
3157
- .fluid-layout .offset11:first-child {
3158
- margin-left: 94.1988950276243%;
3159
- *margin-left: 94.09251204890089%;
3160
- }
3161
-
3162
- .fluid-layout .offset10 {
3163
- margin-left: 88.39779005524862%;
3164
- *margin-left: 88.2914070765252%;
3165
- }
3166
-
3167
- .fluid-layout .offset10:first-child {
3168
- margin-left: 85.6353591160221%;
3169
- *margin-left: 85.52897613729868%;
3170
- }
3171
-
3172
- .fluid-layout .offset9 {
3173
- margin-left: 79.8342541436464%;
3174
- *margin-left: 79.72787116492299%;
3175
- }
3176
-
3177
- .fluid-layout .offset9:first-child {
3178
- margin-left: 77.07182320441989%;
3179
- *margin-left: 76.96544022569647%;
3180
- }
3181
-
3182
- .fluid-layout .offset8 {
3183
- margin-left: 71.2707182320442%;
3184
- *margin-left: 71.16433525332079%;
3185
- }
3186
-
3187
- .fluid-layout .offset8:first-child {
3188
- margin-left: 68.50828729281768%;
3189
- *margin-left: 68.40190431409427%;
3190
- }
3191
-
3192
- .fluid-layout .offset7 {
3193
- margin-left: 62.70718232044199%;
3194
- *margin-left: 62.600799341718584%;
3195
- }
3196
-
3197
- .fluid-layout .offset7:first-child {
3198
- margin-left: 59.94475138121547%;
3199
- *margin-left: 59.838368402492065%;
3200
- }
3201
-
3202
- .fluid-layout .offset6 {
3203
- margin-left: 54.14364640883978%;
3204
- *margin-left: 54.037263430116376%;
3205
- }
3206
-
3207
- .fluid-layout .offset6:first-child {
3208
- margin-left: 51.38121546961326%;
3209
- *margin-left: 51.27483249088986%;
3210
- }
3211
-
3212
- .fluid-layout .offset5 {
3213
- margin-left: 45.58011049723757%;
3214
- *margin-left: 45.47372751851417%;
3215
- }
3216
-
3217
- .fluid-layout .offset5:first-child {
3218
- margin-left: 42.81767955801105%;
3219
- *margin-left: 42.71129657928765%;
3220
- }
3221
-
3222
- .fluid-layout .offset4 {
3223
- margin-left: 37.01657458563536%;
3224
- *margin-left: 36.91019160691196%;
3225
- }
3226
-
3227
- .fluid-layout .offset4:first-child {
3228
- margin-left: 34.25414364640884%;
3229
- *margin-left: 34.14776066768544%;
3230
- }
3231
-
3232
- .fluid-layout .offset3 {
3233
- margin-left: 28.45303867403315%;
3234
- *margin-left: 28.346655695309746%;
3235
- }
3236
-
3237
- .fluid-layout .offset3:first-child {
3238
- margin-left: 25.69060773480663%;
3239
- *margin-left: 25.584224756083227%;
3240
- }
3241
-
3242
- .fluid-layout .offset2 {
3243
- margin-left: 19.88950276243094%;
3244
- *margin-left: 19.783119783707537%;
3245
- }
3246
-
3247
- .fluid-layout .offset2:first-child {
3248
- margin-left: 17.12707182320442%;
3249
- *margin-left: 17.02068884448102%;
3250
- }
3251
-
3252
- .fluid-layout .offset1 {
3253
- margin-left: 11.32596685082873%;
3254
- *margin-left: 11.219583872105325%;
3255
- }
3256
-
3257
- .fluid-layout .offset1:first-child {
3258
- margin-left: 8.56353591160221%;
3259
- *margin-left: 8.457152932878806%;
3260
- }
3261
-
3262
- .controls-row [class*="layout-span"] + [class*="layout-span"] {
3263
- margin-left: 20px;
3264
- }
3265
-
3266
- input.layout-span12,
3267
- textarea.layout-span12,
3268
- .uneditable-input.layout-span12 {
3269
- width: 710px;
3270
- }
3271
-
3272
- input.layout-span11,
3273
- textarea.layout-span11,
3274
- .uneditable-input.layout-span11 {
3275
- width: 648px;
3276
- }
3277
-
3278
- input.layout-span10,
3279
- textarea.layout-span10,
3280
- .uneditable-input.layout-span10 {
3281
- width: 586px;
3282
- }
3283
-
3284
- input.layout-span9,
3285
- textarea.layout-span9,
3286
- .uneditable-input.layout-span9 {
3287
- width: 524px;
3288
- }
3289
-
3290
- input.layout-span8,
3291
- textarea.layout-span8,
3292
- .uneditable-input.layout-span8 {
3293
- width: 462px;
3294
- }
3295
-
3296
- input.layout-span7,
3297
- textarea.layout-span7,
3298
- .uneditable-input.layout-span7 {
3299
- width: 400px;
3300
- }
3301
-
3302
- input.layout-span6,
3303
- textarea.layout-span6,
3304
- .uneditable-input.layout-span6 {
3305
- width: 338px;
3306
- }
3307
-
3308
- input.layout-span5,
3309
- textarea.layout-span5,
3310
- .uneditable-input.layout-span5 {
3311
- width: 276px;
3312
- }
3313
-
3314
- input.layout-span4,
3315
- textarea.layout-span4,
3316
- .uneditable-input.layout-span4 {
3317
- width: 214px;
3318
- }
3319
 
3320
- input.layout-span3,
3321
- textarea.layout-span3,
3322
- .uneditable-input.layout-span3 {
3323
- width: 152px;
3324
- }
3325
-
3326
- input.layout-span2,
3327
- textarea.layout-span2,
3328
- .uneditable-input.layout-span2 {
3329
- width: 90px;
3330
- }
3331
-
3332
- input.layout-span1,
3333
- textarea.layout-span1,
3334
- .uneditable-input.layout-span1 {
3335
- width: 28px;
3336
- }
3337
- }
3338
-
3339
- @media (max-width: 767px) {
3340
- .fluid-layout {
3341
- width: 99%;
3342
- margin-top: 1%;
3343
- }
3344
-
3345
- [class*="layout-span"],
3346
- .uneditable-input[class*="layout-span"],
3347
- .fluid-layout [class*="layout-span"] {
3348
- display: block;
3349
- float: none;
3350
- width: 100%;
3351
- margin-left: 0;
3352
- -webkit-box-sizing: border-box;
3353
- -moz-box-sizing: border-box;
3354
- box-sizing: border-box;
3355
- }
3356
-
3357
- .layout-span12,
3358
- .fluid-layout .layout-span12 {
3359
- width: 100%;
3360
- -webkit-box-sizing: border-box;
3361
- -moz-box-sizing: border-box;
3362
- box-sizing: border-box;
3363
- }
3364
-
3365
- .fluid-layout [class*="offset"]:first-child {
3366
- margin-left: 0;
3367
- }
3368
-
3369
- input[class*="layout-span"],
3370
- select[class*="layout-span"],
3371
- textarea[class*="layout-span"],
3372
- .uneditable-input {
3373
- display: block;
3374
- width: 100%;
3375
- min-height: 30px;
3376
- -webkit-box-sizing: border-box;
3377
- -moz-box-sizing: border-box;
3378
- box-sizing: border-box;
3379
- }
3380
-
3381
- .input-prepend input[class*="layout-span"],
3382
- .input-append input[class*="layout-span"] {
3383
- display: inline-block;
3384
- width: auto;
3385
- }
3386
-
3387
- .controls-row [class*="layout-span"] + [class*="layout-span"] {
3388
- margin-left: 0;
3389
- }
3390
-
3391
- }
3392
-
3393
- @media (max-width: 480px) {
3394
- .layout-form .layout-control-label {
3395
- float: none;
3396
- width: auto;
3397
- padding-top: 0;
3398
- text-align: left;
3399
- }
3400
-
3401
- .layout-form .layout-label-control-group {
3402
- float: none;
3403
- width: auto;
3404
- padding-top: 0;
3405
- text-align: left;
3406
- }
3407
-
3408
- .layout-form .layout-controls {
3409
- margin-left: 0;
3410
- }
3411
-
3412
- .layout-form .layout-controls-radio {
3413
- margin-left: 0;
3414
- }
3415
-
3416
- .layout-form .control-list {
3417
- padding-top: 0;
3418
- }
3419
-
3420
- .layout-form .form-actions {
3421
- padding-right: 10px;
3422
- padding-left: 10px;
3423
- }
3424
- }
3425
-
3426
- @media (max-width: 979px) {
3427
- .layout-thumbnails {
3428
- margin-left: -30px;
3429
- }
3430
-
3431
- .layout-thumbnails > li {
3432
- margin-left: 30px;
3433
- }
3434
-
3435
- .fluid-layout .layout-thumbnails {
3436
- margin-left: 0;
3437
- }
3438
-
3439
- .layout-thumbnails {
3440
- margin-left: 0;
3441
- }
3442
-
3443
- .layout-thumbnails > li {
3444
- float: none;
3445
- margin-left: 0;
3446
- }
3447
- }
3448
-
3449
- @media (min-width: 980px) {
3450
-
3451
- }
3452
  .framework_tabs
3453
  {
3454
  width:100%;
2480
  }
2481
 
2482
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2483
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2484
  .framework_tabs
2485
  {
2486
  width:100%;
front_views/gallery-bank-shortcode.php CHANGED
@@ -1,221 +1,181 @@
 
 
 
1
  <div id="my-gallery-content-id" style="display:none;">
2
- <div class="fluid-layout responsive">
3
- <div style="padding:0 15px;">
4
- <h3 class="gallery-shortcode-label"><?php _e("Insert Gallery Bank Shortcode", gallery_bank); ?></h3>
5
- <span>
6
- <?php _e("Select an album below to add it to your post or page.", gallery_bank); ?>
7
- </span>
8
  </div>
9
- <div class="layout-span12" style="padding:15px 15px 0 0;">
10
- <div class="layout-control-group">
11
- <label class="custom-layout-label" for="ux_gallery"><?php _e("Gallery Type", gallery_bank); ?> : </label>
12
- <input type="radio" name="ux_gallery" value="1" onclick="check_gallery_type();"/>
13
- <label><?php _e("Albums with Images", gallery_bank); ?></label>
14
- <input type="radio" style="margin-left: 10px;" checked="checked" name="ux_gallery" value="0" onclick="check_gallery_type();"/> <label><?php _e("Only Images", gallery_bank); ?> </label>
15
- </div>
16
- <div class="layout-control-group" id="album_format" style="display: none;">
17
  <label class="custom-layout-label" for="ux_album_format"><?php _e("Album Format", gallery_bank); ?> : </label>
18
- <select id="ux_album_format" class="layout-span9" onclick="check_gallery_type();" onchange="select_album();">
19
- <option value=""> <?php _e("Select Album Format", gallery_bank); ?> </option>
20
  <option value="grid">Grid Albums</option>
21
  <option value="list">List Albums</option>
22
  <option value="individual">Individual Album</option>
23
  </select>
24
  </div>
25
- <div class="layout-control-group" id="ux_show_multiple_albums" style="display: none;">
26
  <label class="custom-layout-label"><?php _e("Choose Type", gallery_bank); ?> : </label>
27
- <select id="ddl_show_albums" class="layout-span9" onchange="show_gallery_albums();" onchange="select_album();">
28
  <option value="all">All Albums</option>
29
  <option value="selected">Only Selected Albums</option>
30
  </select>
31
  </div>
32
- <div class="layout-control-group" id="ux_select_multiple_albums" style="display: none;">
33
- <label class="custom-layout-label"><?php _e("Choose Albums", gallery_bank); ?> : </label>
34
- <select id="ddl_add_multi_album" class="layout-span9" multiple="multiple">
35
- <?php
36
- global $wpdb;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  $albums = $wpdb->get_results
38
  (
39
  "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
40
  );
41
- for ($flag = 0; $flag < count($albums); $flag++) {
42
- ?>
43
- <option value="<?php echo intval($albums[$flag]->album_id); ?>"><?php echo esc_html($albums[$flag]->album_name) ?></option>
44
- <?php
45
- }
46
- ?>
47
- </select>
48
- </div>
49
- <div class="layout-control-group" id="ux_select_album" style="display: block;">
50
- <label class="custom-layout-label"><?php _e("Select Album", gallery_bank); ?> : </label>
51
- <select id="ux_ddl_select_album" class="layout-span9">
52
- <option value=""> <?php _e("Select an Album", gallery_bank); ?> </option>
53
- <?php
54
- global $wpdb,$current_user;
55
-
56
- $gb_role = $wpdb->prefix . "capabilities";
57
- $current_user->role = array_keys($current_user->$gb_role);
58
- $gb_role = $current_user->role[0];
59
- if($gb_role == "administrator")
60
- {
61
- $albums = $wpdb->get_results
62
- (
63
- "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
64
- );
65
- }
66
- else
67
- {
68
- $albums = $wpdb->get_results
69
  (
70
- $wpdb->prepare
71
- (
72
- "SELECT * FROM ".gallery_bank_albums()." where author = %s order by album_order asc ",
73
- $current_user->display_name
74
- )
75
- );
76
- }
77
- for ($flag = 0; $flag < count($albums); $flag++) {
78
- ?>
79
- <option value="<?php echo intval($albums[$flag]->album_id); ?>"><?php echo esc_html($albums[$flag]->album_name) ?></option>
80
- <?php
81
- }
82
  ?>
83
- </select>
84
- </div>
85
- <div class="layout-control-group">
86
- <label class="custom-layout-label"><?php _e("Gallery Format", gallery_bank); ?> : </label>
87
- <select id="ux_gallery_format" class="layout-span9" onchange="select_images_in_row();">
88
- <option value=""> <?php _e("Select Gallery Format ", gallery_bank); ?> </option>
89
- <option value="masonry">Masonry Gallery</option>
90
- <option value="filmstrip" disabled="disabled" style="color: #FF0000;">Filmstrip Gallery (Available only in Premium Versions)</option>
91
- <option value="blog" disabled="disabled" style="color: #FF0000;">Blog Style Gallery (Available only in Premium Versions)</option>
92
- <option id="slide_show" disabled="disabled" value="slideshow" style="color: #FF0000;">Slideshow Gallery (Available only in Premium Versions)</option>
93
- <option value="thumbnail">Thumbnail Gallery</option>
94
- </select>
95
- </div>
96
- <div class="layout-control-group" id="div_img_in_row" style="display: none;">
97
- <label class="custom-layout-label"><?php _e("Images in Row", gallery_bank); ?> : </label>
98
- <input type="text" class="layout-span9" name="ux_img_in_row" id="ux_img_in_row"
99
- onkeyup="set_text_value(\"img_in_row\");" onkeypress="return OnlyNumbers(event);" value="3"/>
100
- </div>
101
- <div class="layout-control-group" id="div_img_width" style="display: none;">
102
- <label class="custom-layout-label"><?php _e("Image Width", gallery_bank); ?> : </label>
103
- <input readonly="readonly" type="text" class="layout-span9" name="ux_img_width" id="ux_img_width" onkeypress="return OnlyNumbers(event);" value="600"/>
104
- <label class="custom-layout-label"></label>
105
- <i class="widget_premium_feature">(Available only in Premium Versions)</i>
106
- </div>
107
- <div class="layout-control-group" id="div_albums_in_row" style="display: none;">
108
- <label class="custom-layout-label"><?php _e("Albums in Row", gallery_bank); ?> : </label>
109
- <input type="text" class="layout-span9" name="ux_album_in_row" id="ux_album_in_row" onkeyup="set_text_value(\"album_in_row\");" onkeypress="return OnlyNumbers(event);" value="3"/>
110
- </div>
111
- <div class="layout-control-group" id="gb_gallery_format">
112
  <label class="custom-layout-label"><?php _e("Text Format", gallery_bank); ?> : </label>
113
- <select id="ux_text_format" class="layout-span9" onchange="show_special_effect();">
114
- <option value=""><?php _e("Select Format ", gallery_bank); ?></option>
115
  <option value="title_only">With Title only</option>
116
  <option value="title_desc">With Title and Description</option>
117
  <option value="no_text">Without Title and Description</option>
118
  </select>
119
  </div>
120
- <div class="layout-control-group" id="div_special_effects" >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  <label class="custom-layout-label"><?php _e("Special Effects", gallery_bank); ?> : </label>
122
- <select id="ux_special_effects" class="layout-span9" onchange="effects_settings();" disabled= "disabled">
123
- <option value="blur">Blur</option>
124
- <option id="option_cornor_ribbons" value="corner_ribbons">Corner Ribbons</option>
125
  <option value="grayscale">Grayscale</option>
126
- <option id="option_hover_rotation" value="hover_rotation">Hover Rotation</option>
127
- <option id="option_levitation_shadow" value="levitation_shadow">Levitation Shadow</option>
128
- <option id="option_lomo_effect" value="lomo_effect">Lomo Effect</option>
129
- <option id="option_overlay_fade" value="overlay_fade" selected="selected">Overlay Fade</option>
130
- <option id="option_overlay_join" value="overlay_join">Overlay Join</option>
131
- <option id="option_overlay_slide" value="overlay_slide">Overlay Slide</option>
132
- <option id="option_overlay_split" value="overlay_split">Overlay Split</option>
133
- <option id="option_perspective_images" value="perspective_images">Perspective Images</option>
134
- <option id="option_pulse" value="pulse">Pulse</option>
135
- <option id="option_rounded_images" value="rounded_images">Rounded Images</option>
136
- <option value="sepia">Sepia</option>
137
- <option value="none">None</option>
138
  </select>
139
- <label class="custom-layout-label"></label>
140
- <i class="widget_premium_feature">(Available only in Premium Versions)</i>
141
  </div>
142
- <div class="layout-control-group" id="div_animation_effects">
143
- <label class="custom-layout-label"><?php _e("Animation Effects", gallery_bank); ?> : </label>
144
- <select id="ux_animation_effects" class="layout-span9" disabled= "disabled">
145
- <optgroup label="Attention Seekers">
146
- <option value="bounce">Bounce</option>
147
- <option value="flash">Flash</option>
148
- <option value="pulse">Pulse</option>
149
- <option value="shake">Shake</option>
150
- <option value="swing">Swing</option>
151
- <option value="tada">Tada</option>
152
- <option value="wobble">Wobble</option>
153
- <option value="lightSpeedIn">Light Speed-In</option>
154
- <option value="rollIn">Roll-In</option>
155
- </optgroup>
156
- <optgroup label="Bouncing Entrances">
157
- <option value="bounceIn">Bounce-In</option>
158
- <option value="bounceInDown">Bounce-In Down</option>
159
- <option value="bounceInLeft">Bounce-In Left</option>
160
- <option value="bounceInRight">Bounce-In Right</option>
161
- <option value="bounceInUp">Bounce-In Up</option>
162
- </optgroup>
163
- <optgroup label="Fading Entrances">
164
- <option value="fadeIn">Fade-In</option>
165
- <option value="fadeInDown">Fade-In Down</option>
166
- <option value="fadeInDownBig">Fade-In Down (Big)</option>
167
- <option value="fadeInLeft">Fade-In Left</option>
168
- <option value="fadeInLeftBig">Fade-In Left (Big)</option>
169
- <option value="fadeInRight">Fade-In Right</option>
170
- <option value="fadeInRightBig">Fade-In Right (Big)</option>
171
- <option value="fadeInUp">Fade-In Up</option>
172
- <option value="fadeInUpBig">Fade-In Up (Big)</option>
173
- </optgroup>
174
- <optgroup label="Flippers">
175
- <option value="flip">Flip</option>
176
- <option value="flipInX">Flip-In X</option>
177
- <option value="flipInY">Flip-In Y</option>
178
- </optgroup>
179
- <optgroup label="Rotating Entrances">
180
- <option value="rotateIn">Rotate-In</option>
181
- <option value="rotateInDownLeft">Rotate-In Down Left</option>
182
- <option value="rotateInDownRight">Rotate-In Down Right</option>
183
- <option value="rotateInUpLeft">Rotate-In Up Left</option>
184
- <option value="rotateInUpRight">Rotate-In Up Right</option>
185
- </optgroup>
186
- <optgroup label="Sliders">
187
- <option value="slideInDown">Slide-In Down</option>
188
- <option value="slideInLeft">Slide-In Left</option>
189
- <option value="slideInRight">Slide-In Right</option>
190
- </optgroup>
191
  </select>
192
- <label class="custom-layout-label"></label>
193
- <i class="widget_premium_feature">(Available only in Premium Versions)</i>
194
- </div>
195
- <div class="layout-control-group">
196
- <label class="custom-layout-label"><?php _e("Show Responsive Gallery", gallery_bank); ?> : </label>
197
- <input type="checkbox" checked="checked" onclick="show_images_in_row();" name="ux_responsive_gallery" id="ux_responsive_gallery"/>
198
- </div>
199
- <div class="layout-control-group">
200
- <label class="custom-layout-label"><?php _e("Show Album Title", gallery_bank); ?> : </label>
201
- <input type="checkbox" checked="checked" name="ux_album_title" id="ux_album_title"/>
202
- </div>
203
- <div class="layout-control-group">
204
- <label class="custom-layout-label"></label>
205
- <input type="button" class="button-primary" value="<?php _e("Insert Album", gallery_bank); ?>" onclick="InsertGallery();"/>&nbsp;&nbsp;&nbsp;
206
- <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", gallery_bank); ?></a>
207
  </div>
208
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  </div>
210
  </div>
211
  <script type="text/javascript">
212
  jQuery(document).ready(function () {
213
  check_gallery_type();
214
  select_images_in_row();
215
- effects_settings();
216
  show_special_effect();
217
  show_images_in_row();
 
218
  });
 
 
 
 
 
 
 
 
 
 
 
 
219
  function show_images_in_row()
220
  {
221
  var responsive = jQuery("#ux_responsive_gallery").prop("checked");
@@ -226,7 +186,7 @@ function show_images_in_row()
226
  }
227
  else if(gallery_format != "blog" && gallery_format != "slideshow")
228
  {
229
- jQuery("#div_img_in_row").css("display","block");
230
  }
231
  }
232
  function select_images_in_row() {
@@ -234,220 +194,35 @@ function select_images_in_row() {
234
  switch(gallery_format)
235
  {
236
  case "thumbnail":
237
- jQuery("#div_img_in_row").css("display", "block");
238
- jQuery("#gb_gallery_format").css("display", "block");
239
- jQuery("#div_img_width").css("display", "none");
240
- jQuery("#div_special_effects").css("display", "block");
241
- jQuery("#div_animation_effects").css("display", "block");
242
- jQuery("#option_cornor_ribbons").css("display", "block");
243
- jQuery("#option_hover_rotation").css("display", "block");
244
- jQuery("#option_levitation_shadow").css("display", "block");
245
- jQuery("#option_lomo_effect").css("display", "block");
246
- jQuery("#option_overlay_fade").css("display", "block");
247
- jQuery("#option_overlay_join").css("display", "block");
248
- jQuery("#option_overlay_slide").css("display", "block");
249
- jQuery("#option_overlay_split").css("display", "block");
250
- jQuery("#option_perspective_images").css("display", "block");
251
- jQuery("#option_rounded_images").css("display", "block");
252
- jQuery("#option_pulse").css("display", "block");
253
- break;
254
- case "filmstrip":
255
- jQuery("#div_img_in_row").css("display", "block");
256
- jQuery("#gb_gallery_format").css("display", "block");
257
- jQuery("#div_img_width").css("display", "block");
258
- jQuery("#div_special_effects").css("display", "none");
259
  jQuery("#div_animation_effects").css("display", "block");
260
  break;
261
  case "masonry":
262
- jQuery("#div_img_in_row").css("display", "block");
263
- jQuery("#gb_gallery_format").css("display", "block");
264
- jQuery("#div_img_width").css("display", "none");
265
- jQuery("#div_special_effects").css("display", "block");
266
  jQuery("#div_animation_effects").css("display", "block");
267
  jQuery("#ux_special_effects").val("grayscale");
268
- jQuery("#option_cornor_ribbons").css("display", "none");
269
- jQuery("#option_hover_rotation").css("display", "none");
270
- jQuery("#option_levitation_shadow").css("display", "none");
271
- jQuery("#option_lomo_effect").css("display", "none");
272
- jQuery("#option_overlay_fade").css("display", "none");
273
- jQuery("#option_overlay_join").css("display", "none");
274
- jQuery("#option_overlay_slide").css("display", "none");
275
- jQuery("#option_overlay_split").css("display", "none");
276
- jQuery("#option_perspective_images").css("display", "none");
277
- jQuery("#option_rounded_images").css("display", "none");
278
- jQuery("#option_pulse").css("display", "none");
279
- break;
280
- case "slideshow":
281
- jQuery("#gb_gallery_format").css("display", "block");
282
- jQuery("#div_img_in_row").css("display", "none");
283
- jQuery("#div_img_width").css("display", "none");
284
- jQuery("#div_special_effects").css("display", "none");
285
- jQuery("#div_animation_effects").css("display", "none");
286
- break;
287
- case "blog":
288
- jQuery("#gb_gallery_format").css("display", "block");
289
- jQuery("#div_img_in_row").css("display", "none");
290
- jQuery("#div_img_width").css("display", "none");
291
- jQuery("#div_special_effects").css("display", "block");
292
- jQuery("#div_animation_effects").css("display", "block");
293
- jQuery("#ux_special_effects").val("grayscale");
294
- jQuery("#option_cornor_ribbons").css("display", "none");
295
- jQuery("#option_hover_rotation").css("display", "none");
296
- jQuery("#option_levitation_shadow").css("display", "none");
297
- jQuery("#option_lomo_effect").css("display", "none");
298
- jQuery("#option_overlay_fade").css("display", "none");
299
- jQuery("#option_overlay_join").css("display", "none");
300
- jQuery("#option_overlay_slide").css("display", "none");
301
- jQuery("#option_overlay_split").css("display", "none");
302
- jQuery("#option_perspective_images").css("display", "none");
303
- jQuery("#option_rounded_images").css("display", "none");
304
- jQuery("#option_pulse").css("display", "none");
305
  break;
306
  default:
307
- jQuery("#gb_gallery_format").css("display", "block");
308
  jQuery("#div_img_in_row").css("display", "none");
309
- jQuery("#div_img_width").css("display", "none");
310
- jQuery("#div_special_effects").css("display", "block");
311
  jQuery("#div_animation_effects").css("display", "block");
312
- jQuery("#option_cornor_ribbons").css("display", "block");
313
- jQuery("#option_hover_rotation").css("display", "block");
314
- jQuery("#option_levitation_shadow").css("display", "block");
315
- jQuery("#option_lomo_effect").css("display", "block");
316
- jQuery("#option_overlay_fade").css("display", "block");
317
- jQuery("#option_overlay_join").css("display", "block");
318
- jQuery("#option_overlay_slide").css("display", "block");
319
- jQuery("#option_overlay_split").css("display", "block");
320
- jQuery("#option_perspective_images").css("display", "block");
321
- jQuery("#option_rounded_images").css("display", "block");
322
- jQuery("#option_pulse").css("display", "block");
323
  break;
324
  }
325
  show_images_in_row();
326
  }
327
- function effects_settings() {
328
- var special_effects = jQuery("#ux_special_effects").val();
329
- switch (special_effects) {
330
- case "hover_rotation":
331
- jQuery("#rotation_setting").css("display", "block");
332
- jQuery("#overlay_color").css("display", "none");
333
- jQuery("#overlay_color_with_direction").css("display", "none");
334
- jQuery("#ribbon_color_with_direction").css("display", "none");
335
- jQuery("#levitation_shadow_div").css("display", "none");
336
- jQuery("#lomo_effect_div").css("display", "none");
337
- jQuery("#rounded_images_div").css("display", "none");
338
- break;
339
- case "overlay_fade":
340
- jQuery("#rotation_setting").css("display", "none");
341
- jQuery("#overlay_color").css("display", "block");
342
- jQuery("#overlay_color_with_direction").css("display", "none");
343
- jQuery("#ribbon_color_with_direction").css("display", "none");
344
- jQuery("#levitation_shadow_div").css("display", "none");
345
- jQuery("#lomo_effect_div").css("display", "none");
346
- jQuery("#rounded_images_div").css("display", "none");
347
- break;
348
- case "overlay_slide":
349
- jQuery("#rotation_setting").css("display", "none");
350
- jQuery("#overlay_color").css("display", "block");
351
- jQuery("#overlay_color_with_direction").css("display", "none");
352
- jQuery("#ribbon_color_with_direction").css("display", "none");
353
- jQuery("#levitation_shadow_div").css("display", "none");
354
- jQuery("#lomo_effect_div").css("display", "none");
355
- jQuery("#rounded_images_div").css("display", "none");
356
- break;
357
- case "overlay_split":
358
- jQuery("#rotation_setting").css("display", "none");
359
- jQuery("#overlay_color").css("display", "none");
360
- jQuery("#overlay_color_with_direction").css("display", "block");
361
- jQuery("#ribbon_color_with_direction").css("display", "none");
362
- jQuery("#levitation_shadow_div").css("display", "none");
363
- jQuery("#lomo_effect_div").css("display", "none");
364
- jQuery("#rounded_images_div").css("display", "none");
365
- break;
366
- case "overlay_join":
367
- jQuery("#rotation_setting").css("display", "none");
368
- jQuery("#overlay_color").css("display", "none");
369
- jQuery("#overlay_color_with_direction").css("display", "block");
370
- jQuery("#ribbon_color_with_direction").css("display", "none");
371
- jQuery("#levitation_shadow_div").css("display", "none");
372
- jQuery("#lomo_effect_div").css("display", "none");
373
- jQuery("#rounded_images_div").css("display", "none");
374
- break;
375
- case "corner_ribbons":
376
- jQuery("#rotation_setting").css("display", "none");
377
- jQuery("#overlay_color").css("display", "none");
378
- jQuery("#overlay_color_with_direction").css("display", "none");
379
- jQuery("#ribbon_color_with_direction").css("display", "block");
380
- jQuery("#levitation_shadow_div").css("display", "none");
381
- jQuery("#lomo_effect_div").css("display", "none");
382
- jQuery("#rounded_images_div").css("display", "none");
383
- break;
384
- case "levitation_shadow":
385
- jQuery("#rotation_setting").css("display", "none");
386
- jQuery("#overlay_color").css("display", "none");
387
- jQuery("#overlay_color_with_direction").css("display", "none");
388
- jQuery("#ribbon_color_with_direction").css("display", "none");
389
- jQuery("#levitation_shadow_div").css("display", "block");
390
- jQuery("#lomo_effect_div").css("display", "none");
391
- jQuery("#rounded_images_div").css("display", "none");
392
- break;
393
- case "lomo_effect":
394
- jQuery("#rotation_setting").css("display", "none");
395
- jQuery("#overlay_color").css("display", "none");
396
- jQuery("#overlay_color_with_direction").css("display", "none");
397
- jQuery("#ribbon_color_with_direction").css("display", "none");
398
- jQuery("#levitation_shadow_div").css("display", "none");
399
- jQuery("#lomo_effect_div").css("display", "block");
400
- jQuery("#rounded_images_div").css("display", "none");
401
- break;
402
- case "rounded_images":
403
- jQuery("#rotation_setting").css("display", "none");
404
- jQuery("#overlay_color").css("display", "none");
405
- jQuery("#overlay_color_with_direction").css("display", "none");
406
- jQuery("#ribbon_color_with_direction").css("display", "none");
407
- jQuery("#levitation_shadow_div").css("display", "none");
408
- jQuery("#lomo_effect_div").css("display", "none");
409
- jQuery("#rounded_images_div").css("display", "block");
410
- break;
411
- case "perspective_images":
412
- jQuery("#rotation_setting").css("display", "block");
413
- jQuery("#overlay_color").css("display", "none");
414
- jQuery("#overlay_color_with_direction").css("display", "none");
415
- jQuery("#ribbon_color_with_direction").css("display", "none");
416
- jQuery("#levitation_shadow_div").css("display", "none");
417
- jQuery("#lomo_effect_div").css("display", "none");
418
- jQuery("#rounded_images_div").css("display", "none");
419
- break;
420
- default:
421
- jQuery("#rotation_setting").css("display", "none");
422
- jQuery("#overlay_color").css("display", "none");
423
- jQuery("#overlay_color_with_direction").css("display", "none");
424
- jQuery("#ribbon_color_with_direction").css("display", "none");
425
- jQuery("#levitation_shadow_div").css("display", "none");
426
- jQuery("#lomo_effect_div").css("display", "none");
427
- jQuery("#rounded_images_div").css("display", "none");
428
- break;
429
- }
430
- }
431
  function show_special_effect() {
432
  var text_format = jQuery("#ux_text_format").val();
433
- var gallery_format = jQuery("#ux_gallery_format").val();
434
- if (text_format == "no_text" && (gallery_format != "slideshow" && gallery_format != "filmstrip" )) {
435
- jQuery("#div_special_effects").css("display", "block");
436
- effects_settings();
437
  }
438
- else if(gallery_format == "blog")
439
  {
440
- jQuery("#div_special_effects").css("display", "block");
441
- }
442
- else {
443
  jQuery("#div_special_effects").css("display", "none");
444
- jQuery("#rotation_setting").css("display", "none");
445
- jQuery("#overlay_color").css("display", "none");
446
- jQuery("#overlay_color_with_direction").css("display", "none");
447
- jQuery("#ribbon_color_with_direction").css("display", "none");
448
- jQuery("#levitation_shadow_div").css("display", "none");
449
- jQuery("#lomo_effect_div").css("display", "none");
450
- jQuery("#rounded_images_div").css("display", "none");
451
  }
452
  }
453
  function show_gallery_albums()
@@ -474,18 +249,18 @@ function check_gallery_type() {
474
  jQuery("#ux_select_multiple_albums").css("display", "none");
475
  }
476
  else {
477
- jQuery("#album_format").css("display", "block");
478
  if (album_format != "individual") {
479
  jQuery("#ux_select_album").css("display", "none");
480
  if (album_format == "grid") {
481
- jQuery("#div_albums_in_row").css("display", "block");
482
  jQuery("#slide_show").css("display", "block");
483
- jQuery("#ux_show_multiple_albums").css("display", "block");
484
  }
485
  else {
486
  jQuery("#div_albums_in_row").css("display", "none");
487
  jQuery("#slide_show").css("display", "block");
488
- jQuery("#ux_show_multiple_albums").css("display", "block");
489
  }
490
  show_gallery_albums();
491
  }
@@ -514,50 +289,20 @@ function InsertGallery() {
514
  var text_format = jQuery("#ux_text_format").val();
515
  var images_in_row = jQuery("#ux_img_in_row").val();
516
  var album_in_row = jQuery("#ux_album_in_row").val();
517
- var filmstrip_width = jQuery("#ux_img_width").val();
518
  var gallery_type = jQuery("input:radio[name=ux_gallery]:checked").val();
519
  var album_type = jQuery("#ddl_show_albums").val();
520
  var selected_albums = jQuery("#ddl_add_multi_album").val();
 
 
 
521
 
522
- var special_effect = jQuery("#ux_special_effects").val();
523
- var rotation = jQuery("#ux_rotation").val();
524
- var overlay_color = jQuery("#ux_overlay_color").val();
525
- var overlay_color_with_dir = jQuery("#ux_overlay_color_with_dir").val();
526
- var overlay_dir = jQuery("#ux_overlay_dir").val();
527
- var ribbon_color = jQuery("#ux_ribbon_color").val();
528
- var ribbon_dir = jQuery("#ux_ribbon_dir").val();
529
- var shadow = jQuery("#ux_shadow").val();
530
- var lomo_color = jQuery("#ux_lomo_color").val();
531
- var lomo_dir = jQuery("#ux_lomo_dir").val();
532
- var rounded_images = jQuery("#ux_rounded_images").val();
533
- var animation_effects = jQuery("#ux_animation_effects").val();
534
  var displayAlbumTitle = jQuery("#ux_album_title").prop("checked");
535
  var responsiveGallery = jQuery("#ux_responsive_gallery").prop("checked");
536
  var responsive;
537
 
538
- if (album_id == "" && (album_format == "individual" || gallery_type == 0)) {
539
- alert("<?php _e("Please select an Album", gallery_bank) ?>");
540
- return;
541
- }
542
- else if (gallery_type == 1 && album_format == "") {
543
- alert("<?php _e("Please select an Album Format", gallery_bank) ?>");
544
- return;
545
- }
546
- else if(gallery_type == 1 && ((album_format == "grid" || album_format == "list") && selected_albums == ""))
547
  {
548
- alert("<?php _e("Please select Albums", gallery_bank) ?>");
549
- return;
550
- }
551
- else if (gallery_format == "") {
552
- alert("<?php _e("Please select a Gallery Images Format", gallery_bank) ?>");
553
- return;
554
- }
555
- else if (text_format == "" && gallery_format != "slideshow") {
556
- alert("<?php _e("Please select a Text Format for the Gallery", gallery_bank) ?>");
557
- return;
558
- }
559
- else if (gallery_format == "slideshow" || gallery_format == "filmstrip" || gallery_format == "blog") {
560
- alert("This Feature is only available in Paid Premium Version!");
561
  return;
562
  }
563
 
@@ -569,6 +314,7 @@ function InsertGallery() {
569
  {
570
  responsive = "img_in_row=\""+ images_in_row+"\"";
571
  }
 
572
  if(album_type == "all")
573
  {
574
  var display_selected_albums = "show_albums=\"all\"";
@@ -577,43 +323,53 @@ function InsertGallery() {
577
  {
578
  var display_selected_albums = "show_albums=\""+ encodeURIComponent(selected_albums)+"\"";
579
  }
 
 
 
 
 
 
 
 
 
 
580
  if (gallery_type == 1) {
581
  if (album_format == "individual") {
582
  if (gallery_format == "thumbnail" || gallery_format == "masonry") {
583
  if (text_format == "title_only") {
584
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"true\" desc=\"false\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
585
  }
586
  else if (text_format == "title_desc") {
587
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"true\" desc=\"true\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
588
  }
589
  else if (text_format == "no_text") {
590
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"false\" desc=\"false\" "+responsive+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
591
  }
592
  }
593
  }
594
  else if (album_format == "grid") {
595
  if (gallery_format == "thumbnail" || gallery_format == "masonry") {
596
  if (text_format == "title_only") {
597
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"false\" "+responsive+" albums_in_row=\"" + album_in_row + "\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
598
  }
599
  else if (text_format == "title_desc") {
600
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"true\" "+responsive+" albums_in_row=\"" + album_in_row + "\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
601
  }
602
  else if (text_format == "no_text") {
603
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"false\" desc=\"false\" "+responsive+" albums_in_row=\"" + album_in_row + "\" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
604
  }
605
  }
606
  }
607
  else {
608
  if (gallery_format == "thumbnail" || gallery_format == "masonry") {
609
  if (text_format == "title_only") {
610
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"false\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
611
  }
612
  else if (text_format == "title_desc") {
613
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"true\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
614
  }
615
  else if (text_format == "no_text") {
616
- window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"false\" desc=\"false\" "+responsive+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
617
  }
618
  }
619
  }
@@ -621,13 +377,13 @@ function InsertGallery() {
621
  else {
622
  if (gallery_format == "thumbnail" || gallery_format == "masonry") {
623
  if (text_format == "title_only") {
624
- window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"true\" desc=\"false\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
625
  }
626
  else if (text_format == "title_desc") {
627
- window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"true\" desc=\"true\" "+responsive+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
628
  }
629
  else if (text_format == "no_text") {
630
- window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"false\" desc=\"false\" "+responsive+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
631
  }
632
  }
633
  }
1
+ <style>
2
+ #TB_ajaxContent { width: 752px !important; }
3
+ </style>
4
  <div id="my-gallery-content-id" style="display:none;">
5
+ <div style="padding:15px 15px 0 0;">
6
+ <div class="layout-control-group">
7
+ <label class="custom-layout-label" for="ux_gallery"><?php _e("Gallery Type", gallery_bank); ?> : </label>
8
+ <input type="radio" name="ux_gallery" value="1" onclick="check_gallery_type();"/>
9
+ <label><?php _e("Albums with Images", gallery_bank); ?></label>
10
+ <input type="radio" style="margin-left: 10px;" checked="checked" name="ux_gallery" value="0" onclick="check_gallery_type();"/> <label><?php _e("Only Images", gallery_bank); ?> </label>
11
  </div>
12
+ <div class="layout-control-group">
13
+ <div id="album_format" style="display: none;">
 
 
 
 
 
 
14
  <label class="custom-layout-label" for="ux_album_format"><?php _e("Album Format", gallery_bank); ?> : </label>
15
+ <select id="ux_album_format" class="layout-span3" onclick="check_gallery_type();" onchange="select_album();">
 
16
  <option value="grid">Grid Albums</option>
17
  <option value="list">List Albums</option>
18
  <option value="individual">Individual Album</option>
19
  </select>
20
  </div>
21
+ <div id="ux_show_multiple_albums" style="display: none;margin-left: 10px;">
22
  <label class="custom-layout-label"><?php _e("Choose Type", gallery_bank); ?> : </label>
23
+ <select id="ddl_show_albums" class="layout-span3" onchange="show_gallery_albums();" onchange="select_album();">
24
  <option value="all">All Albums</option>
25
  <option value="selected">Only Selected Albums</option>
26
  </select>
27
  </div>
28
+ </div>
29
+ <div class="layout-control-group" id="ux_select_multiple_albums"><!-- style="display: none;" -->
30
+ <label class="custom-layout-label"><?php _e("Choose Albums", gallery_bank); ?> : </label>
31
+ <select id="ddl_add_multi_album" class="layout-span7" multiple="multiple">
32
+ <?php
33
+ global $wpdb;
34
+ $albums = $wpdb->get_results
35
+ (
36
+ "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
37
+ );
38
+ for ($flag = 0; $flag < count($albums); $flag++) {
39
+ ?>
40
+ <option value="<?php echo intval($albums[$flag]->album_id); ?>"><?php echo esc_html($albums[$flag]->album_name) ?></option>
41
+ <?php
42
+ }
43
+ ?>
44
+ </select>
45
+ </div>
46
+ <div class="layout-control-group" id="ux_select_album" style="display: block;">
47
+ <label class="custom-layout-label"><?php _e("Choose Album", gallery_bank); ?> : </label>
48
+ <select id="ux_ddl_select_album" class="layout-span7">
49
+ <?php
50
+ global $wpdb,$current_user;
51
+
52
+ $gb_role = $wpdb->prefix . "capabilities";
53
+ $current_user->role = array_keys($current_user->$gb_role);
54
+ $gb_role = $current_user->role[0];
55
+ if($gb_role == "administrator")
56
+ {
57
  $albums = $wpdb->get_results
58
  (
59
  "SELECT * FROM ".gallery_bank_albums()." order by album_order asc "
60
  );
61
+ }
62
+ else
63
+ {
64
+ $albums = $wpdb->get_results
65
+ (
66
+ $wpdb->prepare
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  (
68
+ "SELECT * FROM ".gallery_bank_albums()." where author = %s order by album_order asc ",
69
+ $current_user->display_name
70
+ )
71
+ );
72
+ }
73
+ for ($flag = 0; $flag < count($albums); $flag++) {
 
 
 
 
 
 
74
  ?>
75
+ <option value="<?php echo intval($albums[$flag]->album_id); ?>"><?php echo esc_html($albums[$flag]->album_name) ?></option>
76
+ <?php
77
+ }
78
+ ?>
79
+ </select>
80
+ </div>
81
+ <div class="layout-control-group">
82
+ <label class="custom-layout-label"><?php _e("Gallery Format", gallery_bank); ?> : </label>
83
+ <select id="ux_gallery_format" class="layout-span3" onchange="select_images_in_row();">
84
+ <option value="masonry">Masonry Gallery</option>
85
+ <option value="filmstrip" disabled="disabled" style="color: #FF0000;">Filmstrip Gallery (Available only in Premium Versions)</option>
86
+ <option value="blog" disabled="disabled" style="color: #FF0000;">Blog Style Gallery (Available only in Premium Versions)</option>
87
+ <option id="slide_show" disabled="disabled" value="slideshow" style="color: #FF0000;">Slideshow Gallery (Available only in Premium Versions)</option>
88
+ <option value="thumbnail">Thumbnail Gallery</option>
89
+ </select>
90
+ <div id="gb_gallery_format" style="display: inline-block; margin-left: 10px;">
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  <label class="custom-layout-label"><?php _e("Text Format", gallery_bank); ?> : </label>
92
+ <select id="ux_text_format" class="layout-span3" onchange="show_special_effect();">
 
93
  <option value="title_only">With Title only</option>
94
  <option value="title_desc">With Title and Description</option>
95
  <option value="no_text">Without Title and Description</option>
96
  </select>
97
  </div>
98
+ </div>
99
+ <div class="layout-control-group">
100
+ <div id="div_albums_in_row" style="display: none;margin-right:10px;">
101
+ <label class="custom-layout-label"><?php _e("Albums in Row", gallery_bank); ?> : </label>
102
+ <input type="text" class="layout-span3" name="ux_album_in_row" id="ux_album_in_row" onkeyup="set_text_value(\"album_in_row\");" onkeypress="return OnlyNumbers(event);" value="3"/>
103
+ </div>
104
+ <div id="div_img_in_row" style="display: none;">
105
+ <label class="custom-layout-label"><?php _e("Images in Row", gallery_bank); ?> : </label>
106
+ <input type="text" class="layout-span3" name="ux_img_in_row" id="ux_img_in_row" onkeyup="set_text_value(\"img_in_row\");" onkeypress="return OnlyNumbers(event);" value="3"/>
107
+ </div>
108
+ </div>
109
+ <div class="layout-control-group" id="div_animation_effects">
110
+ <label class="custom-layout-label"><?php _e("Animation Effects", gallery_bank); ?> : </label>
111
+ <select id="ux_animation_effects" class="layout-span3" disabled= "disabled">
112
+ <option value="bounce">Bounce</option>
113
+ </select>
114
+ <div id="div_special_effects" style="display: none;margin-left: 10px;">
115
  <label class="custom-layout-label"><?php _e("Special Effects", gallery_bank); ?> : </label>
116
+ <select id="ux_special_effects" class="layout-span3" disabled= "disabled">
 
 
117
  <option value="grayscale">Grayscale</option>
 
 
 
 
 
 
 
 
 
 
 
 
118
  </select>
 
 
119
  </div>
120
+ </div>
121
+ <div class="layout-control-group">
122
+ <label class="custom-layout-label"></label>
123
+ <i class="widget_premium_feature">(Available only in Premium Versions)</i>
124
+ </div>
125
+ <div class="layout-control-group">
126
+ <label class="custom-layout-label"><?php _e("Display Images", gallery_bank); ?> : </label>
127
+ <select name="ddl_display_images" onchange="gb_display_images();" id="ddl_display_images" class="layout-span3">
128
+ <option value="all">All</option>
129
+ <option value="selected">Selected</option>
130
+ </select>
131
+ <div style="display: inline-block;margin-left: 10px;">
132
+ <label class="custom-layout-label"><?php _e("Sort By", gallery_bank); ?> : </label>
133
+ <select name="ddl_sort_order" id="ddl_sort_order" class="layout-span3">
134
+ <option value="random">Random</option>
135
+ <option value="pic_id">Image Id</option>
136
+ <option value="pic_name">File Name</option>
137
+ <option value="title">Title Text</option>
138
+ <option value="date">Date</option>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  </select>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  </div>
141
  </div>
142
+ <div class="layout-control-group" id="div_no_of_images" style="display: none;">
143
+ <label class="custom-layout-label"><?php _e("No. of Images", gallery_bank); ?> : </label>
144
+ <input type="text" class="layout-span3" onkeypress="return OnlyNumbers(event);" name="ux_show_no_of_images" id="ux_show_no_of_images" value="10" />
145
+ </div>
146
+ <div class="layout-control-group">
147
+ <label class="custom-layout-label"><?php _e("Show Responsive Gallery", gallery_bank); ?> : </label>
148
+ <input type="checkbox" checked="checked" onclick="show_images_in_row();" name="ux_responsive_gallery" id="ux_responsive_gallery"/>
149
+ <label class="custom-layout-label" style="margin-left:7%;"><?php _e("Show Album Title", gallery_bank); ?> : </label>
150
+ <input type="checkbox" checked="checked" name="ux_album_title" id="ux_album_title" style="vertical-align: -webkit-baseline-middle;"/>
151
+ </div>
152
+ <div class="layout-control-group">
153
+ <label class="custom-layout-label"></label>
154
+ <input type="button" class="button-primary" value="<?php _e("Insert Album", gallery_bank); ?>" onclick="InsertGallery();"/>&nbsp;&nbsp;&nbsp;
155
+ <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", gallery_bank); ?></a>
156
+ </div>
157
  </div>
158
  </div>
159
  <script type="text/javascript">
160
  jQuery(document).ready(function () {
161
  check_gallery_type();
162
  select_images_in_row();
 
163
  show_special_effect();
164
  show_images_in_row();
165
+ gb_display_images();
166
  });
167
+ function gb_display_images()
168
+ {
169
+ var show_images = jQuery("#ddl_display_images").val();
170
+ if(show_images == "selected")
171
+ {
172
+ jQuery("#div_no_of_images").css("display","block");
173
+ }
174
+ else
175
+ {
176
+ jQuery("#div_no_of_images").css("display","none");
177
+ }
178
+ }
179
  function show_images_in_row()
180
  {
181
  var responsive = jQuery("#ux_responsive_gallery").prop("checked");
186
  }
187
  else if(gallery_format != "blog" && gallery_format != "slideshow")
188
  {
189
+ jQuery("#div_img_in_row").css("display","inline-block");
190
  }
191
  }
192
  function select_images_in_row() {
194
  switch(gallery_format)
195
  {
196
  case "thumbnail":
197
+ jQuery("#div_img_in_row").css("display", "inline-block");
198
+ jQuery("#gb_gallery_format").css("display", "inline-block");
199
+ jQuery("#div_special_effects").css("display", "inline-block");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  jQuery("#div_animation_effects").css("display", "block");
201
  break;
202
  case "masonry":
203
+ jQuery("#div_img_in_row").css("display", "inline-block");
204
+ jQuery("#gb_gallery_format").css("display", "inline-block");
205
+ jQuery("#div_special_effects").css("display", "inline-block");
 
206
  jQuery("#div_animation_effects").css("display", "block");
207
  jQuery("#ux_special_effects").val("grayscale");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
208
  break;
209
  default:
210
+ jQuery("#gb_gallery_format").css("display", "inline-block");
211
  jQuery("#div_img_in_row").css("display", "none");
212
+ jQuery("#div_special_effects").css("display", "inline-block");
 
213
  jQuery("#div_animation_effects").css("display", "block");
 
 
 
 
 
 
 
 
 
 
 
214
  break;
215
  }
216
  show_images_in_row();
217
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  function show_special_effect() {
219
  var text_format = jQuery("#ux_text_format").val();
220
+ if (text_format == "no_text") {
221
+ jQuery("#div_special_effects").css("display", "inline-block");
 
 
222
  }
223
+ else
224
  {
 
 
 
225
  jQuery("#div_special_effects").css("display", "none");
 
 
 
 
 
 
 
226
  }
227
  }
228
  function show_gallery_albums()
249
  jQuery("#ux_select_multiple_albums").css("display", "none");
250
  }
251
  else {
252
+ jQuery("#album_format").css("display", "inline-block");
253
  if (album_format != "individual") {
254
  jQuery("#ux_select_album").css("display", "none");
255
  if (album_format == "grid") {
256
+ jQuery("#div_albums_in_row").css("display", "inline-block");
257
  jQuery("#slide_show").css("display", "block");
258
+ jQuery("#ux_show_multiple_albums").css("display", "inline-block");
259
  }
260
  else {
261
  jQuery("#div_albums_in_row").css("display", "none");
262
  jQuery("#slide_show").css("display", "block");
263
+ jQuery("#ux_show_multiple_albums").css("display", "inline-block");
264
  }
265
  show_gallery_albums();
266
  }
289
  var text_format = jQuery("#ux_text_format").val();
290
  var images_in_row = jQuery("#ux_img_in_row").val();
291
  var album_in_row = jQuery("#ux_album_in_row").val();
 
292
  var gallery_type = jQuery("input:radio[name=ux_gallery]:checked").val();
293
  var album_type = jQuery("#ddl_show_albums").val();
294
  var selected_albums = jQuery("#ddl_add_multi_album").val();
295
+ var display_images = jQuery("#ddl_display_images").val();
296
+ var no_of_images = jQuery("#ux_show_no_of_images").val();
297
+ var sort_order = jQuery("#ddl_sort_order").val();
298
 
 
 
 
 
 
 
 
 
 
 
 
 
299
  var displayAlbumTitle = jQuery("#ux_album_title").prop("checked");
300
  var responsiveGallery = jQuery("#ux_responsive_gallery").prop("checked");
301
  var responsive;
302
 
303
+ if(no_of_images == "")
 
 
 
 
 
 
 
 
304
  {
305
+ alert("<?php _e("Enter number of images you want to display.", gallery_bank) ?>");
 
 
 
 
 
 
 
 
 
 
 
 
306
  return;
307
  }
308
 
314
  {
315
  responsive = "img_in_row=\""+ images_in_row+"\"";
316
  }
317
+
318
  if(album_type == "all")
319
  {
320
  var display_selected_albums = "show_albums=\"all\"";
323
  {
324
  var display_selected_albums = "show_albums=\""+ encodeURIComponent(selected_albums)+"\"";
325
  }
326
+
327
+ if(display_images == "all")
328
+ {
329
+ var show_no_of_images = "display=\"all\" sort_by=\""+sort_order+"\"";
330
+ }
331
+ else
332
+ {
333
+ var show_no_of_images = "display=\"selected\" no_of_images=\""+no_of_images+"\" sort_by=\""+sort_order+"\"";
334
+ }
335
+
336
  if (gallery_type == 1) {
337
  if (album_format == "individual") {
338
  if (gallery_format == "thumbnail" || gallery_format == "masonry") {
339
  if (text_format == "title_only") {
340
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"true\" desc=\"false\" "+responsive+" "+show_no_of_images+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
341
  }
342
  else if (text_format == "title_desc") {
343
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"true\" desc=\"true\" "+responsive+" "+show_no_of_images+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
344
  }
345
  else if (text_format == "no_text") {
346
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" title=\"false\" desc=\"false\" "+responsive+" "+show_no_of_images+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
347
  }
348
  }
349
  }
350
  else if (album_format == "grid") {
351
  if (gallery_format == "thumbnail" || gallery_format == "masonry") {
352
  if (text_format == "title_only") {
353
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"false\" "+responsive+" "+show_no_of_images+" albums_in_row=\"" + album_in_row + "\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
354
  }
355
  else if (text_format == "title_desc") {
356
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"true\" "+responsive+" "+show_no_of_images+" albums_in_row=\"" + album_in_row + "\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
357
  }
358
  else if (text_format == "no_text") {
359
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"false\" desc=\"false\" "+responsive+" "+show_no_of_images+" albums_in_row=\"" + album_in_row + "\" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
360
  }
361
  }
362
  }
363
  else {
364
  if (gallery_format == "thumbnail" || gallery_format == "masonry") {
365
  if (text_format == "title_only") {
366
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"false\" "+responsive+" "+show_no_of_images+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
367
  }
368
  else if (text_format == "title_desc") {
369
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"true\" desc=\"true\" "+responsive+" "+show_no_of_images+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
370
  }
371
  else if (text_format == "no_text") {
372
+ window.send_to_editor("[gallery_bank type=\"" + album_format + "\" format=\"" + gallery_format + "\" "+display_selected_albums+" title=\"false\" desc=\"false\" "+responsive+" "+show_no_of_images+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\"]");
373
  }
374
  }
375
  }
377
  else {
378
  if (gallery_format == "thumbnail" || gallery_format == "masonry") {
379
  if (text_format == "title_only") {
380
+ window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"true\" desc=\"false\" "+responsive+" "+show_no_of_images+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
381
  }
382
  else if (text_format == "title_desc") {
383
+ window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"true\" desc=\"true\" "+responsive+" "+show_no_of_images+" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
384
  }
385
  else if (text_format == "no_text") {
386
+ window.send_to_editor("[gallery_bank type=\"images\" format=\"" + gallery_format + "\" title=\"false\" desc=\"false\" "+responsive+" "+show_no_of_images+" special_effect=\"\" animation_effect=\"\" album_title=\"" + displayAlbumTitle + "\" album_id=\"" + album_id + "\"]");
387
  }
388
  }
389
  }
front_views/includes_common_after.php CHANGED
@@ -75,6 +75,9 @@ switch ($album_type) {
75
  var show_album_title = "<?php echo $album_title; ?>";
76
  var filmstrip_width = "<?php echo $image_width; ?>";
77
  var isResponsive = "<?php echo $responsive;?>";
 
 
 
78
  jQuery(".albums-in-row_" + unique_id).css("display", "none");
79
  jQuery("#back_button" + unique_id).css("display", "none");
80
  jQuery("#seperator" + unique_id).css("display", "none");
@@ -84,7 +87,7 @@ switch ($album_type) {
84
  "&images_in_row=" + images_in_row + "&iswidget=" + iswidget +
85
  "&special_effects=" + special_effects + "&animation_effects=" + animation_effects +
86
  "&filmstrip_width=" + filmstrip_width + "&show_album_title=" + show_album_title +
87
- "&isResponsive="+isResponsive+
88
  "&param=show_album_gallery&action=front_view_all_albums_library", function (data) {
89
  jQuery("#back_button" + unique_id).css("display", "block");
90
  jQuery("#seperator" + unique_id).css("display", "block");
@@ -127,6 +130,9 @@ switch ($album_type) {
127
  var show_album_title = "<?php echo $album_title; ?>";
128
  var filmstrip_width = "<?php echo $image_width; ?>";
129
  var isResponsive = "<?php echo $responsive;?>";
 
 
 
130
  jQuery("#view_gallery_bank_albums_" + unique_id).css("display", "none");
131
  jQuery("#back_button" + unique_id).css("display", "none");
132
  jQuery("#seperator" + unique_id).css("display", "none");
@@ -136,7 +142,7 @@ switch ($album_type) {
136
  "&images_in_row=" + images_in_row + "&iswidget=" + iswidget +
137
  "&special_effects=" + special_effects + "&animation_effects=" + animation_effects +
138
  "&filmstrip_width=" + filmstrip_width + "&show_album_title=" + show_album_title +
139
- "&isResponsive="+isResponsive+
140
  "&param=show_album_gallery&action=front_view_all_albums_library", function (data) {
141
  jQuery("#back_button" + unique_id).css("display", "block");
142
  jQuery("#seperator" + unique_id).css("display", "block");
@@ -179,6 +185,9 @@ switch ($album_type) {
179
  var show_album_title = "<?php echo $album_title; ?>";
180
  var filmstrip_width = "<?php echo $image_width; ?>";
181
  var isResponsive = "<?php echo $responsive;?>";
 
 
 
182
  jQuery("#ux_individual_main_div" + unique_id).css("display", "none");
183
  jQuery("#back_button" + unique_id).css("display", "none");
184
  jQuery("#seperator" + unique_id).css("display", "none");
@@ -188,7 +197,7 @@ switch ($album_type) {
188
  "&images_in_row=" + images_in_row + "&iswidget=" + iswidget +
189
  "&special_effects=" + special_effects + "&animation_effects=" + animation_effects +
190
  "&filmstrip_width=" + filmstrip_width + "&show_album_title=" + show_album_title +
191
- "&isResponsive="+isResponsive+
192
  "&param=show_album_gallery&action=front_view_all_albums_library", function (data) {
193
  jQuery("#back_button" + unique_id).css("display", "block");
194
  jQuery("#seperator" + unique_id).css("display", "block");
75
  var show_album_title = "<?php echo $album_title; ?>";
76
  var filmstrip_width = "<?php echo $image_width; ?>";
77
  var isResponsive = "<?php echo $responsive;?>";
78
+ var display = "<?php echo $display;?>";
79
+ var sort_order = "<?php echo $sort_by;?>";
80
+ var display_no_of_images = "<?php echo $no_of_images;?>";
81
  jQuery(".albums-in-row_" + unique_id).css("display", "none");
82
  jQuery("#back_button" + unique_id).css("display", "none");
83
  jQuery("#seperator" + unique_id).css("display", "none");
87
  "&images_in_row=" + images_in_row + "&iswidget=" + iswidget +
88
  "&special_effects=" + special_effects + "&animation_effects=" + animation_effects +
89
  "&filmstrip_width=" + filmstrip_width + "&show_album_title=" + show_album_title +
90
+ "&isResponsive="+isResponsive+"&no_of_images="+display_no_of_images+"&display="+display+"&sort_by="+sort_order+
91
  "&param=show_album_gallery&action=front_view_all_albums_library", function (data) {
92
  jQuery("#back_button" + unique_id).css("display", "block");
93
  jQuery("#seperator" + unique_id).css("display", "block");
130
  var show_album_title = "<?php echo $album_title; ?>";
131
  var filmstrip_width = "<?php echo $image_width; ?>";
132
  var isResponsive = "<?php echo $responsive;?>";
133
+ var display = "<?php echo $display;?>";
134
+ var sort_order = "<?php echo $sort_by;?>";
135
+ var display_no_of_images = "<?php echo $no_of_images;?>";
136
  jQuery("#view_gallery_bank_albums_" + unique_id).css("display", "none");
137
  jQuery("#back_button" + unique_id).css("display", "none");
138
  jQuery("#seperator" + unique_id).css("display", "none");
142
  "&images_in_row=" + images_in_row + "&iswidget=" + iswidget +
143
  "&special_effects=" + special_effects + "&animation_effects=" + animation_effects +
144
  "&filmstrip_width=" + filmstrip_width + "&show_album_title=" + show_album_title +
145
+ "&isResponsive="+isResponsive+"&no_of_images="+display_no_of_images+"&display="+display+"&sort_by="+sort_order+
146
  "&param=show_album_gallery&action=front_view_all_albums_library", function (data) {
147
  jQuery("#back_button" + unique_id).css("display", "block");
148
  jQuery("#seperator" + unique_id).css("display", "block");
185
  var show_album_title = "<?php echo $album_title; ?>";
186
  var filmstrip_width = "<?php echo $image_width; ?>";
187
  var isResponsive = "<?php echo $responsive;?>";
188
+ var display = "<?php echo $display;?>";
189
+ var sort_order = "<?php echo $sort_by;?>";
190
+ var display_no_of_images = "<?php echo $no_of_images;?>";
191
  jQuery("#ux_individual_main_div" + unique_id).css("display", "none");
192
  jQuery("#back_button" + unique_id).css("display", "none");
193
  jQuery("#seperator" + unique_id).css("display", "none");
197
  "&images_in_row=" + images_in_row + "&iswidget=" + iswidget +
198
  "&special_effects=" + special_effects + "&animation_effects=" + animation_effects +
199
  "&filmstrip_width=" + filmstrip_width + "&show_album_title=" + show_album_title +
200
+ "&isResponsive="+isResponsive+"&no_of_images="+display_no_of_images+"&display="+display+"&sort_by="+sort_order+
201
  "&param=show_album_gallery&action=front_view_all_albums_library", function (data) {
202
  jQuery("#back_button" + unique_id).css("display", "block");
203
  jQuery("#seperator" + unique_id).css("display", "block");
front_views/includes_common_before.php CHANGED
@@ -23,14 +23,128 @@ switch ($album_type) {
23
  $album_id
24
  )
25
  );
26
- $pics = $wpdb->get_results
27
- (
28
- $wpdb->prepare
 
 
 
29
  (
30
- "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by sorting_order asc",
31
- $album_id
32
- )
33
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  break;
35
  case "individual":
36
  if (isset($widget)) {
23
  $album_id
24
  )
25
  );
26
+ if($display == "all" || $display == "")
27
+ {
28
+ switch($sort_by)
29
+ {
30
+ case "random":
31
+ $pics = $wpdb->get_results
32
  (
33
+ $wpdb->prepare
34
+ (
35
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY RAND()",
36
+ $album_id
37
+ )
38
+ );
39
+ break;
40
+ case "pic_id":
41
+ $pics = $wpdb->get_results
42
+ (
43
+ $wpdb->prepare
44
+ (
45
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY pic_id asc",
46
+ $album_id
47
+ )
48
+ );
49
+ break;
50
+ case "pic_name":
51
+ $pics = $wpdb->get_results
52
+ (
53
+ $wpdb->prepare
54
+ (
55
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY pic_name asc",
56
+ $album_id
57
+ )
58
+ );
59
+ break;
60
+ case "title":
61
+ $pics = $wpdb->get_results
62
+ (
63
+ $wpdb->prepare
64
+ (
65
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY title asc",
66
+ $album_id
67
+ )
68
+ );
69
+ break;
70
+ case "date":
71
+ $pics = $wpdb->get_results
72
+ (
73
+ $wpdb->prepare
74
+ (
75
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY date asc",
76
+ $album_id
77
+ )
78
+ );
79
+ break;
80
+ default:
81
+ $pics = $wpdb->get_results
82
+ (
83
+ $wpdb->prepare
84
+ (
85
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d order by sorting_order asc",
86
+ $album_id
87
+ )
88
+ );
89
+ break;
90
+ }
91
+ }
92
+ else
93
+ {
94
+ switch($sort_by)
95
+ {
96
+ case "random":
97
+ $pics = $wpdb->get_results
98
+ (
99
+ $wpdb->prepare
100
+ (
101
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY RAND() LIMIT $no_of_images",
102
+ $album_id
103
+ )
104
+ );
105
+ break;
106
+ case "pic_id":
107
+ $pics = $wpdb->get_results
108
+ (
109
+ $wpdb->prepare
110
+ (
111
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY pic_id asc LIMIT $no_of_images",
112
+ $album_id
113
+ )
114
+ );
115
+ break;
116
+ case "pic_name":
117
+ $pics = $wpdb->get_results
118
+ (
119
+ $wpdb->prepare
120
+ (
121
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY pic_name asc LIMIT $no_of_images",
122
+ $album_id
123
+ )
124
+ );
125
+ break;
126
+ case "title":
127
+ $pics = $wpdb->get_results
128
+ (
129
+ $wpdb->prepare
130
+ (
131
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY title asc LIMIT $no_of_images",
132
+ $album_id
133
+ )
134
+ );
135
+ break;
136
+ case "date":
137
+ $pics = $wpdb->get_results
138
+ (
139
+ $wpdb->prepare
140
+ (
141
+ "SELECT * FROM " . gallery_bank_pics() . " WHERE album_id = %d ORDER BY date asc LIMIT $no_of_images",
142
+ $album_id
143
+ )
144
+ );
145
+ break;
146
+ }
147
+ }
148
  break;
149
  case "individual":
150
  if (isset($widget)) {
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.0.102
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -126,12 +126,6 @@ function add_gallery_bank_icon($meta = TRUE)
126
  "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
127
  "title" => __("Dashboard", gallery_bank))
128
  );
129
- $wp_admin_bar->add_menu(array(
130
- "parent" => "gallery_bank_links",
131
- "id" => "gallery_auto_update_links",
132
- "href" => site_url() . "/wp-admin/admin.php?page=gallery_auto_plugin_update",
133
- "title" => __("Plugin Updates", gallery_bank))
134
- );
135
 
136
  $wp_admin_bar->add_menu(array(
137
  "parent" => "gallery_bank_links",
@@ -154,6 +148,18 @@ function add_gallery_bank_icon($meta = TRUE)
154
  "title" => __("Global Settings", gallery_bank))
155
  );
156
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  $wp_admin_bar->add_menu(array(
158
  "parent" => "gallery_bank_links",
159
  "id" => "system_status_links",
@@ -196,12 +202,6 @@ function add_gallery_bank_icon($meta = TRUE)
196
  "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
197
  "title" => __("Dashboard", gallery_bank))
198
  );
199
- $wp_admin_bar->add_menu(array(
200
- "parent" => "gallery_bank_links",
201
- "id" => "gallery_auto_update_links",
202
- "href" => site_url() . "/wp-admin/admin.php?page=gallery_auto_plugin_update",
203
- "title" => __("Plugin Updates", gallery_bank))
204
- );
205
 
206
  $wp_admin_bar->add_menu(array(
207
  "parent" => "gallery_bank_links",
@@ -224,6 +224,20 @@ function add_gallery_bank_icon($meta = TRUE)
224
  "title" => __("Global Settings", gallery_bank))
225
  );
226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  $wp_admin_bar->add_menu(array(
228
  "parent" => "gallery_bank_links",
229
  "id" => "system_status_links",
@@ -266,13 +280,7 @@ function add_gallery_bank_icon($meta = TRUE)
266
  "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
267
  "title" => __("Dashboard", gallery_bank))
268
  );
269
- $wp_admin_bar->add_menu(array(
270
- "parent" => "gallery_bank_links",
271
- "id" => "gallery_auto_update_links",
272
- "href" => site_url() . "/wp-admin/admin.php?page=gallery_auto_plugin_update",
273
- "title" => __("Plugin Updates", gallery_bank))
274
- );
275
-
276
  $wp_admin_bar->add_menu(array(
277
  "parent" => "gallery_bank_links",
278
  "id" => "shortcode_links",
@@ -294,6 +302,20 @@ function add_gallery_bank_icon($meta = TRUE)
294
  "title" => __("Global Settings", gallery_bank))
295
  );
296
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
297
  $wp_admin_bar->add_menu(array(
298
  "parent" => "gallery_bank_links",
299
  "id" => "system_status_links",
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.0.103
8
  Author URI: http://tech-banker.com
9
  */
10
  ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
126
  "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
127
  "title" => __("Dashboard", gallery_bank))
128
  );
 
 
 
 
 
 
129
 
130
  $wp_admin_bar->add_menu(array(
131
  "parent" => "gallery_bank_links",
148
  "title" => __("Global Settings", gallery_bank))
149
  );
150
 
151
+ $wp_admin_bar->add_menu(array(
152
+ "parent" => "gallery_bank_links",
153
+ "id" => "gallery_auto_update_links",
154
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_auto_plugin_update",
155
+ "title" => __("Plugin Updates", gallery_bank))
156
+ );
157
+ $wp_admin_bar->add_menu(array(
158
+ "parent" => "gallery_bank_links",
159
+ "id" => "gallery_feature_request_links",
160
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_feature_request",
161
+ "title" => __("Feature Requests", gallery_bank))
162
+ );
163
  $wp_admin_bar->add_menu(array(
164
  "parent" => "gallery_bank_links",
165
  "id" => "system_status_links",
202
  "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
203
  "title" => __("Dashboard", gallery_bank))
204
  );
 
 
 
 
 
 
205
 
206
  $wp_admin_bar->add_menu(array(
207
  "parent" => "gallery_bank_links",
224
  "title" => __("Global Settings", gallery_bank))
225
  );
226
 
227
+ $wp_admin_bar->add_menu(array(
228
+ "parent" => "gallery_bank_links",
229
+ "id" => "gallery_auto_update_links",
230
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_auto_plugin_update",
231
+ "title" => __("Plugin Updates", gallery_bank))
232
+ );
233
+
234
+ $wp_admin_bar->add_menu(array(
235
+ "parent" => "gallery_bank_links",
236
+ "id" => "gallery_feature_request_links",
237
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_feature_request",
238
+ "title" => __("Feature Requests", gallery_bank))
239
+ );
240
+
241
  $wp_admin_bar->add_menu(array(
242
  "parent" => "gallery_bank_links",
243
  "id" => "system_status_links",
280
  "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank",
281
  "title" => __("Dashboard", gallery_bank))
282
  );
283
+
 
 
 
 
 
 
284
  $wp_admin_bar->add_menu(array(
285
  "parent" => "gallery_bank_links",
286
  "id" => "shortcode_links",
302
  "title" => __("Global Settings", gallery_bank))
303
  );
304
 
305
+ $wp_admin_bar->add_menu(array(
306
+ "parent" => "gallery_bank_links",
307
+ "id" => "gallery_auto_update_links",
308
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_auto_plugin_update",
309
+ "title" => __("Plugin Updates", gallery_bank))
310
+ );
311
+
312
+ $wp_admin_bar->add_menu(array(
313
+ "parent" => "gallery_bank_links",
314
+ "id" => "gallery_feature_request_links",
315
+ "href" => site_url() . "/wp-admin/admin.php?page=gallery_bank_feature_request",
316
+ "title" => __("Feature Requests", gallery_bank))
317
+ );
318
+
319
  $wp_admin_bar->add_menu(array(
320
  "parent" => "gallery_bank_links",
321
  "id" => "system_status_links",
lib/add-new-album-class.php CHANGED
@@ -26,178 +26,178 @@ else
26
  switch($_REQUEST["param"])
27
  {
28
  case "add_new_dynamic_row_for_image":
29
- $img_path = esc_attr($_REQUEST["img_path"]);
30
- $img_name = esc_attr($_REQUEST["img_name"]);
31
- $img_width = intval($_REQUEST["image_width"]);
32
- $img_height = intval($_REQUEST["image_height"]);
33
  $picid = intval($_REQUEST["picid"]);
34
 
35
 
36
- process_image_upload($img_path, $img_width, $img_height);
37
 
38
- $column1 = "<input type=\"checkbox\" id=\"ux_grp_select_items_" . $picid . "\" name=\"ux_grp_select_items_" . $picid . "\" value=\"" . $picid . "\" />";
39
- array_push($dynamicArray, $column1);
40
 
41
- $column2 = "<a href=\"javascript:void(0);\" title=\"" . $img_name . "\" >
42
  <img type=\"image\" imgPath=\"" . $img_path . "\" src=\"" . GALLERY_BK_THUMB_SMALL_URL . $img_path . "\" id=\"ux_gb_img\" name=\"ux_gb_img\" class=\"img dynamic_css\" imageid=\"" . $picid . "\" width=\"" . $img_width . "\"/></a><br/>
43
  <label><strong>" . $img_name . "</strong></label><br/><label>" . date("F j, Y") . "</label><br/>
44
  <input type=\"radio\" style=\"cursor: pointer;\" onclick=\"select_one_radio(this);\" id=\"ux_rdl_cover\" name=\"ux_album_cover\" /><label>" . __(" Set as Album Cover", gallery_bank) . "</label>";
45
- array_push($dynamicArray, $column2);
46
 
47
- $column3 = "<input placeholder=\"" . __("Enter your Title", gallery_bank) . "\" class=\"layout-span12\" type=\"text\" name=\"ux_img_title_" . $picid . "\" id=\"ux_img_title_" . $picid . "\" />
48
  <textarea placeholder=\"" . __("Enter your Description ", gallery_bank) . "\" style=\"margin-top:20px\" rows=\"5\" class=\"layout-span12\" name=\"ux_txt_desc_" . $picid . "\" id=\"ux_txt_desc_" . $picid . "\"></textarea>";
49
- array_push($dynamicArray, $column3);
50
- $column4 = "<input placeholder=\"" . __("Enter your Tags", gallery_bank) . "\" class=\"layout-span12\" readonly=\"readonly\" type=\"text\" onkeypress=\"return preventDot(event);\" name=\"ux_txt_tags_" . $picid . "\" id=\"ux_txt_tags_" . $picid . "\" />";
51
- array_push($dynamicArray, $column4);
52
- $column5 = "<input value=\"http://\" type=\"text\" id=\"ux_txt_url_" . $picid . "\" name=\"ux_txt_url_" . $picid . "\" class=\"layout-span12\" />";
53
- array_push($dynamicArray, $column5);
54
- $column6 = "<a class=\"btn hovertip\" id=\"ux_btn_delete\" style=\"cursor: pointer;\" data-original-title=\"" . __("Delete Image", gallery_bank) . "\" onclick=\"deleteImage(this);\" controlId =\"" . $picid . "\" ><i class=\"icon-trash\"></i></a>";
55
- array_push($dynamicArray, $column6);
56
- echo json_encode($dynamicArray);
57
- die();
58
  break;
59
  case "add_pic":
60
- $ux_albumid = intval($_REQUEST["album_id"]);
61
- $ux_controlType = esc_attr($_REQUEST["controlType"]);
62
- $ux_img_name = esc_attr(html_entity_decode($_REQUEST["imagename"]));
63
- $img_gb_path = esc_attr($_REQUEST["img_gb_path"]);
64
 
65
  if ($ux_controlType == "image")
66
  {
67
- $wpdb->query
68
- (
69
- $wpdb->prepare
70
- (
71
- "INSERT INTO " . gallery_bank_pics() . " (album_id,thumbnail_url,title,description,url,video,date,tags,pic_name,album_cover)
72
  VALUES(%d,%s,%s,%s,%s,%d,CURDATE(),%s,%s,%d)",
73
- $ux_albumid,
74
- $img_gb_path,
75
- "",
76
- "",
77
- "http://",
78
- 0,
79
- "",
80
- $ux_img_name,
81
- 0
82
- )
83
- );
84
- echo $pic_id = $wpdb->insert_id;
85
- $wpdb->query
86
- (
87
- $wpdb->prepare
88
- (
89
- "UPDATE " . gallery_bank_pics() . " SET sorting_order = %d WHERE pic_id = %d",
90
- $pic_id,
91
- $pic_id
92
- )
93
- );
94
  }
95
- die();
96
  break;
97
  case "update_album":
98
- $albumId = intval($_REQUEST["albumid"]);
99
- $ux_edit_album_name1 = htmlspecialchars(esc_attr($_REQUEST["edit_album_name"]));
100
- $ux_edit_album_name = ($ux_edit_album_name1 == "") ? "Untitled Album" : $ux_edit_album_name1;
101
- $ux_edit_description = htmlspecialchars($_REQUEST["uxEditDescription"]);
102
- $wpdb->query
103
- (
104
- $wpdb->prepare
105
- (
106
- "UPDATE " . gallery_bank_albums() . " SET album_name = %s, description = %s WHERE album_id = %d",
107
- $ux_edit_album_name,
108
- $ux_edit_description,
109
- $albumId
110
- )
111
- );
112
- die();
113
  break;
114
  case "update_pic":
115
- $album_data = json_decode(stripcslashes($_REQUEST["album_data"]),true);
116
- foreach($album_data as $field)
117
- {
118
- if ($field[0] == "image")
119
- {
120
- if ($field[3] == "checked")
121
- {
122
- $wpdb->query
123
- (
124
- $wpdb->prepare
125
- (
126
- "UPDATE " . gallery_bank_pics() . " SET title = %s, description = %s, url = %s, date = CURDATE(), tags = %s, album_cover = %d WHERE pic_id = %d",
127
- htmlspecialchars($field[4]),
128
- htmlspecialchars($field[5]),
129
- $field[7],
130
- htmlspecialchars($field[6]),
131
- 1,
132
- $field[1]
133
- )
134
- );
135
- process_album_upload($field[2], $field[8], $field[9]);
136
- }
137
- else
138
- {
139
- $wpdb->query
140
- (
141
- $wpdb->prepare
142
- (
143
- "UPDATE " . gallery_bank_pics() . " SET title = %s, description = %s, url = %s, date = CURDATE(), tags = %s, album_cover = %d WHERE pic_id = %d",
144
- htmlspecialchars($field[4]),
145
- htmlspecialchars($field[5]),
146
- $field[7],
147
- htmlspecialchars($field[6]),
148
- 0,
149
- $field[1]
150
- )
151
- );
152
- }
153
- }
154
- else
155
- {
156
- $wpdb->query
157
- (
158
- $wpdb->prepare
159
- (
160
- "UPDATE " . gallery_bank_pics() . " SET title = %s, description = %s, date = CURDATE(), tags = %s, album_cover = %d WHERE pic_id = %d",
161
- htmlspecialchars($field[4]),
162
- htmlspecialchars($field[5]),
163
- htmlspecialchars($field[6]),
164
- 0,
165
- $field[1]
166
- )
167
- );
168
- }
169
- }
170
- die();
171
- break;
172
  case "delete_pic":
173
- $delete_array = (html_entity_decode($_REQUEST["delete_array"]));
174
- $albumId = intval($_REQUEST["albumid"]);
175
 
176
- $wpdb->query
177
- (
178
  "DELETE FROM " . gallery_bank_pics() . " WHERE pic_id in ($delete_array)"
179
- );
180
- die();
181
- break;
182
  case "Delete_album":
183
- $album_id = intval($_REQUEST["album_id"]);
184
- $wpdb->query
185
- (
186
- $wpdb->prepare
187
- (
188
- "DELETE FROM " . gallery_bank_pics() . " WHERE album_id = %d",
189
- $album_id
190
- )
191
- );
192
- $wpdb->query
193
- (
194
- $wpdb->prepare
195
- (
196
- "DELETE FROM " . gallery_bank_albums() . " WHERE album_id = %d",
197
- $album_id
198
- )
199
- );
200
- die();
201
  break;
202
  case "gallery_plugin_updates":
203
  $gallery_updates = intval($_REQUEST["gallery_updates"]);
@@ -209,73 +209,73 @@ else
209
  }
210
  function process_image_upload($image, $width, $height)
211
  {
212
- $temp_image_path = GALLERY_MAIN_UPLOAD_DIR . $image;
213
- $temp_image_name = $image;
214
- list(, , $temp_image_type) = getimagesize($temp_image_path);
215
- if ($temp_image_type === NULL) {
216
- return false;
217
- }
218
- $uploaded_image_path = GALLERY_MAIN_UPLOAD_DIR . $temp_image_name;
219
- move_uploaded_file($temp_image_path, $uploaded_image_path);
220
- $type = explode(".", $image);
221
- $thumbnail_image_path = GALLERY_MAIN_THUMB_DIR . preg_replace("{\\.[^\\.]+$}", ".".$type[1], $temp_image_name);
222
-
223
- $result = generate_thumbnail($uploaded_image_path, $thumbnail_image_path, $width, $height);
224
- return $result ? array($uploaded_image_path, $thumbnail_image_path) : false;
225
  }
226
 
227
  /******************************************Code for Album cover thumbs Creation**********************/
228
  function process_album_upload($album_image, $width, $height)
229
  {
230
- $temp_image_path = GALLERY_MAIN_UPLOAD_DIR . $album_image;
231
- $temp_image_name = $album_image;
232
- list(, , $temp_image_type) = getimagesize($temp_image_path);
233
- if ($temp_image_type === NULL) {
234
- return false;
235
- }
236
  $uploaded_image_path = GALLERY_MAIN_UPLOAD_DIR . $temp_image_name;
237
- move_uploaded_file($temp_image_path, $uploaded_image_path);
238
  $type = explode(".", $album_image);
239
  $thumbnail_image_path = GALLERY_MAIN_ALB_THUMB_DIR . preg_replace("{\\.[^\\.]+$}", ".".$type[1], $temp_image_name);
240
-
241
- $result = generate_thumbnail($uploaded_image_path, $thumbnail_image_path, $width, $height);
242
- return $result ? array($uploaded_image_path, $thumbnail_image_path) : false;
243
  }
244
 
245
  function generate_thumbnail($source_image_path, $thumbnail_image_path, $imageWidth, $imageHeight)
246
  {
247
- list($source_image_width, $source_image_height, $source_image_type) = getimagesize($source_image_path);
248
- $source_gd_image = false;
249
- switch ($source_image_type) {
250
- case IMAGETYPE_GIF:
251
- $source_gd_image = imagecreatefromgif($source_image_path);
252
- break;
253
- case IMAGETYPE_JPEG:
254
- $source_gd_image = imagecreatefromjpeg($source_image_path);
255
- break;
256
- case IMAGETYPE_PNG:
257
- $source_gd_image = imagecreatefrompng($source_image_path);
258
- break;
259
- }
260
- if ($source_gd_image === false) {
261
- return false;
262
- }
263
- $source_aspect_ratio = $source_image_width / $source_image_height;
264
- if ($source_image_width > $source_image_height) {
265
- $real_height = $imageHeight;
266
- $real_width = $imageHeight * $source_aspect_ratio;
267
- } else if ($source_image_height > $source_image_width) {
268
- $real_height = $imageWidth / $source_aspect_ratio;
269
- $real_width = $imageWidth;
270
 
271
- } else {
272
 
273
- $real_height = $imageHeight > $imageWidth ? $imageHeight : $imageWidth;
274
- $real_width = $imageWidth > $imageHeight ? $imageWidth : $imageHeight;
275
- }
276
 
277
- $thumbnail_gd_image = imagecreatetruecolor($real_width, $real_height);
278
-
279
  if(($source_image_type == 1) || ($source_image_type==3)){
280
  imagealphablending($thumbnail_gd_image, false);
281
  imagesavealpha($thumbnail_gd_image, true);
26
  switch($_REQUEST["param"])
27
  {
28
  case "add_new_dynamic_row_for_image":
29
+ $img_path = esc_attr($_REQUEST["img_path"]);
30
+ $img_name = esc_attr($_REQUEST["img_name"]);
31
+ $img_width = intval($_REQUEST["image_width"]);
32
+ $img_height = intval($_REQUEST["image_height"]);
33
  $picid = intval($_REQUEST["picid"]);
34
 
35
 
36
+ process_image_upload($img_path, $img_width, $img_height);
37
 
38
+ $column1 = "<input type=\"checkbox\" id=\"ux_grp_select_items_" . $picid . "\" name=\"ux_grp_select_items_" . $picid . "\" value=\"" . $picid . "\" />";
39
+ array_push($dynamicArray, $column1);
40
 
41
+ $column2 = "<a href=\"javascript:void(0);\" title=\"" . $img_name . "\" >
42
  <img type=\"image\" imgPath=\"" . $img_path . "\" src=\"" . GALLERY_BK_THUMB_SMALL_URL . $img_path . "\" id=\"ux_gb_img\" name=\"ux_gb_img\" class=\"img dynamic_css\" imageid=\"" . $picid . "\" width=\"" . $img_width . "\"/></a><br/>
43
  <label><strong>" . $img_name . "</strong></label><br/><label>" . date("F j, Y") . "</label><br/>
44
  <input type=\"radio\" style=\"cursor: pointer;\" onclick=\"select_one_radio(this);\" id=\"ux_rdl_cover\" name=\"ux_album_cover\" /><label>" . __(" Set as Album Cover", gallery_bank) . "</label>";
45
+ array_push($dynamicArray, $column2);
46
 
47
+ $column3 = "<input placeholder=\"" . __("Enter your Title", gallery_bank) . "\" class=\"layout-span12\" type=\"text\" name=\"ux_img_title_" . $picid . "\" id=\"ux_img_title_" . $picid . "\" />
48
  <textarea placeholder=\"" . __("Enter your Description ", gallery_bank) . "\" style=\"margin-top:20px\" rows=\"5\" class=\"layout-span12\" name=\"ux_txt_desc_" . $picid . "\" id=\"ux_txt_desc_" . $picid . "\"></textarea>";
49
+ array_push($dynamicArray, $column3);
50
+ $column4 = "<input placeholder=\"" . __("Enter your Tags", gallery_bank) . "\" class=\"layout-span12\" readonly=\"readonly\" type=\"text\" onkeypress=\"return preventDot(event);\" name=\"ux_txt_tags_" . $picid . "\" id=\"ux_txt_tags_" . $picid . "\" />";
51
+ array_push($dynamicArray, $column4);
52
+ $column5 = "<input value=\"http://\" type=\"text\" id=\"ux_txt_url_" . $picid . "\" name=\"ux_txt_url_" . $picid . "\" class=\"layout-span12\" />";
53
+ array_push($dynamicArray, $column5);
54
+ $column6 = "<a class=\"btn hovertip\" id=\"ux_btn_delete\" style=\"cursor: pointer;\" data-original-title=\"" . __("Delete Image", gallery_bank) . "\" onclick=\"deleteImage(this);\" controlId =\"" . $picid . "\" ><i class=\"icon-trash\"></i></a>";
55
+ array_push($dynamicArray, $column6);
56
+ echo json_encode($dynamicArray);
57
+ die();
58
  break;
59
  case "add_pic":
60
+ $ux_albumid = intval($_REQUEST["album_id"]);
61
+ $ux_controlType = esc_attr($_REQUEST["controlType"]);
62
+ $ux_img_name = esc_attr(html_entity_decode($_REQUEST["imagename"]));
63
+ $img_gb_path = esc_attr($_REQUEST["img_gb_path"]);
64
 
65
  if ($ux_controlType == "image")
66
  {
67
+ $wpdb->query
68
+ (
69
+ $wpdb->prepare
70
+ (
71
+ "INSERT INTO " . gallery_bank_pics() . " (album_id,thumbnail_url,title,description,url,video,date,tags,pic_name,album_cover)
72
  VALUES(%d,%s,%s,%s,%s,%d,CURDATE(),%s,%s,%d)",
73
+ $ux_albumid,
74
+ $img_gb_path,
75
+ "",
76
+ "",
77
+ "http://",
78
+ 0,
79
+ "",
80
+ $ux_img_name,
81
+ 0
82
+ )
83
+ );
84
+ echo $pic_id = $wpdb->insert_id;
85
+ $wpdb->query
86
+ (
87
+ $wpdb->prepare
88
+ (
89
+ "UPDATE " . gallery_bank_pics() . " SET sorting_order = %d WHERE pic_id = %d",
90
+ $pic_id,
91
+ $pic_id
92
+ )
93
+ );
94
  }
95
+ die();
96
  break;
97
  case "update_album":
98
+ $albumId = intval($_REQUEST["albumid"]);
99
+ $ux_edit_album_name1 = htmlspecialchars(esc_attr($_REQUEST["edit_album_name"]));
100
+ $ux_edit_album_name = ($ux_edit_album_name1 == "") ? "Untitled Album" : $ux_edit_album_name1;
101
+ $ux_edit_description = htmlspecialchars($_REQUEST["uxEditDescription"]);
102
+ $wpdb->query
103
+ (
104
+ $wpdb->prepare
105
+ (
106
+ "UPDATE " . gallery_bank_albums() . " SET album_name = %s, description = %s WHERE album_id = %d",
107
+ $ux_edit_album_name,
108
+ $ux_edit_description,
109
+ $albumId
110
+ )
111
+ );
112
+ die();
113
  break;
114
  case "update_pic":
115
+ $album_data = json_decode(stripcslashes($_REQUEST["album_data"]),true);
116
+ foreach($album_data as $field)
117
+ {
118
+ if ($field[0] == "image")
119
+ {
120
+ if ($field[3] == "checked")
121
+ {
122
+ $wpdb->query
123
+ (
124
+ $wpdb->prepare
125
+ (
126
+ "UPDATE " . gallery_bank_pics() . " SET title = %s, description = %s, url = %s, date = CURDATE(), tags = %s, album_cover = %d WHERE pic_id = %d",
127
+ htmlspecialchars($field[4]),
128
+ htmlspecialchars($field[5]),
129
+ $field[7],
130
+ htmlspecialchars($field[6]),
131
+ 1,
132
+ $field[1]
133
+ )
134
+ );
135
+ process_album_upload($field[2], $field[8], $field[9]);
136
+ }
137
+ else
138
+ {
139
+ $wpdb->query
140
+ (
141
+ $wpdb->prepare
142
+ (
143
+ "UPDATE " . gallery_bank_pics() . " SET title = %s, description = %s, url = %s, date = CURDATE(), tags = %s, album_cover = %d WHERE pic_id = %d",
144
+ htmlspecialchars($field[4]),
145
+ htmlspecialchars($field[5]),
146
+ $field[7],
147
+ htmlspecialchars($field[6]),
148
+ 0,
149
+ $field[1]
150
+ )
151
+ );
152
+ }
153
+ }
154
+ else
155
+ {
156
+ $wpdb->query
157
+ (
158
+ $wpdb->prepare
159
+ (
160
+ "UPDATE " . gallery_bank_pics() . " SET title = %s, description = %s, date = CURDATE(), tags = %s, album_cover = %d WHERE pic_id = %d",
161
+ htmlspecialchars($field[4]),
162
+ htmlspecialchars($field[5]),
163
+ htmlspecialchars($field[6]),
164
+ 0,
165
+ $field[1]
166
+ )
167
+ );
168
+ }
169
+ }
170
+ die();
171
+ break;
172
  case "delete_pic":
173
+ $delete_array = (html_entity_decode($_REQUEST["delete_array"]));
174
+ $albumId = intval($_REQUEST["albumid"]);
175
 
176
+ $wpdb->query
177
+ (
178
  "DELETE FROM " . gallery_bank_pics() . " WHERE pic_id in ($delete_array)"
179
+ );
180
+ die();
181
+ break;
182
  case "Delete_album":
183
+ $album_id = intval($_REQUEST["album_id"]);
184
+ $wpdb->query
185
+ (
186
+ $wpdb->prepare
187
+ (
188
+ "DELETE FROM " . gallery_bank_pics() . " WHERE album_id = %d",
189
+ $album_id
190
+ )
191
+ );
192
+ $wpdb->query
193
+ (
194
+ $wpdb->prepare
195
+ (
196
+ "DELETE FROM " . gallery_bank_albums() . " WHERE album_id = %d",
197
+ $album_id
198
+ )
199
+ );
200
+ die();
201
  break;
202
  case "gallery_plugin_updates":
203
  $gallery_updates = intval($_REQUEST["gallery_updates"]);
209
  }
210
  function process_image_upload($image, $width, $height)
211
  {
212
+ $temp_image_path = GALLERY_MAIN_UPLOAD_DIR . $image;
213
+ $temp_image_name = $image;
214
+ list(, , $temp_image_type) = getimagesize($temp_image_path);
215
+ if ($temp_image_type === NULL) {
216
+ return false;
217
+ }
218
+ $uploaded_image_path = GALLERY_MAIN_UPLOAD_DIR . $temp_image_name;
219
+ move_uploaded_file($temp_image_path, $uploaded_image_path);
220
+ $type = explode(".", $image);
221
+ $thumbnail_image_path = GALLERY_MAIN_THUMB_DIR . preg_replace("{\\.[^\\.]+$}", ".".$type[1], $temp_image_name);
222
+
223
+ $result = generate_thumbnail($uploaded_image_path, $thumbnail_image_path, $width, $height);
224
+ return $result ? array($uploaded_image_path, $thumbnail_image_path) : false;
225
  }
226
 
227
  /******************************************Code for Album cover thumbs Creation**********************/
228
  function process_album_upload($album_image, $width, $height)
229
  {
230
+ $temp_image_path = GALLERY_MAIN_UPLOAD_DIR . $album_image;
231
+ $temp_image_name = $album_image;
232
+ list(, , $temp_image_type) = getimagesize($temp_image_path);
233
+ if ($temp_image_type === NULL) {
234
+ return false;
235
+ }
236
  $uploaded_image_path = GALLERY_MAIN_UPLOAD_DIR . $temp_image_name;
237
+ move_uploaded_file($temp_image_path, $uploaded_image_path);
238
  $type = explode(".", $album_image);
239
  $thumbnail_image_path = GALLERY_MAIN_ALB_THUMB_DIR . preg_replace("{\\.[^\\.]+$}", ".".$type[1], $temp_image_name);
240
+
241
+ $result = generate_thumbnail($uploaded_image_path, $thumbnail_image_path, $width, $height);
242
+ return $result ? array($uploaded_image_path, $thumbnail_image_path) : false;
243
  }
244
 
245
  function generate_thumbnail($source_image_path, $thumbnail_image_path, $imageWidth, $imageHeight)
246
  {
247
+ list($source_image_width, $source_image_height, $source_image_type) = getimagesize($source_image_path);
248
+ $source_gd_image = false;
249
+ switch ($source_image_type) {
250
+ case IMAGETYPE_GIF:
251
+ $source_gd_image = imagecreatefromgif($source_image_path);
252
+ break;
253
+ case IMAGETYPE_JPEG:
254
+ $source_gd_image = imagecreatefromjpeg($source_image_path);
255
+ break;
256
+ case IMAGETYPE_PNG:
257
+ $source_gd_image = imagecreatefrompng($source_image_path);
258
+ break;
259
+ }
260
+ if ($source_gd_image === false) {
261
+ return false;
262
+ }
263
+ $source_aspect_ratio = $source_image_width / $source_image_height;
264
+ if ($source_image_width > $source_image_height) {
265
+ $real_height = $imageHeight;
266
+ $real_width = $imageHeight * $source_aspect_ratio;
267
+ } else if ($source_image_height > $source_image_width) {
268
+ $real_height = $imageWidth / $source_aspect_ratio;
269
+ $real_width = $imageWidth;
270
 
271
+ } else {
272
 
273
+ $real_height = $imageHeight > $imageWidth ? $imageHeight : $imageWidth;
274
+ $real_width = $imageWidth > $imageHeight ? $imageWidth : $imageHeight;
275
+ }
276
 
277
+ $thumbnail_gd_image = imagecreatetruecolor($real_width, $real_height);
278
+
279
  if(($source_image_type == 1) || ($source_image_type==3)){
280
  imagealphablending($thumbnail_gd_image, false);
281
  imagesavealpha($thumbnail_gd_image, true);
lib/front-view-all-albums-class.php CHANGED
@@ -13,6 +13,9 @@ if (isset($_REQUEST["param"])) {
13
  $image_width = esc_attr($_REQUEST["filmstrip_width"]);
14
  $album_title = esc_attr($_REQUEST["show_album_title"]);
15
  $responsive = esc_attr($_REQUEST["isResponsive"]);
 
 
 
16
 
17
  $album_type = "images";
18
  include GALLERY_BK_PLUGIN_DIR . "/front_views/includes_common_before.php";
13
  $image_width = esc_attr($_REQUEST["filmstrip_width"]);
14
  $album_title = esc_attr($_REQUEST["show_album_title"]);
15
  $responsive = esc_attr($_REQUEST["isResponsive"]);
16
+ $no_of_images = esc_attr($_REQUEST["no_of_images"]);
17
+ $display = esc_attr($_REQUEST["display"]);
18
+ $sort_by = esc_attr($_REQUEST["sort_by"]);
19
 
20
  $album_type = "images";
21
  include GALLERY_BK_PLUGIN_DIR . "/front_views/includes_common_before.php";
lib/gallery-bank-class.php CHANGED
@@ -20,10 +20,11 @@ function create_global_menus_for_gallery_bank()
20
  case "administrator":
21
  add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
22
  add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
23
- add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", gallery_bank), "read", "gallery_auto_plugin_update", "gallery_auto_plugin_update");
24
  add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
25
  add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
26
  add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
 
 
27
  add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
28
  add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
29
  add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
@@ -36,10 +37,11 @@ function create_global_menus_for_gallery_bank()
36
  case "editor":
37
  add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
38
  add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
39
- add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", gallery_bank), "read", "gallery_auto_plugin_update", "gallery_auto_plugin_update");
40
  add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
41
  add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
42
  add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
 
 
43
  add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
44
  add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
45
  add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
@@ -52,10 +54,11 @@ function create_global_menus_for_gallery_bank()
52
  case "author":
53
  add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
54
  add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
55
- add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", gallery_bank), "read", "gallery_auto_plugin_update", "gallery_auto_plugin_update");
56
  add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
57
  add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
58
  add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
 
 
59
  add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
60
  add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
61
  add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
@@ -307,6 +310,23 @@ function gallery_auto_plugin_update()
307
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
308
  include_once GALLERY_BK_PLUGIN_DIR . "/views/automatic-plugin-update.php";
309
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
310
  //--------------------------------------------------------------------------------------------------------------//
311
  //CODE FOR CALLING JAVASCRIPT FUNCTIONS
312
  //--------------------------------------------------------------------------------------------------------------//
@@ -417,7 +437,7 @@ add_action("media_buttons_context", "add_gallery_shortcode_button", 1);
417
  function add_gallery_shortcode_button($context)
418
  {
419
  add_thickbox();
420
- $context .= "<a href=\"#TB_inline?width=500&height=500&inlineId=my-gallery-content-id\" class=\"button thickbox\"
421
  title=\"" . __("Add Gallery using Gallery Bank", gallery_bank) . "\"><span class=\"gallery_icon\"></span> Gallery Bank</a>";
422
  return $context;
423
  }
@@ -448,11 +468,14 @@ function gallery_bank_short_code($atts)
448
  "show_albums" => "",
449
  "thumb_width" => "",
450
  "thumb_height" => "",
 
 
 
451
  "widget" => "",
452
  ), $atts));
453
- return extract_short_code_for_gallery_images(intval($album_id), $type, $format, $title, $desc, $img_in_row, $responsive, $albums_in_row, $special_effect, $animation_effect, $image_width, $album_title, urldecode($show_albums), $thumb_width, $thumb_height, $widget);
454
  }
455
- function extract_short_code_for_gallery_images($album_id, $album_type, $gallery_type, $img_title, $img_desc, $img_in_row, $responsive, $albums_in_row, $special_effect, $animation_effect, $image_width, $album_title, $show_albums, $thumb_width, $thumb_height, $widget)
456
  {
457
  if(preg_match("/^\d+(?:,\d+)*$/", $show_albums) || $show_albums == "all" || $show_albums == "")
458
  {
20
  case "administrator":
21
  add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
22
  add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
 
23
  add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
24
  add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
25
  add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
26
+ add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", gallery_bank), "read", "gallery_auto_plugin_update", "gallery_auto_plugin_update");
27
+ add_submenu_page("gallery_bank", "Feature Requests", __("Feature Requests", gallery_bank), "read", "gallery_bank_feature_request", "gallery_bank_feature_request");
28
  add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
29
  add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
30
  add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
37
  case "editor":
38
  add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
39
  add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
 
40
  add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
41
  add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
42
  add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
43
+ add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", gallery_bank), "read", "gallery_auto_plugin_update", "gallery_auto_plugin_update");
44
+ add_submenu_page("gallery_bank", "Feature Requests", __("Feature Requests", gallery_bank), "read", "gallery_bank_feature_request", "gallery_bank_feature_request");
45
  add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
46
  add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
47
  add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
54
  case "author":
55
  add_menu_page("Gallery Bank", __("Gallery Bank", gallery_bank), "read", "gallery_bank", "", plugins_url("/assets/images/icon.png" , dirname(__FILE__)));
56
  add_submenu_page("gallery_bank", "Dashboard", __("Dashboard", gallery_bank), "read", "gallery_bank", "gallery_bank");
 
57
  add_submenu_page("gallery_bank", "Short-Codes", __("Short-Codes", gallery_bank), "read", "gallery_bank_shortcode", "gallery_bank_shortcode");
58
  add_submenu_page("gallery_bank", "Album Sorting", __("Album Sorting", gallery_bank), "read", "gallery_album_sorting", "gallery_album_sorting");
59
  add_submenu_page("gallery_bank", "Global Settings", __("Global Settings", gallery_bank), "read", "global_settings", "global_settings");
60
+ add_submenu_page("gallery_bank", "Plugin Updates", __("Plugin Updates", gallery_bank), "read", "gallery_auto_plugin_update", "gallery_auto_plugin_update");
61
+ add_submenu_page("gallery_bank", "Feature Requests", __("Feature Requests", gallery_bank), "read", "gallery_bank_feature_request", "gallery_bank_feature_request");
62
  add_submenu_page("gallery_bank", "System Status", __("System Status", gallery_bank), "read", "gallery_bank_system_status", "gallery_bank_system_status");
63
  add_submenu_page("gallery_bank", "Recommendations", __("Recommendations", gallery_bank), "read", "gallery_bank_recommended_plugins", "gallery_bank_recommended_plugins");
64
  add_submenu_page("gallery_bank", "Premium Editions", __("Premium Editions", gallery_bank), "read", "gallery_bank_purchase", "gallery_bank_purchase");
310
  include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
311
  include_once GALLERY_BK_PLUGIN_DIR . "/views/automatic-plugin-update.php";
312
  }
313
+
314
+ function gallery_bank_feature_request()
315
+ {
316
+ global $wpdb,$current_user,$user_role_permission;
317
+ if(is_super_admin())
318
+ {
319
+ $gb_role = "administrator";
320
+ }
321
+ else
322
+ {
323
+ $gb_role = $wpdb->prefix . "capabilities";
324
+ $current_user->role = array_keys($current_user->$gb_role);
325
+ $gb_role = $current_user->role[0];
326
+ }
327
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/header.php";
328
+ include_once GALLERY_BK_PLUGIN_DIR . "/views/gallery-feedback.php";
329
+ }
330
  //--------------------------------------------------------------------------------------------------------------//
331
  //CODE FOR CALLING JAVASCRIPT FUNCTIONS
332
  //--------------------------------------------------------------------------------------------------------------//
437
  function add_gallery_shortcode_button($context)
438
  {
439
  add_thickbox();
440
+ $context .= "<a href=\"#TB_inline?width=800&height=530&inlineId=my-gallery-content-id\" class=\"button thickbox\"
441
  title=\"" . __("Add Gallery using Gallery Bank", gallery_bank) . "\"><span class=\"gallery_icon\"></span> Gallery Bank</a>";
442
  return $context;
443
  }
468
  "show_albums" => "",
469
  "thumb_width" => "",
470
  "thumb_height" => "",
471
+ "display" => "",
472
+ "no_of_images" => "",
473
+ "sort_by" => "",
474
  "widget" => "",
475
  ), $atts));
476
+ return extract_short_code_for_gallery_images(intval($album_id), $type, $format, $title, $desc, $img_in_row, $responsive, $albums_in_row, $special_effect, $animation_effect, $image_width, $album_title, urldecode($show_albums), $thumb_width, $thumb_height, $display, intval($no_of_images), $sort_by, $widget);
477
  }
478
+ function extract_short_code_for_gallery_images($album_id, $album_type, $gallery_type, $img_title, $img_desc, $img_in_row, $responsive, $albums_in_row, $special_effect, $animation_effect, $image_width, $album_title, $show_albums, $thumb_width, $thumb_height, $display, $no_of_images, $sort_by, $widget)
479
  {
480
  if(preg_match("/^\d+(?:,\d+)*$/", $show_albums) || $show_albums == "all" || $show_albums == "")
481
  {
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Gallery Bank - Responsive Photo Gallery ===
2
  Contributors: Gallery-Bank,contact-banker
3
- Tags: admin, gallery, photo gallery, albums, photos, pictures, galleria, photo albums, pics, plugin, wp gallery, best gallery plugin,album, albums, gallery, image, image gallery, images, photo album, photo gallery, plugins
4
  Requires at least: 3.4
5
- Tested up to: 4.1
6
- Stable tag: 3.0.102
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -500,6 +500,11 @@ is False in shortcode.
500
 
501
  == Changelog ==
502
 
 
 
 
 
 
503
  = 3.0.102 =
504
 
505
  * Minor Vulnerability Bug fixed related to shortcode as pointed by Goblin Research.
1
  === Gallery Bank - Responsive Photo Gallery ===
2
  Contributors: Gallery-Bank,contact-banker
3
+ Tags: add album, add gallery, add picture, add pictures, admin, AJAX, album, banner rotator, best gallery, best gallery plugin, best image slider, best portfolio, bilder, comments, easy media gallery, fancy gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery, gallery decription, gallery image, gallery lightbox, Gallery Plugin, gallery shortcode, gallery slider, gelary, gellary, gellery, google, grid gallery, html5 player, html5 video, html5-audio, image, image album, image gallery, image gallery plugin, image lightbox, image rotate, image slider, image slideshow, images, images gallery, jquery, jquery gallery, links, media, media gallery, multiple pictures, nextgen gallery, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photo gallery, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, plugin gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive gallery, responsive image gallery, responsive slider, responsive slideshow, responsive wordpress photo gallery, seo, seo image, shortcode, sidebar, Simple gallery, slide show, slideshow, thumbnail, twitter, upload images, upload photos, video gallery, view images, view pictures, website gallery, widget, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wordpress portfolio plugin, wp gallery, wp gallery plugin, wp gallery plugins
4
  Requires at least: 3.4
5
+ Tested up to: 4.1.1
6
+ Stable tag: 3.0.103
7
  License: GPLv3 or later
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
500
 
501
  == Changelog ==
502
 
503
+ = 3.0.103 =
504
+
505
+ * Added new feature of Feature Request.
506
+ * Shortcode Editor Redesigned.
507
+
508
  = 3.0.102 =
509
 
510
  * Minor Vulnerability Bug fixed related to shortcode as pointed by Goblin Research.
views/gallery-feedback.php ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ switch($gb_role)
3
+ {
4
+ case "administrator":
5
+ $user_role_permission = "manage_options";
6
+ break;
7
+ case "editor":
8
+ $user_role_permission = "publish_pages";
9
+ break;
10
+ case "author":
11
+ $user_role_permission = "publish_posts";
12
+ break;
13
+ }
14
+ if (!current_user_can($user_role_permission))
15
+ {
16
+ return;
17
+ }
18
+ else
19
+ {
20
+ ?>
21
+ <div class="custom-message green" style="display: block;margin-top:30px">
22
+ <div style="padding: 4px 0;">
23
+ <p style="font:12px/1.0em Arial !important;font-weight:bold;">If you have any Feature Request which you would like to have in your plugin, please fill in the below form. We assure you that soon this will be taken care off!</p>
24
+ </div>
25
+ </div>
26
+ <form id="frm_feedback" class="layout-form">
27
+ <div id="poststuff" style="width: 99% !important;">
28
+ <div id="post-body" class="metabox-holder">
29
+ <div id="postbox-container-2" class="postbox-container">
30
+ <div id="advanced" class="meta-box-sortables">
31
+ <div id="gallery_bank_get_started" class="postbox" >
32
+ <div class="handlediv" data-target="#ux_edit_album" title="Click to toggle" data-toggle="collapse"><br></div>
33
+ <h3 class="hndle"><span><?php _e("Feature Requests", gallery_bank); ?></span></h3>
34
+ <div class="inside">
35
+ <div id="ux_feedback" class="gallery_bank_layout">
36
+ <a class="btn btn-inverse" href="admin.php?page=gallery_bank"><?php _e("Back to Albums", gallery_bank); ?></a>
37
+ <div class="separator-doubled"></div>
38
+ <div id="email_success_message" class="custom-message green" style="display: none;">
39
+ <span>
40
+ <strong><?php _e("Email has beens send successfully.", gallery_bank); ?></strong>
41
+ </span>
42
+ </div>
43
+ <div class="fluid-layout">
44
+ <div class="layout-span12">
45
+ <div class="widget-layout">
46
+ <div class="widget-layout-title">
47
+ <h4><?php _e("Feature Requests / Suggestions", gallery_bank); ?></h4>
48
+ </div>
49
+ <div class="widget-layout-body">
50
+ <div class="layout-control-group">
51
+ <label class="layout-control-label"><?php _e("Name", gallery_bank); ?> : <span class="error">*</span></label>
52
+ <div class="layout-controls">
53
+ <input type="text" class="layout-span12" name="ux_name" id="ux_name" placeholder="<?php _e("Enter your Name", gallery_bank); ?>"/>
54
+ </div>
55
+ </div>
56
+ <div class="layout-control-group">
57
+ <label class="layout-control-label"><?php _e("Email Id", gallery_bank); ?> : <span class="error">*</span></label>
58
+ <div class="layout-controls">
59
+ <input type="text" class="layout-span12" name="ux_email" id="ux_email" placeholder="<?php _e("Enter your Email Address", gallery_bank); ?>"/>
60
+ </div>
61
+ </div>
62
+ <div class="layout-control-group">
63
+ <label class="layout-control-label"><?php _e("Feature Requests / Suggestions", gallery_bank); ?> : <span class="error">*</span></label>
64
+ <div class="layout-controls">
65
+ <textarea rows="5" class="layout-span12" name="ux_suggestion" id="ux_suggestion" placeholder="<?php _e("Enter your Feature Requests / Suggestions", gallery_bank); ?>"></textarea>
66
+ </div>
67
+ </div>
68
+ <div class="layout-control-group">
69
+ <div class="layout-controls">
70
+ <button type="submit" class="btn btn-danger"><?php _e("Send", gallery_bank); ?></button>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </form>
85
+ <script type="text/javascript">
86
+ var url = "<?php echo get_option("gallery-bank-updation-check-url");?>";
87
+ var suggestion_array = [];
88
+ jQuery("#frm_feedback").validate
89
+ ({
90
+ rules:
91
+ {
92
+ ux_name :
93
+ {
94
+ required: true
95
+ },
96
+ ux_email:
97
+ {
98
+ required: true,
99
+ email: true
100
+ },
101
+ ux_suggestion:
102
+ {
103
+ required: true
104
+ }
105
+ },
106
+ submitHandler: function()
107
+ {
108
+ suggestion_array.push(jQuery("#ux_name").val());
109
+ suggestion_array.push(jQuery("#ux_email").val());
110
+ suggestion_array.push(jQuery("#ux_suggestion").val());
111
+ jQuery.post(url,
112
+ {
113
+ data : JSON.stringify(suggestion_array),
114
+ param: "gallery_feedbacks",
115
+ action: "feedbacks"
116
+ },
117
+ function (data)
118
+ {
119
+ jQuery("#email_success_message").css("display", "block");
120
+ setTimeout(function () {
121
+ jQuery("#email_success_message").css("display", "none");
122
+ window.location.href = "admin.php?page=gallery_bank_feature_request";
123
+ }, 2000);
124
+ });
125
+ }
126
+ });
127
+ </script>
128
+ <?php
129
+ }
130
+ ?>
views/header.php CHANGED
@@ -137,6 +137,9 @@ switch($_REQUEST["page"])
137
  case "gallery_auto_plugin_update":
138
  $page = "Plugin Updates";
139
  break;
 
 
 
140
  }
141
  ?>
142
  <ul class="breadcrumb" style="margin-top: 10px;">
@@ -193,17 +196,26 @@ switch ($gb_role)
193
  <?php
194
  break;
195
  }
196
-
 
 
 
 
 
 
 
 
 
 
197
  if(in_array($language, $gb_lang))
198
  {
199
  ?>
200
  <div class="custom-message red" style="display: block;margin-top:30px">
201
- <span style="padding: 4px 0;">
202
- <strong><p style="font:12px/1.0em Arial !important;">This plugin language is translated with the help of Google Translator.</p>
203
- <p style="font:12px/1.0em Arial !important;">If you would like to translate & help us, we will reward you with a free Eco Version License of Gallery Bank worth &euro;18.</p>
204
  <p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
205
- </strong>
206
- </span>
207
  </div>
208
  <?php
209
  }
@@ -211,11 +223,10 @@ elseif(!(in_array($language, $gb_translated_lang)) && !(in_array($language, $gb_
211
  {
212
  ?>
213
  <div class="custom-message red" style="display: block;margin-top:30px">
214
- <span style="padding: 4px 0;">
215
- <strong><p style="font:12px/1.0em Arial !important;">If you would like to translate Gallery Bank in your native language, we will reward you with a free Eco Version License of Gallery Bank worth &euro;18.</p>
216
  <p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
217
- </strong>
218
- </span>
219
  </div>
220
  <?php
221
  }
@@ -226,7 +237,7 @@ if (!(is_dir(GALLERY_MAIN_THUMB_DIR)))
226
  ?>
227
  <div class="custom-message red" style="display: block;margin-top:15px">
228
  <span>
229
- <strong>If you are getting problems with thumbnails, then you need to set 777(write) permissions to <?php echo GALLERY_MAIN_DIR ?> (recursive files & directories) in order to save the images/thumbnails. </strong>
230
  </span>
231
  </div>
232
  <?php
137
  case "gallery_auto_plugin_update":
138
  $page = "Plugin Updates";
139
  break;
140
+ case "gallery_bank_feature_request":
141
+ $page = "Feature Request";
142
+ break;
143
  }
144
  ?>
145
  <ul class="breadcrumb" style="margin-top: 10px;">
196
  <?php
197
  break;
198
  }
199
+ if($_REQUEST["page"] != "gallery_bank_feature_request")
200
+ {
201
+ ?>
202
+ <div class="custom-message green" style="display: block;margin-top:30px">
203
+ <div style="padding: 4px 0;">
204
+ <p style="font:12px/1.0em Arial !important;font-weight:bold;">If you don't find any features you were looking for in this Plugin,
205
+ please write us <a target="_self" href="admin.php?page=gallery_bank_feature_request">here</a> and we shall try to implement this for you as soon as possible! We are looking forward for your valuable <a target="_self" href="admin.php?page=gallery_bank_feature_request">Feedback</a></p>
206
+ </div>
207
+ </div>
208
+ <?php
209
+ }
210
  if(in_array($language, $gb_lang))
211
  {
212
  ?>
213
  <div class="custom-message red" style="display: block;margin-top:30px">
214
+ <div style="padding: 4px 0;">
215
+ <p style="font:12px/1.0em Arial !important;font-weight:bold;">This plugin language is translated with the help of Google Translator.</p>
216
+ <p style="font:12px/1.0em Arial !important;">If you would like to translate &amp; help us, we will reward you with a free Eco Version License of Gallery Bank worth &euro;18.</p>
217
  <p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
218
+ </div>
 
219
  </div>
220
  <?php
221
  }
223
  {
224
  ?>
225
  <div class="custom-message red" style="display: block;margin-top:30px">
226
+ <div style="padding: 4px 0;">
227
+ <p style="font:12px/1.0em Arial !important;font-weight:bold;">If you would like to translate Gallery Bank in your native language, we will reward you with a free Eco Version License of Gallery Bank worth &euro;18.</p>
228
  <p style="font:12px/1.0em Arial !important;">Contact Us at <a target="_blank" href="http://tech-banker.com">http://tech-banker.com</a> or email us at <a href="mailto:support@tech-banker.com">support@tech-banker.com</a></p>
229
+ </div>
 
230
  </div>
231
  <?php
232
  }
237
  ?>
238
  <div class="custom-message red" style="display: block;margin-top:15px">
239
  <span>
240
+ <strong>If you are getting problems with thumbnails, then you need to set 775(write) permissions to <?php echo GALLERY_MAIN_DIR ?> (recursive files &amp; directories) in order to save the images/thumbnails. </strong>
241
  </span>
242
  </div>
243
  <?php