Mega Addons For WPBakery Page Builder (formerly Visual Composer) - Version 2.0

Version Description

  • Notice: Please make sure to backup your previous version. This update has a large amount of changes and many new features are added. Feel free to ask on support forum regarding any issues before leaving a low star rating. Thanks
Download this release

Release Info

Developer nasir179125
Plugin Icon 128x128 Mega Addons For WPBakery Page Builder (formerly Visual Composer)
Version 2.0
Comparing to
See all releases

Code changes from version 1.0 to 2.0

Files changed (95) hide show
  1. css/flipbox.css +32 -20
  2. css/heading.css +1 -1
  3. css/infobanner.css +11 -2
  4. css/infolist.css +142 -0
  5. css/int_banner.css +43 -6
  6. css/memberprofile.css +7 -7
  7. css/post-carousel.css +562 -0
  8. css/price_listing.css +1 -1
  9. css/simplegrid.css +249 -0
  10. css/slick-carousal.css +65 -14
  11. css/timeline.css +1 -1
  12. css/tooltipster.bundle.min.css +6 -0
  13. icons/accordion.png +0 -0
  14. icons/accordions.png +0 -0
  15. icons/advanceprice.png +0 -0
  16. icons/carousal-slider.png +0 -0
  17. icons/countdown.jpg +0 -0
  18. icons/countdown.png +0 -0
  19. icons/counter.jpg +0 -0
  20. icons/counter.png +0 -0
  21. icons/creative.png +0 -0
  22. icons/creativelink.png +0 -0
  23. icons/creatives.png +0 -0
  24. icons/flipbox.png +0 -0
  25. icons/heading.png +0 -0
  26. icons/hoverbutton.png +0 -0
  27. icons/icon.png +0 -0
  28. icons/ihe.png +0 -0
  29. icons/image-swap.png +0 -0
  30. icons/img-swap.png +0 -0
  31. icons/infobanner.png +0 -0
  32. icons/infobox.png +0 -0
  33. icons/infocircle.png +0 -0
  34. icons/infolist.png +0 -0
  35. icons/int-banner.png +0 -0
  36. icons/memberprofile.jpg +0 -0
  37. icons/memberprofile.png +0 -0
  38. icons/photobook.png +0 -0
  39. icons/popup.png +0 -0
  40. icons/post-carousel.png +0 -0
  41. icons/price.png +0 -0
  42. icons/social.jpg +0 -0
  43. icons/social.png +0 -0
  44. icons/support.png +0 -0
  45. icons/testimonial.png +0 -0
  46. icons/texttype.jpg +0 -0
  47. icons/texttype.png +0 -0
  48. icons/timeline.png +0 -0
  49. icons/trend.png +0 -0
  50. includes/creativelinkSetting.php +0 -117
  51. index.php +2 -2
  52. js/bpopup.js +8 -1
  53. js/custom-tm.js +11 -1
  54. js/jquery.bxslider.min.js +0 -10
  55. js/jquery.matchHeight-min.js +12 -0
  56. js/script.js +4 -0
  57. js/slider.js +0 -10
  58. js/themes/tooltipster-sideTip-borderless.min.css +1 -0
  59. js/themes/tooltipster-sideTip-light.min.css +1 -0
  60. js/themes/tooltipster-sideTip-noir.min.css +1 -0
  61. js/themes/tooltipster-sideTip-punk.min.css +1 -0
  62. js/themes/tooltipster-sideTip-shadow.min.css +1 -0
  63. js/tooltip.js +13 -0
  64. js/tooltipster.bundle.min.js +2 -0
  65. main.php +8 -1
  66. readme.txt +51 -42
  67. render/accordion_father.php +1 -1
  68. render/countdown.php +1 -1
  69. render/flipbox.php +253 -114
  70. render/highlight_box.php +49 -25
  71. render/hoverbutton.php +2 -2
  72. render/image_swap.php +1 -1
  73. render/info_list_father.php +8 -7
  74. render/info_list_son.php +177 -35
  75. render/infobanner.php +0 -47
  76. render/infobanners.php +1 -1
  77. render/infobox.php +1 -1
  78. render/interectivebanner.php +8 -2
  79. render/modalPopup.php +2 -2
  80. render/new.php +319 -0
  81. render/new2.php +149 -0
  82. render/photobook.php +5 -5
  83. render/post_carousel.php +386 -0
  84. render/post_grid.php +335 -0
  85. render/price.php +1 -1
  86. render/rate_us.php +0 -39
  87. render/social_father.php +3 -3
  88. render/social_son.php +3 -3
  89. render/statcounter.php +115 -77
  90. render/teamprofile.php +35 -6
  91. render/texttyper.php +2 -2
  92. render/tm_carousel_father.php +151 -19
  93. render/tm_carousel_son.php +199 -24
  94. render/tooltip_icons.php +51 -45
  95. render/woo_grid.php +314 -0
css/flipbox.css CHANGED
@@ -1,7 +1,6 @@
1
- /***************************************
2
- ************Rotate Verticle
3
  ***************************************/
4
- .panel {
5
  width: 100%;
6
  height: 200px;
7
  position: relative;
@@ -9,18 +8,24 @@
9
  -webkit-perspective: 600px;
10
  perspective: 600px;
11
  }
12
- .panel .pad h4,p {
13
  text-align: center;
14
  margin: 5px;
15
  }
16
- .panel .pad h4 {
17
  margin-top: 15px;
18
  }
19
- .panel a {
20
  font-size: 16px;
 
 
 
 
 
 
21
  text-decoration: none;
22
  }
23
- .panel .front {
24
  float: none;
25
  position: absolute;
26
  top: 0;
@@ -41,14 +46,15 @@
41
  -webkit-transition: all .4s ease-in-out;
42
  transition: all .4s ease-in-out;
43
  }
44
- .panel.flip .front {
45
  z-index: 900;
46
  -webkit-transform: rotateX(179deg);
47
  transform: rotateX(179deg);
48
  }
49
 
50
- .panel .back {
51
  float: none;
 
52
  position: absolute;
53
  top: 0;
54
  left: 0;
@@ -68,17 +74,16 @@
68
  transition: all .4s ease-in-out;
69
  }
70
 
71
- .panel.flip .back {
72
  z-index: 1000;
73
  -webkit-transform: rotateY(0) rotateX(0);
74
  transform: rotateY(0) rotateX(0);
75
  }
76
 
77
- /***************************************
78
- ************Rotate Horizental
79
  ***************************************/
80
 
81
- .panel .front1 {
82
  float: none;
83
  position: absolute;
84
  top: 0;
@@ -99,15 +104,16 @@
99
  -webkit-transition: all .4s ease-in-out;
100
  transition: all .4s ease-in-out;
101
  }
102
- .panel.flip .front1 {
103
  z-index: 900;
104
  -webkit-transform: rotateY(179deg);
105
  transform: rotateY(179deg);
106
  }
107
 
108
- .panel .back1 {
109
  float: none;
110
  position: absolute;
 
111
  top: 0;
112
  left: 0;
113
  z-index: 800;
@@ -126,17 +132,22 @@
126
  transition: all .4s ease-in-out;
127
  }
128
 
129
- .panel.flip .back1 {
130
  z-index: 1000;
131
  -webkit-transform: rotateX(0) rotateX(0);
132
  transform: rotateX(0) rotateX(0);
133
  }
134
 
135
 
136
- /***************************************
137
- ************3D Flip
138
  ***************************************/
139
-
 
 
 
 
 
 
140
  .cube {
141
  position: relative;
142
  width: 100%;
@@ -168,11 +179,12 @@
168
  .default-state {
169
  background-color: #03a9f4;
170
  transform: perspective(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
 
171
  }
172
  .active-state {
173
  background: #1976d2;
174
  transform: perspective(100000px) rotateX(-90deg) rotateY(0deg) rotateZ(0deg);
175
- padding: 0 12px
176
  }
177
  .cube:hover .default-state {
178
  transform: perspective(10000000px) rotateX(90deg) rotateY(0) rotateZ(0deg);
1
+ /*Rotate Verticle
 
2
  ***************************************/
3
+ .vc-ihe-panel {
4
  width: 100%;
5
  height: 200px;
6
  position: relative;
8
  -webkit-perspective: 600px;
9
  perspective: 600px;
10
  }
11
+ .vc-ihe-panel .pad h4,p {
12
  text-align: center;
13
  margin: 5px;
14
  }
15
+ .vc-ihe-panel .pad h4 {
16
  margin-top: 15px;
17
  }
18
+ .vc-ihe-panel a {
19
  font-size: 16px;
20
+ }
21
+ .vc-ihe-panel .mega_hvr_btn {
22
+ text-decoration: none;
23
+ padding: 5px 13px;
24
+ }
25
+ .vc-ihe-panel .mega_hvr_btn:hover {
26
  text-decoration: none;
27
  }
28
+ .vc-ihe-panel .front {
29
  float: none;
30
  position: absolute;
31
  top: 0;
46
  -webkit-transition: all .4s ease-in-out;
47
  transition: all .4s ease-in-out;
48
  }
49
+ .vc-ihe-panel.flip .front {
50
  z-index: 900;
51
  -webkit-transform: rotateX(179deg);
52
  transform: rotateX(179deg);
53
  }
54
 
55
+ .vc-ihe-panel .back {
56
  float: none;
57
+ /*padding: 10px;*/
58
  position: absolute;
59
  top: 0;
60
  left: 0;
74
  transition: all .4s ease-in-out;
75
  }
76
 
77
+ .vc-ihe-panel.flip .back {
78
  z-index: 1000;
79
  -webkit-transform: rotateY(0) rotateX(0);
80
  transform: rotateY(0) rotateX(0);
81
  }
82
 
83
+ /* Rotate Horizental
 
84
  ***************************************/
85
 
86
+ .vc-ihe-panel .front1 {
87
  float: none;
88
  position: absolute;
89
  top: 0;
104
  -webkit-transition: all .4s ease-in-out;
105
  transition: all .4s ease-in-out;
106
  }
107
+ .vc-ihe-panel.flip .front1 {
108
  z-index: 900;
109
  -webkit-transform: rotateY(179deg);
110
  transform: rotateY(179deg);
111
  }
112
 
113
+ .vc-ihe-panel .back1 {
114
  float: none;
115
  position: absolute;
116
+ /*padding: 10px;*/
117
  top: 0;
118
  left: 0;
119
  z-index: 800;
132
  transition: all .4s ease-in-out;
133
  }
134
 
135
+ .vc-ihe-panel.flip .back1 {
136
  z-index: 1000;
137
  -webkit-transform: rotateX(0) rotateX(0);
138
  transform: rotateX(0) rotateX(0);
139
  }
140
 
141
 
142
+ /* 3D Flip
 
143
  ***************************************/
144
+ .cube .mega_hvr_btn {
145
+ text-decoration: none;
146
+ padding: 5px 13px;
147
+ }
148
+ .cube .mega_hvr_btn:hover {
149
+ text-decoration: none;
150
+ }
151
  .cube {
152
  position: relative;
153
  width: 100%;
179
  .default-state {
180
  background-color: #03a9f4;
181
  transform: perspective(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
182
+ /*padding: 0 10px;*/
183
  }
184
  .active-state {
185
  background: #1976d2;
186
  transform: perspective(100000px) rotateX(-90deg) rotateY(0deg) rotateZ(0deg);
187
+ /*padding: 0 10px;*/
188
  }
189
  .cube:hover .default-state {
190
  transform: perspective(10000000px) rotateX(90deg) rotateY(0) rotateZ(0deg);
css/heading.css CHANGED
@@ -35,7 +35,7 @@
35
  margin-top: -30px;
36
  margin-left: -15px;
37
  background: #fff;
38
- padding: 7px;
39
  }
40
 
41
  #mega-line-img .line-img {
35
  margin-top: -30px;
36
  margin-left: -15px;
37
  background: #fff;
38
+ padding: 0 7px;
39
  }
40
 
41
  #mega-line-img .line-img {
css/infobanner.css CHANGED
@@ -3,11 +3,11 @@
3
  background-position: center;
4
  background-size: 100% 100%;
5
  position: relative;
6
- font-family: "Raleway";
7
  }
8
  #mega_info_bar .mega_hvr_btn {
9
  display: inline-block;
10
  margin: 10px 0;
 
11
  }
12
  #mega_info_bar .mega_wrap img {
13
  display: block;
@@ -40,12 +40,12 @@
40
  background-position: center;
41
  background-size: 100% 100%;
42
  position: relative;
43
- font-family: "Raleway";
44
  }
45
  #mega_info_bar_2 .mega_hvr_btn {
46
  margin-bottom: 15px;
47
  text-decoration: none;
48
  display: inline-block;
 
49
  }
50
  #mega_info_bar_2 .mega_hvr_btn:hover {
51
  text-decoration: none;
@@ -111,4 +111,13 @@
111
  border-right: 3px solid #79A70A;
112
  border-bottom: 3px solid transparent;
113
  border-top: 3px solid #79A70A;
 
 
 
 
 
 
 
 
 
114
  }
3
  background-position: center;
4
  background-size: 100% 100%;
5
  position: relative;
 
6
  }
7
  #mega_info_bar .mega_hvr_btn {
8
  display: inline-block;
9
  margin: 10px 0;
10
+ font-family: 'Open Sans';
11
  }
12
  #mega_info_bar .mega_wrap img {
13
  display: block;
40
  background-position: center;
41
  background-size: 100% 100%;
42
  position: relative;
 
43
  }
44
  #mega_info_bar_2 .mega_hvr_btn {
45
  margin-bottom: 15px;
46
  text-decoration: none;
47
  display: inline-block;
48
+ font-family: 'Open Sans';
49
  }
50
  #mega_info_bar_2 .mega_hvr_btn:hover {
51
  text-decoration: none;
111
  border-right: 3px solid #79A70A;
112
  border-bottom: 3px solid transparent;
113
  border-top: 3px solid #79A70A;
114
+ }
115
+
116
+ @media only screen and (max-width: 768px) {
117
+ #mega_info_bar_2 .mega_wrap img {
118
+ height: auto !important;
119
+ }
120
+ #mega_info_bar .mega_wrap img {
121
+ height: auto !important;
122
+ }
123
  }
css/infolist.css ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .img-responsive {
2
+ display: block;
3
+ max-width: 100%;
4
+ height: auto;
5
+ }
6
+ .img-rounded {
7
+ border-radius: 6px;
8
+ }
9
+ .img-thumbnail {
10
+ padding: 4px;
11
+ line-height: 1.42857143;
12
+ background-color: #ffffff;
13
+ border: 1px solid #dddddd;
14
+ border-radius: 4px;
15
+ -webkit-transition: all 0.2s ease-in-out;
16
+ -o-transition: all 0.2s ease-in-out;
17
+ transition: all 0.2s ease-in-out;
18
+ display: inline-block;
19
+ max-width: 100%;
20
+ height: auto;
21
+ }
22
+ .img-circle {
23
+ border-radius: 50%;
24
+ }
25
+
26
+ .media {
27
+ margin-top: 15px;
28
+ }
29
+ .media:first-child {
30
+ margin-top: 0;
31
+ }
32
+ .media,
33
+ .media-body {
34
+ zoom: 1;
35
+ overflow: visible;
36
+ }
37
+ .media-body {
38
+ width: 10000px;
39
+ }
40
+ .media-object {
41
+ display: block;
42
+ }
43
+ .media-object.img-thumbnail {
44
+ max-width: none;
45
+ }
46
+ .media-right,
47
+ .media > .pull-right {
48
+ padding-left: 10px;
49
+ }
50
+ .media-left,
51
+ .media > .pull-left {
52
+ padding-right: 10px;
53
+ }
54
+ .media-left,
55
+ .media-right,
56
+ .media-body {
57
+ display: table-cell;
58
+ vertical-align: top;
59
+ }
60
+ .media-middle {
61
+ vertical-align: middle;
62
+ }
63
+ .media-bottom {
64
+ vertical-align: bottom;
65
+ }
66
+ .media-heading {
67
+ margin-top: 0;
68
+ margin-bottom: 5px;
69
+ }
70
+ .media-list {
71
+ padding-left: 0;
72
+ list-style: none;
73
+ }
74
+ .clearfix:before,
75
+ .clearfix:after {
76
+ content: " ";
77
+ display: table;
78
+ }
79
+ .clearfix:after {
80
+ clear: both;
81
+ }
82
+ .center-block {
83
+ display: block;
84
+ margin-left: auto;
85
+ margin-right: auto;
86
+ }
87
+ .pull-right {
88
+ float: right !important;
89
+ }
90
+ .pull-left {
91
+ float: left !important;
92
+ }
93
+ .hide {
94
+ display: none !important;
95
+ }
96
+ .show {
97
+ display: block !important;
98
+ }
99
+ .invisible {
100
+ visibility: hidden;
101
+ }
102
+ .text-hide {
103
+ font: 0/0 a;
104
+ color: transparent;
105
+ text-shadow: none;
106
+ background-color: transparent;
107
+ border: 0;
108
+ }
109
+ .hidden {
110
+ display: none !important;
111
+ }
112
+ .affix {
113
+ position: fixed;
114
+ }
115
+
116
+ /* Custom Style
117
+ =================================*/
118
+ .mega-info-list .vc_info_list{
119
+ padding-bottom: 30px;
120
+ }
121
+ .vc_info_list_outer:last-child .vc_info_list{
122
+ padding-bottom: 0px !important;
123
+ border-left: 0px dashed #000000 !important;
124
+ }
125
+ .vc_info_list_outer:last-child .vc_info_list{
126
+ padding-bottom: 0px !important;
127
+ border-right: 0px dashed #000000 !important;
128
+ }
129
+
130
+ .mega-info-list h2{
131
+ margin-bottom: 5px !important;
132
+ padding-bottom: 0 !important;
133
+ margin-top: 0px;
134
+ }
135
+
136
+ .mega-info-list p {
137
+ margin-bottom: 0px !important;
138
+ padding-bottom: 0 !important;
139
+ }
140
+ .text-right {
141
+ text-align: right
142
+ }
css/int_banner.css CHANGED
@@ -32,13 +32,13 @@
32
  .grid figure img {
33
  position: relative;
34
  display: block;
35
- min-height: 100%;
36
  max-width: 100%;
37
  opacity: 0.8;
38
  }
39
 
40
  .grid figure figcaption {
41
- padding: 2em;
42
  color: #fff;
43
  text-transform: uppercase;
44
  font-size: 1.25em;
@@ -251,7 +251,7 @@ figure.effect-roxy figcaption::before {
251
  }
252
 
253
  figure.effect-roxy figcaption {
254
- padding: 3em;
255
  text-align: left;
256
  }
257
 
@@ -618,7 +618,7 @@ figure.effect-oscar img {
618
  }
619
 
620
  figure.effect-oscar figcaption {
621
- padding: 3em;
622
  background-color: rgba(58,52,42,0.7);
623
  -webkit-transition: background-color 0.35s;
624
  transition: background-color 0.35s;
@@ -882,8 +882,9 @@ figure.effect-dexter:hover figcaption::after {
882
  }
883
 
884
  figure.effect-dexter figcaption {
885
- padding: 3em;
886
  text-align: left;
 
887
  }
888
 
889
  figure.effect-dexter p {
@@ -1102,7 +1103,7 @@ figure.effect-chico:hover img {
1102
  }
1103
 
1104
  figure.effect-chico figcaption {
1105
- padding: 3em;
1106
  }
1107
 
1108
  figure.effect-chico figcaption::before {
@@ -2332,3 +2333,39 @@ figure.effect-duke:hover p {
2332
  width: 100%;
2333
  }
2334
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  .grid figure img {
33
  position: relative;
34
  display: block;
35
+ /*min-height: 100%;*/
36
  max-width: 100%;
37
  opacity: 0.8;
38
  }
39
 
40
  .grid figure figcaption {
41
+ /*padding: 2em;*/
42
  color: #fff;
43
  text-transform: uppercase;
44
  font-size: 1.25em;
251
  }
252
 
253
  figure.effect-roxy figcaption {
254
+ /*padding: 3em;*/
255
  text-align: left;
256
  }
257
 
618
  }
619
 
620
  figure.effect-oscar figcaption {
621
+ padding: 0;
622
  background-color: rgba(58,52,42,0.7);
623
  -webkit-transition: background-color 0.35s;
624
  transition: background-color 0.35s;
882
  }
883
 
884
  figure.effect-dexter figcaption {
885
+ /*padding: 3em;*/
886
  text-align: left;
887
+ margin-top: 10px;
888
  }
889
 
890
  figure.effect-dexter p {
1103
  }
1104
 
1105
  figure.effect-chico figcaption {
1106
+ /*padding: 3em;*/
1107
  }
1108
 
1109
  figure.effect-chico figcaption::before {
2333
  width: 100%;
2334
  }
2335
  }
2336
+
2337
+ /*custom css*/
2338
+ @media only screen and (max-width: 480px) {
2339
+ .vc-interactive-banner figure img {
2340
+ height: 100% !important;
2341
+ }
2342
+ }
2343
+
2344
+ .effect-apollo figcaption {
2345
+ padding: 0.8em !important;
2346
+ }
2347
+ .effect-ming div {
2348
+ padding: 15px !important;
2349
+ }
2350
+
2351
+ figure.effect-lily figcaption > div {
2352
+ padding: 0 0 0 1em !important;
2353
+ }
2354
+ .effect-lily figcaption {
2355
+ padding: 2em !important;
2356
+ }
2357
+
2358
+ .effect-oscar div {
2359
+ padding: 0 40px !important;
2360
+ }
2361
+ figure.effect-oscar figcaption {
2362
+ padding-bottom: 0.4em !important;
2363
+ }
2364
+
2365
+ .effect-dexter h2 {
2366
+ padding: 2em;
2367
+ }
2368
+
2369
+ .effect-milo figcaption {
2370
+ padding: 0.5em;
2371
+ }
css/memberprofile.css CHANGED
@@ -118,7 +118,7 @@
118
  }
119
  .mega_team_case .member-social a {
120
  color: #fff;
121
- padding: 0 2px 1px 5px;
122
  margin-right: 4px;
123
  text-decoration: none;
124
  }
@@ -259,7 +259,7 @@ Style 2
259
  }
260
  .mega_team_case_2 .member-social a {
261
  color: #fff;
262
- padding: 0 2px 1px 5px;
263
  margin-right: 4px;
264
  text-decoration: none;
265
  }
@@ -289,7 +289,6 @@ Style 3
289
  transition-duration: 0.2s;
290
  }
291
  .mega_team_case_3 .member-name {
292
- font-family: "Montserrat";
293
  font-size: 26.667px;
294
  text-align: center;
295
  line-height: 30px;
@@ -377,7 +376,7 @@ Style 3
377
 
378
  .mega_team_case_3 .member-social a {
379
  color: #fff;
380
- padding: 0 2px 1px 5px;
381
  margin-right: 4px;
382
  text-decoration: none;
383
  }
@@ -400,12 +399,14 @@ Style 4
400
  position: relative;
401
  -webkit-transition-duration: 0.5s; /* Safari */
402
  transition-duration: 0.5s;
 
403
  }
404
  .mega_team_case_4:hover .member-image img{
405
  -webkit-filter: grayscale(100%); /* Chrome, Safari, Opera */
406
  filter: grayscale(100%);
407
  }
408
  .mega_team_case_4 .mega_wrap {
 
409
  position: absolute;
410
  bottom: -130px;
411
  -webkit-transition: bottom 0.5s;
@@ -418,7 +419,6 @@ Style 4
418
  background-color: rgba(0,0,0,0.2);
419
  }
420
  .mega_team_case_4 .member-name {
421
- font-family: "Montserrat";
422
  font-size: 18px;
423
  margin-bottom: 40px;
424
  line-height: 1.5;
@@ -446,7 +446,7 @@ Style 4
446
  .mega_team_case_4 .member-social a {
447
  color: #fff;
448
  font-size: 18px;
449
- padding: 0 2px 1px 5px;
450
- margin-right: 8px;
451
  text-decoration: none;
452
  }
118
  }
119
  .mega_team_case .member-social a {
120
  color: #fff;
121
+ padding: 2px 2px 2px 5px;
122
  margin-right: 4px;
123
  text-decoration: none;
124
  }
259
  }
260
  .mega_team_case_2 .member-social a {
261
  color: #fff;
262
+ padding: 2px 2px 2px 5px;
263
  margin-right: 4px;
264
  text-decoration: none;
265
  }
289
  transition-duration: 0.2s;
290
  }
291
  .mega_team_case_3 .member-name {
 
292
  font-size: 26.667px;
293
  text-align: center;
294
  line-height: 30px;
376
 
377
  .mega_team_case_3 .member-social a {
378
  color: #fff;
379
+ padding: 2px 2px 2px 5px;
380
  margin-right: 4px;
381
  text-decoration: none;
382
  }
399
  position: relative;
400
  -webkit-transition-duration: 0.5s; /* Safari */
401
  transition-duration: 0.5s;
402
+ margin-bottom: -6px;
403
  }
404
  .mega_team_case_4:hover .member-image img{
405
  -webkit-filter: grayscale(100%); /* Chrome, Safari, Opera */
406
  filter: grayscale(100%);
407
  }
408
  .mega_team_case_4 .mega_wrap {
409
+ width: 100%;
410
  position: absolute;
411
  bottom: -130px;
412
  -webkit-transition: bottom 0.5s;
419
  background-color: rgba(0,0,0,0.2);
420
  }
421
  .mega_team_case_4 .member-name {
 
422
  font-size: 18px;
423
  margin-bottom: 40px;
424
  line-height: 1.5;
446
  .mega_team_case_4 .member-social a {
447
  color: #fff;
448
  font-size: 18px;
449
+ padding: 2px 2px 2px 5px;
450
+ margin-right: 4px;
451
  text-decoration: none;
452
  }
css/post-carousel.css ADDED
@@ -0,0 +1,562 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /* Rating */
3
+
4
+ .star-rating {
5
+ overflow: hidden;
6
+ position: relative;
7
+ height: 1em;
8
+ line-height: 1;
9
+ font-size: 1em;
10
+ width: 5.4em;
11
+ color: #dcc75a;
12
+ font-family: star
13
+ }
14
+ .star-rating::before {
15
+ content: '\73\73\73\73\73';
16
+ float: left;
17
+ top: 0;
18
+ left: 0;
19
+ position: absolute;
20
+ }
21
+ .star-rating span {
22
+ overflow: hidden;
23
+ float: left;
24
+ top: 0;
25
+ left: 0;
26
+ position: absolute;
27
+ padding-top: 1.5em
28
+ }
29
+ .star-rating span::before {
30
+ content: '\53\53\53\53\53';
31
+ top: 0;
32
+ position: absolute;
33
+ color: #dcc75a;
34
+ left: 0
35
+ }
36
+
37
+
38
+ /* mega-post-carousel1
39
+ ============================================*/
40
+
41
+ .mega-post-carousel1 .mega-post-image {
42
+ overflow: hidden;
43
+ position: relative;
44
+ height: 200px;
45
+ }
46
+
47
+ .mega-post-carousel1 .mega-post-image img {
48
+ -webkit-transition: all 0.4s ease 0s;
49
+ -moz-transition: all 0.4s ease 0s;
50
+ -ms-transition: all 0.4s ease 0s;
51
+ -o-transition: all 0.4s ease 0s;
52
+ transition: all 0.4s ease 0s;
53
+ width: 100%;
54
+ height: 200px;
55
+ }
56
+ .mega-post-carousel1 .mega-post-image:hover img {
57
+ -webkit-transform: scale(1.1);
58
+ -moz-transform: scale(1.1);
59
+ -ms-transform: scale(1.1);
60
+ -o-transform: scale(1.1);
61
+ transform: scale(1.1);
62
+ }
63
+ .mega-post-carousel1 .mega-post-category {
64
+ margin: 10px 0;
65
+ display: inline-block;
66
+ }
67
+ .mega-post-carousel1 .mega-post-category a {
68
+ text-decoration: none;
69
+ display: inherit;
70
+ color: #fff;
71
+ background: #000;
72
+ font-size: 10px;
73
+ padding: 2px 5px;
74
+ margin-right: 2px;
75
+ text-transform: uppercase;
76
+ }
77
+ .mega-post-carousel1 .mega-post-title {
78
+ margin-bottom: 10px;
79
+ margin-top: 5px;
80
+ }
81
+ .mega-post-carousel1 .mega-post-title a{
82
+ text-decoration: none;
83
+ color: #000;
84
+ line-height: 1.2;
85
+ font-size: 19px;
86
+ }
87
+
88
+ .mega-post-carousel1 .mega-post-meta {
89
+ float: left;
90
+ font-size: 12px;
91
+ margin-top: 2px;
92
+ }
93
+
94
+ .mega-post-carousel1 .mega-post-date {
95
+ font-size: 12px;
96
+ }
97
+ .mega-post-carousel1 .mega-post-date i {
98
+ margin-right: 5px;
99
+ }
100
+
101
+ .mega-post-carousel1 .mega-post-meta i {
102
+ font-size: 13px;
103
+ margin-right: 5px;
104
+ }
105
+
106
+ .mega-post-carousel1 .mega-post-meta a {
107
+ text-decoration: none;
108
+ font-size: 13px;
109
+ margin-right: 15px;
110
+ }
111
+
112
+ .mega-post-carousel1 .mega-post-comment {
113
+
114
+ font-size: 10px;
115
+ text-align: center;
116
+ line-height: 1;
117
+ position: relative;
118
+ padding: 2px 7px;
119
+ background: #fff;
120
+ }
121
+
122
+ .mega-post-carousel1 .mega-comment-box {
123
+ position: absolute;
124
+ margin-bottom: 4px;
125
+ top: 10px;
126
+ right: 15px;
127
+ }
128
+
129
+ .mega-post-carousel1 .mega-post-comment:before {
130
+ content: " ";
131
+ position: absolute;
132
+ bottom: -4px;
133
+ left: 30%;
134
+ border-width: 0 0 6px 6px;
135
+ border-style: solid;
136
+ border-color: transparent #fff;
137
+ }
138
+
139
+ .mega-post-carousel1 .mega-post-comment a {
140
+ text-decoration: none;
141
+ font-size: 11px;
142
+ color: #000;
143
+ }
144
+ .mega-post-carousel1 .mega-post-para p {
145
+ color: #888;
146
+ font-size: 14px;
147
+ margin-top: 10px;
148
+ text-align: justify;
149
+ }
150
+
151
+
152
+ /* mega-post-carousel2
153
+ ============================================*/
154
+
155
+ .mega-post-carousel2 {
156
+ background-color: #F6F6F6;
157
+ }
158
+
159
+ .mega-post-carousel2 .mega-post-image {
160
+ overflow: hidden;
161
+ max-width: 40%;
162
+ float: left;
163
+ }
164
+
165
+ .mega-post-carousel2 .mega-post-content {
166
+ max-width: 59%;
167
+ float: left;
168
+ padding-left: 15px;
169
+ }
170
+
171
+ .mega-post-carousel2 .mega-post-image img {
172
+ -webkit-transition: all 0.4s ease 0s;
173
+ -moz-transition: all 0.4s ease 0s;
174
+ -ms-transition: all 0.4s ease 0s;
175
+ -o-transition: all 0.4s ease 0s;
176
+ transition: all 0.4s ease 0s;
177
+ height: 100px;
178
+ width: 100%;
179
+ }
180
+ .mega-post-carousel2 .mega-post-image:hover img {
181
+ -webkit-transform: scale(1.1);
182
+ -moz-transform: scale(1.1);
183
+ -ms-transform: scale(1.1);
184
+ -o-transform: scale(1.1);
185
+ transform: scale(1.1);
186
+ }
187
+ .mega-post-carousel2 .mega-post-title {
188
+ margin-bottom: 10px;
189
+ margin-top: 5px;
190
+ }
191
+ .mega-post-carousel2 .mega-post-title a{
192
+ text-decoration: none;
193
+ color: #000;
194
+ line-height: 1.2;
195
+ font-size: 15px;
196
+ }
197
+
198
+ .mega-post-carousel2 .mega-post-meta {
199
+ float: left;
200
+ font-size: 12px;
201
+ margin-top: 3px;
202
+ }
203
+
204
+ .mega-post-carousel2 .mega-post-date {
205
+ font-size: 11px;
206
+ }
207
+ .mega-post-carousel2 .mega-post-date i {
208
+ margin-right: 5px;
209
+ }
210
+
211
+ .mega-post-carousel2 .mega-post-meta i {
212
+ font-size: 11px;
213
+ margin-right: 5px;
214
+ }
215
+
216
+ .mega-post-carousel2 .mega-post-meta a {
217
+ text-decoration: none;
218
+ color: #000;
219
+ font-size: 11px;
220
+ margin-right: 10px;
221
+ }
222
+
223
+ .mega-post-carousel2 .mega-post-comment {
224
+ float: left;
225
+ font-size: 10px;
226
+ text-align: center;
227
+ line-height: 1;
228
+ position: relative;
229
+ display: block;
230
+ padding: 3px 6px;
231
+ background: #222;
232
+ color: #2e2e2e;
233
+ color: #FFF;
234
+ }
235
+
236
+ .mega-post-carousel2 .mega-comment-box {
237
+ float: right;
238
+ margin-bottom: 4px;
239
+ }
240
+
241
+ .mega-post-carousel2 .mega-post-comment:before {
242
+ content: " ";
243
+ position: absolute;
244
+ bottom: -4px;
245
+ left: 30%;
246
+ border-width: 0 0 6px 6px;
247
+ border-style: solid;
248
+ border-color: transparent #222;
249
+ }
250
+
251
+ .mega-post-carousel2 .mega-post-comment a {
252
+ text-decoration: none;
253
+ font-size: 11px;
254
+ color: #fff;
255
+ }
256
+
257
+ /* mega-post-carousel3
258
+ ============================================*/
259
+
260
+ .mega-post-carousel3 .mega-post-image {
261
+ overflow: hidden;
262
+ height: 200px;
263
+ }
264
+
265
+ .mega-post-carousel3 .mega-post-image img {
266
+ -webkit-transition: all 0.4s ease 0s;
267
+ -moz-transition: all 0.4s ease 0s;
268
+ -ms-transition: all 0.4s ease 0s;
269
+ -o-transition: all 0.4s ease 0s;
270
+ transition: all 0.4s ease 0s;
271
+ width: 100%;
272
+ height: 200px;
273
+ }
274
+ .mega-post-carousel3 .mega-post-image:hover img {
275
+ -webkit-transform: scale(1.1);
276
+ -moz-transform: scale(1.1);
277
+ -ms-transform: scale(1.1);
278
+ -o-transform: scale(1.1);
279
+ transform: scale(1.1);
280
+ }
281
+
282
+ .mega-post-carousel3 .mega-desc-box{
283
+ border-bottom: 2px solid #eeeeee;
284
+ text-align: center;
285
+ margin: 0px 20px;
286
+ background: #fff;
287
+ margin-top: -20px;
288
+ position: relative;
289
+ }
290
+
291
+ .mega-post-carousel3 .mega-post-category {
292
+ position: relative;
293
+ display: inline-block;
294
+ vertical-align: top;
295
+ text-transform: capitalize;
296
+ text-align: center;
297
+ padding: 0px 35px;
298
+ font-size: 14px;
299
+ line-height: 22px;
300
+ }
301
+ .mega-post-carousel3 .mega-post-category:before {
302
+ background-color: #222;
303
+ content: '';
304
+ position: absolute;
305
+ top: 11px;
306
+ width: 30px;
307
+ height: 1px;
308
+ left: 0;
309
+ }
310
+ .mega-post-carousel3 .mega-post-category:after {
311
+ background-color: #222;
312
+ content: '';
313
+ position: absolute;
314
+ top: 11px;
315
+ width: 30px;
316
+ height: 1px;
317
+ right: 0;
318
+ }
319
+ .mega-post-carousel3 .mega-post-category a {
320
+ text-decoration: none;
321
+ display: inherit;
322
+ color: #000;
323
+ }
324
+ .mega-post-carousel3 .mega-post-title {
325
+ margin-bottom: 10px;
326
+ margin-top: 5px;
327
+ }
328
+ .mega-post-carousel3 .mega-post-title a{
329
+ text-decoration: none;
330
+ color: #000;
331
+ line-height: 1.2;
332
+ font-size: 19px;
333
+ }
334
+
335
+ .mega-post-carousel3 .mega-post-meta {
336
+ float: left;
337
+ font-size: 12px;
338
+ margin-top: 2px;
339
+ }
340
+
341
+ .mega-post-carousel3 .mega-post-meta i {
342
+ font-size: 13px;
343
+ margin-right: 5px;
344
+ }
345
+
346
+ .mega-post-carousel3 .mega-post-meta a {
347
+ text-decoration: none;
348
+ color: #000;
349
+ font-size: 13px;
350
+ margin-right: 15px;
351
+ }
352
+
353
+ .mega-post-carousel3 .mega-post-comment {
354
+ float: left;
355
+ font-size: 10px;
356
+ text-align: center;
357
+ line-height: 1;
358
+ position: relative;
359
+ display: block;
360
+ padding: 3px 6px;
361
+ color: #2e2e2e;
362
+ color: #FFF;
363
+ }
364
+
365
+ .mega-post-carousel3 .mega-comment-box {
366
+ float: right;
367
+ margin-bottom: 4px;
368
+ }
369
+
370
+ .mega-post-carousel3 .mega-post-comment a, i {
371
+ text-decoration: none;
372
+ font-size: 12px;
373
+ color: #000;
374
+ }
375
+ .mega-post-carousel3 .mega-post-para p {
376
+ color: #888;
377
+ font-size: 13px;
378
+ margin-top: 10px;
379
+ }
380
+ .clearfix {
381
+ clear: both;
382
+ }
383
+
384
+ /* mega-post-carousel4
385
+ ============================================*/
386
+
387
+ .mega-post-carousel4 .mega-post-image {
388
+ overflow: hidden;
389
+ height: 200px;
390
+ }
391
+
392
+ .mega-post-carousel4 .mega-post-image img {
393
+ -webkit-transition: all 0.4s ease 0s;
394
+ -moz-transition: all 0.4s ease 0s;
395
+ -ms-transition: all 0.4s ease 0s;
396
+ -o-transition: all 0.4s ease 0s;
397
+ transition: all 0.4s ease 0s;
398
+ width: 100%;
399
+ height: 200px;
400
+ }
401
+ .mega-post-carousel4 .mega-post-image:hover img {
402
+ -webkit-transform: scale(1.1);
403
+ -moz-transform: scale(1.1);
404
+ -ms-transform: scale(1.1);
405
+ -o-transform: scale(1.1);
406
+ transform: scale(1.1);
407
+ }
408
+ .mega-post-carousel4 .mega-post-category {
409
+ margin: 10px 0;
410
+ display: inline-block;
411
+ }
412
+ .mega-post-carousel4 .mega-post-category a {
413
+ text-decoration: none;
414
+ display: inherit;
415
+ color: #fff;
416
+ background: #000;
417
+ font-size: 11px;
418
+ padding: 2px 5px;
419
+ margin-right: 2px;
420
+ }
421
+ .mega-post-carousel4 .mega-post-title {
422
+ margin-bottom: 10px;
423
+ margin-top: 5px;
424
+ }
425
+ .mega-post-carousel4 .mega-post-title a{
426
+ text-decoration: none;
427
+ color: #000;
428
+ line-height: 1.2;
429
+ font-size: 19px;
430
+ }
431
+
432
+ .mega-post-carousel4 .mega-post-meta {
433
+ float: left;
434
+ font-size: 12px;
435
+ margin-top: 2px;
436
+ }
437
+
438
+ .mega-post-carousel4 .mega-post-date {
439
+ font-size: 12px;
440
+ float: right;
441
+ padding-top: 10px;
442
+ }
443
+ .mega-post-carousel4 .mega-post-date i {
444
+ margin-right: 5px;
445
+ }
446
+
447
+ .mega-post-carousel4 .mega-post-meta i {
448
+ font-size: 13px;
449
+ margin-right: 5px;
450
+ }
451
+
452
+ .mega-post-carousel4 .mega-post-meta a {
453
+ text-decoration: none;
454
+ color: #000;
455
+ font-size: 13px;
456
+ margin-right: 15px;
457
+ }
458
+
459
+ .mega-post-carousel4 .mega-post-comment {
460
+ float: left;
461
+ font-size: 10px;
462
+ text-align: center;
463
+ line-height: 1;
464
+ position: relative;
465
+ display: block;
466
+ padding: 3px 6px;
467
+ }
468
+
469
+ .mega-post-carousel4 .mega-comment-box {
470
+ float: right;
471
+ margin-bottom: 4px;
472
+ }
473
+
474
+ .mega-post-carousel4 .mega-post-comment a {
475
+ text-decoration: none;
476
+ font-size: 12px;
477
+ color: #000;
478
+ }
479
+ .mega-post-carousel4 .mega-post-comment i {
480
+ text-decoration: none;
481
+ font-size: 12px;
482
+ color: #000;
483
+ }
484
+ .mega-post-carousel4 .mega-post-para p {
485
+ color: #888;
486
+ font-size: 14px;
487
+ margin-top: 10px;
488
+ }
489
+
490
+ /* Woo Styling
491
+ ============================================*/
492
+ .mega-post-carousel1 .price, .amount {
493
+ float: left;
494
+ }
495
+ .mega-post-carousel1 .star-rating {
496
+ float: right;
497
+ }
498
+ .mega-post-carousel1 .add_to_cart_button,
499
+ .mega-post-carousel3 .add_to_cart_button,
500
+ .mega-post-carousel1 .added_to_cart.wc-forward {
501
+ color: #fff;
502
+ background: #0081cc;
503
+ padding: 7px 15px 7px 15px;
504
+ text-decoration: none;
505
+ display: block;
506
+ float: left;
507
+ margin-right: 10px;
508
+ max-width: 100px;
509
+ text-align: center;
510
+ }
511
+
512
+ .mega-post-carousel2 .price, .amount {
513
+ float: none;
514
+ }
515
+
516
+ .mega-post-carousel3 .price, .amount {
517
+ float: left;
518
+ }
519
+
520
+ .mega-post-carousel3 .star-rating {
521
+ display: inline-block;
522
+ }
523
+
524
+ .mega-post-carousel3 .add_to_cart_button {
525
+ float: right;
526
+ padding: 2px 10px;
527
+ margin-bottom: 5px;
528
+ }
529
+
530
+ /* Custom Styling
531
+ ============================================*/
532
+ .vc-post-styling .slick-slide {
533
+ padding: 0 15px 0 15px !important;
534
+ }
535
+
536
+ .vc-post-styling .slick-prev {
537
+ left: -15px !important;
538
+ }
539
+
540
+ .vc-post-styling .slick-next {
541
+ right: -15px !important;
542
+ }
543
+
544
+ .vc-post-styling .slick-prev:before, .slick-next:before {
545
+ opacity: 1 !important;
546
+ }
547
+
548
+ .vc-post-styling .slick-dots li button {
549
+ color: #000 !important;
550
+ }
551
+
552
+ .vc-post-styling .slick-dots li button::before {
553
+ line-height: 19px;
554
+ top: 0px;
555
+ left: 0px;
556
+ width: 20px;
557
+ height: 20px;
558
+ }
559
+
560
+ .vc-post-styling .slick-dots li.slick-active button:before {
561
+ opacity: 1 !important;
562
+ }
css/price_listing.css CHANGED
@@ -52,7 +52,7 @@
52
  text-align: center;
53
  }
54
  .price_table_1 .plan span {
55
- font-size: 39px;
56
  }
57
  .price_table_1 .plan .amount {
58
  font-size: 82px;
52
  text-align: center;
53
  }
54
  .price_table_1 .plan span {
55
+
56
  }
57
  .price_table_1 .plan .amount {
58
  font-size: 82px;
css/simplegrid.css ADDED
@@ -0,0 +1,249 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .na-prefix {
2
+ /*
3
+ Simple Grid
4
+ Learn More - http://dallasbass.com/simple-grid-a-lightweight-responsive-css-grid/
5
+ Project Page - http://thisisdallas.github.com/Simple-Grid/
6
+ Author - Dallas Bass
7
+ Site - dallasbass.com
8
+ */
9
+ /* Content Columns */
10
+ /* Layout Columns */
11
+ /* Pushing blocks */
12
+ }
13
+ .na-prefix *,
14
+ .na-prefix *:after,
15
+ .na-prefix *:before {
16
+ -webkit-box-sizing: border-box;
17
+ -moz-box-sizing: border-box;
18
+ box-sizing: border-box;
19
+ }
20
+ .na-prefix body {
21
+ margin: 0px;
22
+ }
23
+ .na-prefix [class*='col-'] {
24
+ float: left;
25
+ padding-right: 10px;
26
+ /* column-space */
27
+ }
28
+ .na-prefix .grid {
29
+ width: 100%;
30
+ margin: 0 auto;
31
+ overflow: visible;
32
+ }
33
+ .na-prefix .grid:after {
34
+ content: "";
35
+ display: table;
36
+ clear: both;
37
+ }
38
+ .na-prefix .grid-pad {
39
+ padding-top: 20px;
40
+ padding-left: 10px;
41
+ /* grid-space to left */
42
+ padding-right: 0px;
43
+ /* grid-space to right: (grid-space-left - column-space) e.g. 20px-20px=0 */
44
+ }
45
+ .na-prefix .push-right {
46
+ float: right;
47
+ }
48
+ .na-prefix .col-1-1 {
49
+ width: 100%;
50
+ }
51
+ .na-prefix .col-2-3,
52
+ .na-prefix .col-8-12 {
53
+ width: 66.66%;
54
+ }
55
+ .na-prefix .col-1-2,
56
+ .na-prefix .col-6-12 {
57
+ width: 50%;
58
+ }
59
+ .na-prefix .col-1-3,
60
+ .na-prefix .col-4-12 {
61
+ width: 33.33%;
62
+ }
63
+ .na-prefix .col-1-4,
64
+ .na-prefix .col-3-12 {
65
+ width: 25%;
66
+ }
67
+ .na-prefix .col-1-5 {
68
+ width: 20%;
69
+ }
70
+ .na-prefix .col-1-6,
71
+ .na-prefix .col-2-12 {
72
+ width: 16.667%;
73
+ }
74
+ .na-prefix .col-1-7 {
75
+ width: 14.28%;
76
+ }
77
+ .na-prefix .col-1-8 {
78
+ width: 12.5%;
79
+ }
80
+ .na-prefix .col-1-9 {
81
+ width: 11.1%;
82
+ }
83
+ .na-prefix .col-1-10 {
84
+ width: 10%;
85
+ }
86
+ .na-prefix .col-1-11 {
87
+ width: 9.09%;
88
+ }
89
+ .na-prefix .col-1-12 {
90
+ width: 8.33%;
91
+ }
92
+ .na-prefix .col-11-12 {
93
+ width: 91.66%;
94
+ }
95
+ .na-prefix .col-10-12 {
96
+ width: 83.333%;
97
+ }
98
+ .na-prefix .col-9-12 {
99
+ width: 75%;
100
+ }
101
+ .na-prefix .col-5-12 {
102
+ width: 41.66%;
103
+ }
104
+ .na-prefix .col-7-12 {
105
+ width: 58.33%;
106
+ }
107
+ .na-prefix .push-2-3,
108
+ .na-prefix .push-8-12 {
109
+ margin-left: 66.66%;
110
+ }
111
+ .na-prefix .push-1-2,
112
+ .na-prefix .push-6-12 {
113
+ margin-left: 50%;
114
+ }
115
+ .na-prefix .push-1-3,
116
+ .na-prefix .push-4-12 {
117
+ margin-left: 33.33%;
118
+ }
119
+ .na-prefix .push-1-4,
120
+ .na-prefix .push-3-12 {
121
+ margin-left: 25%;
122
+ }
123
+ .na-prefix .push-1-5 {
124
+ margin-left: 20%;
125
+ }
126
+ .na-prefix .push-1-6,
127
+ .na-prefix .push-2-12 {
128
+ margin-left: 16.667%;
129
+ }
130
+ .na-prefix .push-1-7 {
131
+ margin-left: 14.28%;
132
+ }
133
+ .na-prefix .push-1-8 {
134
+ margin-left: 12.5%;
135
+ }
136
+ .na-prefix .push-1-9 {
137
+ margin-left: 11.1%;
138
+ }
139
+ .na-prefix .push-1-10 {
140
+ margin-left: 10%;
141
+ }
142
+ .na-prefix .push-1-11 {
143
+ margin-left: 9.09%;
144
+ }
145
+ .na-prefix .push-1-12 {
146
+ margin-left: 8.33%;
147
+ }
148
+ @media handheld, only screen and (max-width: 480px) {
149
+ .na-prefix {
150
+ /* Mobile Layout */
151
+ /* Layout Columns */
152
+ }
153
+ .na-prefix .grid {
154
+ width: 100%;
155
+ min-width: 0;
156
+ margin-left: 0px;
157
+ margin-right: 0px;
158
+ /*padding-left: 20px;*/
159
+ /* grid-space to left */
160
+ /*padding-right: 10px;*/
161
+ /* grid-space to right: (grid-space-left - column-space) e.g. 20px-10px=10px */
162
+ }
163
+ .na-prefix [class*='col-'] {
164
+ width: auto;
165
+ float: none;
166
+ margin-left: 0px;
167
+ margin-right: 0px;
168
+ margin-top: 10px;
169
+ margin-bottom: 10px;
170
+ padding-left: 0px;
171
+ padding-right: 10px;
172
+ /* column-space */
173
+ }
174
+ .na-prefix [class*='mobile-col-'] {
175
+ float: left;
176
+ margin-left: 0px;
177
+ margin-right: 0px;
178
+ margin-top: 0px;
179
+ margin-bottom: 10px;
180
+ padding-left: 0px;
181
+ padding-right: 10px;
182
+ /* column-space */
183
+ padding-bottom: 0px;
184
+ }
185
+ .na-prefix .mobile-col-1-1 {
186
+ width: 100%;
187
+ }
188
+ .na-prefix .mobile-col-2-3,
189
+ .na-prefix .mobile-col-8-12 {
190
+ width: 66.66%;
191
+ }
192
+ .na-prefix .mobile-col-1-2,
193
+ .na-prefix .mobile-col-6-12 {
194
+ width: 50%;
195
+ }
196
+ .na-prefix .mobile-col-1-3,
197
+ .na-prefix .mobile-col-4-12 {
198
+ width: 33.33%;
199
+ }
200
+ .na-prefix .mobile-col-1-4,
201
+ .na-prefix .mobile-col-3-12 {
202
+ width: 25%;
203
+ }
204
+ .na-prefix .mobile-col-1-5 {
205
+ width: 20%;
206
+ }
207
+ .na-prefix .mobile-col-1-6,
208
+ .na-prefix .mobile-col-2-12 {
209
+ width: 16.667%;
210
+ }
211
+ .na-prefix .mobile-col-1-7 {
212
+ width: 14.28%;
213
+ }
214
+ .na-prefix .mobile-col-1-8 {
215
+ width: 12.5%;
216
+ }
217
+ .na-prefix .mobile-col-1-9 {
218
+ width: 11.1%;
219
+ }
220
+ .na-prefix .mobile-col-1-10 {
221
+ width: 10%;
222
+ }
223
+ .na-prefix .mobile-col-1-11 {
224
+ width: 9.09%;
225
+ }
226
+ .na-prefix .mobile-col-1-12 {
227
+ width: 8.33%;
228
+ }
229
+ .na-prefix .mobile-col-11-12 {
230
+ width: 91.66%;
231
+ }
232
+ .na-prefix .mobile-col-10-12 {
233
+ width: 83.333%;
234
+ }
235
+ .na-prefix .mobile-col-9-12 {
236
+ width: 75%;
237
+ }
238
+ .na-prefix .mobile-col-5-12 {
239
+ width: 41.66%;
240
+ }
241
+ .na-prefix .mobile-col-7-12 {
242
+ width: 58.33%;
243
+ }
244
+ .na-prefix .hide-on-mobile {
245
+ display: none !important;
246
+ width: 0;
247
+ height: 0;
248
+ }
249
+ }
css/slick-carousal.css CHANGED
@@ -16,6 +16,20 @@
16
  .slider ul {
17
  margin: 0 !important;
18
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  .slick-slider
21
  {
@@ -94,7 +108,7 @@
94
  {
95
  display: none;
96
  float: left;
97
-
98
  height: 100%;
99
  min-height: 1px;
100
  }
@@ -148,7 +162,7 @@
148
  /* Icons */
149
  @font-face
150
  {
151
- font-family: 'slick';
152
  font-weight: normal;
153
  font-style: normal;
154
 
@@ -206,9 +220,9 @@
206
  .slick-prev:before,
207
  .slick-next:before
208
  {
209
- font-family: 'slick';
210
  font-size: 20px;
211
- line-height: 1;
212
 
213
  opacity: .75;
214
  color: #000;
@@ -229,7 +243,8 @@
229
  }
230
  .slick-prev:before
231
  {
232
- content: '←';
 
233
  }
234
  [dir='rtl'] .slick-prev:before
235
  {
@@ -248,7 +263,8 @@
248
  }
249
  .slick-next:before
250
  {
251
- content: '→';
 
252
  }
253
  [dir='rtl'] .slick-next:before
254
  {
@@ -320,21 +336,21 @@
320
  .slick-dots li button:before
321
  {
322
  font-family: 'slick';
323
- font-size: 12px;
324
- line-height: 25px;
325
 
326
  position: absolute;
327
  top: 0;
328
  left: 0;
329
 
330
- width: 20px;
331
- height: 20px;
332
-
333
  content: '•';
334
  text-align: center;
335
 
336
- opacity: .50;
337
- color: black;
338
 
339
  -webkit-font-smoothing: antialiased;
340
  -moz-osx-font-smoothing: grayscale;
@@ -345,10 +361,24 @@
345
  color: black;
346
  }
347
 
348
- .tm-slider h2 {
349
  margin: 5px;
350
  }
351
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
352
  /* Media Query
353
  ==========================================*/
354
 
@@ -356,4 +386,25 @@
356
  .slick-slider img {
357
  height: auto !important;
358
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
359
  }
16
  .slider ul {
17
  margin: 0 !important;
18
  }
19
+ .content-over-slider .slick-slide {
20
+ position: relative;
21
+ }
22
+ .content-over-slider .slick-slide .content-section {
23
+ position: absolute;
24
+ width: 100%;
25
+ padding: 0 9%;
26
+ }
27
+ .content-over-slider .slick-slide .content-section .carousel_btn_span a {
28
+ text-decoration: none;
29
+ padding: 8px 20px;
30
+ margin-top: 20px;
31
+ }
32
+
33
 
34
  .slick-slider
35
  {
108
  {
109
  display: none;
110
  float: left;
111
+ padding-bottom: 10px;
112
  height: 100%;
113
  min-height: 1px;
114
  }
162
  /* Icons */
163
  @font-face
164
  {
165
+
166
  font-weight: normal;
167
  font-style: normal;
168
 
220
  .slick-prev:before,
221
  .slick-next:before
222
  {
223
+ font: normal normal normal 14px/1 FontAwesome;
224
  font-size: 20px;
225
+ line-height: 0;
226
 
227
  opacity: .75;
228
  color: #000;
243
  }
244
  .slick-prev:before
245
  {
246
+ content: "\f104";
247
+ font-weight: bold;
248
  }
249
  [dir='rtl'] .slick-prev:before
250
  {
263
  }
264
  .slick-next:before
265
  {
266
+ content: "\f105";
267
+ font-weight: bold;
268
  }
269
  [dir='rtl'] .slick-next:before
270
  {
336
  .slick-dots li button:before
337
  {
338
  font-family: 'slick';
339
+ font-size: 30px;
340
+ line-height: 13px;
341
 
342
  position: absolute;
343
  top: 0;
344
  left: 0;
345
 
346
+ width: 14px;
347
+ height: 14px;
348
+ border-radius: 50%;
349
  content: '•';
350
  text-align: center;
351
 
352
+ opacity: 0.60;
353
+ /*color: black;*/
354
 
355
  -webkit-font-smoothing: antialiased;
356
  -moz-osx-font-smoothing: grayscale;
361
  color: black;
362
  }
363
 
364
+ .tdt-slider h2 {
365
  margin: 5px;
366
  }
367
 
368
+ /* Custom Coding
369
+ ==========================================*/
370
+ .ultimate_carousel_btn:hover {
371
+ text-decoration: none;
372
+ }
373
+ .slick-slide .carousel_btn_span {
374
+ width: 100%;
375
+ display: inline-block;
376
+ }
377
+ .slick-slider .slick-arrow {
378
+ border: 0px !important;
379
+ background: none !important;
380
+ }
381
+
382
  /* Media Query
383
  ==========================================*/
384
 
386
  .slick-slider img {
387
  height: auto !important;
388
  }
389
+ }
390
+ @media only screen and (max-width: 480px) {
391
+ .tdt-slider .tdt-slider-heading {
392
+ font-size: 17px !important;
393
+ font-weight: bold;
394
+ }
395
+ .tdt-slider h1, h3, p, span {
396
+ font-size: 15px !important;
397
+ }
398
+ .tdt-slider .carousel_btn_span a {
399
+ padding: 6px 20px !important;
400
+ }
401
+ .content-over-slider .slick-slide .content-section .carousel_btn_span a {
402
+ margin-top: 10px;
403
+ }
404
+ .slick-prev {
405
+ left: 7px !important;
406
+ }
407
+ .slick-next {
408
+ right: 7px !important;
409
+ }
410
  }
css/timeline.css CHANGED
@@ -251,7 +251,7 @@ Main components
251
  display: inline-block;
252
  }
253
  .cd-timeline-content p {
254
- margin: 1em 0;
255
  line-height: 1.6;
256
  }
257
  .cd-timeline-content .cd-read-more {
251
  display: inline-block;
252
  }
253
  .cd-timeline-content p {
254
+ margin: 0;
255
  line-height: 1.6;
256
  }
257
  .cd-timeline-content .cd-read-more {
css/tooltipster.bundle.min.css ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ .tooltipster-fall,.tooltipster-grow.tooltipster-show{-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1);-moz-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-ms-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-o-transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-base{display:flex;pointer-events:none;position:absolute}.tooltipster-box{flex:1 1 auto}.tooltipster-content{box-sizing:border-box;max-height:100%;max-width:100%;overflow:auto}.tooltipster-ruler{bottom:0;left:0;overflow:hidden;position:fixed;right:0;top:0;visibility:hidden}.tooltipster-fade{opacity:0;-webkit-transition-property:opacity;-moz-transition-property:opacity;-o-transition-property:opacity;-ms-transition-property:opacity;transition-property:opacity}.tooltipster-fade.tooltipster-show{opacity:1}.tooltipster-grow{-webkit-transform:scale(0,0);-moz-transform:scale(0,0);-o-transform:scale(0,0);-ms-transform:scale(0,0);transform:scale(0,0);-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform;-webkit-backface-visibility:hidden}.tooltipster-grow.tooltipster-show{-webkit-transform:scale(1,1);-moz-transform:scale(1,1);-o-transform:scale(1,1);-ms-transform:scale(1,1);transform:scale(1,1);-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-swing{opacity:0;-webkit-transform:rotateZ(4deg);-moz-transform:rotateZ(4deg);-o-transform:rotateZ(4deg);-ms-transform:rotateZ(4deg);transform:rotateZ(4deg);-webkit-transition-property:-webkit-transform,opacity;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;-ms-transition-property:-ms-transform;transition-property:transform}.tooltipster-swing.tooltipster-show{opacity:1;-webkit-transform:rotateZ(0);-moz-transform:rotateZ(0);-o-transform:rotateZ(0);-ms-transform:rotateZ(0);transform:rotateZ(0);-webkit-transition-timing-function:cubic-bezier(.23,.635,.495,1);-webkit-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);-moz-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);-ms-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);-o-transition-timing-function:cubic-bezier(.23,.635,.495,2.4);transition-timing-function:cubic-bezier(.23,.635,.495,2.4)}.tooltipster-fall{-webkit-transition-property:top;-moz-transition-property:top;-o-transition-property:top;-ms-transition-property:top;transition-property:top;-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-fall.tooltipster-initial{top:0!important}.tooltipster-fall.tooltipster-dying{-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;-ms-transition-property:all;transition-property:all;top:0!important;opacity:0}.tooltipster-slide{-webkit-transition-property:left;-moz-transition-property:left;-o-transition-property:left;-ms-transition-property:left;transition-property:left;-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1);-webkit-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-moz-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-ms-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);-o-transition-timing-function:cubic-bezier(.175,.885,.32,1.15);transition-timing-function:cubic-bezier(.175,.885,.32,1.15)}.tooltipster-slide.tooltipster-initial{left:-40px!important}.tooltipster-slide.tooltipster-dying{-webkit-transition-property:all;-moz-transition-property:all;-o-transition-property:all;-ms-transition-property:all;transition-property:all;left:0!important;opacity:0}@keyframes tooltipster-fading{0%{opacity:0}100%{opacity:1}}.tooltipster-update-fade{animation:tooltipster-fading .4s}@keyframes tooltipster-rotating{25%{transform:rotate(-2deg)}75%{transform:rotate(2deg)}100%{transform:rotate(0)}}.tooltipster-update-rotate{animation:tooltipster-rotating .6s}@keyframes tooltipster-scaling{50%{transform:scale(1.1)}100%{transform:scale(1)}}.tooltipster-update-scale{animation:tooltipster-scaling .6s}.tooltipster-sidetip .tooltipster-box{background:#565656;border:2px solid #000;border-radius:4px}.tooltipster-sidetip.tooltipster-bottom .tooltipster-box{margin-top:8px}.tooltipster-sidetip.tooltipster-left .tooltipster-box{margin-right:8px}.tooltipster-sidetip.tooltipster-right .tooltipster-box{margin-left:8px}.tooltipster-sidetip.tooltipster-top .tooltipster-box{margin-bottom:8px}.tooltipster-sidetip .tooltipster-content{color:#fff;line-height:18px;padding:6px 14px}.tooltipster-sidetip .tooltipster-arrow{overflow:hidden;position:absolute}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow{height:10px;margin-left:-10px;top:0;width:20px}.tooltipster-sidetip.tooltipster-left .tooltipster-arrow{height:20px;margin-top:-10px;right:0;top:0;width:10px}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow{height:20px;margin-top:-10px;left:0;top:0;width:10px}.tooltipster-sidetip.tooltipster-top .tooltipster-arrow{bottom:0;height:10px;margin-left:-10px;width:20px}.tooltipster-sidetip .tooltipster-arrow-background,.tooltipster-sidetip .tooltipster-arrow-border{height:0;position:absolute;width:0}.tooltipster-sidetip .tooltipster-arrow-background{border:10px solid transparent}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-background{border-bottom-color:#565656;left:0;top:3px}.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-background{border-left-color:#565656;left:-3px;top:0}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-background{border-right-color:#565656;left:3px;top:0}.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-background{border-top-color:#565656;left:0;top:-3px}.tooltipster-sidetip .tooltipster-arrow-border{border:10px solid transparent;left:0;top:0}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#000}.tooltipster-sidetip.tooltipster-left .tooltipster-arrow-border{border-left-color:#000}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-border{border-right-color:#000}.tooltipster-sidetip.tooltipster-top .tooltipster-arrow-border{border-top-color:#000}.tooltipster-sidetip .tooltipster-arrow-uncropped{position:relative}.tooltipster-sidetip.tooltipster-bottom .tooltipster-arrow-uncropped{top:-10px}.tooltipster-sidetip.tooltipster-right .tooltipster-arrow-uncropped{left:-10px}
2
+ .tooltipster-sidetip.tooltipster-borderless .tooltipster-box{border:none;background:#1b1b1b;background:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-box{margin-top:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-box{margin-right:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-box{margin-left:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-box{margin-bottom:8px}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow{height:8px;margin-left:-8px;width:16px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow{height:16px;margin-left:0;margin-top:-8px;width:8px}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow-border{border:8px solid transparent}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#1b1b1b;border-bottom-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-arrow-border{border-left-color:#1b1b1b;border-left-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow-border{border-right-color:#1b1b1b;border-right-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-arrow-border{border-top-color:#1b1b1b;border-top-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-arrow-uncropped{top:-8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow-uncropped{left:-8px}
3
+ .tooltipster-sidetip.tooltipster-light .tooltipster-box{border-radius:3px;border:1px solid #ccc;background:#ededed}.tooltipster-sidetip.tooltipster-light .tooltipster-content{color:#666}.tooltipster-sidetip.tooltipster-light .tooltipster-arrow{height:9px;margin-left:-9px;width:18px}.tooltipster-sidetip.tooltipster-light.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow{height:18px;margin-left:0;margin-top:-9px;width:9px}.tooltipster-sidetip.tooltipster-light .tooltipster-arrow-background{border:9px solid transparent}.tooltipster-sidetip.tooltipster-light.tooltipster-bottom .tooltipster-arrow-background{border-bottom-color:#ededed;top:1px}.tooltipster-sidetip.tooltipster-light.tooltipster-left .tooltipster-arrow-background{border-left-color:#ededed;left:-1px}.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow-background{border-right-color:#ededed;left:1px}.tooltipster-sidetip.tooltipster-light.tooltipster-top .tooltipster-arrow-background{border-top-color:#ededed;top:-1px}.tooltipster-sidetip.tooltipster-light .tooltipster-arrow-border{border:9px solid transparent}.tooltipster-sidetip.tooltipster-light.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-left .tooltipster-arrow-border{border-left-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow-border{border-right-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-top .tooltipster-arrow-border{border-top-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-bottom .tooltipster-arrow-uncropped{top:-9px}.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow-uncropped{left:-9px}
4
+ .tooltipster-sidetip.tooltipster-noir .tooltipster-box{border-radius:0;border:3px solid #000;background:#fff}.tooltipster-sidetip.tooltipster-noir .tooltipster-content{color:#000}.tooltipster-sidetip.tooltipster-noir .tooltipster-arrow{height:11px;margin-left:-11px;width:22px}.tooltipster-sidetip.tooltipster-noir.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-noir.tooltipster-right .tooltipster-arrow{height:22px;margin-left:0;margin-top:-11px;width:11px}.tooltipster-sidetip.tooltipster-noir .tooltipster-arrow-background{border:11px solid transparent}.tooltipster-sidetip.tooltipster-noir.tooltipster-bottom .tooltipster-arrow-background{border-bottom-color:#fff;top:4px}.tooltipster-sidetip.tooltipster-noir.tooltipster-left .tooltipster-arrow-background{border-left-color:#fff;left:-4px}.tooltipster-sidetip.tooltipster-noir.tooltipster-right .tooltipster-arrow-background{border-right-color:#fff;left:4px}.tooltipster-sidetip.tooltipster-noir.tooltipster-top .tooltipster-arrow-background{border-top-color:#fff;top:-4px}.tooltipster-sidetip.tooltipster-noir .tooltipster-arrow-border{border-width:11px}.tooltipster-sidetip.tooltipster-noir.tooltipster-bottom .tooltipster-arrow-uncropped{top:-11px}.tooltipster-sidetip.tooltipster-noir.tooltipster-right .tooltipster-arrow-uncropped{left:-11px}
5
+ .tooltipster-sidetip.tooltipster-punk .tooltipster-box{border-radius:5px;border:none;border-bottom:3px solid #f71169;background:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-top .tooltipster-box{margin-bottom:7px}.tooltipster-sidetip.tooltipster-punk .tooltipster-content{color:#fff;padding:8px 16px}.tooltipster-sidetip.tooltipster-punk .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-punk.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-left .tooltipster-arrow-border{border-left-color:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-right .tooltipster-arrow-border{border-right-color:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-top .tooltipster-arrow-border{border-top-color:#f71169}
6
+ .tooltipster-sidetip.tooltipster-shadow .tooltipster-box{border:none;border-radius:5px;background:#fff;box-shadow:0 0 10px 6px rgba(0,0,0,.1)}.tooltipster-sidetip.tooltipster-shadow.tooltipster-bottom .tooltipster-box{margin-top:6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-left .tooltipster-box{margin-right:6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-box{margin-left:6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-top .tooltipster-box{margin-bottom:6px}.tooltipster-sidetip.tooltipster-shadow .tooltipster-content{color:#8d8d8d}.tooltipster-sidetip.tooltipster-shadow .tooltipster-arrow{height:6px;margin-left:-6px;width:12px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-arrow{height:12px;margin-left:0;margin-top:-6px;width:6px}.tooltipster-sidetip.tooltipster-shadow .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-shadow .tooltipster-arrow-border{border:6px solid transparent}.tooltipster-sidetip.tooltipster-shadow.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-left .tooltipster-arrow-border{border-left-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-arrow-border{border-right-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-top .tooltipster-arrow-border{border-top-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-bottom .tooltipster-arrow-uncropped{top:-6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-arrow-uncropped{left:-6px}
icons/accordion.png DELETED
Binary file
icons/accordions.png ADDED
Binary file
icons/advanceprice.png CHANGED
Binary file
icons/carousal-slider.png CHANGED
Binary file
icons/countdown.jpg DELETED
Binary file
icons/countdown.png ADDED
Binary file
icons/counter.jpg DELETED
Binary file
icons/counter.png ADDED
Binary file
icons/creative.png DELETED
Binary file
icons/creativelink.png CHANGED
Binary file
icons/creatives.png ADDED
Binary file
icons/flipbox.png CHANGED
Binary file
icons/heading.png CHANGED
Binary file
icons/hoverbutton.png CHANGED
Binary file
icons/icon.png CHANGED
Binary file
icons/ihe.png CHANGED
Binary file
icons/image-swap.png DELETED
Binary file
icons/img-swap.png ADDED
Binary file
icons/infobanner.png CHANGED
Binary file
icons/infobox.png CHANGED
Binary file
icons/infocircle.png CHANGED
Binary file
icons/infolist.png CHANGED
Binary file
icons/int-banner.png CHANGED
Binary file
icons/memberprofile.jpg DELETED
Binary file
icons/memberprofile.png ADDED
Binary file
icons/photobook.png CHANGED
Binary file
icons/popup.png CHANGED
Binary file
icons/post-carousel.png ADDED
Binary file
icons/price.png CHANGED
Binary file
icons/social.jpg DELETED
Binary file
icons/social.png ADDED
Binary file
icons/support.png DELETED
Binary file
icons/testimonial.png CHANGED
Binary file
icons/texttype.jpg DELETED
Binary file
icons/texttype.png ADDED
Binary file
icons/timeline.png CHANGED
Binary file
icons/trend.png CHANGED
Binary file
includes/creativelinkSetting.php DELETED
@@ -1,117 +0,0 @@
1
- <?php
2
- $creativelink_params = array(
3
- array(
4
- "type" => "dropdown",
5
- "heading" => __( 'Effect Style', 'creativelink-vc' ),
6
- "param_name" => "style",
7
- "description" => __( 'Select effect style', 'creativelink-vc' ),
8
- "group" => 'General',
9
- "value" => array(
10
- "Effect 1" => "cl-effect-1",
11
- "Effect 2" => "cl-effect-2",
12
- "Effect 3" => "cl-effect-3",
13
- "Effect 4" => "cl-effect-4",
14
- "Effect 5" => "cl-effect-5",
15
- "Effect 6" => "cl-effect-6",
16
- "Effect 7" => "cl-effect-7",
17
- "Effect 8" => "cl-effect-8",
18
- "Effect 10" => "cl-effect-10",
19
- "Effect 11" => "cl-effect-11",
20
- "Effect 13" => "cl-effect-13",
21
- "Effect 14" => "cl-effect-14",
22
- "Effect 15" => "cl-effect-15",
23
- "Effect 16" => "cl-effect-16",
24
- "Effect 18" => "cl-effect-18",
25
- "Effect 19" => "cl-effect-19",
26
- "Effect 20" => "cl-effect-20",
27
- "Effect 21" => "cl-effect-21",
28
- )
29
- ),
30
-
31
- array(
32
- "type" => "dropdown",
33
- "heading" => __( 'Button Align', 'creativelink-vc' ),
34
- "param_name" => "align",
35
- "description" => __( 'select text align', 'creativelink-vc' ),
36
- "group" => 'General',
37
- "value" => array(
38
- "Left" => "left",
39
- "Center" => "center",
40
- "Right" => "right",
41
- )
42
- ),
43
-
44
- array(
45
- "type" => "textfield",
46
- "heading" => __( 'Text', 'creativelink-vc' ),
47
- "param_name" => "text",
48
- "description" => __( 'write button text', 'creativelink-vc' ),
49
- "group" => 'General',
50
- ),
51
-
52
- array(
53
- "type" => "textfield",
54
- "heading" => __( 'Font Size', 'creativelink-vc' ),
55
- "param_name" => "size",
56
- "description" => __( 'font size of text in pixel e.g 18px', 'creativelink-vc' ),
57
- "group" => 'General',
58
- ),
59
-
60
- array(
61
- "type" => "textfield",
62
- "heading" => __( 'Font Weight', 'creativelink-vc' ),
63
- "param_name" => "weight",
64
- "description" => __( 'thickness of text e.g 500 or bold', 'creativelink-vc' ),
65
- "group" => 'General',
66
- ),
67
-
68
- array(
69
- "type" => "textfield",
70
- "heading" => __( 'Button URL', 'creativelink-vc' ),
71
- "param_name" => "url",
72
- "description" => __( 'write url as link', 'creativelink-vc' ),
73
- "group" => 'General',
74
- ),
75
-
76
- array(
77
- "type" => "textfield",
78
- "heading" => __( 'Open Link New Tab', 'creativelink-vc' ),
79
- "param_name" => "target",
80
- "description" => __( 'write _blank to open link in new tab', 'creativelink-vc' ),
81
- "group" => 'General',
82
- ),
83
-
84
- array(
85
- "type" => "colorpicker",
86
- "heading" => __( 'Text Color', 'creativelink-vc' ),
87
- "param_name" => "clr",
88
- "description" => __( 'select button color', 'creativelink-vc' ),
89
- "group" => 'Color',
90
- ),
91
-
92
- array(
93
- "type" => "colorpicker",
94
- "heading" => __( 'Background Color', 'creativelink-vc' ),
95
- "param_name" => "bgclr",
96
- "description" => __( 'select button background color', 'creativelink-vc' ),
97
- "group" => 'Color',
98
- ),
99
-
100
- array(
101
- "type" => "colorpicker",
102
- "heading" => __( 'Hover Text Color', 'creativelink-vc' ),
103
- "param_name" => "hoverclr",
104
- "description" => __( 'select button color on hover', 'creativelink-vc' ),
105
- "group" => 'Color',
106
- ),
107
-
108
- array(
109
- "type" => "colorpicker",
110
- "heading" => __( 'Hover Background Color', 'creativelink-vc' ),
111
- "param_name" => "hoverbg",
112
- "description" => __( 'select button background color on hover', 'creativelink-vc' ),
113
- "group" => 'Color',
114
- ),
115
-
116
- );
117
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
index.php CHANGED
@@ -5,13 +5,13 @@
5
  Plugin URI: http://addons.topdigitaltrends.net/
6
  Author: Nasir
7
  Author URI: http://topdigitaltrends.net/
8
- Version: 1.0
9
  License: GPL2
10
  */
11
 
12
  /*
13
 
14
- Copyright (C) 2017 Nasir Email
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
5
  Plugin URI: http://addons.topdigitaltrends.net/
6
  Author: Nasir
7
  Author URI: http://topdigitaltrends.net/
8
+ Version: 2.0
9
  License: GPL2
10
  */
11
 
12
  /*
13
 
14
+ Copyright (C) 2017 Nasir nasirahmad2010@hotmail.com
15
 
16
  This program is free software; you can redistribute it and/or modify
17
  it under the terms of the GNU General Public License, version 2, as
js/bpopup.js CHANGED
@@ -6,7 +6,7 @@
6
  ================================================================================*/
7
  (function(c){c.fn.bPopup=function(A,E){function L(){a.contentContainer=c(a.contentContainer||b);switch(a.content){case "iframe":var d=c('<iframe class="b-iframe" '+a.iframeAttr+"></iframe>");d.appendTo(a.contentContainer);t=b.outerHeight(!0);u=b.outerWidth(!0);B();d.attr("src",a.loadUrl);l(a.loadCallback);break;case "image":B();c("<img />").load(function(){l(a.loadCallback);F(c(this))}).attr("src",a.loadUrl).hide().appendTo(a.contentContainer);break;default:B(),c('<div class="b-ajax-wrapper"></div>').load(a.loadUrl,a.loadData,function(d,b,e){l(a.loadCallback,b);F(c(this))}).hide().appendTo(a.contentContainer)}}function B(){a.modal&&c('<div class="b-modal '+e+'"></div>').css({backgroundColor:a.modalColor,position:"fixed",top:0,right:0,bottom:0,left:0,opacity:0,zIndex:a.zIndex+v}).appendTo(a.appendTo).fadeTo(a.speed,a.opacity);C();b.data("bPopup",a).data("id",e).css({left:"slideIn"==a.transition||"slideBack"==a.transition?"slideBack"==a.transition?f.scrollLeft()+w:-1*(x+u):m(!(!a.follow[0]&&n||g)),position:a.positionStyle||"absolute",top:"slideDown"==a.transition||"slideUp"==a.transition?"slideUp"==a.transition?f.scrollTop()+y:z+-1*t:p(!(!a.follow[1]&&q||g)),"z-index":a.zIndex+v+1}).each(function(){a.appending&&c(this).appendTo(a.appendTo)});G(!0)}function r(){a.modal&&c(".b-modal."+b.data("id")).fadeTo(a.speed,0,function(){c(this).remove()});a.scrollBar||c("html").css("overflow","auto");c(".b-modal."+e).unbind("click");f.unbind("keydown."+e);k.unbind("."+e).data("bPopup",0<k.data("bPopup")-1?k.data("bPopup")-1:null);b.undelegate(".bClose, ."+a.closeClass,"click."+e,r).data("bPopup",null);clearTimeout(H);G();return!1}function I(d){y=k.height();w=k.width();h=D();if(h.x||h.y)clearTimeout(J),J=setTimeout(function(){C();d=d||a.followSpeed;var e={};h.x&&(e.left=a.follow[0]?m(!0):"auto");h.y&&(e.top=a.follow[1]?p(!0):"auto");b.dequeue().each(function(){g?c(this).css({left:x,top:z}):c(this).animate(e,d,a.followEasing)})},50)}function F(d){var c=d.width(),e=d.height(),f={};a.contentContainer.css({height:e,width:c});e>=b.height()&&(f.height=b.height());c>=b.width()&&(f.width=b.width());t=b.outerHeight(!0);u=b.outerWidth(!0);C();a.contentContainer.css({height:"auto",width:"auto"});f.left=m(!(!a.follow[0]&&n||g));f.top=p(!(!a.follow[1]&&q||g));b.animate(f,250,function(){d.show();h=D()})}function M(){k.data("bPopup",v);b.delegate(".bClose, ."+a.closeClass,"click."+e,r);a.modalClose&&c(".b-modal."+e).css("cursor","pointer").bind("click",r);N||!a.follow[0]&&!a.follow[1]||k.bind("scroll."+e,function(){if(h.x||h.y){var d={};h.x&&(d.left=a.follow[0]?m(!g):"auto");h.y&&(d.top=a.follow[1]?p(!g):"auto");b.dequeue().animate(d,a.followSpeed,a.followEasing)}}).bind("resize."+e,function(){I()});a.escClose&&f.bind("keydown."+e,function(a){27==a.which&&r()})}function G(d){function c(e){b.css({display:"block",opacity:1}).animate(e,a.speed,a.easing,function(){K(d)})}switch(d?a.transition:a.transitionClose||a.transition){case "slideIn":c({left:d?m(!(!a.follow[0]&&n||g)):f.scrollLeft()-(u||b.outerWidth(!0))-200});break;case "slideBack":c({left:d?m(!(!a.follow[0]&&n||g)):f.scrollLeft()+w+200});break;case "slideDown":c({top:d?p(!(!a.follow[1]&&q||g)):f.scrollTop()-(t||b.outerHeight(!0))-200});break;case "slideUp":c({top:d?p(!(!a.follow[1]&&q||g)):f.scrollTop()+y+200});break;default:b.stop().fadeTo(a.speed,d?1:0,function(){K(d)})}}function K(d){d?(M(),l(E),a.autoClose&&(H=setTimeout(r,a.autoClose))):(b.hide(),l(a.onClose),a.loadUrl&&(a.contentContainer.empty(),b.css({height:"auto",width:"auto"})))}function m(a){return a?x+f.scrollLeft():x}function p(a){return a?z+f.scrollTop():z}function l(a,e){c.isFunction(a)&&a.call(b,e)}function C(){z=q?a.position[1]:Math.max(0,(y-b.outerHeight(!0))/2-a.amsl);x=n?a.position[0]:(w-b.outerWidth(!0))/2;h=D()}function D(){return{x:w>b.outerWidth(!0),y:y>b.outerHeight(!0)}}c.isFunction(A)&&(E=A,A=null);var a=c.extend({},c.fn.bPopup.defaults,A);a.scrollBar||c("html").css("overflow","hidden");var b=this,f=c(document),k=c(window),y=k.height(),w=k.width(),N=/OS 6(_\d)+/i.test(navigator.userAgent),v=0,e,h,q,n,g,z,x,t,u,J,H;b.close=function(){r()};b.reposition=function(a){I(a)};return b.each(function(){c(this).data("bPopup")||(l(a.onOpen),v=(k.data("bPopup")||0)+1,e="__b-popup"+v+"__",q="auto"!==a.position[1],n="auto"!==a.position[0],g="fixed"===a.positionStyle,t=b.outerHeight(!0),u=b.outerWidth(!0),a.loadUrl?L():B())})};c.fn.bPopup.defaults={amsl:50,appending:!0,appendTo:"body",autoClose:!1,closeClass:"b-close",content:"ajax",contentContainer:!1,easing:"swing",escClose:!0,follow:[!0,!0],followEasing:"swing",followSpeed:500,iframeAttr:'scrolling="no" frameborder="0"',loadCallback:!1,loadData:!1,loadUrl:!1,modal:!0,modalClose:!0,modalColor:"#000",onClose:!1,onOpen:!1,opacity:.7,position:["auto","auto"],positionStyle:"absolute",scrollBar:!0,speed:250,transition:"fadeIn",transitionClose:!1,zIndex:9997}})(jQuery);
8
  jQuery(document).ready(function($) {
9
-
10
  $('.model-popup-btn').bind('click', function(event) {
11
  var modal_id = $(this).data('id');
12
  var bgcolor = $(this).closest('.modal-popup-box').data('bodybg');
@@ -14,6 +14,13 @@
14
  followSpeed: 200,
15
  speed: 200,
16
  modalColor: bgcolor,
 
 
 
 
 
17
  });
18
  });
 
 
19
  });
6
  ================================================================================*/
7
  (function(c){c.fn.bPopup=function(A,E){function L(){a.contentContainer=c(a.contentContainer||b);switch(a.content){case "iframe":var d=c('<iframe class="b-iframe" '+a.iframeAttr+"></iframe>");d.appendTo(a.contentContainer);t=b.outerHeight(!0);u=b.outerWidth(!0);B();d.attr("src",a.loadUrl);l(a.loadCallback);break;case "image":B();c("<img />").load(function(){l(a.loadCallback);F(c(this))}).attr("src",a.loadUrl).hide().appendTo(a.contentContainer);break;default:B(),c('<div class="b-ajax-wrapper"></div>').load(a.loadUrl,a.loadData,function(d,b,e){l(a.loadCallback,b);F(c(this))}).hide().appendTo(a.contentContainer)}}function B(){a.modal&&c('<div class="b-modal '+e+'"></div>').css({backgroundColor:a.modalColor,position:"fixed",top:0,right:0,bottom:0,left:0,opacity:0,zIndex:a.zIndex+v}).appendTo(a.appendTo).fadeTo(a.speed,a.opacity);C();b.data("bPopup",a).data("id",e).css({left:"slideIn"==a.transition||"slideBack"==a.transition?"slideBack"==a.transition?f.scrollLeft()+w:-1*(x+u):m(!(!a.follow[0]&&n||g)),position:a.positionStyle||"absolute",top:"slideDown"==a.transition||"slideUp"==a.transition?"slideUp"==a.transition?f.scrollTop()+y:z+-1*t:p(!(!a.follow[1]&&q||g)),"z-index":a.zIndex+v+1}).each(function(){a.appending&&c(this).appendTo(a.appendTo)});G(!0)}function r(){a.modal&&c(".b-modal."+b.data("id")).fadeTo(a.speed,0,function(){c(this).remove()});a.scrollBar||c("html").css("overflow","auto");c(".b-modal."+e).unbind("click");f.unbind("keydown."+e);k.unbind("."+e).data("bPopup",0<k.data("bPopup")-1?k.data("bPopup")-1:null);b.undelegate(".bClose, ."+a.closeClass,"click."+e,r).data("bPopup",null);clearTimeout(H);G();return!1}function I(d){y=k.height();w=k.width();h=D();if(h.x||h.y)clearTimeout(J),J=setTimeout(function(){C();d=d||a.followSpeed;var e={};h.x&&(e.left=a.follow[0]?m(!0):"auto");h.y&&(e.top=a.follow[1]?p(!0):"auto");b.dequeue().each(function(){g?c(this).css({left:x,top:z}):c(this).animate(e,d,a.followEasing)})},50)}function F(d){var c=d.width(),e=d.height(),f={};a.contentContainer.css({height:e,width:c});e>=b.height()&&(f.height=b.height());c>=b.width()&&(f.width=b.width());t=b.outerHeight(!0);u=b.outerWidth(!0);C();a.contentContainer.css({height:"auto",width:"auto"});f.left=m(!(!a.follow[0]&&n||g));f.top=p(!(!a.follow[1]&&q||g));b.animate(f,250,function(){d.show();h=D()})}function M(){k.data("bPopup",v);b.delegate(".bClose, ."+a.closeClass,"click."+e,r);a.modalClose&&c(".b-modal."+e).css("cursor","pointer").bind("click",r);N||!a.follow[0]&&!a.follow[1]||k.bind("scroll."+e,function(){if(h.x||h.y){var d={};h.x&&(d.left=a.follow[0]?m(!g):"auto");h.y&&(d.top=a.follow[1]?p(!g):"auto");b.dequeue().animate(d,a.followSpeed,a.followEasing)}}).bind("resize."+e,function(){I()});a.escClose&&f.bind("keydown."+e,function(a){27==a.which&&r()})}function G(d){function c(e){b.css({display:"block",opacity:1}).animate(e,a.speed,a.easing,function(){K(d)})}switch(d?a.transition:a.transitionClose||a.transition){case "slideIn":c({left:d?m(!(!a.follow[0]&&n||g)):f.scrollLeft()-(u||b.outerWidth(!0))-200});break;case "slideBack":c({left:d?m(!(!a.follow[0]&&n||g)):f.scrollLeft()+w+200});break;case "slideDown":c({top:d?p(!(!a.follow[1]&&q||g)):f.scrollTop()-(t||b.outerHeight(!0))-200});break;case "slideUp":c({top:d?p(!(!a.follow[1]&&q||g)):f.scrollTop()+y+200});break;default:b.stop().fadeTo(a.speed,d?1:0,function(){K(d)})}}function K(d){d?(M(),l(E),a.autoClose&&(H=setTimeout(r,a.autoClose))):(b.hide(),l(a.onClose),a.loadUrl&&(a.contentContainer.empty(),b.css({height:"auto",width:"auto"})))}function m(a){return a?x+f.scrollLeft():x}function p(a){return a?z+f.scrollTop():z}function l(a,e){c.isFunction(a)&&a.call(b,e)}function C(){z=q?a.position[1]:Math.max(0,(y-b.outerHeight(!0))/2-a.amsl);x=n?a.position[0]:(w-b.outerWidth(!0))/2;h=D()}function D(){return{x:w>b.outerWidth(!0),y:y>b.outerHeight(!0)}}c.isFunction(A)&&(E=A,A=null);var a=c.extend({},c.fn.bPopup.defaults,A);a.scrollBar||c("html").css("overflow","hidden");var b=this,f=c(document),k=c(window),y=k.height(),w=k.width(),N=/OS 6(_\d)+/i.test(navigator.userAgent),v=0,e,h,q,n,g,z,x,t,u,J,H;b.close=function(){r()};b.reposition=function(a){I(a)};return b.each(function(){c(this).data("bPopup")||(l(a.onOpen),v=(k.data("bPopup")||0)+1,e="__b-popup"+v+"__",q="auto"!==a.position[1],n="auto"!==a.position[0],g="fixed"===a.positionStyle,t=b.outerHeight(!0),u=b.outerWidth(!0),a.loadUrl?L():B())})};c.fn.bPopup.defaults={amsl:50,appending:!0,appendTo:"body",autoClose:!1,closeClass:"b-close",content:"ajax",contentContainer:!1,easing:"swing",escClose:!0,follow:[!0,!0],followEasing:"swing",followSpeed:500,iframeAttr:'scrolling="no" frameborder="0"',loadCallback:!1,loadData:!1,loadUrl:!1,modal:!0,modalClose:!0,modalColor:"#000",onClose:!1,onOpen:!1,opacity:.7,position:["auto","auto"],positionStyle:"absolute",scrollBar:!0,speed:250,transition:"fadeIn",transitionClose:!1,zIndex:9997}})(jQuery);
8
  jQuery(document).ready(function($) {
9
+ var y_url = $('iframe').attr('src');
10
  $('.model-popup-btn').bind('click', function(event) {
11
  var modal_id = $(this).data('id');
12
  var bgcolor = $(this).closest('.modal-popup-box').data('bodybg');
14
  followSpeed: 200,
15
  speed: 200,
16
  modalColor: bgcolor,
17
+ onClose: function() {
18
+ // player.stopVideo();
19
+ $('iframe').attr('src', '');
20
+ $('iframe').attr('src', y_url);
21
+ }
22
  });
23
  });
24
+
25
+ $('.mega-model-popup').prependTo('body');
26
  });
js/custom-tm.js CHANGED
@@ -5,6 +5,16 @@ jQuery(document).on('ready', function() {
5
  infinite: true,
6
  slidesToShow: 1,
7
  autoplay: true,
8
- autoplaySpeed: 2000
 
 
 
 
 
 
 
 
 
9
  });
 
10
  });
5
  infinite: true,
6
  slidesToShow: 1,
7
  autoplay: true,
8
+ autoplaySpeed: 2000,
9
+ responsive: [
10
+ {
11
+ breakpoint: 480,
12
+ settings: {
13
+ slidesToShow: 1,
14
+ slidesToScroll: 1
15
+ }
16
+ }
17
+ ]
18
  });
19
+
20
  });
js/jquery.bxslider.min.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * BxSlider v4.1.2 - Fully loaded, responsive content slider
3
- * http://bxslider.com
4
- *
5
- * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com
6
- * Written while drinking Belgian ales and listening to jazz
7
- *
8
- * Released under the MIT license - http://opensource.org/licenses/MIT
9
- */
10
- !function(t){var e={},s={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(n){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages="all"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp="vertical"==o.settings.mode?"top":"left",o.usingCSS=o.settings.useCSS&&"fade"!=o.settings.mode&&function(){var t=document.createElement("div"),e=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace("Perspective","").toLowerCase(),o.animProp="-"+o.cssPrefix+"-transform",!0;return!1}(),"vertical"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data("origStyle",r.attr("style")),r.children(o.settings.slideSelector).each(function(){t(this).data("origStyle",t(this).attr("style"))}),c()},c=function(){r.wrap('<div class="bx-wrapper"><div class="bx-viewport"></div></div>'),o.viewport=r.parent(),o.loader=t('<div class="bx-loading" />'),o.viewport.prepend(o.loader),r.css({width:"horizontal"==o.settings.mode?100*o.children.length+215+"%":"auto",position:"relative"}),o.usingCSS&&o.settings.easing?r.css("-"+o.cssPrefix+"-transition-timing-function",o.settings.easing):o.settings.easing||(o.settings.easing="swing"),f(),o.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),o.viewport.parent().css({maxWidth:p()}),o.settings.pager||o.viewport.parent().css({margin:"0 auto 0px"}),o.children.css({"float":"horizontal"==o.settings.mode?"left":"none",listStyle:"none",position:"relative"}),o.children.css("width",u()),"horizontal"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginRight",o.settings.slideMargin),"vertical"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css("marginBottom",o.settings.slideMargin),"fade"==o.settings.mode&&(o.children.css({position:"absolute",zIndex:0,display:"none"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:"block"})),o.controls.el=t('<div class="bx-controls" />'),o.settings.captions&&P(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);"all"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&T(),o.settings.controls&&C(),o.settings.auto&&o.settings.autoControls&&E(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find("img, iframe").length;if(0==s)return i(),void 0;var n=0;e.find("img, iframe").each(function(){t(this).one("load",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteLoop&&"fade"!=o.settings.mode&&!o.settings.ticker){var e="vertical"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass("bx-clone"),s=o.children.slice(-e).clone().addClass("bx-clone");r.append(i).prepend(s)}o.loader.remove(),S(),"vertical"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(v()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind("resize",Z),o.settings.auto&&o.settings.autoStart&&H(),o.settings.ticker&&L(),o.settings.pager&&q(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&O()},v=function(){var e=0,s=t();if("vertical"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var n=1==o.settings.moveSlides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxSlides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return"vertical"==o.settings.mode?(s.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,s.map(function(){return t(this).outerHeight(!1)}).get()),e},p=function(){var t="100%";return o.settings.slideWidth>0&&(t="horizontal"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},u=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||"vertical"==o.settings.mode?t=e:o.settings.maxSlides>1&&"horizontal"==o.settings.mode&&(e>o.maxThreshold||e<o.minThreshold&&(t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides)),t},f=function(){var t=1;if("horizontal"==o.settings.mode&&o.settings.slideWidth>0)if(o.viewport.width()<o.minThreshold)t=o.settings.minSlides;else if(o.viewport.width()>o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else"vertical"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/m();else for(var e=0,i=0;e<o.children.length;)++t,e=i+f(),i+=o.settings.moveSlides<=f()?o.settings.moveSlides:f();else t=Math.ceil(o.children.length/f());return t},m=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},S=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if("horizontal"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),"reset",0)}else if("vertical"==o.settings.mode){var i=o.children.length-o.settings.minSlides,e=o.children.eq(i).position();b(-e.top,"reset",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&("horizontal"==o.settings.mode?b(-e.left,"reset",0):"vertical"==o.settings.mode&&b(-e.top,"reset",0))}},b=function(t,e,i,s){if(o.usingCSS){var n="vertical"==o.settings.mode?"translate3d(0, "+t+"px, 0)":"translate3d("+t+"px, 0, 0)";r.css("-"+o.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"==e?(r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),D()})):"reset"==e?r.css(o.animProp,n):"ticker"==e&&(r.css("-"+o.cssPrefix+"-transition-timing-function","linear"),r.css(o.animProp,n),r.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){r.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),b(s.resetValue,"reset",0),N()}))}else{var a={};a[o.animProp]=t,"slide"==e?r.animate(a,i,o.settings.easing,function(){D()}):"reset"==e?r.css(o.animProp,t):"ticker"==e&&r.animate(a,speed,"linear",function(){b(s.resetValue,"reset",0),N()})}},w=function(){for(var e="",i=x(),s=0;i>s;s++){var n="";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(n=o.settings.buildPager(s),o.pagerEl.addClass("bx-custom-pager")):(n=s+1,o.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+s+'" class="bx-pager-link">'+n+"</a></div>"}o.pagerEl.html(e)},T=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class="bx-pager" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass("bx-has-pager").append(o.pagerEl),w()),o.pagerEl.on("click","a",I)},C=function(){o.controls.next=t('<a class="bx-next" href="">'+o.settings.nextText+"</a>"),o.controls.prev=t('<a class="bx-prev" href="">'+o.settings.prevText+"</a>"),o.controls.next.bind("click",y),o.controls.prev.bind("click",z),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class="bx-controls-direction" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass("bx-has-controls-direction").append(o.controls.directionEl))},E=function(){o.controls.start=t('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+o.settings.startText+"</a></div>"),o.controls.stop=t('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+o.settings.stopText+"</a></div>"),o.controls.autoEl=t('<div class="bx-controls-auto" />'),o.controls.autoEl.on("click",".bx-start",k),o.controls.autoEl.on("click",".bx-stop",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass("bx-has-controls-auto").append(o.controls.autoEl),A(o.settings.autoStart?"stop":"start")},P=function(){o.children.each(function(){var e=t(this).find("img:first").attr("title");void 0!=e&&(""+e).length&&t(this).append('<div class="bx-caption"><span>'+e+"</span></div>")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},I=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr("data-slide-index"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},q=function(e){var i=o.children.length;return"short"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find("a").removeClass("active"),o.pagerEl.each(function(i,s){t(s).find("a").eq(e).addClass("active")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t="";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&("horizontal"==o.settings.mode?b(-t.left,"reset",0):"vertical"==o.settings.mode&&b(-t.top,"reset",0))}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find("a").removeClass("active"),o.controls.autoEl.find("a:not(.bx-"+t+")").addClass("active"))},W=function(){1==x()?(o.controls.prev.addClass("disabled"),o.controls.next.addClass("disabled")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass("disabled"),o.controls.next.removeClass("disabled")):o.active.index==x()-1?(o.controls.next.addClass("disabled"),o.controls.prev.removeClass("disabled")):(o.controls.prev.removeClass("disabled"),o.controls.next.removeClass("disabled")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if("next"==o.settings.autoDirection)r.append(o.children.clone().addClass("bx-clone"));else{r.prepend(o.children.clone().addClass("bx-clone"));var i=o.children.first().position();e="horizontal"==o.settings.mode?-i.left:-i.top}b(e,"reset",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+="horizontal"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var i=o.settings.speed/e,s="horizontal"==o.settings.mode?"left":"top",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};"next"==o.settings.autoDirection?e=r.find(".bx-clone").first().position():i=o.children.first().position();var s="horizontal"==o.settings.mode?-e.left:-e.top,n="horizontal"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,"ticker",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind("touchstart",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind("touchmove",Y),o.viewport.bind("touchend",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),"fade"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if("horizontal"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,"reset",0)}},V=function(t){o.viewport.unbind("touchmove",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,"fade"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;"horizontal"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,"reset",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,"reset",200)}o.viewport.unbind("touchend",V)},Z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),"next"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):"prev"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&W(),"fade"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed),o.children.filter(":visible").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css("zIndex",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css("zIndex",o.settings.slideZIndex),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if("horizontal"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&"prev"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(".bx-clone").eq(d);n=a.position()}else if("next"==i&&0==o.active.index)n=r.find("> .bx-clone").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if("undefined"!=typeof n){var g="horizontal"==o.settings.mode?-(n.left-s):-n.top;b(g,"slide",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,"next")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,"prev")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){"next"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A("stop"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A("start"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(".bx-clone")).outerWidth(u()),o.viewport.css("height",v()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),q(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(".bx-clone",this).remove(),o.children.each(function(){void 0!=t(this).data("origStyle")?t(this).attr("style",t(this).data("origStyle")):t(this).removeAttr("style")}),void 0!=t(this).data("origStyle")?this.attr("style",t(this).data("origStyle")):t(this).removeAttr("style"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&o.pagerEl.remove(),t(".bx-caption",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind("resize",Z))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery);
 
 
 
 
 
 
 
 
 
 
js/jquery.matchHeight-min.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jquery-match-height 0.7.2 by @liabru
3
+ * http://brm.io/jquery-match-height/
4
+ * License MIT
5
+ */
6
+ !function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,o=-1,n=function(t){return parseFloat(t)||0},a=function(e){var o=1,a=t(e),i=null,r=[];return a.each(function(){var e=t(this),a=e.offset().top-n(e.css("margin-top")),s=r.length>0?r[r.length-1]:null;null===s?r.push(e):Math.floor(Math.abs(i-a))<=o?r[r.length-1]=s.add(e):r.push(e),i=a}),r},i=function(e){var o={
7
+ byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof e?t.extend(o,e):("boolean"==typeof e?o.byRow=e:"remove"===e&&(o.remove=!0),o)},r=t.fn.matchHeight=function(e){var o=i(e);if(o.remove){var n=this;return this.css(o.property,""),t.each(r._groups,function(t,e){e.elements=e.elements.not(n)}),this}return this.length<=1&&!o.target?this:(r._groups.push({elements:this,options:o}),r._apply(this,o),this)};r.version="0.7.2",r._groups=[],r._throttle=80,r._maintainScroll=!1,r._beforeUpdate=null,
8
+ r._afterUpdate=null,r._rows=a,r._parse=n,r._parseOptions=i,r._apply=function(e,o){var s=i(o),h=t(e),l=[h],c=t(window).scrollTop(),p=t("html").outerHeight(!0),u=h.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),s.byRow&&!s.target&&(h.each(function(){var e=t(this),o=e.css("display");"inline-block"!==o&&"flex"!==o&&"inline-flex"!==o&&(o="block"),e.data("style-cache",e.attr("style")),e.css({display:o,"padding-top":"0",
9
+ "padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),l=a(h),h.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(l,function(e,o){var a=t(o),i=0;if(s.target)i=s.target.outerHeight(!1);else{if(s.byRow&&a.length<=1)return void a.css(s.property,"");a.each(function(){var e=t(this),o=e.attr("style"),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block");var a={
10
+ display:n};a[s.property]="",e.css(a),e.outerHeight(!1)>i&&(i=e.outerHeight(!1)),o?e.attr("style",o):e.css("display","")})}a.each(function(){var e=t(this),o=0;s.target&&e.is(s.target)||("border-box"!==e.css("box-sizing")&&(o+=n(e.css("border-top-width"))+n(e.css("border-bottom-width")),o+=n(e.css("padding-top"))+n(e.css("padding-bottom"))),e.css(s.property,i-o+"px"))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),r._maintainScroll&&t(window).scrollTop(c/p*t("html").outerHeight(!0)),
11
+ this},r._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var o=t(this),n=o.attr("data-mh")||o.attr("data-match-height");n in e?e[n]=e[n].add(o):e[n]=o}),t.each(e,function(){this.matchHeight(!0)})};var s=function(e){r._beforeUpdate&&r._beforeUpdate(e,r._groups),t.each(r._groups,function(){r._apply(this.elements,this.options)}),r._afterUpdate&&r._afterUpdate(e,r._groups)};r._update=function(n,a){if(a&&"resize"===a.type){var i=t(window).width();if(i===e)return;e=i;
12
+ }n?o===-1&&(o=setTimeout(function(){s(a),o=-1},r._throttle)):s(a)},t(r._applyDataApi);var h=t.fn.on?"on":"bind";t(window)[h]("load",function(t){r._update(!1,t)}),t(window)[h]("resize orientationchange",function(t){r._update(!0,t)})});
js/script.js CHANGED
@@ -1,4 +1,8 @@
1
  jQuery(document).ready(function($) {
 
 
 
 
2
  $('a, i').hover(function() {
3
  $(this).css({
4
  'color': $(this).data('onhovercolor'),
1
  jQuery(document).ready(function($) {
2
+
3
+ if(jQuery('.mason-item').length > 0){
4
+ jQuery('.mason-item').matchHeight({byRow: true});
5
+ }
6
  $('a, i').hover(function() {
7
  $(this).css({
8
  'color': $(this).data('onhovercolor'),
js/slider.js DELETED
@@ -1,10 +0,0 @@
1
- /*************************************
2
- ****************BxSlider**************
3
- *************************************/
4
- jQuery(document).ready(function($){
5
- $('.bxslider').bxSlider({
6
- auto: true,
7
- speed: ma_slider.speed,
8
- pause: ma_slider.pause,
9
- });
10
- });
 
 
 
 
 
 
 
 
 
 
js/themes/tooltipster-sideTip-borderless.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .tooltipster-sidetip.tooltipster-borderless .tooltipster-box{border:none;background:#1b1b1b;background:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-box{margin-top:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-box{margin-right:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-box{margin-left:8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-box{margin-bottom:8px}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow{height:8px;margin-left:-8px;width:16px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow{height:16px;margin-left:0;margin-top:-8px;width:8px}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-borderless .tooltipster-arrow-border{border:8px solid transparent}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#1b1b1b;border-bottom-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-left .tooltipster-arrow-border{border-left-color:#1b1b1b;border-left-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow-border{border-right-color:#1b1b1b;border-right-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-top .tooltipster-arrow-border{border-top-color:#1b1b1b;border-top-color:rgba(10,10,10,.9)}.tooltipster-sidetip.tooltipster-borderless.tooltipster-bottom .tooltipster-arrow-uncropped{top:-8px}.tooltipster-sidetip.tooltipster-borderless.tooltipster-right .tooltipster-arrow-uncropped{left:-8px}
js/themes/tooltipster-sideTip-light.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .tooltipster-sidetip.tooltipster-light .tooltipster-box{border-radius:3px;border:1px solid #ccc;background:#ededed}.tooltipster-sidetip.tooltipster-light .tooltipster-content{color:#666}.tooltipster-sidetip.tooltipster-light .tooltipster-arrow{height:9px;margin-left:-9px;width:18px}.tooltipster-sidetip.tooltipster-light.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow{height:18px;margin-left:0;margin-top:-9px;width:9px}.tooltipster-sidetip.tooltipster-light .tooltipster-arrow-background{border:9px solid transparent}.tooltipster-sidetip.tooltipster-light.tooltipster-bottom .tooltipster-arrow-background{border-bottom-color:#ededed;top:1px}.tooltipster-sidetip.tooltipster-light.tooltipster-left .tooltipster-arrow-background{border-left-color:#ededed;left:-1px}.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow-background{border-right-color:#ededed;left:1px}.tooltipster-sidetip.tooltipster-light.tooltipster-top .tooltipster-arrow-background{border-top-color:#ededed;top:-1px}.tooltipster-sidetip.tooltipster-light .tooltipster-arrow-border{border:9px solid transparent}.tooltipster-sidetip.tooltipster-light.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-left .tooltipster-arrow-border{border-left-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow-border{border-right-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-top .tooltipster-arrow-border{border-top-color:#ccc}.tooltipster-sidetip.tooltipster-light.tooltipster-bottom .tooltipster-arrow-uncropped{top:-9px}.tooltipster-sidetip.tooltipster-light.tooltipster-right .tooltipster-arrow-uncropped{left:-9px}
js/themes/tooltipster-sideTip-noir.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .tooltipster-sidetip.tooltipster-noir .tooltipster-box{border-radius:0;border:3px solid #000;background:#fff}.tooltipster-sidetip.tooltipster-noir .tooltipster-content{color:#000}.tooltipster-sidetip.tooltipster-noir .tooltipster-arrow{height:11px;margin-left:-11px;width:22px}.tooltipster-sidetip.tooltipster-noir.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-noir.tooltipster-right .tooltipster-arrow{height:22px;margin-left:0;margin-top:-11px;width:11px}.tooltipster-sidetip.tooltipster-noir .tooltipster-arrow-background{border:11px solid transparent}.tooltipster-sidetip.tooltipster-noir.tooltipster-bottom .tooltipster-arrow-background{border-bottom-color:#fff;top:4px}.tooltipster-sidetip.tooltipster-noir.tooltipster-left .tooltipster-arrow-background{border-left-color:#fff;left:-4px}.tooltipster-sidetip.tooltipster-noir.tooltipster-right .tooltipster-arrow-background{border-right-color:#fff;left:4px}.tooltipster-sidetip.tooltipster-noir.tooltipster-top .tooltipster-arrow-background{border-top-color:#fff;top:-4px}.tooltipster-sidetip.tooltipster-noir .tooltipster-arrow-border{border-width:11px}.tooltipster-sidetip.tooltipster-noir.tooltipster-bottom .tooltipster-arrow-uncropped{top:-11px}.tooltipster-sidetip.tooltipster-noir.tooltipster-right .tooltipster-arrow-uncropped{left:-11px}
js/themes/tooltipster-sideTip-punk.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .tooltipster-sidetip.tooltipster-punk .tooltipster-box{border-radius:5px;border:none;border-bottom:3px solid #f71169;background:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-top .tooltipster-box{margin-bottom:7px}.tooltipster-sidetip.tooltipster-punk .tooltipster-content{color:#fff;padding:8px 16px}.tooltipster-sidetip.tooltipster-punk .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-punk.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-left .tooltipster-arrow-border{border-left-color:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-right .tooltipster-arrow-border{border-right-color:#2a2a2a}.tooltipster-sidetip.tooltipster-punk.tooltipster-top .tooltipster-arrow-border{border-top-color:#f71169}
js/themes/tooltipster-sideTip-shadow.min.css ADDED
@@ -0,0 +1 @@
 
1
+ .tooltipster-sidetip.tooltipster-shadow .tooltipster-box{border:none;border-radius:5px;background:#fff;box-shadow:0 0 10px 6px rgba(0,0,0,.1)}.tooltipster-sidetip.tooltipster-shadow.tooltipster-bottom .tooltipster-box{margin-top:6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-left .tooltipster-box{margin-right:6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-box{margin-left:6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-top .tooltipster-box{margin-bottom:6px}.tooltipster-sidetip.tooltipster-shadow .tooltipster-content{color:#8d8d8d}.tooltipster-sidetip.tooltipster-shadow .tooltipster-arrow{height:6px;margin-left:-6px;width:12px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-left .tooltipster-arrow,.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-arrow{height:12px;margin-left:0;margin-top:-6px;width:6px}.tooltipster-sidetip.tooltipster-shadow .tooltipster-arrow-background{display:none}.tooltipster-sidetip.tooltipster-shadow .tooltipster-arrow-border{border:6px solid transparent}.tooltipster-sidetip.tooltipster-shadow.tooltipster-bottom .tooltipster-arrow-border{border-bottom-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-left .tooltipster-arrow-border{border-left-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-arrow-border{border-right-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-top .tooltipster-arrow-border{border-top-color:#fff}.tooltipster-sidetip.tooltipster-shadow.tooltipster-bottom .tooltipster-arrow-uncropped{top:-6px}.tooltipster-sidetip.tooltipster-shadow.tooltipster-right .tooltipster-arrow-uncropped{left:-6px}
js/tooltip.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+ // alert('works');
3
+
4
+
5
+ $('.tooltip').each(function(index, el) {
6
+ $(this).tooltipster({
7
+ theme: $(this).data('theme'),
8
+ animation: $(this).data('anim'),
9
+ animationDuration: $(this).data('speed'),
10
+ side: $(this).data('position'),
11
+ });
12
+ });
13
+ });
js/tooltipster.bundle.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ /*! tooltipster v4.2.5 */!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){function b(a){this.$container,this.constraints=null,this.__$tooltip,this.__init(a)}function c(b,c){var d=!0;return a.each(b,function(a,e){return void 0===c[a]||b[a]!==c[a]?(d=!1,!1):void 0}),d}function d(b){var c=b.attr("id"),d=c?h.window.document.getElementById(c):null;return d?d===b[0]:a.contains(h.window.document.body,b[0])}function e(){if(!g)return!1;var a=g.document.body||g.document.documentElement,b=a.style,c="transition",d=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof b[c])return!0;c=c.charAt(0).toUpperCase()+c.substr(1);for(var e=0;e<d.length;e++)if("string"==typeof b[d[e]+c])return!0;return!1}var f={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},g="undefined"!=typeof window?window:null,h={hasTouchCapability:!(!g||!("ontouchstart"in g||g.DocumentTouch&&g.document instanceof g.DocumentTouch||g.navigator.maxTouchPoints)),hasTransitions:e(),IE:!1,semVer:"4.2.5",window:g},i=function(){this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__instancesLatestArr=[],this.__plugins={},this._env=h};i.prototype={__bridge:function(b,c,d){if(!c[d]){var e=function(){};e.prototype=b;var g=new e;g.__init&&g.__init(c),a.each(b,function(a,b){0!=a.indexOf("__")&&(c[a]?f.debug&&console.log("The "+a+" method of the "+d+" plugin conflicts with another plugin or native methods"):(c[a]=function(){return g[a].apply(g,Array.prototype.slice.apply(arguments))},c[a].bridged=g))}),c[d]=g}return this},__setWindow:function(a){return h.window=a,this},_getRuler:function(a){return new b(a)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(b){var c=this;if("string"==typeof b){var d=b,e=null;return d.indexOf(".")>0?e=c.__plugins[d]:a.each(c.__plugins,function(a,b){return b.name.substring(b.name.length-d.length-1)=="."+d?(e=b,!1):void 0}),e}if(b.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return c.__plugins[b.name]=b,b.core&&c.__bridge(b.core,c,b.name),this},_trigger:function(){var a=Array.prototype.slice.apply(arguments);return"string"==typeof a[0]&&(a[0]={type:a[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,a),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,a),this},instances:function(b){var c=[],d=b||".tooltipstered";return a(d).each(function(){var b=a(this),d=b.data("tooltipster-ns");d&&a.each(d,function(a,d){c.push(b.data(d))})}),c},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(b){var c=b?b+" ":"";return a(c+".tooltipstered").toArray()},setDefaults:function(b){return a.extend(f,b),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.tooltipster=new i,a.Tooltipster=function(b,c){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=a({}),this.__$emitterPublic=a({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(b,c)},a.Tooltipster.prototype={__init:function(b,c){var d=this;if(d._$origin=a(b),d.__options=a.extend(!0,{},f,c),d.__optionsFormat(),!h.IE||h.IE>=d.__options.IEmin){var e=null;if(void 0===d._$origin.data("tooltipster-initialTitle")&&(e=d._$origin.attr("title"),void 0===e&&(e=null),d._$origin.data("tooltipster-initialTitle",e)),null!==d.__options.content)d.__contentSet(d.__options.content);else{var g,i=d._$origin.attr("data-tooltip-content");i&&(g=a(i)),g&&g[0]?d.__contentSet(g.first()):d.__contentSet(e)}d._$origin.removeAttr("title").addClass("tooltipstered"),d.__prepareOrigin(),d.__prepareGC(),a.each(d.__options.plugins,function(a,b){d._plug(b)}),h.hasTouchCapability&&a(h.window.document.body).on("touchmove."+d.__namespace+"-triggerOpen",function(a){d._touchRecordEvent(a)}),d._on("created",function(){d.__prepareTooltip()})._on("repositioned",function(a){d.__lastPosition=a.position})}else d.__options.disabled=!0},__contentInsert:function(){var a=this,b=a._$tooltip.find(".tooltipster-content"),c=a.__Content,d=function(a){c=a};return a._trigger({type:"format",content:a.__Content,format:d}),a.__options.functionFormat&&(c=a.__options.functionFormat.call(a,a,{origin:a._$origin[0]},a.__Content)),"string"!=typeof c||a.__options.contentAsHTML?b.empty().append(c):b.text(c),a},__contentSet:function(b){return b instanceof a&&this.__options.contentCloning&&(b=b.clone(!0)),this.__Content=b,this._trigger({type:"updated",content:b}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var b=this,c=b._$origin,d=b._$origin.is("area");if(d){var e=b._$origin.parent().attr("name");c=a('img[usemap="#'+e+'"]')}var f=c[0].getBoundingClientRect(),g=a(h.window.document),i=a(h.window),j=c,k={available:{document:null,window:null},document:{size:{height:g.height(),width:g.width()}},window:{scroll:{left:h.window.scrollX||h.window.document.documentElement.scrollLeft,top:h.window.scrollY||h.window.document.documentElement.scrollTop},size:{height:i.height(),width:i.width()}},origin:{fixedLineage:!1,offset:{},size:{height:f.bottom-f.top,width:f.right-f.left},usemapImage:d?c[0]:null,windowOffset:{bottom:f.bottom,left:f.left,right:f.right,top:f.top}}};if(d){var l=b._$origin.attr("shape"),m=b._$origin.attr("coords");if(m&&(m=m.split(","),a.map(m,function(a,b){m[b]=parseInt(a)})),"default"!=l)switch(l){case"circle":var n=m[0],o=m[1],p=m[2],q=o-p,r=n-p;k.origin.size.height=2*p,k.origin.size.width=k.origin.size.height,k.origin.windowOffset.left+=r,k.origin.windowOffset.top+=q;break;case"rect":var s=m[0],t=m[1],u=m[2],v=m[3];k.origin.size.height=v-t,k.origin.size.width=u-s,k.origin.windowOffset.left+=s,k.origin.windowOffset.top+=t;break;case"poly":for(var w=0,x=0,y=0,z=0,A="even",B=0;B<m.length;B++){var C=m[B];"even"==A?(C>y&&(y=C,0===B&&(w=y)),w>C&&(w=C),A="odd"):(C>z&&(z=C,1==B&&(x=z)),x>C&&(x=C),A="even")}k.origin.size.height=z-x,k.origin.size.width=y-w,k.origin.windowOffset.left+=w,k.origin.windowOffset.top+=x}}var D=function(a){k.origin.size.height=a.height,k.origin.windowOffset.left=a.left,k.origin.windowOffset.top=a.top,k.origin.size.width=a.width};for(b._trigger({type:"geometry",edit:D,geometry:{height:k.origin.size.height,left:k.origin.windowOffset.left,top:k.origin.windowOffset.top,width:k.origin.size.width}}),k.origin.windowOffset.right=k.origin.windowOffset.left+k.origin.size.width,k.origin.windowOffset.bottom=k.origin.windowOffset.top+k.origin.size.height,k.origin.offset.left=k.origin.windowOffset.left+k.window.scroll.left,k.origin.offset.top=k.origin.windowOffset.top+k.window.scroll.top,k.origin.offset.bottom=k.origin.offset.top+k.origin.size.height,k.origin.offset.right=k.origin.offset.left+k.origin.size.width,k.available.document={bottom:{height:k.document.size.height-k.origin.offset.bottom,width:k.document.size.width},left:{height:k.document.size.height,width:k.origin.offset.left},right:{height:k.document.size.height,width:k.document.size.width-k.origin.offset.right},top:{height:k.origin.offset.top,width:k.document.size.width}},k.available.window={bottom:{height:Math.max(k.window.size.height-Math.max(k.origin.windowOffset.bottom,0),0),width:k.window.size.width},left:{height:k.window.size.height,width:Math.max(k.origin.windowOffset.left,0)},right:{height:k.window.size.height,width:Math.max(k.window.size.width-Math.max(k.origin.windowOffset.right,0),0)},top:{height:Math.max(k.origin.windowOffset.top,0),width:k.window.size.width}};"html"!=j[0].tagName.toLowerCase();){if("fixed"==j.css("position")){k.origin.fixedLineage=!0;break}j=j.parent()}return k},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=a(h.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=a(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var b=this;return b.__options.selfDestruction?b.__garbageCollector=setInterval(function(){var c=(new Date).getTime();b.__touchEvents=a.grep(b.__touchEvents,function(a,b){return c-a.time>6e4}),d(b._$origin)||b.close(function(){b.destroy()})},2e4):clearInterval(b.__garbageCollector),b},__prepareOrigin:function(){var a=this;if(a._$origin.off("."+a.__namespace+"-triggerOpen"),h.hasTouchCapability&&a._$origin.on("touchstart."+a.__namespace+"-triggerOpen touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen",function(b){a._touchRecordEvent(b)}),a.__options.triggerOpen.click||a.__options.triggerOpen.tap&&h.hasTouchCapability){var b="";a.__options.triggerOpen.click&&(b+="click."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.tap&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&a._open(b)})}if(a.__options.triggerOpen.mouseenter||a.__options.triggerOpen.touchstart&&h.hasTouchCapability){var b="";a.__options.triggerOpen.mouseenter&&(b+="mouseenter."+a.__namespace+"-triggerOpen "),a.__options.triggerOpen.touchstart&&h.hasTouchCapability&&(b+="touchstart."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){!a._touchIsTouchEvent(b)&&a._touchIsEmulatedEvent(b)||(a.__pointerIsOverOrigin=!0,a._openShortly(b))})}if(a.__options.triggerClose.mouseleave||a.__options.triggerClose.touchleave&&h.hasTouchCapability){var b="";a.__options.triggerClose.mouseleave&&(b+="mouseleave."+a.__namespace+"-triggerOpen "),a.__options.triggerClose.touchleave&&h.hasTouchCapability&&(b+="touchend."+a.__namespace+"-triggerOpen touchcancel."+a.__namespace+"-triggerOpen"),a._$origin.on(b,function(b){a._touchIsMeaningfulEvent(b)&&(a.__pointerIsOverOrigin=!1)})}return a},__prepareTooltip:function(){var b=this,c=b.__options.interactive?"auto":"";return b._$tooltip.attr("id",b.__namespace).css({"pointer-events":c,zIndex:b.__options.zIndex}),a.each(b.__previousThemes,function(a,c){b._$tooltip.removeClass(c)}),a.each(b.__options.theme,function(a,c){b._$tooltip.addClass(c)}),b.__previousThemes=a.merge([],b.__options.theme),b},__scrollHandler:function(b){var c=this;if(c.__options.triggerClose.scroll)c._close(b);else if(d(c._$origin)&&d(c._$tooltip)){var e=null;if(b.target===h.window.document)c.__Geometry.origin.fixedLineage||c.__options.repositionOnScroll&&c.reposition(b);else{e=c.__geometry();var f=!1;if("fixed"!=c._$origin.css("position")&&c.__$originParents.each(function(b,c){var d=a(c),g=d.css("overflow-x"),h=d.css("overflow-y");if("visible"!=g||"visible"!=h){var i=c.getBoundingClientRect();if("visible"!=g&&(e.origin.windowOffset.left<i.left||e.origin.windowOffset.right>i.right))return f=!0,!1;if("visible"!=h&&(e.origin.windowOffset.top<i.top||e.origin.windowOffset.bottom>i.bottom))return f=!0,!1}return"fixed"==d.css("position")?!1:void 0}),f)c._$tooltip.css("visibility","hidden");else if(c._$tooltip.css("visibility","visible"),c.__options.repositionOnScroll)c.reposition(b);else{var g=e.origin.offset.left-c.__Geometry.origin.offset.left,i=e.origin.offset.top-c.__Geometry.origin.offset.top;c._$tooltip.css({left:c.__lastPosition.coord.left+g,top:c.__lastPosition.coord.top+i})}}c._trigger({type:"scroll",event:b,geo:e})}return c},__stateSet:function(a){return this.__state=a,this._trigger({type:"state",state:a}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,a.each(this.__timeouts.close,function(a,b){clearTimeout(b)}),this.__timeouts.close=[],this},__trackerStart:function(){var a=this,b=a._$tooltip.find(".tooltipster-content");return a.__options.trackTooltip&&(a.__contentBcr=b[0].getBoundingClientRect()),a.__tracker=setInterval(function(){if(d(a._$origin)&&d(a._$tooltip)){if(a.__options.trackOrigin){var e=a.__geometry(),f=!1;c(e.origin.size,a.__Geometry.origin.size)&&(a.__Geometry.origin.fixedLineage?c(e.origin.windowOffset,a.__Geometry.origin.windowOffset)&&(f=!0):c(e.origin.offset,a.__Geometry.origin.offset)&&(f=!0)),f||(a.__options.triggerClose.mouseleave?a._close():a.reposition())}if(a.__options.trackTooltip){var g=b[0].getBoundingClientRect();g.height===a.__contentBcr.height&&g.width===a.__contentBcr.width||(a.reposition(),a.__contentBcr=g)}}else a._close()},a.__options.trackerInterval),a},_close:function(b,c,d){var e=this,f=!0;if(e._trigger({type:"close",event:b,stop:function(){f=!1}}),f||d){c&&e.__callbacks.close.push(c),e.__callbacks.open=[],e.__timeoutsClear();var g=function(){a.each(e.__callbacks.close,function(a,c){c.call(e,e,{event:b,origin:e._$origin[0]})}),e.__callbacks.close=[]};if("closed"!=e.__state){var i=!0,j=new Date,k=j.getTime(),l=k+e.__options.animationDuration[1];if("disappearing"==e.__state&&l>e.__closingTime&&e.__options.animationDuration[1]>0&&(i=!1),i){e.__closingTime=l,"disappearing"!=e.__state&&e.__stateSet("disappearing");var m=function(){clearInterval(e.__tracker),e._trigger({type:"closing",event:b}),e._$tooltip.off("."+e.__namespace+"-triggerClose").removeClass("tooltipster-dying"),a(h.window).off("."+e.__namespace+"-triggerClose"),e.__$originParents.each(function(b,c){a(c).off("scroll."+e.__namespace+"-triggerClose")}),e.__$originParents=null,a(h.window.document.body).off("."+e.__namespace+"-triggerClose"),e._$origin.off("."+e.__namespace+"-triggerClose"),e._off("dismissable"),e.__stateSet("closed"),e._trigger({type:"after",event:b}),e.__options.functionAfter&&e.__options.functionAfter.call(e,e,{event:b,origin:e._$origin[0]}),g()};h.hasTransitions?(e._$tooltip.css({"-moz-animation-duration":e.__options.animationDuration[1]+"ms","-ms-animation-duration":e.__options.animationDuration[1]+"ms","-o-animation-duration":e.__options.animationDuration[1]+"ms","-webkit-animation-duration":e.__options.animationDuration[1]+"ms","animation-duration":e.__options.animationDuration[1]+"ms","transition-duration":e.__options.animationDuration[1]+"ms"}),e._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),e.__options.animationDuration[1]>0&&e._$tooltip.delay(e.__options.animationDuration[1]),e._$tooltip.queue(m)):e._$tooltip.stop().fadeOut(e.__options.animationDuration[1],m)}}else g()}return e},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(b,c){var e=this;if(!e.__destroying&&d(e._$origin)&&e.__enabled){var f=!0;if("closed"==e.__state&&(e._trigger({type:"before",event:b,stop:function(){f=!1}}),f&&e.__options.functionBefore&&(f=e.__options.functionBefore.call(e,e,{event:b,origin:e._$origin[0]}))),f!==!1&&null!==e.__Content){c&&e.__callbacks.open.push(c),e.__callbacks.close=[],e.__timeoutsClear();var g,i=function(){"stable"!=e.__state&&e.__stateSet("stable"),a.each(e.__callbacks.open,function(a,b){b.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}),e.__callbacks.open=[]};if("closed"!==e.__state)g=0,"disappearing"===e.__state?(e.__stateSet("appearing"),h.hasTransitions?(e._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i)):e._$tooltip.stop().fadeIn(i)):"stable"==e.__state&&i();else{if(e.__stateSet("appearing"),g=e.__options.animationDuration[0],e.__contentInsert(),e.reposition(b,!0),h.hasTransitions?(e._$tooltip.addClass("tooltipster-"+e.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":e.__options.animationDuration[0]+"ms","-ms-animation-duration":e.__options.animationDuration[0]+"ms","-o-animation-duration":e.__options.animationDuration[0]+"ms","-webkit-animation-duration":e.__options.animationDuration[0]+"ms","animation-duration":e.__options.animationDuration[0]+"ms","transition-duration":e.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=e.__state&&(e._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),e.__options.animationDuration[0]>0&&e._$tooltip.delay(e.__options.animationDuration[0]),e._$tooltip.queue(i))},0)):e._$tooltip.css("display","none").fadeIn(e.__options.animationDuration[0],i),e.__trackerStart(),a(h.window).on("resize."+e.__namespace+"-triggerClose",function(b){var c=a(document.activeElement);(c.is("input")||c.is("textarea"))&&a.contains(e._$tooltip[0],c[0])||e.reposition(b)}).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)}),e.__$originParents=e._$origin.parents(),e.__$originParents.each(function(b,c){a(c).on("scroll."+e.__namespace+"-triggerClose",function(a){e.__scrollHandler(a)})}),e.__options.triggerClose.mouseleave||e.__options.triggerClose.touchleave&&h.hasTouchCapability){e._on("dismissable",function(a){a.dismissable?a.delay?(m=setTimeout(function(){e._close(a.event)},a.delay),e.__timeouts.close.push(m)):e._close(a):clearTimeout(m)});var j=e._$origin,k="",l="",m=null;e.__options.interactive&&(j=j.add(e._$tooltip)),e.__options.triggerClose.mouseleave&&(k+="mouseenter."+e.__namespace+"-triggerClose ",l+="mouseleave."+e.__namespace+"-triggerClose "),e.__options.triggerClose.touchleave&&h.hasTouchCapability&&(k+="touchstart."+e.__namespace+"-triggerClose",l+="touchend."+e.__namespace+"-triggerClose touchcancel."+e.__namespace+"-triggerClose"),j.on(l,function(a){if(e._touchIsTouchEvent(a)||!e._touchIsEmulatedEvent(a)){var b="mouseleave"==a.type?e.__options.delay:e.__options.delayTouch;e._trigger({delay:b[1],dismissable:!0,event:a,type:"dismissable"})}}).on(k,function(a){!e._touchIsTouchEvent(a)&&e._touchIsEmulatedEvent(a)||e._trigger({dismissable:!1,event:a,type:"dismissable"})})}e.__options.triggerClose.originClick&&e._$origin.on("click."+e.__namespace+"-triggerClose",function(a){e._touchIsTouchEvent(a)||e._touchIsEmulatedEvent(a)||e._close(a)}),(e.__options.triggerClose.click||e.__options.triggerClose.tap&&h.hasTouchCapability)&&setTimeout(function(){if("closed"!=e.__state){var b="",c=a(h.window.document.body);e.__options.triggerClose.click&&(b+="click."+e.__namespace+"-triggerClose "),e.__options.triggerClose.tap&&h.hasTouchCapability&&(b+="touchend."+e.__namespace+"-triggerClose"),c.on(b,function(b){e._touchIsMeaningfulEvent(b)&&(e._touchRecordEvent(b),e.__options.interactive&&a.contains(e._$tooltip[0],b.target)||e._close(b))}),e.__options.triggerClose.tap&&h.hasTouchCapability&&c.on("touchstart."+e.__namespace+"-triggerClose",function(a){e._touchRecordEvent(a)})}},0),e._trigger("ready"),e.__options.functionReady&&e.__options.functionReady.call(e,e,{origin:e._$origin[0],tooltip:e._$tooltip[0]})}if(e.__options.timer>0){var m=setTimeout(function(){e._close()},e.__options.timer+g);e.__timeouts.close.push(m)}}}return e},_openShortly:function(a){var b=this,c=!0;if("stable"!=b.__state&&"appearing"!=b.__state&&!b.__timeouts.open&&(b._trigger({type:"start",event:a,stop:function(){c=!1}}),c)){var d=0==a.type.indexOf("touch")?b.__options.delayTouch:b.__options.delay;d[0]?b.__timeouts.open=setTimeout(function(){b.__timeouts.open=null,b.__pointerIsOverOrigin&&b._touchIsMeaningfulEvent(a)?(b._trigger("startend"),b._open(a)):b._trigger("startcancel")},d[0]):(b._trigger("startend"),b._open(a))}return b},_optionsExtract:function(b,c){var d=this,e=a.extend(!0,{},c),f=d.__options[b];return f||(f={},a.each(c,function(a,b){var c=d.__options[a];void 0!==c&&(f[a]=c)})),a.each(e,function(b,c){void 0!==f[b]&&("object"!=typeof c||c instanceof Array||null==c||"object"!=typeof f[b]||f[b]instanceof Array||null==f[b]?e[b]=f[b]:a.extend(e[b],f[b]))}),e},_plug:function(b){var c=a.tooltipster._plugin(b);if(!c)throw new Error('The "'+b+'" plugin is not defined');return c.instance&&a.tooltipster.__bridge(c.instance,this,c.name),this},_touchIsEmulatedEvent:function(a){for(var b=!1,c=(new Date).getTime(),d=this.__touchEvents.length-1;d>=0;d--){var e=this.__touchEvents[d];if(!(c-e.time<500))break;e.target===a.target&&(b=!0)}return b},_touchIsMeaningfulEvent:function(a){return this._touchIsTouchEvent(a)&&!this._touchSwiped(a.target)||!this._touchIsTouchEvent(a)&&!this._touchIsEmulatedEvent(a)},_touchIsTouchEvent:function(a){return 0==a.type.indexOf("touch")},_touchRecordEvent:function(a){return this._touchIsTouchEvent(a)&&(a.time=(new Date).getTime(),this.__touchEvents.push(a)),this},_touchSwiped:function(a){for(var b=!1,c=this.__touchEvents.length-1;c>=0;c--){var d=this.__touchEvents[c];if("touchmove"==d.type){b=!0;break}if("touchstart"==d.type&&a===d.target)break}return b},_trigger:function(){var b=Array.prototype.slice.apply(arguments);return"string"==typeof b[0]&&(b[0]={type:b[0]}),b[0].instance=this,b[0].origin=this._$origin?this._$origin[0]:null,b[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,b),a.tooltipster._trigger.apply(a.tooltipster,b),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,b),this},_unplug:function(b){var c=this;if(c[b]){var d=a.tooltipster._plugin(b);d.instance&&a.each(d.instance,function(a,d){c[a]&&c[a].bridged===c[b]&&delete c[a]}),c[b].__destroy&&c[b].__destroy(),delete c[b]}return c},close:function(a){return this.__destroyed?this.__destroyError():this._close(null,a),this},content:function(a){var b=this;if(void 0===a)return b.__Content;if(b.__destroyed)b.__destroyError();else if(b.__contentSet(a),null!==b.__Content){if("closed"!==b.__state&&(b.__contentInsert(),b.reposition(),b.__options.updateAnimation))if(h.hasTransitions){var c=b.__options.updateAnimation;b._$tooltip.addClass("tooltipster-update-"+c),setTimeout(function(){"closed"!=b.__state&&b._$tooltip.removeClass("tooltipster-update-"+c)},1e3)}else b._$tooltip.fadeTo(200,.5,function(){"closed"!=b.__state&&b._$tooltip.fadeTo(200,1)})}else b._close();return b},destroy:function(){var b=this;if(b.__destroyed)b.__destroyError();else{"closed"!=b.__state?b.option("animationDuration",0)._close(null,null,!0):b.__timeoutsClear(),b._trigger("destroy"),b.__destroyed=!0,b._$origin.removeData(b.__namespace).off("."+b.__namespace+"-triggerOpen"),a(h.window.document.body).off("."+b.__namespace+"-triggerOpen");var c=b._$origin.data("tooltipster-ns");if(c)if(1===c.length){var d=null;"previous"==b.__options.restoration?d=b._$origin.data("tooltipster-initialTitle"):"current"==b.__options.restoration&&(d="string"==typeof b.__Content?b.__Content:a("<div></div>").append(b.__Content).html()),d&&b._$origin.attr("title",d),b._$origin.removeClass("tooltipstered"),b._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else c=a.grep(c,function(a,c){return a!==b.__namespace}),b._$origin.data("tooltipster-ns",c);b._trigger("destroyed"),b._off(),b.off(),b.__Content=null,b.__$emitterPrivate=null,b.__$emitterPublic=null,b.__options.parent=null,b._$origin=null,b._$tooltip=null,a.tooltipster.__instancesLatestArr=a.grep(a.tooltipster.__instancesLatestArr,function(a,c){return b!==a}),clearInterval(b.__garbageCollector)}return b},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){return this.__destroyed?void this.__destroyError():this._$origin[0]},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(a){return this.close(a)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(a){return this.__destroyed?this.__destroyError():this._open(null,a),this},option:function(b,c){return void 0===c?this.__options[b]:(this.__destroyed?this.__destroyError():(this.__options[b]=c,this.__optionsFormat(),a.inArray(b,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===b&&this.__prepareGC()),this)},reposition:function(a,b){var c=this;return c.__destroyed?c.__destroyError():"closed"!=c.__state&&d(c._$origin)&&(b||d(c._$tooltip))&&(b||c._$tooltip.detach(),c.__Geometry=c.__geometry(),c._trigger({type:"reposition",event:a,helper:{geo:c.__Geometry}})),c},show:function(a){return this.open(a)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},a.fn.tooltipster=function(){var b=Array.prototype.slice.apply(arguments),c="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof b[0]){var d="#*$~&";return this.each(function(){var e=a(this).data("tooltipster-ns"),f=e?a(this).data(e[0]):null;if(!f)throw new Error("You called Tooltipster's \""+b[0]+'" method on an uninitialized element');if("function"!=typeof f[b[0]])throw new Error('Unknown method "'+b[0]+'"');this.length>1&&"content"==b[0]&&(b[1]instanceof a||"object"==typeof b[1]&&null!=b[1]&&b[1].tagName)&&!f.__options.contentCloning&&f.__options.debug&&console.log(c);var g=f[b[0]](b[1],b[2]);return g!==f||"instance"===b[0]?(d=g,!1):void 0}),"#*$~&"!==d?d:this}a.tooltipster.__instancesLatestArr=[];var e=b[0]&&void 0!==b[0].multiple,g=e&&b[0].multiple||!e&&f.multiple,h=b[0]&&void 0!==b[0].content,i=h&&b[0].content||!h&&f.content,j=b[0]&&void 0!==b[0].contentCloning,k=j&&b[0].contentCloning||!j&&f.contentCloning,l=b[0]&&void 0!==b[0].debug,m=l&&b[0].debug||!l&&f.debug;return this.length>1&&(i instanceof a||"object"==typeof i&&null!=i&&i.tagName)&&!k&&m&&console.log(c),this.each(function(){var c=!1,d=a(this),e=d.data("tooltipster-ns"),f=null;e?g?c=!0:m&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):c=!0,c&&(f=new a.Tooltipster(this,b[0]),e||(e=[]),e.push(f.__namespace),d.data("tooltipster-ns",e),d.data(f.__namespace,f),f.__options.functionInit&&f.__options.functionInit.call(f,f,{origin:this}),f._trigger("init")),a.tooltipster.__instancesLatestArr.push(f)}),this},b.prototype={__init:function(b){this.__$tooltip=b,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=a('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(h.window.document.body)},__forceRedraw:function(){var a=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(a)},constrain:function(a,b){return this.constraints={width:a,height:b},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:a}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var a=this.__$tooltip[0].getBoundingClientRect(),b={size:{height:a.height||a.bottom-a.top,width:a.width||a.right-a.left}};if(this.constraints){var c=this.__$tooltip.find(".tooltipster-content"),d=this.__$tooltip.outerHeight(),e=c[0].getBoundingClientRect(),f={height:d<=this.constraints.height,width:a.width<=this.constraints.width&&e.width>=c[0].scrollWidth-1};b.fits=f.height&&f.width}return h.IE&&h.IE<=11&&b.size.width!==h.window.document.documentElement.clientWidth&&(b.size.width=Math.ceil(b.size.width)+1),b}};var j=navigator.userAgent.toLowerCase();-1!=j.indexOf("msie")?h.IE=parseInt(j.split("msie")[1]):-1!==j.toLowerCase().indexOf("trident")&&-1!==j.indexOf(" rv:11")?h.IE=11:-1!=j.toLowerCase().indexOf("edge/")&&(h.IE=parseInt(j.toLowerCase().split("edge/")[1]));var k="tooltipster.sideTip";return a.tooltipster._plugin({name:k,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(a){var b=this;b.__instance=a,b.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),b.__previousState="closed",b.__options,b.__optionsFormat(),b.__instance._on("state."+b.__namespace,function(a){"closed"==a.state?b.__close():"appearing"==a.state&&"closed"==b.__previousState&&b.__create(),b.__previousState=a.state}),b.__instance._on("options."+b.__namespace,function(){b.__optionsFormat()}),b.__instance._on("reposition."+b.__namespace,function(a){b.__reposition(a.event,a.helper)})},__close:function(){this.__instance.content()instanceof a&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var b=a('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||b.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&b.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&b.css("max-width",this.__options.maxWidth+"px"),
2
+ this.__instance._$tooltip=b,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var b=this;if(b.__options=b.__instance._optionsExtract(k,b.__defaults()),b.__options.position&&(b.__options.side=b.__options.position),"object"!=typeof b.__options.distance&&(b.__options.distance=[b.__options.distance]),b.__options.distance.length<4&&(void 0===b.__options.distance[1]&&(b.__options.distance[1]=b.__options.distance[0]),void 0===b.__options.distance[2]&&(b.__options.distance[2]=b.__options.distance[0]),void 0===b.__options.distance[3]&&(b.__options.distance[3]=b.__options.distance[1]),b.__options.distance={top:b.__options.distance[0],right:b.__options.distance[1],bottom:b.__options.distance[2],left:b.__options.distance[3]}),"string"==typeof b.__options.side){var c={top:"bottom",right:"left",bottom:"top",left:"right"};b.__options.side=[b.__options.side,c[b.__options.side]],"left"==b.__options.side[0]||"right"==b.__options.side[0]?b.__options.side.push("top","bottom"):b.__options.side.push("right","left")}6===a.tooltipster._env.IE&&b.__options.arrow!==!0&&(b.__options.arrow=!1)},__reposition:function(b,c){var d,e=this,f=e.__targetFind(c),g=[];e.__instance._$tooltip.detach();var h=e.__instance._$tooltip.clone(),i=a.tooltipster._getRuler(h),j=!1,k=e.__instance.option("animation");switch(k&&h.removeClass("tooltipster-"+k),a.each(["window","document"],function(d,k){var l=null;if(e.__instance._trigger({container:k,helper:c,satisfied:j,takeTest:function(a){l=a},results:g,type:"positionTest"}),1==l||0!=l&&0==j&&("window"!=k||e.__options.viewportAware))for(var d=0;d<e.__options.side.length;d++){var m={horizontal:0,vertical:0},n=e.__options.side[d];"top"==n||"bottom"==n?m.vertical=e.__options.distance[n]:m.horizontal=e.__options.distance[n],e.__sideChange(h,n),a.each(["natural","constrained"],function(a,d){if(l=null,e.__instance._trigger({container:k,event:b,helper:c,mode:d,results:g,satisfied:j,side:n,takeTest:function(a){l=a},type:"positionTest"}),1==l||0!=l&&0==j){var h={container:k,distance:m,fits:null,mode:d,outerSize:null,side:n,size:null,target:f[n],whole:null},o="natural"==d?i.free():i.constrain(c.geo.available[k][n].width-m.horizontal,c.geo.available[k][n].height-m.vertical),p=o.measure();if(h.size=p.size,h.outerSize={height:p.size.height+m.vertical,width:p.size.width+m.horizontal},"natural"==d?c.geo.available[k][n].width>=h.outerSize.width&&c.geo.available[k][n].height>=h.outerSize.height?h.fits=!0:h.fits=!1:h.fits=p.fits,"window"==k&&(h.fits?"top"==n||"bottom"==n?h.whole=c.geo.origin.windowOffset.right>=e.__options.minIntersection&&c.geo.window.size.width-c.geo.origin.windowOffset.left>=e.__options.minIntersection:h.whole=c.geo.origin.windowOffset.bottom>=e.__options.minIntersection&&c.geo.window.size.height-c.geo.origin.windowOffset.top>=e.__options.minIntersection:h.whole=!1),g.push(h),h.whole)j=!0;else if("natural"==h.mode&&(h.fits||h.size.width<=c.geo.available[k][n].width))return!1}})}}),e.__instance._trigger({edit:function(a){g=a},event:b,helper:c,results:g,type:"positionTested"}),g.sort(function(a,b){if(a.whole&&!b.whole)return-1;if(!a.whole&&b.whole)return 1;if(a.whole&&b.whole){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}if(a.fits&&!b.fits)return-1;if(!a.fits&&b.fits)return 1;if(a.fits&&b.fits){var c=e.__options.side.indexOf(a.side),d=e.__options.side.indexOf(b.side);return d>c?-1:c>d?1:"natural"==a.mode?-1:1}return"document"==a.container&&"bottom"==a.side&&"natural"==a.mode?-1:1}),d=g[0],d.coord={},d.side){case"left":case"right":d.coord.top=Math.floor(d.target-d.size.height/2);break;case"bottom":case"top":d.coord.left=Math.floor(d.target-d.size.width/2)}switch(d.side){case"left":d.coord.left=c.geo.origin.windowOffset.left-d.outerSize.width;break;case"right":d.coord.left=c.geo.origin.windowOffset.right+d.distance.horizontal;break;case"top":d.coord.top=c.geo.origin.windowOffset.top-d.outerSize.height;break;case"bottom":d.coord.top=c.geo.origin.windowOffset.bottom+d.distance.vertical}"window"==d.container?"top"==d.side||"bottom"==d.side?d.coord.left<0?c.geo.origin.windowOffset.right-this.__options.minIntersection>=0?d.coord.left=0:d.coord.left=c.geo.origin.windowOffset.right-this.__options.minIntersection-1:d.coord.left>c.geo.window.size.width-d.size.width&&(c.geo.origin.windowOffset.left+this.__options.minIntersection<=c.geo.window.size.width?d.coord.left=c.geo.window.size.width-d.size.width:d.coord.left=c.geo.origin.windowOffset.left+this.__options.minIntersection+1-d.size.width):d.coord.top<0?c.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?d.coord.top=0:d.coord.top=c.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:d.coord.top>c.geo.window.size.height-d.size.height&&(c.geo.origin.windowOffset.top+this.__options.minIntersection<=c.geo.window.size.height?d.coord.top=c.geo.window.size.height-d.size.height:d.coord.top=c.geo.origin.windowOffset.top+this.__options.minIntersection+1-d.size.height):(d.coord.left>c.geo.window.size.width-d.size.width&&(d.coord.left=c.geo.window.size.width-d.size.width),d.coord.left<0&&(d.coord.left=0)),e.__sideChange(h,d.side),c.tooltipClone=h[0],c.tooltipParent=e.__instance.option("parent").parent[0],c.mode=d.mode,c.whole=d.whole,c.origin=e.__instance._$origin[0],c.tooltip=e.__instance._$tooltip[0],delete d.container,delete d.fits,delete d.mode,delete d.outerSize,delete d.whole,d.distance=d.distance.horizontal||d.distance.vertical;var l=a.extend(!0,{},d);if(e.__instance._trigger({edit:function(a){d=a},event:b,helper:c,position:l,type:"position"}),e.__options.functionPosition){var m=e.__options.functionPosition.call(e,e.__instance,c,l);m&&(d=m)}i.destroy();var n,o;"top"==d.side||"bottom"==d.side?(n={prop:"left",val:d.target-d.coord.left},o=d.size.width-this.__options.minIntersection):(n={prop:"top",val:d.target-d.coord.top},o=d.size.height-this.__options.minIntersection),n.val<this.__options.minIntersection?n.val=this.__options.minIntersection:n.val>o&&(n.val=o);var p;p=c.geo.origin.fixedLineage?c.geo.origin.windowOffset:{left:c.geo.origin.windowOffset.left+c.geo.window.scroll.left,top:c.geo.origin.windowOffset.top+c.geo.window.scroll.top},d.coord={left:p.left+(d.coord.left-c.geo.origin.windowOffset.left),top:p.top+(d.coord.top-c.geo.origin.windowOffset.top)},e.__sideChange(e.__instance._$tooltip,d.side),c.geo.origin.fixedLineage?e.__instance._$tooltip.css("position","fixed"):e.__instance._$tooltip.css("position",""),e.__instance._$tooltip.css({left:d.coord.left,top:d.coord.top,height:d.size.height,width:d.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(n.prop,n.val),e.__instance._$tooltip.appendTo(e.__instance.option("parent")),e.__instance._trigger({type:"repositioned",event:b,position:d})},__sideChange:function(a,b){a.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+b)},__targetFind:function(a){var b={},c=this.__instance._$origin[0].getClientRects();if(c.length>1){var d=this.__instance._$origin.css("opacity");1==d&&(this.__instance._$origin.css("opacity",.99),c=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1))}if(c.length<2)b.top=Math.floor(a.geo.origin.windowOffset.left+a.geo.origin.size.width/2),b.bottom=b.top,b.left=Math.floor(a.geo.origin.windowOffset.top+a.geo.origin.size.height/2),b.right=b.left;else{var e=c[0];b.top=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil(c.length/2)-1]:c[0],b.right=Math.floor(e.top+(e.bottom-e.top)/2),e=c[c.length-1],b.bottom=Math.floor(e.left+(e.right-e.left)/2),e=c.length>2?c[Math.ceil((c.length+1)/2)-1]:c[c.length-1],b.left=Math.floor(e.top+(e.bottom-e.top)/2)}return b}}}),a});
main.php CHANGED
@@ -52,7 +52,6 @@ class VC_MEGA
52
  include 'render/accordion_father.php';
53
  include 'render/accordion_son.php';
54
  include 'render/info_circle.php';
55
- include 'render/rate_us.php';
56
  }
57
 
58
 
@@ -64,6 +63,14 @@ class VC_MEGA
64
  }
65
  }
66
 
 
 
 
 
 
 
 
 
67
  }
68
 
69
  $N_object = new VC_MEGA;
52
  include 'render/accordion_father.php';
53
  include 'render/accordion_son.php';
54
  include 'render/info_circle.php';
 
55
  }
56
 
57
 
63
  }
64
  }
65
 
66
+ function showVcVersionNotice(){
67
+ ?>
68
+ <div class="notice notice-warning is-dismissible">
69
+ <p>Please install <a href="https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431?ref=nasir179125">Visual Composer</a> to use Mega Addons.</p>
70
+ </div>
71
+ <?php
72
+ }
73
+
74
  }
75
 
76
  $N_object = new VC_MEGA;
readme.txt CHANGED
@@ -1,58 +1,58 @@
1
  === Mega Addons For Visual Composer ===
2
  Contributors: nasir179125
3
- Donate link: https://www.2checkout.com/checkout/purchase?sid=202485641&quantity=1&product_id=1
4
- Tags: mega addons for visual composer, visual composer, all in one plugin, visual composer extension, multi addons for visual composer, imag hover effects,
5
  Requires at least: 3.5
6
- Tested up to: 4.8
7
- Stable tag: 1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- 28 Addons All in one, Beautifully designed unique elements, Includes Premium quality addons For Visual Composer.
12
 
13
  == Description ==
14
 
15
- Mega Addons For Visual Composer ~ The biggest Addon bundle for Visual Composer With 28 addons. This Addon Bundle provide you everything for your Visual Composer Page Builder.
16
- <br>
17
- <br>
18
- Click Here For <a href="http://addons.topdigitaltrends.net/" target="_blank">DEMO</a><br>
19
- Contact For Any Suggestion:- <b>nasirahmad2010@hotmail.com</b>
 
 
20
 
21
-
22
- <h3>Language</h3>
23
- <ul>
24
- <li>English</li>
25
- </ul>
26
 
27
  <h3>Features</h3>
28
  <ul>
29
- <li>Member Profile</li>
30
- <li>Info Banner</li>
31
- <li>Stats Counter</li>
32
- <li>Info Box</li>
33
- <li>Caousal Slide</li>
34
- <li>Flip Box</li>
35
- <li>Image Hove Effects</li>
36
- <li>Advanced Button</li>
37
- <li>Flip Box</li>
38
- <li>Timeline</li>
39
- <li>Creative Link</li>
40
- <li>Countdown</li>
41
- <li>Advanced Social Icons</li>
42
- <li>TextType</li>
43
- <li>Modal Popup</li>
44
- <li>Interactive Banner</li>
45
- <li>Info List</li>
46
- <li>Google Trends</li>
47
- <li>Tooltip Icons</li>
48
- <li>Testimonial</li>
49
- <li>Headings</li>
50
- <li>Carousal Testimonial</li>
51
- <li>Headings</li>
52
- <li>Highlight Box</li>
53
- <li>Image Swap</li>
54
- <li>Accordion</li>
55
- <li>Info Circle</li>
56
  </ul>
57
 
58
  == Installation ==
@@ -63,10 +63,19 @@ Contact For Any Suggestion:- <b>nasirahmad2010@hotmail.com</b>
63
  4. Fill some additional informations.
64
  5. Now visit your site
65
 
 
 
 
 
 
 
66
  == Screenshots ==
67
 
68
 
69
  == Changelog ==
70
 
 
 
 
71
  = 1.0 =
72
  * First Version
1
  === Mega Addons For Visual Composer ===
2
  Contributors: nasir179125
3
+ Donate link: http://paypal.me/webcodingplace
4
+ Tags: mega addons for visual composer, visual composer, all in one plugin, visual composer extension, multi addons for visual composer, imag hover effects, visual composer addons, vc addons, visual composer extensions, vc extensions, page builder, portfolio, carousel, post, posts, shortcodes, tabs, admin, plugin, page, member profile, info banner, price table, stats counter, flip book, testimonial
5
  Requires at least: 3.5
6
+ Tested up to: 4.8.1
7
+ Stable tag: 2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ 28 Addons visual composer extension, Beautifully designed unique elements, Includes Premium quality addons For Visual Composer.
12
 
13
  == Description ==
14
 
15
+ <blockquote>
16
+ <p>
17
+ <strong>Best Addons Plugin For Visual Composer - WordPress Plugin</strong>
18
+ </p>
19
+ </blockquote>
20
+ Mega Addons For Visual Composer ~ The biggest Addon bundle for Visual Composer With 28 addons. This Addon Bundle provide you everything for your Visual Composer Page Builder. Addons for Visual Composer features professional looking, easy to use yet highly functional extensions that can be used in a WPBakery Visual Composer page builder.<br>
21
+ <a href="https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431?ref=nasir179125"><strong>Visual Composer</strong></a> plugin must be installed and activated to use this plugin. After you activate the required plugins, the elements should be available for use in Visual Composer.
22
 
23
+ <blockquote>
24
+ <p><a href="http://addons.topdigitaltrends.net/" rel="nofollow">Live Demo </a> | <a href="http://www.topdigitaltrends.net/contact/" rel="nofollow">Contact</a> | <a href="https://wordpress.org/support/plugin/mega-addons-for-visual-composer" rel="nofollow">Support forum</a></p>
25
+ </blockquote>
 
 
26
 
27
  <h3>Features</h3>
28
  <ul>
29
+ <li><a href="http://addons.topdigitaltrends.net/member-profile/">Member Profile</a> Show your awesome team</li>
30
+ <li><a href="http://addons.topdigitaltrends.net/info-banner/">Info Banner</a> Displays the banner information</li>
31
+ <li><a href="http://addons.topdigitaltrends.net/price-table/">Price Table</a> Create nice looking price tables</li>
32
+ <li><a href="http://addons.topdigitaltrends.net/advanced-pricing-list/">Price Table Listing</a> Compare Listing</li>
33
+ <li><a href="http://addons.topdigitaltrends.net/stats-counter/">Stats Counter</a> Your milestones, achievements etc</li>
34
+ <li><a href="http://addons.topdigitaltrends.net/info-box/">Info Box</a> Add icon box with custom font icon</li>
35
+ <li><a href="http://addons.topdigitaltrends.net/carousal-slider/">Caousal Slide</a> Show as carousel</li>
36
+ <li><a href="http://addons.topdigitaltrends.net/flip-box/">Flip Box</a> Add icon box with custom font icon</li>
37
+ <li><a href="http://addons.topdigitaltrends.net/image-hover-effects/">Image Hove Effects</a> Image Hover Effects</li>
38
+ <li><a href="http://addons.topdigitaltrends.net/flip-book/">Flip Book</a> 3D Page Flip Book</li>
39
+ <li><a href="http://addons.topdigitaltrends.net/advanced-button/">Advanced Button</a> Animated style buttons</li>
40
+ <li><a href="http://addons.topdigitaltrends.net/timeline/">Timeline</a> Add multiple images and text</li>
41
+ <li><a href="http://addons.topdigitaltrends.net/creative-link/">Creative Link</a> Creative links button</li>
42
+ <li><a href="http://addons.topdigitaltrends.net/countdown/">Countdown</a> Set Countdown timer</li>
43
+ <li><a href="http://addons.topdigitaltrends.net/advanced-social-icons/">Advanced Social Icons</a> social icons with animated effects</li>
44
+ <li><a href="http://addons.topdigitaltrends.net/texttype-effects/">TextType</a> Fancy line with animation effects</li>
45
+ <li><a href="http://addons.topdigitaltrends.net/modal-popup/">Modal Popup</a> Add modal box in your content</li>
46
+ <li><a href="http://addons.topdigitaltrends.net/interactive-banner/">Interactive Banner</a> great hover effects</li>
47
+ <li><a href="http://addons.topdigitaltrends.net/info-list/">Info List</a> Text blocks connected together in one list</li>
48
+ <li><a href="http://addons.topdigitaltrends.net/google-trends/">Google Trends</a> show google trends</li>
49
+ <li><a href="http://addons.topdigitaltrends.net/tooltip-icons/">Tooltip Icons</a> show icons with tooltip</li>
50
+ <li><a href="http://addons.topdigitaltrends.net/testimonial/">Testimonial</a> show client comments as testimonial</li>
51
+ <li><a href="http://addons.topdigitaltrends.net/headings/">Headings</a> Display stylish headings</li>
52
+ <li><a href="http://addons.topdigitaltrends.net/highlight-box/">Highlight Box</a> Beautiful designed buttons for highlight</li>
53
+ <li><a href="http://addons.topdigitaltrends.net/image-swap/">Image Swap</a> Image over image hover effects</li>
54
+ <li><a href="http://addons.topdigitaltrends.net/accordion/">Accordion</a> vertically stacked list of items</li>
55
+ <li><a href="http://addons.topdigitaltrends.net/info-circle/">Info Circle</a> express info about your work</li>
56
  </ul>
57
 
58
  == Installation ==
63
  4. Fill some additional informations.
64
  5. Now visit your site
65
 
66
+ == Frequently Asked Questions ==
67
+
68
+ = I activated the Mega Addons Plugin but I cannot see It In the dashboard pannel? =
69
+
70
+ It is the extension of <a href="https://codecanyon.net/item/visual-composer-page-builder-for-wordpress/242431?ref=nasir179125">Visual Composer</a> so you must have visual composer plugin to use my plugin. It works with Visual Composer Page Builder. After you activate the required plugins, the elements should be available for use in Visual Composer.
71
+
72
  == Screenshots ==
73
 
74
 
75
  == Changelog ==
76
 
77
+ = 2.0 =
78
+ * Notice: Please make sure to backup your previous version. This update has a large amount of changes and many new features are added. Feel free to ask on support forum regarding any issues before leaving a low star rating. Thanks
79
+
80
  = 1.0 =
81
  * First Version
render/accordion_father.php CHANGED
@@ -32,7 +32,7 @@ vc_map( array(
32
  "js_view" => 'VcColumnView',
33
  "category" => __('Mega Addons'),
34
  "description" => __('vertically stacked list of items', ''),
35
- "icon" => plugin_dir_url( __FILE__ ).'../icons/accordion.png',
36
  'params' => array(
37
  array(
38
  "type" => "dropdown",
32
  "js_view" => 'VcColumnView',
33
  "category" => __('Mega Addons'),
34
  "description" => __('vertically stacked list of items', ''),
35
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/accordions.png',
36
  'params' => array(
37
  array(
38
  "type" => "dropdown",
render/countdown.php CHANGED
@@ -80,7 +80,7 @@ vc_map( array(
80
  "base" => "mvc_countdown",
81
  "category" => __('Mega Addons'),
82
  "description" => __('Set Countdown timer', 'countdown'),
83
- "icon" => plugin_dir_url( __FILE__ ).'../icons/countdown.jpg',
84
  'params' => array(
85
  array(
86
  "type" => "textfield",
80
  "base" => "mvc_countdown",
81
  "category" => __('Mega Addons'),
82
  "description" => __('Set Countdown timer', 'countdown'),
83
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/countdown.png',
84
  'params' => array(
85
  array(
86
  "type" => "textfield",
render/flipbox.php CHANGED
@@ -8,39 +8,49 @@ class WPBakeryShortCode_mvc_flip_box extends WPBakeryShortCode {
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
- 'style' => 'horizental',
12
- 'height' => '200px',
13
- 'info_opt' => 'show_image',
14
- 'image_id' => '',
15
- 'radius' => '',
16
- 'image_size' => '',
17
- 'font_icon' => '',
18
- 'icon_size' => '',
19
- 'icon_color' => '',
20
- 'lineheight' => '1',
21
- 'title' => '',
22
- 'size' => '',
23
- 'color' => '',
24
- 'desc' => '',
25
- 'descrsize' => '',
26
- 'descrcolor' => '',
27
- 'bgcolor' => '',
28
- 'css' => '',
 
 
 
 
 
 
 
 
 
29
  ), $atts ) );
30
  wp_enqueue_style( 'flip-box-css', plugins_url( '../css/flipbox.css' , __FILE__ ));
31
- $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
32
  if ($image_id != '') {
33
  $image_url = wp_get_attachment_url( $image_id );
34
  }
35
  $content = wpb_js_remove_wpautop($content, true);
36
  ob_start(); ?>
37
 
38
- <?php if ($style == 'vertical') { ?>
39
- <div class="hover panel" style="height: <?php echo $height; ?>;">
40
- <div class="front <?php echo $css_class; ?>">
41
- <div class="pad">
 
42
  <?php if ($info_opt == 'show_image') { ?>
43
- <img class="" src="<?php echo $image_url; ?>" width="<?php echo $image_size; ?>" style="border-radius: <?php echo $radius; ?>;">
44
  <?php } ?>
45
  <?php if ($info_opt == 'show_icon') { ?>
46
  <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_color; ?>;"></i>
@@ -52,21 +62,32 @@ class WPBakeryShortCode_mvc_flip_box extends WPBakeryShortCode {
52
  <?php echo $desc; ?>
53
  </p>
54
  </div>
55
- </div>
56
- <div class="back" style="background: <?php echo $bgcolor; ?>">
57
- <div class="pad">
 
 
58
  <?php echo $content; ?>
 
 
 
 
 
 
 
59
  </div>
60
- </div>
61
- </div>
62
- <?php } ?>
 
63
 
64
- <?php if ($style == 'horizental') { ?>
65
- <div class="hover panel" style="height: <?php echo $height; ?>;">
66
- <div class="front1 <?php echo $css_class; ?>">
67
- <div class="pad">
 
68
  <?php if ($info_opt == 'show_image') { ?>
69
- <img class="" src="<?php echo $image_url; ?>" width="<?php echo $image_size; ?>" style="border-radius: <?php echo $radius; ?>;">
70
  <?php } ?>
71
  <?php if ($info_opt == 'show_icon') { ?>
72
  <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_color; ?>;"></i>
@@ -78,38 +99,64 @@ class WPBakeryShortCode_mvc_flip_box extends WPBakeryShortCode {
78
  <?php echo $desc; ?>
79
  </p>
80
  </div>
81
- </div>
82
- <div class="back1" style="background: <?php echo $bgcolor; ?>">
83
- <div class="pad">
 
 
 
84
  <?php echo $content; ?>
 
 
 
 
 
 
 
85
  </div>
86
- </div>
87
- </div>
88
- <?php } ?>
 
89
 
90
- <?php if ($style == '3d') { ?>
91
- <div style="height: <?php echo $height; ?>;">
92
- <div class="cube">
93
- <div class="active-state" style="background: <?php echo $bgcolor; ?>; height: <?php echo $height; ?>;transform-origin: center center -<?php echo $height/2; ?>px;">
94
- <?php echo $content; ?>
 
 
 
 
 
 
 
 
 
 
95
  </div>
96
- <div class="default-state <?php echo $css_class; ?>" style="height: <?php echo $height; ?>; transform-origin: center center -<?php echo $height/2; ?>px;">
97
- <?php if ($info_opt == 'show_image') { ?>
98
- <img class="" src="<?php echo $image_url; ?>" width="<?php echo $image_size; ?>" style="border-radius: <?php echo $radius; ?>;">
99
- <?php } ?>
100
- <?php if ($info_opt == 'show_icon') { ?>
101
- <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_color; ?>;"></i>
102
- <?php } ?>
103
- <h4 style="color: <?php echo $color; ?>; font-size: <?php echo $size; ?>; line-height: <?php echo $lineheight; ?>;">
104
- <b><?php echo $title; ?></b>
105
- </h4>
106
- <p style="color: <?php echo $descrcolor; ?>; font-size: <?php echo $descrsize; ?>;">
107
- <?php echo $desc; ?>
108
- </p>
109
- </div>
110
- </div>
 
 
 
 
111
  </div>
112
- <?php } ?>
 
113
 
114
  <?php
115
  return ob_get_clean();
@@ -124,11 +171,11 @@ vc_map( array(
124
  "description" => __('Show flip box for Info', 'flipbox'),
125
  "icon" => plugin_dir_url( __FILE__ ).'../icons/flipbox.png',
126
  'params' => array(
127
- array(
128
  "type" => "dropdown",
129
- "heading" => __( 'Style Flip Box', 'flipbox' ),
130
  "param_name" => "style",
131
- "description" => __( 'select style', 'flipbox' ),
132
  "group" => 'General',
133
  "value" => array(
134
  'Horizental' => 'horizental',
@@ -138,17 +185,111 @@ vc_map( array(
138
  ),
139
  array(
140
  "type" => "textfield",
141
- "heading" => __( 'Flip height', 'flipbox' ),
142
  "param_name" => "height",
143
- "description" => __( 'Required. set flip box height e.g 200px', 'flipbox' ),
 
 
 
 
 
 
 
 
144
  "group" => 'General',
145
  ),
146
  array(
147
  "type" => "dropdown",
148
- "heading" => __( 'Select Image or Font icon', 'flipbox' ),
149
- "param_name" => "info_opt",
150
- "description" => __( 'Select Image or Font icon', 'flipbox' ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  "group" => 'General',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  "value" => array(
153
  'Image' => 'show_image',
154
  'Icon' => 'show_icon',
@@ -156,50 +297,51 @@ vc_map( array(
156
  ),
157
  array(
158
  "type" => "attach_image",
159
- "heading" => __( 'Image', 'flipbox' ),
160
  "param_name" => "image_id",
161
- "description" => __( 'Select the image', 'flipbox' ),
162
- "group" => 'General',
163
  "dependency" => array('element' => "info_opt", 'value' => 'show_image'),
164
  ),
165
  array(
166
  "type" => "textfield",
167
- "heading" => __( 'Image Radius', 'flipbox' ),
168
  "param_name" => "radius",
169
- "description" => __( 'Set Image radius in pixel or % e.g 50%', 'flipbox' ),
170
- "group" => 'General',
171
  "dependency" => array('element' => "info_opt", 'value' => 'show_image'),
172
  ),
173
  array(
174
  "type" => "textfield",
175
- "heading" => __( 'Width', 'flipbox' ),
176
  "param_name" => "image_size",
177
- "description" => __( 'Set the width in pixel e.g 80px', 'flipbox' ),
178
- "group" => 'General',
 
179
  "dependency" => array('element' => "info_opt", 'value' => 'show_image'),
180
  ),
181
  array(
182
  "type" => "iconpicker",
183
- "heading" => __( 'Font icon', 'flipbox' ),
184
  "param_name" => "font_icon",
185
- "description" => __( 'Select the font icon', 'flipbox' ),
186
- "group" => 'General',
187
  "dependency" => array('element' => "info_opt", 'value' => 'show_icon'),
188
  ),
189
  array(
190
  "type" => "textfield",
191
- "heading" => __( 'Font size', 'flipbox' ),
192
  "param_name" => "icon_size",
193
- "description" => __( 'Set icon font size in pixel e.g 30px', 'flipbox' ),
194
- "group" => 'General',
195
  "dependency" => array('element' => "info_opt", 'value' => 'show_icon'),
196
  ),
197
  array(
198
  "type" => "colorpicker",
199
- "heading" => __( 'Font Color', 'flipbox' ),
200
  "param_name" => "icon_color",
201
- "description" => __( 'Set icon color', 'flipbox' ),
202
- "group" => 'General',
203
  "dependency" => array('element' => "info_opt", 'value' => 'show_icon'),
204
  ),
205
 
@@ -207,51 +349,54 @@ vc_map( array(
207
 
208
  array(
209
  "type" => "textfield",
210
- "heading" => __( 'Line height', 'flipbox' ),
211
  "param_name" => "lineheight",
212
- "description" => __( 'set line height for front display e.g 1.5', 'flipbox' ),
 
213
  "group" => 'Front',
214
  ),
215
  array(
216
  "type" => "textfield",
217
- "heading" => __( 'Title', 'flipbox' ),
218
  "param_name" => "title",
219
- "description" => __( 'set title for front display', 'flipbox' ),
220
  "group" => 'Front',
221
  ),
222
  array(
223
  "type" => "textfield",
224
- "heading" => __( 'Font Size', 'flipbox' ),
225
  "param_name" => "size",
226
- "description" => __( 'set title font size for front display e.g 15px', 'flipbox' ),
 
227
  "group" => 'Front',
228
  ),
229
  array(
230
  "type" => "colorpicker",
231
- "heading" => __( 'Title color', 'flipbox' ),
232
  "param_name" => "color",
233
- "description" => __( 'set title color', 'flipbox' ),
234
  "group" => 'Front',
235
  ),
236
  array(
237
- "type" => "textfield",
238
- "heading" => __( 'Description', 'flipbox' ),
239
  "param_name" => "desc",
240
- "description" => __( 'set description for front display', 'flipbox' ),
241
  "group" => 'Front',
242
  ),
243
  array(
244
  "type" => "textfield",
245
- "heading" => __( 'Font Size', 'flipbox' ),
246
  "param_name" => "descrsize",
247
- "description" => __( 'set description font size for front display e.g 13px', 'flipbox' ),
 
248
  "group" => 'Front',
249
  ),
250
  array(
251
  "type" => "colorpicker",
252
- "heading" => __( 'Title color', 'flipbox' ),
253
  "param_name" => "descrcolor",
254
- "description" => __( 'set description color', 'flipbox' ),
255
  "group" => 'Front',
256
  ),
257
 
@@ -260,26 +405,20 @@ vc_map( array(
260
 
261
  array(
262
  "type" => "colorpicker",
263
- "heading" => __( 'Background color', 'flipbox' ),
264
  "param_name" => "bgcolor",
265
- "description" => __( 'set background color', 'flipbox' ),
266
  "group" => 'Flip Display',
267
  ),
268
 
269
  array(
270
  "type" => "textarea_html",
271
- "heading" => __( 'Description', 'flipbox' ),
272
  "param_name" => "content",
273
- "description" => __( 'write detail about flip box', 'flipbox' ),
274
  "group" => 'Flip Display',
275
- "value" => '<h3>Caption Text Here</h3><p>Change color, background color and text in button. Dont remove mega_hvr_btn class from button.</p> <a href="#" class="mega_hvr_btn" style="padding:6px 14px;color:#fff;background:#000;">Learn More</a>'
276
  ),
277
- array(
278
- "type" => "css_editor",
279
- "heading" => __( 'Display Design', 'flipbox' ),
280
- "param_name" => "css",
281
- "group" => 'Front Design',
282
- ),
283
  ),
284
  ) );
285
 
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
+ 'style' => 'horizental',
12
+ 'height' => '200px',
13
+ 'info_opt' => 'show_image',
14
+ 'front_bg' => '',
15
+ 'border_st' => '',
16
+ 'border_clr' => '',
17
+ 'border_width' => '0',
18
+ 'border_style' => 'solid',
19
+ 'link_st' => '',
20
+ 'url' => '',
21
+ 'url_txt' => '',
22
+ 'url_clr' => '',
23
+ 'url_bg' => '',
24
+ 'image_id' => '',
25
+ 'radius' => '',
26
+ 'image_size' => '',
27
+ 'font_icon' => '',
28
+ 'icon_size' => '',
29
+ 'icon_color' => '',
30
+ 'lineheight' => '1',
31
+ 'title' => '',
32
+ 'size' => '',
33
+ 'color' => '',
34
+ 'desc' => '',
35
+ 'descrsize' => '',
36
+ 'descrcolor' => '',
37
+ 'bgcolor' => '',
38
  ), $atts ) );
39
  wp_enqueue_style( 'flip-box-css', plugins_url( '../css/flipbox.css' , __FILE__ ));
40
+ // $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
41
  if ($image_id != '') {
42
  $image_url = wp_get_attachment_url( $image_id );
43
  }
44
  $content = wpb_js_remove_wpautop($content, true);
45
  ob_start(); ?>
46
 
47
+ <?php if ($style == 'vertical') { ?>
48
+ <div class="hover vc-ihe-panel" style="height: <?php echo $height; ?>;">
49
+ <div class="front" style="background: <?php echo $front_bg; ?>;">
50
+ <div style="display:table;width:100%;height:100%;">
51
+ <div class="pad" style="display: table-cell !important;vertical-align: middle !important; border: <?php echo $border_width; ?> <?php echo $border_style; ?> <?php echo $border_clr; ?>;">
52
  <?php if ($info_opt == 'show_image') { ?>
53
+ <img class="" src="<?php echo $image_url; ?>" style="border-radius: <?php echo $radius; ?>; width: <?php echo $image_size; ?>;">
54
  <?php } ?>
55
  <?php if ($info_opt == 'show_icon') { ?>
56
  <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_color; ?>;"></i>
62
  <?php echo $desc; ?>
63
  </p>
64
  </div>
65
+ </div>
66
+ </div>
67
+ <div class="back" style="background: <?php echo $bgcolor; ?>">
68
+ <div style="display:table;width:100%;height:100%;">
69
+ <div class="pad" style="display: table-cell !important;vertical-align: middle !important; padding: 10px;">
70
  <?php echo $content; ?>
71
+ <p style="text-align: center;">
72
+ <?php if (!empty($url_txt)) { ?>
73
+ <a href="<?php echo $url; ?>" class="mega_hvr_btn" style="color: <?php echo $url_clr; ?>; background: <?php echo $url_bg; ?>;">
74
+ <?php echo $url_txt; ?>
75
+ </a>
76
+ <?php } ?>
77
+ </p>
78
  </div>
79
+ </div>
80
+ </div>
81
+ </div>
82
+ <?php } ?>
83
 
84
+ <?php if ($style == 'horizental') { ?>
85
+ <div class="hover vc-ihe-panel" style="height: <?php echo $height; ?>;">
86
+ <div class="front1" style="background: <?php echo $front_bg; ?>;">
87
+ <div style="display:table;width:100%;height:100%;">
88
+ <div class="pad" style="display: table-cell !important;vertical-align: middle !important; border: <?php echo $border_width; ?> <?php echo $border_style; ?> <?php echo $border_clr; ?>;">
89
  <?php if ($info_opt == 'show_image') { ?>
90
+ <img class="" src="<?php echo $image_url; ?>" style="border-radius: <?php echo $radius; ?>; width: <?php echo $image_size; ?>;">
91
  <?php } ?>
92
  <?php if ($info_opt == 'show_icon') { ?>
93
  <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_color; ?>;"></i>
99
  <?php echo $desc; ?>
100
  </p>
101
  </div>
102
+ </div>
103
+
104
+ </div>
105
+ <div class="back1" style="background: <?php echo $bgcolor; ?>">
106
+ <div style="display:table;width:100%;height:100%;">
107
+ <div class="pad" style="display: table-cell !important;vertical-align: middle !important; padding: 10px;">
108
  <?php echo $content; ?>
109
+ <p style="text-align: center;">
110
+ <?php if (!empty($url_txt)) { ?>
111
+ <a href="<?php echo $url; ?>" class="mega_hvr_btn" style="color: <?php echo $url_clr; ?>; background: <?php echo $url_bg; ?>;">
112
+ <?php echo $url_txt; ?>
113
+ </a>
114
+ <?php } ?>
115
+ </p>
116
  </div>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ <?php } ?>
121
 
122
+ <?php if ($style == '3d') { ?>
123
+ <div style="height: <?php echo $height; ?>;">
124
+ <div class="cube">
125
+ <div class="active-state" style="background: <?php echo $bgcolor; ?>; height: <?php echo $height; ?>;transform-origin: center center -<?php echo $height/2; ?>px;">
126
+ <div style="display:table;width:100%;height:100%;">
127
+ <div style="display: table-cell !important;vertical-align: middle !important; padding: 0 10px;">
128
+ <?php echo $content; ?>
129
+ <p style="text-align: center; padding-top: 4px;">
130
+ <?php if (!empty($url_txt)) { ?>
131
+ <a href="<?php echo $url; ?>" class="mega_hvr_btn" style="color: <?php echo $url_clr; ?>; background: <?php echo $url_bg; ?>;">
132
+ <?php echo $url_txt; ?>
133
+ </a>
134
+ <?php } ?>
135
+ </p>
136
+ </div>
137
  </div>
138
+ </div>
139
+ <div class="default-state <?php echo $css_class; ?>" style="height: <?php echo $height; ?>; transform-origin: center center -<?php echo $height/2; ?>px; background: <?php echo $front_bg; ?>;">
140
+ <div style="display:table;width:100%;height:100%;">
141
+ <div style="display: table-cell !important;vertical-align: middle !important; border: <?php echo $border_width; ?> <?php echo $border_style; ?> <?php echo $border_clr; ?>; padding: 0 10px;">
142
+ <?php if ($info_opt == 'show_image') { ?>
143
+ <img class="" src="<?php echo $image_url; ?>" width="<?php echo $image_size; ?>" style="border-radius: <?php echo $radius; ?>;">
144
+ <?php } ?>
145
+ <?php if ($info_opt == 'show_icon') { ?>
146
+ <i class="<?php echo $font_icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_color; ?>;"></i>
147
+ <?php } ?>
148
+ <h4 style="color: <?php echo $color; ?>; font-size: <?php echo $size; ?>; line-height: <?php echo $lineheight; ?>;">
149
+ <b><?php echo $title; ?></b>
150
+ </h4>
151
+ <p style="color: <?php echo $descrcolor; ?>; font-size: <?php echo $descrsize; ?>;">
152
+ <?php echo $desc; ?>
153
+ </p>
154
+ </div>
155
+ </div>
156
+ </div>
157
  </div>
158
+ </div>
159
+ <?php } ?>
160
 
161
  <?php
162
  return ob_get_clean();
171
  "description" => __('Show flip box for Info', 'flipbox'),
172
  "icon" => plugin_dir_url( __FILE__ ).'../icons/flipbox.png',
173
  'params' => array(
174
+ array(
175
  "type" => "dropdown",
176
+ "heading" => __( 'Style Flip Box', 'flip-box-vc' ),
177
  "param_name" => "style",
178
+ "description" => __( 'select style', 'flip-box-vc' ). ' <a target="_blank" href="http://www.topdigitaltrends.net/visual-composer-flip-box-demo/">Demo</a>',
179
  "group" => 'General',
180
  "value" => array(
181
  'Horizental' => 'horizental',
185
  ),
186
  array(
187
  "type" => "textfield",
188
+ "heading" => __( 'Flip height', 'flip-box-vc' ),
189
  "param_name" => "height",
190
+ "description" => __( 'Required. set flip box height e.g 200px', 'flip-box-vc' ),
191
+ 'value' => __( "200px", 'flip-box-vc' ),
192
+ "group" => 'General',
193
+ ),
194
+ array(
195
+ "type" => "colorpicker",
196
+ "heading" => __( 'Front Background', 'flip-box-vc' ),
197
+ "param_name" => "front_bg",
198
+ "description" => __( 'background color for front display', 'flip-box-vc' ),
199
  "group" => 'General',
200
  ),
201
  array(
202
  "type" => "dropdown",
203
+ "heading" => __( 'Border Styling', 'flip-box-vc' ),
204
+ "param_name" => "border_st",
205
+ "group" => 'General',
206
+ "value" => array(
207
+ "Default" => "default",
208
+ "Custom Styling" => "custom_border",
209
+ )
210
+ ),
211
+ array(
212
+ "type" => "colorpicker",
213
+ "heading" => __( 'Border Color', 'flip-box-vc' ),
214
+ "param_name" => "border_clr",
215
+ "description" => __( 'border color for front display', 'flip-box-vc' ),
216
+ "dependency" => array('element' => "border_st", 'value' => 'custom_border'),
217
+ "group" => 'General',
218
+ ),
219
+ array(
220
+ "type" => "textfield",
221
+ "heading" => __( 'Border Width', 'flip-box-vc' ),
222
+ "param_name" => "border_width",
223
+ "description" => __( 'border width for front display', 'flip-box-vc' ),
224
+ "dependency" => array('element' => "border_st", 'value' => 'custom_border'),
225
+ "group" => 'General',
226
+ ),
227
+ array(
228
+ "type" => "dropdown",
229
+ "heading" => __( 'Border Style', 'flip-box-vc' ),
230
+ "param_name" => "border_style",
231
+ "group" => 'General',
232
+ "dependency" => array('element' => "border_st", 'value' => 'custom_border'),
233
+ "value" => array(
234
+ "Solid" => "solid",
235
+ "Dotted" => "dotted",
236
+ "Rige" => "rige",
237
+ "Dashed" => "dashed",
238
+ "Double" => "double",
239
+ "Groove" => "groove",
240
+ "Inset" => "inset",
241
+ )
242
+ ),
243
+ array(
244
+ "type" => "dropdown",
245
+ "heading" => __( 'Link To', 'flip-box-vc' ),
246
+ "param_name" => "link_st",
247
  "group" => 'General',
248
+ "value" => array(
249
+ "None" => "none",
250
+ "Custom Link" => "custom_link",
251
+ )
252
+ ),
253
+ array(
254
+ "type" => "textfield",
255
+ "heading" => __( 'Link URL', 'flip-box-vc' ),
256
+ "param_name" => "url",
257
+ "dependency" => array('element' => "link_st", 'value' => 'custom_link'),
258
+ "group" => 'General',
259
+ ),
260
+ array(
261
+ "type" => "textfield",
262
+ "heading" => __( 'Link Text', 'flip-box-vc' ),
263
+ "param_name" => "url_txt",
264
+ "dependency" => array('element' => "link_st", 'value' => 'custom_link'),
265
+ "description" => __( 'button text', 'flip-box-vc' ),
266
+ "group" => 'General',
267
+ ),
268
+ array(
269
+ "type" => "colorpicker",
270
+ "heading" => __( 'Link Color', 'flip-box-vc' ),
271
+ "param_name" => "url_clr",
272
+ "dependency" => array('element' => "link_st", 'value' => 'custom_link'),
273
+ "description" => __( 'button text color', 'flip-box-vc' ),
274
+ "group" => 'General',
275
+ ),
276
+ array(
277
+ "type" => "colorpicker",
278
+ "heading" => __( 'Link Background', 'flip-box-vc' ),
279
+ "param_name" => "url_bg",
280
+ "dependency" => array('element' => "link_st", 'value' => 'custom_link'),
281
+ "description" => __( 'button background color', 'flip-box-vc' ),
282
+ "group" => 'General',
283
+ ),
284
+
285
+ // iCON/iMAGE
286
+
287
+ array(
288
+ "type" => "dropdown",
289
+ "heading" => __( 'Select Image or Font icon', 'flip-box-vc' ),
290
+ "param_name" => "info_opt",
291
+ "description" => __( 'Select Image or Font icon', 'flip-box-vc' ),
292
+ "group" => 'Icon/Image',
293
  "value" => array(
294
  'Image' => 'show_image',
295
  'Icon' => 'show_icon',
297
  ),
298
  array(
299
  "type" => "attach_image",
300
+ "heading" => __( 'Image', 'flip-box-vc' ),
301
  "param_name" => "image_id",
302
+ "description" => __( 'Select the image', 'flip-box-vc' ),
303
+ "group" => 'Icon/Image',
304
  "dependency" => array('element' => "info_opt", 'value' => 'show_image'),
305
  ),
306
  array(
307
  "type" => "textfield",
308
+ "heading" => __( 'Image Radius', 'flip-box-vc' ),
309
  "param_name" => "radius",
310
+ "description" => __( 'Set Image radius in pixel or % e.g 50%', 'flip-box-vc' ),
311
+ "group" => 'Icon/Image',
312
  "dependency" => array('element' => "info_opt", 'value' => 'show_image'),
313
  ),
314
  array(
315
  "type" => "textfield",
316
+ "heading" => __( 'Width', 'flip-box-vc' ),
317
  "param_name" => "image_size",
318
+ "description" => __( 'Image width in pixel e.g 80px', 'flip-box-vc' ),
319
+ "group" => 'Icon/Image',
320
+ 'value' => __( "80px", 'flip-box-vc' ),
321
  "dependency" => array('element' => "info_opt", 'value' => 'show_image'),
322
  ),
323
  array(
324
  "type" => "iconpicker",
325
+ "heading" => __( 'Font icon', 'flip-box-vc' ),
326
  "param_name" => "font_icon",
327
+ "description" => __( 'Select the font icon', 'flip-box-vc' ),
328
+ "group" => 'Icon/Image',
329
  "dependency" => array('element' => "info_opt", 'value' => 'show_icon'),
330
  ),
331
  array(
332
  "type" => "textfield",
333
+ "heading" => __( 'Font size', 'flip-box-vc' ),
334
  "param_name" => "icon_size",
335
+ "description" => __( 'Set icon font size in pixel e.g 30px', 'flip-box-vc' ),
336
+ "group" => 'Icon/Image',
337
  "dependency" => array('element' => "info_opt", 'value' => 'show_icon'),
338
  ),
339
  array(
340
  "type" => "colorpicker",
341
+ "heading" => __( 'Font Color', 'flip-box-vc' ),
342
  "param_name" => "icon_color",
343
+ "description" => __( 'Set icon color', 'flip-box-vc' ),
344
+ "group" => 'Icon/Image',
345
  "dependency" => array('element' => "info_opt", 'value' => 'show_icon'),
346
  ),
347
 
349
 
350
  array(
351
  "type" => "textfield",
352
+ "heading" => __( 'Line height', 'flip-box-vc' ),
353
  "param_name" => "lineheight",
354
+ "description" => __( 'set line height for text e.g 1.5', 'flip-box-vc' ),
355
+ 'value' => __( "1.5", 'flip-box-vc' ),
356
  "group" => 'Front',
357
  ),
358
  array(
359
  "type" => "textfield",
360
+ "heading" => __( 'Title', 'flip-box-vc' ),
361
  "param_name" => "title",
362
+ "description" => __( 'set title for front display', 'flip-box-vc' ),
363
  "group" => 'Front',
364
  ),
365
  array(
366
  "type" => "textfield",
367
+ "heading" => __( 'Font Size', 'flip-box-vc' ),
368
  "param_name" => "size",
369
+ "description" => __( 'set title font size for front display e.g 15px', 'flip-box-vc' ),
370
+ 'value' => __( "15px", 'flip-box-vc' ),
371
  "group" => 'Front',
372
  ),
373
  array(
374
  "type" => "colorpicker",
375
+ "heading" => __( 'Title color', 'flip-box-vc' ),
376
  "param_name" => "color",
377
+ "description" => __( 'set title color', 'flip-box-vc' ),
378
  "group" => 'Front',
379
  ),
380
  array(
381
+ "type" => "textarea",
382
+ "heading" => __( 'Description', 'flip-box-vc' ),
383
  "param_name" => "desc",
384
+ "description" => __( 'set description for front display', 'flip-box-vc' ),
385
  "group" => 'Front',
386
  ),
387
  array(
388
  "type" => "textfield",
389
+ "heading" => __( 'Font Size', 'flip-box-vc' ),
390
  "param_name" => "descrsize",
391
+ "description" => __( 'set description font size for front display e.g 13px', 'flip-box-vc' ),
392
+ 'value' => __( "13px", 'flip-box-vc' ),
393
  "group" => 'Front',
394
  ),
395
  array(
396
  "type" => "colorpicker",
397
+ "heading" => __( 'Title color', 'flip-box-vc' ),
398
  "param_name" => "descrcolor",
399
+ "description" => __( 'set description color', 'flip-box-vc' ),
400
  "group" => 'Front',
401
  ),
402
 
405
 
406
  array(
407
  "type" => "colorpicker",
408
+ "heading" => __( 'Background color', 'flip-box-vc' ),
409
  "param_name" => "bgcolor",
410
+ "description" => __( 'set background color', 'flip-box-vc' ),
411
  "group" => 'Flip Display',
412
  ),
413
 
414
  array(
415
  "type" => "textarea_html",
416
+ "heading" => __( 'Description', 'flip-box-vc' ),
417
  "param_name" => "content",
418
+ "description" => __( 'write detail about flip box', 'flip-box-vc' ),
419
  "group" => 'Flip Display',
420
+ "value" => '<h3>Caption Text Here</h3><p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod</p>',
421
  ),
 
 
 
 
 
 
422
  ),
423
  ) );
424
 
render/highlight_box.php CHANGED
@@ -8,30 +8,44 @@ class WPBakeryShortCode_highlight_box extends WPBakeryShortCode {
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
- 'id' => '',
12
- 'style' => 'btn-5a',
13
- 'height' => '140px',
14
- 'url' => '#0',
15
- 'icon' => '',
16
- 'iconsize' => '31px',
17
- 'textsize' => '31px',
18
- 'text' => '',
19
- 'text2' => '',
20
- 'clr' => '#000',
21
- 'bgclr' => '#9e54bd',
22
- 'hoverbg' => '',
 
23
  ), $atts ) );
24
  $content = wpb_js_remove_wpautop($content, true);
25
  wp_enqueue_style( 'highlight-box', plugins_url( '../css/highlight-box.css' , __FILE__ ));
26
  ob_start(); ?>
27
  <div id="highlight_box<?php echo $id; ?>" style="display: table; width: 100%;height: 100%;">
28
- <a href="<?php echo $url; ?>" class="mega_highlight_box btn-5 <?php echo $style; ?>" style="height: <?php echo $height; ?>; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?>;">
29
- <i class="<?php echo $icon; ?> span-before" aria-hidden="true" style="font-size: <?php echo $iconsize; ?>; line-height: <?php echo $height; ?>; color: <?php echo $clr; ?>;"></i>
30
- <div>
31
- <span class="text" style="font-size: <?php echo $textsize; ?>;"><?php echo $text; ?> <br> <?php echo $text2; ?></span>
32
- </div>
33
- <span class="span-after"></span>
34
- </a>
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  </div>
36
 
37
  <style>
@@ -53,7 +67,7 @@ vc_map( array(
53
  "base" => "highlight_box",
54
  "category" => __('Mega Addons'),
55
  "description" => __('Beautiful designed buttons for highlight', 'highlight'),
56
- "icon" => plugin_dir_url( __FILE__ ).'../icons/creative.png',
57
  'params' => array(
58
  array(
59
  "type" => "textfield",
@@ -69,11 +83,12 @@ vc_map( array(
69
  "description" => __( 'highlight style'),
70
  "group" => 'General',
71
  "value" => array(
72
- "Slide Top" => "btn-5a",
73
- "Slide Left" => "btn-5b",
74
- "Slide Right" => "btn-5c",
75
- "Slide Bottom" => "btn-5d",
76
- "Fade" => "fade",
 
77
  )
78
  ),
79
  array(
@@ -84,6 +99,15 @@ vc_map( array(
84
  "value" => "140px",
85
  "group" => "General",
86
  ),
 
 
 
 
 
 
 
 
 
87
  array(
88
  "type" => "textfield",
89
  "heading" => __( 'Box URL', 'highlight' ),
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
+ 'id' => '',
12
+ 'style' => 'btn-5a',
13
+ 'height' => '140px',
14
+ 'lineheight' => '2',
15
+ 'url' => '#0',
16
+ 'icon' => '',
17
+ 'iconsize' => '31px',
18
+ 'textsize' => '31px',
19
+ 'text' => '',
20
+ 'text2' => '',
21
+ 'clr' => '#000',
22
+ 'bgclr' => '#9e54bd',
23
+ 'hoverbg' => '',
24
  ), $atts ) );
25
  $content = wpb_js_remove_wpautop($content, true);
26
  wp_enqueue_style( 'highlight-box', plugins_url( '../css/highlight-box.css' , __FILE__ ));
27
  ob_start(); ?>
28
  <div id="highlight_box<?php echo $id; ?>" style="display: table; width: 100%;height: 100%;">
29
+ <?php if ($style != 'fade2') { ?>
30
+ <a href="<?php echo $url; ?>" class="mega_highlight_box btn-5 <?php echo $style; ?>" style="height: <?php echo $height; ?>; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?>;">
31
+ <i class="<?php echo $icon; ?> span-before" aria-hidden="true" style="font-size: <?php echo $iconsize; ?>; line-height: <?php echo $height; ?>; color: <?php echo $clr; ?>;"></i>
32
+ <div>
33
+ <span class="text" style="font-size: <?php echo $textsize; ?>;"><?php echo $text; ?> <br> <?php echo $text2; ?></span>
34
+ </div>
35
+ <span class="span-after"></span>
36
+ </a>
37
+ <?php } ?>
38
+
39
+ <?php if ($style == 'fade2') { ?>
40
+ <a href="<?php echo $url; ?>" class="mega_highlight_box btn-5 <?php echo $style; ?>" style="height: <?php echo $height; ?>; color: <?php echo $clr; ?>; background: <?php echo $bgclr; ?>; text-align: center;">
41
+ <div>
42
+ <span class="text" style="font-size: <?php echo $textsize; ?>; line-height: <?php echo $lineheight-.5; ?>;">
43
+ <?php echo $text; ?>
44
+ </span>
45
+ </div>
46
+ <i class="<?php echo $icon; ?>" aria-hidden="true" style="line-height: <?php echo $lineheight-1; ?>; font-size: <?php echo $iconsize; ?>; color: <?php echo $clr; ?>;"></i>
47
+ </a>
48
+ <?php } ?>
49
  </div>
50
 
51
  <style>
67
  "base" => "highlight_box",
68
  "category" => __('Mega Addons'),
69
  "description" => __('Beautiful designed buttons for highlight', 'highlight'),
70
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/creatives.png',
71
  'params' => array(
72
  array(
73
  "type" => "textfield",
83
  "description" => __( 'highlight style'),
84
  "group" => 'General',
85
  "value" => array(
86
+ "Slide Top" => "btn-5a",
87
+ "Slide Left" => "btn-5b",
88
+ "Slide Right" => "btn-5c",
89
+ "Slide Bottom" => "btn-5d",
90
+ "Fade without Icon" => "fade",
91
+ "Fade with Icon" => "fade2",
92
  )
93
  ),
94
  array(
99
  "value" => "140px",
100
  "group" => "General",
101
  ),
102
+ array(
103
+ "type" => "textfield",
104
+ "heading" => __( 'line height', 'highlight' ),
105
+ "param_name" => "lineheight",
106
+ "description" => __( 'between text and Icon'),
107
+ "dependency" => array('element' => "style", 'value' => 'fade2'),
108
+ "value" => "2",
109
+ "group" => "General",
110
+ ),
111
  array(
112
  "type" => "textfield",
113
  "heading" => __( 'Box URL', 'highlight' ),
render/hoverbutton.php CHANGED
@@ -19,14 +19,14 @@ class WPBakeryShortCode_mvc_button extends WPBakeryShortCode {
19
  'padding_top' => '5px',
20
  'padding_left' => '10px',
21
  'btn_radius' => '',
22
- 'btn_text' => '',
23
  'btn_url' => '',
24
  'btn_text' => '',
25
  'btn_size' => '18px',
26
  'btn_icon' => '',
27
  'btn_border' => '',
28
  'border_width' => '1px',
29
- 'btn_clr' => '',
30
  'btn_bg' => '#fff',
31
  'btn_shadow' => '',
32
  'btn_hvrclr' => 'asda',
19
  'padding_top' => '5px',
20
  'padding_left' => '10px',
21
  'btn_radius' => '',
22
+ 'btn_next' => '',
23
  'btn_url' => '',
24
  'btn_text' => '',
25
  'btn_size' => '18px',
26
  'btn_icon' => '',
27
  'btn_border' => '',
28
  'border_width' => '1px',
29
+ 'btn_clr' => '#000',
30
  'btn_bg' => '#fff',
31
  'btn_shadow' => '',
32
  'btn_hvrclr' => 'asda',
render/image_swap.php CHANGED
@@ -51,7 +51,7 @@ vc_map( array(
51
  "base" => "image_swap",
52
  "category" => __('Mega Addons'),
53
  "description" => __('Image over image hover effects', 'swap'),
54
- "icon" => plugin_dir_url( __FILE__ ).'../icons/image-swap.png',
55
  'params' => array(
56
  array(
57
  "type" => "attach_image",
51
  "base" => "image_swap",
52
  "category" => __('Mega Addons'),
53
  "description" => __('Image over image hover effects', 'swap'),
54
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/img-swap.png',
55
  'params' => array(
56
  array(
57
  "type" => "attach_image",
render/info_list_father.php CHANGED
@@ -8,11 +8,13 @@ class WPBakeryShortCode_info_list_father extends WPBakeryShortCodesContainer {
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
- 'body_bg' => '#fff',
12
  ), $atts ) );
13
  $content = wpb_js_remove_wpautop($content, true);
 
 
14
  ob_start(); ?>
15
- <ul class="mega-info-list" style="background: <?php echo $body_bg; ?>; list-style-type: none; height: 100%;">
16
  <?php echo $content; ?>
17
  </ul>
18
 
@@ -28,14 +30,13 @@ vc_map( array(
28
  "content_element" => true,
29
  "js_view" => 'VcColumnView',
30
  "category" => __('Mega Addons'),
31
- "description" => __('Info list for information', ''),
32
  "icon" => plugin_dir_url( __FILE__ ).'../icons/infolist.png',
33
  'params' => array(
34
  array(
35
- "type" => "colorpicker",
36
- "heading" => __( 'Social Position', 'infolist' ),
37
- "param_name" => "body_bg",
38
- "description" => __('Background color of info list', 'infolist'),
39
  "group" => 'General',
40
  ),
41
  )
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
+ 'css' => '',
12
  ), $atts ) );
13
  $content = wpb_js_remove_wpautop($content, true);
14
+ $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
15
+ wp_enqueue_style( 'info-list-css', plugins_url( '../css/infolist.css' , __FILE__ ));
16
  ob_start(); ?>
17
+ <ul class="mega-info-list <?php echo $css_class; ?>" style="list-style-type: none; height: 100%;">
18
  <?php echo $content; ?>
19
  </ul>
20
 
30
  "content_element" => true,
31
  "js_view" => 'VcColumnView',
32
  "category" => __('Mega Addons'),
33
+ "description" => __('Text blocks connected together in one list', ''),
34
  "icon" => plugin_dir_url( __FILE__ ).'../icons/infolist.png',
35
  'params' => array(
36
  array(
37
+ "type" => "css_editor",
38
+ "heading" => __( 'Design Options', 'infolist' ),
39
+ "param_name" => "css",
 
40
  "group" => 'General',
41
  ),
42
  )
render/info_list_son.php CHANGED
@@ -8,19 +8,29 @@ class WPBakeryShortCode_info_list_son extends WPBakeryShortCode {
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
 
11
  'style' => 'image',
12
  'image_id' => '',
13
  'icon' => '',
14
  'size' => '30px',
15
  'width' => '80px',
16
  'height' => '80px',
 
17
  'iconclr' => '#000',
18
  'iconbg' => '#fff',
19
- 'borderwidth' => '5px',
20
  'borderstyle' => 'solid',
21
  'radius' => '50%',
22
  'borderclr' => '',
23
- 'listwidth' => '2px',
 
 
 
 
 
 
 
 
24
  'liststyle' => 'solid',
25
  'listclr' => '#000',
26
  ), $atts ) );
@@ -29,20 +39,69 @@ class WPBakeryShortCode_info_list_son extends WPBakeryShortCode {
29
  }
30
  $content = wpb_js_remove_wpautop($content, true);
31
  ob_start(); ?>
32
- <li style="border-left: <?php echo $listwidth; ?> <?php echo $liststyle; ?> <?php echo $listclr; ?>;margin-left: <?php echo $width/2; ?>px; padding-top: 20px; float: none;">
33
- <div class="info-list-img" style="margin-left: -<?php echo $width/2; ?>px; height: <?php echo $height; ?>; padding-right: 20px; float: left;">
34
- <?php if ($style == 'image') { ?>
35
- <img src="<?php echo $image_url; ?>" style="width: <?php echo $width; ?>; height: <?php echo $height; ?>;">
36
- <?php } ?>
37
- <?php if ($style == 'icon') { ?>
38
- <i class="<?php echo $icon; ?>" aria-hidden="true" style="background: <?php echo $iconbg; ?>; width: <?php echo $width; ?>; height: <?php echo $height; ?>; line-height: <?php echo $height-$borderwidth*2; ?>px; font-size: <?php echo $size; ?>; color: <?php echo $iconclr; ?>;text-align: center; border: <?php echo $borderwidth; ?> <?php echo $borderstyle; ?> <?php echo $borderclr; ?>; border-radius: <?php echo $radius; ?>;"></i>
39
- <?php } ?>
40
- </div>
41
- <div class="info-list-content" style="padding-left: 20px;">
42
- <?php echo $content; ?>
43
- </div>
44
- <div class="clearfix" style="clear: both;"></div>
45
- </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  <?php return ob_get_clean();
48
  }
@@ -58,6 +117,17 @@ vc_map( array(
58
  "description" => __('Info list for information', ''),
59
  "icon" => plugin_dir_url( __FILE__ ).'../icons/infolist.png',
60
  'params' => array(
 
 
 
 
 
 
 
 
 
 
 
61
  array(
62
  "type" => "dropdown",
63
  "heading" => __( 'Image/Icon', 'infolist' ),
@@ -110,6 +180,19 @@ vc_map( array(
110
  "value" => "80px",
111
  "group" => 'Icon/Image',
112
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  array(
114
  "type" => "colorpicker",
115
  "heading" => __( 'Color', 'infolist' ),
@@ -137,7 +220,7 @@ vc_map( array(
137
  "description" => __( 'set border width eg, 5px', 'infolist' ),
138
  "dependency" => array('element' => "style", 'value' => 'icon'),
139
  "value" => "5px",
140
- "group" => 'Border',
141
  ),
142
 
143
  array(
@@ -145,13 +228,16 @@ vc_map( array(
145
  "heading" => __( 'Border Style', 'infolist' ),
146
  "param_name" => "borderstyle",
147
  "description" => __( 'select border style', 'infolist' ),
148
- "group" => 'Border',
149
  "dependency" => array('element' => "style", 'value' => 'icon'),
150
  "value" => array(
151
- "Solid" => "solid",
152
- "Dotted" => "dotted",
153
- "Dashed" => "dashed",
154
- "Inset" => "inset",
 
 
 
155
  )
156
  ),
157
  array(
@@ -161,7 +247,7 @@ vc_map( array(
161
  "description" => __( 'set border radius eg, 5px or 5%', 'infolist' ),
162
  "dependency" => array('element' => "style", 'value' => 'icon'),
163
  "value" => "50%",
164
- "group" => 'Border',
165
  ),
166
  array(
167
  "type" => "colorpicker",
@@ -169,32 +255,88 @@ vc_map( array(
169
  "param_name" => "borderclr",
170
  "description" => __('border color', 'infolist'),
171
  "dependency" => array('element' => "style", 'value' => 'icon'),
172
- "group" => 'Border',
173
  ),
174
 
175
- // Textarea Html
176
 
177
  array(
178
- "type" => "textarea_html",
179
- "heading" => __( 'Write info', 'infolist' ),
180
- "param_name" => "content",
181
- "value" => "<h3>Heading<h3><p>Write your info here.</p>",
182
  "group" => 'Content',
183
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
 
185
  // Settings
186
 
187
  array(
188
  "type" => "textfield",
189
- "heading" => __( 'Border width', 'infolist' ),
 
 
 
 
 
 
 
 
190
  "param_name" => "listwidth",
191
- "description" => __( 'set border width for info list in pixel eg, 2px', 'infolist' ),
192
- "value" => "2px",
193
  "group" => 'Settings',
194
  ),
195
  array(
196
  "type" => "dropdown",
197
- "heading" => __( 'Border Style', 'infolist' ),
198
  "param_name" => "liststyle",
199
  "description" => __( 'set border style for info list', 'infolist' ),
200
  "group" => 'Settings',
@@ -207,9 +349,9 @@ vc_map( array(
207
  ),
208
  array(
209
  "type" => "colorpicker",
210
- "heading" => __( 'Border color', 'infolist' ),
211
  "param_name" => "listclr",
212
- "description" => __('set border color for info list', 'infolist'),
213
  "group" => 'Settings',
214
  ),
215
  ),
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
+ 'theme' => 'left',
12
  'style' => 'image',
13
  'image_id' => '',
14
  'icon' => '',
15
  'size' => '30px',
16
  'width' => '80px',
17
  'height' => '80px',
18
+ 'imgstyle' => 'img-rounded',
19
  'iconclr' => '#000',
20
  'iconbg' => '#fff',
21
+ 'borderwidth' => '',
22
  'borderstyle' => 'solid',
23
  'radius' => '50%',
24
  'borderclr' => '',
25
+ 'title' => '',
26
+ 'titlesize' => '18px',
27
+ 'titleclr' => '#000',
28
+ 'title_weight' => 'default',
29
+ 'desc' => '',
30
+ 'descsize' => '15px',
31
+ 'connector_h' => '30px',
32
+ 'descclr' => '#000',
33
+ 'listwidth' => '1px',
34
  'liststyle' => 'solid',
35
  'listclr' => '#000',
36
  ), $atts ) );
39
  }
40
  $content = wpb_js_remove_wpautop($content, true);
41
  ob_start(); ?>
42
+ <div class="vc_info_list_outer">
43
+ <?php if ($theme == 'left') { ?>
44
+ <li class="vc_info_list" style="padding-bottom: <?php echo $connector_h; ?>; border-left: <?php echo $listwidth; ?> <?php echo $liststyle; ?> <?php echo $listclr; ?>; display: table;margin-left: <?php echo $width/2+$borderwidth; ?>px; float: none; margin-bottom: 2px;">
45
+ <div class="media">
46
+ <div class="media-left info-list-img" style="margin-left: -<?php echo $width/2+$borderwidth; ?>px; padding-right: 20px; float: left;">
47
+ <?php if ($style == 'image') { ?>
48
+ <img src="<?php echo $image_url; ?>" style="width: <?php echo $width; ?>; height: <?php echo $height; ?>;" class="<?php echo $imgstyle; ?>">
49
+ <?php } ?>
50
+ <?php if ($style == 'icon') { ?>
51
+ <div style="border: <?php echo $borderwidth; ?> <?php echo $borderstyle; ?> <?php echo $borderclr; ?>; border-radius: <?php echo $radius; ?>; background: <?php echo $iconbg; ?>;">
52
+ <span style="display:table; width: <?php echo $width; ?>; height: <?php echo $height; ?>; border-radius: <?php echo $radius; ?>; text-align: center;">
53
+ <span style="display: table-cell !important;vertical-align: middle !important;">
54
+
55
+ <i class="<?php echo $icon; ?>" aria-hidden="true" style="font-size: <?php echo $size; ?>; color: <?php echo $iconclr; ?>;"></i>
56
+
57
+ </span>
58
+ </span>
59
+ </div>
60
+ <?php } ?>
61
+ </div>
62
+ <div class="media-body">
63
+ <h2 style="font-size: <?php echo $titlesize; ?>; color: <?php echo $titleclr; ?>; font-style: <?php echo $title_weight; ?>;">
64
+ <?php echo $title; ?>
65
+ </h2>
66
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr; ?>;">
67
+ <?php echo $desc; ?>
68
+ </p>
69
+ </div>
70
+ </div>
71
+ </li>
72
+ <?php } ?>
73
+
74
+ <?php if ($theme == 'right') { ?>
75
+ <li class="vc_info_list" style="padding-bottom: <?php echo $connector_h; ?>; border-right: <?php echo $listwidth; ?> <?php echo $liststyle; ?> <?php echo $listclr; ?>; display: table;margin-right: <?php echo $width/2+$borderwidth; ?>px; float: none; margin-bottom: 2px;">
76
+ <div class="media" style="margin-right: -<?php echo $width/2+$borderwidth; ?>px;">
77
+ <div class="media-body text-right">
78
+ <h2 style="font-size: <?php echo $titlesize; ?>; color: <?php echo $titleclr; ?>; font-style: <?php echo $title_weight; ?>;">
79
+ <?php echo $title; ?>
80
+ </h2>
81
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr; ?>;">
82
+ <?php echo $desc; ?>
83
+ </p>
84
+ </div>
85
+ <div class="media-right" style="padding-left: 20px;">
86
+ <?php if ($style == 'image') { ?>
87
+ <img src="<?php echo $image_url; ?>" style="width: <?php echo $width; ?>; height: <?php echo $height; ?>;" class="<?php echo $imgstyle; ?>">
88
+ <?php } ?>
89
+ <?php if ($style == 'icon') { ?>
90
+ <div style="background: <?php echo $iconbg; ?>; border: <?php echo $borderwidth; ?> <?php echo $borderstyle; ?> <?php echo $borderclr; ?>; border-radius: <?php echo $radius; ?>;">
91
+ <span style="display:table; width: <?php echo $width; ?>; height: <?php echo $height; ?>; border-radius: <?php echo $radius; ?>;text-align: center;">
92
+ <span style="display: table-cell !important;vertical-align: middle !important;">
93
+
94
+ <i class="<?php echo $icon; ?>" aria-hidden="true" style="font-size: <?php echo $size; ?>; color: <?php echo $iconclr; ?>;"></i>
95
+
96
+ </span>
97
+ </span>
98
+ </div>
99
+ <?php } ?>
100
+ </div>
101
+ </div>
102
+ </li>
103
+ <?php } ?>
104
+ </div>
105
 
106
  <?php return ob_get_clean();
107
  }
117
  "description" => __('Info list for information', ''),
118
  "icon" => plugin_dir_url( __FILE__ ).'../icons/infolist.png',
119
  'params' => array(
120
+ array(
121
+ "type" => "dropdown",
122
+ "heading" => __( 'Style', 'infolist' ),
123
+ "param_name" => "theme",
124
+ "description" => __( 'choose style', 'infolist' ),
125
+ "group" => 'Icon/Image',
126
+ "value" => array(
127
+ "Left Align" => "left",
128
+ "Right Align" => "right",
129
+ )
130
+ ),
131
  array(
132
  "type" => "dropdown",
133
  "heading" => __( 'Image/Icon', 'infolist' ),
180
  "value" => "80px",
181
  "group" => 'Icon/Image',
182
  ),
183
+ array(
184
+ "type" => "dropdown",
185
+ "heading" => __( 'Image Style', 'infolist' ),
186
+ "param_name" => "imgstyle",
187
+ "description" => __( 'choose style', 'infolist' ),
188
+ "group" => 'Icon/Image',
189
+ "dependency" => array('element' => "style", 'value' => 'image'),
190
+ "value" => array(
191
+ "Rounded" => "img-rounded",
192
+ "Thumbnail" => "img-thumbnail",
193
+ "Circle" => "img-circle",
194
+ )
195
+ ),
196
  array(
197
  "type" => "colorpicker",
198
  "heading" => __( 'Color', 'infolist' ),
220
  "description" => __( 'set border width eg, 5px', 'infolist' ),
221
  "dependency" => array('element' => "style", 'value' => 'icon'),
222
  "value" => "5px",
223
+ "group" => 'Icon/Image',
224
  ),
225
 
226
  array(
228
  "heading" => __( 'Border Style', 'infolist' ),
229
  "param_name" => "borderstyle",
230
  "description" => __( 'select border style', 'infolist' ),
231
+ "group" => 'Icon/Image',
232
  "dependency" => array('element' => "style", 'value' => 'icon'),
233
  "value" => array(
234
+ "Solid" => "solid",
235
+ "Dotted" => "dotted",
236
+ "Rige" => "rige",
237
+ "Dashed" => "dashed",
238
+ "Double" => "double",
239
+ "Groove" => "groove",
240
+ "Inset" => "inset",
241
  )
242
  ),
243
  array(
247
  "description" => __( 'set border radius eg, 5px or 5%', 'infolist' ),
248
  "dependency" => array('element' => "style", 'value' => 'icon'),
249
  "value" => "50%",
250
+ "group" => 'Icon/Image',
251
  ),
252
  array(
253
  "type" => "colorpicker",
255
  "param_name" => "borderclr",
256
  "description" => __('border color', 'infolist'),
257
  "dependency" => array('element' => "style", 'value' => 'icon'),
258
+ "group" => 'Icon/Image',
259
  ),
260
 
261
+ // Text File
262
 
263
  array(
264
+ "type" => "textfield",
265
+ "heading" => __( 'Title', 'infolist' ),
266
+ "param_name" => "title",
 
267
  "group" => 'Content',
268
  ),
269
+ array(
270
+ "type" => "textfield",
271
+ "heading" => __( 'Title Font Size', 'infolist' ),
272
+ "param_name" => "titlesize",
273
+ "description" => __('set in pixel, default 18px', 'infolist'),
274
+ "value" => "18px",
275
+ "group" => 'Content',
276
+ ),
277
+ array(
278
+ "type" => "colorpicker",
279
+ "heading" => __( 'Title Color', 'infolist' ),
280
+ "param_name" => "titleclr",
281
+ "value" => "#000",
282
+ "group" => 'Content',
283
+ ),
284
+
285
+ array(
286
+ "type" => "dropdown",
287
+ "heading" => __( 'Font Weight', 'infolist' ),
288
+ "param_name" => "title_weight",
289
+ "group" => 'Content',
290
+ "value" => array(
291
+ "Default" => "default",
292
+ "Bold" => "bold",
293
+ "Italic" => "italic",
294
+ )
295
+ ),
296
+
297
+ array(
298
+ "type" => "textarea",
299
+ "heading" => __( 'Description', 'infolist' ),
300
+ "param_name" => "desc",
301
+ "group" => 'Content',
302
+ ),
303
+ array(
304
+ "type" => "textfield",
305
+ "heading" => __( 'Description Font Size', 'infolist' ),
306
+ "param_name" => "descsize",
307
+ "description" => __('set in pixel, default 15px', 'infolist'),
308
+ "value" => "15px",
309
+ "group" => 'Content',
310
+ ),
311
+ array(
312
+ "type" => "colorpicker",
313
+ "heading" => __( 'Description Color', 'infolist' ),
314
+ "param_name" => "descclr",
315
+ "value" => "#000",
316
+ "group" => 'Content',
317
+ ),
318
 
319
  // Settings
320
 
321
  array(
322
  "type" => "textfield",
323
+ "heading" => __( 'Connector Line Height', 'infolist' ),
324
+ "param_name" => "connector_h",
325
+ "description" => __( 'line between to info list. set in pixel default 30px', 'infolist' ),
326
+ "value" => "30px",
327
+ "group" => 'Settings',
328
+ ),
329
+ array(
330
+ "type" => "textfield",
331
+ "heading" => __( 'Connector Width', 'infolist' ),
332
  "param_name" => "listwidth",
333
+ "description" => __( 'set connector line width for info list in pixel eg, 1px', 'infolist' ),
334
+ "value" => "1px",
335
  "group" => 'Settings',
336
  ),
337
  array(
338
  "type" => "dropdown",
339
+ "heading" => __( 'Line Style', 'infolist' ),
340
  "param_name" => "liststyle",
341
  "description" => __( 'set border style for info list', 'infolist' ),
342
  "group" => 'Settings',
349
  ),
350
  array(
351
  "type" => "colorpicker",
352
+ "heading" => __( 'Line color', 'infolist' ),
353
  "param_name" => "listclr",
354
+ "description" => __('set connector line color for info list', 'infolist'),
355
  "group" => 'Settings',
356
  ),
357
  ),
render/infobanner.php DELETED
@@ -1,47 +0,0 @@
1
- <!-- Style1 & 2 info banner -->
2
- <?php if ($style_visibility == 'left' || $style_visibility == 'right') { ?>
3
- <div id="mega_info_bar" style="background: <?php echo $bg_clr; ?>; background-image: url('<?php echo $image_url; ?>'); padding-top: <?php echo $box_padding; ?>; padding-bottom: <?php echo $box_padding2; ?>; padding-left: <?php echo $box_padding3; ?>; padding-right: <?php echo $box_padding3; ?>;">
4
- <div class="ribbon">
5
- <span style="color: <?php echo $ribbon_clr; ?>; background-color: <?php echo $ribbon_bg; ?>">
6
- <?php echo $ribbon_text; ?>
7
- </span>
8
- </div>
9
- <div class="mega_wrap" style="width: <?php echo $pic_width; ?>; float: <?php echo $style_visibility; ?>; padding-top: <?php echo $pic_ptop; ?>; ">
10
- <img src="<?php echo $image_url2; ?>" style="width: <?php echo $pic_size; ?>; height: <?php echo $pic_height; ?>;">
11
- </div>
12
-
13
- <div class="mega_content" style="width: <?php echo $content_width; ?>; padding-top: <?php echo $content_ptop; ?>;padding-left: <?php echo $content_pleft; ?>;padding-right: <?php echo $content_pright; ?>;">
14
- <?php echo $content; ?>
15
-
16
- <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onhoverbg="<?php echo $btn_hvrbg; ?>" data-onleavebg="<?php echo $btn_bg; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo $btn_url; ?>" target="<?php echo $btn_next; ?>" class="mega_hvr_btn <?php echo $anim_style; ?>" style="font-size: <?php echo $btn_size; ?>; color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_width; ?> solid <?php echo $border_clr; ?>; padding: <?php echo $btn_ptop; ?> <?php echo $btn_pleft; ?>; border-radius: <?php echo $btn_radius; ?>;">
17
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
18
- </a>
19
- </div>
20
- <div class="clearfix"></div>
21
- </div>
22
- <?php } ?>
23
-
24
-
25
- <!-- Style3 info banner -->
26
- <?php if ($style_visibility == 'top_to_bottom') { ?>
27
- <div id="mega_info_bar_2" style="background: <?php echo $bg_clr; ?>; background-image: url('<?php echo $image_url; ?>');padding-top: <?php echo $box_padding; ?>; padding-bottom: <?php echo $box_padding2; ?>; padding-left: <?php echo $box_padding3; ?>; padding-right: <?php echo $box_padding3; ?>;">
28
- <div class="ribbon">
29
- <span style="color: <?php echo $ribbon_clr; ?>; background-color: <?php echo $ribbon_bg; ?>">
30
- <?php echo $ribbon_text; ?>
31
- </span>
32
- </div>
33
- <div class="mega_wrap" style="padding-top: <?php echo $pic_ptop; ?>;">
34
- <img src="<?php echo $image_url2; ?>" style="width: <?php echo $pic_size; ?>; height: <?php echo $pic_height; ?>;">
35
- </div>
36
-
37
- <div class="mega_content" style="padding-top: <?php echo $content_ptop; ?>;padding-left: <?php echo $content_pleft; ?>;padding-right: <?php echo $content_pright; ?>;">
38
- <?php echo $content; ?>
39
-
40
- <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onhoverbg="<?php echo $btn_hvrbg; ?>" data-onleavebg="<?php echo $btn_bg; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo $btn_url; ?>" target="<?php echo $btn_next; ?>" class="mega_hvr_btn <?php echo $anim_style; ?>" style="font-size: <?php echo $btn_size; ?>; color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_width; ?> solid <?php echo $border_clr; ?>; padding: <?php echo $btn_ptop; ?> <?php echo $btn_pleft; ?>;">
41
- <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
42
- </a>
43
- <br>
44
- </div>
45
- <div class="clearfix"></div>
46
- </div>
47
- <?php } ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
render/infobanners.php CHANGED
@@ -98,7 +98,7 @@ vc_map( array(
98
  "name" => __( 'Info Banner', 'info-banner-vc' ),
99
  "base" => "info_banner_vc",
100
  "category" => __('Mega Addons'),
101
- "description" => __('Info banners for poducts and sales', 'info-banner-vc'),
102
  "icon" => plugin_dir_url( __FILE__ ).'../icons/infobanner.png',
103
  'params' => array(
104
  array(
98
  "name" => __( 'Info Banner', 'info-banner-vc' ),
99
  "base" => "info_banner_vc",
100
  "category" => __('Mega Addons'),
101
+ "description" => __('Displays the banner information', 'info-banner-vc'),
102
  "icon" => plugin_dir_url( __FILE__ ).'../icons/infobanner.png',
103
  'params' => array(
104
  array(
render/infobox.php CHANGED
@@ -73,7 +73,7 @@ vc_map( array(
73
  "name" => __( 'Info Box', 'infobox' ),
74
  "base" => "mvc_infobox",
75
  "category" => __('Mega Addons'),
76
- "description" => __('Service info box', 'infobox'),
77
  "icon" => plugin_dir_url( __FILE__ ).'../icons/infobox.png',
78
  'params' => array(
79
  array(
73
  "name" => __( 'Info Box', 'infobox' ),
74
  "base" => "mvc_infobox",
75
  "category" => __('Mega Addons'),
76
+ "description" => __('Add icon box with custom font icon', 'infobox'),
77
  "icon" => plugin_dir_url( __FILE__ ).'../icons/infobox.png',
78
  'params' => array(
79
  array(
render/interectivebanner.php CHANGED
@@ -27,7 +27,7 @@ class WPBakeryShortCode_interective_banner extends WPBakeryShortCode {
27
  wp_enqueue_style( 'int-banner-css', plugins_url( '../css/int_banner.css' , __FILE__ ));
28
  ob_start(); ?>
29
  <!-- HTML DESIGN HERE -->
30
- <div class="grid">
31
  <figure class="<?php echo $effects; ?>" style="background: <?php echo $bgclr; ?>; width: 100%;">
32
  <img src="<?php echo $image_url; ?>" style="height: <?php echo $height; ?>; width: 100%;" />
33
  <figcaption>
@@ -39,7 +39,13 @@ class WPBakeryShortCode_interective_banner extends WPBakeryShortCode {
39
  <?php echo $desc; ?>
40
  </p>
41
  </div>
42
- <a href="<?php echo $url; ?>" target="<?php echo $blank; ?>"></a>
 
 
 
 
 
 
43
  </figcaption>
44
  </figure>
45
  </div>
27
  wp_enqueue_style( 'int-banner-css', plugins_url( '../css/int_banner.css' , __FILE__ ));
28
  ob_start(); ?>
29
  <!-- HTML DESIGN HERE -->
30
+ <div class="grid vc-interactive-banner">
31
  <figure class="<?php echo $effects; ?>" style="background: <?php echo $bgclr; ?>; width: 100%;">
32
  <img src="<?php echo $image_url; ?>" style="height: <?php echo $height; ?>; width: 100%;" />
33
  <figcaption>
39
  <?php echo $desc; ?>
40
  </p>
41
  </div>
42
+ <?php if (isset($url) && $url != '') { ?>
43
+ <a href="<?php echo $url; ?>" target="<?php echo $blank; ?>">
44
+ <?php } ?>
45
+ <?php if (isset($url) && $url == NULL) { ?>
46
+ <a>
47
+ <?php } ?>
48
+ </a>
49
  </figcaption>
50
  </figure>
51
  </div>
render/modalPopup.php CHANGED
@@ -40,7 +40,7 @@ class WPBakeryShortCode_modal_popup_box extends WPBakeryShortCode {
40
  <?php echo $btntext; ?>
41
  </button>
42
 
43
- <div class="mega-model-popup <?php echo $animation; ?> animated" id="popup-<?php echo $id; ?>" style="display: none; margin-top: <?php echo $top; ?>; width: 95%;max-width: <?php echo $width; ?>; background: <?php echo $bgclr; ?>;">
44
  <span class="b-close"><span><img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/cross.png"></span></span>
45
  <div class="model-popup-container">
46
  <h2 style="border-bottom: 1px solid <?php echo $titleborder; ?>; text-align: <?php echo $titlealign; ?>; font-size: <?php echo $titlesize; ?>; line-height: <?php echo $titleline; ?>; color: <?php echo $titleclr; ?>; background: <?php echo $titlebg; ?>; margin: 0px; padding: 0px 20px;">
@@ -63,7 +63,7 @@ vc_map( array(
63
  "name" => __( 'Modal Popup', 'modal_popup' ),
64
  "base" => "modal_popup_box",
65
  "category" => __('Mega Addons'),
66
- "description" => __('show content in popup', ''),
67
  "icon" => plugin_dir_url( __FILE__ ).'../icons/popup.png',
68
  'params' => array(
69
  array(
40
  <?php echo $btntext; ?>
41
  </button>
42
 
43
+ <div class="mega-model-popup <?php echo $animation; ?> animated" id="popup-<?php echo $id; ?>" style="position:fixed;display: none; margin-top: <?php echo $top; ?>; width: 95%;max-width: <?php echo $width; ?>; background: <?php echo $bgclr; ?>;">
44
  <span class="b-close"><span><img src="<?php echo plugin_dir_url( __FILE__ ); ?>../images/cross.png"></span></span>
45
  <div class="model-popup-container">
46
  <h2 style="border-bottom: 1px solid <?php echo $titleborder; ?>; text-align: <?php echo $titlealign; ?>; font-size: <?php echo $titlesize; ?>; line-height: <?php echo $titleline; ?>; color: <?php echo $titleclr; ?>; background: <?php echo $titlebg; ?>; margin: 0px; padding: 0px 20px;">
63
  "name" => __( 'Modal Popup', 'modal_popup' ),
64
  "base" => "modal_popup_box",
65
  "category" => __('Mega Addons'),
66
+ "description" => __('Add modal box in your content', ''),
67
  "icon" => plugin_dir_url( __FILE__ ).'../icons/popup.png',
68
  'params' => array(
69
  array(
render/new.php ADDED
@@ -0,0 +1,319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ die( '-1' );
4
+ }
5
+
6
+ class WPBakeryShortCode_info_banners_vc extends WPBakeryShortCode {
7
+
8
+ protected function content( $atts, $content = null ) {
9
+
10
+ extract( shortcode_atts( array(
11
+ 'style_visibility' => 'top_to_bottom',
12
+ 'pic_width' => '50%',
13
+ 'content_width' => '50%',
14
+ 'image_id' => '',
15
+ 'pic_size' => '',
16
+ 'pic_height' => '',
17
+ 'img_padding' => '',
18
+ 'text_padding' => '',
19
+ 'ribbon_text' => '',
20
+ 'ribbon_clr' => '',
21
+ 'ribbon_bg' => '',
22
+ 'btn_icon' => '',
23
+ 'btn_text' => '',
24
+ 'btn_ptop' => '20px',
25
+ 'btn_pleft' => '60px',
26
+ 'btn_size' => '18px',
27
+ 'btn_url' => '',
28
+ 'border_style' => '',
29
+ 'btn_radius' => '',
30
+ 'btn_clr' => '',
31
+ 'btn_bg' => '',
32
+ 'btn_hvrclr' => '',
33
+ 'btn_hvrbg' => '',
34
+ 'css' => '',
35
+ ), $atts ) );
36
+ $content = wpb_js_remove_wpautop($content);
37
+ $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
38
+ if ($image_id != '') {
39
+ $image_url = wp_get_attachment_url( $image_id );
40
+ }
41
+ wp_enqueue_style( 'infobanner-css', plugins_url( '../css/infobanner.css' , __FILE__ ));
42
+ ob_start(); ?>
43
+ <!-- Style1 & 2 info banner -->
44
+ <?php if ($style_visibility == 'left' || $style_visibility == 'right') { ?>
45
+ <div id="mega_info_bar" class="<?php echo $css_class; ?>">
46
+ <div class="ribbon">
47
+ <span style="color: <?php echo $ribbon_clr; ?>; background-color: <?php echo $ribbon_bg; ?>">
48
+ <?php echo $ribbon_text; ?>
49
+ </span>
50
+ </div>
51
+ <div class="mega_wrap" style="width: <?php echo $pic_width-1; ?>%; float: <?php echo $style_visibility; ?>; padding: <?php echo $img_padding; ?>;">
52
+ <img src="<?php echo $image_url; ?>" style="width: <?php echo $pic_size; ?>; height: <?php echo $pic_height; ?>;">
53
+ </div>
54
+
55
+ <div class="mega_content" style="width: <?php echo $content_width-1; ?>%; padding: <?php echo $text_padding; ?>;">
56
+ <?php echo $content; ?><br>
57
+
58
+ <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onhoverbg="<?php echo $btn_hvrbg; ?>" data-onleavebg="<?php echo $btn_bg; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo $btn_url; ?>" class="mega_hvr_btn <?php echo $anim_style; ?>" style="font-size: <?php echo $btn_size; ?>; color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_style; ?>; padding: <?php echo $btn_ptop/2; ?>px <?php echo $btn_pleft/2; ?>px; border-radius: <?php echo $btn_radius; ?>;">
59
+ <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
60
+ </a>
61
+ </div>
62
+ <div class="clearfix"></div>
63
+ </div>
64
+ <?php } ?>
65
+
66
+
67
+ <!-- Style3 info banner -->
68
+ <?php if ($style_visibility == 'top_to_bottom') { ?>
69
+ <div id="mega_info_bar_2" class="<?php echo $css_class; ?>">
70
+ <div class="ribbon">
71
+ <span style="color: <?php echo $ribbon_clr; ?>; background-color: <?php echo $ribbon_bg; ?>">
72
+ <?php echo $ribbon_text; ?>
73
+ </span>
74
+ </div>
75
+ <div class="mega_wrap" style="padding: <?php echo $img_padding; ?>;">
76
+ <img src="<?php echo $image_url; ?>" style="width: <?php echo $pic_size; ?>; height: <?php echo $pic_height; ?>;">
77
+ </div>
78
+
79
+ <div class="mega_content" style="padding: <?php echo $text_padding; ?>;">
80
+ <?php echo $content; ?><br>
81
+ <a data-onhovercolor="<?php echo $btn_hvrclr; ?>" data-onhoverbg="<?php echo $btn_hvrbg; ?>" data-onleavebg="<?php echo $btn_bg; ?>" data-onleavecolor="<?php echo $btn_clr; ?>" href="<?php echo $btn_url; ?>" class="mega_hvr_btn <?php echo $anim_style; ?>" style="font-size: <?php echo $btn_size; ?>; color: <?php echo $btn_clr; ?>; background: <?php echo $btn_bg; ?>; border: <?php echo $border_style; ?>; padding: <?php echo $btn_ptop/2; ?>px <?php echo $btn_pleft/2; ?>px; border-radius: <?php echo $btn_radius; ?>;">
82
+ <i class="<?php echo $btn_icon; ?>"></i> <?php echo $btn_text; ?>
83
+ </a>
84
+ <br>
85
+ </div>
86
+ <div class="clearfix"></div>
87
+ </div>
88
+ <?php } ?>
89
+
90
+ <?php return ob_get_clean();
91
+ }
92
+ }
93
+
94
+
95
+ vc_map( array(
96
+ "name" => __( 'Info Banner', 'info-banner-vc' ),
97
+ "base" => "info_banners_vc",
98
+ "category" => __('Mega Addons'),
99
+ "description" => __('Info banners for poducts and sales', 'info-banner-vc'),
100
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/infobanner.png',
101
+ 'params' => array(
102
+ array(
103
+ "type" => "dropdown",
104
+ "heading" => __( 'Style', 'info-banner-vc' ),
105
+ "param_name" => "style_visibility",
106
+ "description" => __( 'select styles for info banner', 'info-banner-vc' ),
107
+ "group" => 'General',
108
+ "value" => array(
109
+ 'Top image bottom content' => 'top_to_bottom',
110
+ 'Left image right content' => 'left',
111
+ 'Left content right image' => 'right',
112
+ )
113
+ ),
114
+
115
+ array(
116
+ "type" => "textfield",
117
+ "heading" => __( 'Picture box width', 'info-banner-vc' ),
118
+ "param_name" => "pic_width",
119
+ "description" => __( 'Set the width of picture box in percentage e.g 50%', 'info-banner-vc' ),
120
+ "dependency" => array('element' => "style_visibility", 'value' => array('left', 'right',)),
121
+ "value" => "50%",
122
+ "group" => 'General',
123
+ ),
124
+
125
+ array(
126
+ "type" => "textfield",
127
+ "heading" => __( 'Content box width', 'info-banner-vc' ),
128
+ "param_name" => "content_width",
129
+ "description" => __( 'Set the width of content box in percentage e.g 50%', 'info-banner-vc' ),
130
+ "dependency" => array('element' => "style_visibility", 'value' => array('left', 'right',)),
131
+ "value" => "50%",
132
+ "group" => 'General',
133
+ ),
134
+
135
+ // Content Area
136
+
137
+ array(
138
+ "type" => "attach_image",
139
+ "heading" => __( 'Banner image', 'info-banner-vc' ),
140
+ "param_name" => "image_id",
141
+ "description" => __( 'Select image for banner logo', 'info-banner-vc' ),
142
+ "group" => 'Image',
143
+ ),
144
+
145
+ array(
146
+ "type" => "textfield",
147
+ "heading" => __( 'Image width', 'info-banner-vc' ),
148
+ "param_name" => "pic_size",
149
+ "description" => __( 'set image width e.g 100px or leave blank for default', 'info-banner-vc' ),
150
+ "group" => 'Image',
151
+ ),
152
+ array(
153
+ "type" => "textfield",
154
+ "heading" => __( 'Image height', 'info-banner-vc' ),
155
+ "param_name" => "pic_height",
156
+ "description" => __( 'set image height e.g 100px or leave blank for default', 'info-banner-vc' ),
157
+ "group" => 'Image',
158
+ ),
159
+
160
+ array(
161
+ "type" => "textfield",
162
+ "heading" => __( 'Padding ', 'info-banner-vc' ),
163
+ "param_name" => "img_padding",
164
+ "description" => __( 'top right bottom left', 'info-banner-vc' ),
165
+ "value" => "0px 0px 0px 0px",
166
+ "group" => 'Image',
167
+ ),
168
+
169
+ array(
170
+ "type" => "textfield",
171
+ "heading" => __( 'Padding ', 'info-banner-vc' ),
172
+ "param_name" => "text_padding",
173
+ "description" => __( 'top right bottom left', 'info-banner-vc' ),
174
+ "value" => "0px 0px 0px 0px",
175
+ "group" => 'Content',
176
+ ),
177
+ array(
178
+ "type" => "textarea_html",
179
+ "heading" => __( 'Description', 'info-banner-vc' ),
180
+ "param_name" => "content",
181
+ "description" => __( 'write detail about info banner', 'info-banner-vc' ),
182
+ "group" => 'Content',
183
+ "value" => '<h2>Caption Title</h2><p>caption detail here</p>'
184
+ ),
185
+
186
+
187
+ /** Ribbon Setting **/
188
+
189
+ array(
190
+ "type" => "textfield",
191
+ "heading" => __( 'Ribbon text', 'info-banner-vc' ),
192
+ "param_name" => "ribbon_text",
193
+ "description" => __( 'write ribbon text for special offer or leave blank', 'info-banner-vc' ),
194
+ "group" => 'Ribbon',
195
+ ),
196
+
197
+ array(
198
+ "type" => "colorpicker",
199
+ "heading" => __( 'Text color', 'info-banner-vc' ),
200
+ "param_name" => "ribbon_clr",
201
+ "description" => __( 'Ribbon text color', 'info-banner-vc' ),
202
+ "group" => 'Ribbon',
203
+ ),
204
+
205
+ array(
206
+ "type" => "colorpicker",
207
+ "heading" => __( 'Background color', 'info-banner-vc' ),
208
+ "param_name" => "ribbon_bg",
209
+ "description" => __( 'Ribbon background color', 'info-banner-vc' ),
210
+ "group" => 'Ribbon',
211
+ ),
212
+
213
+
214
+ /** Button Setting **/
215
+
216
+ array(
217
+ "type" => "iconpicker",
218
+ "heading" => __( 'Select Icon', 'info-banner-vc' ),
219
+ "param_name" => "btn_icon",
220
+ "description" => __( 'it will be show within text', 'info-banner-vc' ),
221
+ "group" => 'Button',
222
+ ),
223
+ array(
224
+ "type" => "textfield",
225
+ "heading" => __( 'Button text', 'info-banner-vc' ),
226
+ "param_name" => "btn_text",
227
+ "description" => __( 'Write button text', 'info-banner-vc' ),
228
+ "group" => 'Button',
229
+ ),
230
+ array(
231
+ "type" => "textfield",
232
+ "heading" => __( 'Button Height', 'info-banner-vc' ),
233
+ "param_name" => "btn_ptop",
234
+ "description" => __( 'button height. set in pixel e.g 20px', 'info-banner-vc' ),
235
+ "value" => "20px",
236
+ "group" => 'Button',
237
+ ),
238
+
239
+ array(
240
+ "type" => "textfield",
241
+ "heading" => __( 'Button Width', 'info-banner-vc' ),
242
+ "param_name" => "btn_pleft",
243
+ "description" => __( 'button width. set in pixel e.g 60px', 'info-banner-vc' ),
244
+ "value" => "60px",
245
+ "group" => 'Button',
246
+ ),
247
+ array(
248
+ "type" => "textfield",
249
+ "heading" => __( 'Text font size', 'info-banner-vc' ),
250
+ "param_name" => "btn_size",
251
+ "description" => __( 'Set font size in pixel e.g 18px', 'info-banner-vc' ),
252
+ "value" => "18px",
253
+ "group" => 'Button',
254
+ ),
255
+ array(
256
+ "type" => "textfield",
257
+ "heading" => __( 'Button URL', 'info-banner-vc' ),
258
+ "param_name" => "btn_url",
259
+ "description" => __( 'Write button url as link', 'info-banner-vc' ),
260
+ "group" => 'Button',
261
+ ),
262
+
263
+ array(
264
+ "type" => "textfield",
265
+ "heading" => __( 'Border Style', 'info-banner-vc' ),
266
+ "param_name" => "border_style",
267
+ "description" => __( 'height style color', 'info-banner-vc' ),
268
+ "value" => "0px solid #fff",
269
+ "group" => 'Button',
270
+ ),
271
+ array(
272
+ "type" => "textfield",
273
+ "heading" => __( 'Border Radius', 'info-banner-vc' ),
274
+ "param_name" => "btn_radius",
275
+ "description" => __( 'set in pixel eg 5px or leave blank', 'info-banner-vc' ),
276
+ "value" => "5px",
277
+ "group" => 'Button',
278
+ ),
279
+
280
+ array(
281
+ "type" => "colorpicker",
282
+ "heading" => __( 'Text color', 'info-banner-vc' ),
283
+ "param_name" => "btn_clr",
284
+ "description" => __( 'Set color of text e.g #ffff', 'info-banner-vc' ),
285
+ "group" => 'Button',
286
+ ),
287
+
288
+ array(
289
+ "type" => "colorpicker",
290
+ "heading" => __( 'Background color', 'info-banner-vc' ),
291
+ "param_name" => "btn_bg",
292
+ "description" => __( 'Set background color of text e.g #000', 'info-banner-vc' ),
293
+ "group" => 'Button',
294
+ ),
295
+
296
+ array(
297
+ "type" => "colorpicker",
298
+ "heading" => __( 'Hover Text color', 'info-banner-vc' ),
299
+ "param_name" => "btn_hvrclr",
300
+ "description" => __( 'Set color of text on hover e.g #ffff', 'info-banner-vc' ),
301
+ "group" => 'Button',
302
+ ),
303
+
304
+ array(
305
+ "type" => "colorpicker",
306
+ "heading" => __( 'Background color', 'info-banner-vc' ),
307
+ "param_name" => "btn_hvrbg",
308
+ "description" => __( 'Set color of background on hover e.g #269CE9', 'info-banner-vc' ),
309
+ "group" => 'Button',
310
+ ),
311
+ array(
312
+ "type" => "css_editor",
313
+ "heading" => __( 'Styling Info Banner', 'info-banner-vc' ),
314
+ "param_name" => "css",
315
+ "group" => 'Design Options',
316
+ ),
317
+ ),
318
+ ) );
319
+
render/new2.php ADDED
@@ -0,0 +1,149 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ die( '-1' );
4
+ }
5
+
6
+ class WPBakeryShortCode_mvc_timeline_son extends WPBakeryShortCode {
7
+
8
+ protected function content( $atts, $content = null ) {
9
+
10
+ extract( shortcode_atts( array(
11
+ 'date' => '',
12
+ 'clr' => '',
13
+ 'size' => '',
14
+ 'centerstyle' => 'fonticon',
15
+ 'bgclr' => '',
16
+ 'arrowclr' => '',
17
+ 'icon' => '',
18
+ 'icon_size' => '',
19
+ 'css' => '',
20
+ ), $atts ) );
21
+ $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
22
+ $content = wpb_js_remove_wpautop($content, true);
23
+ ob_start(); ?>
24
+
25
+ <div class="cd-timeline-block">
26
+ <?php if ($centerstyle == 'fonticon') { ?>
27
+ <div class="cd-timeline-img cd-picture" style="background: <?php echo $bgclr; ?>; border-radius: 50%; text-align:center;">
28
+ <i class="<?php echo $icon; ?>" aria-hidden="true" style="font-size: <?php echo $icon_size; ?>; color: #fff;vertical-align: middle;"></i>
29
+ </div>
30
+ <?php } ?>
31
+
32
+ <?php if ($centerstyle == 'dot') { ?>
33
+ <div class="cd-timeline-img cd-timeline-dot cd-picture" style="background: <?php echo $bgclr; ?>; border-radius: 50%;">
34
+ </div>
35
+ <?php } ?>
36
+
37
+ <div class="cd-timeline-content <?php echo $css_class; ?>">
38
+ <span class="timeline-arrow" style="border-right-color: <?php echo $arrowclr; ?>"></span>
39
+ <span class="timeline-arrow" style="border-left-color: <?php echo $arrowclr; ?>"></span>
40
+ <span class="timeline-arrow" style="border-right: 7px solid <?php echo $arrowclr; ?>;"></span>
41
+
42
+ <?php echo $content; ?>
43
+ <span class="cd-date" style="color: <?php echo $clr; ?>; font-size: <?php echo $size; ?>;">
44
+ <?php echo $date ?>
45
+ </span>
46
+ </div>
47
+ </div>
48
+
49
+ <?php return ob_get_clean();
50
+ }
51
+ }
52
+
53
+
54
+ vc_map( array(
55
+ "name" => __( 'Timeline', 'timeline' ),
56
+ "base" => "mvc_timeline_son",
57
+ "as_child" => array('only' => 'mvc_timeline_father'),
58
+ "content_element" => true,
59
+ "category" => __('Mega Addons'),
60
+ "description" => __('Add multiple images and text', ''),
61
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/timeline.png',
62
+ 'params' => array(
63
+ array(
64
+ "type" => "textfield",
65
+ "heading" => __( 'Date', 'timeline' ),
66
+ "param_name" => "date",
67
+ "description" => __( 'Write timeline date e.g Jan 15', 'timeline' ),
68
+ "group" => 'General',
69
+ ),
70
+
71
+ array(
72
+ "type" => "colorpicker",
73
+ "heading" => __( 'Color', 'timeline' ),
74
+ "param_name" => "clr",
75
+ "description" => __( 'color of the date', 'timeline' ),
76
+ "group" => 'General',
77
+ ),
78
+
79
+ array(
80
+ "type" => "textfield",
81
+ "heading" => __( 'Font size', 'timeline' ),
82
+ "param_name" => "size",
83
+ "description" => __( 'fone size of date in pixel e.g 17px', 'timeline' ),
84
+ "group" => 'General',
85
+ ),
86
+
87
+ array(
88
+ "type" => "textarea_html",
89
+ "heading" => __( 'Content Details', 'timeline' ),
90
+ "param_name" => "content",
91
+ "description" => __( 'Add heading, details, pictures or video url', 'timeline' ),
92
+ "value" => '<h3><b>Title of section</b></h3><p>Details here</p> <a href="#0" class="cd-read-more" >Read more</a>',
93
+ "group" => 'Content',
94
+ ),
95
+
96
+ array(
97
+ "type" => "dropdown",
98
+ "heading" => __( 'Select style', 'timeline' ),
99
+ "param_name" => "centerstyle",
100
+ "description" => __( 'style for center', 'timeline' ),
101
+ "group" => 'Timeline Center',
102
+ "value" => array(
103
+ 'Center With Font Icon' => 'fonticon',
104
+ 'Only Dot' => 'dot',
105
+ )
106
+ ),
107
+
108
+ array(
109
+ "type" => "colorpicker",
110
+ "heading" => __( 'Background', 'timeline' ),
111
+ "param_name" => "bgclr",
112
+ "description" => __( 'Center dot background color', 'timeline' ),
113
+ "group" => 'Timeline Center',
114
+ ),
115
+
116
+ array(
117
+ "type" => "iconpicker",
118
+ "heading" => __( 'Font Icon', 'timeline' ),
119
+ "param_name" => "icon",
120
+ "description" => __( 'choose font awesome or leave blank', 'timeline' ),
121
+ "dependency" => array('element' => "centerstyle", 'value' => 'fonticon'),
122
+ "group" => 'Timeline Center',
123
+ ),
124
+
125
+ array(
126
+ "type" => "textfield",
127
+ "heading" => __( 'Font size', 'timeline' ),
128
+ "param_name" => "icon_size",
129
+ "description" => __( 'Icon font size e.g 17px', 'timeline' ),
130
+ "dependency" => array('element' => "centerstyle", 'value' => 'fonticon'),
131
+ "group" => 'Timeline Center',
132
+ ),
133
+
134
+ array(
135
+ "type" => "colorpicker",
136
+ "heading" => __( 'Arrow Color', 'timeline' ),
137
+ "param_name" => "arrowclr",
138
+ "description" => __( 'set timeline arrow color', 'timeline' ),
139
+ "group" => 'Design Option',
140
+ ),
141
+
142
+ array(
143
+ "type" => "css_editor",
144
+ "heading" => __( 'Styles', 'timeline' ),
145
+ "param_name" => "css",
146
+ "group" => 'Design Option',
147
+ ),
148
+ )
149
+ ) );
render/photobook.php CHANGED
@@ -26,7 +26,7 @@ class WPBakeryShortCode_mvc_photobook extends WPBakeryShortCode {
26
  wp_enqueue_style( 'photobook-css', plugins_url( '../css/photobook.css' , __FILE__ ));
27
  wp_enqueue_script( 'easing-js', plugins_url( '../js/jquery.easing.1.3.js' , __FILE__ ), array('jquery') );
28
  wp_enqueue_script( 'photobook-js', plugins_url( '../js/jquery.booklet.latest.min.js' , __FILE__ ), array('jquery', 'jquery-ui-core', 'jquery-ui-draggable') );
29
- wp_enqueue_script( 'zoom-js', plugins_url( '../js/jquery.zoom.min.js' , __FILE__ ), array('jquery') );
30
  $content = wpb_js_remove_wpautop($content, true);
31
  ob_start(); ?>
32
 
@@ -109,13 +109,13 @@ vc_map( array(
109
  "group" => 'Settings',
110
  ),
111
 
112
- array(
113
  "type" => "textfield",
114
  "heading" => __( 'Zoom Depth', 'photobook' ),
115
  "param_name" => "zoom_depth",
116
  "description" => __( 'The default value is 1, meaning the zoomed image should be at 100% of its natural width and height', 'photobook' ),
117
  "group" => 'Settings',
118
- ),
119
 
120
  array(
121
  "type" => "textfield",
@@ -149,7 +149,7 @@ vc_map( array(
149
  )
150
  ),
151
 
152
- array(
153
  "type" => "checkbox",
154
  "heading" => __( 'Zoom on Hover', 'photobook' ),
155
  "param_name" => "zoom",
@@ -158,7 +158,7 @@ vc_map( array(
158
  "value" => array(
159
  "Enable" => "enable",
160
  )
161
- ),
162
 
163
  array(
164
  "type" => "checkbox",
26
  wp_enqueue_style( 'photobook-css', plugins_url( '../css/photobook.css' , __FILE__ ));
27
  wp_enqueue_script( 'easing-js', plugins_url( '../js/jquery.easing.1.3.js' , __FILE__ ), array('jquery') );
28
  wp_enqueue_script( 'photobook-js', plugins_url( '../js/jquery.booklet.latest.min.js' , __FILE__ ), array('jquery', 'jquery-ui-core', 'jquery-ui-draggable') );
29
+ // wp_enqueue_script( 'zoom-js', plugins_url( '../js/jquery.zoom.min.js' , __FILE__ ), array('jquery') );
30
  $content = wpb_js_remove_wpautop($content, true);
31
  ob_start(); ?>
32
 
109
  "group" => 'Settings',
110
  ),
111
 
112
+ /*array(
113
  "type" => "textfield",
114
  "heading" => __( 'Zoom Depth', 'photobook' ),
115
  "param_name" => "zoom_depth",
116
  "description" => __( 'The default value is 1, meaning the zoomed image should be at 100% of its natural width and height', 'photobook' ),
117
  "group" => 'Settings',
118
+ ),*/
119
 
120
  array(
121
  "type" => "textfield",
149
  )
150
  ),
151
 
152
+ /*array(
153
  "type" => "checkbox",
154
  "heading" => __( 'Zoom on Hover', 'photobook' ),
155
  "param_name" => "zoom",
158
  "value" => array(
159
  "Enable" => "enable",
160
  )
161
+ ),*/
162
 
163
  array(
164
  "type" => "checkbox",
render/post_carousel.php ADDED
@@ -0,0 +1,386 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ die( '-1' );
4
+ }
5
+
6
+ class WPBakeryShortCode_vc_posts_carousel extends WPBakeryShortCode {
7
+
8
+ protected function content( $atts, $content = null ) {
9
+
10
+ extract( shortcode_atts( array(
11
+ 'style' => 'mega-post-carousel1',
12
+ 'settings' => '',
13
+ 'arrow' => 'true',
14
+ 'dot' => 'true',
15
+ 'autoplay' => 'true',
16
+ 'slide_visible' => '1',
17
+ 'slide_scroll' => '1',
18
+ 'comment' => 'block',
19
+ 'catg' => 'visible',
20
+ 'imgheight' => '200px',
21
+ 'txtsize' => '18px',
22
+ 'descsize' => '14px',
23
+ 'txtclr' => '#000',
24
+ 'dateclr' => '#000',
25
+ 'descclr' => '#888',
26
+ ), $atts ) );
27
+ if (isset($image_id) && $image_id != '') {
28
+ $image_url = wp_get_attachment_url( $image_id );
29
+ }
30
+ // var_dump($settings);
31
+ $content = wpb_js_remove_wpautop($content);
32
+ wp_enqueue_style( 'slick-carousel-css', plugins_url( '../css/slick-carousal.css' , __FILE__ ));
33
+ wp_enqueue_style( 'post-carousel-css', plugins_url( '../css/post-carousel.css' , __FILE__ ));
34
+ wp_enqueue_script( 'slick-js', plugins_url( '../js/slick.js' , __FILE__ ), array('jquery'));
35
+ wp_enqueue_script( 'custom-js', plugins_url( '../js/custom-tm.js' , __FILE__ ), array('jquery'));
36
+
37
+ $args = array(
38
+ 'posts_per_page' => -1,
39
+ );
40
+ $seperate_settings = explode('|', $settings);
41
+
42
+ foreach ($seperate_settings as $setting) {
43
+ $key_val = explode(':', $setting);
44
+ if ($key_val[0] == 'size') {
45
+ $args['posts_per_page'] = $key_val[1];
46
+ } else {
47
+ $args[$key_val[0]] = $key_val[1];
48
+ }
49
+ }
50
+
51
+ // The Query
52
+ $the_query = new WP_Query( $args );
53
+
54
+ // The Loop
55
+ if ( $the_query->have_posts() ) { ?>
56
+ <section class="slider tm-slider vc-post-styling" data-slick='{"arrows": <?php echo $arrow; ?>, "dots": <?php echo $dot; ?>, "autoplay": <?php echo $autoplay; ?>, "slidesToShow": <?php echo $slide_visible; ?>, "slidesToScroll": <?php echo $slide_scroll; ?>}'>
57
+ <?php while ( $the_query->have_posts() ) { ?>
58
+ <div>
59
+ <?php $the_query->the_post(); ?>
60
+
61
+ <?php if ($style == 'mega-post-carousel1') { ?>
62
+ <div class="mega-post-carousel1">
63
+ <div class="mega-post-image">
64
+ <?php the_post_thumbnail('large', array('class' => 'your-class-name')); ?>
65
+
66
+ <span class="mega-comment-box" style="display: <?php echo $comment; ?>">
67
+ <span class="mega-post-comment">
68
+ <a href=""><?php $cu = wp_count_comments(get_the_id() ); echo $cu -> total_comments; ?> </a>
69
+ </span>
70
+ </span>
71
+ </div>
72
+
73
+ <div class="mega-post-category" style="display: <?php echo $catg; ?>">
74
+ <?php $categories = get_the_category();
75
+ $separator = ' ';
76
+ $output = '';
77
+ if ( ! empty( $categories ) ) {
78
+ foreach( $categories as $category ) {
79
+ $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
80
+ }
81
+ echo trim( $output, $separator );
82
+ } ?>
83
+ </div>
84
+
85
+ <h3 class="mega-post-title">
86
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
87
+ </h3>
88
+
89
+ <span class="mega-post-meta" style="color: <?php echo $dateclr; ?>;">
90
+ <i class="fa fa-user"></i>
91
+ <a href="" style="color: <?php echo $dateclr; ?>;">
92
+ <?php echo the_author() ?>
93
+ </a>
94
+ </span>
95
+ <span class="mega-post-date" style="color: <?php echo $dateclr; ?>;">
96
+ <i class="fa fa-clock-o"></i>
97
+ <?php echo get_the_date() ?>
98
+ </span>
99
+
100
+ <div class="clearfix"></div>
101
+ <div class="mega-post-para">
102
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
103
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
104
+ </p>
105
+ </div>
106
+ </div>
107
+ <?php } ?>
108
+
109
+ <?php if ($style == 'mega-post-carousel2') { ?>
110
+ <div class="mega-post-carousel2">
111
+ <div class="mega-post-image">
112
+ <?php the_post_thumbnail('large', array('class' => 'your-class-name')); ?>
113
+ </div>
114
+ <div class="mega-post-content">
115
+ <h3 class="mega-post-title">
116
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
117
+ </h3>
118
+ <div class="mega-post-para">
119
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
120
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 80, '...');?>
121
+ </p>
122
+ </div>
123
+ </div>
124
+ <div class="clearfix"></div>
125
+ </div>
126
+ <?php } ?>
127
+
128
+ <?php if ($style == 'mega-post-carousel3') { ?>
129
+ <div class="mega-post-carousel3">
130
+ <div class="mega-post-image">
131
+ <?php the_post_thumbnail('medium_large', array('class' => 'your-class-name')); ?>
132
+ </div>
133
+
134
+ <div class="mega-desc-box">
135
+ <div style="display: table; margin: auto;">
136
+ <div class="mega-post-category" style="display: <?php echo $catg; ?>">
137
+ <?php $categories = get_the_category();
138
+ $separator = ' , ';
139
+ $output = '';
140
+ if ( ! empty( $categories ) ) {
141
+ foreach( $categories as $category ) {
142
+ $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
143
+ }
144
+ echo trim( $output, $separator );
145
+ } ?>
146
+ </div>
147
+ </div>
148
+ <h3 class="mega-post-title">
149
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
150
+ </h3>
151
+ <div class="clearfix"></div>
152
+ <div class="mega-post-para">
153
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
154
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
155
+ </p>
156
+ </div>
157
+ <span class="mega-post-meta" style="color: <?php echo $dateclr; ?>;">
158
+ <i class="fa fa-user"></i>
159
+ <a href="" style="color: <?php echo $dateclr; ?>;">
160
+ <?php echo the_author() ?>
161
+ </a>
162
+ </span>
163
+ <span class="mega-comment-box" style="display: <?php echo $comment; ?>">
164
+ <span class="mega-post-comment">
165
+ <i class="fa fa-comment"></i> <a href=""><?php $cu = wp_count_comments(get_the_id() ); echo $cu -> total_comments; ?> </a>
166
+ </span>
167
+ </span>
168
+ <div class="clearfix"></div>
169
+ </div>
170
+ </div>
171
+ <?php } ?>
172
+
173
+ <?php if ($style == 'mega-post-carousel4') { ?>
174
+ <div class="mega-post-carousel4">
175
+ <div class="mega-post-image">
176
+ <?php the_post_thumbnail('medium_large', array('class' => 'your-class-name')); ?>
177
+ </div>
178
+
179
+ <div class="mega-post-category" style="display: <?php echo $catg; ?>">
180
+ <?php $categories = get_the_category();
181
+ $separator = ' ';
182
+ $output = '';
183
+ if ( ! empty( $categories ) ) {
184
+ foreach( $categories as $category ) {
185
+ $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
186
+ }
187
+ echo trim( $output, $separator );
188
+ } ?>
189
+ </div>
190
+ <span class="mega-post-date" style="color: <?php echo $dateclr; ?>;">
191
+ <i class="fa fa-clock-o"></i>
192
+ <?php echo get_the_date() ?>
193
+ </span>
194
+ <h3 class="mega-post-title">
195
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
196
+ </h3>
197
+ <div class="clearfix"></div>
198
+ <div class="mega-post-para">
199
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
200
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
201
+ </p>
202
+ </div>
203
+ <span class="mega-post-meta" style="color: <?php echo $dateclr; ?>;">
204
+ <i class="fa fa-user"></i>
205
+ <a href="" style="color: <?php echo $dateclr; ?>;">
206
+ <?php echo the_author() ?>
207
+ </a>
208
+ </span>
209
+ <span class="mega-comment-box" style="display: <?php echo $comment; ?>">
210
+ <span class="mega-post-comment">
211
+ <i class="fa fa-comment"></i> <a href=""><?php $cu = wp_count_comments(get_the_id() ); echo $cu -> total_comments; ?> </a>
212
+ </span>
213
+ </span>
214
+ <div class="clearfix"></div>
215
+ </div>
216
+ <?php } ?>
217
+ </div>
218
+ <?php } ?>
219
+ </section>
220
+ <?php wp_reset_postdata();
221
+ } else {
222
+ // no posts found
223
+ }
224
+ ob_start(); ?>
225
+
226
+ <?php
227
+
228
+ return ob_get_clean();
229
+ }
230
+ }
231
+
232
+
233
+ vc_map( array(
234
+ "base" => "vc_posts_carousel",
235
+ "name" => __( 'Post Carousel', 'postslider' ),
236
+ "category" => __('Mega Addons'),
237
+ "description" => __('show posts as slider', ''),
238
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/post-carousel.png',
239
+ 'params' => array(
240
+ array(
241
+ "type" => "dropdown",
242
+ "heading" => __( 'Choose Style', 'postslider' ),
243
+ "param_name" => "style",
244
+ "group" => 'General',
245
+ "value" => array(
246
+ "Style 1" => "mega-post-carousel1",
247
+ "Style 2" => "mega-post-carousel2",
248
+ "Style 3" => "mega-post-carousel3",
249
+ "Style 4" => "mega-post-carousel4",
250
+ )
251
+ ),
252
+
253
+ array(
254
+ "type" => "loop",
255
+ "heading" => __( 'Link To', 'postslider' ),
256
+ "param_name" => "settings",
257
+ "description" => "Add Slide Url or leave blank, use it if you select theme [top image bottom content]",
258
+ "group" => 'General',
259
+ ),
260
+
261
+ array(
262
+ "type" => "dropdown",
263
+ "heading" => __( 'Comments', 'postslider' ),
264
+ "param_name" => "comment",
265
+ "description" => __('show/hide comment icon', 'postslider'),
266
+ "group" => 'Settings',
267
+ "value" => array(
268
+ "Show" => "block",
269
+ "Hide" => "none",
270
+ )
271
+ ),
272
+ array(
273
+ "type" => "dropdown",
274
+ "heading" => __( 'Category', 'postslider' ),
275
+ "param_name" => "catg",
276
+ "description" => __('show/hide category name', 'postslider'),
277
+ "group" => 'Settings',
278
+ "value" => array(
279
+ "Show" => "visible",
280
+ "Hide" => "none",
281
+ )
282
+ ),
283
+ array(
284
+ "type" => "dropdown",
285
+ "heading" => __( 'Arrows', 'postslider' ),
286
+ "param_name" => "arrow",
287
+ "description" => __('Show/Hide on left & right', 'postslider'),
288
+ "group" => 'Settings',
289
+ "value" => array(
290
+ "Show" => "true",
291
+ "Hide" => "false",
292
+ )
293
+ ),
294
+ array(
295
+ "type" => "dropdown",
296
+ "heading" => __( 'Dots', 'postslider' ),
297
+ "param_name" => "dot",
298
+ "description" => __('Show/Hide show at bottom', 'postslider'),
299
+ "group" => 'Settings',
300
+ "value" => array(
301
+ "Show" => "true",
302
+ "Hide" => "false",
303
+ )
304
+ ),
305
+ array(
306
+ "type" => "dropdown",
307
+ "heading" => __( 'Autoplay', 'postslider' ),
308
+ "param_name" => "autoplay",
309
+ "description" => __('move auto or slide on click', 'postslider'),
310
+ "group" => 'Settings',
311
+ "value" => array(
312
+ "True" => "true",
313
+ "False" => "false",
314
+ )
315
+ ),
316
+ array(
317
+ "type" => "textfield",
318
+ "heading" => __( 'Slider Speed', 'postslider' ),
319
+ "param_name" => "speed",
320
+ "description" => __('write in ms eg, 1500 [1s = 1000]', 'postslider'),
321
+ "value" => "1500",
322
+ "group" => 'Settings',
323
+ ),
324
+ array(
325
+ "type" => "textfield",
326
+ "heading" => __( 'Slide To Show', 'postslider' ),
327
+ "param_name" => "slide_visible",
328
+ "description" => __('set visible number of slides. default is 1', 'postslider'),
329
+ "value" => "1",
330
+ "group" => 'Settings',
331
+ ),
332
+ array(
333
+ "type" => "textfield",
334
+ "heading" => __( 'Slide To Scroll', 'postslider' ),
335
+ "param_name" => "slide_scroll",
336
+ "description" => __('allow user to multiple slide on click or drag. default is 1', 'postslider'),
337
+ "value" => "1",
338
+ "group" => 'Settings',
339
+ ),
340
+
341
+ array(
342
+ "type" => "textfield",
343
+ "heading" => __( 'Title (Font Size)', 'postslider' ),
344
+ "param_name" => "txtsize",
345
+ "description" => "font size of post title, default 18px",
346
+ "value" => "18px",
347
+ "group" => 'Design',
348
+ ),
349
+
350
+ array(
351
+ "type" => "textfield",
352
+ "heading" => __( 'Description (Font Size)', 'postslider' ),
353
+ "param_name" => "descsize",
354
+ "description" => "font size of post content, default 14px",
355
+ "value" => "14px",
356
+ "group" => 'Design',
357
+ ),
358
+
359
+ array(
360
+ "type" => "colorpicker",
361
+ "heading" => __( 'Title Color', 'postslider' ),
362
+ "param_name" => "txtclr",
363
+ "description" => "color of post title",
364
+ "value" => "#000",
365
+ "group" => 'Color',
366
+ ),
367
+
368
+ array(
369
+ "type" => "colorpicker",
370
+ "heading" => __( 'Author/Date Color', 'postslider' ),
371
+ "param_name" => "dateclr",
372
+ "description" => "color of author/date",
373
+ "value" => "#000",
374
+ "group" => 'Color',
375
+ ),
376
+
377
+ array(
378
+ "type" => "colorpicker",
379
+ "heading" => __( 'Description Color', 'postslider' ),
380
+ "param_name" => "descclr",
381
+ "description" => "color of post content",
382
+ "value" => "#888",
383
+ "group" => 'Color',
384
+ ),
385
+ ),
386
+ ) );
render/post_grid.php ADDED
@@ -0,0 +1,335 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ die( '-1' );
4
+ }
5
+
6
+ class WPBakeryShortCode_vc_post_grid extends WPBakeryShortCode {
7
+
8
+ protected function content( $atts, $content = null ) {
9
+
10
+ extract( shortcode_atts( array(
11
+ 'style' => 'mega-post-carousel1',
12
+ 'settings' => '',
13
+ 'comment' => 'block',
14
+ 'catg' => 'visible',
15
+ 'imgheight' => '200px',
16
+ 'txtsize' => '18px',
17
+ 'descsize' => '14px',
18
+ 'txtclr' => '#000',
19
+ 'dateclr' => '#000',
20
+ 'descclr' => '#888',
21
+ ), $atts ) );
22
+ if (isset($image_id) && $image_id != '') {
23
+ $image_url = wp_get_attachment_url( $image_id );
24
+ }
25
+ // var_dump($settings);
26
+ $content = wpb_js_remove_wpautop($content);
27
+ wp_enqueue_style( 'post-design-css', plugins_url( '../css/post-carousel.css' , __FILE__ ));
28
+ wp_enqueue_style( 'grid-css', plugins_url( '../css/simplegrid.css' , __FILE__ ));
29
+ wp_enqueue_script( 'custom-height', plugins_url( '../js/jquery.matchHeight-min.js' , __FILE__ ), array('jquery'));
30
+ wp_enqueue_script( 'custom-js', plugins_url( '../js/custom-tm.js' , __FILE__ ), array('jquery'));
31
+
32
+ $args = array(
33
+ 'posts_per_page' => -1,
34
+ );
35
+ $seperate_settings = explode('|', $settings);
36
+
37
+ foreach ($seperate_settings as $setting) {
38
+ $key_val = explode(':', $setting);
39
+ if ($key_val[0] == 'size') {
40
+ $args['posts_per_page'] = $key_val[1];
41
+ } else {
42
+ $args[$key_val[0]] = $key_val[1];
43
+ }
44
+ }
45
+
46
+ // The Query
47
+ $the_query = new WP_Query( $args );
48
+
49
+ // The Loop
50
+ if ( $the_query->have_posts() ) { ?>
51
+ <div class="na-prefix">
52
+ <div class="grid grid-pad">
53
+ <?php while ( $the_query->have_posts() ) { ?>
54
+ <?php $the_query->the_post(); ?>
55
+
56
+ <?php if ($style == 'mega-post-carousel1') { ?>
57
+ <div class="col-1-3 mason-item" style="padding-right: 15px;">
58
+ <div class="mega-post-carousel1" style="margin-bottom: 40px;">
59
+ <div class="mega-post-image">
60
+ <?php the_post_thumbnail('large', array('class' => 'your-class-name')); ?>
61
+
62
+ <span class="mega-comment-box" style="display: <?php echo $comment; ?>">
63
+ <span class="mega-post-comment">
64
+ <a href=""><?php $cu = wp_count_comments(get_the_id() ); echo $cu -> total_comments; ?> </a>
65
+ </span>
66
+ </span>
67
+ </div>
68
+
69
+ <div class="mega-post-category" style="display: <?php echo $catg; ?>">
70
+ <?php $categories = get_the_category();
71
+ $separator = ' ';
72
+ $output = '';
73
+ if ( ! empty( $categories ) ) {
74
+ foreach( $categories as $category ) {
75
+ $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
76
+ }
77
+ echo trim( $output, $separator );
78
+ } ?>
79
+ </div>
80
+
81
+ <h3 class="mega-post-title">
82
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
83
+ </h3>
84
+
85
+ <span class="mega-post-meta" style="color: <?php echo $dateclr; ?>;">
86
+ <i class="fa fa-user"></i>
87
+ <a href="" style="color: <?php echo $dateclr; ?>;">
88
+ <?php echo the_author() ?>
89
+ </a>
90
+ </span>
91
+ <span class="mega-post-date" style="color: <?php echo $dateclr; ?>;">
92
+ <i class="fa fa-clock-o"></i>
93
+ <?php echo get_the_date() ?>
94
+ </span>
95
+
96
+ <div class="clearfix"></div>
97
+ <div class="mega-post-para">
98
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
99
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
100
+ </p>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ <?php } ?>
105
+
106
+ <?php if ($style == 'mega-post-carousel2') { ?>
107
+ <div class="col-1-3 mason-item" style="padding-right: 15px;">
108
+ <div class="mega-post-carousel2" style="margin-bottom: 40px;">
109
+ <div class="mega-post-image">
110
+ <?php the_post_thumbnail('large', array('class' => 'your-class-name')); ?>
111
+ </div>
112
+ <div class="mega-post-content">
113
+ <h3 class="mega-post-title">
114
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
115
+ </h3>
116
+ <div class="mega-post-para">
117
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
118
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 80, '...');?>
119
+ </p>
120
+ </div>
121
+ </div>
122
+ <div class="clearfix"></div>
123
+ </div>
124
+ </div>
125
+ <?php } ?>
126
+
127
+ <?php if ($style == 'mega-post-carousel3') { ?>
128
+ <div class="col-1-3 mason-item" style="padding-right: 15px;">
129
+ <div class="mega-post-carousel3" style="margin-bottom: 40px;">
130
+ <div class="mega-post-image">
131
+ <?php the_post_thumbnail('medium_large', array('class' => 'your-class-name')); ?>
132
+ </div>
133
+
134
+ <div class="mega-desc-box">
135
+ <div style="display: table; margin: auto;">
136
+ <div class="mega-post-category" style="display: <?php echo $catg; ?>">
137
+ <?php $categories = get_the_category();
138
+ $separator = ' , ';
139
+ $output = '';
140
+ if ( ! empty( $categories ) ) {
141
+ foreach( $categories as $category ) {
142
+ $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
143
+ }
144
+ echo trim( $output, $separator );
145
+ } ?>
146
+ </div>
147
+ </div>
148
+ <h3 class="mega-post-title">
149
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
150
+ </h3>
151
+ <div class="clearfix"></div>
152
+ <div class="mega-post-para">
153
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
154
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
155
+ </p>
156
+ </div>
157
+ <span class="mega-post-meta" style="color: <?php echo $dateclr; ?>;">
158
+ <i class="fa fa-user"></i>
159
+ <a href="" style="color: <?php echo $dateclr; ?>;">
160
+ <?php echo the_author() ?>
161
+ </a>
162
+ </span>
163
+ <span class="mega-comment-box" style="display: <?php echo $comment; ?>">
164
+ <span class="mega-post-comment">
165
+ <i class="fa fa-comment"></i> <a href=""><?php $cu = wp_count_comments(get_the_id() ); echo $cu -> total_comments; ?> </a>
166
+ </span>
167
+ </span>
168
+ <div class="clearfix"></div>
169
+ </div>
170
+ </div>
171
+ </div>
172
+ <?php } ?>
173
+
174
+ <?php if ($style == 'mega-post-carousel4') { ?>
175
+ <div class="col-1-3 mason-item" style="padding-right: 15px;">
176
+ <div class="mega-post-carousel4" style="margin-bottom: 40px;">
177
+ <div class="mega-post-image">
178
+ <?php the_post_thumbnail('medium_large', array('class' => 'your-class-name')); ?>
179
+ </div>
180
+
181
+ <div class="mega-post-category" style="display: <?php echo $catg; ?>">
182
+ <?php $categories = get_the_category();
183
+ $separator = ' ';
184
+ $output = '';
185
+ if ( ! empty( $categories ) ) {
186
+ foreach( $categories as $category ) {
187
+ $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
188
+ }
189
+ echo trim( $output, $separator );
190
+ } ?>
191
+ </div>
192
+ <span class="mega-post-date" style="color: <?php echo $dateclr; ?>;">
193
+ <i class="fa fa-clock-o"></i>
194
+ <?php echo get_the_date() ?>
195
+ </span>
196
+ <h3 class="mega-post-title">
197
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
198
+ </h3>
199
+ <div class="clearfix"></div>
200
+ <div class="mega-post-para">
201
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
202
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
203
+ </p>
204
+ </div>
205
+ <span class="mega-post-meta" style="color: <?php echo $dateclr; ?>;">
206
+ <i class="fa fa-user"></i>
207
+ <a href="" style="color: <?php echo $dateclr; ?>;">
208
+ <?php echo the_author() ?>
209
+ </a>
210
+ </span>
211
+ <span class="mega-comment-box" style="display: <?php echo $comment; ?>">
212
+ <span class="mega-post-comment">
213
+ <i class="fa fa-comment"></i> <a href=""><?php $cu = wp_count_comments(get_the_id() ); echo $cu -> total_comments; ?> </a>
214
+ </span>
215
+ </span>
216
+ <div class="clearfix"></div>
217
+ </div>
218
+ </div>
219
+ <?php } ?>
220
+
221
+
222
+ <?php } ?>
223
+
224
+ </div>
225
+ </div>
226
+ <?php wp_reset_postdata();
227
+ } else {
228
+ // no posts found
229
+ }
230
+ ob_start(); ?>
231
+
232
+ <?php
233
+
234
+ return ob_get_clean();
235
+ }
236
+ }
237
+
238
+
239
+ vc_map( array(
240
+ "base" => "vc_post_grid",
241
+ "name" => __( 'Post Grid', 'postslider' ),
242
+ "category" => __('Mega Addons'),
243
+ "description" => __('show posts as grid layout', ''),
244
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/post-carousel.png',
245
+ 'params' => array(
246
+ array(
247
+ "type" => "dropdown",
248
+ "heading" => __( 'Choose Style', 'postslider' ),
249
+ "param_name" => "style",
250
+ "group" => 'General',
251
+ "value" => array(
252
+ "Style 1" => "mega-post-carousel1",
253
+ "Style 2" => "mega-post-carousel2",
254
+ "Style 3" => "mega-post-carousel3",
255
+ "Style 4" => "mega-post-carousel4",
256
+ )
257
+ ),
258
+
259
+ array(
260
+ "type" => "loop",
261
+ "heading" => __( 'Link To', 'postslider' ),
262
+ "param_name" => "settings",
263
+ "description" => "Add Slide Url or leave blank, use it if you select theme [top image bottom content]",
264
+ "group" => 'General',
265
+ ),
266
+
267
+ array(
268
+ "type" => "dropdown",
269
+ "heading" => __( 'Comments', 'postslider' ),
270
+ "param_name" => "comment",
271
+ "description" => __('show/hide comment icon', 'postslider'),
272
+ "group" => 'Settings',
273
+ "value" => array(
274
+ "Show" => "block",
275
+ "Hide" => "none",
276
+ )
277
+ ),
278
+ array(
279
+ "type" => "dropdown",
280
+ "heading" => __( 'Category', 'postslider' ),
281
+ "param_name" => "catg",
282
+ "description" => __('show/hide category name', 'postslider'),
283
+ "group" => 'Settings',
284
+ "value" => array(
285
+ "Show" => "visible",
286
+ "Hide" => "none",
287
+ )
288
+ ),
289
+
290
+ array(
291
+ "type" => "textfield",
292
+ "heading" => __( 'Title (Font Size)', 'postslider' ),
293
+ "param_name" => "txtsize",
294
+ "description" => "font size of post title, default 18px",
295
+ "value" => "18px",
296
+ "group" => 'Design',
297
+ ),
298
+
299
+ array(
300
+ "type" => "textfield",
301
+ "heading" => __( 'Description (Font Size)', 'postslider' ),
302
+ "param_name" => "descsize",
303
+ "description" => "font size of post content, default 14px",
304
+ "value" => "14px",
305
+ "group" => 'Design',
306
+ ),
307
+
308
+ array(
309
+ "type" => "colorpicker",
310
+ "heading" => __( 'Title Color', 'postslider' ),
311
+ "param_name" => "txtclr",
312
+ "description" => "color of post title",
313
+ "value" => "#000",
314
+ "group" => 'Color',
315
+ ),
316
+
317
+ array(
318
+ "type" => "colorpicker",
319
+ "heading" => __( 'Author/Date Color', 'postslider' ),
320
+ "param_name" => "dateclr",
321
+ "description" => "color of author/date",
322
+ "value" => "#000",
323
+ "group" => 'Color',
324
+ ),
325
+
326
+ array(
327
+ "type" => "colorpicker",
328
+ "heading" => __( 'Description Color', 'postslider' ),
329
+ "param_name" => "descclr",
330
+ "description" => "color of post content",
331
+ "value" => "#888",
332
+ "group" => 'Color',
333
+ ),
334
+ ),
335
+ ) );
render/price.php CHANGED
@@ -73,7 +73,7 @@ vc_map( array(
73
  "name" => __( 'Price Table', 'infobox' ),
74
  "base" => "mvc_price_listing",
75
  "category" => __('Mega Addons'),
76
- "description" => __('Pricing Table', 'infobox'),
77
  "icon" => plugin_dir_url( __FILE__ ).'../icons/price.png',
78
  'params' => array(
79
  array(
73
  "name" => __( 'Price Table', 'infobox' ),
74
  "base" => "mvc_price_listing",
75
  "category" => __('Mega Addons'),
76
+ "description" => __('Create nice looking price tables', 'infobox'),
77
  "icon" => plugin_dir_url( __FILE__ ).'../icons/price.png',
78
  'params' => array(
79
  array(
render/rate_us.php DELETED
@@ -1,39 +0,0 @@
1
- <?php
2
- if ( ! defined( 'ABSPATH' ) ) {
3
- die( '-1' );
4
- }
5
-
6
- class WPBakeryShortCode_rate_us_vc extends WPBakeryShortCode {
7
-
8
- protected function content( $atts, $content = null ) {
9
-
10
- extract( shortcode_atts( array(
11
- 'style_visibility' => 'top_to_bottom',
12
- ), $atts ) );
13
- $content = wpb_js_remove_wpautop($content);
14
- $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
15
- ob_start(); ?>
16
-
17
-
18
- <?php return ob_get_clean();
19
- }
20
- }
21
-
22
-
23
- vc_map( array(
24
- "name" => __( 'Support Us', 'support' ),
25
- "base" => "rate_us_vc",
26
- "category" => __('Mega Addons'),
27
- "description" => __('We need your feedback', 'support'),
28
- "icon" => plugin_dir_url( __FILE__ ).'../icons/support.png',
29
- 'params' => array(
30
- array(
31
- "type" => "textfields",
32
- "heading" => __( 'Thanks for using our plugin, we really need your support and suggestion to make it more attractive. Just click on link and give us feedback.', 'support' ),
33
- "param_name" => "pic_width",
34
- "description" => __( '<a href="https://wordpress.org/support/plugin/mega-addons-for-visual-composer/reviews/#new-post">Give Feedback</a>', 'support' ),
35
- "group" => 'General',
36
- ),
37
- ),
38
- ) );
39
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
render/social_father.php CHANGED
@@ -26,13 +26,13 @@ class WPBakeryShortCode_social_vc_father extends WPBakeryShortCodesContainer {
26
 
27
  vc_map( array(
28
  "base" => "social_vc_father",
29
- "name" => __( 'Social Setting', 'socialicon' ),
30
  "as_parent" => array('only' => 'social_vc_son'),
31
  "content_element" => true,
32
  "js_view" => 'VcColumnView',
33
  "category" => __('Mega Addons'),
34
- "description" => __('Different effects for social', ''),
35
- "icon" => plugin_dir_url( __FILE__ ).'../icons/social.jpg',
36
  'params' => array(
37
  array(
38
  "type" => "dropdown",
26
 
27
  vc_map( array(
28
  "base" => "social_vc_father",
29
+ "name" => __( 'Social Icons', 'socialicon' ),
30
  "as_parent" => array('only' => 'social_vc_son'),
31
  "content_element" => true,
32
  "js_view" => 'VcColumnView',
33
  "category" => __('Mega Addons'),
34
+ "description" => __('social icons with animated effects', ''),
35
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/social.png',
36
  'params' => array(
37
  array(
38
  "type" => "dropdown",
render/social_son.php CHANGED
@@ -92,12 +92,12 @@ class WPBakeryShortCode_social_vc_son extends WPBakeryShortCode {
92
 
93
  vc_map( array(
94
  "base" => "social_vc_son",
95
- "name" => __( 'Social Icons', 'socialicon' ),
96
  "as_child" => array('only' => 'social_vc_father'),
97
  "content_element" => true,
98
  "category" => __('Mega Addons'),
99
- "description" => __('Different effects for social', ''),
100
- "icon" => plugin_dir_url( __FILE__ ).'../icons/social.jpg',
101
  'params' => array(
102
  array(
103
  "type" => "dropdown",
92
 
93
  vc_map( array(
94
  "base" => "social_vc_son",
95
+ "name" => __( 'Icon Setting', 'socialicon' ),
96
  "as_child" => array('only' => 'social_vc_father'),
97
  "content_element" => true,
98
  "category" => __('Mega Addons'),
99
+ "description" => __('choose style', ''),
100
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/social.png',
101
  'params' => array(
102
  array(
103
  "type" => "dropdown",
render/statcounter.php CHANGED
@@ -8,31 +8,33 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
- 'counter_style' => 'style',
12
- 'css' => '',
13
- 'sec_style' => 'image',
14
- 'image_id' => '',
15
- 'image_width' => '',
16
- 'image_height' => '',
17
- 'count_icon' => '',
18
- 'icon_size' => '',
19
- 'icon_clr' => '',
20
- 'css2' => '',
21
- 'count_title' => '',
22
- 'title_size' => '30px',
23
- 'title_font' => '500',
24
- 'title_clr' => '',
25
- 'stat_numb' => '',
26
- 'stat_size' => '20px',
27
- 'stat_font' => '',
28
- 'stat_clr' => '',
29
- 'count_decimal' => '0',
30
- 'count_speed' => '4000',
31
- 'count_interv' => '10',
32
- 'start_from' => '0',
 
 
 
33
  ), $atts ) );
34
  $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
35
- $css_class2 = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css2, ' ' ), $this->settings['base'], $atts );
36
  wp_enqueue_style( 'counter-css', plugins_url( '../css/statcounter.css' , __FILE__ ));
37
  wp_enqueue_script( 'count-to', plugins_url( '../js/countTo.min.js' , __FILE__ ), array('jquery') );
38
  if ($image_id != '') {
@@ -46,14 +48,14 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
46
  <div id="mega_count_bar" class="<?php echo $css_class; ?>">
47
  <div class="mega_count_img">
48
  <?php if ($sec_style == 'image') { ?>
49
- <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="">
50
  <?php } ?>
51
  <?php if ($sec_style == 'icon') { ?>
52
- <i class="<?php echo $count_icon; ?> <?php echo $css_class2; ?>" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
53
  <?php } ?>
54
  </div>
55
  <div class="mega_count_content">
56
- <p class="timer" data-decimals="<?php echo $count_decimal; ?>" data-speed="<?php echo $count_speed; ?>" data-to="<?php echo $stat_numb; ?>" data-refresh-interval="<?php echo $count_interv; ?>" data-from="<?php echo $start_from; ?>" style="text-align: center; font-size: <?php echo $stat_size; ?>; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;">
57
  <?php echo $start_from; ?>
58
  </p>
59
  <h3 style="font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
@@ -71,14 +73,14 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
71
  <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="">
72
  <?php } ?>
73
  <?php if ($sec_style == 'icon') { ?>
74
- <i class="<?php echo $count_icon; ?> <?php echo $css_class2; ?>" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
75
  <?php } ?>
76
  </div>
77
  <div class="mega_count_content">
78
  <h3 style="font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
79
  <?php echo $count_title; ?>
80
  </h3>
81
- <hr>
82
  <p class="timer" data-decimals="<?php echo $count_decimal; ?>" data-speed="<?php echo $count_speed; ?>" data-to="<?php echo $stat_numb; ?>" data-refresh-interval="<?php echo $count_interv; ?>" data-from="<?php echo $start_from; ?>" style="text-align: center; font-size: <?php echo $stat_size; ?>; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;">
83
  <?php echo $start_from; ?>
84
  </p>
@@ -88,17 +90,17 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
88
 
89
  <!-- Counter style three -->
90
  <?php if ($counter_style == 'style3') { ?>
91
- <div id="mega_count_bar_2">
92
  <div class="mega_count_img">
93
  <?php if ($sec_style == 'image') { ?>
94
  <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="">
95
  <?php } ?>
96
  <?php if ($sec_style == 'icon') { ?>
97
- <i class="<?php echo $count_icon; ?> <?php echo $css_class2; ?>" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
98
  <?php } ?>
99
  </div>
100
  <div class="mega_count_content">
101
- <h3 style="font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
102
  <?php echo $count_title; ?>
103
  </h3>
104
  <p class="timer" data-decimals="<?php echo $count_decimal; ?>" data-speed="<?php echo $count_speed; ?>" data-to="<?php echo $stat_numb; ?>" data-refresh-interval="<?php echo $count_interv; ?>" data-from="<?php echo $start_from; ?>" style="text-align: center; font-size: <?php echo $stat_size; ?>; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;">
@@ -110,12 +112,12 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
110
 
111
  <!-- Counter style four -->
112
  <?php if ($counter_style == 'style4') { ?>
113
- <div id="mega_count_bar_3">
114
  <div class="mega_count_content">
115
  <h3 style="font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
116
  <?php echo $count_title; ?>
117
  </h3>
118
- <p class="timer" data-decimals="<?php echo $count_decimal; ?>" data-speed="<?php echo $count_speed; ?>" data-to="<?php echo $stat_numb; ?>" data-refresh-interval="<?php echo $count_interv; ?>" data-from="<?php echo $start_from; ?>" style="text-align: right; font-size: <?php echo $stat_size; ?>; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;">
119
  <?php echo $start_from; ?>
120
  </p>
121
  </div>
@@ -124,7 +126,7 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
124
  <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="">
125
  <?php } ?>
126
  <?php if ($sec_style == 'icon') { ?>
127
- <i class="<?php echo $count_icon; ?> <?php echo $css_class2; ?>" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
128
  <?php } ?>
129
  </div>
130
  </div>
@@ -132,18 +134,18 @@ class WPBakeryShortCode_mvc_counter extends WPBakeryShortCode {
132
 
133
  <!-- Counter style five -->
134
  <?php if ($counter_style == 'style5') { ?>
135
- <div id="mega_count_bar_4" class="<?php echo $css_class2; ?>">
136
  <div class="mega_count_content">
137
  <h3 style="font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
138
  <?php echo $count_title; ?>
139
  </h3>
140
  </div>
141
- <div class="mega_count_img">
142
  <?php if ($sec_style == 'image') { ?>
143
  <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="">
144
  <?php } ?>
145
  <?php if ($sec_style == 'icon') { ?>
146
- <i class="<?php echo $count_icon; ?>" style="font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
147
  <?php } ?>
148
  </div>
149
  <div class="mega_count_content">
@@ -165,8 +167,8 @@ vc_map( array(
165
  "name" => __( 'Stats counter', 'counter' ),
166
  "base" => "mvc_counter",
167
  "category" => __('Mega Addons'),
168
- "description" => __('Stats count for client info', 'counter'),
169
- "icon" => plugin_dir_url( __FILE__ ).'../icons/counter.jpg',
170
  'params' => array(
171
  array(
172
  "type" => "dropdown",
@@ -183,22 +185,12 @@ vc_map( array(
183
  )
184
  ),
185
 
186
- array(
187
- "type" => "css_editor",
188
- "heading" => __( 'Set styles of complete box or leave blank accordingly', 'counter' ),
189
- "param_name" => "css",
190
- "group" => 'General',
191
- ),
192
-
193
-
194
- // Image Section
195
-
196
  array(
197
  "type" => "dropdown",
198
  "heading" => __( 'Image/Icon', 'counter' ),
199
  "param_name" => "sec_style",
200
- "description" => __( 'Select image or font icon', 'counter' ),
201
- "group" => 'Image',
202
  "value" => array(
203
  "Image" => "image",
204
  "Icon" => "icon",
@@ -209,23 +201,7 @@ vc_map( array(
209
  "heading" => __( 'Image', 'counter' ),
210
  "param_name" => "image_id",
211
  "description" => __( 'select image for logo', 'counter' ),
212
- "group" => 'Image',
213
- "dependency" => array('element' => "sec_style", 'value' => 'image'),
214
- ),
215
- array(
216
- "type" => "textfield",
217
- "heading" => __( 'Width', 'counter' ),
218
- "param_name" => "image_width",
219
- "description" => __( 'Set custom image width in pixel or leave blank e.g 100px', 'counter' ),
220
- "group" => 'Image',
221
- "dependency" => array('element' => "sec_style", 'value' => 'image'),
222
- ),
223
- array(
224
- "type" => "textfield",
225
- "heading" => __( 'Height', 'counter' ),
226
- "param_name" => "image_height",
227
- "description" => __( 'Set custom image height in pixel or leave blank e.g 100px', 'counter' ),
228
- "group" => 'Image',
229
  "dependency" => array('element' => "sec_style", 'value' => 'image'),
230
  ),
231
 
@@ -235,15 +211,32 @@ vc_map( array(
235
  "param_name" => "count_icon",
236
  "description" => __( 'Select font icon', 'counter' ),
237
  "dependency" => array('element' => "sec_style", 'value' => 'icon'),
238
- "group" => 'Image',
239
  ),
240
  array(
241
  "type" => "textfield",
242
  "heading" => __( 'Icon font size', 'counter' ),
243
  "param_name" => "icon_size",
244
- "description" => __( 'set font size in pixel e.g 30px', 'counter' ),
245
  "dependency" => array('element' => "sec_style", 'value' => 'icon'),
246
- "group" => 'Image',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  ),
248
  array(
249
  "type" => "colorpicker",
@@ -251,14 +244,41 @@ vc_map( array(
251
  "param_name" => "icon_clr",
252
  "description" => __( 'Select icon color', 'counter' ),
253
  "dependency" => array('element' => "sec_style", 'value' => 'icon'),
254
- "group" => 'Image',
255
  ),
256
  array(
257
- "type" => "css_editor",
258
- "heading" => __( 'Set styles of icon or leave blank accordingly', 'counter' ),
259
- "param_name" => "css2",
 
260
  "dependency" => array('element' => "sec_style", 'value' => 'icon'),
261
- "group" => 'Image',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  ),
263
 
264
 
@@ -292,6 +312,14 @@ vc_map( array(
292
  "description" => __( 'Select title color', 'counter' ),
293
  "group" => 'Title',
294
  ),
 
 
 
 
 
 
 
 
295
 
296
 
297
  // Counter Section
@@ -331,7 +359,7 @@ vc_map( array(
331
  "type" => "textfield",
332
  "heading" => __( 'Decimal', 'counter' ),
333
  "param_name" => "count_decimal",
334
- "description" => __( 'put numbers after decimal e.g 2 or leave blank', 'counter' ),
335
  "group" => 'Setting',
336
  ),
337
  array(
@@ -355,6 +383,16 @@ vc_map( array(
355
  "description" => __( 'set counter interval e.g 100', 'counter' ),
356
  "group" => 'Setting',
357
  ),
 
 
 
 
 
 
 
 
 
 
358
  ),
359
  ) );
360
 
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
+ 'counter_style' => 'style',
12
+ 'css' => '',
13
+ 'sec_style' => 'image',
14
+ 'image_id' => '',
15
+ 'image_width' => '',
16
+ 'image_height' => '',
17
+ 'count_icon' => '',
18
+ 'icon_size' => '',
19
+ 'icon_clr' => '',
20
+ 'count_title' => '',
21
+ 'icon_bg' => '',
22
+ 'icon_radius' => '0px',
23
+ 'icon_style' => '',
24
+ 'title_size' => '30px',
25
+ 'title_font' => '500',
26
+ 'title_clr' => '',
27
+ 'lineheight' => '',
28
+ 'stat_numb' => '',
29
+ 'stat_size' => '20px',
30
+ 'stat_font' => '',
31
+ 'stat_clr' => '',
32
+ 'count_decimal' => '0',
33
+ 'count_speed' => '4000',
34
+ 'count_interv' => '10',
35
+ 'start_from' => '0',
36
  ), $atts ) );
37
  $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ), $this->settings['base'], $atts );
 
38
  wp_enqueue_style( 'counter-css', plugins_url( '../css/statcounter.css' , __FILE__ ));
39
  wp_enqueue_script( 'count-to', plugins_url( '../js/countTo.min.js' , __FILE__ ), array('jquery') );
40
  if ($image_id != '') {
48
  <div id="mega_count_bar" class="<?php echo $css_class; ?>">
49
  <div class="mega_count_img">
50
  <?php if ($sec_style == 'image') { ?>
51
+ <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>">
52
  <?php } ?>
53
  <?php if ($sec_style == 'icon') { ?>
54
+ <i class="<?php echo $count_icon; ?>" style="width: <?php echo $image_width; ?>; height: <?php echo $image_height; ?>; line-height: <?php echo $image_height-4; ?>px; background: <?php echo $icon_bg; ?>; border-radius: <?php echo $icon_radius; ?>; border: <?php echo $icon_style; ?>; font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
55
  <?php } ?>
56
  </div>
57
  <div class="mega_count_content">
58
+ <p class="timer" data-decimals="<?php echo $count_decimal; ?>" data-speed="<?php echo $count_speed; ?>" data-to="<?php echo $stat_numb; ?>" data-refresh-interval="<?php echo $count_interv; ?>" data-from="<?php echo $start_from; ?>" style="line-height: <?php echo $lineheight; ?>; text-align: center; font-size: <?php echo $stat_size; ?>; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;">
59
  <?php echo $start_from; ?>
60
  </p>
61
  <h3 style="font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
73
  <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="">
74
  <?php } ?>
75
  <?php if ($sec_style == 'icon') { ?>
76
+ <i class="<?php echo $count_icon; ?>" style="width: <?php echo $image_width; ?>; height: <?php echo $image_height; ?>; line-height: <?php echo $image_height-4; ?>px; background: <?php echo $icon_bg; ?>; border-radius: <?php echo $icon_radius; ?>; border: <?php echo $icon_style; ?>; font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
77
  <?php } ?>
78
  </div>
79
  <div class="mega_count_content">
80
  <h3 style="font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
81
  <?php echo $count_title; ?>
82
  </h3>
83
+ <hr style="line-height: <?php echo $lineheight; ?>;">
84
  <p class="timer" data-decimals="<?php echo $count_decimal; ?>" data-speed="<?php echo $count_speed; ?>" data-to="<?php echo $stat_numb; ?>" data-refresh-interval="<?php echo $count_interv; ?>" data-from="<?php echo $start_from; ?>" style="text-align: center; font-size: <?php echo $stat_size; ?>; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;">
85
  <?php echo $start_from; ?>
86
  </p>
90
 
91
  <!-- Counter style three -->
92
  <?php if ($counter_style == 'style3') { ?>
93
+ <div id="mega_count_bar_2" class="<?php echo $css_class; ?>">
94
  <div class="mega_count_img">
95
  <?php if ($sec_style == 'image') { ?>
96
  <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="">
97
  <?php } ?>
98
  <?php if ($sec_style == 'icon') { ?>
99
+ <i class="<?php echo $count_icon; ?>" style="width: <?php echo $image_width; ?>; height: <?php echo $image_height; ?>; line-height: <?php echo $image_height-2; ?>px; background: <?php echo $icon_bg; ?>; border-radius: <?php echo $icon_radius; ?>; border: <?php echo $icon_style; ?>; font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
100
  <?php } ?>
101
  </div>
102
  <div class="mega_count_content">
103
+ <h3 style="line-height: <?php echo $lineheight; ?>; font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
104
  <?php echo $count_title; ?>
105
  </h3>
106
  <p class="timer" data-decimals="<?php echo $count_decimal; ?>" data-speed="<?php echo $count_speed; ?>" data-to="<?php echo $stat_numb; ?>" data-refresh-interval="<?php echo $count_interv; ?>" data-from="<?php echo $start_from; ?>" style="text-align: center; font-size: <?php echo $stat_size; ?>; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;">
112
 
113
  <!-- Counter style four -->
114
  <?php if ($counter_style == 'style4') { ?>
115
+ <div id="mega_count_bar_3" class="<?php echo $css_class; ?>">
116
  <div class="mega_count_content">
117
  <h3 style="font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
118
  <?php echo $count_title; ?>
119
  </h3>
120
+ <p class="timer" data-decimals="<?php echo $count_decimal; ?>" data-speed="<?php echo $count_speed; ?>" data-to="<?php echo $stat_numb; ?>" data-refresh-interval="<?php echo $count_interv; ?>" data-from="<?php echo $start_from; ?>" style="line-height: <?php echo $lineheight; ?>; text-align: right; font-size: <?php echo $stat_size; ?>; font-weight: <?php echo $stat_font; ?>; color: <?php echo $stat_clr; ?>;">
121
  <?php echo $start_from; ?>
122
  </p>
123
  </div>
126
  <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="">
127
  <?php } ?>
128
  <?php if ($sec_style == 'icon') { ?>
129
+ <i class="<?php echo $count_icon; ?>" style="width: <?php echo $image_width; ?>; height: <?php echo $image_height; ?>; line-height: <?php echo $image_height-2; ?>px; background: <?php echo $icon_bg; ?>; border-radius: <?php echo $icon_radius; ?>; border: <?php echo $icon_style; ?>; font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
130
  <?php } ?>
131
  </div>
132
  </div>
134
 
135
  <!-- Counter style five -->
136
  <?php if ($counter_style == 'style5') { ?>
137
+ <div id="mega_count_bar_4" class="<?php echo $css_class; ?>">
138
  <div class="mega_count_content">
139
  <h3 style="font-size: <?php echo $title_size; ?>; font-weight: <?php echo $title_font; ?>; color: <?php echo $title_clr; ?>;">
140
  <?php echo $count_title; ?>
141
  </h3>
142
  </div>
143
+ <div class="mega_count_img" style="line-height: <?php echo $lineheight; ?>;">
144
  <?php if ($sec_style == 'image') { ?>
145
  <img src="<?php echo $image_url; ?>" width="<?php echo $image_width; ?>" height="<?php echo $image_height; ?>" alt="">
146
  <?php } ?>
147
  <?php if ($sec_style == 'icon') { ?>
148
+ <i class="<?php echo $count_icon; ?>" style="line-height: <?php echo $image_height-2; ?>px; font-size: <?php echo $icon_size; ?>; color: <?php echo $icon_clr; ?>;"></i>
149
  <?php } ?>
150
  </div>
151
  <div class="mega_count_content">
167
  "name" => __( 'Stats counter', 'counter' ),
168
  "base" => "mvc_counter",
169
  "category" => __('Mega Addons'),
170
+ "description" => __('Your milestones, achievements etc', 'counter'),
171
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/counter.png',
172
  'params' => array(
173
  array(
174
  "type" => "dropdown",
185
  )
186
  ),
187
 
 
 
 
 
 
 
 
 
 
 
188
  array(
189
  "type" => "dropdown",
190
  "heading" => __( 'Image/Icon', 'counter' ),
191
  "param_name" => "sec_style",
192
+ "description" => __( 'Select Image or font Icon', 'counter' ),
193
+ "group" => 'General',
194
  "value" => array(
195
  "Image" => "image",
196
  "Icon" => "icon",
201
  "heading" => __( 'Image', 'counter' ),
202
  "param_name" => "image_id",
203
  "description" => __( 'select image for logo', 'counter' ),
204
+ "group" => 'General',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
205
  "dependency" => array('element' => "sec_style", 'value' => 'image'),
206
  ),
207
 
211
  "param_name" => "count_icon",
212
  "description" => __( 'Select font icon', 'counter' ),
213
  "dependency" => array('element' => "sec_style", 'value' => 'icon'),
214
+ "group" => 'General',
215
  ),
216
  array(
217
  "type" => "textfield",
218
  "heading" => __( 'Icon font size', 'counter' ),
219
  "param_name" => "icon_size",
220
+ "description" => __( 'set font size in pixel e.g 25px', 'counter' ),
221
  "dependency" => array('element' => "sec_style", 'value' => 'icon'),
222
+ "value" => "25px",
223
+ "group" => 'General',
224
+ ),
225
+ array(
226
+ "type" => "textfield",
227
+ "heading" => __( 'Width', 'counter' ),
228
+ "param_name" => "image_width",
229
+ "description" => __( 'Set custom width in pixel or leave blank e.g 100px', 'counter' ),
230
+ "value" => "50px",
231
+ "group" => 'General',
232
+ ),
233
+ array(
234
+ "type" => "textfield",
235
+ "heading" => __( 'Height', 'counter' ),
236
+ "param_name" => "image_height",
237
+ "description" => __( 'Set custom height in pixel or leave blank e.g 100px', 'counter' ),
238
+ "value" => "50px",
239
+ "group" => 'General',
240
  ),
241
  array(
242
  "type" => "colorpicker",
244
  "param_name" => "icon_clr",
245
  "description" => __( 'Select icon color', 'counter' ),
246
  "dependency" => array('element' => "sec_style", 'value' => 'icon'),
247
+ "group" => 'General',
248
  ),
249
  array(
250
+ "type" => "colorpicker",
251
+ "heading" => __( 'Icon Background', 'counter' ),
252
+ "param_name" => "icon_bg",
253
+ "description" => __( 'background color for Icon', 'counter' ),
254
  "dependency" => array('element' => "sec_style", 'value' => 'icon'),
255
+ "group" => 'General',
256
+ ),
257
+ array(
258
+ "type" => "dropdown",
259
+ "heading" => __( 'Border Radius', 'counter' ),
260
+ "param_name" => "icon_radius",
261
+ "description" => __( 'border radius for icon', 'counter' ),
262
+ "dependency" => array('element' => "sec_style", 'value' => 'icon'),
263
+ "group" => 'General',
264
+ "value" => array(
265
+ "0px" => "0px",
266
+ "5px" => "5px",
267
+ "10px" => "10px",
268
+ "20px" => "20px",
269
+ "30px" => "30px",
270
+ "50px" => "50px",
271
+ "50%" => "50%",
272
+ )
273
+ ),
274
+ array(
275
+ "type" => "textfield",
276
+ "heading" => __( 'Border Style', 'counter' ),
277
+ "param_name" => "icon_style",
278
+ "description" => __( '[width style color]', 'counter' ),
279
+ "dependency" => array('element' => "sec_style", 'value' => 'icon'),
280
+ "value" => "0px solid #fff",
281
+ "group" => 'General',
282
  ),
283
 
284
 
312
  "description" => __( 'Select title color', 'counter' ),
313
  "group" => 'Title',
314
  ),
315
+ array(
316
+ "type" => "textfield",
317
+ "heading" => __( 'Line Height', 'counter' ),
318
+ "param_name" => "lineheight",
319
+ "description" => __( 'set line height', 'counter' ),
320
+ "value" => "1",
321
+ "group" => 'Title',
322
+ ),
323
 
324
 
325
  // Counter Section
359
  "type" => "textfield",
360
  "heading" => __( 'Decimal', 'counter' ),
361
  "param_name" => "count_decimal",
362
+ "description" => __( 'put decimal after points e.g 2 or leave blank', 'counter' ),
363
  "group" => 'Setting',
364
  ),
365
  array(
383
  "description" => __( 'set counter interval e.g 100', 'counter' ),
384
  "group" => 'Setting',
385
  ),
386
+
387
+ /*=================================
388
+ Design Options====================*/
389
+
390
+ array(
391
+ "type" => "css_editor",
392
+ "heading" => __( 'Custom Styling', 'counter' ),
393
+ "param_name" => "css",
394
+ "group" => 'Design Options',
395
+ ),
396
  ),
397
  ) );
398
 
render/teamprofile.php CHANGED
@@ -11,6 +11,7 @@ class WPBakeryShortCode_mvc_team_profile extends WPBakeryShortCode {
11
  'member_visibility' => 'grow',
12
  'shadow_visibility' => 'none',
13
  'member_clr' => '#27BEBE',
 
14
  'image_id' => '',
15
  'image_alt' => '',
16
  'memb_name' => '',
@@ -61,7 +62,12 @@ class WPBakeryShortCode_mvc_team_profile extends WPBakeryShortCode {
61
  <div class="mega_team_case">
62
  <div class="mega_team_wrap">
63
  <div class="member-image">
64
- <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
 
 
 
 
 
65
  </div>
66
  <div class="member-name">
67
  <?php echo $memb_name; ?>
@@ -158,7 +164,12 @@ class WPBakeryShortCode_mvc_team_profile extends WPBakeryShortCode {
158
  <div class="mega_team_head">
159
  <div class="mega_team_wrap">
160
  <div class="member-image">
161
- <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
 
 
 
 
 
162
  </div>
163
  <div class="member-name">
164
  <?php echo $memb_name; ?>
@@ -258,7 +269,12 @@ class WPBakeryShortCode_mvc_team_profile extends WPBakeryShortCode {
258
  <div class="mega_team_case_3">
259
  <div class="mega_team_wrap">
260
  <div class="member-image">
261
- <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
 
 
 
 
 
262
  </div>
263
  <div class="member-name">
264
  <?php echo $memb_name; ?>
@@ -353,7 +369,12 @@ class WPBakeryShortCode_mvc_team_profile extends WPBakeryShortCode {
353
  <?php if ($member_visibility == 'smart') { ?>
354
  <div class="mega_team_case_4">
355
  <div class="member-image">
356
- <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
 
 
 
 
 
357
  </div>
358
  <div class="mega_wrap">
359
  <div class="member-name">
@@ -399,8 +420,8 @@ vc_map( array(
399
  "name" => __( 'Member Profile', 'memberprofile' ),
400
  "base" => "mvc_team_profile",
401
  "category" => __('Mega Addons'),
402
- "description" => __('Member profile showcase', 'memberprofile'),
403
- "icon" => plugin_dir_url( __FILE__ ).'../icons/memberprofile.jpg',
404
  'params' => array(
405
  array(
406
  "type" => "dropdown",
@@ -423,6 +444,14 @@ vc_map( array(
423
  "group" => 'General',
424
  ),
425
 
 
 
 
 
 
 
 
 
426
  array(
427
  "type" => "attach_image",
428
  "heading" => __( 'Image', 'memberprofile' ),
11
  'member_visibility' => 'grow',
12
  'shadow_visibility' => 'none',
13
  'member_clr' => '#27BEBE',
14
+ 'url' => '',
15
  'image_id' => '',
16
  'image_alt' => '',
17
  'memb_name' => '',
62
  <div class="mega_team_case">
63
  <div class="mega_team_wrap">
64
  <div class="member-image">
65
+ <?php if (isset($url) && $url != '') { ?>
66
+ <a href="<?php echo $url; ?>"><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
67
+ <?php } ?>
68
+ <?php if (isset($url) && $url == NULL) { ?>
69
+ <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
70
+ <?php } ?>
71
  </div>
72
  <div class="member-name">
73
  <?php echo $memb_name; ?>
164
  <div class="mega_team_head">
165
  <div class="mega_team_wrap">
166
  <div class="member-image">
167
+ <?php if (isset($url) && $url != '') { ?>
168
+ <a href="<?php echo $url; ?>"><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
169
+ <?php } ?>
170
+ <?php if (isset($url) && $url == NULL) { ?>
171
+ <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
172
+ <?php } ?>
173
  </div>
174
  <div class="member-name">
175
  <?php echo $memb_name; ?>
269
  <div class="mega_team_case_3">
270
  <div class="mega_team_wrap">
271
  <div class="member-image">
272
+ <?php if (isset($url) && $url != '') { ?>
273
+ <a href="<?php echo $url; ?>"><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
274
+ <?php } ?>
275
+ <?php if (isset($url) && $url == NULL) { ?>
276
+ <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
277
+ <?php } ?>
278
  </div>
279
  <div class="member-name">
280
  <?php echo $memb_name; ?>
369
  <?php if ($member_visibility == 'smart') { ?>
370
  <div class="mega_team_case_4">
371
  <div class="member-image">
372
+ <?php if (isset($url) && $url != '') { ?>
373
+ <a href="<?php echo $url; ?>"><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
374
+ <?php } ?>
375
+ <?php if (isset($url) && $url == NULL) { ?>
376
+ <a><img src="<?php echo $image_url; ?>" alt="<?php echo $image_alt; ?>"></a>
377
+ <?php } ?>
378
  </div>
379
  <div class="mega_wrap">
380
  <div class="member-name">
420
  "name" => __( 'Member Profile', 'memberprofile' ),
421
  "base" => "mvc_team_profile",
422
  "category" => __('Mega Addons'),
423
+ "description" => __('Show your awesome team', 'memberprofile'),
424
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/memberprofile.png',
425
  'params' => array(
426
  array(
427
  "type" => "dropdown",
444
  "group" => 'General',
445
  ),
446
 
447
+ array(
448
+ "type" => "textfield",
449
+ "heading" => __( 'URL Link', 'member-vc' ),
450
+ "param_name" => "url",
451
+ "description" => __( 'It will move to next page on click', 'member-vc' ),
452
+ "group" => 'General',
453
+ ),
454
+
455
  array(
456
  "type" => "attach_image",
457
  "heading" => __( 'Image', 'memberprofile' ),
render/texttyper.php CHANGED
@@ -55,8 +55,8 @@ vc_map( array(
55
  "name" => __( 'Text Type', 'text_type_vc' ),
56
  "base" => "text_type_vc",
57
  "category" => __('Mega Addons'),
58
- "description" => __('text type effect', ''),
59
- "icon" => plugin_dir_url( __FILE__ ).'../icons/texttype.jpg',
60
  'params' => array(
61
  array(
62
  "type" => "dropdown",
55
  "name" => __( 'Text Type', 'text_type_vc' ),
56
  "base" => "text_type_vc",
57
  "category" => __('Mega Addons'),
58
+ "description" => __('Fancy line with animation effects', ''),
59
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/texttype.png',
60
  'params' => array(
61
  array(
62
  "type" => "dropdown",
render/tm_carousel_father.php CHANGED
@@ -8,23 +8,59 @@ class WPBakeryShortCode_tm_carousel_father extends WPBakeryShortCodesContainer {
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
 
 
 
 
11
  'arrow' => 'false',
12
  'dot' => 'true',
13
  'autoplay' => 'true',
14
  'speed' => '1500',
15
- 'width' => '100%',
16
  'slide_visible' => '1',
17
  'slide_scroll' => '1',
 
 
 
 
 
18
  ), $atts ) );
19
  $content = wpb_js_remove_wpautop($content);
20
  wp_enqueue_style( 'slick-carousel-css', plugins_url( '../css/slick-carousal.css' , __FILE__ ));
21
  wp_enqueue_script( 'slick-js', plugins_url( '../js/slick.js' , __FILE__ ), array('jquery'));
22
  wp_enqueue_script( 'custom-js', plugins_url( '../js/custom-tm.js' , __FILE__ ), array('jquery'));
23
  ob_start(); ?>
24
- <section class="tm-slider slider" style="width: <?php echo $width; ?>;" data-slick='{"arrows": <?php echo $arrow; ?>, "autoplaySpeed": <?php echo $speed; ?>, "dots": <?php echo $dot; ?>, "autoplay": <?php echo $autoplay; ?>, "slidesToShow": <?php echo $slide_visible; ?>, "slidesToScroll": <?php echo $slide_scroll; ?>}'>
25
  <?php echo $content; ?>
26
  </section>
27
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  <?php return ob_get_clean();
29
  }
30
  }
@@ -40,22 +76,68 @@ vc_map( array(
40
  "description" => __('show as slider', ''),
41
  "icon" => plugin_dir_url( __FILE__ ).'../icons/carousal-slider.png',
42
  'params' => array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  array(
44
  "type" => "dropdown",
45
- "heading" => __( 'Arrows', 'tm-carousel' ),
46
  "param_name" => "arrow",
47
- "description" => __('Show/Hide on left & right', 'tm-carousel'),
48
  "group" => 'Settings',
49
  "value" => array(
50
  "Hide" => "false",
51
  "Show" => "true",
52
  )
53
- ),
54
  array(
55
  "type" => "dropdown",
56
- "heading" => __( 'Dots', 'tm-carousel' ),
57
  "param_name" => "dot",
58
- "description" => __('Show/Hide show at bottom', 'tm-carousel'),
59
  "group" => 'Settings',
60
  "value" => array(
61
  "Show" => "true",
@@ -64,47 +146,97 @@ vc_map( array(
64
  ),
65
  array(
66
  "type" => "dropdown",
67
- "heading" => __( 'Autoplay', 'tm-carousel' ),
68
  "param_name" => "autoplay",
69
- "description" => __('move auto or slide on click', 'tm-carousel'),
70
  "group" => 'Settings',
71
  "value" => array(
72
  "True" => "true",
73
  "False" => "false",
74
  )
75
  ),
76
- array(
77
  "type" => "textfield",
78
- "heading" => __( 'Width', 'tm-carousel' ),
79
  "param_name" => "width",
80
- "description" => __('container width in percentage eg, 100%', 'tm-carousel'),
81
  "value" => "100%",
82
  "group" => 'Settings',
83
- ),
84
  array(
85
  "type" => "textfield",
86
- "heading" => __( 'Slider Speed', 'tm-carousel' ),
87
  "param_name" => "speed",
88
- "description" => __('write in ms eg, 1500 [1s = 1000]', 'tm-carousel'),
89
  "value" => "1500",
90
  "group" => 'Settings',
91
  ),
92
  array(
93
  "type" => "textfield",
94
- "heading" => __( 'Slide To Show', 'tm-carousel' ),
95
  "param_name" => "slide_visible",
96
- "description" => __('set visible number of slides. default is 1', 'tm-carousel'),
97
  "value" => "1",
98
  "group" => 'Settings',
99
  ),
100
  array(
101
  "type" => "textfield",
102
- "heading" => __( 'Slide To Scroll', 'tm-carousel' ),
103
  "param_name" => "slide_scroll",
104
- "description" => __('allow user to multiple slide on click or drag. default is 1', 'tm-carousel'),
105
  "value" => "1",
106
  "group" => 'Settings',
107
  ),
108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
  )
110
  ) );
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
+ 'padding' => '30px',
12
+ 'theme' => 'default-tdt',
13
+ 'mbl_height' => '',
14
+ 'effect' => 'false',
15
  'arrow' => 'false',
16
  'dot' => 'true',
17
  'autoplay' => 'true',
18
  'speed' => '1500',
 
19
  'slide_visible' => '1',
20
  'slide_scroll' => '1',
21
+ 'id' => '',
22
+ 'dotclr' => 'transparent',
23
+ 'borderclr' => 'transparent',
24
+ 'arrowclr' => '#000',
25
+ 'arrowsize' => '20px',
26
  ), $atts ) );
27
  $content = wpb_js_remove_wpautop($content);
28
  wp_enqueue_style( 'slick-carousel-css', plugins_url( '../css/slick-carousal.css' , __FILE__ ));
29
  wp_enqueue_script( 'slick-js', plugins_url( '../js/slick.js' , __FILE__ ), array('jquery'));
30
  wp_enqueue_script( 'custom-js', plugins_url( '../js/custom-tm.js' , __FILE__ ), array('jquery'));
31
  ob_start(); ?>
32
+ <section class="tm-slider slider <?php echo $theme; ?>" id="tdt-slider<?php echo $id ?>" style="width: <?php echo $width; ?>;" data-slick='{"arrows": <?php echo $arrow; ?>, "autoplaySpeed": <?php echo $speed; ?>, "dots": <?php echo $dot; ?>, "autoplay": <?php echo $autoplay; ?>, "slidesToShow": <?php echo $slide_visible; ?>, "slidesToScroll": <?php echo $slide_scroll; ?>, "fade": <?php echo $effect; ?>}'>
33
  <?php echo $content; ?>
34
  </section>
35
 
36
+ <style>
37
+ #tdt-slider<?php echo $id ?> .slick-dots li button:before{
38
+ color: <?php echo $dotclr ?>;
39
+ border: 2px solid <?php echo $borderclr ?>;
40
+ }
41
+ #tdt-slider<?php echo $id ?> .slick-next:before {
42
+ color: <?php echo $arrowclr ?> !important;
43
+ font-size: <?php echo $arrowsize; ?> !important;
44
+ }
45
+ #tdt-slider<?php echo $id ?> .slick-prev:before {
46
+ color: <?php echo $arrowclr ?> !important;
47
+ font-size: <?php echo $arrowsize; ?> !important;
48
+ }
49
+ #tdt-slider<?php echo $id ?> .slick-dots li.slick-active button:before {
50
+ opacity: 1 !important;
51
+ }
52
+ #tdt-slider<?php echo $id ?>.content-over-slider .slick-slide .content-section {
53
+ top: <?php echo $padding ?>;
54
+ }
55
+ @media only screen and (max-width: 480px) {
56
+ #tdt-slider<?php echo $id ?>.content-over-slider .slick-slide .content-section {
57
+ top: 35px !important;
58
+ }
59
+ #tdt-slider<?php echo $id ?>.content-over-slider .ultimate-slide-img {
60
+ height: <?php echo $mbl_height; ?> !important;
61
+ }
62
+ }
63
+ </style>
64
  <?php return ob_get_clean();
65
  }
66
  }
76
  "description" => __('show as slider', ''),
77
  "icon" => plugin_dir_url( __FILE__ ).'../icons/carousal-slider.png',
78
  'params' => array(
79
+ array(
80
+ "type" => "textfield",
81
+ "heading" => __( 'Unique ID', 'slider' ),
82
+ "param_name" => "id",
83
+ "description" => __('Recomended: It must be unique', 'slider'),
84
+ "group" => 'Settings',
85
+ ),
86
+ array(
87
+ "type" => "dropdown",
88
+ "heading" => __( 'Select Theme', 'slider' ),
89
+ "param_name" => "theme",
90
+ "description" => __('Use as carousal top image bottom content or as slider image over content', 'slider'),
91
+ "group" => 'Settings',
92
+ "value" => array(
93
+ "Top Image Bottom Content" => "default-tdt",
94
+ "Image Over Content" => "content-over-slider",
95
+ )
96
+ ),
97
+ array(
98
+ "type" => "textfield",
99
+ "heading" => __( 'Carousel Height (For Mobile)', 'slider' ),
100
+ "param_name" => "mbl_height",
101
+ "description" => __( 'set in pixel eg, 250px or leave blank', 'slider' ),
102
+ "dependency" => array('element' => "theme", 'value' => 'content-over-slider'),
103
+ "group" => 'Settings',
104
+ ),
105
+ array(
106
+ "type" => "textfield",
107
+ "heading" => __( 'Padding Top', 'slider' ),
108
+ "param_name" => "padding",
109
+ "description" => __('set in pixel eg 100px. padding will apply from top for the content', 'slider'),
110
+ "dependency" => array('element' => "theme", 'value' => 'content-over-slider'),
111
+ "value" => "30px",
112
+ "group" => 'Settings',
113
+ ),
114
+ array(
115
+ "type" => "dropdown",
116
+ "heading" => __( 'Slide Effect', 'slider' ),
117
+ "param_name" => "effect",
118
+ "description" => __('choose slider effect', 'slider'),
119
+ "group" => 'Settings',
120
+ "value" => array(
121
+ "Slide [Right To Left]" => "false",
122
+ "Fade" => "true",
123
+ )
124
+ ),
125
  array(
126
  "type" => "dropdown",
127
+ "heading" => __( 'Arrows', 'slider' ),
128
  "param_name" => "arrow",
129
+ "description" => __('Show/Hide on left & right', 'slider'),
130
  "group" => 'Settings',
131
  "value" => array(
132
  "Hide" => "false",
133
  "Show" => "true",
134
  )
135
+ ),
136
  array(
137
  "type" => "dropdown",
138
+ "heading" => __( 'Dots', 'slider' ),
139
  "param_name" => "dot",
140
+ "description" => __('Show/Hide show at bottom', 'slider'),
141
  "group" => 'Settings',
142
  "value" => array(
143
  "Show" => "true",
146
  ),
147
  array(
148
  "type" => "dropdown",
149
+ "heading" => __( 'Autoplay', 'slider' ),
150
  "param_name" => "autoplay",
151
+ "description" => __('move auto or slide on click', 'slider'),
152
  "group" => 'Settings',
153
  "value" => array(
154
  "True" => "true",
155
  "False" => "false",
156
  )
157
  ),
158
+ /*array(
159
  "type" => "textfield",
160
+ "heading" => __( 'Width', 'slider' ),
161
  "param_name" => "width",
162
+ "description" => __('container width in percentage eg, 100%', 'slider'),
163
  "value" => "100%",
164
  "group" => 'Settings',
165
+ ),*/
166
  array(
167
  "type" => "textfield",
168
+ "heading" => __( 'Slider Speed', 'slider' ),
169
  "param_name" => "speed",
170
+ "description" => __('write in ms eg, 1500 [1s = 1000]', 'slider'),
171
  "value" => "1500",
172
  "group" => 'Settings',
173
  ),
174
  array(
175
  "type" => "textfield",
176
+ "heading" => __( 'Slide To Show', 'slider' ),
177
  "param_name" => "slide_visible",
178
+ "description" => __('set visible number of slides. default is 1', 'slider'),
179
  "value" => "1",
180
  "group" => 'Settings',
181
  ),
182
  array(
183
  "type" => "textfield",
184
+ "heading" => __( 'Slide To Scroll', 'slider' ),
185
  "param_name" => "slide_scroll",
186
+ "description" => __('allow user to multiple slide on click or drag. default is 1', 'slider'),
187
  "value" => "1",
188
  "group" => 'Settings',
189
  ),
190
 
191
+ // Dot Section Setting
192
+
193
+ array(
194
+ "type" => "dropdown",
195
+ "heading" => __( 'Dot/Border', 'slider' ),
196
+ "param_name" => "style",
197
+ "group" => 'Dot',
198
+ "dependency" => array('element' => "dot", 'value' => 'true'),
199
+ "value" => array(
200
+ "Dot" => "dot",
201
+ "Border" => "border",
202
+ )
203
+ ),
204
+ array(
205
+ "type" => "colorpicker",
206
+ "heading" => __( 'Dot Color', 'slider' ),
207
+ "param_name" => "dotclr",
208
+ "dependency" => array('element' => "style", 'value' => 'dot'),
209
+ "value" => "#000",
210
+ "group" => 'Dot',
211
+ ),
212
+ array(
213
+ "type" => "colorpicker",
214
+ "heading" => __( 'Border Color', 'slider' ),
215
+ "param_name" => "borderclr",
216
+ "dependency" => array('element' => "style", 'value' => 'border'),
217
+ "value" => "#000",
218
+ "group" => 'Dot',
219
+ ),
220
+
221
+ // Dot Section Setting
222
+
223
+ array(
224
+ "type" => "colorpicker",
225
+ "heading" => __( 'Arrow Color', 'slider' ),
226
+ "param_name" => "arrowclr",
227
+ "dependency" => array('element' => "arrow", 'value' => 'true'),
228
+ "value" => "#000",
229
+ "group" => 'Arrow',
230
+ ),
231
+ array(
232
+ "type" => "textfield",
233
+ "heading" => __( 'Arrow Font Size', 'slider' ),
234
+ "param_name" => "arrowsize",
235
+ "description" => "set in pixel eg, 20px",
236
+ "dependency" => array('element' => "arrow", 'value' => 'true'),
237
+ "value" => "20px",
238
+ "group" => 'Arrow',
239
+ ),
240
+
241
  )
242
  ) );
render/tm_carousel_son.php CHANGED
@@ -8,6 +8,7 @@ class WPBakeryShortCode_tm_carousel_son extends WPBakeryShortCode {
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
 
11
  'image_id' => '',
12
  'img_width' => '',
13
  'img_height' => '',
@@ -17,6 +18,20 @@ class WPBakeryShortCode_tm_carousel_son extends WPBakeryShortCode {
17
  'titleclr' => '',
18
  'fontweight' => 'normal',
19
  'line_height' => '1',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  ), $atts ) );
21
  if ($image_id != '') {
22
  $image_url = wp_get_attachment_url( $image_id );
@@ -25,11 +40,35 @@ class WPBakeryShortCode_tm_carousel_son extends WPBakeryShortCode {
25
  // wp_enqueue_style( 'social-icons-css', plugins_url( '../css/socialicons.css' , __FILE__ ));
26
  ob_start(); ?>
27
  <div>
28
- <img src="<?php echo $image_url; ?>" style="width: <?php echo $img_width; ?>; height: <?php echo $img_height; ?>; border-radius: <?php echo $img_radius; ?>; margin-bottom: 15px;">
29
- <h2 style="text-align: center; font-size: <?php echo $titlesize; ?>; color: <?php echo $titleclr; ?>; font-weight: <?php echo $fontweight; ?>; line-height: <?php echo $line_height; ?>;">
30
- <?php echo $title; ?>
31
- </h2>
32
- <?php echo $content; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  </div>
34
  <?php
35
 
@@ -47,79 +86,215 @@ vc_map( array(
47
  "description" => __('show as slider', ''),
48
  "icon" => plugin_dir_url( __FILE__ ).'../icons/carousal-slider.png',
49
  'params' => array(
 
 
 
 
 
 
 
50
  array(
51
  "type" => "attach_image",
52
- "heading" => __( 'Select Image', 'tm-carousel' ),
53
  "param_name" => "image_id",
54
  "group" => 'General',
55
  ),
56
  array(
57
  "type" => "textfield",
58
- "heading" => __( 'Width', 'tm-carousel' ),
59
  "param_name" => "img_width",
60
- "description" => __( 'set in pixel or leave blank', 'tm-carousel' ),
61
  "group" => 'General',
62
  ),
63
  array(
64
  "type" => "textfield",
65
- "heading" => __( 'Height', 'tm-carousel' ),
66
  "param_name" => "img_height",
67
- "description" => __( 'set in pixel or leave blank', 'tm-carousel' ),
68
  "group" => 'General',
69
  ),
70
  array(
71
  "type" => "textfield",
72
- "heading" => __( 'Image Radius', 'tm-carousel' ),
73
  "param_name" => "img_radius",
74
- "description" => __( 'border radius. set in pixel or percentage or leave blank', 'tm-carousel' ),
75
  "value" => "0px",
76
  "group" => 'General',
77
  ),
78
 
79
 
80
  // Title Section
 
 
 
 
 
 
 
 
 
 
 
81
  array(
82
  "type" => "textfield",
83
- "heading" => __( 'Title', 'tm-carousel' ),
84
  "param_name" => "title",
85
- "group" => 'Title',
86
  ),
87
  array(
88
  "type" => "textfield",
89
- "heading" => __( 'Title Font Size', 'tm-carousel' ),
90
  "param_name" => "titlesize",
91
  "description" => "set in pixel eg, 22px",
92
  "value" => "22px",
93
- "group" => 'Title',
94
  ),
95
  array(
96
  "type" => "colorpicker",
97
- "heading" => __( 'Title Color', 'tm-carousel' ),
98
  "param_name" => "titleclr",
99
- "group" => 'Title',
100
  ),
101
  array(
102
  "type" => "textfield",
103
- "heading" => __( 'Font Weight', 'tm-carousel' ),
104
  "param_name" => "fontweight",
105
  "description" => "lighter, normal, bold, 100, 300, 500..",
106
  "value" => "normal",
107
- "group" => 'Title',
108
  ),
109
  array(
110
  "type" => "textfield",
111
- "heading" => __( 'Line Height', 'tm-carousel' ),
112
  "param_name" => "line_height",
113
  "description" => "default value is 1",
114
  "value" => "1",
115
- "group" => 'Title',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  ),
117
 
 
 
118
  array(
119
  "type" => "textarea_html",
120
- "heading" => __( 'Write Testimonial Text', 'tm-carousel' ),
121
  "param_name" => "content",
122
- "value" => "<h2 style='text-align: center;'>Testimonial</h2><p style='text-align: center;'>write any text and make custom design that you want to show as client feedback.</p>",
123
  "group" => 'Description',
124
  ),
125
  ),
8
  protected function content( $atts, $content = null ) {
9
 
10
  extract( shortcode_atts( array(
11
+ 'contain_url' => '',
12
  'image_id' => '',
13
  'img_width' => '',
14
  'img_height' => '',
18
  'titleclr' => '',
19
  'fontweight' => 'normal',
20
  'line_height' => '1',
21
+ 'align' => 'center',
22
+ 'line_width' => '50px',
23
+ 'line_style' => '0px solid #fff',
24
+ 'btn_visibility' => 'hide',
25
+ 'line_visibility' => 'hide',
26
+ 'btn_text' => '',
27
+ 'btn_size' => '15px',
28
+ 'btn_border' => '5px',
29
+ 'btn_height' => '20px',
30
+ 'btn_width' => '60px',
31
+ 'btn_url' => '',
32
+ 'btn_clr' => '#fff',
33
+ 'btn_bg' => '#000',
34
+ 'btn_border_style' => '0px solid #fff',
35
  ), $atts ) );
36
  if ($image_id != '') {
37
  $image_url = wp_get_attachment_url( $image_id );
40
  // wp_enqueue_style( 'social-icons-css', plugins_url( '../css/socialicons.css' , __FILE__ ));
41
  ob_start(); ?>
42
  <div>
43
+ <?php if ($contain_url != '') { ?>
44
+ <a href="<?php echo $contain_url; ?>">
45
+ <?php } ?>
46
+ <?php if ($contain_url == NULL) { ?>
47
+ <a>
48
+ <?php } ?>
49
+ <img src="<?php echo $image_url; ?>" class="ultimate-slide-img" style="width: <?php echo $img_width; ?>; height: <?php echo $img_height; ?>; border-radius: <?php echo $img_radius; ?>; margin-bottom: 15px;">
50
+
51
+ </a>
52
+ <span class="content-section" style="text-align: <?php echo $align ?>;">
53
+ <h2 class="tdt-slider-heading" style="font-size: <?php echo $titlesize; ?>; color: <?php echo $titleclr; ?>; font-weight: <?php echo $fontweight; ?>; line-height: <?php echo $line_height; ?>;">
54
+ <?php echo $title; ?>
55
+ </h2>
56
+ <?php if ($line_visibility == 'show') { ?>
57
+ <span class="heading-line" style="display: block;">
58
+ <span class="heading-line" style="width: <?php echo $line_width; ?>; border-bottom: <?php echo $line_style; ?>; display: inline-block;"></span>
59
+ </span>
60
+ <?php } ?>
61
+
62
+ <?php echo $content; ?><br>
63
+
64
+ <?php if ($btn_visibility == 'show') { ?>
65
+ <span class="carousel_btn_span">
66
+ <a href="<?php echo $btn_url; ?>" class="ultimate_carousel_btn" style="padding: <?php echo $btn_height/2 ?>px <?php echo $btn_width/2 ?>px;font-size: <?php echo $btn_size; ?>; border-radius: <?php echo $btn_border; ?>; color: <?php echo $btn_clr; ?>; background-color: <?php echo $btn_bg; ?>;">
67
+ <?php echo $btn_text; ?>
68
+ </a>
69
+ </span>
70
+ <?php } ?>
71
+ </span>
72
  </div>
73
  <?php
74
 
86
  "description" => __('show as slider', ''),
87
  "icon" => plugin_dir_url( __FILE__ ).'../icons/carousal-slider.png',
88
  'params' => array(
89
+ array(
90
+ "type" => "textfield",
91
+ "heading" => __( 'Link To', 'slider' ),
92
+ "param_name" => "contain_url",
93
+ "description" => "Add Slide Url or leave blank, use it if you select theme [top image bottom content]",
94
+ "group" => 'General',
95
+ ),
96
  array(
97
  "type" => "attach_image",
98
+ "heading" => __( 'Select Image', 'slider' ),
99
  "param_name" => "image_id",
100
  "group" => 'General',
101
  ),
102
  array(
103
  "type" => "textfield",
104
+ "heading" => __( 'Width', 'slider' ),
105
  "param_name" => "img_width",
106
+ "description" => __( 'set in pixel or percentage or leave blank', 'slider' ),
107
  "group" => 'General',
108
  ),
109
  array(
110
  "type" => "textfield",
111
+ "heading" => __( 'Height', 'slider' ),
112
  "param_name" => "img_height",
113
+ "description" => __( 'set in pixel eg 100% or 500px or leave blank', 'slider' ),
114
  "group" => 'General',
115
  ),
116
  array(
117
  "type" => "textfield",
118
+ "heading" => __( 'Image Radius', 'slider' ),
119
  "param_name" => "img_radius",
120
+ "description" => __( 'border radius. set in pixel or percentage or leave blank', 'slider' ),
121
  "value" => "0px",
122
  "group" => 'General',
123
  ),
124
 
125
 
126
  // Title Section
127
+ array(
128
+ "type" => "dropdown",
129
+ "heading" => __( 'Alignment', 'slider' ),
130
+ "param_name" => "align",
131
+ "group" => 'Heading',
132
+ "value" => array(
133
+ "Center" => 'center',
134
+ "Left" => 'left',
135
+ "Right" => 'right',
136
+ )
137
+ ),
138
  array(
139
  "type" => "textfield",
140
+ "heading" => __( 'Title', 'slider' ),
141
  "param_name" => "title",
142
+ "group" => 'Heading',
143
  ),
144
  array(
145
  "type" => "textfield",
146
+ "heading" => __( 'Title Font Size', 'slider' ),
147
  "param_name" => "titlesize",
148
  "description" => "set in pixel eg, 22px",
149
  "value" => "22px",
150
+ "group" => 'Heading',
151
  ),
152
  array(
153
  "type" => "colorpicker",
154
+ "heading" => __( 'Title Color', 'slider' ),
155
  "param_name" => "titleclr",
156
+ "group" => 'Heading',
157
  ),
158
  array(
159
  "type" => "textfield",
160
+ "heading" => __( 'Font Weight', 'slider' ),
161
  "param_name" => "fontweight",
162
  "description" => "lighter, normal, bold, 100, 300, 500..",
163
  "value" => "normal",
164
+ "group" => 'Heading',
165
  ),
166
  array(
167
  "type" => "textfield",
168
+ "heading" => __( 'Line Height', 'slider' ),
169
  "param_name" => "line_height",
170
  "description" => "default value is 1",
171
  "value" => "1",
172
+ "group" => 'Heading',
173
+ ),
174
+
175
+ // Heading Line
176
+ array(
177
+ "type" => "dropdown",
178
+ "heading" => __( 'Enable/Disable', 'slider' ),
179
+ "param_name" => "line_visibility",
180
+ "group" => 'Heading Line',
181
+ "value" => array(
182
+ "Hide" => 'hide',
183
+ "Show" => 'show',
184
+ )
185
+ ),
186
+ array(
187
+ "type" => "textfield",
188
+ "heading" => __( 'Line Width', 'slider' ),
189
+ "param_name" => "line_width",
190
+ "description" => "set in pixel. line will show at bottom of heading",
191
+ "dependency" => array('element' => "line_visibility", 'value' => 'show'),
192
+ "value" => "50px",
193
+ "group" => 'Heading Line',
194
+ ),
195
+ array(
196
+ "type" => "textfield",
197
+ "heading" => __( 'Line Style', 'slider' ),
198
+ "param_name" => "line_style",
199
+ "value" => "0px solid #fff",
200
+ "description" => "[height style color]",
201
+ "dependency" => array('element' => "line_visibility", 'value' => 'show'),
202
+ "group" => 'Heading Line',
203
+ ),
204
+
205
+ // Button Setting
206
+ array(
207
+ "type" => "dropdown",
208
+ "heading" => __( 'Enable/Disable', 'slider' ),
209
+ "param_name" => "btn_visibility",
210
+ "group" => 'Button',
211
+ "value" => array(
212
+ "Hide" => 'hide',
213
+ "Show" => 'show',
214
+ )
215
+ ),
216
+
217
+ array(
218
+ "type" => "textfield",
219
+ "heading" => __( 'Button Text', 'slider' ),
220
+ "param_name" => "btn_text",
221
+ "dependency" => array('element' => "btn_visibility", 'value' => 'show'),
222
+ "group" => 'Button',
223
+ ),
224
+ array(
225
+ "type" => "textfield",
226
+ "heading" => __( 'Button URL', 'slider' ),
227
+ "param_name" => "btn_url",
228
+ "dependency" => array('element' => "btn_visibility", 'value' => 'show'),
229
+ "group" => 'Button',
230
+ ),
231
+ array(
232
+ "type" => "textfield",
233
+ "heading" => __( 'Text Size', 'slider' ),
234
+ "param_name" => "btn_size",
235
+ "value" => "15px",
236
+ "description" => "set in pixel eg 15px",
237
+ "dependency" => array('element' => "btn_visibility", 'value' => 'show'),
238
+ "group" => 'Button',
239
+ ),
240
+ array(
241
+ "type" => "textfield",
242
+ "heading" => __( 'Button Height', 'slider' ),
243
+ "param_name" => "btn_height",
244
+ "description" => "set in pixel eg 20px,",
245
+ "dependency" => array('element' => "btn_visibility", 'value' => 'show'),
246
+ "value" => "20px",
247
+ "group" => 'Button',
248
+ ),
249
+ array(
250
+ "type" => "textfield",
251
+ "heading" => __( 'Button Width', 'slider' ),
252
+ "param_name" => "btn_width",
253
+ "description" => "set in pixel eg 60px",
254
+ "dependency" => array('element' => "btn_visibility", 'value' => 'show'),
255
+ "value" => "60px",
256
+ "group" => 'Button',
257
+ ),
258
+ array(
259
+ "type" => "textfield",
260
+ "heading" => __( 'Button Border Radius', 'slider' ),
261
+ "param_name" => "btn_border",
262
+ "description" => "set in pixel",
263
+ "dependency" => array('element' => "btn_visibility", 'value' => 'show'),
264
+ "value" => "5px",
265
+ "group" => 'Button',
266
+ ),
267
+ array(
268
+ "type" => "textfield",
269
+ "heading" => __( 'Border Style', 'slider' ),
270
+ "param_name" => "btn_border_style",
271
+ "description" => "[height style color]",
272
+ "dependency" => array('element' => "btn_visibility", 'value' => 'show'),
273
+ "value" => "0px solid #fff",
274
+ "group" => 'Button',
275
+ ),
276
+ array(
277
+ "type" => "colorpicker",
278
+ "heading" => __( 'Text Color', 'slider' ),
279
+ "param_name" => "btn_clr",
280
+ "dependency" => array('element' => "btn_visibility", 'value' => 'show'),
281
+ "group" => 'Button',
282
+ ),
283
+ array(
284
+ "type" => "colorpicker",
285
+ "heading" => __( 'Background Color', 'slider' ),
286
+ "param_name" => "btn_bg",
287
+ "dependency" => array('element' => "btn_visibility", 'value' => 'show'),
288
+ "group" => 'Button',
289
  ),
290
 
291
+ // Description Section
292
+
293
  array(
294
  "type" => "textarea_html",
295
+ "heading" => __( 'Write Testimonial Text', 'slider' ),
296
  "param_name" => "content",
297
+ "value" => "<h2 style='text-align: center;'>SUB HEADING</h2><p style='text-align: center;'>write any text and make custom design that you want to show.</p>",
298
  "group" => 'Description',
299
  ),
300
  ),
render/tooltip_icons.php CHANGED
@@ -11,35 +11,22 @@ class WPBakeryShortCode_tooltip_icons extends WPBakeryShortCode {
11
  'image_id' => '',
12
  'text' => '',
13
  'bgclr' => '#000',
14
- 'top' => '',
15
- 'left' => '',
16
- 'visible' => 'tooltip-top',
 
17
  ), $atts ) );
18
- wp_enqueue_style( 'animates-css', plugins_url( '../css/tooltip.css' , __FILE__ ));
 
 
 
19
  if ($image_id != '') {
20
  $image_url = wp_get_attachment_url( $image_id );
21
  }
22
  $content = wpb_js_remove_wpautop($content, true);
 
23
  ob_start(); ?>
24
- <?php if ($visible == 'tooltip-top' || $visible == 'tooltip-bottom') { ?>
25
- <a class="<?php echo $visible; ?>">
26
- <img src="<?php echo $image_url; ?>">
27
- <span class="icon-span" style="background: <?php echo $bgclr; ?>; top: <?php echo $top; ?>; left: <?php echo $left; ?>;">
28
- <?php echo $text; ?>
29
- <span class="icon-after" style="border-top: 8px solid <?php echo $bgclr; ?>; border-right: 8px solid <?php echo $bgclr; ?>; border-bottom: 8px solid <?php echo $bgclr; ?>; border-left: 8px solid <?php echo $bgclr; ?>;"></span>
30
- </span>
31
- </a>
32
- <?php } ?>
33
-
34
- <?php if ($visible == 'tooltip-right' || $visible == 'tooltip-left') { ?>
35
- <a class="<?php echo $visible; ?>">
36
- <img src="<?php echo $image_url; ?>">
37
- <span class="icon-span" style="background: <?php echo $bgclr; ?>; top: -<?php echo $top; ?>;">
38
- <?php echo $text; ?>
39
- <span class="icon-after" style="border-top: 8px solid <?php echo $bgclr; ?>; border-right: 8px solid <?php echo $bgclr; ?>; border-bottom: 8px solid <?php echo $bgclr; ?>; border-left: 8px solid <?php echo $bgclr; ?>;"></span>
40
- </span>
41
- </a>
42
- <?php } ?>
43
 
44
  <?php
45
  return ob_get_clean();
@@ -68,41 +55,60 @@ vc_map( array(
68
  "description" => __( 'it will show on hover image', 'justicons' ),
69
  "group" => 'Image',
70
  ),
 
 
 
 
 
 
 
 
71
  array(
72
- "type" => "colorpicker",
73
- "heading" => __( 'Background', 'justicons' ),
74
- "param_name" => "bgclr",
75
- "description" => __( 'tooltip background color', 'justicons' ),
76
- "value" => "#000",
77
- "group" => 'Image',
78
  ),
79
  array(
80
  "type" => "dropdown",
81
- "heading" => __( 'Visibility', 'justicons' ),
82
- "param_name" => "visible",
83
- "description" => __( 'tooltip visibility', 'justicons' ),
84
  "group" => 'Settings',
85
  "value" => array(
86
- "Top" => "tooltip-top",
87
- "Right" => "tooltip-right",
88
- "Bottom" => "tooltip-bottom",
89
- "Left" => "tooltip-left",
 
90
  )
91
  ),
92
  array(
93
- "type" => "textfield",
94
- "heading" => __( 'Position from top', 'justicons' ),
95
- "param_name" => "top",
96
- "description" => __( 'set in pixel or percentage eg, 50px', 'justicons' ),
97
  "group" => 'Settings',
 
 
 
 
 
 
 
 
98
  ),
99
  array(
100
- "type" => "textfield",
101
- "heading" => __( 'Position from Left', 'justicons' ),
102
- "param_name" => "left",
103
- "description" => __( 'set in pixel or percentage eg, 50px', 'justicons' ),
104
- "dependency" => array('element' => "visible", 'value' => array('tooltip-top', 'tooltip-bottom')),
105
  "group" => 'Settings',
 
 
 
 
 
 
106
  ),
107
  ),
108
  ) );
11
  'image_id' => '',
12
  'text' => '',
13
  'bgclr' => '#000',
14
+ 'speed' => '350',
15
+ 'animation' => 'fade',
16
+ 'theme' => 'default',
17
+ 'position' => 'top',
18
  ), $atts ) );
19
+ wp_enqueue_style( 'na-tooltip-css', plugin_dir_url( dirname(__FILE__) ).'/css/tooltipster.bundle.min.css' );
20
+ wp_enqueue_script( 'na-tooltip', plugin_dir_url( dirname(__FILE__) ).'/js/tooltipster.bundle.min.js', array('jquery') );
21
+ wp_enqueue_script( 'na-tooltipa', plugin_dir_url( dirname(__FILE__) ).'/js/tooltip.js', array('jquery') );
22
+ // wp_enqueue_style( 'animates-css', plugins_url( '../css/tooltip.css' , __FILE__ ));
23
  if ($image_id != '') {
24
  $image_url = wp_get_attachment_url( $image_id );
25
  }
26
  $content = wpb_js_remove_wpautop($content, true);
27
+ $tooltip_id = rand();
28
  ob_start(); ?>
29
+ <img src="<?php echo $image_url; ?>" data-uid="<?php echo $tooltip_id; ?>" class="tooltip" data-theme="tooltipster-<?php echo $theme; ?>" data-speed="<?php echo $speed; ?>" data-anim="<?php echo $animation; ?>" data-position="<?php echo $position; ?>" title="<?php echo $text; ?>">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  <?php
32
  return ob_get_clean();
55
  "description" => __( 'it will show on hover image', 'justicons' ),
56
  "group" => 'Image',
57
  ),
58
+ // array(
59
+ // "type" => "colorpicker",
60
+ // "heading" => __( 'Background', 'justicons' ),
61
+ // "param_name" => "bgclr",
62
+ // "description" => __( 'tooltip background color', 'justicons' ),
63
+ // "value" => "#000",
64
+ // "group" => 'Image',
65
+ // ),
66
  array(
67
+ "type" => "textfield",
68
+ "heading" => __( 'Animation Speed', 'justicons' ),
69
+ "param_name" => "speed",
70
+ "description" => __( 'Sets the duration of the animation, in milliseconds', 'justicons' ),
71
+ "value" => "350",
72
+ "group" => 'Settings',
73
  ),
74
  array(
75
  "type" => "dropdown",
76
+ "heading" => __( 'Animation Style', 'justicons' ),
77
+ "param_name" => "animation",
 
78
  "group" => 'Settings',
79
  "value" => array(
80
+ "Fade" => "fade",
81
+ "Grow" => "grow",
82
+ "Swing" => "swing",
83
+ "Slide" => "slide",
84
+ "fall" => "Fall",
85
  )
86
  ),
87
  array(
88
+ "type" => "dropdown",
89
+ "heading" => __( 'Choose Theme', 'justicons' ),
90
+ "param_name" => "theme",
 
91
  "group" => 'Settings',
92
+ "value" => array(
93
+ "Default" => "default",
94
+ "Light" => "light",
95
+ "Borderless" => "borderless",
96
+ "Punk" => "punk",
97
+ "Noir" => "noir",
98
+ "Shadow" => "shadow",
99
+ )
100
  ),
101
  array(
102
+ "type" => "dropdown",
103
+ "heading" => __( 'Posotion', 'justicons' ),
104
+ "param_name" => "position",
 
 
105
  "group" => 'Settings',
106
+ "value" => array(
107
+ "Top" => "top",
108
+ "Right" => "right",
109
+ "Bottom" => "bottom",
110
+ "Left" => "left",
111
+ )
112
  ),
113
  ),
114
  ) );
render/woo_grid.php ADDED
@@ -0,0 +1,314 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) {
3
+ die( '-1' );
4
+ }
5
+
6
+ class WPBakeryShortCode_vc_woo_grid extends WPBakeryShortCode {
7
+
8
+ protected function content( $atts, $content = null ) {
9
+
10
+ extract( shortcode_atts( array(
11
+ 'style' => 'mega-post-carousel1',
12
+ 'settings' => '',
13
+ 'catg' => 'visible',
14
+ 'rating' => 'visible',
15
+ 'imgheight' => '200px',
16
+ 'txtsize' => '18px',
17
+ 'descsize' => '14px',
18
+ 'txtclr' => '#000',
19
+ 'dateclr' => '#000',
20
+ 'descclr' => '#888',
21
+ 'woobtn' => '',
22
+ ), $atts ) );
23
+ if (isset($image_id) && $image_id != '') {
24
+ $image_url = wp_get_attachment_url( $image_id );
25
+ }
26
+ // var_dump($settings);
27
+ $content = wpb_js_remove_wpautop($content);
28
+ wp_enqueue_style( 'post-carousel-css', plugins_url( '../css/post-carousel.css' , __FILE__ ));
29
+ wp_enqueue_style( 'grid-css', plugins_url( '../css/simplegrid.css' , __FILE__ ));
30
+ wp_enqueue_script( 'custom-height', plugins_url( '../js/jquery.matchHeight-min.js' , __FILE__ ), array('jquery'));
31
+ wp_enqueue_script( 'custom-js', plugins_url( '../js/custom-tm.js' , __FILE__ ), array('jquery'));
32
+
33
+ $args = array(
34
+ 'posts_per_page' => -1,
35
+ );
36
+ $seperate_settings = explode('|', $settings);
37
+
38
+ foreach ($seperate_settings as $setting) {
39
+ $key_val = explode(':', $setting);
40
+ if ($key_val[0] == 'size') {
41
+ $args['posts_per_page'] = $key_val[1];
42
+ } else {
43
+ $args[$key_val[0]] = $key_val[1];
44
+ }
45
+ }
46
+
47
+ // The Query
48
+ $the_query = new WP_Query( $args );
49
+
50
+ // The Loop
51
+ if ( $the_query->have_posts() ) { ?>
52
+ <div class="na-prefix">
53
+ <div class="grid grid-pad">
54
+ <?php while ( $the_query->have_posts() ) { ?>
55
+ <?php $the_query->the_post(); ?>
56
+
57
+ <?php if ($style == 'mega-post-carousel1') { ?>
58
+ <div class="col-1-3 mason-item" style="padding-right: 15px;">
59
+ <div class="mega-post-carousel1" style="margin-bottom: 40px;">
60
+ <div class="mega-post-image">
61
+ <?php the_post_thumbnail('large', array('class' => 'your-class-name')); ?>
62
+
63
+ <span class="mega-comment-box" style="display: <?php echo $comment; ?>">
64
+ <span class="mega-post-comment">
65
+ <a href=""><?php $cu = wp_count_comments(get_the_id() ); echo $cu -> total_comments; ?> </a>
66
+ </span>
67
+ </span>
68
+ </div>
69
+
70
+ <div class="mega-post-category" style="display: <?php echo $catg; ?>">
71
+ <?php $categories = get_the_terms( get_the_id(), 'product_cat' );
72
+ $separator = ' ';
73
+ $output = '';
74
+ if ( ! empty( $categories ) ) {
75
+ foreach( $categories as $category ) {
76
+ $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
77
+ }
78
+ echo trim( $output, $separator );
79
+ } ?>
80
+ </div>
81
+ <?php $product = new WC_Product(get_the_id()); ?>
82
+ <div class="clearfix"></div>
83
+ <?php if ($args['post_type'] == 'product') {
84
+ echo wc_price(get_the_id());
85
+ } ?>
86
+ <span style="display: <?php echo $rating; ?>;">
87
+ <?php echo wc_get_rating_html( $product->get_average_rating() ); ?>
88
+ </span>
89
+ <div class="clearfix"></div>
90
+ <h3 class="mega-post-title">
91
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
92
+ </h3>
93
+
94
+ <div class="clearfix"></div>
95
+ <div class="mega-post-para">
96
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
97
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
98
+ </p>
99
+ </div>
100
+ <?php echo apply_filters( 'woocommerce_loop_add_to_cart_link',
101
+ sprintf( '<a style="background: %s" rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>',
102
+ $woobtn,
103
+ esc_url( $product->add_to_cart_url() ),
104
+ esc_attr( isset( $quantity ) ? $quantity : 1 ),
105
+ esc_attr( $product->get_id() ),
106
+ esc_attr( $product->get_sku() ),
107
+ esc_attr( isset( $class ) ? $class : 'button product_type_simple add_to_cart_button ajax_add_to_cart' ),
108
+ esc_html( $product->single_add_to_cart_text() )
109
+ ),
110
+ $product );
111
+
112
+ ?>
113
+
114
+ </div><br><br><br>
115
+ </div>
116
+ <?php } ?>
117
+
118
+ <?php if ($style == 'mega-post-carousel2') { ?>
119
+ <div class="col-1-3 mason-item" style="padding-right: 15px;">
120
+ <div class="mega-post-carousel2" style="margin-bottom: 40px;">
121
+ <div class="mega-post-image">
122
+ <?php the_post_thumbnail('large', array('class' => 'your-class-name')); ?>
123
+ </div>
124
+ <div class="mega-post-content">
125
+ <h3 class="mega-post-title">
126
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
127
+ </h3>
128
+ <?php $product = new WC_Product(get_the_id()); ?>
129
+ <?php if ($args['post_type'] == 'product') {
130
+ echo wc_price(get_the_id());
131
+ } ?>
132
+ <br>
133
+ <div class="mega-post-para">
134
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
135
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 50, '...');?>
136
+ </p>
137
+ </div>
138
+ </div>
139
+ <div class="clearfix"></div>
140
+ </div>
141
+ </div>
142
+ <?php } ?>
143
+
144
+ <?php if ($style == 'mega-post-carousel3') { ?>
145
+ <div class="col-1-3 mason-item" style="padding-right: 15px;">
146
+ <div class="mega-post-carousel3" style="margin-bottom: 40px;">
147
+ <div class="mega-post-image">
148
+ <?php the_post_thumbnail('medium_large', array('class' => 'your-class-name')); ?>
149
+ </div>
150
+
151
+ <div class="mega-desc-box">
152
+ <div style="display: table; margin: auto;">
153
+ <div class="mega-post-category" style="display: <?php echo $catg; ?>">
154
+ <?php $categories = get_the_terms( get_the_id(), 'product_cat' );
155
+ $separator = ' , ';
156
+ $output = '';
157
+ if ( ! empty( $categories ) ) {
158
+ foreach( $categories as $category ) {
159
+ $output .= '<a href="' . esc_url( get_category_link( $category->term_id ) ) . '">' . esc_html( $category->name ) . '</a>' . $separator;
160
+ }
161
+ echo trim( $output, $separator );
162
+ } ?>
163
+ </div>
164
+ </div>
165
+ <?php $product = new WC_Product(get_the_id()); ?>
166
+ <h3 class="mega-post-title">
167
+ <a style="font-size: <?php echo $txtsize; ?>; color: <?php echo $txtclr ?>" href="<?php the_permalink(); ?>"><?php echo get_the_title() ?></a>
168
+ </h3>
169
+
170
+ <span style="display: <?php echo $rating; ?>;">
171
+ <?php echo wc_get_rating_html( $product->get_average_rating() ); ?>
172
+ </span>
173
+ <div class="clearfix"></div>
174
+ <div class="mega-post-para">
175
+ <p style="font-size: <?php echo $descsize; ?>; color: <?php echo $descclr ?>">
176
+ <?php $content = get_the_content(); echo mb_strimwidth($content, 0, 120, '...');?>
177
+ </p>
178
+ </div>
179
+ <?php if ($args['post_type'] == 'product') {
180
+ echo wc_price(get_the_id());
181
+ } ?>
182
+
183
+ <?php echo apply_filters( 'woocommerce_loop_add_to_cart_link',
184
+ sprintf( '<a style="background: %s" rel="nofollow" href="%s" data-quantity="%s" data-product_id="%s" data-product_sku="%s" class="%s">%s</a>',
185
+ $woobtn,
186
+ esc_url( $product->add_to_cart_url() ),
187
+ esc_attr( isset( $quantity ) ? $quantity : 1 ),
188
+ esc_attr( $product->get_id() ),
189
+ esc_attr( $product->get_sku() ),
190
+ esc_attr( isset( $class ) ? $class : 'button product_type_simple add_to_cart_button ajax_add_to_cart' ),
191
+ esc_html( $product->single_add_to_cart_text() )
192
+ ),
193
+ $product );
194
+
195
+ ?>
196
+ <div class="clearfix"></div>
197
+ </div>
198
+ </div>
199
+ </div>
200
+ <?php } ?>
201
+
202
+ <?php } ?>
203
+
204
+ </div>
205
+ </div>
206
+ <?php wp_reset_postdata();
207
+ } else {
208
+ // no posts found
209
+ }
210
+ ob_start(); ?>
211
+
212
+ <?php
213
+
214
+ return ob_get_clean();
215
+ }
216
+ }
217
+
218
+
219
+ vc_map( array(
220
+ "base" => "vc_woo_grid",
221
+ "name" => __( 'Woo Grid', 'postslider' ),
222
+ "category" => __('Mega Addons'),
223
+ "description" => __('show woo posts as grid layout', ''),
224
+ "icon" => plugin_dir_url( __FILE__ ).'../icons/post-carousel.png',
225
+ 'params' => array(
226
+ array(
227
+ "type" => "dropdown",
228
+ "heading" => __( 'Choose Style', 'postslider' ),
229
+ "param_name" => "style",
230
+ "group" => 'General',
231
+ "value" => array(
232
+ "Style 1" => "mega-post-carousel1",
233
+ "Style 2" => "mega-post-carousel2",
234
+ "Style 3" => "mega-post-carousel3",
235
+ )
236
+ ),
237
+
238
+ array(
239
+ "type" => "loop",
240
+ "heading" => __( 'Link To', 'postslider' ),
241
+ "param_name" => "settings",
242
+ "description" => "Add Slide Url or leave blank, use it if you select theme [top image bottom content]",
243
+ "group" => 'General',
244
+ ),
245
+ array(
246
+ "type" => "dropdown",
247
+ "heading" => __( 'Category', 'postslider' ),
248
+ "param_name" => "catg",
249
+ "description" => __('show/hide category name', 'postslider'),
250
+ "group" => 'Settings',
251
+ "value" => array(
252
+ "Show" => "visible",
253
+ "Hide" => "none",
254
+ )
255
+ ),
256
+
257
+ array(
258
+ "type" => "dropdown",
259
+ "heading" => __( 'Rating', 'postslider' ),
260
+ "param_name" => "rating",
261
+ "description" => __('show/hide rating', 'postslider'),
262
+ "group" => 'Settings',
263
+ "value" => array(
264
+ "Show" => "visible",
265
+ "Hide" => "none",
266
+ )
267
+ ),
268
+
269
+ array(
270
+ "type" => "textfield",
271
+ "heading" => __( 'Title (Font Size)', 'postslider' ),
272
+ "param_name" => "txtsize",
273
+ "description" => "font size of post title, default 18px",
274
+ "value" => "18px",
275
+ "group" => 'Design',
276
+ ),
277
+
278
+ array(
279
+ "type" => "textfield",
280
+ "heading" => __( 'Description (Font Size)', 'postslider' ),
281
+ "param_name" => "descsize",
282
+ "description" => "font size of post content, default 14px",
283
+ "value" => "14px",
284
+ "group" => 'Design',
285
+ ),
286
+
287
+ array(
288
+ "type" => "colorpicker",
289
+ "heading" => __( 'Title Color', 'postslider' ),
290
+ "param_name" => "txtclr",
291
+ "description" => "color of post title",
292
+ "value" => "#000",
293
+ "group" => 'Color',
294
+ ),
295
+
296
+ array(
297
+ "type" => "colorpicker",
298
+ "heading" => __( 'Description Color', 'postslider' ),
299
+ "param_name" => "descclr",
300
+ "description" => "color of post content",
301
+ "value" => "#888",
302
+ "group" => 'Color',
303
+ ),
304
+
305
+ array(
306
+ "type" => "colorpicker",
307
+ "heading" => __( 'Woo Background', 'postslider' ),
308
+ "param_name" => "woobtn",
309
+ "description" => "woo button background color",
310
+ "value" => "#0081cc",
311
+ "group" => 'Color',
312
+ ),
313
+ ),
314
+ ) );