ThemeHunk Customizer - Version 1.2.8

Version Description

Download this release

Release Info

Developer themehunk
Plugin Icon 128x128 ThemeHunk Customizer
Version 1.2.8
Comparing to
See all releases

Version 1.2.8

Files changed (67) hide show
  1. elanzalite/assets/css/magzine.css +2046 -0
  2. elanzalite/assets/css/owl.carousel.css +216 -0
  3. elanzalite/assets/js/custom.js +71 -0
  4. elanzalite/assets/js/jquery.easy-ticker.js +208 -0
  5. elanzalite/assets/js/jquery.flexslider.js +1191 -0
  6. elanzalite/assets/js/owl.carousel.js +3275 -0
  7. elanzalite/customizer/custom-customizer.php +9 -0
  8. elanzalite/customizer/customizer.php +3055 -0
  9. elanzalite/customizer/customizer_styles.css +38 -0
  10. elanzalite/customizer/js/customizer.js +330 -0
  11. elanzalite/customizer/js/widget.js +64 -0
  12. elanzalite/images/style1.png +0 -0
  13. elanzalite/images/style2.png +0 -0
  14. elanzalite/images/style3.png +0 -0
  15. elanzalite/images/style4.png +0 -0
  16. elanzalite/images/style5.png +0 -0
  17. elanzalite/inc/constant.php +9 -0
  18. elanzalite/inc/custom-style.php +410 -0
  19. elanzalite/inc/install.php +159 -0
  20. elanzalite/inc/shortcode.php +90 -0
  21. elanzalite/include.php +18 -0
  22. elanzalite/widget/about-widget.php +172 -0
  23. elanzalite/widget/recent-post.php +174 -0
  24. elanzalite/widget/section-ad.php +90 -0
  25. elanzalite/widget/section-five.php +237 -0
  26. elanzalite/widget/section-four.php +134 -0
  27. elanzalite/widget/section-news.php +150 -0
  28. elanzalite/widget/section-one.php +205 -0
  29. elanzalite/widget/section-three.php +150 -0
  30. elanzalite/widget/section-two.php +126 -0
  31. elanzalite/widget/social-widget.php +137 -0
  32. featuredlite/customizer/custom-customizer.php +21 -0
  33. featuredlite/customizer/customizer.php +2263 -0
  34. featuredlite/customizer/customizer_styles.css +47 -0
  35. featuredlite/customizer/js/customizer.js +13 -0
  36. featuredlite/demo/import-data.php +67 -0
  37. featuredlite/images/about-us.png +0 -0
  38. featuredlite/images/slider.jpeg +0 -0
  39. featuredlite/images/team.jpg +0 -0
  40. featuredlite/images/testimonia.png +0 -0
  41. featuredlite/inc/constant.php +4 -0
  42. featuredlite/inc/custom-style.php +382 -0
  43. featuredlite/inc/shortcode.php +439 -0
  44. featuredlite/include.php +10 -0
  45. featuredlite/widget/services.php +80 -0
  46. featuredlite/widget/team.php +158 -0
  47. featuredlite/widget/testimonial.php +95 -0
  48. oneline-lite/customizer/custom-customizer.php +20 -0
  49. oneline-lite/customizer/customizer.php +1610 -0
  50. oneline-lite/customizer/customizer_styles.css +36 -0
  51. oneline-lite/customizer/js/customizer.js +13 -0
  52. oneline-lite/customizer/js/widget.js +64 -0
  53. oneline-lite/demo/import-data.php +69 -0
  54. oneline-lite/images/slider.jpeg +0 -0
  55. oneline-lite/images/team.jpg +0 -0
  56. oneline-lite/images/testimonia.png +0 -0
  57. oneline-lite/inc/constant.php +7 -0
  58. oneline-lite/inc/custom-style.php +205 -0
  59. oneline-lite/inc/install.php +21 -0
  60. oneline-lite/inc/shortcode.php +241 -0
  61. oneline-lite/include.php +11 -0
  62. oneline-lite/widget/services.php +102 -0
  63. oneline-lite/widget/team.php +179 -0
  64. oneline-lite/widget/testimonial.php +96 -0
  65. readme.txt +254 -0
  66. shopline/customizer/custom-customizer.php +100 -0
  67. shopline/customizer/customizer.php +6249 -0
elanzalite/assets/css/magzine.css ADDED
@@ -0,0 +1,2046 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ select { -webkit-appearance: none; -moz-appearance: none; appearance: none;}
2
+ .page-template-magazine-template #page{
3
+ margin-top:0;
4
+ }
5
+ .magazine-box header .container {
6
+ max-width: 1170px;
7
+ }
8
+ .page-template-magazine-template .header-wrapper{
9
+ margin-top: 50px;
10
+ }
11
+ .page-template-magazine-template.admin-bar header{
12
+ top:0;
13
+ }
14
+ .page-template-magazine-template header{
15
+ background:none!important;
16
+ }
17
+ .page-template-magazine-template header,.home.page-template-magazine-template header.smaller,
18
+ .page-template-magazine-template header.smaller{
19
+ background:none;
20
+ border-bottom:0;
21
+ box-shadow: none;
22
+ }
23
+ .page-template-magazine-template .header,
24
+ .magazine-single-box .header{
25
+ background: #fff;
26
+ padding: 0px 30px;
27
+ float: left;
28
+ width: 100%;
29
+ }
30
+
31
+ .page-template-magazine-template header{
32
+ position: relative;
33
+ }
34
+ .page-template-magazine-template header.smaller .logo img{
35
+ max-width:100%;
36
+ }
37
+ .page-template-magazine-template header.smaller .logo{
38
+ padding:26px 0px;
39
+ }
40
+ .page-template-magazine-template header.smaller #main-menu-wrapper nav.navigation ul{
41
+ padding:30px 0px;
42
+ }
43
+ .page-template-magazine-template #page,
44
+ .page-template-magazine-template .container,
45
+ .page-template-magazine-template.page.magazine-box #page,
46
+ .page-template-magazine-template.page.magazine-box .container{
47
+ max-width: 1480px;
48
+ }
49
+ .page-template-magazine-template .page-content{
50
+ margin-bottom:0;
51
+ }
52
+ .page-template-magazine-template .footer-wrapper,
53
+ .page-template-magazine-template.page.magazine-box .footer-wrapper{
54
+ max-width: 1480px;
55
+ min-width: 240px;
56
+ margin-right: auto;
57
+ margin-left: auto;
58
+ position: relative;
59
+ clear: both;
60
+ margin-bottom: 50px;
61
+ }
62
+ .page-template-magazine-template .footer-wrapper .footer{
63
+ padding-left:30px;
64
+ padding-right:30px;
65
+ }
66
+ .page-template-magazine-template .content{
67
+ max-width: 100%;
68
+ width:75%;
69
+ }
70
+ .page-template-magazine-template .sidebar-wrapper{
71
+ width:22.5%;
72
+ }
73
+ .page-template-magazine-template #page.no-sidebar .content{
74
+ max-width: 1480px;
75
+ }
76
+ .page-template-magazine-template section{
77
+ overflow: hidden;
78
+ display: block;
79
+ padding: 35px 0px;
80
+ border-bottom: 1px solid #eee;
81
+ }
82
+ .page-template-magazine-template h3.entry-title a{
83
+ color:#5a5d5a;
84
+ }
85
+ .page-template-magazine-template .page-content{
86
+ margin-top:0px;
87
+ }
88
+ .page-template-magazine-template.page .sidebar-wrapper {
89
+ margin-top: 110px;
90
+ }
91
+
92
+ #page.right .slider_widgets .post-item .entry-title a,
93
+ #page.left .slider_widgets .post-item .entry-title a,
94
+ #page.right .owl-carousel .post-item .entry-title a,
95
+ #page.left .owl-carousel .post-item .entry-title a{
96
+ font-size:18px;
97
+ }
98
+ #page.right .slider_widgets .post-item .entry-meta span.entry-date,
99
+ #page.right .slider_widgets .post-item .entry-meta span.comments-link,
100
+ #page.left .slider_widgets .post-item .entry-meta span.entry-date,
101
+ #page.left .slider_widgets .post-item .entry-meta span.comments-link{
102
+ letter-spacing: .04em;
103
+ font-size:12px;
104
+ }
105
+
106
+ #page.right .owl-carousel .post-item .entry-meta span.entry-date,
107
+ #page.right .owl-carousel .post-item .entry-meta span.comments-link,
108
+ #page.left .owl-carousel .post-item .entry-meta span.entry-date,
109
+ #page.left .owl-carousel .post-item .entry-meta span.comments-link{
110
+ letter-spacing: .04em;
111
+ font-size:12px;
112
+ }
113
+ .page-template-magazine-template #page{
114
+ background:#fff;
115
+ }
116
+ .page-template-magazine-template.page .sidebar-wrapper{
117
+ margin-top:0;
118
+ width:25%;
119
+ }
120
+ .page-template-magazine-template .content .page-description{
121
+ margin-bottom:0;
122
+ }
123
+ .page-template-magazine-template section:first-child{
124
+ padding-top:0px;
125
+ }
126
+ /***************************************/
127
+ /*top-header-css*/
128
+ /***************************************/
129
+ .page-template-magazine-template .top-header-show .header-wrap-top,
130
+ .magazine-box .top-header-show .header-wrap-top,
131
+ .magazine-single-box .top-header-show .header-wrap-top{
132
+ -webkit-box-shadow: 0px -3px 7px #e6e6e6;
133
+ -moz-box-shadow: 0px -3px 7px #e6e6e6;
134
+ box-shadow: 0px -3px 7px #e6e6e6;
135
+ }
136
+ .page-template-magazine-template .top-header-show .header,
137
+ .magazine-box .top-header-show .header,
138
+ .magazine-single-box .top-header-show .header{
139
+ box-shadow: 3px 0 3px -3px #e6e6e6 , -3px 0 3px -3px #e6e6e6;
140
+ -moz-box-shadow: 3px 0 3px -3px #e6e6e6 , -3px 0 3px -3px #e6e6e6;
141
+ -webkit-box-shadow: 3px 0 3px -3px #e6e6e6 , -3px 0 3px -3px #e6e6e6;
142
+ }
143
+
144
+ .page-template-magazine-template .top-header-hide .header,
145
+ .magazine-box .top-header-hide .header,
146
+ .magazine-single-box .top-header-hide .header{
147
+ -webkit-box-shadow: 0px -3px 7px #e6e6e6;
148
+ -moz-box-shadow: 0px -3px 7px #e6e6e6;
149
+ box-shadow: 0px -3px 7px #e6e6e6;
150
+ }
151
+
152
+ .page-template-magazine-template .top-container,
153
+ .page-template-magazine-template.magazine-box .top-container,
154
+ .page-template-magazine-template.magazine-single-box .top-container{
155
+ max-width: 1480px;
156
+ min-width: 240px;
157
+ margin-right: auto;
158
+ margin-left: auto;
159
+ position: relative;
160
+ clear: both;
161
+ }
162
+ .single.magazine-box .top-container,
163
+ .archive.magazine-box .top-container,
164
+ .single.magazine-single-box .top-container,
165
+ .magazine-single-box .top-container,
166
+ .magazine-box .top-container {
167
+ max-width: 1170px;
168
+ min-width: 240px;
169
+ margin-right: auto;
170
+ margin-left: auto;
171
+ position: relative;
172
+ clear: both;
173
+ }
174
+ .header-wrap-top{
175
+ padding: 10px 30px;
176
+ background-color:#0e0e0e;
177
+ float:left;
178
+ width:100%;
179
+ }
180
+ .header-wrap-top .top-social-icon{
181
+ float:right;
182
+ width: 20%;
183
+ text-align: right;
184
+ }
185
+ .header-wrap-top .top-social-icon li{
186
+ display:inline-block;
187
+ margin-left:15px;
188
+ }
189
+ .header-wrap-top .top-date{
190
+ float:left;
191
+ color:#fff;
192
+ width: 15%;
193
+ }
194
+ .header-wrap-top .top-date i{
195
+ margin-right:5px;
196
+ }
197
+ .header-wrap-top{
198
+ font-size:13px;
199
+ }
200
+ .header-wrap-top .top-menu{
201
+ float:left;
202
+ width:65%;
203
+ }
204
+
205
+ .header-wrap-top .top-menu .top li{
206
+ display: inline-block;
207
+ padding:0px 10px;
208
+ }
209
+ .header-wrap-top .top-menu .top li a,
210
+ .header-wrap-top .top-social-icon li a{
211
+ color:#fff;
212
+ }
213
+ .header-wrap-top .top-menu .top li a:hover,
214
+ .header-wrap-top .top-social-icon li a:hover{
215
+ color:#f4c85e;
216
+ }
217
+ .home .flexslider-wrap #page{
218
+ margin-top:0;
219
+ }
220
+ .home.blog #page{
221
+ margin-top:200px;
222
+ }
223
+ .home.blog.magazine-box .top-container {
224
+ max-width: 100%;
225
+
226
+ }
227
+ .last-btn .top-menu #menu >li:last-child > a{
228
+ border:none;
229
+ background:none;
230
+ padding:0;
231
+ font-weight: normal;
232
+ }
233
+ .last-btn #main-menu-wrapper li.menu-item-has-children:last-child > a:after{
234
+ color:#fff ;
235
+ }
236
+ .last-btn #main-menu-wrapper li.menu-item-has-children:last-child > a:hover:after{
237
+ color:#fff ;
238
+ }
239
+ /***************************************/
240
+ /*Ad Header*/
241
+ /***************************************/
242
+ .page-template-magazine-template header.header-style-one .logo,
243
+ .magazine-box header.header-style-one .logo,
244
+ .magazine-single-box header.header-style-one .logo{
245
+ width:auto;
246
+ }
247
+ .page-template-magazine-template header.header-style-one .header-ads.content-ads,
248
+ .magazine-box header.header-style-one .header-ads.content-ads,
249
+ .magazine-single-box header.header-style-one .header-ads.content-ads{
250
+ float:right;
251
+ }
252
+
253
+ .page-template-magazine-template header.header-style-one .navigation>ul>li>a,
254
+ .magazine-box header.header-style-one .navigation>ul>li>a,
255
+ .magazine-single-box header.header-style-one .navigation>ul>li>a {
256
+ padding: 0px 20px;
257
+ }
258
+ .page-template-magazine-template header.header-style-one .header-ads,
259
+ .magazine-box header.header-style-one .header-ads,
260
+ .magazine-single-box header.header-style-one .header-ads{
261
+ width:70%;
262
+ padding: 26px 0;
263
+ float:right;
264
+ -webkit-transition: all 0.5s ease-out;
265
+ -moz-transition: all 0.5s ease-out;
266
+ -o-transition: all 0.5s ease-out;
267
+ transition: all 0.5s ease-out;
268
+ }
269
+ .page-template-magazine-template header.header-style-one .header-ads .content-ads,
270
+ .magazine-box header.header-style-one .header-ads .content-ads,
271
+ .magazine-single-box header.header-style-one .header-ads .content-ads{
272
+ float:right;
273
+ }
274
+ header.header-style-one #main-menu-wrapper {
275
+ margin-bottom: 28px;
276
+ }
277
+ .page-template-magazine-template header.header-style-one #main-menu-wrapper,
278
+ .magazine-box header.header-style-one #main-menu-wrapper,
279
+ .magazine-single-box header.header-style-one #main-menu-wrapper {
280
+ width: 100%;
281
+ background: #0e0e0e;
282
+ }
283
+ .page-template-magazine-template header.header-style-one nav.navigation,
284
+ .magazine-box header.header-style-one nav.navigation,
285
+ .magazine-single-box header.header-style-one nav.navigation {
286
+ padding-left: 30px;
287
+ }
288
+ .page-template-magazine-template header.header-style-one #main-menu-wrapper .navigation ul,
289
+ .magazine-box header.header-style-one #main-menu-wrapper .navigation ul,
290
+ .magazine-single-box header.header-style-one #main-menu-wrapper .navigation ul{
291
+ float:left;
292
+ }
293
+ .page.page-template-magazine-template header.header-style-one #main-menu-wrapper nav.navigation .menu,
294
+ .page.page-template-magazine-template header.header-style-one.smaller #main-menu-wrapper nav.navigation ul,
295
+ .magazine-box header.header-style-one #main-menu-wrapper nav.navigation .menu,
296
+ .magazine-box header.header-style-one.smaller #main-menu-wrapper nav.navigation ul,
297
+ .magazine-single-box header.header-style-one #main-menu-wrapper nav.navigation .menu,
298
+ .magazine-single-box header.header-style-one.smaller #main-menu-wrapper nav.navigation ul {
299
+ padding:0px 0px!important;
300
+ }
301
+ .page-template-magazine-template header.header-style-one .navigation>ul>li:first-child>a,
302
+ .magazine-box header.header-style-one .navigation>ul>li:first-child>a,
303
+ .magazine-single-box header.header-style-one .navigation>ul>li:first-child>a {
304
+ padding-left: 0px!important;
305
+ }
306
+ .page-template-magazine-template header.header-style-one .header,
307
+ .magazine-box header.header-style-one .header,
308
+ .magazine-single-box header.header-style-one .header {
309
+ padding: 0!important;
310
+ }
311
+ .page-template-magazine-template header.header-style-one .logo,
312
+ .magazine-box header.header-style-one .logo,
313
+ .magazine-single-box header.header-style-one .logo {
314
+ padding-left: 30px;
315
+ }
316
+ .page-template-magazine-template header.header-style-one .header-ads,
317
+ .magazine-box header.header-style-one .header-ads,
318
+ .magazine-single-box header.header-style-one .header-ads {
319
+ padding-right: 30px!important;
320
+ }
321
+ .page.page-template-magazine-template header.header-style-one.smaller .logo,
322
+ .page.magazine-box header.header-style-one.smaller .logo,
323
+ .page.magazine-single-box header.header-style-one.smaller .logo,
324
+ .page-template-magazine-template header.header-style-one.smaller .logo,
325
+ .magazine-box header.header-style-one.smaller .logo,
326
+ .magazine-single-box header.header-style-one.smaller .logo {
327
+ padding-left: 30px!important;
328
+ }
329
+ /***************************************/
330
+ /*Ad Header*/
331
+ /***************************************/
332
+ #section_one .slider {
333
+ overflow: hidden;
334
+ position: relative;
335
+ width: 50%;
336
+ float: left;
337
+ box-sizing: border-box;
338
+ border-right: 3px solid #fff;
339
+
340
+ }
341
+ #section_one .slider_widgets {
342
+ float: right;
343
+ width: 50%;
344
+ }
345
+ #section_one .flexslider{
346
+ overflow:hidden;
347
+ display: block;
348
+ }
349
+ #section_one .flexslider ul{
350
+ max-height:460px;
351
+ }
352
+ #section_one li.slide{
353
+ position: relative;
354
+ display: inline-block;
355
+ white-space: normal;
356
+ width: 100%;
357
+ height: 460px;
358
+ text-align: center;
359
+ background-color: black;
360
+ background-repeat: no-repeat!important;
361
+ background-position: center center!important;
362
+ background-size: cover!important;
363
+ -moz-transform-style: preserve-3d!important;
364
+ -webkit-transform-style: preserve-3d!important;
365
+ transform-style: preserve-3d!important;
366
+ }
367
+ #section_one .flexslider ul, #section_one .flexslider ul li,
368
+ #section_one .flexslider ol, #section_one .flexslider ol li{
369
+ list-style-type: none;
370
+ margin:0;
371
+ padding:0;
372
+ }
373
+ #section_one .flexslider .flex-direction-nav .flex-prev {
374
+ text-align: left;
375
+ left: 2%;
376
+ }
377
+
378
+ #section_one .flexslider:hover .flex-next{
379
+ right: 1%;
380
+ left:auto;
381
+ }
382
+ #section_one .flex-direction-nav .flex-next {
383
+ text-align: right;
384
+ right:2%;
385
+ }
386
+ #section_one .flexslider:hover .flex-prev{
387
+ left: 1%;
388
+ right:auto;
389
+ }
390
+
391
+ #section_one .flex-direction-nav a {
392
+ text-decoration: none;
393
+ display: block;
394
+ width: 30px;
395
+ height: 30px;
396
+ margin: 0px 0 0;
397
+ position: absolute;
398
+ z-index: 10;
399
+ overflow: hidden;
400
+ opacity: 1;
401
+ border:2px solid #fff;
402
+ cursor: pointer;
403
+ color: #fff;
404
+ -webkit-transition: all .3s ease;
405
+ -moz-transition: all .3s ease;
406
+ transition: all .3s ease;
407
+ }
408
+ #section_one .flex-direction-nav a:hover{
409
+ background:#fff;
410
+ color:#666;
411
+ }
412
+ #section_one .flex-direction-nav a:before {
413
+ font-family: FontAwesome;
414
+ content: '\f104';
415
+ font-size: 24px;
416
+ display: flex;
417
+ justify-content: center;
418
+ align-items: center;
419
+ position: relative;
420
+ top:-3px;
421
+ padding:0;
422
+ }
423
+
424
+ #section_one .flex-direction-nav a.flex-next:before{
425
+ content: '\f105';
426
+ }
427
+ #section_one .flex-control-nav {
428
+ position: absolute;
429
+ width: auto;
430
+ left: 50%;
431
+ bottom: 16px;
432
+ z-index: 11;
433
+ text-align: center;
434
+ -webkit-transform: translateX(-50%);
435
+ -moz-transform: translateX(-50%);
436
+ -ms-transform: translateX(-50%);
437
+ -o-transform: translateX(-50%);
438
+ transform: translateX(-50%);
439
+ }
440
+ #section_one .flexslider .flex-control-nav li {
441
+ margin: 5px 3px;
442
+ display: inline-block;
443
+ zoom: 1;
444
+ }
445
+ #section_one .flexslider .flex-control-nav > li > a {
446
+ background: #fff;
447
+ opacity: 0.45;
448
+ border: 1px solid #fff;
449
+ display: block;
450
+ height: 10px;
451
+ width: 10px;
452
+ -webkit-border-radius: 6px;
453
+ -moz-border-radius: 6px;
454
+ -o-border-radius: 6px;
455
+ border-radius: 6px;
456
+ cursor: pointer;
457
+ text-indent: -9999px;
458
+ -webkit-box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
459
+ -moz-box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
460
+ -o-box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
461
+ box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
462
+ }
463
+ #section_one .flex-control-paging li a.flex-active {
464
+ background: #fff;
465
+ cursor: default;
466
+ opacity: 1;
467
+ }
468
+
469
+ #section_one .slides li .slide-header {
470
+ position: absolute;
471
+ bottom: 26%;
472
+ margin: 0 13%;
473
+ width: 74%;
474
+ }
475
+ #section_one .slide-cat{
476
+ margin-top:20px;
477
+ }
478
+ #section_one .slides li .slide-header h3{
479
+ line-height: 1.2;
480
+ font-weight: bold;
481
+ margin: 0 0 15px;
482
+ text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
483
+ }
484
+ #section_one .slides li .slide-header h3 a,
485
+ #section_one .slides li .entry-meta{
486
+ color: #fff;
487
+ }
488
+
489
+ #section_one .post-item.one {
490
+ height:auto;
491
+ }
492
+ #section_one .slides li .slide-header .comments-link a ,
493
+ span.comments-link a, span.comments-link{
494
+ letter-spacing: .04em;
495
+ font-size: 12px;
496
+ color:#fff;
497
+ }
498
+ #section_one li.slide:before {
499
+ position: absolute;
500
+ content: '';
501
+ width: 100%;
502
+ height: 100%;
503
+ left: 0;
504
+ top: 0;
505
+ transition: all 0.25s ease-in-out;
506
+ -webkit-transition: all 0.25s ease-in-out;
507
+ -moz-transition: all 0.25s ease-in-out;
508
+ z-index: 0;
509
+ background: rgba(0, 0, 0, 0.2);
510
+ }
511
+ #section_one .section-title {
512
+ margin: 0;
513
+ font-size: 16px;
514
+ text-transform: uppercase;
515
+ font-weight: bold;
516
+ display: inline-block;
517
+ color: #fff;
518
+ background-color: #212425;
519
+ padding: 0 15px;
520
+ line-height: 33px;
521
+ }
522
+ #section_one .slider_widgets h3.title{
523
+ margin: 0;
524
+ font-size: 16px;
525
+ text-transform: uppercase;
526
+ font-weight: bold;
527
+ display: inline-block;
528
+ color: #fff;
529
+ background-color:#ee4444;
530
+ padding: 0 15px;
531
+ line-height: 33px;
532
+ }
533
+ #section_one .slider_widgets h3.title a{
534
+ color: #fff;
535
+ }
536
+ .slider_widgets .slider_widgets_one {
537
+ margin: auto;
538
+ float: none;
539
+ width: 100%;
540
+ box-sizing: border-box;
541
+ border-right: none;
542
+ }
543
+
544
+ .slider_widgets .slider_widgets_one .post-item{
545
+ margin: 0;
546
+ float: left;
547
+ width: 50%;
548
+ box-sizing: border-box;
549
+ position: relative;
550
+ margin: 0;
551
+ overflow: hidden;
552
+ border-right: 3px solid #fff;
553
+ border-bottom: 3px solid #fff;
554
+ }
555
+
556
+ .slider_widgets .slider_widgets_one .post-item:nth-child(2n){
557
+ border-right: 0;
558
+ }
559
+ #section_one .slider_widgets .slider_widgets_two h3.title{
560
+ background-color: #1C99E4;
561
+ }
562
+ #section_one .post-item .entry-meta span.entry-date,#section_two .post-item .entry-meta span.entry-date{
563
+ letter-spacing: .04em;
564
+ font-size: 12px;
565
+ }
566
+ .slider_widgets .post-item{
567
+ width: 100%;
568
+ float: none;
569
+ max-height: 231px;
570
+ overflow: hidden;
571
+ }
572
+ .slider_widgets .post-item .post-thumb {
573
+ margin: 0;
574
+ position: relative;
575
+ background: #000;
576
+ line-height: 0px;
577
+ transition: transform 0.3s ease, opacity 0.3s;
578
+ -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s;
579
+ }
580
+ .slider_widgets .post-item .post-thumb img {
581
+ opacity: .9;
582
+ transition: transform 0.3s ease, opacity 0.3s;
583
+ -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s;
584
+ transition-timing-function: ease !important;
585
+ }
586
+ .slider_widgets .post-item .post-thumb img {
587
+ max-width: 433px;
588
+ min-height: 228px;
589
+ }
590
+ .slider_widgets .post-item:hover .post-thumb {
591
+ transform: scale3d(1.1, 1.1, 1);
592
+ -webkit-transform: scale3d(1.1, 1.1, 1);
593
+ -moz-transform: scale3d(1.1, 1.1, 1) rotate(0.02deg);
594
+ }
595
+ .slider_widgets .post-item .post-item-content {
596
+ z-index: 21;
597
+ }
598
+ .slider_widgets h3.entry-title {
599
+ font-size: 20px;
600
+ }
601
+ .slider_widgets .post-item .entry-title a{
602
+ position: absolute;
603
+ bottom: 7%;
604
+ left: 0;
605
+ z-index: 21;
606
+ font-size: 20px;
607
+ font-weight: bold;
608
+ line-height: 1.2;
609
+ max-width: 90%;
610
+ transition: all .2s ease;
611
+ margin-left: 15px;
612
+ color: #fff;
613
+ text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
614
+ }
615
+ .slider_widgets .post-item:hover .entry-title a{
616
+ bottom: 17%;
617
+ }
618
+ .slider_widgets .post-item:hover .entry-meta {
619
+ visibility: visible;
620
+ opacity: .8;
621
+ color: #fff;
622
+ }
623
+ .slider_widgets .post-item .entry-meta {
624
+ visibility: hidden;
625
+ opacity: 0;
626
+ position: absolute;
627
+ min-height: 50px;
628
+ padding: 30px 0 10px;
629
+ width: 100%;
630
+ bottom: 0;
631
+ left: 0;
632
+ color: #ffffff;
633
+ margin: 0;
634
+ z-index: 1;
635
+ transition: all .5s ease;
636
+ }
637
+ .slider_widgets .post-item .entry-meta span {
638
+ float: right;
639
+ color: #fff;
640
+ }
641
+ .slider_widgets .post-item .entry-meta span.comments-link {
642
+ float: left;
643
+ }
644
+ .slider_widgets .post-item:before {
645
+ position: absolute;
646
+ content: '';
647
+ width: 100%;
648
+ height: 100%;
649
+ left: 0;
650
+ top: 0;
651
+ transition: all 0.25s ease-in-out;
652
+ -webkit-transition: all 0.25s ease-in-out;
653
+ -moz-transition: all 0.25s ease-in-out;
654
+ z-index:1;
655
+ background:rgba(0, 0, 0, 0.2);
656
+ }
657
+ .slider_widgets .post-item .entry-meta span.comments-link{
658
+ margin-left:15px;
659
+ }
660
+ .slider_widgets .post-item .entry-meta span.entry-date{
661
+ margin-right:15px;
662
+ }
663
+ #section_one .slider .entry-meta span:not(.cat-links) + span:before {
664
+ content: " / ";
665
+ color: #fff;
666
+ margin: 0 2px;
667
+ font-style: normal;
668
+ opacity: .5;
669
+ }
670
+ .page-template-magazine-template .comments-link a {
671
+ color: #eee!important;
672
+ background-color: #bdbdbd;
673
+ display: inline-block;
674
+ min-width: 17px;
675
+ padding: 3px 3px 4px 3px;
676
+ position: relative;
677
+ font-size: 10px!important;
678
+ font-weight: 600;
679
+ text-align: center;
680
+ line-height: 1;
681
+ }
682
+ .page-template-magazine-template .comments-link a:before{
683
+ position: absolute;
684
+ bottom: -3px;
685
+ left: 0;
686
+ content: '';
687
+ width: 0;
688
+ height: 0;
689
+ border-style: solid;
690
+ border-width: 3px 3px 0 0;
691
+ border-color: #bdbdbd transparent transparent transparent;
692
+ }
693
+ .page-template-magazine-template #section_one .comments-link a,
694
+ .page-template-magazine-template #section_two .comments-link a {
695
+ color: #222!important;
696
+ background-color: #fff;
697
+ }
698
+ .page-template-magazine-template #section_one .comments-link a:before,
699
+ .page-template-magazine-template #section_two .comments-link a:before{
700
+ border-color: #fff transparent transparent transparent;
701
+ }
702
+
703
+ /*section_two*/
704
+ #section_two h3.title{
705
+ margin: 0;
706
+ font-size: 16px;
707
+ text-transform: uppercase;
708
+ font-weight: bold;
709
+ display: inline-block;
710
+ color: #fff;
711
+ background-color: #22BB66;
712
+ padding: 0 15px;
713
+ line-height: 33px;
714
+ }
715
+ .post_slide .post-item{
716
+ width: 100%;
717
+ float: none;
718
+ overflow: hidden;
719
+ }
720
+ .post_slide .post-item {
721
+ position: relative;
722
+ margin: 0;
723
+ overflow: hidden;
724
+ }
725
+ .post_slide .post-item .post-thumb {
726
+ margin: 0;
727
+ position: relative;
728
+ background: #000;
729
+ transition: transform 0.3s ease, opacity 0.3s;
730
+ -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s;
731
+ }
732
+ .post_slide .post-item .post-thumb img {
733
+ opacity: .9;
734
+ transition: transform 0.3s ease, opacity 0.3s;
735
+ -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s;
736
+ transition-timing-function: ease !important;
737
+ }
738
+ .post_slide .post-item:hover .post-thumb {
739
+ transform: scale3d(1.1, 1.1, 1);
740
+ -webkit-transform: scale3d(1.1, 1.1, 1);
741
+ -moz-transform: scale3d(1.1, 1.1, 1) rotate(0.02deg);
742
+ }
743
+ .post_slide .post-item .post-item-content {
744
+ z-index: 21;
745
+ }
746
+ .post_slide .post-item h3.entry-title{
747
+ padding-bottom:0px;
748
+ }
749
+ .post_slide .post-item .entry-title a{
750
+ position: absolute;
751
+ bottom: 7%;
752
+ left: 0;
753
+ z-index: 21;
754
+ font-size: 20px;
755
+ font-weight: bold;
756
+ line-height: 1.2;
757
+ max-width: 90%;
758
+ transition: all .2s ease;
759
+ margin-left: 15px;
760
+ color: #fff;
761
+ text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
762
+ }
763
+ .post_slide .post-item:hover .entry-title a{
764
+ bottom: 17%;
765
+ }
766
+ .post_slide .post-item:hover .entry-meta {
767
+ visibility: visible;
768
+ opacity: .8;
769
+ color: #fff;
770
+ }
771
+ .post_slide .post-item .entry-meta {
772
+ visibility: hidden;
773
+ opacity: 0;
774
+ position: absolute;
775
+ min-height: 50px;
776
+ padding: 30px 0 10px;
777
+ width: 100%;
778
+ bottom: 0;
779
+ left: 0;
780
+ color: #ffffff;
781
+ margin: 0;
782
+ z-index: 1;
783
+ transition: all .5s ease;
784
+ }
785
+ .post_slide .post-item .entry-meta span {
786
+ float: right;
787
+ margin: 0 15px;
788
+ color: #fff;
789
+ }
790
+
791
+ .post_slide .post-item .entry-meta span.comments-link {
792
+ float: left;
793
+ }
794
+ .post_slide .post-item:before {
795
+ position: absolute;
796
+ content: '';
797
+ width: 100%;
798
+ height: 100%;
799
+ left: 0;
800
+ top: 0;
801
+ transition: all 0.25s ease-in-out;
802
+ -webkit-transition: all 0.25s ease-in-out;
803
+ -moz-transition: all 0.25s ease-in-out;
804
+ z-index:1;
805
+ background:rgba(0, 0, 0, 0.2);
806
+ }
807
+ .post_slide .post-item .entry-meta span.comments-link span{
808
+ float:none;
809
+ margin:0;
810
+ }
811
+ .post_slide .owl-nav .owl-prev, .post_slide .owl-nav .owl-next{
812
+ text-decoration: none;
813
+ display: block;
814
+ width: 30px;
815
+ height: 30px;
816
+ margin: 0px 0 0;
817
+ position: absolute;
818
+ z-index: 10;
819
+ overflow: hidden;
820
+ opacity: 1;
821
+ font-size:0;
822
+ border: 2px solid #fff;
823
+ cursor: pointer;
824
+ color: #fff;
825
+ -webkit-transition: all .3s ease;
826
+ -moz-transition: all .3s ease;
827
+ transition: all .3s ease;
828
+ }
829
+
830
+ .post_slide .owl-nav .owl-prev{
831
+ position:absolute;
832
+ left:1.2%;
833
+ bottom:50%;
834
+ }
835
+ .post_slide .owl-nav .owl-next{
836
+ position:absolute;
837
+ right:1.2%;
838
+ bottom:50%;
839
+ }
840
+ .post_slide .owl-prev:before {
841
+ font-family: FontAwesome;
842
+ content: '\f104';
843
+ font-size: 24px;
844
+ display: flex;
845
+ justify-content: center;
846
+ align-items: center;
847
+ position: relative;
848
+ top: auto;
849
+ padding: 0;
850
+ }
851
+ .post_slide .owl-next:before {
852
+ font-family: FontAwesome;
853
+ content: '\f105';
854
+ font-size: 24px;
855
+ display: flex;
856
+ justify-content: center;
857
+ align-items: center;
858
+ position: relative;
859
+ top: auto;
860
+ padding: 0;
861
+ }
862
+ .post_slide .owl-next:hover, .post_slide .owl-prev:hover{
863
+ background: #fff;
864
+ color: #666;
865
+ }
866
+ #section_two .owl-carousel:hover .owl-prev{
867
+ left: 0.6%;
868
+ right:auto;
869
+ }
870
+ #section_two .owl-carousel:hover .owl-next{
871
+ right: 0.6%;
872
+ left:auto;
873
+ }
874
+
875
+ /** Section three,four,five color **/
876
+ #section_three .entry-meta .comments-link a,
877
+ #section_three .entry-meta .comments-link,
878
+ #section_four .entry-meta .comments-link,
879
+ #section_four .entry-meta .comments-link a,
880
+ #section_five .entry-meta .comments-link,
881
+ #section_five .entry-meta .comments-link a{
882
+ color:#999
883
+ }
884
+ #section_three .entry-meta .entry-date,
885
+ #section_four .entry-meta .entry-date,
886
+ #section_five .entry-meta .entry-date{
887
+ margin-right:0;
888
+ }
889
+ #section_five .feat-cat_small_list li{
890
+ margin:0;
891
+ }
892
+
893
+ /*section_three*/
894
+ #section_three h3.title {
895
+ margin-bottom: 0;
896
+ padding: 0 15px;
897
+ line-height: 33px;
898
+ font-size: 16px;
899
+ color: #fff;
900
+ font-weight: bold;
901
+ text-transform: uppercase;
902
+ display: inline-block;
903
+ background-color: #d4e825;
904
+ }
905
+ #section_three h3.title a{
906
+ color: #fff;
907
+ }
908
+ #section_three .col-one{
909
+ width: 50%;
910
+ float: left;
911
+ margin-right: 2.66666%;
912
+ }
913
+
914
+ #section_three .col-one .post-thumb {
915
+ margin: 0 0 20px;
916
+ }
917
+ #section_three h3.entry-title{
918
+ font-size: 20px;
919
+ letter-spacing: 1px;
920
+ line-height: 1.2;
921
+ margin-bottom: 10px;
922
+ font-weight: bold;
923
+ padding-bottom:0;
924
+ }
925
+
926
+ #section_three .entry-meta {
927
+ margin-bottom: 15px;
928
+ color: #999;
929
+ font-size: 14px;
930
+ }
931
+ #section_three .entry-meta span:not(.cat-links) + span:before {
932
+ content: " / ";
933
+ color: #aaa;
934
+ margin: 0 2px;
935
+ font-style: normal;
936
+ opacity: .5;
937
+ }
938
+ #section_three .col-two{
939
+ width: 47% !important;
940
+ float: right;
941
+ }
942
+ #section_three .col-two {
943
+ width: 47% !important;
944
+ float: right;
945
+ margin-top: 34px;
946
+ position:relative;
947
+ }
948
+
949
+ #section_three .col-two .view{
950
+ position: absolute;
951
+ right: 0;
952
+ top: -35px;
953
+ }
954
+ #section_three .col-two .post-item {
955
+ width: 100%;
956
+ float: none;
957
+ margin-bottom: 10px;
958
+ overflow: hidden;
959
+ }
960
+
961
+ #section_three .col-two .post-item .post-thumb {
962
+ max-width: 35.9%;
963
+ float: left;
964
+ margin: 0 20px 0px 0;
965
+ }
966
+ h3.view{
967
+ display: inline-block;
968
+ font-size: 12px;
969
+ height: 30px;
970
+ line-height: 30px;
971
+ text-align: center;
972
+ width: 80px;
973
+ float: right;
974
+ color: #fff;
975
+ font-weight: 600;
976
+ background-color: #0e0e0e;
977
+ margin-bottom: 5px;
978
+ }
979
+ h3.view a{
980
+ color:#fff;
981
+ }
982
+ .cat-links a{
983
+ background-color: #289dcc;
984
+ color: #fff;
985
+ font-size: 12px;
986
+ padding: 5px 12px;
987
+ line-height: 1.37;
988
+ display: inline-block;
989
+ margin-bottom: 10px;
990
+ margin-right: 10px;
991
+ }
992
+ .cat-links a:hover{
993
+ color: #fff;
994
+ }
995
+ #section_four h3.title {
996
+ margin-bottom: 0;
997
+ padding: 0 15px;
998
+ line-height: 33px;
999
+ font-size: 16px;
1000
+ color: #fff;
1001
+ font-weight: bold;
1002
+ text-transform: uppercase;
1003
+ display: inline-block;
1004
+ background-color: #206b4d;
1005
+ }
1006
+ #section_four .recent-news .post-thumb {
1007
+ margin: 0 25px 0 0;
1008
+ max-width: 38%;
1009
+ float: left;
1010
+ }
1011
+
1012
+ #section_four h3.entry-title {
1013
+ margin: 0 0 10px;
1014
+ font-size: 28px;
1015
+ font-weight: 700;
1016
+ line-height: 1.2;
1017
+ padding-bottom: 0;
1018
+ }
1019
+ #section_four .entry-meta {
1020
+ margin-bottom: 15px;
1021
+ color: #999;
1022
+ font-size: 14px;
1023
+ }
1024
+ #section_four .entry-meta span:not(.cat-links) + span:before {
1025
+ content: " / ";
1026
+ color: #aaa;
1027
+ margin: 0 2px;
1028
+ font-style: normal;
1029
+ opacity: .5;
1030
+ }
1031
+
1032
+ .readmore_button {
1033
+ font-size: 16px;
1034
+ font-weight: 600;
1035
+ margin: 0px 0 0px;
1036
+ display: inline-block;
1037
+ }
1038
+
1039
+ .entry-body .readmore_button a{
1040
+ display: inline-block;
1041
+ font-size: 16px;
1042
+ line-height: 2;
1043
+ position: relative;
1044
+ color: #000;
1045
+ background-color: #fff;
1046
+ transition: all .25s ease-in-out;
1047
+ -moz-transition: all .25s ease-in-out;
1048
+ -webkit-transition: all .25s ease-in-out;
1049
+ }
1050
+
1051
+ #section_four .post-item{
1052
+ padding: 0 0 20px;
1053
+ margin: 0 0 20px;
1054
+ border-bottom: 2px solid #eee;
1055
+ position: relative;
1056
+ overflow: hidden;
1057
+ }
1058
+ #section_four h3.view{
1059
+ margin-bottom:0;
1060
+ }
1061
+ #section_four .post-item:last-child {
1062
+ padding: 0 0 0px;
1063
+ margin: 0 0 0px;
1064
+ border-bottom: none;
1065
+ }
1066
+
1067
+ /*section_five*/
1068
+ #section_five h3.title{
1069
+ margin-bottom: 0;
1070
+ padding: 0 15px;
1071
+ line-height: 33px;
1072
+ font-size: 16px;
1073
+ color: #fff;
1074
+ font-weight: bold;
1075
+ text-transform: uppercase;
1076
+ display: inline-block;
1077
+ background-color: #ee4444;
1078
+ }
1079
+ #section_five h3.title a{
1080
+ color:#fff;
1081
+ }
1082
+
1083
+ #section_five .col-one{
1084
+ float:left;
1085
+ vertical-align: top;
1086
+ font-size: 0;
1087
+ width: 48.5%;
1088
+ margin: 0 3% 0 0;
1089
+ }
1090
+
1091
+ #section_five .post-thumb {
1092
+ margin: 0 0 20px;
1093
+ }
1094
+
1095
+ #section_five h3.entry-title {
1096
+ margin: 0 0 10px;
1097
+ font-size: 22px;
1098
+ font-weight: 700;
1099
+ line-height: 1.4;
1100
+ padding-bottom: 0;
1101
+ }
1102
+ #section_five .entry-meta {
1103
+ margin-bottom: 15px;
1104
+ color: #999;
1105
+ font-size: 14px;
1106
+ }
1107
+ #section_five .entry-meta span:not(.cat-links) + span:before {
1108
+ content: " / ";
1109
+ color: #aaa;
1110
+ margin: 0 2px;
1111
+ font-style: normal;
1112
+ opacity: .5;
1113
+ }
1114
+
1115
+ #section_five .col-two {
1116
+ display: inline-block;
1117
+ vertical-align: top;
1118
+ font-size: 0;
1119
+ width: 48.5%;
1120
+ }
1121
+
1122
+ #section_five .col-two:nth-child(2) {
1123
+ margin-right: 0;
1124
+ }
1125
+
1126
+ #section_five .col-two h3.title{
1127
+ background:#1C99E4;}
1128
+ #section_five .feat-cat_small_list {
1129
+ margin: 30px 0 0;
1130
+ overflow: hidden;
1131
+ }
1132
+ #section_five ul li,#section_five ul{
1133
+ padding:0;
1134
+ margin:0
1135
+
1136
+ }
1137
+ #section_five .feat-cat_small_list li {
1138
+ display: block;
1139
+ width: 100%;
1140
+ margin: 0 0 20px;
1141
+ overflow: hidden;
1142
+ }
1143
+ #section_five .feat-cat_small_list li .post-thumb {
1144
+ max-width: 35.9%;
1145
+ float: left;
1146
+ margin: 0 20px 0px 0;
1147
+ }
1148
+ #section_five .feat-cat_small_list li h3{
1149
+ margin-bottom: 10px;
1150
+ line-height: 1.2;
1151
+ font-weight: bold;
1152
+ font-size: 20px;
1153
+ padding-bottom: 0;
1154
+ }
1155
+ .breaking-new{
1156
+ background:#0e0e0e;
1157
+ overflow: hidden;
1158
+ display:block;
1159
+ }
1160
+ .breaking-new .new-title{
1161
+ float:left;
1162
+ padding: 18px 0px;
1163
+ }
1164
+ .breaking-new .news-ticker-wrap{
1165
+ overflow:hidden;
1166
+ padding: 0px 13px;
1167
+
1168
+ }
1169
+ .breaking-new h3 {
1170
+ margin: 0 28px 0 0!important;
1171
+ font-size: 16px!important;
1172
+ font-weight: bold!important;
1173
+ color: #fff;
1174
+ text-transform: uppercase;
1175
+ padding: 0 15px!important;
1176
+ line-height: 1.2!important;
1177
+ }
1178
+ .breaking-new .news-ticker-wrap{
1179
+ height:52px;
1180
+ width:70%;
1181
+ float: left;
1182
+ }
1183
+ .breaking-new .page-tab{
1184
+ float:right;
1185
+ padding-top:14px;
1186
+ padding-right:15px;
1187
+ }
1188
+ .breaking-new ul.news-ticker{
1189
+ display: block;
1190
+ overflow: hidden;
1191
+ padding: 0px 20px;
1192
+ }
1193
+ .breaking-new ul.news-ticker li{
1194
+ list-style-type: none;
1195
+ margin-right:70px;
1196
+ line-height: 52px;
1197
+ }
1198
+
1199
+ .breaking-new span{
1200
+ font-size: 11px;
1201
+ margin-right: 10px;
1202
+ color: #cacaca;
1203
+ background: #403f3f;
1204
+ padding: 4px 5px;
1205
+ }
1206
+ .breaking-new a{
1207
+ font-size: 18px!important;
1208
+ line-height: 1.3!important;
1209
+ letter-spacing: .5px;
1210
+ }
1211
+ .breaking-new li{
1212
+ white-space: nowrap;
1213
+ overflow: hidden;
1214
+ }
1215
+
1216
+ .breaking-new{
1217
+ position:relative;
1218
+ }
1219
+
1220
+ .breaking-new .nt-prev{
1221
+ margin-right:5px;
1222
+ }
1223
+ .breaking-new .nt-prev,.breaking-new .nt-next{
1224
+ color: #fff;
1225
+ font-size: 20px;
1226
+ border: 1px solid #fff;
1227
+ height: 23px;
1228
+ width: 23px;
1229
+ text-align: center;
1230
+ line-height: 20px;
1231
+ cursor: pointer;
1232
+ }
1233
+ .breaking-new .nt-prev:hover,
1234
+ .breaking-new .nt-next:hover {
1235
+ background: #fff;
1236
+ color: #666;
1237
+ -webkit-transition: all .3s ease;
1238
+ -moz-transition: all .3s ease;
1239
+ transition: all .3s ease;
1240
+ }
1241
+ .magazine-bottom .breaking-new .news-ticker-wrap{
1242
+ padding:0;
1243
+ }
1244
+ .magazine-bottom .breaking-new ul.news-ticker{
1245
+ padding:0px 10px;
1246
+ }
1247
+
1248
+ .magazine-bottom .breaking-new .news-ticker-wrap{
1249
+ width:60%;
1250
+ }
1251
+ /*****************************/
1252
+ /*single -boxed-layout-start*/
1253
+ /*****************************/
1254
+ .single.magazine-single-box #page,
1255
+ .archive.magazine-single-box #page,
1256
+ .category.magazine-single-box #page,
1257
+ .single.magazine-box #page,
1258
+ .archive.magazine-box #page,
1259
+ .category.magazine-box #page{
1260
+ margin-top:0;
1261
+ }
1262
+ .single.magazine-single-box .header-wrapper,
1263
+ .archive.magazine-single-box .header-wrapper,
1264
+ .category.magazine-single-box .header-wrapper,
1265
+ .single.magazine-box .header-wrapper,
1266
+ .archive.magazine-box .header-wrapper,
1267
+ .category.magazine-box .header-wrapper{
1268
+ margin-top: 40px;
1269
+ padding-top:0px;
1270
+ }
1271
+ .single.magazine-single-box.admin-bar header,
1272
+ .archive.magazine-single-box.admin-bar header,
1273
+ .category.magazine-single-box.admin-bar header,
1274
+ .single.magazine-box.admin-bar header,
1275
+ .archive.magazine-box.admin-bar header,
1276
+ .category.magazine-box.admin-bar header{
1277
+ top:0;
1278
+ }
1279
+ .single.magazine-single-box header,
1280
+ .archive.magazine-single-box header,
1281
+ .category.magazine-single-box header,
1282
+ .single.magazine-box header,
1283
+ .archive.magazine-box header,
1284
+ .category.magazine-box header{
1285
+ background:none!important;
1286
+ }
1287
+ .single.magazine-single-box header,
1288
+ .home.single.magazine-single-box header.smaller,
1289
+ .single.magazine-single-box header.smaller,
1290
+ .archive.magazine-single-box header,
1291
+ .home.archive.magazine-single-box header.smaller,
1292
+ .archive.magazine-single-box header.smaller,
1293
+ .category.magazine-single-box header,
1294
+ .home.category.magazine-single-box header.smaller,
1295
+ .category.magazine-single-box header.smaller,
1296
+ .single.magazine-box header,
1297
+ .home.single.magazine-box header.smaller,
1298
+ .single.magazine-box header.smaller,
1299
+ .archive.magazine-box header,
1300
+ .home.archive.magazine-box header.smaller,
1301
+ .archive.magazine-box header.smaller,
1302
+ .category.magazinee-box header,
1303
+ .home.category.magazine-box header.smaller,
1304
+ .category.magazine-box header.smaller{
1305
+ background:none;
1306
+ border-bottom:0;
1307
+ box-shadow: none;
1308
+ }
1309
+ .single.magazine-single-box .header,
1310
+ .archive.magazine-single-box .header,
1311
+ .category.magazine-single-box .header,
1312
+ .single.magazine-box .header,
1313
+ .archive.magazine-box .header,
1314
+ .category.magazine-box .header{
1315
+ background: #fff;
1316
+ padding: 0px 30px;
1317
+ float: left;
1318
+ width: 100%;
1319
+ }
1320
+
1321
+ .single.magazine-single-box header,
1322
+ .archive.magazine-single-box header,
1323
+ .category.magazine-single-box header,
1324
+ .single.magazine-box header,
1325
+ .archive.magazine-box header,
1326
+ .category.magazine-box header{
1327
+ position: relative;
1328
+ }
1329
+ .single.magazine-single-box header.smaller .logo img,
1330
+ .archive.magazine-single-box header.smaller .logo img,
1331
+ .category.magazine-single-box header.smaller .logo img,
1332
+ .single.magazine-box header.smaller .logo img,
1333
+ .archive.magazine-box header.smaller .logo img,
1334
+ .category.magazine-box header.smaller .logo img{
1335
+ max-width:100%;
1336
+ }
1337
+ .single.magazine-single-box header.smaller .logo,
1338
+ .archive.magazine-single-box header.smaller .logo,
1339
+ .category.magazine-single-box header.smaller .logo,
1340
+ .single.magazine-box header.smaller .logo,
1341
+ .archive.magazine-box header.smaller .logo,
1342
+ .category.magazine-box header.smaller .logo{
1343
+ padding:26px 0px;
1344
+ }
1345
+ .single.magazine-single-box header.smaller #main-menu-wrapper nav.navigation ul,
1346
+ .archive.magazine-single-box header.smaller #main-menu-wrapper nav.navigation ul,
1347
+ .category.magazine-single-box header.smaller #main-menu-wrapper nav.navigation ul,
1348
+ .single.magazine-box header.smaller #main-menu-wrapper nav.navigation ul,
1349
+ .archive.magazine-box header.smaller #main-menu-wrapper nav.navigation ul,
1350
+ .category.magazine-box header.smaller #main-menu-wrapper nav.navigation ul{
1351
+ padding:30px 0px;
1352
+ }
1353
+ .single.magazine-single-box #page,.single.magazine-single-box .container,
1354
+ .archive.magazine-single-box #page,.archive.magazine-single-box .container,
1355
+ .category.magazine-single-box #page,.category.magazine-single-box .container,
1356
+ .single.magazine-box #page,.single.magazine-box .container,
1357
+ .archive.magazine-box #page,.archive.magazine-box .container,
1358
+ .category.magazine-box #page,.category.magazine-box .container{
1359
+ max-width: 1170px;
1360
+ }
1361
+
1362
+ .single.magazine-single-box #page,
1363
+ .archive.magazine-single-box #page,
1364
+ .category.magazine-single-box #page,
1365
+ .single.magazine-box #page,
1366
+ .archive.magazine-box #page,
1367
+ .category.magazine-box #page{
1368
+ padding: 0px 30px 30px;
1369
+ background: #fff;
1370
+ }
1371
+
1372
+ .single.magazine-single-box .breadcrumb.container,
1373
+ .archive.magazine-single-box .breadcrumb.container,
1374
+ .category.magazine-single-box .breadcrumb.container,
1375
+ .single.magazine-box .breadcrumb.container,
1376
+ .archive.magazine-box .breadcrumb.container,
1377
+ .category.magazine-box .breadcrumb.container{
1378
+ background:#fff;
1379
+ padding:0px 30px;
1380
+ }
1381
+
1382
+ .single.magazine-single-box .page-content,
1383
+ .archive.magazine-single-box .page-content,
1384
+ .category.magazine-single-box .page-content,
1385
+ .single.magazine-box .page-content,
1386
+ .archive.magazine-box .page-content,
1387
+ .category.magazine-box .page-content{
1388
+ margin-bottom:0;
1389
+ }
1390
+ .single.magazine-single-box .footer-wrapper,
1391
+ .archive.magazine-single-box .footer-wrapper,
1392
+ .category.magazine-single-box .footer-wrapper,
1393
+ .single.magazine-box .footer-wrapper,
1394
+ .archive.magazine-box .footer-wrapper,
1395
+ .category.magazine-box .footer-wrapper{
1396
+ max-width: 1170px;
1397
+ min-width: 240px;
1398
+ margin-right: auto;
1399
+ margin-left: auto;
1400
+ position: relative;
1401
+ clear: both;
1402
+ margin-bottom: 40px;
1403
+ }
1404
+ .single.magazine-single-box .footer-wrapper .footer,
1405
+ .archive.magazine-single-box .footer-wrapper .footer,
1406
+ .category.magazine-single-box .footer-wrapper .footer,
1407
+ .single.magazine-box .footer-wrapper .footer,
1408
+ .archive.magazine-box .footer-wrapper .footer,
1409
+ .category.magazine-box .footer-wrapper .footer{
1410
+ padding-left:30px;
1411
+ padding-right:30px;
1412
+ }
1413
+ .single.magazine-single-box aside.sidebar,
1414
+ .archive.magazine-single-box aside.sidebar,
1415
+ .category.magazine-single-box aside.sidebar,
1416
+ .single.magazine-box aside.sidebar,
1417
+ .archive.magazine-box aside.sidebar,
1418
+ .category.magazine-box aside.sidebar {
1419
+ padding: 0px;
1420
+ }
1421
+
1422
+ .magazine-single-box .navigation.post-navigation .nav-previous,
1423
+ .magazine-single-box .navigation.post-navigation .nav-next,
1424
+ .magazine-single-box .related-post,
1425
+ .magazine-single-box span.edit-link a,
1426
+ .magazine-box .navigation.post-navigation .nav-previous,
1427
+ .magazine-box .navigation.post-navigation .nav-next,
1428
+ .magazine-box .related-post,
1429
+ .magazine-box span.edit-link a{
1430
+ padding: 0 0px;
1431
+ }
1432
+
1433
+ .magazine-single-box .post-navigation,
1434
+ .magazine-box .post-navigation{
1435
+ padding-top:30PX;
1436
+ }
1437
+ /*****************************/
1438
+ /*all page -boxed-layout-start*/
1439
+ /*****************************/
1440
+ .page.magazine-box #page{
1441
+ margin-top:0;
1442
+ }
1443
+ .page.magazine-box .header-wrapper{
1444
+ margin-top: 40px;
1445
+ padding-top:0px;
1446
+ }
1447
+ .page.magazine-box.admin-bar header{
1448
+ top:0;
1449
+ }
1450
+ .page.magazine-box header{
1451
+ background:none!important;
1452
+ }
1453
+ .page.magazine-box header,
1454
+ .home.page.magazine-box header.smaller,
1455
+ .page.magazine-box header.smaller{
1456
+ background:none;
1457
+ border-bottom:0;
1458
+ box-shadow: none;
1459
+ }
1460
+ .page.magazine-box .header{
1461
+ background: #fff;
1462
+ padding: 0px 30px;
1463
+ float: left;
1464
+ width: 100%;
1465
+ }
1466
+
1467
+ .page.magazine-box header{
1468
+ position: relative;
1469
+ }
1470
+ .page.magazine-box header.smaller .logo img{
1471
+ max-width:100%;
1472
+ }
1473
+ .page.magazine-box header.smaller .logo{
1474
+ padding:26px 0px;
1475
+ }
1476
+ .page.magazine-box header.smaller #main-menu-wrapper nav.navigation ul{
1477
+ padding:30px 0px;
1478
+ }
1479
+ .page.magazine-box #page,.single.magazine-single-box .container{
1480
+ max-width: 1170px;
1481
+ }
1482
+ .page.magazine-box #page{
1483
+ padding: 0px 30px 30px 30px;
1484
+ background: #fff;
1485
+ }
1486
+
1487
+ .page.magazine-box .breadcrumb.container{
1488
+ background:#fff;
1489
+ padding:0px 30px;
1490
+ }
1491
+ .page.magazine-box .post-content{
1492
+ padding: 0;
1493
+ }
1494
+ .page.magazine-box .page-content{
1495
+ margin-bottom:0;
1496
+ padding:0;
1497
+ margin-top:0;
1498
+ }
1499
+ .page.magazine-box .footer-wrapper{
1500
+ max-width: 1170px;
1501
+ min-width: 240px;
1502
+ margin-right: auto;
1503
+ margin-left: auto;
1504
+ position: relative;
1505
+ clear: both;
1506
+ margin-bottom: 40px;
1507
+ }
1508
+ .page.magazine-box .footer-wrapper .footer{
1509
+ padding-left:30px;
1510
+ padding-right:30px;
1511
+ }
1512
+ .page.magazine-box aside.sidebar{
1513
+ padding: 0px;
1514
+ }
1515
+ /*.sidebar-inner-widget li.cat-item{
1516
+ position:relative;
1517
+ text-align:right;
1518
+ color:#999;
1519
+ font-size:13px;
1520
+ }
1521
+ .sidebar-inner-widget li.cat-item a{
1522
+ position:absolute;
1523
+ left:0;
1524
+ font-size:15px;
1525
+ }*/
1526
+ .page-template-magazine-template.page.magazine-box .content{
1527
+ width: 70%;
1528
+ }
1529
+ .page-template-magazine-template.page.magazine-box .sidebar-wrapper {
1530
+ margin-top: 0;
1531
+ width: 27%;
1532
+ }
1533
+ .page.magazine-box .sidebar-wrapper {
1534
+ margin-top: 0px;
1535
+ }
1536
+ .single #commentsbox {
1537
+ padding: 30px;
1538
+ }
1539
+ /**********************************/
1540
+ /*box shadow*/
1541
+ /**********************************/
1542
+ .page-template-magazine-template .header,
1543
+ .magazine-box .header,
1544
+ .magazine-single-box .header{
1545
+ -webkit-box-shadow: 0px -3px 7px #e6e6e6;
1546
+ -moz-box-shadow: 0px -3px 7px #e6e6e6;
1547
+ box-shadow: 0px -3px 7px #e6e6e6;
1548
+ }
1549
+
1550
+ .page-template-magazine-template #page.magazine-top,
1551
+ .magazine-box #page.magazine-top,
1552
+ .magazine-single-box #page.magazine-top{
1553
+ -webkit-box-shadow: 0px -3px 7px #e6e6e6;
1554
+ -moz-box-shadow: 0px -3px 7px #e6e6e6;
1555
+ box-shadow: 0px -3px 7px #e6e6e6;
1556
+ }
1557
+
1558
+ .page-template-magazine-template #page.magazine-bottom,
1559
+ .magazine-box #page.magazine-bottom,
1560
+ .magazine-single-box #page.magazine-bottom{
1561
+ box-shadow: 3px 0 3px -3px #e6e6e6 , -3px 0 3px -3px #e6e6e6;
1562
+ -moz-box-shadow: 3px 0 3px -3px #e6e6e6 , -3px 0 3px -3px #e6e6e6;
1563
+ -webkit-box-shadow: 3px 0 3px -3px #e6e6e6 , -3px 0 3px -3px #e6e6e6;
1564
+ }
1565
+ .page-template-magazine-template #page,
1566
+ .magazine-box #page,
1567
+ .magazine-single-box #page{
1568
+ box-shadow: 3px 0 3px -3px #e6e6e6 , -3px 0 3px -3px #e6e6e6;
1569
+ -moz-box-shadow: 3px 0 3px -3px #e6e6e6 , -3px 0 3px -3px #e6e6e6;
1570
+ -webkit-box-shadow: 3px 0 3px -3px #e6e6e6 , -3px 0 3px -3px #e6e6e6;
1571
+ }
1572
+
1573
+ .page-template-magazine-template .footer-wrapper,
1574
+ .magazine-box .footer-wrapper,
1575
+ .magazine-single-box .footer-wrapper{
1576
+ -webkit-box-shadow: 0px 3px 7px #e6e6e6;
1577
+ -moz-box-shadow: 0px 3px 7px #e6e6e6;
1578
+ box-shadow: 0px 3px 7px #e6e6e6;
1579
+ }
1580
+ /*404page*/
1581
+ .error404.magazine-box .header-wrapper {
1582
+ margin-top: 40px;
1583
+ padding-top: 0px;
1584
+ }
1585
+ .error404.magazine-box.admin-bar header {
1586
+ top: 0;
1587
+ }
1588
+
1589
+ .error404.magazine-box header {
1590
+ position: relative;
1591
+ }
1592
+ .error404.magazine-box header, .home.page.magazine-box header.smaller, .error404.magazine-box header.smaller {
1593
+ background: none;
1594
+ border-bottom: 0;
1595
+ box-shadow: none;
1596
+ }
1597
+
1598
+ .error404.magazine-box header {
1599
+ background: none!important;
1600
+ }
1601
+
1602
+ .error404.magazine-box .header {
1603
+ background: #fff;
1604
+ padding: 0px 30px;
1605
+ float: left;
1606
+ width: 100%;
1607
+ }
1608
+ .error404.magazine-box #page {
1609
+ padding: 0px 30px 30px;
1610
+ background: #fff;
1611
+ }
1612
+
1613
+ .error404.magazine-box #page{
1614
+ max-width: 1170px;
1615
+ }
1616
+
1617
+ .error404.magazine-box #page {
1618
+ margin-top: 0!important;
1619
+ }
1620
+
1621
+
1622
+ .error404.magazine-box .page-content {
1623
+ margin-bottom: 0;
1624
+ padding: 0;
1625
+ }
1626
+
1627
+ .error404.magazine-box .footer-wrapper {
1628
+ max-width: 1170px;
1629
+ min-width: 240px;
1630
+ margin-right: auto;
1631
+ margin-left: auto;
1632
+ position: relative;
1633
+ clear: both;
1634
+ margin-bottom: 40px;
1635
+ }
1636
+
1637
+
1638
+ @media screen and (max-width: 1480px){
1639
+ .page-template-magazine-template #page,
1640
+ .page-template-magazine-template .top-container,
1641
+ .page-template-magazine-template.magazine-box .top-container,
1642
+ .page-template-magazine-template.magazine-single-box .top-container{
1643
+ max-width: 96%!important;
1644
+ }
1645
+ .page-template-magazine-template header .container,
1646
+ .page-template-magazine-template .footer-wrapper{
1647
+ max-width: 96%!important;
1648
+ }
1649
+ }
1650
+ @media screen and (max-width:1230px) {
1651
+ .page.magazine-box #page,
1652
+ .single.magazine-single-box .container,
1653
+ .single.magazine-single-box #page,
1654
+ .single.magazine-box .container,
1655
+ .single.magazine-box #page,
1656
+ .single.magazine-single-box .footer-wrapper,
1657
+ .magazine-box .footer-wrapper,
1658
+ .magazine-box header .container,
1659
+ .single.magazine-box .top-container,
1660
+ .archive.magazine-box .top-container,
1661
+ .single.magazine-single-box .top-container,
1662
+ .magazine-single-box .top-container,
1663
+ .magazine-box .top-container{
1664
+ max-width: 96%!important;
1665
+ }
1666
+ #page.left #section_one .slider ,#page.right #section_one .slider {
1667
+ overflow: hidden;
1668
+ position: relative;
1669
+ width: 100%;
1670
+ float: none;
1671
+ box-sizing: border-box;
1672
+ border-right: 0px solid #fff;
1673
+ margin-bottom: 40px;
1674
+ }
1675
+ #page.left #section_one .slider_widgets ,#page.right #section_one .slider_widgets{
1676
+ float: none;
1677
+ width: 100%;
1678
+ }
1679
+ #page.left .slider_widgets .slider_widgets_one .post-item,
1680
+ #page.right .slider_widgets .slider_widgets_one .post-item {
1681
+ float: left;
1682
+ width: 48%;
1683
+ margin-right:4%;
1684
+ }
1685
+ #page.left .slider_widgets .slider_widgets_one .post-item:nth-child(2n),
1686
+ #page.right .slider_widgets .slider_widgets_one .post-item:nth-child(2n){
1687
+ margin-right:0%;
1688
+ }
1689
+ #page.left .slider_widgets h3.entry-title,
1690
+ #page.right .slider_widgets h3.entry-title{
1691
+ padding-bottom:0px;
1692
+ }
1693
+ #page.left .slider_widgets .post-item,
1694
+ #page.right .slider_widgets .post-item{
1695
+ max-height:100%;
1696
+ }
1697
+ #page.left .slider_widgets .post-item .post-thumb img,
1698
+ #page.right .slider_widgets .post-item .post-thumb img {
1699
+ max-width: 100%;
1700
+ min-height: 100%;
1701
+ width: 100%;
1702
+ }
1703
+
1704
+ }
1705
+ @media screen and (max-width:1165px){
1706
+ .page-template-magazine-template header.header-style-one .logo,
1707
+ .magazine-box header.header-style-one .logo,
1708
+ .magazine-single-box header.header-style-one .logo {
1709
+ width:30%;
1710
+ }
1711
+ }
1712
+ @media screen and (max-width:1024px) {
1713
+ .header .logo {
1714
+ width: 80%;
1715
+ max-width: 230px;
1716
+ }
1717
+ .header-wrap-top {
1718
+ padding: 10px 20px;
1719
+ }
1720
+ .page-template-magazine-template header.header-style-one .navigation>ul>li:first-child>a,
1721
+ .magazine-box header.header-style-one .navigation>ul>li:first-child>a,
1722
+ .magazine-single-box header.header-style-one .navigation>ul>li:first-child>a {
1723
+ padding-left: 20px!important;
1724
+ }
1725
+ .page-template-magazine-template header.smaller a#pull,
1726
+ .magazine-box .header-wrapper header.smaller a#pull,
1727
+ .single.magazine-single-box .header-wrapper header.smaller a#pull{
1728
+ padding:20px 0px;
1729
+ }
1730
+ .page-template-magazine-template .smaller .header a#pull,
1731
+ .magazine-box .smaller.header a#pull,
1732
+ .single.magazine-single-box .smaller .header a#pull{
1733
+ top: 16px!important;
1734
+ }
1735
+ .page-template-magazine-template.page .header-style-one .header #main-menu-wrapper a#pull,
1736
+ .page-template-magazine-template.page .header-style-one .smaller .header #main-menu-wrapper a#pull,
1737
+ .magazine-box .header-style-one .header #main-menu-wrapper a#pull,
1738
+ .magazine-box .header-style-one .smaller .header #main-menu-wrapper a#pull,
1739
+ .magazine-single-box .header-style-one .header #main-menu-wrapper a#pull,
1740
+ .magazine-single-box .header-style-one .smaller .header #main-menu-wrapper a#pull {
1741
+ top: 0!important;
1742
+ padding: 10px;
1743
+ }
1744
+ .page-template-magazine-template header.header-style-one nav.navigation,
1745
+ .magazine-box header.header-style-one nav.navigation,
1746
+ .magazine-single-box header.header-style-one nav.navigation {
1747
+ padding-left:0px;
1748
+ }
1749
+ .page-template-magazine-template.page .header-style-one .header #main-menu-wrapper a#pull:before,
1750
+ .magazine-box .header-style-one .header #main-menu-wrapper a#pull:before,
1751
+ .magazine-single-box .header-style-one .header #main-menu-wrapper a#pull:before {
1752
+ content: 'Main menu';
1753
+ font-size: 18px;
1754
+ position: absolute;
1755
+ left: 0;
1756
+ color: #5a5d5a;
1757
+ line-height: 24px;
1758
+ }
1759
+ #section_one .slider {
1760
+ overflow: hidden;
1761
+ position: relative;
1762
+ width: 100%;
1763
+ float: none;
1764
+ box-sizing: border-box;
1765
+ border-right: 0px solid #fff;
1766
+ margin-bottom: 40px;
1767
+ }
1768
+ #section_one .slider_widgets {
1769
+ float: none;
1770
+ width: 100%;
1771
+ }
1772
+ .slider_widgets h3.entry-title,
1773
+ .slider_widgets h3.entry-title{
1774
+ padding-bottom:0px;
1775
+ }
1776
+ .slider_widgets .post-item,
1777
+ .slider_widgets .post-item{
1778
+ max-height:100%;
1779
+ border-right: 0px;
1780
+ }
1781
+ .slider_widgets .post-item .post-thumb img,
1782
+ .slider_widgets .post-item .post-thumb img {
1783
+ max-width: 100%;
1784
+ min-height: 100%;
1785
+ width: 100%;
1786
+ }
1787
+ .slider_widgets .slider_widgets_one .post-item {
1788
+ float: left;
1789
+ width: 48%;
1790
+ margin-right:4%;
1791
+ }
1792
+ .slider_widgets .slider_widgets_one .post-item:nth-child(2n){
1793
+ margin-right:0%;
1794
+ }
1795
+ .breaking-new .news-ticker-wrap{
1796
+ width:60%;
1797
+ }
1798
+ .breaking-new h3 {
1799
+ margin: 0px!important;
1800
+ }
1801
+ /*top-menu-responsive*/
1802
+ .mobile-top-menu-active .inner-wrap-top{
1803
+ left: 0;
1804
+ }
1805
+ .inner-wrap-top{
1806
+ display: block;
1807
+ position: fixed;
1808
+ top: 0px;
1809
+ left: -300px;
1810
+ width: 300px;
1811
+ height: 100%;
1812
+ background-color:#0e0e0e;
1813
+ border-right: 1px solid rgba(0, 0, 0, 0.2)!important;
1814
+ overflow: auto;
1815
+ transition: left 500ms ease;
1816
+ -webkit-backface-visibility: hidden;
1817
+ z-index: 99999;
1818
+ }
1819
+ .header-wrap-top a#pull {
1820
+ display:block;
1821
+ }
1822
+ .header-wrap-top a#pull {
1823
+ display:block;
1824
+ position: relative;
1825
+ color: #fff;
1826
+ text-align: right;
1827
+ -webkit-transition: all 0.5s ease-out;
1828
+ -moz-transition: all 0.5s ease-out;
1829
+ -o-transition: all 0.5s ease-out;
1830
+ transition: all 0.5s ease-out;
1831
+ }
1832
+ .header-wrap-top a#pull:after {
1833
+ content: "\f0c9";
1834
+ display: inline-block;
1835
+ font-size: 14px;
1836
+ font-family: FontAwesome;
1837
+ }
1838
+ .mobile-top-menu-active .header-wrap-top a#pull:after {
1839
+ content: "\f00d";
1840
+ }
1841
+ .header-wrapper header.smaller .header-wrap-top a#pull{
1842
+ padding:0;
1843
+ color:#fff;
1844
+ }
1845
+ .header-wrap-top .top-date{
1846
+ width:auto;
1847
+ }
1848
+ .header-wrap-top .top-menu {
1849
+ float: none;
1850
+ width: 100%;
1851
+ }
1852
+ .logged-in .header-wrap-top .top-menu .top{
1853
+ margin-top:40px;
1854
+ text-align:left;
1855
+ }
1856
+ .header-wrap-top .top-menu .top{
1857
+ text-align:left;
1858
+ }
1859
+ .header-wrap-top .top-menu .top li{
1860
+ width:100%;
1861
+ line-height: 44px;
1862
+ border-bottom: 1px solid rgba(193, 193, 193, 0.2)!important;
1863
+ width: 100%!important;
1864
+ box-sizing: border-box;
1865
+ padding-left:25px;
1866
+ }
1867
+ .header-wrap-top .top-social-icon{
1868
+ float:left;
1869
+ width:100%;
1870
+ text-align:left;
1871
+ margin:25px;
1872
+ }
1873
+ .header-wrap-top .top-social-icon li {
1874
+ display: inline-block;
1875
+ margin-left: 0px;
1876
+ margin-right: 15px;
1877
+ }
1878
+
1879
+ }
1880
+ @media screen and (max-width:990px){
1881
+ .page-template-magazine-template .content,
1882
+ .page-template-magazine-template.page.magazine-box .content{
1883
+ width: 100%;
1884
+ max-width: 100%;
1885
+ float: none;
1886
+ margin: 0 auto;
1887
+ clear: both;
1888
+ }
1889
+ .page-template-magazine-template.page .sidebar-wrapper,
1890
+ .page-template-magazine-template.page.magazine-box .sidebar-wrapper {
1891
+ margin-top: 30px;
1892
+ }
1893
+ .page-template-magazine-template.page .sidebar-wrapper,
1894
+ .page-template-magazine-template.page.magazine-box .sidebar-wrapper{
1895
+ max-width: 400px;
1896
+ width: 100%;
1897
+ float: left;
1898
+
1899
+ }
1900
+ .page-template-magazine-template header.header-style-one .header-ads,
1901
+ .magazine-box header.header-style-one .header-ads,
1902
+ .magazine-single-box header.header-style-one .header-ads {
1903
+ width: 65%;
1904
+ }
1905
+ }
1906
+ @media screen and (max-width:767px){
1907
+ .page-template-magazine-template header.header-style-one .header-ads,
1908
+ .magazine-box header.header-style-one .header-ads,
1909
+ .magazine-single-box header.header-style-one .header-ads {
1910
+ display: none!important;
1911
+ }
1912
+ .page-template-magazine-template header.header-style-one .logo,
1913
+ .page.magazine-box header.header-style-one .logo,
1914
+ .page.magazine-single-box header.header-style-one .logo,
1915
+ .magazine-box header.header-style-one .logo,
1916
+ .magazine-single-box header.header-style-one .logo {
1917
+ width: auto;
1918
+ float: none;
1919
+ margin: 0 auto;
1920
+ text-align: center;
1921
+ padding: 15px 0px;
1922
+ }
1923
+ .page.page-template-magazine-template .header-wrapper,
1924
+ .magazine-box .header-wrapper,
1925
+ .single.magazine-single-box .header-wrapper{
1926
+ margin-top:0;
1927
+ }
1928
+ .page-template-magazine-template header .container,
1929
+ .page-template-magazine-template .footer-wrapper,.magazine-box header .container,
1930
+ .magazine-box .footer-wrapper,.page-template-magazine-template .top-container,
1931
+ .page-template-magazine-template.magazine-box .top-container,
1932
+ .page-template-magazine-template.magazine-single-box .top-container {
1933
+ max-width: 100%!important;
1934
+ }
1935
+ .page-template-magazine-template #page,
1936
+ .page.magazine-box #page {
1937
+ max-width: 100%!important;
1938
+ }
1939
+ .page.magazine-box #page, .single.magazine-single-box .container,
1940
+ .single.magazine-single-box #page,
1941
+ .single.magazine-box .container,
1942
+ .single.magazine-box #page,
1943
+ .single.magazine-single-box .footer-wrapper,
1944
+ .magazine-box .footer-wrapper,
1945
+ .magazine-box header .container,
1946
+ .single.magazine-box .top-container,
1947
+ .archive.magazine-box .top-container,
1948
+ .single.magazine-single-box .top-container,
1949
+ .magazine-single-box .top-container,
1950
+ .magazine-box .top-container {
1951
+ max-width: 100%!important;
1952
+ }
1953
+ .page-template-magazine-template .header,.page.magazine-box .header,
1954
+ .single.magazine-single-box #page, .archive.magazine-single-box #page,
1955
+ .category.magazine-single-box #page, .single.magazine-box #page,
1956
+ .archive.magazine-box #page, .category.magazine-box #page{
1957
+ padding: 0px 10px;
1958
+ }
1959
+ .page-template-magazine-template .page-content,
1960
+ .page.magazine-box #page{
1961
+ padding: 0px 10px;
1962
+ }
1963
+ .single #commentsbox {
1964
+ padding:0px;
1965
+ }
1966
+ #section_one .flexslider ul {
1967
+ max-height: 330px;
1968
+ }
1969
+ #section_one li.slide{
1970
+ height:330px;
1971
+ }
1972
+ #section_one .slides li .slide-header {
1973
+ bottom: 20%;
1974
+ }
1975
+ #section_three .col-one{
1976
+ width:100%!important;
1977
+ float:none;
1978
+ margin-bottom:40px;
1979
+ }
1980
+ #section_three .col-two{
1981
+ width:100%!important;
1982
+ float:none;
1983
+ }
1984
+ #section_three .col-two h3.view{
1985
+ float:left;
1986
+ margin:0;
1987
+ }
1988
+ #section_four .recent-news .post-thumb{
1989
+ max-width: 100%;
1990
+ margin: 0;
1991
+ float:none;
1992
+ margin-bottom:20px;
1993
+ }
1994
+
1995
+ #section_four h3.view{
1996
+ margin:0;
1997
+ }
1998
+ #section_five .col-one,#section_five .col-two{
1999
+ float: none;
2000
+ vertical-align: top;
2001
+ font-size: 0;
2002
+ width: 100%;
2003
+ margin:0;
2004
+ }
2005
+ .breaking-new .new-title {
2006
+ float: left;
2007
+ padding: 18px 0px 0px;
2008
+ width: 100%;
2009
+ text-align: center;
2010
+ }
2011
+ .breaking-new .news-ticker-wrap,.magazine-bottom .breaking-new .news-ticker-wrap{
2012
+ width: 100%;
2013
+ float: none;
2014
+ text-align: center;
2015
+ }
2016
+ .breaking-new ul.news-ticker,.magazine-bottom .breaking-new ul.news-ticker{
2017
+ width: 100%;
2018
+ }
2019
+ .breaking-new .page-tab{
2020
+ display:none;
2021
+ }
2022
+ .breaking-new li {
2023
+ white-space: inherit;
2024
+ overflow: hidden;
2025
+ line-height: 22px!important;
2026
+ padding: 18px 0px;
2027
+ }
2028
+ .breaking-new a {
2029
+ font-size: 16px!important;
2030
+ }
2031
+ #section_one .slides li .slide-header h3{
2032
+ font-size:24px;
2033
+ }
2034
+ }
2035
+ @media screen and (max-width:600px){
2036
+ .slider_widgets .slider_widgets_one{
2037
+ width:100%;
2038
+ margin-bottom:40px;
2039
+ }
2040
+ .slider_widgets .slider_widgets_one .post-item{
2041
+ width: 100%!important;
2042
+ max-width: 433px;
2043
+ margin-right:0;
2044
+ border-right: 0;
2045
+ }
2046
+ }
elanzalite/assets/css/owl.carousel.css ADDED
@@ -0,0 +1,216 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Owl Carousel - Animate Plugin
3
+ */
4
+ .owl-carousel .animated {
5
+ -webkit-animation-duration: 1000ms;
6
+ animation-duration: 1000ms;
7
+ -webkit-animation-fill-mode: both;
8
+ animation-fill-mode: both;
9
+ }
10
+ .owl-carousel .owl-animated-in {
11
+ z-index: 0;
12
+ }
13
+ .owl-carousel .owl-animated-out {
14
+ z-index: 1;
15
+ }
16
+ .owl-carousel .fadeOut {
17
+ -webkit-animation-name: fadeOut;
18
+ animation-name: fadeOut;
19
+ }
20
+
21
+ @-webkit-keyframes fadeOut {
22
+ 0% {
23
+ opacity: 1;
24
+ }
25
+
26
+ 100% {
27
+ opacity: 0;
28
+ }
29
+ }
30
+ @keyframes fadeOut {
31
+ 0% {
32
+ opacity: 1;
33
+ }
34
+
35
+ 100% {
36
+ opacity: 0;
37
+ }
38
+ }
39
+
40
+ /*
41
+ * Owl Carousel - Auto Height Plugin
42
+ */
43
+ .owl-height {
44
+ -webkit-transition: height 500ms ease-in-out;
45
+ -moz-transition: height 500ms ease-in-out;
46
+ -ms-transition: height 500ms ease-in-out;
47
+ -o-transition: height 500ms ease-in-out;
48
+ transition: height 500ms ease-in-out;
49
+ }
50
+
51
+ /*
52
+ * Core Owl Carousel CSS File
53
+ */
54
+ .owl-carousel {
55
+ display: none;
56
+ width: 100%;
57
+ -webkit-tap-highlight-color: transparent;
58
+ /* position relative and z-index fix webkit rendering fonts issue */
59
+ position: relative;
60
+ z-index: 1;
61
+ }
62
+ .owl-carousel .owl-stage {
63
+ position: relative;
64
+ -ms-touch-action: pan-Y;
65
+ }
66
+ .owl-carousel .owl-stage:after {
67
+ content: ".";
68
+ display: block;
69
+ clear: both;
70
+ visibility: hidden;
71
+ line-height: 0;
72
+ height: 0;
73
+ }
74
+ .owl-carousel .owl-stage-outer {
75
+ position: relative;
76
+ overflow: hidden;
77
+ /* fix for flashing background */
78
+ -webkit-transform: translate3d(0px, 0px, 0px);
79
+ }
80
+ .owl-carousel .owl-controls .owl-nav .owl-prev,
81
+ .owl-carousel .owl-controls .owl-nav .owl-next,
82
+ .owl-carousel .owl-controls .owl-dot {
83
+ cursor: pointer;
84
+ cursor: hand;
85
+ -webkit-user-select: none;
86
+ -khtml-user-select: none;
87
+ -moz-user-select: none;
88
+ -ms-user-select: none;
89
+ user-select: none;
90
+ }
91
+ .owl-carousel.owl-loaded {
92
+ display: block;
93
+ }
94
+ .owl-carousel.owl-loading {
95
+ opacity: 0;
96
+ display: block;
97
+ }
98
+ .owl-carousel.owl-hidden {
99
+ opacity: 0;
100
+ }
101
+ .owl-carousel .owl-refresh .owl-item {
102
+ display: none;
103
+ }
104
+ .owl-carousel .owl-item {
105
+ position: relative;
106
+ min-height: 1px;
107
+ float: left;
108
+ -webkit-backface-visibility: hidden;
109
+ -webkit-tap-highlight-color: transparent;
110
+ -webkit-touch-callout: none;
111
+ -webkit-user-select: none;
112
+ -moz-user-select: none;
113
+ -ms-user-select: none;
114
+ user-select: none;
115
+ }
116
+ .owl-carousel .owl-item img {
117
+ display: block;
118
+ width: 100%;
119
+ -webkit-transform-style: preserve-3d;
120
+ }
121
+ .owl-carousel.owl-text-select-on .owl-item {
122
+ -webkit-user-select: auto;
123
+ -moz-user-select: auto;
124
+ -ms-user-select: auto;
125
+ user-select: auto;
126
+ }
127
+ .owl-carousel .owl-grab {
128
+ cursor: move;
129
+ cursor: -webkit-grab;
130
+ cursor: -o-grab;
131
+ cursor: -ms-grab;
132
+ cursor: grab;
133
+ }
134
+ .owl-carousel.owl-rtl {
135
+ direction: rtl;
136
+ }
137
+ .owl-carousel.owl-rtl .owl-item {
138
+ float: right;
139
+ }
140
+
141
+ /* No Js */
142
+ .no-js .owl-carousel {
143
+ display: block;
144
+ }
145
+
146
+ /*
147
+ * Owl Carousel - Lazy Load Plugin
148
+ */
149
+ .owl-carousel .owl-item .owl-lazy {
150
+ opacity: 0;
151
+ -webkit-transition: opacity 400ms ease;
152
+ -moz-transition: opacity 400ms ease;
153
+ -ms-transition: opacity 400ms ease;
154
+ -o-transition: opacity 400ms ease;
155
+ transition: opacity 400ms ease;
156
+ }
157
+ .owl-carousel .owl-item img {
158
+ transform-style: preserve-3d;
159
+ }
160
+
161
+ /*
162
+ * Owl Carousel - Video Plugin
163
+ */
164
+ .owl-carousel .owl-video-wrapper {
165
+ position: relative;
166
+ height: 100%;
167
+ background: #000;
168
+ }
169
+ .owl-carousel .owl-video-play-icon {
170
+ position: absolute;
171
+ height: 80px;
172
+ width: 80px;
173
+ left: 50%;
174
+ top: 50%;
175
+ margin-left: -40px;
176
+ margin-top: -40px;
177
+ background: url("owl.video.play.png") no-repeat;
178
+ cursor: pointer;
179
+ z-index: 1;
180
+ -webkit-backface-visibility: hidden;
181
+ -webkit-transition: scale 100ms ease;
182
+ -moz-transition: scale 100ms ease;
183
+ -ms-transition: scale 100ms ease;
184
+ -o-transition: scale 100ms ease;
185
+ transition: scale 100ms ease;
186
+ }
187
+ .owl-carousel .owl-video-play-icon:hover {
188
+ -webkit-transition: scale(1.3, 1.3);
189
+ -moz-transition: scale(1.3, 1.3);
190
+ -ms-transition: scale(1.3, 1.3);
191
+ -o-transition: scale(1.3, 1.3);
192
+ transition: scale(1.3, 1.3);
193
+ }
194
+ .owl-carousel .owl-video-playing .owl-video-tn,
195
+ .owl-carousel .owl-video-playing .owl-video-play-icon {
196
+ display: none;
197
+ }
198
+ .owl-carousel .owl-video-tn {
199
+ opacity: 0;
200
+ height: 100%;
201
+ background-position: center center;
202
+ background-repeat: no-repeat;
203
+ -webkit-background-size: contain;
204
+ -moz-background-size: contain;
205
+ -o-background-size: contain;
206
+ background-size: contain;
207
+ -webkit-transition: opacity 400ms ease;
208
+ -moz-transition: opacity 400ms ease;
209
+ -ms-transition: opacity 400ms ease;
210
+ -o-transition: opacity 400ms ease;
211
+ transition: opacity 400ms ease;
212
+ }
213
+ .owl-carousel .owl-video-frame {
214
+ position: relative;
215
+ z-index: 1;
216
+ }
elanzalite/assets/js/custom.js ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function() {
2
+ "use strict";
3
+ /* ---------------------------------------------- /*
4
+ * Intro slider setup # Responsive slider
5
+ /* ---------------------------------------------- */
6
+ if( jQuery('.flex-slider').length > 0 ) {
7
+ jQuery(".flex-slider").flexslider({
8
+ animation: "slide",
9
+ controlNav: true,
10
+ smoothHeight: true,
11
+ animationSpeed: 1000,
12
+ animationLoop: true,
13
+ prevText: '',
14
+ nextText: '',
15
+ useCSS: true
16
+ });
17
+ }
18
+
19
+ // check flexslider active or not
20
+ if(jQuery('body').find('.flex-slider').length){
21
+ jQuery("body").addClass("flexslider-wrap");
22
+ }else{
23
+ jQuery("body").removeClass("flexslider-wrap");
24
+ }
25
+ // section_one_slider
26
+ jQuery("#section_one .flexslider").flexslider({
27
+ animation: "slide",
28
+ controlNav: true,
29
+ smoothHeight: true,
30
+ animationSpeed: 1500,
31
+ animationLoop: true,
32
+ prevText: '',
33
+ nextText: '',
34
+ useCSS: true
35
+ });
36
+ //owl-slider
37
+ jQuery('.post_slide .owl-carousel').owlCarousel({
38
+ loop: true,
39
+ margin: 3,
40
+ items: 4,
41
+ autoplay:true,
42
+ smartSpeed: 2500,
43
+ fluidSpeed:true,
44
+ responsive: {
45
+ 0: {
46
+ items: 1,
47
+ nav: true
48
+ },
49
+ 600: {
50
+ items: 2,
51
+ nav: true
52
+ },
53
+ 850: {
54
+ items: 3,
55
+ nav: true
56
+ },
57
+ 1025: {
58
+ items: 3,
59
+ nav: true,
60
+ margin: 3
61
+ },
62
+ 1180: {
63
+ items: 4,
64
+ nav: true,
65
+ margin: 3
66
+ }
67
+ }
68
+ })
69
+
70
+
71
+ });
elanzalite/assets/js/jquery.easy-ticker.js ADDED
@@ -0,0 +1,208 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery - Easy Ticker plugin - v2.0
3
+ * http://www.aakashweb.com/
4
+ * Copyright 2014, Aakash Chakravarthy
5
+ * Released under the MIT License.
6
+ */
7
+
8
+ ;(function ( $, window, document, undefined ) {
9
+
10
+ var name = "easyTicker",
11
+ defaults = {
12
+ direction: 'up',
13
+ easing: 'swing',
14
+ speed: 'slow',
15
+ interval: 2000,
16
+ height: 'auto',
17
+ visible: 0,
18
+ mousePause: 1,
19
+ controls: {
20
+ up: '',
21
+ down: '',
22
+ toggle: '',
23
+ playText: 'Play',
24
+ stopText: 'Stop'
25
+ }
26
+ };
27
+
28
+ // Constructor
29
+ function EasyTicker( el, options ) {
30
+
31
+ var s = this;
32
+
33
+ s.opts = $.extend( {}, defaults, options );
34
+ s.elem = $(el);
35
+ s.targ = $(el).children(':first-child');
36
+ s.timer = 0;
37
+ s.mHover = 0;
38
+ s.winFocus = 1;
39
+
40
+ init();
41
+ start();
42
+
43
+ $([window, document]).off('focus.jqet').on('focus.jqet', function(){
44
+ s.winFocus = 1;
45
+ }).off('blur.jqet').on('blur.jqet', function(){
46
+ s.winFocus = 0;
47
+ });
48
+
49
+ if( s.opts.mousePause == 1 ){
50
+ s.elem.mouseenter(function(){
51
+ s.timerTemp = s.timer;
52
+ stop();
53
+ }).mouseleave(function(){
54
+ if( s.timerTemp !== 0 )
55
+ start();
56
+ });
57
+ }
58
+
59
+ $(s.opts.controls.up).on('click', function(e){
60
+ e.preventDefault();
61
+ moveDir('up');
62
+ });
63
+
64
+ $(s.opts.controls.down).on('click', function(e){
65
+ e.preventDefault();
66
+ moveDir('down');
67
+ });
68
+
69
+ $(s.opts.controls.toggle).on('click', function(e){
70
+ e.preventDefault();
71
+ if( s.timer == 0 ) start();
72
+ else stop();
73
+ });
74
+
75
+ function init(){
76
+
77
+ s.elem.children().css('margin', 0).children().css('margin', 0);
78
+
79
+ s.elem.css({
80
+ position : 'relative',
81
+ height: s.opts.height,
82
+ overflow : 'hidden'
83
+ });
84
+
85
+ s.targ.css({
86
+ 'position' : 'absolute',
87
+ 'margin' : 0
88
+ });
89
+
90
+ setInterval( function(){
91
+ adjHeight();
92
+ }, 100);
93
+
94
+ } // Init Method
95
+
96
+ function start(){
97
+ s.timer = setInterval(function(){
98
+ if( s.winFocus == 1 ){
99
+ move( s.opts.direction );
100
+ }
101
+ }, s.opts.interval);
102
+
103
+ $(s.opts.controls.toggle).addClass('et-run').html(s.opts.controls.stopText);
104
+
105
+ } // Start method
106
+
107
+
108
+ function stop(){
109
+ clearInterval( s.timer );
110
+ s.timer = 0;
111
+ $(s.opts.controls.toggle).removeClass('et-run').html(s.opts.controls.playText);
112
+ }// Stop
113
+
114
+
115
+ function move( dir ){
116
+ var sel, eq, appType;
117
+
118
+ if( !s.elem.is(':visible') ) return;
119
+
120
+ if( dir == 'up' ){
121
+ sel = ':first-child';
122
+ eq = '-=';
123
+ appType = 'appendTo';
124
+ }else{
125
+ sel = ':last-child';
126
+ eq = '+=';
127
+ appType = 'prependTo';
128
+ }
129
+
130
+ var selChild = s.targ.children(sel);
131
+ var height = selChild.outerHeight();
132
+
133
+ s.targ.stop(true, true).animate({
134
+ 'top': eq + height + "px"
135
+ }, s.opts.speed, s.opts.easing, function(){
136
+
137
+ selChild.hide()[appType]( s.targ ).fadeIn();
138
+ s.targ.css('top', 0);
139
+
140
+ adjHeight();
141
+
142
+ });
143
+ }// Move
144
+
145
+ function moveDir( dir ){
146
+ stop();
147
+ if( dir == 'up' ) move('up'); else move('down');
148
+ // start();
149
+ }
150
+
151
+ function fullHeight(){
152
+ var height = 0;
153
+ var tempDisp = s.elem.css('display'); // Get the current el display value
154
+
155
+ s.elem.css('display', 'block');
156
+
157
+ s.targ.children().each(function(){
158
+ height += $(this).outerHeight();
159
+ });
160
+
161
+ s.elem.css({
162
+ 'display' : tempDisp,
163
+ 'height' : height
164
+ });
165
+ }
166
+
167
+ function visHeight( anim ){
168
+ var wrapHeight = 0;
169
+ s.targ.children(':lt(' + s.opts.visible + ')').each(function(){
170
+ wrapHeight += $(this).outerHeight();
171
+ });
172
+
173
+ if( anim == 1 ){
174
+ s.elem.stop(true, true).animate({height: wrapHeight}, s.opts.speed);
175
+ }else{
176
+ s.elem.css( 'height', wrapHeight);
177
+ }
178
+ }
179
+
180
+ function adjHeight(){
181
+ if( s.opts.height == 'auto' && s.opts.visible != 0 ){
182
+ anim = arguments.callee.caller.name == 'init' ? 0 : 1;
183
+ visHeight( anim );
184
+ }else if( s.opts.height == 'auto' ){
185
+ fullHeight();
186
+ }
187
+ }
188
+
189
+ return {
190
+ up: function(){ moveDir('up'); },
191
+ down: function(){ moveDir('down'); },
192
+ start: start,
193
+ stop: stop,
194
+ options: s.opts
195
+ };
196
+
197
+ }
198
+
199
+ // Attach the object to the DOM
200
+ $.fn[name] = function ( options ) {
201
+ return this.each(function () {
202
+ if (!$.data(this, name)) {
203
+ $.data(this, name, new EasyTicker( this, options ));
204
+ }
205
+ });
206
+ };
207
+
208
+ })( jQuery, window, document );
elanzalite/assets/js/jquery.flexslider.js ADDED
@@ -0,0 +1,1191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery FlexSlider v2.5.0
3
+ * Copyright 2012 WooThemes
4
+ * Contributing Author: Tyler Smith
5
+ */
6
+ ;
7
+ (function ($) {
8
+
9
+ //FlexSlider: Object Instance
10
+ $.flexslider = function(el, options) {
11
+ var slider = $(el);
12
+
13
+ // making variables public
14
+ slider.vars = $.extend({}, $.flexslider.defaults, options);
15
+
16
+ var namespace = slider.vars.namespace,
17
+ msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture,
18
+ touch = (( "ontouchstart" in window ) || msGesture || window.DocumentTouch && document instanceof DocumentTouch) && slider.vars.touch,
19
+ // depricating this idea, as devices are being released with both of these events
20
+ //eventType = (touch) ? "touchend" : "click",
21
+ eventType = "click touchend MSPointerUp keyup",
22
+ watchedEvent = "",
23
+ watchedEventClearTimer,
24
+ vertical = slider.vars.direction === "vertical",
25
+ reverse = slider.vars.reverse,
26
+ carousel = (slider.vars.itemWidth > 0),
27
+ fade = slider.vars.animation === "fade",
28
+ asNav = slider.vars.asNavFor !== "",
29
+ methods = {},
30
+ focused = true;
31
+
32
+ // Store a reference to the slider object
33
+ $.data(el, "flexslider", slider);
34
+
35
+ // Private slider methods
36
+ methods = {
37
+ init: function() {
38
+ slider.animating = false;
39
+ // Get current slide and make sure it is a number
40
+ slider.currentSlide = parseInt( ( slider.vars.startAt ? slider.vars.startAt : 0), 10 );
41
+ if ( isNaN( slider.currentSlide ) ) { slider.currentSlide = 0; }
42
+ slider.animatingTo = slider.currentSlide;
43
+ slider.atEnd = (slider.currentSlide === 0 || slider.currentSlide === slider.last);
44
+ slider.containerSelector = slider.vars.selector.substr(0,slider.vars.selector.search(' '));
45
+ slider.slides = $(slider.vars.selector, slider);
46
+ slider.container = $(slider.containerSelector, slider);
47
+ slider.count = slider.slides.length;
48
+ // SYNC:
49
+ slider.syncExists = $(slider.vars.sync).length > 0;
50
+ // SLIDE:
51
+ if (slider.vars.animation === "slide") { slider.vars.animation = "swing"; }
52
+ slider.prop = (vertical) ? "top" : "marginLeft";
53
+ slider.args = {};
54
+ // SLIDESHOW:
55
+ slider.manualPause = false;
56
+ slider.stopped = false;
57
+ //PAUSE WHEN INVISIBLE
58
+ slider.started = false;
59
+ slider.startTimeout = null;
60
+ // TOUCH/USECSS:
61
+ slider.transitions = !slider.vars.video && !fade && slider.vars.useCSS && (function() {
62
+ var obj = document.createElement('div'),
63
+ props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective'];
64
+ for (var i in props) {
65
+ if ( obj.style[ props[i] ] !== undefined ) {
66
+ slider.pfx = props[i].replace('Perspective','').toLowerCase();
67
+ slider.prop = "-" + slider.pfx + "-transform";
68
+ return true;
69
+ }
70
+ }
71
+ return false;
72
+ }());
73
+ slider.ensureAnimationEnd = '';
74
+ // CONTROLSCONTAINER:
75
+ if (slider.vars.controlsContainer !== "") slider.controlsContainer = $(slider.vars.controlsContainer).length > 0 && $(slider.vars.controlsContainer);
76
+ // MANUAL:
77
+ if (slider.vars.manualControls !== "") slider.manualControls = $(slider.vars.manualControls).length > 0 && $(slider.vars.manualControls);
78
+
79
+ // CUSTOM DIRECTION NAV:
80
+ if (slider.vars.customDirectionNav !== "") slider.customDirectionNav = $(slider.vars.customDirectionNav).length === 2 && $(slider.vars.customDirectionNav);
81
+
82
+ // RANDOMIZE:
83
+ if (slider.vars.randomize) {
84
+ slider.slides.sort(function() { return (Math.round(Math.random())-0.5); });
85
+ slider.container.empty().append(slider.slides);
86
+ }
87
+
88
+ slider.doMath();
89
+
90
+ // INIT
91
+ slider.setup("init");
92
+
93
+ // CONTROLNAV:
94
+ if (slider.vars.controlNav) { methods.controlNav.setup(); }
95
+
96
+ // DIRECTIONNAV:
97
+ if (slider.vars.directionNav) { methods.directionNav.setup(); }
98
+
99
+ // KEYBOARD:
100
+ if (slider.vars.keyboard && ($(slider.containerSelector).length === 1 || slider.vars.multipleKeyboard)) {
101
+ $(document).bind('keyup', function(event) {
102
+ var keycode = event.keyCode;
103
+ if (!slider.animating && (keycode === 39 || keycode === 37)) {
104
+ var target = (keycode === 39) ? slider.getTarget('next') :
105
+ (keycode === 37) ? slider.getTarget('prev') : false;
106
+ slider.flexAnimate(target, slider.vars.pauseOnAction);
107
+ }
108
+ });
109
+ }
110
+ // MOUSEWHEEL:
111
+ if (slider.vars.mousewheel) {
112
+ slider.bind('mousewheel', function(event, delta, deltaX, deltaY) {
113
+ event.preventDefault();
114
+ var target = (delta < 0) ? slider.getTarget('next') : slider.getTarget('prev');
115
+ slider.flexAnimate(target, slider.vars.pauseOnAction);
116
+ });
117
+ }
118
+
119
+ // PAUSEPLAY
120
+ if (slider.vars.pausePlay) { methods.pausePlay.setup(); }
121
+
122
+ //PAUSE WHEN INVISIBLE
123
+ if (slider.vars.slideshow && slider.vars.pauseInvisible) { methods.pauseInvisible.init(); }
124
+
125
+ // SLIDSESHOW
126
+ if (slider.vars.slideshow) {
127
+ if (slider.vars.pauseOnHover) {
128
+ slider.hover(function() {
129
+ if (!slider.manualPlay && !slider.manualPause) { slider.pause(); }
130
+ }, function() {
131
+ if (!slider.manualPause && !slider.manualPlay && !slider.stopped) { slider.play(); }
132
+ });
133
+ }
134
+ // initialize animation
135
+ //If we're visible, or we don't use PageVisibility API
136
+ if(!slider.vars.pauseInvisible || !methods.pauseInvisible.isHidden()) {
137
+ (slider.vars.initDelay > 0) ? slider.startTimeout = setTimeout(slider.play, slider.vars.initDelay) : slider.play();
138
+ }
139
+ }
140
+
141
+ // ASNAV:
142
+ if (asNav) { methods.asNav.setup(); }
143
+
144
+ // TOUCH
145
+ if (touch && slider.vars.touch) { methods.touch(); }
146
+
147
+ // FADE&&SMOOTHHEIGHT || SLIDE:
148
+ if (!fade || (fade && slider.vars.smoothHeight)) { $(window).bind("resize orientationchange focus", methods.resize); }
149
+
150
+ slider.find("img").attr("draggable", "false");
151
+
152
+ // API: start() Callback
153
+ setTimeout(function(){
154
+ slider.vars.start(slider);
155
+ }, 200);
156
+ },
157
+ asNav: {
158
+ setup: function() {
159
+ slider.asNav = true;
160
+ slider.animatingTo = Math.floor(slider.currentSlide/slider.move);
161
+ slider.currentItem = slider.currentSlide;
162
+ slider.slides.removeClass(namespace + "active-slide").eq(slider.currentItem).addClass(namespace + "active-slide");
163
+ if(!msGesture){
164
+ slider.slides.on(eventType, function(e){
165
+ e.preventDefault();
166
+ var $slide = $(this),
167
+ target = $slide.index();
168
+ var posFromLeft = $slide.offset().left - $(slider).scrollLeft(); // Find position of slide relative to left of slider container
169
+ if( posFromLeft <= 0 && $slide.hasClass( namespace + 'active-slide' ) ) {
170
+ slider.flexAnimate(slider.getTarget("prev"), true);
171
+ } else if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass(namespace + "active-slide")) {
172
+ slider.direction = (slider.currentItem < target) ? "next" : "prev";
173
+ slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true);
174
+ }
175
+ });
176
+ }else{
177
+ el._slider = slider;
178
+ slider.slides.each(function (){
179
+ var that = this;
180
+ that._gesture = new MSGesture();
181
+ that._gesture.target = that;
182
+ that.addEventListener("MSPointerDown", function (e){
183
+ e.preventDefault();
184
+ if(e.currentTarget._gesture) {
185
+ e.currentTarget._gesture.addPointer(e.pointerId);
186
+ }
187
+ }, false);
188
+ that.addEventListener("MSGestureTap", function (e){
189
+ e.preventDefault();
190
+ var $slide = $(this),
191
+ target = $slide.index();
192
+ if (!$(slider.vars.asNavFor).data('flexslider').animating && !$slide.hasClass('active')) {
193
+ slider.direction = (slider.currentItem < target) ? "next" : "prev";
194
+ slider.flexAnimate(target, slider.vars.pauseOnAction, false, true, true);
195
+ }
196
+ });
197
+ });
198
+ }
199
+ }
200
+ },
201
+ controlNav: {
202
+ setup: function() {
203
+ if (!slider.manualControls) {
204
+ methods.controlNav.setupPaging();
205
+ } else { // MANUALCONTROLS:
206
+ methods.controlNav.setupManual();
207
+ }
208
+ },
209
+ setupPaging: function() {
210
+ var type = (slider.vars.controlNav === "thumbnails") ? 'control-thumbs' : 'control-paging',
211
+ j = 1,
212
+ item,
213
+ slide;
214
+
215
+ slider.controlNavScaffold = $('<ol class="'+ namespace + 'control-nav ' + namespace + type + '"></ol>');
216
+
217
+ if (slider.pagingCount > 1) {
218
+ for (var i = 0; i < slider.pagingCount; i++) {
219
+ slide = slider.slides.eq(i);
220
+ item = (slider.vars.controlNav === "thumbnails") ? '<img src="' + slide.attr( 'data-thumb' ) + '"/>' : '<a>' + j + '</a>';
221
+ if ( 'thumbnails' === slider.vars.controlNav && true === slider.vars.thumbCaptions ) {
222
+ var captn = slide.attr( 'data-thumbcaption' );
223
+ if ( '' !== captn && undefined !== captn ) { item += '<span class="' + namespace + 'caption">' + captn + '</span>'; }
224
+ }
225
+ slider.controlNavScaffold.append('<li>' + item + '</li>');
226
+ j++;
227
+ }
228
+ }
229
+
230
+ // CONTROLSCONTAINER:
231
+ (slider.controlsContainer) ? $(slider.controlsContainer).append(slider.controlNavScaffold) : slider.append(slider.controlNavScaffold);
232
+ methods.controlNav.set();
233
+
234
+ methods.controlNav.active();
235
+
236
+ slider.controlNavScaffold.delegate('a, img', eventType, function(event) {
237
+ event.preventDefault();
238
+
239
+ if (watchedEvent === "" || watchedEvent === event.type) {
240
+ var $this = $(this),
241
+ target = slider.controlNav.index($this);
242
+
243
+ if (!$this.hasClass(namespace + 'active')) {
244
+ slider.direction = (target > slider.currentSlide) ? "next" : "prev";
245
+ slider.flexAnimate(target, slider.vars.pauseOnAction);
246
+ }
247
+ }
248
+
249
+ // setup flags to prevent event duplication
250
+ if (watchedEvent === "") {
251
+ watchedEvent = event.type;
252
+ }
253
+ methods.setToClearWatchedEvent();
254
+
255
+ });
256
+ },
257
+ setupManual: function() {
258
+ slider.controlNav = slider.manualControls;
259
+ methods.controlNav.active();
260
+
261
+ slider.controlNav.bind(eventType, function(event) {
262
+ event.preventDefault();
263
+
264
+ if (watchedEvent === "" || watchedEvent === event.type) {
265
+ var $this = $(this),
266
+ target = slider.controlNav.index($this);
267
+
268
+ if (!$this.hasClass(namespace + 'active')) {
269
+ (target > slider.currentSlide) ? slider.direction = "next" : slider.direction = "prev";
270
+ slider.flexAnimate(target, slider.vars.pauseOnAction);
271
+ }
272
+ }
273
+
274
+ // setup flags to prevent event duplication
275
+ if (watchedEvent === "") {
276
+ watchedEvent = event.type;
277
+ }
278
+ methods.setToClearWatchedEvent();
279
+ });
280
+ },
281
+ set: function() {
282
+ var selector = (slider.vars.controlNav === "thumbnails") ? 'img' : 'a';
283
+ slider.controlNav = $('.' + namespace + 'control-nav li ' + selector, (slider.controlsContainer) ? slider.controlsContainer : slider);
284
+ },
285
+ active: function() {
286
+ slider.controlNav.removeClass(namespace + "active").eq(slider.animatingTo).addClass(namespace + "active");
287
+ },
288
+ update: function(action, pos) {
289
+ if (slider.pagingCount > 1 && action === "add") {
290
+ slider.controlNavScaffold.append($('<li><a>' + slider.count + '</a></li>'));
291
+ } else if (slider.pagingCount === 1) {
292
+ slider.controlNavScaffold.find('li').remove();
293
+ } else {
294
+ slider.controlNav.eq(pos).closest('li').remove();
295
+ }
296
+ methods.controlNav.set();
297
+ (slider.pagingCount > 1 && slider.pagingCount !== slider.controlNav.length) ? slider.update(pos, action) : methods.controlNav.active();
298
+ }
299
+ },
300
+ directionNav: {
301
+ setup: function() {
302
+ var directionNavScaffold = $('<ul class="' + namespace + 'direction-nav"><li class="' + namespace + 'nav-prev"><a class="' + namespace + 'prev" href="#">' + slider.vars.prevText + '</a></li><li class="' + namespace + 'nav-next"><a class="' + namespace + 'next" href="#">' + slider.vars.nextText + '</a></li></ul>');
303
+
304
+ // CUSTOM DIRECTION NAV:
305
+ if (slider.customDirectionNav) {
306
+ slider.directionNav = slider.customDirectionNav;
307
+ // CONTROLSCONTAINER:
308
+ } else if (slider.controlsContainer) {
309
+ $(slider.controlsContainer).append(directionNavScaffold);
310
+ slider.directionNav = $('.' + namespace + 'direction-nav li a', slider.controlsContainer);
311
+ } else {
312
+ slider.append(directionNavScaffold);
313
+ slider.directionNav = $('.' + namespace + 'direction-nav li a', slider);
314
+ }
315
+
316
+ methods.directionNav.update();
317
+
318
+ slider.directionNav.bind(eventType, function(event) {
319
+ event.preventDefault();
320
+ var target;
321
+
322
+ if (watchedEvent === "" || watchedEvent === event.type) {
323
+ target = ($(this).hasClass(namespace + 'next')) ? slider.getTarget('next') : slider.getTarget('prev');
324
+ slider.flexAnimate(target, slider.vars.pauseOnAction);
325
+ }
326
+
327
+ // setup flags to prevent event duplication
328
+ if (watchedEvent === "") {
329
+ watchedEvent = event.type;
330
+ }
331
+ methods.setToClearWatchedEvent();
332
+ });
333
+ },
334
+ update: function() {
335
+ var disabledClass = namespace + 'disabled';
336
+ if (slider.pagingCount === 1) {
337
+ slider.directionNav.addClass(disabledClass).attr('tabindex', '-1');
338
+ } else if (!slider.vars.animationLoop) {
339
+ if (slider.animatingTo === 0) {
340
+ slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "prev").addClass(disabledClass).attr('tabindex', '-1');
341
+ } else if (slider.animatingTo === slider.last) {
342
+ slider.directionNav.removeClass(disabledClass).filter('.' + namespace + "next").addClass(disabledClass).attr('tabindex', '-1');
343
+ } else {
344
+ slider.directionNav.removeClass(disabledClass).removeAttr('tabindex');
345
+ }
346
+ } else {
347
+ slider.directionNav.removeClass(disabledClass).removeAttr('tabindex');
348
+ }
349
+ }
350
+ },
351
+ pausePlay: {
352
+ setup: function() {
353
+ var pausePlayScaffold = $('<div class="' + namespace + 'pauseplay"><a></a></div>');
354
+
355
+ // CONTROLSCONTAINER:
356
+ if (slider.controlsContainer) {
357
+ slider.controlsContainer.append(pausePlayScaffold);
358
+ slider.pausePlay = $('.' + namespace + 'pauseplay a', slider.controlsContainer);
359
+ } else {
360
+ slider.append(pausePlayScaffold);
361
+ slider.pausePlay = $('.' + namespace + 'pauseplay a', slider);
362
+ }
363
+
364
+ methods.pausePlay.update((slider.vars.slideshow) ? namespace + 'pause' : namespace + 'play');
365
+
366
+ slider.pausePlay.bind(eventType, function(event) {
367
+ event.preventDefault();
368
+
369
+ if (watchedEvent === "" || watchedEvent === event.type) {
370
+ if ($(this).hasClass(namespace + 'pause')) {
371
+ slider.manualPause = true;
372
+ slider.manualPlay = false;
373
+ slider.pause();
374
+ } else {
375
+ slider.manualPause = false;
376
+ slider.manualPlay = true;
377
+ slider.play();
378
+ }
379
+ }
380
+
381
+ // setup flags to prevent event duplication
382
+ if (watchedEvent === "") {
383
+ watchedEvent = event.type;
384
+ }
385
+ methods.setToClearWatchedEvent();
386
+ });
387
+ },
388
+ update: function(state) {
389
+ (state === "play") ? slider.pausePlay.removeClass(namespace + 'pause').addClass(namespace + 'play').html(slider.vars.playText) : slider.pausePlay.removeClass(namespace + 'play').addClass(namespace + 'pause').html(slider.vars.pauseText);
390
+ }
391
+ },
392
+ touch: function() {
393
+ var startX,
394
+ startY,
395
+ offset,
396
+ cwidth,
397
+ dx,
398
+ startT,
399
+ onTouchStart,
400
+ onTouchMove,
401
+ onTouchEnd,
402
+ scrolling = false,
403
+ localX = 0,
404
+ localY = 0,
405
+ accDx = 0;
406
+
407
+ if(!msGesture){
408
+ onTouchStart = function(e) {
409
+ if (slider.animating) {
410
+ e.preventDefault();
411
+ } else if ( ( window.navigator.msPointerEnabled ) || e.touches.length === 1 ) {
412
+ slider.pause();
413
+ // CAROUSEL:
414
+ cwidth = (vertical) ? slider.h : slider. w;
415
+ startT = Number(new Date());
416
+ // CAROUSEL:
417
+
418
+ // Local vars for X and Y points.
419
+ localX = e.touches[0].pageX;
420
+ localY = e.touches[0].pageY;
421
+
422
+ offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 :
423
+ (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) :
424
+ (carousel && slider.currentSlide === slider.last) ? slider.limit :
425
+ (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide :
426
+ (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth;
427
+ startX = (vertical) ? localY : localX;
428
+ startY = (vertical) ? localX : localY;
429
+
430
+ el.addEventListener('touchmove', onTouchMove, false);
431
+ el.addEventListener('touchend', onTouchEnd, false);
432
+ }
433
+ };
434
+
435
+ onTouchMove = function(e) {
436
+ // Local vars for X and Y points.
437
+
438
+ localX = e.touches[0].pageX;
439
+ localY = e.touches[0].pageY;
440
+
441
+ dx = (vertical) ? startX - localY : startX - localX;
442
+ scrolling = (vertical) ? (Math.abs(dx) < Math.abs(localX - startY)) : (Math.abs(dx) < Math.abs(localY - startY));
443
+
444
+ var fxms = 500;
445
+
446
+ if ( ! scrolling || Number( new Date() ) - startT > fxms ) {
447
+ e.preventDefault();
448
+ if (!fade && slider.transitions) {
449
+ if (!slider.vars.animationLoop) {
450
+ dx = dx/((slider.currentSlide === 0 && dx < 0 || slider.currentSlide === slider.last && dx > 0) ? (Math.abs(dx)/cwidth+2) : 1);
451
+ }
452
+ slider.setProps(offset + dx, "setTouch");
453
+ }
454
+ }
455
+ };
456
+
457
+ onTouchEnd = function(e) {
458
+ // finish the touch by undoing the touch session
459
+ el.removeEventListener('touchmove', onTouchMove, false);
460
+
461
+ if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) {
462
+ var updateDx = (reverse) ? -dx : dx,
463
+ target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev');
464
+
465
+ if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) {
466
+ slider.flexAnimate(target, slider.vars.pauseOnAction);
467
+ } else {
468
+ if (!fade) { slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); }
469
+ }
470
+ }
471
+ el.removeEventListener('touchend', onTouchEnd, false);
472
+
473
+ startX = null;
474
+ startY = null;
475
+ dx = null;
476
+ offset = null;
477
+ };
478
+
479
+ el.addEventListener('touchstart', onTouchStart, false);
480
+ }else{
481
+ el.style.msTouchAction = "none";
482
+ el._gesture = new MSGesture();
483
+ el._gesture.target = el;
484
+ el.addEventListener("MSPointerDown", onMSPointerDown, false);
485
+ el._slider = slider;
486
+ el.addEventListener("MSGestureChange", onMSGestureChange, false);
487
+ el.addEventListener("MSGestureEnd", onMSGestureEnd, false);
488
+
489
+ function onMSPointerDown(e){
490
+ e.stopPropagation();
491
+ if (slider.animating) {
492
+ e.preventDefault();
493
+ }else{
494
+ slider.pause();
495
+ el._gesture.addPointer(e.pointerId);
496
+ accDx = 0;
497
+ cwidth = (vertical) ? slider.h : slider. w;
498
+ startT = Number(new Date());
499
+ // CAROUSEL:
500
+
501
+ offset = (carousel && reverse && slider.animatingTo === slider.last) ? 0 :
502
+ (carousel && reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) :
503
+ (carousel && slider.currentSlide === slider.last) ? slider.limit :
504
+ (carousel) ? ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.currentSlide :
505
+ (reverse) ? (slider.last - slider.currentSlide + slider.cloneOffset) * cwidth : (slider.currentSlide + slider.cloneOffset) * cwidth;
506
+ }
507
+ }
508
+
509
+ function onMSGestureChange(e) {
510
+ e.stopPropagation();
511
+ var slider = e.target._slider;
512
+ if(!slider){
513
+ return;
514
+ }
515
+ var transX = -e.translationX,
516
+ transY = -e.translationY;
517
+
518
+ //Accumulate translations.
519
+ accDx = accDx + ((vertical) ? transY : transX);
520
+ dx = accDx;
521
+ scrolling = (vertical) ? (Math.abs(accDx) < Math.abs(-transX)) : (Math.abs(accDx) < Math.abs(-transY));
522
+
523
+ if(e.detail === e.MSGESTURE_FLAG_INERTIA){
524
+ setImmediate(function (){
525
+ el._gesture.stop();
526
+ });
527
+
528
+ return;
529
+ }
530
+
531
+ if (!scrolling || Number(new Date()) - startT > 500) {
532
+ e.preventDefault();
533
+ if (!fade && slider.transitions) {
534
+ if (!slider.vars.animationLoop) {
535
+ dx = accDx / ((slider.currentSlide === 0 && accDx < 0 || slider.currentSlide === slider.last && accDx > 0) ? (Math.abs(accDx) / cwidth + 2) : 1);
536
+ }
537
+ slider.setProps(offset + dx, "setTouch");
538
+ }
539
+ }
540
+ }
541
+
542
+ function onMSGestureEnd(e) {
543
+ e.stopPropagation();
544
+ var slider = e.target._slider;
545
+ if(!slider){
546
+ return;
547
+ }
548
+ if (slider.animatingTo === slider.currentSlide && !scrolling && !(dx === null)) {
549
+ var updateDx = (reverse) ? -dx : dx,
550
+ target = (updateDx > 0) ? slider.getTarget('next') : slider.getTarget('prev');
551
+
552
+ if (slider.canAdvance(target) && (Number(new Date()) - startT < 550 && Math.abs(updateDx) > 50 || Math.abs(updateDx) > cwidth/2)) {
553
+ slider.flexAnimate(target, slider.vars.pauseOnAction);
554
+ } else {
555
+ if (!fade) { slider.flexAnimate(slider.currentSlide, slider.vars.pauseOnAction, true); }
556
+ }
557
+ }
558
+
559
+ startX = null;
560
+ startY = null;
561
+ dx = null;
562
+ offset = null;
563
+ accDx = 0;
564
+ }
565
+ }
566
+ },
567
+ resize: function() {
568
+ if (!slider.animating && slider.is(':visible')) {
569
+ if (!carousel) { slider.doMath(); }
570
+
571
+ if (fade) {
572
+ // SMOOTH HEIGHT:
573
+ methods.smoothHeight();
574
+ } else if (carousel) { //CAROUSEL:
575
+ slider.slides.width(slider.computedW);
576
+ slider.update(slider.pagingCount);
577
+ slider.setProps();
578
+ }
579
+ else if (vertical) { //VERTICAL:
580
+ slider.viewport.height(slider.h);
581
+ slider.setProps(slider.h, "setTotal");
582
+ } else {
583
+ // SMOOTH HEIGHT:
584
+ if (slider.vars.smoothHeight) { methods.smoothHeight(); }
585
+ slider.newSlides.width(slider.computedW);
586
+ slider.setProps(slider.computedW, "setTotal");
587
+ }
588
+ }
589
+ },
590
+ smoothHeight: function(dur) {
591
+ if (!vertical || fade) {
592
+ var $obj = (fade) ? slider : slider.viewport;
593
+ (dur) ? $obj.animate({"height": slider.slides.eq(slider.animatingTo).height()}, dur) : $obj.height(slider.slides.eq(slider.animatingTo).height());
594
+ }
595
+ },
596
+ sync: function(action) {
597
+ var $obj = $(slider.vars.sync).data("flexslider"),
598
+ target = slider.animatingTo;
599
+
600
+ switch (action) {
601
+ case "animate": $obj.flexAnimate(target, slider.vars.pauseOnAction, false, true); break;
602
+ case "play": if (!$obj.playing && !$obj.asNav) { $obj.play(); } break;
603
+ case "pause": $obj.pause(); break;
604
+ }
605
+ },
606
+ uniqueID: function($clone) {
607
+ // Append _clone to current level and children elements with id attributes
608
+ $clone.filter( '[id]' ).add($clone.find( '[id]' )).each(function() {
609
+ var $this = $(this);
610
+ $this.attr( 'id', $this.attr( 'id' ) + '_clone' );
611
+ });
612
+ return $clone;
613
+ },
614
+ pauseInvisible: {
615
+ visProp: null,
616
+ init: function() {
617
+ var visProp = methods.pauseInvisible.getHiddenProp();
618
+ if (visProp) {
619
+ var evtname = visProp.replace(/[H|h]idden/,'') + 'visibilitychange';
620
+ document.addEventListener(evtname, function() {
621
+ if (methods.pauseInvisible.isHidden()) {
622
+ if(slider.startTimeout) {
623
+ clearTimeout(slider.startTimeout); //If clock is ticking, stop timer and prevent from starting while invisible
624
+ } else {
625
+ slider.pause(); //Or just pause
626
+ }
627
+ }
628
+ else {
629
+ if(slider.started) {
630
+ slider.play(); //Initiated before, just play
631
+ } else {
632
+ if (slider.vars.initDelay > 0) {
633
+ setTimeout(slider.play, slider.vars.initDelay);
634
+ } else {
635
+ slider.play(); //Didn't init before: simply init or wait for it
636
+ }
637
+ }
638
+ }
639
+ });
640
+ }
641
+ },
642
+ isHidden: function() {
643
+ var prop = methods.pauseInvisible.getHiddenProp();
644
+ if (!prop) {
645
+ return false;
646
+ }
647
+ return document[prop];
648
+ },
649
+ getHiddenProp: function() {
650
+ var prefixes = ['webkit','moz','ms','o'];
651
+ // if 'hidden' is natively supported just return it
652
+ if ('hidden' in document) {
653
+ return 'hidden';
654
+ }
655
+ // otherwise loop over all the known prefixes until we find one
656
+ for ( var i = 0; i < prefixes.length; i++ ) {
657
+ if ((prefixes[i] + 'Hidden') in document) {
658
+ return prefixes[i] + 'Hidden';
659
+ }
660
+ }
661
+ // otherwise it's not supported
662
+ return null;
663
+ }
664
+ },
665
+ setToClearWatchedEvent: function() {
666
+ clearTimeout(watchedEventClearTimer);
667
+ watchedEventClearTimer = setTimeout(function() {
668
+ watchedEvent = "";
669
+ }, 3000);
670
+ }
671
+ };
672
+
673
+ // public methods
674
+ slider.flexAnimate = function(target, pause, override, withSync, fromNav) {
675
+ if (!slider.vars.animationLoop && target !== slider.currentSlide) {
676
+ slider.direction = (target > slider.currentSlide) ? "next" : "prev";
677
+ }
678
+
679
+ if (asNav && slider.pagingCount === 1) slider.direction = (slider.currentItem < target) ? "next" : "prev";
680
+
681
+ if (!slider.animating && (slider.canAdvance(target, fromNav) || override) && slider.is(":visible")) {
682
+ if (asNav && withSync) {
683
+ var master = $(slider.vars.asNavFor).data('flexslider');
684
+ slider.atEnd = target === 0 || target === slider.count - 1;
685
+ master.flexAnimate(target, true, false, true, fromNav);
686
+ slider.direction = (slider.currentItem < target) ? "next" : "prev";
687
+ master.direction = slider.direction;
688
+
689
+ if (Math.ceil((target + 1)/slider.visible) - 1 !== slider.currentSlide && target !== 0) {
690
+ slider.currentItem = target;
691
+ slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide");
692
+ target = Math.floor(target/slider.visible);
693
+ } else {
694
+ slider.currentItem = target;
695
+ slider.slides.removeClass(namespace + "active-slide").eq(target).addClass(namespace + "active-slide");
696
+ return false;
697
+ }
698
+ }
699
+
700
+ slider.animating = true;
701
+ slider.animatingTo = target;
702
+
703
+ // SLIDESHOW:
704
+ if (pause) { slider.pause(); }
705
+
706
+ // API: before() animation Callback
707
+ slider.vars.before(slider);
708
+
709
+ // SYNC:
710
+ if (slider.syncExists && !fromNav) { methods.sync("animate"); }
711
+
712
+ // CONTROLNAV
713
+ if (slider.vars.controlNav) { methods.controlNav.active(); }
714
+
715
+ // !CAROUSEL:
716
+ // CANDIDATE: slide active class (for add/remove slide)
717
+ if (!carousel) { slider.slides.removeClass(namespace + 'active-slide').eq(target).addClass(namespace + 'active-slide'); }
718
+
719
+ // INFINITE LOOP:
720
+ // CANDIDATE: atEnd
721
+ slider.atEnd = target === 0 || target === slider.last;
722
+
723
+ // DIRECTIONNAV:
724
+ if (slider.vars.directionNav) { methods.directionNav.update(); }
725
+
726
+ if (target === slider.last) {
727
+ // API: end() of cycle Callback
728
+ slider.vars.end(slider);
729
+ // SLIDESHOW && !INFINITE LOOP:
730
+ if (!slider.vars.animationLoop) { slider.pause(); }
731
+ }
732
+
733
+ // SLIDE:
734
+ if (!fade) {
735
+ var dimension = (vertical) ? slider.slides.filter(':first').height() : slider.computedW,
736
+ margin, slideString, calcNext;
737
+
738
+ // INFINITE LOOP / REVERSE:
739
+ if (carousel) {
740
+ //margin = (slider.vars.itemWidth > slider.w) ? slider.vars.itemMargin * 2 : slider.vars.itemMargin;
741
+ margin = slider.vars.itemMargin;
742
+ calcNext = ((slider.itemW + margin) * slider.move) * slider.animatingTo;
743
+ slideString = (calcNext > slider.limit && slider.visible !== 1) ? slider.limit : calcNext;
744
+ } else if (slider.currentSlide === 0 && target === slider.count - 1 && slider.vars.animationLoop && slider.direction !== "next") {
745
+ slideString = (reverse) ? (slider.count + slider.cloneOffset) * dimension : 0;
746
+ } else if (slider.currentSlide === slider.last && target === 0 && slider.vars.animationLoop && slider.direction !== "prev") {
747
+ slideString = (reverse) ? 0 : (slider.count + 1) * dimension;
748
+ } else {
749
+ slideString = (reverse) ? ((slider.count - 1) - target + slider.cloneOffset) * dimension : (target + slider.cloneOffset) * dimension;
750
+ }
751
+ slider.setProps(slideString, "", slider.vars.animationSpeed);
752
+ if (slider.transitions) {
753
+ if (!slider.vars.animationLoop || !slider.atEnd) {
754
+ slider.animating = false;
755
+ slider.currentSlide = slider.animatingTo;
756
+ }
757
+
758
+ // Unbind previous transitionEnd events and re-bind new transitionEnd event
759
+ slider.container.unbind("webkitTransitionEnd transitionend");
760
+ slider.container.bind("webkitTransitionEnd transitionend", function() {
761
+ clearTimeout(slider.ensureAnimationEnd);
762
+ slider.wrapup(dimension);
763
+ });
764
+
765
+ // Insurance for the ever-so-fickle transitionEnd event
766
+ clearTimeout(slider.ensureAnimationEnd);
767
+ slider.ensureAnimationEnd = setTimeout(function() {
768
+ slider.wrapup(dimension);
769
+ }, slider.vars.animationSpeed + 100);
770
+
771
+ } else {
772
+ slider.container.animate(slider.args, slider.vars.animationSpeed, slider.vars.easing, function(){
773
+ slider.wrapup(dimension);
774
+ });
775
+ }
776
+ } else { // FADE:
777
+ if (!touch) {
778
+ //slider.slides.eq(slider.currentSlide).fadeOut(slider.vars.animationSpeed, slider.vars.easing);
779
+ //slider.slides.eq(target).fadeIn(slider.vars.animationSpeed, slider.vars.easing, slider.wrapup);
780
+
781
+ slider.slides.eq(slider.currentSlide).css({"zIndex": 1}).animate({"opacity": 0}, slider.vars.animationSpeed, slider.vars.easing);
782
+ slider.slides.eq(target).css({"zIndex": 2}).animate({"opacity": 1}, slider.vars.animationSpeed, slider.vars.easing, slider.wrapup);
783
+
784
+ } else {
785
+ slider.slides.eq(slider.currentSlide).css({ "opacity": 0, "zIndex": 1 });
786
+ slider.slides.eq(target).css({ "opacity": 1, "zIndex": 2 });
787
+ slider.wrapup(dimension);
788
+ }
789
+ }
790
+ // SMOOTH HEIGHT:
791
+ if (slider.vars.smoothHeight) { methods.smoothHeight(slider.vars.animationSpeed); }
792
+ }
793
+ };
794
+ slider.wrapup = function(dimension) {
795
+ // SLIDE:
796
+ if (!fade && !carousel) {
797
+ if (slider.currentSlide === 0 && slider.animatingTo === slider.last && slider.vars.animationLoop) {
798
+ slider.setProps(dimension, "jumpEnd");
799
+ } else if (slider.currentSlide === slider.last && slider.animatingTo === 0 && slider.vars.animationLoop) {
800
+ slider.setProps(dimension, "jumpStart");
801
+ }
802
+ }
803
+ slider.animating = false;
804
+ slider.currentSlide = slider.animatingTo;
805
+ // API: after() animation Callback
806
+ slider.vars.after(slider);
807
+ };
808
+
809
+ // SLIDESHOW:
810
+ slider.animateSlides = function() {
811
+ if (!slider.animating && focused ) { slider.flexAnimate(slider.getTarget("next")); }
812
+ };
813
+ // SLIDESHOW:
814
+ slider.pause = function() {
815
+ clearInterval(slider.animatedSlides);
816
+ slider.animatedSlides = null;
817
+ slider.playing = false;
818
+ // PAUSEPLAY:
819
+ if (slider.vars.pausePlay) { methods.pausePlay.update("play"); }
820
+ // SYNC:
821
+ if (slider.syncExists) { methods.sync("pause"); }
822
+ };
823
+ // SLIDESHOW:
824
+ slider.play = function() {
825
+ if (slider.playing) { clearInterval(slider.animatedSlides); }
826
+ slider.animatedSlides = slider.animatedSlides || setInterval(slider.animateSlides, slider.vars.slideshowSpeed);
827
+ slider.started = slider.playing = true;
828
+ // PAUSEPLAY:
829
+ if (slider.vars.pausePlay) { methods.pausePlay.update("pause"); }
830
+ // SYNC:
831
+ if (slider.syncExists) { methods.sync("play"); }
832
+ };
833
+ // STOP:
834
+ slider.stop = function () {
835
+ slider.pause();
836
+ slider.stopped = true;
837
+ };
838
+ slider.canAdvance = function(target, fromNav) {
839
+ // ASNAV:
840
+ var last = (asNav) ? slider.pagingCount - 1 : slider.last;
841
+ return (fromNav) ? true :
842
+ (asNav && slider.currentItem === slider.count - 1 && target === 0 && slider.direction === "prev") ? true :
843
+ (asNav && slider.currentItem === 0 && target === slider.pagingCount - 1 && slider.direction !== "next") ? false :
844
+ (target === slider.currentSlide && !asNav) ? false :
845
+ (slider.vars.animationLoop) ? true :
846
+ (slider.atEnd && slider.currentSlide === 0 && target === last && slider.direction !== "next") ? false :
847
+ (slider.atEnd && slider.currentSlide === last && target === 0 && slider.direction === "next") ? false :
848
+ true;
849
+ };
850
+ slider.getTarget = function(dir) {
851
+ slider.direction = dir;
852
+ if (dir === "next") {
853
+ return (slider.currentSlide === slider.last) ? 0 : slider.currentSlide + 1;
854
+ } else {
855
+ return (slider.currentSlide === 0) ? slider.last : slider.currentSlide - 1;
856
+ }
857
+ };
858
+
859
+ // SLIDE:
860
+ slider.setProps = function(pos, special, dur) {
861
+ var target = (function() {
862
+ var posCheck = (pos) ? pos : ((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo,
863
+ posCalc = (function() {
864
+ if (carousel) {
865
+ return (special === "setTouch") ? pos :
866
+ (reverse && slider.animatingTo === slider.last) ? 0 :
867
+ (reverse) ? slider.limit - (((slider.itemW + slider.vars.itemMargin) * slider.move) * slider.animatingTo) :
868
+ (slider.animatingTo === slider.last) ? slider.limit : posCheck;
869
+ } else {
870
+ switch (special) {
871
+ case "setTotal": return (reverse) ? ((slider.count - 1) - slider.currentSlide + slider.cloneOffset) * pos : (slider.currentSlide + slider.cloneOffset) * pos;
872
+ case "setTouch": return (reverse) ? pos : pos;
873
+ case "jumpEnd": return (reverse) ? pos : slider.count * pos;
874
+ case "jumpStart": return (reverse) ? slider.count * pos : pos;
875
+ default: return pos;
876
+ }
877
+ }
878
+ }());
879
+
880
+ return (posCalc * -1) + "px";
881
+ }());
882
+
883
+ if (slider.transitions) {
884
+ target = (vertical) ? "translate3d(0," + target + ",0)" : "translate3d(" + target + ",0,0)";
885
+ dur = (dur !== undefined) ? (dur/1000) + "s" : "0s";
886
+ slider.container.css("-" + slider.pfx + "-transition-duration", dur);
887
+ slider.container.css("transition-duration", dur);
888
+ }
889
+
890
+ slider.args[slider.prop] = target;
891
+ if (slider.transitions || dur === undefined) { slider.container.css(slider.args); }
892
+
893
+ slider.container.css('transform',target);
894
+ };
895
+
896
+ slider.setup = function(type) {
897
+ // SLIDE:
898
+ if (!fade) {
899
+ var sliderOffset, arr;
900
+
901
+ if (type === "init") {
902
+ slider.viewport = $('<div class="' + namespace + 'viewport"></div>').css({"overflow": "hidden", "position": "relative"}).appendTo(slider).append(slider.container);
903
+ // INFINITE LOOP:
904
+ slider.cloneCount = 0;
905
+ slider.cloneOffset = 0;
906
+ // REVERSE:
907
+ if (reverse) {
908
+ arr = $.makeArray(slider.slides).reverse();
909
+ slider.slides = $(arr);
910
+ slider.container.empty().append(slider.slides);
911
+ }
912
+ }
913
+ // INFINITE LOOP && !CAROUSEL:
914
+ if (slider.vars.animationLoop && !carousel) {
915
+ slider.cloneCount = 2;
916
+ slider.cloneOffset = 1;
917
+ // clear out old clones
918
+ if (type !== "init") { slider.container.find('.clone').remove(); }
919
+ slider.container.append(methods.uniqueID(slider.slides.first().clone().addClass('clone')).attr('aria-hidden', 'true'))
920
+ .prepend(methods.uniqueID(slider.slides.last().clone().addClass('clone')).attr('aria-hidden', 'true'));
921
+ }
922
+ slider.newSlides = $(slider.vars.selector, slider);
923
+
924
+ sliderOffset = (reverse) ? slider.count - 1 - slider.currentSlide + slider.cloneOffset : slider.currentSlide + slider.cloneOffset;
925
+ // VERTICAL:
926
+ if (vertical && !carousel) {
927
+ slider.container.height((slider.count + slider.cloneCount) * 200 + "%").css("position", "absolute").width("100%");
928
+ setTimeout(function(){
929
+ slider.newSlides.css({"display": "block"});
930
+ slider.doMath();
931
+ slider.viewport.height(slider.h);
932
+ slider.setProps(sliderOffset * slider.h, "init");
933
+ }, (type === "init") ? 100 : 0);
934
+ } else {
935
+ slider.container.width((slider.count + slider.cloneCount) * 200 + "%");
936
+ slider.setProps(sliderOffset * slider.computedW, "init");
937
+ setTimeout(function(){
938
+ slider.doMath();
939
+ slider.newSlides.css({"width": slider.computedW, "float": "left", "display": "block"});
940
+ // SMOOTH HEIGHT:
941
+ if (slider.vars.smoothHeight) { methods.smoothHeight(); }
942
+ }, (type === "init") ? 100 : 0);
943
+ }
944
+ } else { // FADE:
945
+ slider.slides.css({"width": "100%", "float": "left", "marginRight": "-100%", "position": "relative"});
946
+ if (type === "init") {
947
+ if (!touch) {
948
+ //slider.slides.eq(slider.currentSlide).fadeIn(slider.vars.animationSpeed, slider.vars.easing);
949
+ if (slider.vars.fadeFirstSlide == false) {
950
+ slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).css({"opacity": 1});
951
+ } else {
952
+ slider.slides.css({ "opacity": 0, "display": "block", "zIndex": 1 }).eq(slider.currentSlide).css({"zIndex": 2}).animate({"opacity": 1},slider.vars.animationSpeed,slider.vars.easing);
953
+ }
954
+ } else {
955
+ slider.slides.css({ "opacity": 0, "display": "block", "webkitTransition": "opacity " + slider.vars.animationSpeed / 1000 + "s ease", "zIndex": 1 }).eq(slider.currentSlide).css({ "opacity": 1, "zIndex": 2});
956
+ }
957
+ }
958
+ // SMOOTH HEIGHT:
959
+ if (slider.vars.smoothHeight) { methods.smoothHeight(); }
960
+ }
961
+ // !CAROUSEL:
962
+ // CANDIDATE: active slide
963
+ if (!carousel) { slider.slides.removeClass(namespace + "active-slide").eq(slider.currentSlide).addClass(namespace + "active-slide"); }
964
+
965
+ //FlexSlider: init() Callback
966
+ slider.vars.init(slider);
967
+ };
968
+
969
+ slider.doMath = function() {
970
+ var slide = slider.slides.first(),
971
+ slideMargin = slider.vars.itemMargin,
972
+ minItems = slider.vars.minItems,
973
+ maxItems = slider.vars.maxItems;
974
+
975
+ slider.w = (slider.viewport===undefined) ? slider.width() : slider.viewport.width();
976
+ slider.h = slide.height();
977
+ slider.boxPadding = slide.outerWidth() - slide.width();
978
+
979
+ // CAROUSEL:
980
+ if (carousel) {
981
+ slider.itemT = slider.vars.itemWidth + slideMargin;
982
+ slider.minW = (minItems) ? minItems * slider.itemT : slider.w;
983
+ slider.maxW = (maxItems) ? (maxItems * slider.itemT) - slideMargin : slider.w;
984
+ slider.itemW = (slider.minW > slider.w) ? (slider.w - (slideMargin * (minItems - 1)))/minItems :
985
+ (slider.maxW < slider.w) ? (slider.w - (slideMargin * (maxItems - 1)))/maxItems :
986
+ (slider.vars.itemWidth > slider.w) ? slider.w : slider.vars.itemWidth;
987
+
988
+ slider.visible = Math.floor(slider.w/(slider.itemW));
989
+ slider.move = (slider.vars.move > 0 && slider.vars.move < slider.visible ) ? slider.vars.move : slider.visible;
990
+ slider.pagingCount = Math.ceil(((slider.count - slider.visible)/slider.move) + 1);
991
+ slider.last = slider.pagingCount - 1;
992
+ slider.limit = (slider.pagingCount === 1) ? 0 :
993
+ (slider.vars.itemWidth > slider.w) ? (slider.itemW * (slider.count - 1)) + (slideMargin * (slider.count - 1)) : ((slider.itemW + slideMargin) * slider.count) - slider.w - slideMargin;
994
+ } else {
995
+ slider.itemW = slider.w;
996
+ slider.pagingCount = slider.count;
997
+ slider.last = slider.count - 1;
998
+ }
999
+ slider.computedW = slider.itemW - slider.boxPadding;
1000
+ };
1001
+
1002
+ slider.update = function(pos, action) {
1003
+ slider.doMath();
1004
+
1005
+ // update currentSlide and slider.animatingTo if necessary
1006
+ if (!carousel) {
1007
+ if (pos < slider.currentSlide) {
1008
+ slider.currentSlide += 1;
1009
+ } else if (pos <= slider.currentSlide && pos !== 0) {
1010
+ slider.currentSlide -= 1;
1011
+ }
1012
+ slider.animatingTo = slider.currentSlide;
1013
+ }
1014
+
1015
+ // update controlNav
1016
+ if (slider.vars.controlNav && !slider.manualControls) {
1017
+ if ((action === "add" && !carousel) || slider.pagingCount > slider.controlNav.length) {
1018
+ methods.controlNav.update("add");
1019
+ } else if ((action === "remove" && !carousel) || slider.pagingCount < slider.controlNav.length) {
1020
+ if (carousel && slider.currentSlide > slider.last) {
1021
+ slider.currentSlide -= 1;
1022
+ slider.animatingTo -= 1;
1023
+ }
1024
+ methods.controlNav.update("remove", slider.last);
1025
+ }
1026
+ }
1027
+ // update directionNav
1028
+ if (slider.vars.directionNav) { methods.directionNav.update(); }
1029
+
1030
+ };
1031
+
1032
+ slider.addSlide = function(obj, pos) {
1033
+ var $obj = $(obj);
1034
+
1035
+ slider.count += 1;
1036
+ slider.last = slider.count - 1;
1037
+
1038
+ // append new slide
1039
+ if (vertical && reverse) {
1040
+ (pos !== undefined) ? slider.slides.eq(slider.count - pos).after($obj) : slider.container.prepend($obj);
1041
+ } else {
1042
+ (pos !== undefined) ? slider.slides.eq(pos).before($obj) : slider.container.append($obj);
1043
+ }
1044
+
1045
+ // update currentSlide, animatingTo, controlNav, and directionNav
1046
+ slider.update(pos, "add");
1047
+
1048
+ // update slider.slides
1049
+ slider.slides = $(slider.vars.selector + ':not(.clone)', slider);
1050
+ // re-setup the slider to accomdate new slide
1051
+ slider.setup();
1052
+
1053
+ //FlexSlider: added() Callback
1054
+ slider.vars.added(slider);
1055
+ };
1056
+ slider.removeSlide = function(obj) {
1057
+ var pos = (isNaN(obj)) ? slider.slides.index($(obj)) : obj;
1058
+
1059
+ // update count
1060
+ slider.count -= 1;
1061
+ slider.last = slider.count - 1;
1062
+
1063
+ // remove slide
1064
+ if (isNaN(obj)) {
1065
+ $(obj, slider.slides).remove();
1066
+ } else {
1067
+ (vertical && reverse) ? slider.slides.eq(slider.last).remove() : slider.slides.eq(obj).remove();
1068
+ }
1069
+
1070
+ // update currentSlide, animatingTo, controlNav, and directionNav
1071
+ slider.doMath();
1072
+ slider.update(pos, "remove");
1073
+
1074
+ // update slider.slides
1075
+ slider.slides = $(slider.vars.selector + ':not(.clone)', slider);
1076
+ // re-setup the slider to accomdate new slide
1077
+ slider.setup();
1078
+
1079
+ // FlexSlider: removed() Callback
1080
+ slider.vars.removed(slider);
1081
+ };
1082
+
1083
+ //FlexSlider: Initialize
1084
+ methods.init();
1085
+ };
1086
+
1087
+ // Ensure the slider isn't focussed if the window loses focus.
1088
+ $( window ).blur( function ( e ) {
1089
+ focused = false;
1090
+ }).focus( function ( e ) {
1091
+ focused = true;
1092
+ });
1093
+
1094
+ //FlexSlider: Default Settings
1095
+ $.flexslider.defaults = {
1096
+ namespace: "flex-", //{NEW} String: Prefix string attached to the class of every element generated by the plugin
1097
+ selector: ".slides > li", //{NEW} Selector: Must match a simple pattern. '{container} > {slide}' -- Ignore pattern at your own peril
1098
+ animation: "fade", //String: Select your animation type, "fade" or "slide"
1099
+ easing: "swing", //{NEW} String: Determines the easing method used in jQuery transitions. jQuery easing plugin is supported!
1100
+ direction: "horizontal", //String: Select the sliding direction, "horizontal" or "vertical"
1101
+ reverse: false, //{NEW} Boolean: Reverse the animation direction
1102
+ animationLoop: true, //Boolean: Should the animation loop? If false, directionNav will received "disable" classes at either end
1103
+ smoothHeight: false, //{NEW} Boolean: Allow height of the slider to animate smoothly in horizontal mode
1104
+ startAt: 0, //Integer: The slide that the slider should start on. Array notation (0 = first slide)
1105
+ slideshow: true, //Boolean: Animate slider automatically
1106
+ slideshowSpeed: 7000, //Integer: Set the speed of the slideshow cycling, in milliseconds
1107
+ animationSpeed: 600, //Integer: Set the speed of animations, in milliseconds
1108
+ initDelay: 0, //{NEW} Integer: Set an initialization delay, in milliseconds
1109
+ randomize: false, //Boolean: Randomize slide order
1110
+ fadeFirstSlide: true, //Boolean: Fade in the first slide when animation type is "fade"
1111
+ thumbCaptions: false, //Boolean: Whether or not to put captions on thumbnails when using the "thumbnails" controlNav.
1112
+
1113
+ // Usability features
1114
+ pauseOnAction: true, //Boolean: Pause the slideshow when interacting with control elements, highly recommended.
1115
+ pauseOnHover: false, //Boolean: Pause the slideshow when hovering over slider, then resume when no longer hovering
1116
+ pauseInvisible: true, //{NEW} Boolean: Pause the slideshow when tab is invisible, resume when visible. Provides better UX, lower CPU usage.
1117
+ useCSS: true, //{NEW} Boolean: Slider will use CSS3 transitions if available
1118
+ touch: true, //{NEW} Boolean: Allow touch swipe navigation of the slider on touch-enabled devices
1119
+ video: false, //{NEW} Boolean: If using video in the slider, will prevent CSS3 3D Transforms to avoid graphical glitches
1120
+
1121
+ // Primary Controls
1122
+ controlNav: true, //Boolean: Create navigation for paging control of each slide? Note: Leave true for manualControls usage
1123
+ directionNav: true, //Boolean: Create navigation for previous/next navigation? (true/false)
1124
+ prevText: "Previous", //String: Set the text for the "previous" directionNav item
1125
+ nextText: "Next", //String: Set the text for the "next" directionNav item
1126
+
1127
+ // Secondary Navigation
1128
+ keyboard: true, //Boolean: Allow slider navigating via keyboard left/right keys
1129
+ multipleKeyboard: false, //{NEW} Boolean: Allow keyboard navigation to affect multiple sliders. Default behavior cuts out keyboard navigation with more than one slider present.
1130
+ mousewheel: false, //{UPDATED} Boolean: Requires jquery.mousewheel.js (https://github.com/brandonaaron/jquery-mousewheel) - Allows slider navigating via mousewheel
1131
+ pausePlay: false, //Boolean: Create pause/play dynamic element
1132
+ pauseText: "Pause", //String: Set the text for the "pause" pausePlay item
1133
+ playText: "Play", //String: Set the text for the "play" pausePlay item
1134
+
1135
+ // Special properties
1136
+ controlsContainer: "", //{UPDATED} jQuery Object/Selector: Declare which container the navigation elements should be appended too. Default container is the FlexSlider element. Example use would be $(".flexslider-container"). Property is ignored if given element is not found.
1137
+ manualControls: "", //{UPDATED} jQuery Object/Selector: Declare custom control navigation. Examples would be $(".flex-control-nav li") or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.
1138
+ customDirectionNav: "", //{NEW} jQuery Object/Selector: Custom prev / next button. Must be two jQuery elements. In order to make the events work they have to have the classes "prev" and "next" (plus namespace)
1139
+ sync: "", //{NEW} Selector: Mirror the actions performed on this slider with another slider. Use with care.
1140
+ asNavFor: "", //{NEW} Selector: Internal property exposed for turning the slider into a thumbnail navigation for another slider
1141
+
1142
+ // Carousel Options
1143
+ itemWidth: 0, //{NEW} Integer: Box-model width of individual carousel items, including horizontal borders and padding.
1144
+ itemMargin: 0, //{NEW} Integer: Margin between carousel items.
1145
+ minItems: 1, //{NEW} Integer: Minimum number of carousel items that should be visible. Items will resize fluidly when below this.
1146
+ maxItems: 0, //{NEW} Integer: Maxmimum number of carousel items that should be visible. Items will resize fluidly when above this limit.
1147
+ move: 0, //{NEW} Integer: Number of carousel items that should move on animation. If 0, slider will move all visible items.
1148
+ allowOneSlide: true, //{NEW} Boolean: Whether or not to allow a slider comprised of a single slide
1149
+
1150
+ // Callback API
1151
+ start: function(){}, //Callback: function(slider) - Fires when the slider loads the first slide
1152
+ before: function(){}, //Callback: function(slider) - Fires asynchronously with each slider animation
1153
+ after: function(){}, //Callback: function(slider) - Fires after each slider animation completes
1154
+ end: function(){}, //Callback: function(slider) - Fires when the slider reaches the last slide (asynchronous)
1155
+ added: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is added
1156
+ removed: function(){}, //{NEW} Callback: function(slider) - Fires after a slide is removed
1157
+ init: function() {} //{NEW} Callback: function(slider) - Fires after the slider is initially setup
1158
+ };
1159
+
1160
+ //FlexSlider: Plugin Function
1161
+ $.fn.flexslider = function(options) {
1162
+ if (options === undefined) { options = {}; }
1163
+
1164
+ if (typeof options === "object") {
1165
+ return this.each(function() {
1166
+ var $this = $(this),
1167
+ selector = (options.selector) ? options.selector : ".slides > li",
1168
+ $slides = $this.find(selector);
1169
+
1170
+ if ( ( $slides.length === 1 && options.allowOneSlide === true ) || $slides.length === 0 ) {
1171
+ $slides.fadeIn(400);
1172
+ if (options.start) { options.start($this); }
1173
+ } else if ($this.data('flexslider') === undefined) {
1174
+ new $.flexslider(this, options);
1175
+ }
1176
+ });
1177
+ } else {
1178
+ // Helper strings to quickly perform functions on the slider
1179
+ var $slider = $(this).data('flexslider');
1180
+ switch (options) {
1181
+ case "play": $slider.play(); break;
1182
+ case "pause": $slider.pause(); break;
1183
+ case "stop": $slider.stop(); break;
1184
+ case "next": $slider.flexAnimate($slider.getTarget("next"), true); break;
1185
+ case "prev":
1186
+ case "previous": $slider.flexAnimate($slider.getTarget("prev"), true); break;
1187
+ default: if (typeof options === "number") { $slider.flexAnimate(options, true); }
1188
+ }
1189
+ }
1190
+ };
1191
+ })(jQuery);
elanzalite/assets/js/owl.carousel.js ADDED
@@ -0,0 +1,3275 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Owl Carousel v2.2.1
3
+ * Copyright 2013-2017 David Deutsch
4
+ * Licensed under ()
5
+ */
6
+ /**
7
+ * Owl carousel
8
+ * @version 2.1.6
9
+ * @author Bartosz Wojciechowski
10
+ * @author David Deutsch
11
+ * @license The MIT License (MIT)
12
+ * @todo Lazy Load Icon
13
+ * @todo prevent animationend bubling
14
+ * @todo itemsScaleUp
15
+ * @todo Test Zepto
16
+ * @todo stagePadding calculate wrong active classes
17
+ */
18
+ ;(function($, window, document, undefined) {
19
+
20
+ /**
21
+ * Creates a carousel.
22
+ * @class The Owl Carousel.
23
+ * @public
24
+ * @param {HTMLElement|jQuery} element - The element to create the carousel for.
25
+ * @param {Object} [options] - The options
26
+ */
27
+ function Owl(element, options) {
28
+
29
+ /**
30
+ * Current settings for the carousel.
31
+ * @public
32
+ */
33
+ this.settings = null;
34
+
35
+ /**
36
+ * Current options set by the caller including defaults.
37
+ * @public
38
+ */
39
+ this.options = $.extend({}, Owl.Defaults, options);
40
+
41
+ /**
42
+ * Plugin element.
43
+ * @public
44
+ */
45
+ this.$element = $(element);
46
+
47
+ /**
48
+ * Proxied event handlers.
49
+ * @protected
50
+ */
51
+ this._handlers = {};
52
+
53
+ /**
54
+ * References to the running plugins of this carousel.
55
+ * @protected
56
+ */
57
+ this._plugins = {};
58
+
59
+ /**
60
+ * Currently suppressed events to prevent them from beeing retriggered.
61
+ * @protected
62
+ */
63
+ this._supress = {};
64
+
65
+ /**
66
+ * Absolute current position.
67
+ * @protected
68
+ */
69
+ this._current = null;
70
+
71
+ /**
72
+ * Animation speed in milliseconds.
73
+ * @protected
74
+ */
75
+ this._speed = null;
76
+
77
+ /**
78
+ * Coordinates of all items in pixel.
79
+ * @todo The name of this member is missleading.
80
+ * @protected
81
+ */
82
+ this._coordinates = [];
83
+
84
+ /**
85
+ * Current breakpoint.
86
+ * @todo Real media queries would be nice.
87
+ * @protected
88
+ */
89
+ this._breakpoint = null;
90
+
91
+ /**
92
+ * Current width of the plugin element.
93
+ */
94
+ this._width = null;
95
+
96
+ /**
97
+ * All real items.
98
+ * @protected
99
+ */
100
+ this._items = [];
101
+
102
+ /**
103
+ * All cloned items.
104
+ * @protected
105
+ */
106
+ this._clones = [];
107
+
108
+ /**
109
+ * Merge values of all items.
110
+ * @todo Maybe this could be part of a plugin.
111
+ * @protected
112
+ */
113
+ this._mergers = [];
114
+
115
+ /**
116
+ * Widths of all items.
117
+ */
118
+ this._widths = [];
119
+
120
+ /**
121
+ * Invalidated parts within the update process.
122
+ * @protected
123
+ */
124
+ this._invalidated = {};
125
+
126
+ /**
127
+ * Ordered list of workers for the update process.
128
+ * @protected
129
+ */
130
+ this._pipe = [];
131
+
132
+ /**
133
+ * Current state information for the drag operation.
134
+ * @todo #261
135
+ * @protected
136
+ */
137
+ this._drag = {
138
+ time: null,
139
+ target: null,
140
+ pointer: null,
141
+ stage: {
142
+ start: null,
143
+ current: null
144
+ },
145
+ direction: null
146
+ };
147
+
148
+ /**
149
+ * Current state information and their tags.
150
+ * @type {Object}
151
+ * @protected
152
+ */
153
+ this._states = {
154
+ current: {},
155
+ tags: {
156
+ 'initializing': [ 'busy' ],
157
+ 'animating': [ 'busy' ],
158
+ 'dragging': [ 'interacting' ]
159
+ }
160
+ };
161
+
162
+ $.each([ 'onResize', 'onThrottledResize' ], $.proxy(function(i, handler) {
163
+ this._handlers[handler] = $.proxy(this[handler], this);
164
+ }, this));
165
+
166
+ $.each(Owl.Plugins, $.proxy(function(key, plugin) {
167
+ this._plugins[key.charAt(0).toLowerCase() + key.slice(1)]
168
+ = new plugin(this);
169
+ }, this));
170
+
171
+ $.each(Owl.Workers, $.proxy(function(priority, worker) {
172
+ this._pipe.push({
173
+ 'filter': worker.filter,
174
+ 'run': $.proxy(worker.run, this)
175
+ });
176
+ }, this));
177
+
178
+ this.setup();
179
+ this.initialize();
180
+ }
181
+
182
+ /**
183
+ * Default options for the carousel.
184
+ * @public
185
+ */
186
+ Owl.Defaults = {
187
+ items: 3,
188
+ loop: false,
189
+ center: false,
190
+ rewind: false,
191
+
192
+ mouseDrag: true,
193
+ touchDrag: true,
194
+ pullDrag: true,
195
+ freeDrag: false,
196
+
197
+ margin: 0,
198
+ stagePadding: 0,
199
+
200
+ merge: false,
201
+ mergeFit: true,
202
+ autoWidth: false,
203
+
204
+ startPosition: 0,
205
+ rtl: false,
206
+
207
+ smartSpeed: 250,
208
+ fluidSpeed: false,
209
+ dragEndSpeed: false,
210
+
211
+ responsive: {},
212
+ responsiveRefreshRate: 200,
213
+ responsiveBaseElement: window,
214
+
215
+ fallbackEasing: 'swing',
216
+
217
+ info: false,
218
+
219
+ nestedItemSelector: false,
220
+ itemElement: 'div',
221
+ stageElement: 'div',
222
+
223
+ refreshClass: 'owl-refresh',
224
+ loadedClass: 'owl-loaded',
225
+ loadingClass: 'owl-loading',
226
+ rtlClass: 'owl-rtl',
227
+ responsiveClass: 'owl-responsive',
228
+ dragClass: 'owl-drag',
229
+ itemClass: 'owl-item',
230
+ stageClass: 'owl-stage',
231
+ stageOuterClass: 'owl-stage-outer',
232
+ grabClass: 'owl-grab'
233
+ };
234
+
235
+ /**
236
+ * Enumeration for width.
237
+ * @public
238
+ * @readonly
239
+ * @enum {String}
240
+ */
241
+ Owl.Width = {
242
+ Default: 'default',
243
+ Inner: 'inner',
244
+ Outer: 'outer'
245
+ };
246
+
247
+ /**
248
+ * Enumeration for types.
249
+ * @public
250
+ * @readonly
251
+ * @enum {String}
252
+ */
253
+ Owl.Type = {
254
+ Event: 'event',
255
+ State: 'state'
256
+ };
257
+
258
+ /**
259
+ * Contains all registered plugins.
260
+ * @public
261
+ */
262
+ Owl.Plugins = {};
263
+
264
+ /**
265
+ * List of workers involved in the update process.
266
+ */
267
+ Owl.Workers = [ {
268
+ filter: [ 'width', 'settings' ],
269
+ run: function() {
270
+ this._width = this.$element.width();
271
+ }
272
+ }, {
273
+ filter: [ 'width', 'items', 'settings' ],
274
+ run: function(cache) {
275
+ cache.current = this._items && this._items[this.relative(this._current)];
276
+ }
277
+ }, {
278
+ filter: [ 'items', 'settings' ],
279
+ run: function() {
280
+ this.$stage.children('.cloned').remove();
281
+ }
282
+ }, {
283
+ filter: [ 'width', 'items', 'settings' ],
284
+ run: function(cache) {
285
+ var margin = this.settings.margin || '',
286
+ grid = !this.settings.autoWidth,
287
+ rtl = this.settings.rtl,
288
+ css = {
289
+ 'width': 'auto',
290
+ 'margin-left': rtl ? margin : '',
291
+ 'margin-right': rtl ? '' : margin
292
+ };
293
+
294
+ !grid && this.$stage.children().css(css);
295
+
296
+ cache.css = css;
297
+ }
298
+ }, {
299
+ filter: [ 'width', 'items', 'settings' ],
300
+ run: function(cache) {
301
+ var width = (this.width() / this.settings.items).toFixed(3) - this.settings.margin,
302
+ merge = null,
303
+ iterator = this._items.length,
304
+ grid = !this.settings.autoWidth,
305
+ widths = [];
306
+
307
+ cache.items = {
308
+ merge: false,
309
+ width: width
310
+ };
311
+
312
+ while (iterator--) {
313
+ merge = this._mergers[iterator];
314
+ merge = this.settings.mergeFit && Math.min(merge, this.settings.items) || merge;
315
+
316
+ cache.items.merge = merge > 1 || cache.items.merge;
317
+
318
+ widths[iterator] = !grid ? this._items[iterator].width() : width * merge;
319
+ }
320
+
321
+ this._widths = widths;
322
+ }
323
+ }, {
324
+ filter: [ 'items', 'settings' ],
325
+ run: function() {
326
+ var clones = [],
327
+ items = this._items,
328
+ settings = this.settings,
329
+ // TODO: Should be computed from number of min width items in stage
330
+ view = Math.max(settings.items * 2, 4),
331
+ size = Math.ceil(items.length / 2) * 2,
332
+ repeat = settings.loop && items.length ? settings.rewind ? view : Math.max(view, size) : 0,
333
+ append = '',
334
+ prepend = '';
335
+
336
+ repeat /= 2;
337
+
338
+ while (repeat--) {
339
+ // Switch to only using appended clones
340
+ clones.push(this.normalize(clones.length / 2, true));
341
+ append = append + items[clones[clones.length - 1]][0].outerHTML;
342
+ clones.push(this.normalize(items.length - 1 - (clones.length - 1) / 2, true));
343
+ prepend = items[clones[clones.length - 1]][0].outerHTML + prepend;
344
+ }
345
+
346
+ this._clones = clones;
347
+
348
+ $(append).addClass('cloned').appendTo(this.$stage);
349
+ $(prepend).addClass('cloned').prependTo(this.$stage);
350
+ }
351
+ }, {
352
+ filter: [ 'width', 'items', 'settings' ],
353
+ run: function() {
354
+ var rtl = this.settings.rtl ? 1 : -1,
355
+ size = this._clones.length + this._items.length,
356
+ iterator = -1,
357
+ previous = 0,
358
+ current = 0,
359
+ coordinates = [];
360
+
361
+ while (++iterator < size) {
362
+ previous = coordinates[iterator - 1] || 0;
363
+ current = this._widths[this.relative(iterator)] + this.settings.margin;
364
+ coordinates.push(previous + current * rtl);
365
+ }
366
+
367
+ this._coordinates = coordinates;
368
+ }
369
+ }, {
370
+ filter: [ 'width', 'items', 'settings' ],
371
+ run: function() {
372
+ var padding = this.settings.stagePadding,
373
+ coordinates = this._coordinates,
374
+ css = {
375
+ 'width': Math.ceil(Math.abs(coordinates[coordinates.length - 1])) + padding * 2,
376
+ 'padding-left': padding || '',
377
+ 'padding-right': padding || ''
378
+ };
379
+
380
+ this.$stage.css(css);
381
+ }
382
+ }, {
383
+ filter: [ 'width', 'items', 'settings' ],
384
+ run: function(cache) {
385
+ var iterator = this._coordinates.length,
386
+ grid = !this.settings.autoWidth,
387
+ items = this.$stage.children();
388
+
389
+ if (grid && cache.items.merge) {
390
+ while (iterator--) {
391
+ cache.css.width = this._widths[this.relative(iterator)];
392
+ items.eq(iterator).css(cache.css);
393
+ }
394
+ } else if (grid) {
395
+ cache.css.width = cache.items.width;
396
+ items.css(cache.css);
397
+ }
398
+ }
399
+ }, {
400
+ filter: [ 'items' ],
401
+ run: function() {
402
+ this._coordinates.length < 1 && this.$stage.removeAttr('style');
403
+ }
404
+ }, {
405
+ filter: [ 'width', 'items', 'settings' ],
406
+ run: function(cache) {
407
+ cache.current = cache.current ? this.$stage.children().index(cache.current) : 0;
408
+ cache.current = Math.max(this.minimum(), Math.min(this.maximum(), cache.current));
409
+ this.reset(cache.current);
410
+ }
411
+ }, {
412
+ filter: [ 'position' ],
413
+ run: function() {
414
+ this.animate(this.coordinates(this._current));
415
+ }
416
+ }, {
417
+ filter: [ 'width', 'position', 'items', 'settings' ],
418
+ run: function() {
419
+ var rtl = this.settings.rtl ? 1 : -1,
420
+ padding = this.settings.stagePadding * 2,
421
+ begin = this.coordinates(this.current()) + padding,
422
+ end = begin + this.width() * rtl,
423
+ inner, outer, matches = [], i, n;
424
+
425
+ for (i = 0, n = this._coordinates.length; i < n; i++) {
426
+ inner = this._coordinates[i - 1] || 0;
427
+ outer = Math.abs(this._coordinates[i]) + padding * rtl;
428
+
429
+ if ((this.op(inner, '<=', begin) && (this.op(inner, '>', end)))
430
+ || (this.op(outer, '<', begin) && this.op(outer, '>', end))) {
431
+ matches.push(i);
432
+ }
433
+ }
434
+
435
+ this.$stage.children('.active').removeClass('active');
436
+ this.$stage.children(':eq(' + matches.join('), :eq(') + ')').addClass('active');
437
+
438
+ if (this.settings.center) {
439
+ this.$stage.children('.center').removeClass('center');
440
+ this.$stage.children().eq(this.current()).addClass('center');
441
+ }
442
+ }
443
+ } ];
444
+
445
+ /**
446
+ * Initializes the carousel.
447
+ * @protected
448
+ */
449
+ Owl.prototype.initialize = function() {
450
+ this.enter('initializing');
451
+ this.trigger('initialize');
452
+
453
+ this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl);
454
+
455
+ if (this.settings.autoWidth && !this.is('pre-loading')) {
456
+ var imgs, nestedSelector, width;
457
+ imgs = this.$element.find('img');
458
+ nestedSelector = this.settings.nestedItemSelector ? '.' + this.settings.nestedItemSelector : undefined;
459
+ width = this.$element.children(nestedSelector).width();
460
+
461
+ if (imgs.length && width <= 0) {
462
+ this.preloadAutoWidthImages(imgs);
463
+ }
464
+ }
465
+
466
+ this.$element.addClass(this.options.loadingClass);
467
+
468
+ // create stage
469
+ this.$stage = $('<' + this.settings.stageElement + ' class="' + this.settings.stageClass + '"/>')
470
+ .wrap('<div class="' + this.settings.stageOuterClass + '"/>');
471
+
472
+ // append stage
473
+ this.$element.append(this.$stage.parent());
474
+
475
+ // append content
476
+ this.replace(this.$element.children().not(this.$stage.parent()));
477
+
478
+ // check visibility
479
+ if (this.$element.is(':visible')) {
480
+ // update view
481
+ this.refresh();
482
+ } else {
483
+ // invalidate width
484
+ this.invalidate('width');
485
+ }
486
+
487
+ this.$element
488
+ .removeClass(this.options.loadingClass)
489
+ .addClass(this.options.loadedClass);
490
+
491
+ // register event handlers
492
+ this.registerEventHandlers();
493
+
494
+ this.leave('initializing');
495
+ this.trigger('initialized');
496
+ };
497
+
498
+ /**
499
+ * Setups the current settings.
500
+ * @todo Remove responsive classes. Why should adaptive designs be brought into IE8?
501
+ * @todo Support for media queries by using `matchMedia` would be nice.
502
+ * @public
503
+ */
504
+ Owl.prototype.setup = function() {
505
+ var viewport = this.viewport(),
506
+ overwrites = this.options.responsive,
507
+ match = -1,
508
+ settings = null;
509
+
510
+ if (!overwrites) {
511
+ settings = $.extend({}, this.options);
512
+ } else {
513
+ $.each(overwrites, function(breakpoint) {
514
+ if (breakpoint <= viewport && breakpoint > match) {
515
+ match = Number(breakpoint);
516
+ }
517
+ });
518
+
519
+ settings = $.extend({}, this.options, overwrites[match]);
520
+ if (typeof settings.stagePadding === 'function') {
521
+ settings.stagePadding = settings.stagePadding();
522
+ }
523
+ delete settings.responsive;
524
+
525
+ // responsive class
526
+ if (settings.responsiveClass) {
527
+ this.$element.attr('class',
528
+ this.$element.attr('class').replace(new RegExp('(' + this.options.responsiveClass + '-)\\S+\\s', 'g'), '$1' + match)
529
+ );
530
+ }
531
+ }
532
+
533
+ this.trigger('change', { property: { name: 'settings', value: settings } });
534
+ this._breakpoint = match;
535
+ this.settings = settings;
536
+ this.invalidate('settings');
537
+ this.trigger('changed', { property: { name: 'settings', value: this.settings } });
538
+ };
539
+
540
+ /**
541
+ * Updates option logic if necessery.
542
+ * @protected
543
+ */
544
+ Owl.prototype.optionsLogic = function() {
545
+ if (this.settings.autoWidth) {
546
+ this.settings.stagePadding = false;
547
+ this.settings.merge = false;
548
+ }
549
+ };
550
+
551
+ /**
552
+ * Prepares an item before add.
553
+ * @todo Rename event parameter `content` to `item`.
554
+ * @protected
555
+ * @returns {jQuery|HTMLElement} - The item container.
556
+ */
557
+ Owl.prototype.prepare = function(item) {
558
+ var event = this.trigger('prepare', { content: item });
559
+
560
+ if (!event.data) {
561
+ event.data = $('<' + this.settings.itemElement + '/>')
562
+ .addClass(this.options.itemClass).append(item)
563
+ }
564
+
565
+ this.trigger('prepared', { content: event.data });
566
+
567
+ return event.data;
568
+ };
569
+
570
+ /**
571
+ * Updates the view.
572
+ * @public
573
+ */
574
+ Owl.prototype.update = function() {
575
+ var i = 0,
576
+ n = this._pipe.length,
577
+ filter = $.proxy(function(p) { return this[p] }, this._invalidated),
578
+ cache = {};
579
+
580
+ while (i < n) {
581
+ if (this._invalidated.all || $.grep(this._pipe[i].filter, filter).length > 0) {
582
+ this._pipe[i].run(cache);
583
+ }
584
+ i++;
585
+ }
586
+
587
+ this._invalidated = {};
588
+
589
+ !this.is('valid') && this.enter('valid');
590
+ };
591
+
592
+ /**
593
+ * Gets the width of the view.
594
+ * @public
595
+ * @param {Owl.Width} [dimension=Owl.Width.Default] - The dimension to return.
596
+ * @returns {Number} - The width of the view in pixel.
597
+ */
598
+ Owl.prototype.width = function(dimension) {
599
+ dimension = dimension || Owl.Width.Default;
600
+ switch (dimension) {
601
+ case Owl.Width.Inner:
602
+ case Owl.Width.Outer:
603
+ return this._width;
604
+ default:
605
+ return this._width - this.settings.stagePadding * 2 + this.settings.margin;
606
+ }
607
+ };
608
+
609
+ /**
610
+ * Refreshes the carousel primarily for adaptive purposes.
611
+ * @public
612
+ */
613
+ Owl.prototype.refresh = function() {
614
+ this.enter('refreshing');
615
+ this.trigger('refresh');
616
+
617
+ this.setup();
618
+
619
+ this.optionsLogic();
620
+
621
+ this.$element.addClass(this.options.refreshClass);
622
+
623
+ this.update();
624
+
625
+ this.$element.removeClass(this.options.refreshClass);
626
+
627
+ this.leave('refreshing');
628
+ this.trigger('refreshed');
629
+ };
630
+
631
+ /**
632
+ * Checks window `resize` event.
633
+ * @protected
634
+ */
635
+ Owl.prototype.onThrottledResize = function() {
636
+ window.clearTimeout(this.resizeTimer);
637
+ this.resizeTimer = window.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate);
638
+ };
639
+
640
+ /**
641
+ * Checks window `resize` event.
642
+ * @protected
643
+ */
644
+ Owl.prototype.onResize = function() {
645
+ if (!this._items.length) {
646
+ return false;
647
+ }
648
+
649
+ if (this._width === this.$element.width()) {
650
+ return false;
651
+ }
652
+
653
+ if (!this.$element.is(':visible')) {
654
+ return false;
655
+ }
656
+
657
+ this.enter('resizing');
658
+
659
+ if (this.trigger('resize').isDefaultPrevented()) {
660
+ this.leave('resizing');
661
+ return false;
662
+ }
663
+
664
+ this.invalidate('width');
665
+
666
+ this.refresh();
667
+
668
+ this.leave('resizing');
669
+ this.trigger('resized');
670
+ };
671
+
672
+ /**
673
+ * Registers event handlers.
674
+ * @todo Check `msPointerEnabled`
675
+ * @todo #261
676
+ * @protected
677
+ */
678
+ Owl.prototype.registerEventHandlers = function() {
679
+ if ($.support.transition) {
680
+ this.$stage.on($.support.transition.end + '.owl.core', $.proxy(this.onTransitionEnd, this));
681
+ }
682
+
683
+ if (this.settings.responsive !== false) {
684
+ this.on(window, 'resize', this._handlers.onThrottledResize);
685
+ }
686
+
687
+ if (this.settings.mouseDrag) {
688
+ this.$element.addClass(this.options.dragClass);
689
+ this.$stage.on('mousedown.owl.core', $.proxy(this.onDragStart, this));
690
+ this.$stage.on('dragstart.owl.core selectstart.owl.core', function() { return false });
691
+ }
692
+
693
+ if (this.settings.touchDrag){
694
+ this.$stage.on('touchstart.owl.core', $.proxy(this.onDragStart, this));
695
+ this.$stage.on('touchcancel.owl.core', $.proxy(this.onDragEnd, this));
696
+ }
697
+ };
698
+
699
+ /**
700
+ * Handles `touchstart` and `mousedown` events.
701
+ * @todo Horizontal swipe threshold as option
702
+ * @todo #261
703
+ * @protected
704
+ * @param {Event} event - The event arguments.
705
+ */
706
+ Owl.prototype.onDragStart = function(event) {
707
+ var stage = null;
708
+
709
+ if (event.which === 3) {
710
+ return;
711
+ }
712
+
713
+ if ($.support.transform) {
714
+ stage = this.$stage.css('transform').replace(/.*\(|\)| /g, '').split(',');
715
+ stage = {
716
+ x: stage[stage.length === 16 ? 12 : 4],
717
+ y: stage[stage.length === 16 ? 13 : 5]
718
+ };
719
+ } else {
720
+ stage = this.$stage.position();
721
+ stage = {
722
+ x: this.settings.rtl ?
723
+ stage.left + this.$stage.width() - this.width() + this.settings.margin :
724
+ stage.left,
725
+ y: stage.top
726
+ };
727
+ }
728
+
729
+ if (this.is('animating')) {
730
+ $.support.transform ? this.animate(stage.x) : this.$stage.stop()
731
+ this.invalidate('position');
732
+ }
733
+
734
+ this.$element.toggleClass(this.options.grabClass, event.type === 'mousedown');
735
+
736
+ this.speed(0);
737
+
738
+ this._drag.time = new Date().getTime();
739
+ this._drag.target = $(event.target);
740
+ this._drag.stage.start = stage;
741
+ this._drag.stage.current = stage;
742
+ this._drag.pointer = this.pointer(event);
743
+
744
+ $(document).on('mouseup.owl.core touchend.owl.core', $.proxy(this.onDragEnd, this));
745
+
746
+ $(document).one('mousemove.owl.core touchmove.owl.core', $.proxy(function(event) {
747
+ var delta = this.difference(this._drag.pointer, this.pointer(event));
748
+
749
+ $(document).on('mousemove.owl.core touchmove.owl.core', $.proxy(this.onDragMove, this));
750
+
751
+ if (Math.abs(delta.x) < Math.abs(delta.y) && this.is('valid')) {
752
+ return;
753
+ }
754
+
755
+ event.preventDefault();
756
+
757
+ this.enter('dragging');
758
+ this.trigger('drag');
759
+ }, this));
760
+ };
761
+
762
+ /**
763
+ * Handles the `touchmove` and `mousemove` events.
764
+ * @todo #261
765
+ * @protected
766
+ * @param {Event} event - The event arguments.
767
+ */
768
+ Owl.prototype.onDragMove = function(event) {
769
+ var minimum = null,
770
+ maximum = null,
771
+ pull = null,
772
+ delta = this.difference(this._drag.pointer, this.pointer(event)),
773
+ stage = this.difference(this._drag.stage.start, delta);
774
+
775
+ if (!this.is('dragging')) {
776
+ return;
777
+ }
778
+
779
+ event.preventDefault();
780
+
781
+ if (this.settings.loop) {
782
+ minimum = this.coordinates(this.minimum());
783
+ maximum = this.coordinates(this.maximum() + 1) - minimum;
784
+ stage.x = (((stage.x - minimum) % maximum + maximum) % maximum) + minimum;
785
+ } else {
786
+ minimum = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum());
787
+ maximum = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum());
788
+ pull = this.settings.pullDrag ? -1 * delta.x / 5 : 0;
789
+ stage.x = Math.max(Math.min(stage.x, minimum + pull), maximum + pull);
790
+ }
791
+
792
+ this._drag.stage.current = stage;
793
+
794
+ this.animate(stage.x);
795
+ };
796
+
797
+ /**
798
+ * Handles the `touchend` and `mouseup` events.
799
+ * @todo #261
800
+ * @todo Threshold for click event
801
+ * @protected
802
+ * @param {Event} event - The event arguments.
803
+ */
804
+ Owl.prototype.onDragEnd = function(event) {
805
+ var delta = this.difference(this._drag.pointer, this.pointer(event)),
806
+ stage = this._drag.stage.current,
807
+ direction = delta.x > 0 ^ this.settings.rtl ? 'left' : 'right';
808
+
809
+ $(document).off('.owl.core');
810
+
811
+ this.$element.removeClass(this.options.grabClass);
812
+
813
+ if (delta.x !== 0 && this.is('dragging') || !this.is('valid')) {
814
+ this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed);
815
+ this.current(this.closest(stage.x, delta.x !== 0 ? direction : this._drag.direction));
816
+ this.invalidate('position');
817
+ this.update();
818
+
819
+ this._drag.direction = direction;
820
+
821
+ if (Math.abs(delta.x) > 3 || new Date().getTime() - this._drag.time > 300) {
822
+ this._drag.target.one('click.owl.core', function() { return false; });
823
+ }
824
+ }
825
+
826
+ if (!this.is('dragging')) {
827
+ return;
828
+ }
829
+
830
+ this.leave('dragging');
831
+ this.trigger('dragged');
832
+ };
833
+
834
+ /**
835
+ * Gets absolute position of the closest item for a coordinate.
836
+ * @todo Setting `freeDrag` makes `closest` not reusable. See #165.
837
+ * @protected
838
+ * @param {Number} coordinate - The coordinate in pixel.
839
+ * @param {String} direction - The direction to check for the closest item. Ether `left` or `right`.
840
+ * @return {Number} - The absolute position of the closest item.
841
+ */
842
+ Owl.prototype.closest = function(coordinate, direction) {
843
+ var position = -1,
844
+ pull = 30,
845
+ width = this.width(),
846
+ coordinates = this.coordinates();
847
+
848
+ if (!this.settings.freeDrag) {
849
+ // check closest item
850
+ $.each(coordinates, $.proxy(function(index, value) {
851
+ // on a left pull, check on current index
852
+ if (direction === 'left' && coordinate > value - pull && coordinate < value + pull) {
853
+ position = index;
854
+ // on a right pull, check on previous index
855
+ // to do so, subtract width from value and set position = index + 1
856
+ } else if (direction === 'right' && coordinate > value - width - pull && coordinate < value - width + pull) {
857
+ position = index + 1;
858
+ } else if (this.op(coordinate, '<', value)
859
+ && this.op(coordinate, '>', coordinates[index + 1] || value - width)) {
860
+ position = direction === 'left' ? index + 1 : index;
861
+ }
862
+ return position === -1;
863
+ }, this));
864
+ }
865
+
866
+ if (!this.settings.loop) {
867
+ // non loop boundries
868
+ if (this.op(coordinate, '>', coordinates[this.minimum()])) {
869
+ position = coordinate = this.minimum();
870
+ } else if (this.op(coordinate, '<', coordinates[this.maximum()])) {
871
+ position = coordinate = this.maximum();
872
+ }
873
+ }
874
+
875
+ return position;
876
+ };
877
+
878
+ /**
879
+ * Animates the stage.
880
+ * @todo #270
881
+ * @public
882
+ * @param {Number} coordinate - The coordinate in pixels.
883
+ */
884
+ Owl.prototype.animate = function(coordinate) {
885
+ var animate = this.speed() > 0;
886
+
887
+ this.is('animating') && this.onTransitionEnd();
888
+
889
+ if (animate) {
890
+ this.enter('animating');
891
+ this.trigger('translate');
892
+ }
893
+
894
+ if ($.support.transform3d && $.support.transition) {
895
+ this.$stage.css({
896
+ transform: 'translate3d(' + coordinate + 'px,0px,0px)',
897
+ transition: (this.speed() / 1000) + 's'
898
+ });
899
+ } else if (animate) {
900
+ this.$stage.animate({
901
+ left: coordinate + 'px'
902
+ }, this.speed(), this.settings.fallbackEasing, $.proxy(this.onTransitionEnd, this));
903
+ } else {
904
+ this.$stage.css({
905
+ left: coordinate + 'px'
906
+ });
907
+ }
908
+ };
909
+
910
+ /**
911
+ * Checks whether the carousel is in a specific state or not.
912
+ * @param {String} state - The state to check.
913
+ * @returns {Boolean} - The flag which indicates if the carousel is busy.
914
+ */
915
+ Owl.prototype.is = function(state) {
916
+ return this._states.current[state] && this._states.current[state] > 0;
917
+ };
918
+
919
+ /**
920
+ * Sets the absolute position of the current item.
921
+ * @public
922
+ * @param {Number} [position] - The new absolute position or nothing to leave it unchanged.
923
+ * @returns {Number} - The absolute position of the current item.
924
+ */
925
+ Owl.prototype.current = function(position) {
926
+ if (position === undefined) {
927
+ return this._current;
928
+ }
929
+
930
+ if (this._items.length === 0) {
931
+ return undefined;
932
+ }
933
+
934
+ position = this.normalize(position);
935
+
936
+ if (this._current !== position) {
937
+ var event = this.trigger('change', { property: { name: 'position', value: position } });
938
+
939
+ if (event.data !== undefined) {
940
+ position = this.normalize(event.data);
941
+ }
942
+
943
+ this._current = position;
944
+
945
+ this.invalidate('position');
946
+
947
+ this.trigger('changed', { property: { name: 'position', value: this._current } });
948
+ }
949
+
950
+ return this._current;
951
+ };
952
+
953
+ /**
954
+ * Invalidates the given part of the update routine.
955
+ * @param {String} [part] - The part to invalidate.
956
+ * @returns {Array.<String>} - The invalidated parts.
957
+ */
958
+ Owl.prototype.invalidate = function(part) {
959
+ if ($.type(part) === 'string') {
960
+ this._invalidated[part] = true;
961
+ this.is('valid') && this.leave('valid');
962
+ }
963
+ return $.map(this._invalidated, function(v, i) { return i });
964
+ };
965
+
966
+ /**
967
+ * Resets the absolute position of the current item.
968
+ * @public
969
+ * @param {Number} position - The absolute position of the new item.
970
+ */
971
+ Owl.prototype.reset = function(position) {
972
+ position = this.normalize(position);
973
+
974
+ if (position === undefined) {
975
+ return;
976
+ }
977
+
978
+ this._speed = 0;
979
+ this._current = position;
980
+
981
+ this.suppress([ 'translate', 'translated' ]);
982
+
983
+ this.animate(this.coordinates(position));
984
+
985
+ this.release([ 'translate', 'translated' ]);
986
+ };
987
+
988
+ /**
989
+ * Normalizes an absolute or a relative position of an item.
990
+ * @public
991
+ * @param {Number} position - The absolute or relative position to normalize.
992
+ * @param {Boolean} [relative=false] - Whether the given position is relative or not.
993
+ * @returns {Number} - The normalized position.
994
+ */
995
+ Owl.prototype.normalize = function(position, relative) {
996
+ var n = this._items.length,
997
+ m = relative ? 0 : this._clones.length;
998
+
999
+ if (!this.isNumeric(position) || n < 1) {
1000
+ position = undefined;
1001
+ } else if (position < 0 || position >= n + m) {
1002
+ position = ((position - m / 2) % n + n) % n + m / 2;
1003
+ }
1004
+
1005
+ return position;
1006
+ };
1007
+
1008
+ /**
1009
+ * Converts an absolute position of an item into a relative one.
1010
+ * @public
1011
+ * @param {Number} position - The absolute position to convert.
1012
+ * @returns {Number} - The converted position.
1013
+ */
1014
+ Owl.prototype.relative = function(position) {
1015
+ position -= this._clones.length / 2;
1016
+ return this.normalize(position, true);
1017
+ };
1018
+
1019
+ /**
1020
+ * Gets the maximum position for the current item.
1021
+ * @public
1022
+ * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
1023
+ * @returns {Number}
1024
+ */
1025
+ Owl.prototype.maximum = function(relative) {
1026
+ var settings = this.settings,
1027
+ maximum = this._coordinates.length,
1028
+ iterator,
1029
+ reciprocalItemsWidth,
1030
+ elementWidth;
1031
+
1032
+ if (settings.loop) {
1033
+ maximum = this._clones.length / 2 + this._items.length - 1;
1034
+ } else if (settings.autoWidth || settings.merge) {
1035
+ iterator = this._items.length;
1036
+ reciprocalItemsWidth = this._items[--iterator].width();
1037
+ elementWidth = this.$element.width();
1038
+ while (iterator--) {
1039
+ reciprocalItemsWidth += this._items[iterator].width() + this.settings.margin;
1040
+ if (reciprocalItemsWidth > elementWidth) {
1041
+ break;
1042
+ }
1043
+ }
1044
+ maximum = iterator + 1;
1045
+ } else if (settings.center) {
1046
+ maximum = this._items.length - 1;
1047
+ } else {
1048
+ maximum = this._items.length - settings.items;
1049
+ }
1050
+
1051
+ if (relative) {
1052
+ maximum -= this._clones.length / 2;
1053
+ }
1054
+
1055
+ return Math.max(maximum, 0);
1056
+ };
1057
+
1058
+ /**
1059
+ * Gets the minimum position for the current item.
1060
+ * @public
1061
+ * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
1062
+ * @returns {Number}
1063
+ */
1064
+ Owl.prototype.minimum = function(relative) {
1065
+ return relative ? 0 : this._clones.length / 2;
1066
+ };
1067
+
1068
+ /**
1069
+ * Gets an item at the specified relative position.
1070
+ * @public
1071
+ * @param {Number} [position] - The relative position of the item.
1072
+ * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
1073
+ */
1074
+ Owl.prototype.items = function(position) {
1075
+ if (position === undefined) {
1076
+ return this._items.slice();
1077
+ }
1078
+
1079
+ position = this.normalize(position, true);
1080
+ return this._items[position];
1081
+ };
1082
+
1083
+ /**
1084
+ * Gets an item at the specified relative position.
1085
+ * @public
1086
+ * @param {Number} [position] - The relative position of the item.
1087
+ * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
1088
+ */
1089
+ Owl.prototype.mergers = function(position) {
1090
+ if (position === undefined) {
1091
+ return this._mergers.slice();
1092
+ }
1093
+
1094
+ position = this.normalize(position, true);
1095
+ return this._mergers[position];
1096
+ };
1097
+
1098
+ /**
1099
+ * Gets the absolute positions of clones for an item.
1100
+ * @public
1101
+ * @param {Number} [position] - The relative position of the item.
1102
+ * @returns {Array.<Number>} - The absolute positions of clones for the item or all if no position was given.
1103
+ */
1104
+ Owl.prototype.clones = function(position) {
1105
+ var odd = this._clones.length / 2,
1106
+ even = odd + this._items.length,
1107
+ map = function(index) { return index % 2 === 0 ? even + index / 2 : odd - (index + 1) / 2 };
1108
+
1109
+ if (position === undefined) {
1110
+ return $.map(this._clones, function(v, i) { return map(i) });
1111
+ }
1112
+
1113
+ return $.map(this._clones, function(v, i) { return v === position ? map(i) : null });
1114
+ };
1115
+
1116
+ /**
1117
+ * Sets the current animation speed.
1118
+ * @public
1119
+ * @param {Number} [speed] - The animation speed in milliseconds or nothing to leave it unchanged.
1120
+ * @returns {Number} - The current animation speed in milliseconds.
1121
+ */
1122
+ Owl.prototype.speed = function(speed) {
1123
+ if (speed !== undefined) {
1124
+ this._speed = speed;
1125
+ }
1126
+
1127
+ return this._speed;
1128
+ };
1129
+
1130
+ /**
1131
+ * Gets the coordinate of an item.
1132
+ * @todo The name of this method is missleanding.
1133
+ * @public
1134
+ * @param {Number} position - The absolute position of the item within `minimum()` and `maximum()`.
1135
+ * @returns {Number|Array.<Number>} - The coordinate of the item in pixel or all coordinates.
1136
+ */
1137
+ Owl.prototype.coordinates = function(position) {
1138
+ var multiplier = 1,
1139
+ newPosition = position - 1,
1140
+ coordinate;
1141
+
1142
+ if (position === undefined) {
1143
+ return $.map(this._coordinates, $.proxy(function(coordinate, index) {
1144
+ return this.coordinates(index);
1145
+ }, this));
1146
+ }
1147
+
1148
+ if (this.settings.center) {
1149
+ if (this.settings.rtl) {
1150
+ multiplier = -1;
1151
+ newPosition = position + 1;
1152
+ }
1153
+
1154
+ coordinate = this._coordinates[position];
1155
+ coordinate += (this.width() - coordinate + (this._coordinates[newPosition] || 0)) / 2 * multiplier;
1156
+ } else {
1157
+ coordinate = this._coordinates[newPosition] || 0;
1158
+ }
1159
+
1160
+ coordinate = Math.ceil(coordinate);
1161
+
1162
+ return coordinate;
1163
+ };
1164
+
1165
+ /**
1166
+ * Calculates the speed for a translation.
1167
+ * @protected
1168
+ * @param {Number} from - The absolute position of the start item.
1169
+ * @param {Number} to - The absolute position of the target item.
1170
+ * @param {Number} [factor=undefined] - The time factor in milliseconds.
1171
+ * @returns {Number} - The time in milliseconds for the translation.
1172
+ */
1173
+ Owl.prototype.duration = function(from, to, factor) {
1174
+ if (factor === 0) {
1175
+ return 0;
1176
+ }
1177
+
1178
+ return Math.min(Math.max(Math.abs(to - from), 1), 6) * Math.abs((factor || this.settings.smartSpeed));
1179
+ };
1180
+
1181
+ /**
1182
+ * Slides to the specified item.
1183
+ * @public
1184
+ * @param {Number} position - The position of the item.
1185
+ * @param {Number} [speed] - The time in milliseconds for the transition.
1186
+ */
1187
+ Owl.prototype.to = function(position, speed) {
1188
+ var current = this.current(),
1189
+ revert = null,
1190
+ distance = position - this.relative(current),
1191
+ direction = (distance > 0) - (distance < 0),
1192
+ items = this._items.length,
1193
+ minimum = this.minimum(),
1194
+ maximum = this.maximum();
1195
+
1196
+ if (this.settings.loop) {
1197
+ if (!this.settings.rewind && Math.abs(distance) > items / 2) {
1198
+ distance += direction * -1 * items;
1199
+ }
1200
+
1201
+ position = current + distance;
1202
+ revert = ((position - minimum) % items + items) % items + minimum;
1203
+
1204
+ if (revert !== position && revert - distance <= maximum && revert - distance > 0) {
1205
+ current = revert - distance;
1206
+ position = revert;
1207
+ this.reset(current);
1208
+ }
1209
+ } else if (this.settings.rewind) {
1210
+ maximum += 1;
1211
+ position = (position % maximum + maximum) % maximum;
1212
+ } else {
1213
+ position = Math.max(minimum, Math.min(maximum, position));
1214
+ }
1215
+
1216
+ this.speed(this.duration(current, position, speed));
1217
+ this.current(position);
1218
+
1219
+ if (this.$element.is(':visible')) {
1220
+ this.update();
1221
+ }
1222
+ };
1223
+
1224
+ /**
1225
+ * Slides to the next item.
1226
+ * @public
1227
+ * @param {Number} [speed] - The time in milliseconds for the transition.
1228
+ */
1229
+ Owl.prototype.next = function(speed) {
1230
+ speed = speed || false;
1231
+ this.to(this.relative(this.current()) + 1, speed);
1232
+ };
1233
+
1234
+ /**
1235
+ * Slides to the previous item.
1236
+ * @public
1237
+ * @param {Number} [speed] - The time in milliseconds for the transition.
1238
+ */
1239
+ Owl.prototype.prev = function(speed) {
1240
+ speed = speed || false;
1241
+ this.to(this.relative(this.current()) - 1, speed);
1242
+ };
1243
+
1244
+ /**
1245
+ * Handles the end of an animation.
1246
+ * @protected
1247
+ * @param {Event} event - The event arguments.
1248
+ */
1249
+ Owl.prototype.onTransitionEnd = function(event) {
1250
+
1251
+ // if css2 animation then event object is undefined
1252
+ if (event !== undefined) {
1253
+ event.stopPropagation();
1254
+
1255
+ // Catch only owl-stage transitionEnd event
1256
+ if ((event.target || event.srcElement || event.originalTarget) !== this.$stage.get(0)) {
1257
+ return false;
1258
+ }
1259
+ }
1260
+
1261
+ this.leave('animating');
1262
+ this.trigger('translated');
1263
+ };
1264
+
1265
+ /**
1266
+ * Gets viewport width.
1267
+ * @protected
1268
+ * @return {Number} - The width in pixel.
1269
+ */
1270
+ Owl.prototype.viewport = function() {
1271
+ var width;
1272
+ if (this.options.responsiveBaseElement !== window) {
1273
+ width = $(this.options.responsiveBaseElement).width();
1274
+ } else if (window.innerWidth) {
1275
+ width = window.innerWidth;
1276
+ } else if (document.documentElement && document.documentElement.clientWidth) {
1277
+ width = document.documentElement.clientWidth;
1278
+ } else {
1279
+ console.warn('Can not detect viewport width.');
1280
+ }
1281
+ return width;
1282
+ };
1283
+
1284
+ /**
1285
+ * Replaces the current content.
1286
+ * @public
1287
+ * @param {HTMLElement|jQuery|String} content - The new content.
1288
+ */
1289
+ Owl.prototype.replace = function(content) {
1290
+ this.$stage.empty();
1291
+ this._items = [];
1292
+
1293
+ if (content) {
1294
+ content = (content instanceof jQuery) ? content : $(content);
1295
+ }
1296
+
1297
+ if (this.settings.nestedItemSelector) {
1298
+ content = content.find('.' + this.settings.nestedItemSelector);
1299
+ }
1300
+
1301
+ content.filter(function() {
1302
+ return this.nodeType === 1;
1303
+ }).each($.proxy(function(index, item) {
1304
+ item = this.prepare(item);
1305
+ this.$stage.append(item);
1306
+ this._items.push(item);
1307
+ this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
1308
+ }, this));
1309
+
1310
+ this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0);
1311
+
1312
+ this.invalidate('items');
1313
+ };
1314
+
1315
+ /**
1316
+ * Adds an item.
1317
+ * @todo Use `item` instead of `content` for the event arguments.
1318
+ * @public
1319
+ * @param {HTMLElement|jQuery|String} content - The item content to add.
1320
+ * @param {Number} [position] - The relative position at which to insert the item otherwise the item will be added to the end.
1321
+ */
1322
+ Owl.prototype.add = function(content, position) {
1323
+ var current = this.relative(this._current);
1324
+
1325
+ position = position === undefined ? this._items.length : this.normalize(position, true);
1326
+ content = content instanceof jQuery ? content : $(content);
1327
+
1328
+ this.trigger('add', { content: content, position: position });
1329
+
1330
+ content = this.prepare(content);
1331
+
1332
+ if (this._items.length === 0 || position === this._items.length) {
1333
+ this._items.length === 0 && this.$stage.append(content);
1334
+ this._items.length !== 0 && this._items[position - 1].after(content);
1335
+ this._items.push(content);
1336
+ this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
1337
+ } else {
1338
+ this._items[position].before(content);
1339
+ this._items.splice(position, 0, content);
1340
+ this._mergers.splice(position, 0, content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
1341
+ }
1342
+
1343
+ this._items[current] && this.reset(this._items[current].index());
1344
+
1345
+ this.invalidate('items');
1346
+
1347
+ this.trigger('added', { content: content, position: position });
1348
+ };
1349
+
1350
+ /**
1351
+ * Removes an item by its position.
1352
+ * @todo Use `item` instead of `content` for the event arguments.
1353
+ * @public
1354
+ * @param {Number} position - The relative position of the item to remove.
1355
+ */
1356
+ Owl.prototype.remove = function(position) {
1357
+ position = this.normalize(position, true);
1358
+
1359
+ if (position === undefined) {
1360
+ return;
1361
+ }
1362
+
1363
+ this.trigger('remove', { content: this._items[position], position: position });
1364
+
1365
+ this._items[position].remove();
1366
+ this._items.splice(position, 1);
1367
+ this._mergers.splice(position, 1);
1368
+
1369
+ this.invalidate('items');
1370
+
1371
+ this.trigger('removed', { content: null, position: position });
1372
+ };
1373
+
1374
+ /**
1375
+ * Preloads images with auto width.
1376
+ * @todo Replace by a more generic approach
1377
+ * @protected
1378
+ */
1379
+ Owl.prototype.preloadAutoWidthImages = function(images) {
1380
+ images.each($.proxy(function(i, element) {
1381
+ this.enter('pre-loading');
1382
+ element = $(element);
1383
+ $(new Image()).one('load', $.proxy(function(e) {
1384
+ element.attr('src', e.target.src);
1385
+ element.css('opacity', 1);
1386
+ this.leave('pre-loading');
1387
+ !this.is('pre-loading') && !this.is('initializing') && this.refresh();
1388
+ }, this)).attr('src', element.attr('src') || element.attr('data-src') || element.attr('data-src-retina'));
1389
+ }, this));
1390
+ };
1391
+
1392
+ /**
1393
+ * Destroys the carousel.
1394
+ * @public
1395
+ */
1396
+ Owl.prototype.destroy = function() {
1397
+
1398
+ this.$element.off('.owl.core');
1399
+ this.$stage.off('.owl.core');
1400
+ $(document).off('.owl.core');
1401
+
1402
+ if (this.settings.responsive !== false) {
1403
+ window.clearTimeout(this.resizeTimer);
1404
+ this.off(window, 'resize', this._handlers.onThrottledResize);
1405
+ }
1406
+
1407
+ for (var i in this._plugins) {
1408
+ this._plugins[i].destroy();
1409
+ }
1410
+
1411
+ this.$stage.children('.cloned').remove();
1412
+
1413
+ this.$stage.unwrap();
1414
+ this.$stage.children().contents().unwrap();
1415
+ this.$stage.children().unwrap();
1416
+
1417
+ this.$element
1418
+ .removeClass(this.options.refreshClass)
1419
+ .removeClass(this.options.loadingClass)
1420
+ .removeClass(this.options.loadedClass)
1421
+ .removeClass(this.options.rtlClass)
1422
+ .removeClass(this.options.dragClass)
1423
+ .removeClass(this.options.grabClass)
1424
+ .attr('class', this.$element.attr('class').replace(new RegExp(this.options.responsiveClass + '-\\S+\\s', 'g'), ''))
1425
+ .removeData('owl.carousel');
1426
+ };
1427
+
1428
+ /**
1429
+ * Operators to calculate right-to-left and left-to-right.
1430
+ * @protected
1431
+ * @param {Number} [a] - The left side operand.
1432
+ * @param {String} [o] - The operator.
1433
+ * @param {Number} [b] - The right side operand.
1434
+ */
1435
+ Owl.prototype.op = function(a, o, b) {
1436
+ var rtl = this.settings.rtl;
1437
+ switch (o) {
1438
+ case '<':
1439
+ return rtl ? a > b : a < b;
1440
+ case '>':
1441
+ return rtl ? a < b : a > b;
1442
+ case '>=':
1443
+ return rtl ? a <= b : a >= b;
1444
+ case '<=':
1445
+ return rtl ? a >= b : a <= b;
1446
+ default:
1447
+ break;
1448
+ }
1449
+ };
1450
+
1451
+ /**
1452
+ * Attaches to an internal event.
1453
+ * @protected
1454
+ * @param {HTMLElement} element - The event source.
1455
+ * @param {String} event - The event name.
1456
+ * @param {Function} listener - The event handler to attach.
1457
+ * @param {Boolean} capture - Wether the event should be handled at the capturing phase or not.
1458
+ */
1459
+ Owl.prototype.on = function(element, event, listener, capture) {
1460
+ if (element.addEventListener) {
1461
+ element.addEventListener(event, listener, capture);
1462
+ } else if (element.attachEvent) {
1463
+ element.attachEvent('on' + event, listener);
1464
+ }
1465
+ };
1466
+
1467
+ /**
1468
+ * Detaches from an internal event.
1469
+ * @protected
1470
+ * @param {HTMLElement} element - The event source.
1471
+ * @param {String} event - The event name.
1472
+ * @param {Function} listener - The attached event handler to detach.
1473
+ * @param {Boolean} capture - Wether the attached event handler was registered as a capturing listener or not.
1474
+ */
1475
+ Owl.prototype.off = function(element, event, listener, capture) {
1476
+ if (element.removeEventListener) {
1477
+ element.removeEventListener(event, listener, capture);
1478
+ } else if (element.detachEvent) {
1479
+ element.detachEvent('on' + event, listener);
1480
+ }
1481
+ };
1482
+
1483
+ /**
1484
+ * Triggers a public event.
1485
+ * @todo Remove `status`, `relatedTarget` should be used instead.
1486
+ * @protected
1487
+ * @param {String} name - The event name.
1488
+ * @param {*} [data=null] - The event data.
1489
+ * @param {String} [namespace=carousel] - The event namespace.
1490
+ * @param {String} [state] - The state which is associated with the event.
1491
+ * @param {Boolean} [enter=false] - Indicates if the call enters the specified state or not.
1492
+ * @returns {Event} - The event arguments.
1493
+ */
1494
+ Owl.prototype.trigger = function(name, data, namespace, state, enter) {
1495
+ var status = {
1496
+ item: { count: this._items.length, index: this.current() }
1497
+ }, handler = $.camelCase(
1498
+ $.grep([ 'on', name, namespace ], function(v) { return v })
1499
+ .join('-').toLowerCase()
1500
+ ), event = $.Event(
1501
+ [ name, 'owl', namespace || 'carousel' ].join('.').toLowerCase(),
1502
+ $.extend({ relatedTarget: this }, status, data)
1503
+ );
1504
+
1505
+ if (!this._supress[name]) {
1506
+ $.each(this._plugins, function(name, plugin) {
1507
+ if (plugin.onTrigger) {
1508
+ plugin.onTrigger(event);
1509
+ }
1510
+ });
1511
+
1512
+ this.register({ type: Owl.Type.Event, name: name });
1513
+ this.$element.trigger(event);
1514
+
1515
+ if (this.settings && typeof this.settings[handler] === 'function') {
1516
+ this.settings[handler].call(this, event);
1517
+ }
1518
+ }
1519
+
1520
+ return event;
1521
+ };
1522
+
1523
+ /**
1524
+ * Enters a state.
1525
+ * @param name - The state name.
1526
+ */
1527
+ Owl.prototype.enter = function(name) {
1528
+ $.each([ name ].concat(this._states.tags[name] || []), $.proxy(function(i, name) {
1529
+ if (this._states.current[name] === undefined) {
1530
+ this._states.current[name] = 0;
1531
+ }
1532
+
1533
+ this._states.current[name]++;
1534
+ }, this));
1535
+ };
1536
+
1537
+ /**
1538
+ * Leaves a state.
1539
+ * @param name - The state name.
1540
+ */
1541
+ Owl.prototype.leave = function(name) {
1542
+ $.each([ name ].concat(this._states.tags[name] || []), $.proxy(function(i, name) {
1543
+ this._states.current[name]--;
1544
+ }, this));
1545
+ };
1546
+
1547
+ /**
1548
+ * Registers an event or state.
1549
+ * @public
1550
+ * @param {Object} object - The event or state to register.
1551
+ */
1552
+ Owl.prototype.register = function(object) {
1553
+ if (object.type === Owl.Type.Event) {
1554
+ if (!$.event.special[object.name]) {
1555
+ $.event.special[object.name] = {};
1556
+ }
1557
+
1558
+ if (!$.event.special[object.name].owl) {
1559
+ var _default = $.event.special[object.name]._default;
1560
+ $.event.special[object.name]._default = function(e) {
1561
+ if (_default && _default.apply && (!e.namespace || e.namespace.indexOf('owl') === -1)) {
1562
+ return _default.apply(this, arguments);
1563
+ }
1564
+ return e.namespace && e.namespace.indexOf('owl') > -1;
1565
+ };
1566
+ $.event.special[object.name].owl = true;
1567
+ }
1568
+ } else if (object.type === Owl.Type.State) {
1569
+ if (!this._states.tags[object.name]) {
1570
+ this._states.tags[object.name] = object.tags;
1571
+ } else {
1572
+ this._states.tags[object.name] = this._states.tags[object.name].concat(object.tags);
1573
+ }
1574
+
1575
+ this._states.tags[object.name] = $.grep(this._states.tags[object.name], $.proxy(function(tag, i) {
1576
+ return $.inArray(tag, this._states.tags[object.name]) === i;
1577
+ }, this));
1578
+ }
1579
+ };
1580
+
1581
+ /**
1582
+ * Suppresses events.
1583
+ * @protected
1584
+ * @param {Array.<String>} events - The events to suppress.
1585
+ */
1586
+ Owl.prototype.suppress = function(events) {
1587
+ $.each(events, $.proxy(function(index, event) {
1588
+ this._supress[event] = true;
1589
+ }, this));
1590
+ };
1591
+
1592
+ /**
1593
+ * Releases suppressed events.
1594
+ * @protected
1595
+ * @param {Array.<String>} events - The events to release.
1596
+ */
1597
+ Owl.prototype.release = function(events) {
1598
+ $.each(events, $.proxy(function(index, event) {
1599
+ delete this._supress[event];
1600
+ }, this));
1601
+ };
1602
+
1603
+ /**
1604
+ * Gets unified pointer coordinates from event.
1605
+ * @todo #261
1606
+ * @protected
1607
+ * @param {Event} - The `mousedown` or `touchstart` event.
1608
+ * @returns {Object} - Contains `x` and `y` coordinates of current pointer position.
1609
+ */
1610
+ Owl.prototype.pointer = function(event) {
1611
+ var result = { x: null, y: null };
1612
+
1613
+ event = event.originalEvent || event || window.event;
1614
+
1615
+ event = event.touches && event.touches.length ?
1616
+ event.touches[0] : event.changedTouches && event.changedTouches.length ?
1617
+ event.changedTouches[0] : event;
1618
+
1619
+ if (event.pageX) {
1620
+ result.x = event.pageX;
1621
+ result.y = event.pageY;
1622
+ } else {
1623
+ result.x = event.clientX;
1624
+ result.y = event.clientY;
1625
+ }
1626
+
1627
+ return result;
1628
+ };
1629
+
1630
+ /**
1631
+ * Determines if the input is a Number or something that can be coerced to a Number
1632
+ * @protected
1633
+ * @param {Number|String|Object|Array|Boolean|RegExp|Function|Symbol} - The input to be tested
1634
+ * @returns {Boolean} - An indication if the input is a Number or can be coerced to a Number
1635
+ */
1636
+ Owl.prototype.isNumeric = function(number) {
1637
+ return !isNaN(parseFloat(number));
1638
+ };
1639
+
1640
+ /**
1641
+ * Gets the difference of two vectors.
1642
+ * @todo #261
1643
+ * @protected
1644
+ * @param {Object} - The first vector.
1645
+ * @param {Object} - The second vector.
1646
+ * @returns {Object} - The difference.
1647
+ */
1648
+ Owl.prototype.difference = function(first, second) {
1649
+ return {
1650
+ x: first.x - second.x,
1651
+ y: first.y - second.y
1652
+ };
1653
+ };
1654
+
1655
+ /**
1656
+ * The jQuery Plugin for the Owl Carousel
1657
+ * @todo Navigation plugin `next` and `prev`
1658
+ * @public
1659
+ */
1660
+ $.fn.owlCarousel = function(option) {
1661
+ var args = Array.prototype.slice.call(arguments, 1);
1662
+
1663
+ return this.each(function() {
1664
+ var $this = $(this),
1665
+ data = $this.data('owl.carousel');
1666
+
1667
+ if (!data) {
1668
+ data = new Owl(this, typeof option == 'object' && option);
1669
+ $this.data('owl.carousel', data);
1670
+
1671
+ $.each([
1672
+ 'next', 'prev', 'to', 'destroy', 'refresh', 'replace', 'add', 'remove'
1673
+ ], function(i, event) {
1674
+ data.register({ type: Owl.Type.Event, name: event });
1675
+ data.$element.on(event + '.owl.carousel.core', $.proxy(function(e) {
1676
+ if (e.namespace && e.relatedTarget !== this) {
1677
+ this.suppress([ event ]);
1678
+ data[event].apply(this, [].slice.call(arguments, 1));
1679
+ this.release([ event ]);
1680
+ }
1681
+ }, data));
1682
+ });
1683
+ }
1684
+
1685
+ if (typeof option == 'string' && option.charAt(0) !== '_') {
1686
+ data[option].apply(data, args);
1687
+ }
1688
+ });
1689
+ };
1690
+
1691
+ /**
1692
+ * The constructor for the jQuery Plugin
1693
+ * @public
1694
+ */
1695
+ $.fn.owlCarousel.Constructor = Owl;
1696
+
1697
+ })(window.Zepto || window.jQuery, window, document);
1698
+
1699
+ /**
1700
+ * AutoRefresh Plugin
1701
+ * @version 2.1.0
1702
+ * @author Artus Kolanowski
1703
+ * @author David Deutsch
1704
+ * @license The MIT License (MIT)
1705
+ */
1706
+ ;(function($, window, document, undefined) {
1707
+
1708
+ /**
1709
+ * Creates the auto refresh plugin.
1710
+ * @class The Auto Refresh Plugin
1711
+ * @param {Owl} carousel - The Owl Carousel
1712
+ */
1713
+ var AutoRefresh = function(carousel) {
1714
+ /**
1715
+ * Reference to the core.
1716
+ * @protected
1717
+ * @type {Owl}
1718
+ */
1719
+ this._core = carousel;
1720
+
1721
+ /**
1722
+ * Refresh interval.
1723
+ * @protected
1724
+ * @type {number}
1725
+ */
1726
+ this._interval = null;
1727
+
1728
+ /**
1729
+ * Whether the element is currently visible or not.
1730
+ * @protected
1731
+ * @type {Boolean}
1732
+ */
1733
+ this._visible = null;
1734
+
1735
+ /**
1736
+ * All event handlers.
1737
+ * @protected
1738
+ * @type {Object}
1739
+ */
1740
+ this._handlers = {
1741
+ 'initialized.owl.carousel': $.proxy(function(e) {
1742
+ if (e.namespace && this._core.settings.autoRefresh) {
1743
+ this.watch();
1744
+ }
1745
+ }, this)
1746
+ };
1747
+
1748
+ // set default options
1749
+ this._core.options = $.extend({}, AutoRefresh.Defaults, this._core.options);
1750
+
1751
+ // register event handlers
1752
+ this._core.$element.on(this._handlers);
1753
+ };
1754
+
1755
+ /**
1756
+ * Default options.
1757
+ * @public
1758
+ */
1759
+ AutoRefresh.Defaults = {
1760
+ autoRefresh: true,
1761
+ autoRefreshInterval: 500
1762
+ };
1763
+
1764
+ /**
1765
+ * Watches the element.
1766
+ */
1767
+ AutoRefresh.prototype.watch = function() {
1768
+ if (this._interval) {
1769
+ return;
1770
+ }
1771
+
1772
+ this._visible = this._core.$element.is(':visible');
1773
+ this._interval = window.setInterval($.proxy(this.refresh, this), this._core.settings.autoRefreshInterval);
1774
+ };
1775
+
1776
+ /**
1777
+ * Refreshes the element.
1778
+ */
1779
+ AutoRefresh.prototype.refresh = function() {
1780
+ if (this._core.$element.is(':visible') === this._visible) {
1781
+ return;
1782
+ }
1783
+
1784
+ this._visible = !this._visible;
1785
+
1786
+ this._core.$element.toggleClass('owl-hidden', !this._visible);
1787
+
1788
+ this._visible && (this._core.invalidate('width') && this._core.refresh());
1789
+ };
1790
+
1791
+ /**
1792
+ * Destroys the plugin.
1793
+ */
1794
+ AutoRefresh.prototype.destroy = function() {
1795
+ var handler, property;
1796
+
1797
+ window.clearInterval(this._interval);
1798
+
1799
+ for (handler in this._handlers) {
1800
+ this._core.$element.off(handler, this._handlers[handler]);
1801
+ }
1802
+ for (property in Object.getOwnPropertyNames(this)) {
1803
+ typeof this[property] != 'function' && (this[property] = null);
1804
+ }
1805
+ };
1806
+
1807
+ $.fn.owlCarousel.Constructor.Plugins.AutoRefresh = AutoRefresh;
1808
+
1809
+ })(window.Zepto || window.jQuery, window, document);
1810
+
1811
+ /**
1812
+ * Lazy Plugin
1813
+ * @version 2.1.0
1814
+ * @author Bartosz Wojciechowski
1815
+ * @author David Deutsch
1816
+ * @license The MIT License (MIT)
1817
+ */
1818
+ ;(function($, window, document, undefined) {
1819
+
1820
+ /**
1821
+ * Creates the lazy plugin.
1822
+ * @class The Lazy Plugin
1823
+ * @param {Owl} carousel - The Owl Carousel
1824
+ */
1825
+ var Lazy = function(carousel) {
1826
+
1827
+ /**
1828
+ * Reference to the core.
1829
+ * @protected
1830
+ * @type {Owl}
1831
+ */
1832
+ this._core = carousel;
1833
+
1834
+ /**
1835
+ * Already loaded items.
1836
+ * @protected
1837
+ * @type {Array.<jQuery>}
1838
+ */
1839
+ this._loaded = [];
1840
+
1841
+ /**
1842
+ * Event handlers.
1843
+ * @protected
1844
+ * @type {Object}
1845
+ */
1846
+ this._handlers = {
1847
+ 'initialized.owl.carousel change.owl.carousel resized.owl.carousel': $.proxy(function(e) {
1848
+ if (!e.namespace) {
1849
+ return;
1850
+ }
1851
+
1852
+ if (!this._core.settings || !this._core.settings.lazyLoad) {
1853
+ return;
1854
+ }
1855
+
1856
+ if ((e.property && e.property.name == 'position') || e.type == 'initialized') {
1857
+ var settings = this._core.settings,
1858
+ n = (settings.center && Math.ceil(settings.items / 2) || settings.items),
1859
+ i = ((settings.center && n * -1) || 0),
1860
+ position = (e.property && e.property.value !== undefined ? e.property.value : this._core.current()) + i,
1861
+ clones = this._core.clones().length,
1862
+ load = $.proxy(function(i, v) { this.load(v) }, this);
1863
+
1864
+ while (i++ < n) {
1865
+ this.load(clones / 2 + this._core.relative(position));
1866
+ clones && $.each(this._core.clones(this._core.relative(position)), load);
1867
+ position++;
1868
+ }
1869
+ }
1870
+ }, this)
1871
+ };
1872
+
1873
+ // set the default options
1874
+ this._core.options = $.extend({}, Lazy.Defaults, this._core.options);
1875
+
1876
+ // register event handler
1877
+ this._core.$element.on(this._handlers);
1878
+ };
1879
+
1880
+ /**
1881
+ * Default options.
1882
+ * @public
1883
+ */
1884
+ Lazy.Defaults = {
1885
+ lazyLoad: false
1886
+ };
1887
+
1888
+ /**
1889
+ * Loads all resources of an item at the specified position.
1890
+ * @param {Number} position - The absolute position of the item.
1891
+ * @protected
1892
+ */
1893
+ Lazy.prototype.load = function(position) {
1894
+ var $item = this._core.$stage.children().eq(position),
1895
+ $elements = $item && $item.find('.owl-lazy');
1896
+
1897
+ if (!$elements || $.inArray($item.get(0), this._loaded) > -1) {
1898
+ return;
1899
+ }
1900
+
1901
+ $elements.each($.proxy(function(index, element) {
1902
+ var $element = $(element), image,
1903
+ url = (window.devicePixelRatio > 1 && $element.attr('data-src-retina')) || $element.attr('data-src');
1904
+
1905
+ this._core.trigger('load', { element: $element, url: url }, 'lazy');
1906
+
1907
+ if ($element.is('img')) {
1908
+ $element.one('load.owl.lazy', $.proxy(function() {
1909
+ $element.css('opacity', 1);
1910
+ this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
1911
+ }, this)).attr('src', url);
1912
+ } else {
1913
+ image = new Image();
1914
+ image.onload = $.proxy(function() {
1915
+ $element.css({
1916
+ 'background-image': 'url("' + url + '")',
1917
+ 'opacity': '1'
1918
+ });
1919
+ this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
1920
+ }, this);
1921
+ image.src = url;
1922
+ }
1923
+ }, this));
1924
+
1925
+ this._loaded.push($item.get(0));
1926
+ };
1927
+
1928
+ /**
1929
+ * Destroys the plugin.
1930
+ * @public
1931
+ */
1932
+ Lazy.prototype.destroy = function() {
1933
+ var handler, property;
1934
+
1935
+ for (handler in this.handlers) {
1936
+ this._core.$element.off(handler, this.handlers[handler]);
1937
+ }
1938
+ for (property in Object.getOwnPropertyNames(this)) {
1939
+ typeof this[property] != 'function' && (this[property] = null);
1940
+ }
1941
+ };
1942
+
1943
+ $.fn.owlCarousel.Constructor.Plugins.Lazy = Lazy;
1944
+
1945
+ })(window.Zepto || window.jQuery, window, document);
1946
+
1947
+ /**
1948
+ * AutoHeight Plugin
1949
+ * @version 2.1.0
1950
+ * @author Bartosz Wojciechowski
1951
+ * @author David Deutsch
1952
+ * @license The MIT License (MIT)
1953
+ */
1954
+ ;(function($, window, document, undefined) {
1955
+
1956
+ /**
1957
+ * Creates the auto height plugin.
1958
+ * @class The Auto Height Plugin
1959
+ * @param {Owl} carousel - The Owl Carousel
1960
+ */
1961
+ var AutoHeight = function(carousel) {
1962
+ /**
1963
+ * Reference to the core.
1964
+ * @protected
1965
+ * @type {Owl}
1966
+ */
1967
+ this._core = carousel;
1968
+
1969
+ /**
1970
+ * All event handlers.
1971
+ * @protected
1972
+ * @type {Object}
1973
+ */
1974
+ this._handlers = {
1975
+ 'initialized.owl.carousel refreshed.owl.carousel': $.proxy(function(e) {
1976
+ if (e.namespace && this._core.settings.autoHeight) {
1977
+ this.update();
1978
+ }
1979
+ }, this),
1980
+ 'changed.owl.carousel': $.proxy(function(e) {
1981
+ if (e.namespace && this._core.settings.autoHeight && e.property.name == 'position'){
1982
+ this.update();
1983
+ }
1984
+ }, this),
1985
+ 'loaded.owl.lazy': $.proxy(function(e) {
1986
+ if (e.namespace && this._core.settings.autoHeight
1987
+ && e.element.closest('.' + this._core.settings.itemClass).index() === this._core.current()) {
1988
+ this.update();
1989
+ }
1990
+ }, this)
1991
+ };
1992
+
1993
+ // set default options
1994
+ this._core.options = $.extend({}, AutoHeight.Defaults, this._core.options);
1995
+
1996
+ // register event handlers
1997
+ this._core.$element.on(this._handlers);
1998
+ };
1999
+
2000
+ /**
2001
+ * Default options.
2002
+ * @public
2003
+ */
2004
+ AutoHeight.Defaults = {
2005
+ autoHeight: false,
2006
+ autoHeightClass: 'owl-height'
2007
+ };
2008
+
2009
+ /**
2010
+ * Updates the view.
2011
+ */
2012
+ AutoHeight.prototype.update = function() {
2013
+ var start = this._core._current,
2014
+ end = start + this._core.settings.items,
2015
+ visible = this._core.$stage.children().toArray().slice(start, end),
2016
+ heights = [],
2017
+ maxheight = 0;
2018
+
2019
+ $.each(visible, function(index, item) {
2020
+ heights.push($(item).height());
2021
+ });
2022
+
2023
+ maxheight = Math.max.apply(null, heights);
2024
+
2025
+ this._core.$stage.parent()
2026
+ .height(maxheight)
2027
+ .addClass(this._core.settings.autoHeightClass);
2028
+ };
2029
+
2030
+ AutoHeight.prototype.destroy = function() {
2031
+ var handler, property;
2032
+
2033
+ for (handler in this._handlers) {
2034
+ this._core.$element.off(handler, this._handlers[handler]);
2035
+ }
2036
+ for (property in Object.getOwnPropertyNames(this)) {
2037
+ typeof this[property] != 'function' && (this[property] = null);
2038
+ }
2039
+ };
2040
+
2041
+ $.fn.owlCarousel.Constructor.Plugins.AutoHeight = AutoHeight;
2042
+
2043
+ })(window.Zepto || window.jQuery, window, document);
2044
+
2045
+ /**
2046
+ * Video Plugin
2047
+ * @version 2.1.0
2048
+ * @author Bartosz Wojciechowski
2049
+ * @author David Deutsch
2050
+ * @license The MIT License (MIT)
2051
+ */
2052
+ ;(function($, window, document, undefined) {
2053
+
2054
+ /**
2055
+ * Creates the video plugin.
2056
+ * @class The Video Plugin
2057
+ * @param {Owl} carousel - The Owl Carousel
2058
+ */
2059
+ var Video = function(carousel) {
2060
+ /**
2061
+ * Reference to the core.
2062
+ * @protected
2063
+ * @type {Owl}
2064
+ */
2065
+ this._core = carousel;
2066
+
2067
+ /**
2068
+ * Cache all video URLs.
2069
+ * @protected
2070
+ * @type {Object}
2071
+ */
2072
+ this._videos = {};
2073
+
2074
+ /**
2075
+ * Current playing item.
2076
+ * @protected
2077
+ * @type {jQuery}
2078
+ */
2079
+ this._playing = null;
2080
+
2081
+ /**
2082
+ * All event handlers.
2083
+ * @todo The cloned content removale is too late
2084
+ * @protected
2085
+ * @type {Object}
2086
+ */
2087
+ this._handlers = {
2088
+ 'initialized.owl.carousel': $.proxy(function(e) {
2089
+ if (e.namespace) {
2090
+ this._core.register({ type: 'state', name: 'playing', tags: [ 'interacting' ] });
2091
+ }
2092
+ }, this),
2093
+ 'resize.owl.carousel': $.proxy(function(e) {
2094
+ if (e.namespace && this._core.settings.video && this.isInFullScreen()) {
2095
+ e.preventDefault();
2096
+ }
2097
+ }, this),
2098
+ 'refreshed.owl.carousel': $.proxy(function(e) {
2099
+ if (e.namespace && this._core.is('resizing')) {
2100
+ this._core.$stage.find('.cloned .owl-video-frame').remove();
2101
+ }
2102
+ }, this),
2103
+ 'changed.owl.carousel': $.proxy(function(e) {
2104
+ if (e.namespace && e.property.name === 'position' && this._playing) {
2105
+ this.stop();
2106
+ }
2107
+ }, this),
2108
+ 'prepared.owl.carousel': $.proxy(function(e) {
2109
+ if (!e.namespace) {
2110
+ return;
2111
+ }
2112
+
2113
+ var $element = $(e.content).find('.owl-video');
2114
+
2115
+ if ($element.length) {
2116
+ $element.css('display', 'none');
2117
+ this.fetch($element, $(e.content));
2118
+ }
2119
+ }, this)
2120
+ };
2121
+
2122
+ // set default options
2123
+ this._core.options = $.extend({}, Video.Defaults, this._core.options);
2124
+
2125
+ // register event handlers
2126
+ this._core.$element.on(this._handlers);
2127
+
2128
+ this._core.$element.on('click.owl.video', '.owl-video-play-icon', $.proxy(function(e) {
2129
+ this.play(e);
2130
+ }, this));
2131
+ };
2132
+
2133
+ /**
2134
+ * Default options.
2135
+ * @public
2136
+ */
2137
+ Video.Defaults = {
2138
+ video: false,
2139
+ videoHeight: false,
2140
+ videoWidth: false
2141
+ };
2142
+
2143
+ /**
2144
+ * Gets the video ID and the type (YouTube/Vimeo/vzaar only).
2145
+ * @protected
2146
+ * @param {jQuery} target - The target containing the video data.
2147
+ * @param {jQuery} item - The item containing the video.
2148
+ */
2149
+ Video.prototype.fetch = function(target, item) {
2150
+ var type = (function() {
2151
+ if (target.attr('data-vimeo-id')) {
2152
+ return 'vimeo';
2153
+ } else if (target.attr('data-vzaar-id')) {
2154
+ return 'vzaar'
2155
+ } else {
2156
+ return 'youtube';
2157
+ }
2158
+ })(),
2159
+ id = target.attr('data-vimeo-id') || target.attr('data-youtube-id') || target.attr('data-vzaar-id'),
2160
+ width = target.attr('data-width') || this._core.settings.videoWidth,
2161
+ height = target.attr('data-height') || this._core.settings.videoHeight,
2162
+ url = target.attr('href');
2163
+
2164
+ if (url) {
2165
+
2166
+ /*
2167
+ Parses the id's out of the following urls (and probably more):
2168
+ https://www.youtube.com/watch?v=:id
2169
+ https://youtu.be/:id
2170
+ https://vimeo.com/:id
2171
+ https://vimeo.com/channels/:channel/:id
2172
+ https://vimeo.com/groups/:group/videos/:id
2173
+ https://app.vzaar.com/videos/:id
2174
+
2175
+ Visual example: https://regexper.com/#(http%3A%7Chttps%3A%7C)%5C%2F%5C%2F(player.%7Cwww.%7Capp.)%3F(vimeo%5C.com%7Cyoutu(be%5C.com%7C%5C.be%7Cbe%5C.googleapis%5C.com)%7Cvzaar%5C.com)%5C%2F(video%5C%2F%7Cvideos%5C%2F%7Cembed%5C%2F%7Cchannels%5C%2F.%2B%5C%2F%7Cgroups%5C%2F.%2B%5C%2F%7Cwatch%5C%3Fv%3D%7Cv%5C%2F)%3F(%5BA-Za-z0-9._%25-%5D*)(%5C%26%5CS%2B)%3F
2176
+ */
2177
+
2178
+ id = url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);
2179
+
2180
+ if (id[3].indexOf('youtu') > -1) {
2181
+ type = 'youtube';
2182
+ } else if (id[3].indexOf('vimeo') > -1) {
2183
+ type = 'vimeo';
2184
+ } else if (id[3].indexOf('vzaar') > -1) {
2185
+ type = 'vzaar';
2186
+ } else {
2187
+ throw new Error('Video URL not supported.');
2188
+ }
2189
+ id = id[6];
2190
+ } else {
2191
+ throw new Error('Missing video URL.');
2192
+ }
2193
+
2194
+ this._videos[url] = {
2195
+ type: type,
2196
+ id: id,
2197
+ width: width,
2198
+ height: height
2199
+ };
2200
+
2201
+ item.attr('data-video', url);
2202
+
2203
+ this.thumbnail(target, this._videos[url]);
2204
+ };
2205
+
2206
+ /**
2207
+ * Creates video thumbnail.
2208
+ * @protected
2209
+ * @param {jQuery} target - The target containing the video data.
2210
+ * @param {Object} info - The video info object.
2211
+ * @see `fetch`
2212
+ */
2213
+ Video.prototype.thumbnail = function(target, video) {
2214
+ var tnLink,
2215
+ icon,
2216
+ path,
2217
+ dimensions = video.width && video.height ? 'style="width:' + video.width + 'px;height:' + video.height + 'px;"' : '',
2218
+ customTn = target.find('img'),
2219
+ srcType = 'src',
2220
+ lazyClass = '',
2221
+ settings = this._core.settings,
2222
+ create = function(path) {
2223
+ icon = '<div class="owl-video-play-icon"></div>';
2224
+
2225
+ if (settings.lazyLoad) {
2226
+ tnLink = '<div class="owl-video-tn ' + lazyClass + '" ' + srcType + '="' + path + '"></div>';
2227
+ } else {
2228
+ tnLink = '<div class="owl-video-tn" style="opacity:1;background-image:url(' + path + ')"></div>';
2229
+ }
2230
+ target.after(tnLink);
2231
+ target.after(icon);
2232
+ };
2233
+
2234
+ // wrap video content into owl-video-wrapper div
2235
+ target.wrap('<div class="owl-video-wrapper"' + dimensions + '></div>');
2236
+
2237
+ if (this._core.settings.lazyLoad) {
2238
+ srcType = 'data-src';
2239
+ lazyClass = 'owl-lazy';
2240
+ }
2241
+
2242
+ // custom thumbnail
2243
+ if (customTn.length) {
2244
+ create(customTn.attr(srcType));
2245
+ customTn.remove();
2246
+ return false;
2247
+ }
2248
+
2249
+ if (video.type === 'youtube') {
2250
+ path = "//img.youtube.com/vi/" + video.id + "/hqdefault.jpg";
2251
+ create(path);
2252
+ } else if (video.type === 'vimeo') {
2253
+ $.ajax({
2254
+ type: 'GET',
2255
+ url: '//vimeo.com/api/v2/video/' + video.id + '.json',
2256
+ jsonp: 'callback',
2257
+ dataType: 'jsonp',
2258
+ success: function(data) {
2259
+ path = data[0].thumbnail_large;
2260
+ create(path);
2261
+ }
2262
+ });
2263
+ } else if (video.type === 'vzaar') {
2264
+ $.ajax({
2265
+ type: 'GET',
2266
+ url: '//vzaar.com/api/videos/' + video.id + '.json',
2267
+ jsonp: 'callback',
2268
+ dataType: 'jsonp',
2269
+ success: function(data) {
2270
+ path = data.framegrab_url;
2271
+ create(path);
2272
+ }
2273
+ });
2274
+ }
2275
+ };
2276
+
2277
+ /**
2278
+ * Stops the current video.
2279
+ * @public
2280
+ */
2281
+ Video.prototype.stop = function() {
2282
+ this._core.trigger('stop', null, 'video');
2283
+ this._playing.find('.owl-video-frame').remove();
2284
+ this._playing.removeClass('owl-video-playing');
2285
+ this._playing = null;
2286
+ this._core.leave('playing');
2287
+ this._core.trigger('stopped', null, 'video');
2288
+ };
2289
+
2290
+ /**
2291
+ * Starts the current video.
2292
+ * @public
2293
+ * @param {Event} event - The event arguments.
2294
+ */
2295
+ Video.prototype.play = function(event) {
2296
+ var target = $(event.target),
2297
+ item = target.closest('.' + this._core.settings.itemClass),
2298
+ video = this._videos[item.attr('data-video')],
2299
+ width = video.width || '100%',
2300
+ height = video.height || this._core.$stage.height(),
2301
+ html;
2302
+
2303
+ if (this._playing) {
2304
+ return;
2305
+ }
2306
+
2307
+ this._core.enter('playing');
2308
+ this._core.trigger('play', null, 'video');
2309
+
2310
+ item = this._core.items(this._core.relative(item.index()));
2311
+
2312
+ this._core.reset(item.index());
2313
+
2314
+ if (video.type === 'youtube') {
2315
+ html = '<iframe width="' + width + '" height="' + height + '" src="//www.youtube.com/embed/' +
2316
+ video.id + '?autoplay=1&rel=0&v=' + video.id + '" frameborder="0" allowfullscreen></iframe>';
2317
+ } else if (video.type === 'vimeo') {
2318
+ html = '<iframe src="//player.vimeo.com/video/' + video.id +
2319
+ '?autoplay=1" width="' + width + '" height="' + height +
2320
+ '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
2321
+ } else if (video.type === 'vzaar') {
2322
+ html = '<iframe frameborder="0"' + 'height="' + height + '"' + 'width="' + width +
2323
+ '" allowfullscreen mozallowfullscreen webkitAllowFullScreen ' +
2324
+ 'src="//view.vzaar.com/' + video.id + '/player?autoplay=true"></iframe>';
2325
+ }
2326
+
2327
+ $('<div class="owl-video-frame">' + html + '</div>').insertAfter(item.find('.owl-video'));
2328
+
2329
+ this._playing = item.addClass('owl-video-playing');
2330
+ };
2331
+
2332
+ /**
2333
+ * Checks whether an video is currently in full screen mode or not.
2334
+ * @todo Bad style because looks like a readonly method but changes members.
2335
+ * @protected
2336
+ * @returns {Boolean}
2337
+ */
2338
+ Video.prototype.isInFullScreen = function() {
2339
+ var element = document.fullscreenElement || document.mozFullScreenElement ||
2340
+ document.webkitFullscreenElement;
2341
+
2342
+ return element && $(element).parent().hasClass('owl-video-frame');
2343
+ };
2344
+
2345
+ /**
2346
+ * Destroys the plugin.
2347
+ */
2348
+ Video.prototype.destroy = function() {
2349
+ var handler, property;
2350
+
2351
+ this._core.$element.off('click.owl.video');
2352
+
2353
+ for (handler in this._handlers) {
2354
+ this._core.$element.off(handler, this._handlers[handler]);
2355
+ }
2356
+ for (property in Object.getOwnPropertyNames(this)) {
2357
+ typeof this[property] != 'function' && (this[property] = null);
2358
+ }
2359
+ };
2360
+
2361
+ $.fn.owlCarousel.Constructor.Plugins.Video = Video;
2362
+
2363
+ })(window.Zepto || window.jQuery, window, document);
2364
+
2365
+ /**
2366
+ * Animate Plugin
2367
+ * @version 2.1.0
2368
+ * @author Bartosz Wojciechowski
2369
+ * @author David Deutsch
2370
+ * @license The MIT License (MIT)
2371
+ */
2372
+ ;(function($, window, document, undefined) {
2373
+
2374
+ /**
2375
+ * Creates the animate plugin.
2376
+ * @class The Navigation Plugin
2377
+ * @param {Owl} scope - The Owl Carousel
2378
+ */
2379
+ var Animate = function(scope) {
2380
+ this.core = scope;
2381
+ this.core.options = $.extend({}, Animate.Defaults, this.core.options);
2382
+ this.swapping = true;
2383
+ this.previous = undefined;
2384
+ this.next = undefined;
2385
+
2386
+ this.handlers = {
2387
+ 'change.owl.carousel': $.proxy(function(e) {
2388
+ if (e.namespace && e.property.name == 'position') {
2389
+ this.previous = this.core.current();
2390
+ this.next = e.property.value;
2391
+ }
2392
+ }, this),
2393
+ 'drag.owl.carousel dragged.owl.carousel translated.owl.carousel': $.proxy(function(e) {
2394
+ if (e.namespace) {
2395
+ this.swapping = e.type == 'translated';
2396
+ }
2397
+ }, this),
2398
+ 'translate.owl.carousel': $.proxy(function(e) {
2399
+ if (e.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn)) {
2400
+ this.swap();
2401
+ }
2402
+ }, this)
2403
+ };
2404
+
2405
+ this.core.$element.on(this.handlers);
2406
+ };
2407
+
2408
+ /**
2409
+ * Default options.
2410
+ * @public
2411
+ */
2412
+ Animate.Defaults = {
2413
+ animateOut: false,
2414
+ animateIn: false
2415
+ };
2416
+
2417
+ /**
2418
+ * Toggles the animation classes whenever an translations starts.
2419
+ * @protected
2420
+ * @returns {Boolean|undefined}
2421
+ */
2422
+ Animate.prototype.swap = function() {
2423
+
2424
+ if (this.core.settings.items !== 1) {
2425
+ return;
2426
+ }
2427
+
2428
+ if (!$.support.animation || !$.support.transition) {
2429
+ return;
2430
+ }
2431
+
2432
+ this.core.speed(0);
2433
+
2434
+ var left,
2435
+ clear = $.proxy(this.clear, this),
2436
+ previous = this.core.$stage.children().eq(this.previous),
2437
+ next = this.core.$stage.children().eq(this.next),
2438
+ incoming = this.core.settings.animateIn,
2439
+ outgoing = this.core.settings.animateOut;
2440
+
2441
+ if (this.core.current() === this.previous) {
2442
+ return;
2443
+ }
2444
+
2445
+ if (outgoing) {
2446
+ left = this.core.coordinates(this.previous) - this.core.coordinates(this.next);
2447
+ previous.one($.support.animation.end, clear)
2448
+ .css( { 'left': left + 'px' } )
2449
+ .addClass('animated owl-animated-out')
2450
+ .addClass(outgoing);
2451
+ }
2452
+
2453
+ if (incoming) {
2454
+ next.one($.support.animation.end, clear)
2455
+ .addClass('animated owl-animated-in')
2456
+ .addClass(incoming);
2457
+ }
2458
+ };
2459
+
2460
+ Animate.prototype.clear = function(e) {
2461
+ $(e.target).css( { 'left': '' } )
2462
+ .removeClass('animated owl-animated-out owl-animated-in')
2463
+ .removeClass(this.core.settings.animateIn)
2464
+ .removeClass(this.core.settings.animateOut);
2465
+ this.core.onTransitionEnd();
2466
+ };
2467
+
2468
+ /**
2469
+ * Destroys the plugin.
2470
+ * @public
2471
+ */
2472
+ Animate.prototype.destroy = function() {
2473
+ var handler, property;
2474
+
2475
+ for (handler in this.handlers) {
2476
+ this.core.$element.off(handler, this.handlers[handler]);
2477
+ }
2478
+ for (property in Object.getOwnPropertyNames(this)) {
2479
+ typeof this[property] != 'function' && (this[property] = null);
2480
+ }
2481
+ };
2482
+
2483
+ $.fn.owlCarousel.Constructor.Plugins.Animate = Animate;
2484
+
2485
+ })(window.Zepto || window.jQuery, window, document);
2486
+
2487
+ /**
2488
+ * Autoplay Plugin
2489
+ * @version 2.1.0
2490
+ * @author Bartosz Wojciechowski
2491
+ * @author Artus Kolanowski
2492
+ * @author David Deutsch
2493
+ * @license The MIT License (MIT)
2494
+ */
2495
+ ;(function($, window, document, undefined) {
2496
+
2497
+ /**
2498
+ * Creates the autoplay plugin.
2499
+ * @class The Autoplay Plugin
2500
+ * @param {Owl} scope - The Owl Carousel
2501
+ */
2502
+ var Autoplay = function(carousel) {
2503
+ /**
2504
+ * Reference to the core.
2505
+ * @protected
2506
+ * @type {Owl}
2507
+ */
2508
+ this._core = carousel;
2509
+
2510
+ /**
2511
+ * The autoplay timeout.
2512
+ * @type {Timeout}
2513
+ */
2514
+ this._timeout = null;
2515
+
2516
+ /**
2517
+ * Indicates whenever the autoplay is paused.
2518
+ * @type {Boolean}
2519
+ */
2520
+ this._paused = false;
2521
+
2522
+ /**
2523
+ * All event handlers.
2524
+ * @protected
2525
+ * @type {Object}
2526
+ */
2527
+ this._handlers = {
2528
+ 'changed.owl.carousel': $.proxy(function(e) {
2529
+ if (e.namespace && e.property.name === 'settings') {
2530
+ if (this._core.settings.autoplay) {
2531
+ this.play();
2532
+ } else {
2533
+ this.stop();
2534
+ }
2535
+ } else if (e.namespace && e.property.name === 'position') {
2536
+ //console.log('play?', e);
2537
+ if (this._core.settings.autoplay) {
2538
+ this._setAutoPlayInterval();
2539
+ }
2540
+ }
2541
+ }, this),
2542
+ 'initialized.owl.carousel': $.proxy(function(e) {
2543
+ if (e.namespace && this._core.settings.autoplay) {
2544
+ this.play();
2545
+ }
2546
+ }, this),
2547
+ 'play.owl.autoplay': $.proxy(function(e, t, s) {
2548
+ if (e.namespace) {
2549
+ this.play(t, s);
2550
+ }
2551
+ }, this),
2552
+ 'stop.owl.autoplay': $.proxy(function(e) {
2553
+ if (e.namespace) {
2554
+ this.stop();
2555
+ }
2556
+ }, this),
2557
+ 'mouseover.owl.autoplay': $.proxy(function() {
2558
+ if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
2559
+ this.pause();
2560
+ }
2561
+ }, this),
2562
+ 'mouseleave.owl.autoplay': $.proxy(function() {
2563
+ if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
2564
+ this.play();
2565
+ }
2566
+ }, this),
2567
+ 'touchstart.owl.core': $.proxy(function() {
2568
+ if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
2569
+ this.pause();
2570
+ }
2571
+ }, this),
2572
+ 'touchend.owl.core': $.proxy(function() {
2573
+ if (this._core.settings.autoplayHoverPause) {
2574
+ this.play();
2575
+ }
2576
+ }, this)
2577
+ };
2578
+
2579
+ // register event handlers
2580
+ this._core.$element.on(this._handlers);
2581
+
2582
+ // set default options
2583
+ this._core.options = $.extend({}, Autoplay.Defaults, this._core.options);
2584
+ };
2585
+
2586
+ /**
2587
+ * Default options.
2588
+ * @public
2589
+ */
2590
+ Autoplay.Defaults = {
2591
+ autoplay: false,
2592
+ autoplayTimeout: 5000,
2593
+ autoplayHoverPause: false,
2594
+ autoplaySpeed: false
2595
+ };
2596
+
2597
+ /**
2598
+ * Starts the autoplay.
2599
+ * @public
2600
+ * @param {Number} [timeout] - The interval before the next animation starts.
2601
+ * @param {Number} [speed] - The animation speed for the animations.
2602
+ */
2603
+ Autoplay.prototype.play = function(timeout, speed) {
2604
+ this._paused = false;
2605
+
2606
+ if (this._core.is('rotating')) {
2607
+ return;
2608
+ }
2609
+
2610
+ this._core.enter('rotating');
2611
+
2612
+ this._setAutoPlayInterval();
2613
+ };
2614
+
2615
+ /**
2616
+ * Gets a new timeout
2617
+ * @private
2618
+ * @param {Number} [timeout] - The interval before the next animation starts.
2619
+ * @param {Number} [speed] - The animation speed for the animations.
2620
+ * @return {Timeout}
2621
+ */
2622
+ Autoplay.prototype._getNextTimeout = function(timeout, speed) {
2623
+ if ( this._timeout ) {
2624
+ window.clearTimeout(this._timeout);
2625
+ }
2626
+ return window.setTimeout($.proxy(function() {
2627
+ if (this._paused || this._core.is('busy') || this._core.is('interacting') || document.hidden) {
2628
+ return;
2629
+ }
2630
+ this._core.next(speed || this._core.settings.autoplaySpeed);
2631
+ }, this), timeout || this._core.settings.autoplayTimeout);
2632
+ };
2633
+
2634
+ /**
2635
+ * Sets autoplay in motion.
2636
+ * @private
2637
+ */
2638
+ Autoplay.prototype._setAutoPlayInterval = function() {
2639
+ this._timeout = this._getNextTimeout();
2640
+ };
2641
+
2642
+ /**
2643
+ * Stops the autoplay.
2644
+ * @public
2645
+ */
2646
+ Autoplay.prototype.stop = function() {
2647
+ if (!this._core.is('rotating')) {
2648
+ return;
2649
+ }
2650
+
2651
+ window.clearTimeout(this._timeout);
2652
+ this._core.leave('rotating');
2653
+ };
2654
+
2655
+ /**
2656
+ * Stops the autoplay.
2657
+ * @public
2658
+ */
2659
+ Autoplay.prototype.pause = function() {
2660
+ if (!this._core.is('rotating')) {
2661
+ return;
2662
+ }
2663
+
2664
+ this._paused = true;
2665
+ };
2666
+
2667
+ /**
2668
+ * Destroys the plugin.
2669
+ */
2670
+ Autoplay.prototype.destroy = function() {
2671
+ var handler, property;
2672
+
2673
+ this.stop();
2674
+
2675
+ for (handler in this._handlers) {
2676
+ this._core.$element.off(handler, this._handlers[handler]);
2677
+ }
2678
+ for (property in Object.getOwnPropertyNames(this)) {
2679
+ typeof this[property] != 'function' && (this[property] = null);
2680
+ }
2681
+ };
2682
+
2683
+ $.fn.owlCarousel.Constructor.Plugins.autoplay = Autoplay;
2684
+
2685
+ })(window.Zepto || window.jQuery, window, document);
2686
+
2687
+ /**
2688
+ * Navigation Plugin
2689
+ * @version 2.1.0
2690
+ * @author Artus Kolanowski
2691
+ * @author David Deutsch
2692
+ * @license The MIT License (MIT)
2693
+ */
2694
+ ;(function($, window, document, undefined) {
2695
+ 'use strict';
2696
+
2697
+ /**
2698
+ * Creates the navigation plugin.
2699
+ * @class The Navigation Plugin
2700
+ * @param {Owl} carousel - The Owl Carousel.
2701
+ */
2702
+ var Navigation = function(carousel) {
2703
+ /**
2704
+ * Reference to the core.
2705
+ * @protected
2706
+ * @type {Owl}
2707
+ */
2708
+ this._core = carousel;
2709
+
2710
+ /**
2711
+ * Indicates whether the plugin is initialized or not.
2712
+ * @protected
2713
+ * @type {Boolean}
2714
+ */
2715
+ this._initialized = false;
2716
+
2717
+ /**
2718
+ * The current paging indexes.
2719
+ * @protected
2720
+ * @type {Array}
2721
+ */
2722
+ this._pages = [];
2723
+
2724
+ /**
2725
+ * All DOM elements of the user interface.
2726
+ * @protected
2727
+ * @type {Object}
2728
+ */
2729
+ this._controls = {};
2730
+
2731
+ /**
2732
+ * Markup for an indicator.
2733
+ * @protected
2734
+ * @type {Array.<String>}
2735
+ */
2736
+ this._templates = [];
2737
+
2738
+ /**
2739
+ * The carousel element.
2740
+ * @type {jQuery}
2741
+ */
2742
+ this.$element = this._core.$element;
2743
+
2744
+ /**
2745
+ * Overridden methods of the carousel.
2746
+ * @protected
2747
+ * @type {Object}
2748
+ */
2749
+ this._overrides = {
2750
+ next: this._core.next,
2751
+ prev: this._core.prev,
2752
+ to: this._core.to
2753
+ };
2754
+
2755
+ /**
2756
+ * All event handlers.
2757
+ * @protected
2758
+ * @type {Object}
2759
+ */
2760
+ this._handlers = {
2761
+ 'prepared.owl.carousel': $.proxy(function(e) {
2762
+ if (e.namespace && this._core.settings.dotsData) {
2763
+ this._templates.push('<div class="' + this._core.settings.dotClass + '">' +
2764
+ $(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot') + '</div>');
2765
+ }
2766
+ }, this),
2767
+ 'added.owl.carousel': $.proxy(function(e) {
2768
+ if (e.namespace && this._core.settings.dotsData) {
2769
+ this._templates.splice(e.position, 0, this._templates.pop());
2770
+ }
2771
+ }, this),
2772
+ 'remove.owl.carousel': $.proxy(function(e) {
2773
+ if (e.namespace && this._core.settings.dotsData) {
2774
+ this._templates.splice(e.position, 1);
2775
+ }
2776
+ }, this),
2777
+ 'changed.owl.carousel': $.proxy(function(e) {
2778
+ if (e.namespace && e.property.name == 'position') {
2779
+ this.draw();
2780
+ }
2781
+ }, this),
2782
+ 'initialized.owl.carousel': $.proxy(function(e) {
2783
+ if (e.namespace && !this._initialized) {
2784
+ this._core.trigger('initialize', null, 'navigation');
2785
+ this.initialize();
2786
+ this.update();
2787
+ this.draw();
2788
+ this._initialized = true;
2789
+ this._core.trigger('initialized', null, 'navigation');
2790
+ }
2791
+ }, this),
2792
+ 'refreshed.owl.carousel': $.proxy(function(e) {
2793
+ if (e.namespace && this._initialized) {
2794
+ this._core.trigger('refresh', null, 'navigation');
2795
+ this.update();
2796
+ this.draw();
2797
+ this._core.trigger('refreshed', null, 'navigation');
2798
+ }
2799
+ }, this)
2800
+ };
2801
+
2802
+ // set default options
2803
+ this._core.options = $.extend({}, Navigation.Defaults, this._core.options);
2804
+
2805
+ // register event handlers
2806
+ this.$element.on(this._handlers);
2807
+ };
2808
+
2809
+ /**
2810
+ * Default options.
2811
+ * @public
2812
+ * @todo Rename `slideBy` to `navBy`
2813
+ */
2814
+ Navigation.Defaults = {
2815
+ nav: false,
2816
+ navText: [ 'prev', 'next' ],
2817
+ navSpeed: false,
2818
+ navElement: 'div',
2819
+ navContainer: false,
2820
+ navContainerClass: 'owl-nav',
2821
+ navClass: [ 'owl-prev', 'owl-next' ],
2822
+ slideBy: 1,
2823
+ dotClass: 'owl-dot',
2824
+ dotsClass: 'owl-dots',
2825
+ dots: true,
2826
+ dotsEach: false,
2827
+ dotsData: false,
2828
+ dotsSpeed: false,
2829
+ dotsContainer: false
2830
+ };
2831
+
2832
+ /**
2833
+ * Initializes the layout of the plugin and extends the carousel.
2834
+ * @protected
2835
+ */
2836
+ Navigation.prototype.initialize = function() {
2837
+ var override,
2838
+ settings = this._core.settings;
2839
+
2840
+ // create DOM structure for relative navigation
2841
+ this._controls.$relative = (settings.navContainer ? $(settings.navContainer)
2842
+ : $('<div>').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled');
2843
+
2844
+ this._controls.$previous = $('<' + settings.navElement + '>')
2845
+ .addClass(settings.navClass[0])
2846
+ .html(settings.navText[0])
2847
+ .prependTo(this._controls.$relative)
2848
+ .on('click', $.proxy(function(e) {
2849
+ this.prev(settings.navSpeed);
2850
+ }, this));
2851
+ this._controls.$next = $('<' + settings.navElement + '>')
2852
+ .addClass(settings.navClass[1])
2853
+ .html(settings.navText[1])
2854
+ .appendTo(this._controls.$relative)
2855
+ .on('click', $.proxy(function(e) {
2856
+ this.next(settings.navSpeed);
2857
+ }, this));
2858
+
2859
+ // create DOM structure for absolute navigation
2860
+ if (!settings.dotsData) {
2861
+ this._templates = [ $('<div>')
2862
+ .addClass(settings.dotClass)
2863
+ .append($('<span>'))
2864
+ .prop('outerHTML') ];
2865
+ }
2866
+
2867
+ this._controls.$absolute = (settings.dotsContainer ? $(settings.dotsContainer)
2868
+ : $('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');
2869
+
2870
+ this._controls.$absolute.on('click', 'div', $.proxy(function(e) {
2871
+ var index = $(e.target).parent().is(this._controls.$absolute)
2872
+ ? $(e.target).index() : $(e.target).parent().index();
2873
+
2874
+ e.preventDefault();
2875
+
2876
+ this.to(index, settings.dotsSpeed);
2877
+ }, this));
2878
+
2879
+ // override public methods of the carousel
2880
+ for (override in this._overrides) {
2881
+ this._core[override] = $.proxy(this[override], this);
2882
+ }
2883
+ };
2884
+
2885
+ /**
2886
+ * Destroys the plugin.
2887
+ * @protected
2888
+ */
2889
+ Navigation.prototype.destroy = function() {
2890
+ var handler, control, property, override;
2891
+
2892
+ for (handler in this._handlers) {
2893
+ this.$element.off(handler, this._handlers[handler]);
2894
+ }
2895
+ for (control in this._controls) {
2896
+ this._controls[control].remove();
2897
+ }
2898
+ for (override in this.overides) {
2899
+ this._core[override] = this._overrides[override];
2900
+ }
2901
+ for (property in Object.getOwnPropertyNames(this)) {
2902
+ typeof this[property] != 'function' && (this[property] = null);
2903
+ }
2904
+ };
2905
+
2906
+ /**
2907
+ * Updates the internal state.
2908
+ * @protected
2909
+ */
2910
+ Navigation.prototype.update = function() {
2911
+ var i, j, k,
2912
+ lower = this._core.clones().length / 2,
2913
+ upper = lower + this._core.items().length,
2914
+ maximum = this._core.maximum(true),
2915
+ settings = this._core.settings,
2916
+ size = settings.center || settings.autoWidth || settings.dotsData
2917
+ ? 1 : settings.dotsEach || settings.items;
2918
+
2919
+ if (settings.slideBy !== 'page') {
2920
+ settings.slideBy = Math.min(settings.slideBy, settings.items);
2921
+ }
2922
+
2923
+ if (settings.dots || settings.slideBy == 'page') {
2924
+ this._pages = [];
2925
+
2926
+ for (i = lower, j = 0, k = 0; i < upper; i++) {
2927
+ if (j >= size || j === 0) {
2928
+ this._pages.push({
2929
+ start: Math.min(maximum, i - lower),
2930
+ end: i - lower + size - 1
2931
+ });
2932
+ if (Math.min(maximum, i - lower) === maximum) {
2933
+ break;
2934
+ }
2935
+ j = 0, ++k;
2936
+ }
2937
+ j += this._core.mergers(this._core.relative(i));
2938
+ }
2939
+ }
2940
+ };
2941
+
2942
+ /**
2943
+ * Draws the user interface.
2944
+ * @todo The option `dotsData` wont work.
2945
+ * @protected
2946
+ */
2947
+ Navigation.prototype.draw = function() {
2948
+ var difference,
2949
+ settings = this._core.settings,
2950
+ disabled = this._core.items().length <= settings.items,
2951
+ index = this._core.relative(this._core.current()),
2952
+ loop = settings.loop || settings.rewind;
2953
+
2954
+ this._controls.$relative.toggleClass('disabled', !settings.nav || disabled);
2955
+
2956
+ if (settings.nav) {
2957
+ this._controls.$previous.toggleClass('disabled', !loop && index <= this._core.minimum(true));
2958
+ this._controls.$next.toggleClass('disabled', !loop && index >= this._core.maximum(true));
2959
+ }
2960
+
2961
+ this._controls.$absolute.toggleClass('disabled', !settings.dots || disabled);
2962
+
2963
+ if (settings.dots) {
2964
+ difference = this._pages.length - this._controls.$absolute.children().length;
2965
+
2966
+ if (settings.dotsData && difference !== 0) {
2967
+ this._controls.$absolute.html(this._templates.join(''));
2968
+ } else if (difference > 0) {
2969
+ this._controls.$absolute.append(new Array(difference + 1).join(this._templates[0]));
2970
+ } else if (difference < 0) {
2971
+ this._controls.$absolute.children().slice(difference).remove();
2972
+ }
2973
+
2974
+ this._controls.$absolute.find('.active').removeClass('active');
2975
+ this._controls.$absolute.children().eq($.inArray(this.current(), this._pages)).addClass('active');
2976
+ }
2977
+ };
2978
+
2979
+ /**
2980
+ * Extends event data.
2981
+ * @protected
2982
+ * @param {Event} event - The event object which gets thrown.
2983
+ */
2984
+ Navigation.prototype.onTrigger = function(event) {
2985
+ var settings = this._core.settings;
2986
+
2987
+ event.page = {
2988
+ index: $.inArray(this.current(), this._pages),
2989
+ count: this._pages.length,
2990
+ size: settings && (settings.center || settings.autoWidth || settings.dotsData
2991
+ ? 1 : settings.dotsEach || settings.items)
2992
+ };
2993
+ };
2994
+
2995
+ /**
2996
+ * Gets the current page position of the carousel.
2997
+ * @protected
2998
+ * @returns {Number}
2999
+ */
3000
+ Navigation.prototype.current = function() {
3001
+ var current = this._core.relative(this._core.current());
3002
+ return $.grep(this._pages, $.proxy(function(page, index) {
3003
+ return page.start <= current && page.end >= current;
3004
+ }, this)).pop();
3005
+ };
3006
+
3007
+ /**
3008
+ * Gets the current succesor/predecessor position.
3009
+ * @protected
3010
+ * @returns {Number}
3011
+ */
3012
+ Navigation.prototype.getPosition = function(successor) {
3013
+ var position, length,
3014
+ settings = this._core.settings;
3015
+
3016
+ if (settings.slideBy == 'page') {
3017
+ position = $.inArray(this.current(), this._pages);
3018
+ length = this._pages.length;
3019
+ successor ? ++position : --position;
3020
+ position = this._pages[((position % length) + length) % length].start;
3021
+ } else {
3022
+ position = this._core.relative(this._core.current());
3023
+ length = this._core.items().length;
3024
+ successor ? position += settings.slideBy : position -= settings.slideBy;
3025
+ }
3026
+
3027
+ return position;
3028
+ };
3029
+
3030
+ /**
3031
+ * Slides to the next item or page.
3032
+ * @public
3033
+ * @param {Number} [speed=false] - The time in milliseconds for the transition.
3034
+ */
3035
+ Navigation.prototype.next = function(speed) {
3036
+ $.proxy(this._overrides.to, this._core)(this.getPosition(true), speed);
3037
+ };
3038
+
3039
+ /**
3040
+ * Slides to the previous item or page.
3041
+ * @public
3042
+ * @param {Number} [speed=false] - The time in milliseconds for the transition.
3043
+ */
3044
+ Navigation.prototype.prev = function(speed) {
3045
+ $.proxy(this._overrides.to, this._core)(this.getPosition(false), speed);
3046
+ };
3047
+
3048
+ /**
3049
+ * Slides to the specified item or page.
3050
+ * @public
3051
+ * @param {Number} position - The position of the item or page.
3052
+ * @param {Number} [speed] - The time in milliseconds for the transition.
3053
+ * @param {Boolean} [standard=false] - Whether to use the standard behaviour or not.
3054
+ */
3055
+ Navigation.prototype.to = function(position, speed, standard) {
3056
+ var length;
3057
+
3058
+ if (!standard && this._pages.length) {
3059
+ length = this._pages.length;
3060
+ $.proxy(this._overrides.to, this._core)(this._pages[((position % length) + length) % length].start, speed);
3061
+ } else {
3062
+ $.proxy(this._overrides.to, this._core)(position, speed);
3063
+ }
3064
+ };
3065
+
3066
+ $.fn.owlCarousel.Constructor.Plugins.Navigation = Navigation;
3067
+
3068
+ })(window.Zepto || window.jQuery, window, document);
3069
+
3070
+ /**
3071
+ * Hash Plugin
3072
+ * @version 2.1.0
3073
+ * @author Artus Kolanowski
3074
+ * @author David Deutsch
3075
+ * @license The MIT License (MIT)
3076
+ */
3077
+ ;(function($, window, document, undefined) {
3078
+ 'use strict';
3079
+
3080
+ /**
3081
+ * Creates the hash plugin.
3082
+ * @class The Hash Plugin
3083
+ * @param {Owl} carousel - The Owl Carousel
3084
+ */
3085
+ var Hash = function(carousel) {
3086
+ /**
3087
+ * Reference to the core.
3088
+ * @protected
3089
+ * @type {Owl}
3090
+ */
3091
+ this._core = carousel;
3092
+
3093
+ /**
3094
+ * Hash index for the items.
3095
+ * @protected
3096
+ * @type {Object}
3097
+ */
3098
+ this._hashes = {};
3099
+
3100
+ /**
3101
+ * The carousel element.
3102
+ * @type {jQuery}
3103
+ */
3104
+ this.$element = this._core.$element;
3105
+
3106
+ /**
3107
+ * All event handlers.
3108
+ * @protected
3109
+ * @type {Object}
3110
+ */
3111
+ this._handlers = {
3112
+ 'initialized.owl.carousel': $.proxy(function(e) {
3113
+ if (e.namespace && this._core.settings.startPosition === 'URLHash') {
3114
+ $(window).trigger('hashchange.owl.navigation');
3115
+ }
3116
+ }, this),
3117
+ 'prepared.owl.carousel': $.proxy(function(e) {
3118
+ if (e.namespace) {
3119
+ var hash = $(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash');
3120
+
3121
+ if (!hash) {
3122
+ return;
3123
+ }
3124
+
3125
+ this._hashes[hash] = e.content;
3126
+ }
3127
+ }, this),
3128
+ 'changed.owl.carousel': $.proxy(function(e) {
3129
+ if (e.namespace && e.property.name === 'position') {
3130
+ var current = this._core.items(this._core.relative(this._core.current())),
3131
+ hash = $.map(this._hashes, function(item, hash) {
3132
+ return item === current ? hash : null;
3133
+ }).join();
3134
+
3135
+ if (!hash || window.location.hash.slice(1) === hash) {
3136
+ return;
3137
+ }
3138
+
3139
+ window.location.hash = hash;
3140
+ }
3141
+ }, this)
3142
+ };
3143
+
3144
+ // set default options
3145
+ this._core.options = $.extend({}, Hash.Defaults, this._core.options);
3146
+
3147
+ // register the event handlers
3148
+ this.$element.on(this._handlers);
3149
+
3150
+ // register event listener for hash navigation
3151
+ $(window).on('hashchange.owl.navigation', $.proxy(function(e) {
3152
+ var hash = window.location.hash.substring(1),
3153
+ items = this._core.$stage.children(),
3154
+ position = this._hashes[hash] && items.index(this._hashes[hash]);
3155
+
3156
+ if (position === undefined || position === this._core.current()) {
3157
+ return;
3158
+ }
3159
+
3160
+ this._core.to(this._core.relative(position), false, true);
3161
+ }, this));
3162
+ };
3163
+
3164
+ /**
3165
+ * Default options.
3166
+ * @public
3167
+ */
3168
+ Hash.Defaults = {
3169
+ URLhashListener: false
3170
+ };
3171
+
3172
+ /**
3173
+ * Destroys the plugin.
3174
+ * @public
3175
+ */
3176
+ Hash.prototype.destroy = function() {
3177
+ var handler, property;
3178
+
3179
+ $(window).off('hashchange.owl.navigation');
3180
+
3181
+ for (handler in this._handlers) {
3182
+ this._core.$element.off(handler, this._handlers[handler]);
3183
+ }
3184
+ for (property in Object.getOwnPropertyNames(this)) {
3185
+ typeof this[property] != 'function' && (this[property] = null);
3186
+ }
3187
+ };
3188
+
3189
+ $.fn.owlCarousel.Constructor.Plugins.Hash = Hash;
3190
+
3191
+ })(window.Zepto || window.jQuery, window, document);
3192
+
3193
+ /**
3194
+ * Support Plugin
3195
+ *
3196
+ * @version 2.1.0
3197
+ * @author Vivid Planet Software GmbH
3198
+ * @author Artus Kolanowski
3199
+ * @author David Deutsch
3200
+ * @license The MIT License (MIT)
3201
+ */
3202
+ ;(function($, window, document, undefined) {
3203
+
3204
+ var style = $('<support>').get(0).style,
3205
+ prefixes = 'Webkit Moz O ms'.split(' '),
3206
+ events = {
3207
+ transition: {
3208
+ end: {
3209
+ WebkitTransition: 'webkitTransitionEnd',
3210
+ MozTransition: 'transitionend',
3211
+ OTransition: 'oTransitionEnd',
3212
+ transition: 'transitionend'
3213
+ }
3214
+ },
3215
+ animation: {
3216
+ end: {
3217
+ WebkitAnimation: 'webkitAnimationEnd',
3218
+ MozAnimation: 'animationend',
3219
+ OAnimation: 'oAnimationEnd',
3220
+ animation: 'animationend'
3221
+ }
3222
+ }
3223
+ },
3224
+ tests = {
3225
+ csstransforms: function() {
3226
+ return !!test('transform');
3227
+ },
3228
+ csstransforms3d: function() {
3229
+ return !!test('perspective');
3230
+ },
3231
+ csstransitions: function() {
3232
+ return !!test('transition');
3233
+ },
3234
+ cssanimations: function() {
3235
+ return !!test('animation');
3236
+ }
3237
+ };
3238
+
3239
+ function test(property, prefixed) {
3240
+ var result = false,
3241
+ upper = property.charAt(0).toUpperCase() + property.slice(1);
3242
+
3243
+ $.each((property + ' ' + prefixes.join(upper + ' ') + upper).split(' '), function(i, property) {
3244
+ if (style[property] !== undefined) {
3245
+ result = prefixed ? property : true;
3246
+ return false;
3247
+ }
3248
+ });
3249
+
3250
+ return result;
3251
+ }
3252
+
3253
+ function prefixed(property) {
3254
+ return test(property, true);
3255
+ }
3256
+
3257
+ if (tests.csstransitions()) {
3258
+ /* jshint -W053 */
3259
+ $.support.transition = new String(prefixed('transition'))
3260
+ $.support.transition.end = events.transition.end[ $.support.transition ];
3261
+ }
3262
+
3263
+ if (tests.cssanimations()) {
3264
+ /* jshint -W053 */
3265
+ $.support.animation = new String(prefixed('animation'))
3266
+ $.support.animation.end = events.animation.end[ $.support.animation ];
3267
+ }
3268
+
3269
+ if (tests.csstransforms()) {
3270
+ /* jshint -W053 */
3271
+ $.support.transform = new String(prefixed('transform'));
3272
+ $.support.transform3d = tests.csstransforms3d();
3273
+ }
3274
+
3275
+ })(window.Zepto || window.jQuery, window, document);
elanzalite/customizer/custom-customizer.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists( 'elanzalite_customizer_registers' ) ) :
3
+ function elanzalite_customizer_registers(){
4
+ wp_enqueue_style( 'elanzalite_customizer_style', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . '/elanzalite/customizer/customizer_styles.css','', THEMEHUNK_CUSTOMIZER_VERSION, 'all' );
5
+ wp_enqueue_script( 'elanzalite_customizer_script', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . '/elanzalite/customizer/js/customizer.js', array("jquery"), '', true );
6
+ }
7
+ add_action( 'customize_controls_enqueue_scripts', 'elanzalite_customizer_registers' );
8
+ endif;
9
+ ?>
elanzalite/customizer/customizer.php ADDED
@@ -0,0 +1,3055 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function elanzalite_unlimited_customize_register( $wp_customize ) {
3
+ $palette = array('rgb(0, 0, 0, 0)',);
4
+ // =============================
5
+ // = Home Post Slider Settings =
6
+ // =============================
7
+ $wp_customize->add_section('slider_option', array(
8
+ 'title' => __('Hero Post Slider', 'elanzalite'),
9
+ 'priority' => 5,
10
+ ));
11
+ $wp_customize->add_setting('more_sldr_1', array(
12
+ 'sanitize_callback' => 'themehunk_sanitize_text',
13
+ ));
14
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'more_sldr_1',
15
+ array(
16
+ 'section' => 'slider_option',
17
+ 'type' => 'custom_message',
18
+ 'description' => wp_kses_post( '(For Blog Post Layout only)','elanzalite' )
19
+ )));
20
+ // Disable flex-slider
21
+ $wp_customize->add_setting( 'elanzalite_slider_disable',
22
+ array(
23
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
24
+ 'default' => '',
25
+ )
26
+ );
27
+ $wp_customize->add_control( 'elanzalite_slider_disable',
28
+ array(
29
+ 'type' => 'checkbox',
30
+ 'label' => esc_html__('Disable Post Slider ?', 'elanzalite'),
31
+ 'section' => 'slider_option',
32
+ 'description' => esc_html__('Check here to disable Post Slider.', 'elanzalite')
33
+ )
34
+ );
35
+ //= Choose All Category =
36
+ $cats = array();
37
+ $cats[0] = 'All Categories';
38
+ foreach ( get_categories() as $categories => $category ){
39
+ $cats[$category->term_id] = $category->name;
40
+ }
41
+
42
+ $wp_customize->add_setting('slider_cate', array(
43
+ 'default' => 1,
44
+ 'capability' => 'edit_theme_options',
45
+ 'sanitize_callback' => 'sanitize_text_field',
46
+ ));
47
+ $wp_customize->add_control('slider_cate', array(
48
+ 'settings' => 'slider_cate',
49
+ 'label' => 'Featured Post Category',
50
+ 'section' => 'slider_option',
51
+ 'type' => 'select',
52
+ 'choices' => $cats,
53
+ ) );
54
+ $wp_customize->add_setting('slider_count', array(
55
+ 'default' => 1,
56
+ 'capability' => 'edit_theme_options',
57
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_int',
58
+ ));
59
+ $wp_customize->add_control('slider_count', array(
60
+ 'settings' => 'slider_count',
61
+ 'label' => 'Number of Slides',
62
+ 'section' => 'slider_option',
63
+ 'type' => 'number',
64
+ 'input_attrs' => array('min' => 1,'max' => 3)
65
+ ) );
66
+
67
+ $wp_customize->add_setting( 'slider_alignment',
68
+ array(
69
+ 'sanitize_callback' => 'sanitize_text_field',
70
+ 'default' => 'slider-left',
71
+
72
+ )
73
+ );
74
+ $wp_customize->add_control( 'slider_alignment',
75
+ array(
76
+ 'type' => 'select',
77
+ 'label' => esc_html__('Text Alignment', 'elanzalite'),
78
+ 'section' => 'slider_option',
79
+ 'choices' => array(
80
+ 'slider-left' => esc_html__('Left', 'elanzalite'),
81
+ 'slider-center' => esc_html__('Center', 'elanzalite'),
82
+ 'slider-right' => esc_html__('Right', 'elanzalite'),
83
+ )
84
+ )
85
+ );
86
+
87
+
88
+ $wp_customize->add_setting('slder_ovrlay_color',
89
+ array(
90
+ 'default' => 'rgba(0, 0, 0, 0.18)',
91
+ 'type' => 'theme_mod',
92
+ 'capability' => 'edit_theme_options',
93
+
94
+ ) );
95
+
96
+ $wp_customize->add_control(
97
+ new Customize_themehunk_Color_Control($wp_customize,
98
+ 'slder_ovrlay_color',
99
+ array(
100
+ 'label' => __('Slider Overlay','elanzalite'),
101
+ 'section' => 'slider_option',
102
+ 'settings' => 'slder_ovrlay_color',
103
+ 'palette' => $palette
104
+ )
105
+ )
106
+ );
107
+ $wp_customize->add_setting('slider_title_color', array(
108
+ 'default' => '#fff',
109
+ 'capability' => 'edit_theme_options',
110
+
111
+ ));
112
+ $wp_customize->add_control(
113
+ new WP_Customize_Color_Control(
114
+ $wp_customize,
115
+ 'slider_title_color',
116
+ array(
117
+ 'label' => __( 'Post Title Color', 'elanzalite' ),
118
+ 'section' => 'slider_option',
119
+ 'settings' => 'slider_title_color',
120
+ ) ) );
121
+
122
+ $wp_customize->add_setting('slider_meta_color', array(
123
+ 'default' => '#fff',
124
+ 'capability' => 'edit_theme_options',
125
+
126
+ ));
127
+ $wp_customize->add_control(
128
+ new WP_Customize_Color_Control(
129
+ $wp_customize,
130
+ 'slider_meta_color',
131
+ array(
132
+ 'label' => __( 'Post Meta Color', 'elanzalite' ),
133
+ 'section' => 'slider_option',
134
+ 'settings' => 'slider_meta_color',
135
+ ) ) );
136
+
137
+ $wp_customize->add_setting('slider_desc_color', array(
138
+ 'default' => '#fff',
139
+ 'capability' => 'edit_theme_options',
140
+
141
+ ));
142
+ $wp_customize->add_control(
143
+ new WP_Customize_Color_Control(
144
+ $wp_customize,
145
+ 'slider_desc_color',
146
+ array(
147
+ 'label' => __( 'Post Description Color', 'elanzalite' ),
148
+ 'section' => 'slider_option',
149
+ 'settings' => 'slider_desc_color',
150
+ ) ) );
151
+
152
+ //break
153
+ $wp_customize->add_setting('sdr_btn_break_color', array(
154
+ 'sanitize_callback' => 'sanitize_text_field'
155
+ ));
156
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
157
+ $wp_customize,'sdr_btn_break_color',array(
158
+ 'section' => 'slider_option',
159
+ 'description' => __( 'Button Color', 'elanzalite' ),
160
+ 'type' => 'content',
161
+ 'input_attrs' => array('divider' => true),
162
+ )));
163
+ // slider-button-style
164
+ $wp_customize->add_setting( 'slidr_button',
165
+ array(
166
+ 'sanitize_callback' => 'sanitize_text_field',
167
+ 'default' => 'default',
168
+ )
169
+ );
170
+ $wp_customize->add_control('slidr_button',
171
+ array(
172
+ 'type' => 'select',
173
+ 'label' => esc_html__('Button', 'elanzalite'),
174
+ 'description' => esc_html__('Choose button style for slider.', 'elanzalite'),
175
+ 'section' => 'slider_option',
176
+ 'choices' => array(
177
+ 'default' => esc_html__('Button style 1', 'elanzalite'),
178
+ 'button-one' => esc_html__('Button style 2', 'elanzalite'),
179
+ 'button-two' => esc_html__('Button style 3', 'elanzalite'),
180
+
181
+ )
182
+ )
183
+ );
184
+ $wp_customize->add_setting('slder_btn_bg_color',
185
+ array(
186
+ 'default' => 'rgba(0, 0, 0, 0)',
187
+ 'type' => 'theme_mod',
188
+ 'capability' => 'edit_theme_options',
189
+
190
+ ) );
191
+ $wp_customize->add_control(
192
+ new Customize_themehunk_Color_Control($wp_customize,
193
+ 'slder_btn_bg_color',
194
+ array(
195
+ 'label' => __('Background Color','elanzalite'),
196
+ 'section' => 'slider_option',
197
+ 'settings' => 'slder_btn_bg_color',
198
+ 'palette' => $palette
199
+ )
200
+ )
201
+ );
202
+ $wp_customize->add_setting('slider_btn_brd_color', array(
203
+ 'default' => '#fff',
204
+ 'capability' => 'edit_theme_options',
205
+
206
+ ));
207
+ $wp_customize->add_control(
208
+ new WP_Customize_Color_Control(
209
+ $wp_customize,
210
+ 'slider_btn_brd_color',
211
+ array(
212
+ 'label' => __( 'Border Color', 'elanzalite' ),
213
+ 'section' => 'slider_option',
214
+ 'settings' => 'slider_btn_brd_color',
215
+ ) ) );
216
+
217
+ $wp_customize->add_setting('slider_btn_txt_color', array(
218
+ 'default' => '#fff',
219
+ 'capability' => 'edit_theme_options',
220
+
221
+ ));
222
+ $wp_customize->add_control(
223
+ new WP_Customize_Color_Control(
224
+ $wp_customize,
225
+ 'slider_btn_txt_color',
226
+ array(
227
+ 'label' => __( 'Text Color', 'elanzalite' ),
228
+ 'section' => 'slider_option',
229
+ 'settings' => 'slider_btn_txt_color',
230
+ ) ) );
231
+ // hover
232
+ $wp_customize->add_setting('slder_btn_bg_hvr_color',
233
+ array(
234
+ 'default' => 'rgba(0, 0, 0, 0)',
235
+ 'type' => 'theme_mod',
236
+ 'capability' => 'edit_theme_options',
237
+
238
+ ) );
239
+ $wp_customize->add_control(
240
+ new Customize_themehunk_Color_Control($wp_customize,
241
+ 'slder_btn_bg_hvr_color',
242
+ array(
243
+ 'label' => __('Background Hover Color','elanzalite'),
244
+ 'section' => 'slider_option',
245
+ 'settings' => 'slder_btn_bg_hvr_color',
246
+ 'palette' => $palette
247
+ )
248
+ )
249
+ );
250
+
251
+ $wp_customize->add_setting('slider_btn_brd_hvr_color', array(
252
+ 'default' => '#fff',
253
+ 'capability' => 'edit_theme_options',
254
+
255
+ ));
256
+ $wp_customize->add_control(
257
+ new WP_Customize_Color_Control(
258
+ $wp_customize,
259
+ 'slider_btn_brd_hvr_color',
260
+ array(
261
+ 'label' => __( 'Border Hover Color', 'elanzalite' ),
262
+ 'section' => 'slider_option',
263
+ 'settings' => 'slider_btn_brd_hvr_color',
264
+ ) ) );
265
+
266
+ $wp_customize->add_setting('slider_btn_txt_hvr_color', array(
267
+ 'default' => '#fff',
268
+ 'capability' => 'edit_theme_options',
269
+
270
+ ));
271
+ $wp_customize->add_control(
272
+ new WP_Customize_Color_Control(
273
+ $wp_customize,
274
+ 'slider_btn_txt_hvr_color',
275
+ array(
276
+ 'label' => __( 'Text Hover Color', 'elanzalite' ),
277
+ 'section' => 'slider_option',
278
+ 'settings' => 'slider_btn_txt_hvr_color',
279
+ ) ) );
280
+ //******************//
281
+ // Themeoption
282
+ //******************//
283
+
284
+ $wp_customize->add_section('global_set', array(
285
+ 'title' => __('Global Setting', 'elanzalite'),
286
+ 'priority' => 1,
287
+ 'panel' => 'elanzalite_theme_options',
288
+ ));
289
+ // Disable Sticky Header
290
+ $wp_customize->add_setting( 'elanzalite_sticky_header_disable',
291
+ array(
292
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
293
+ 'default' => '',
294
+ )
295
+ );
296
+ $wp_customize->add_control( 'elanzalite_sticky_header_disable',
297
+ array(
298
+ 'type' => 'checkbox',
299
+ 'label' => esc_html__('Disable Fixed Header?', 'elanzalite'),
300
+ 'section' => 'global_set',
301
+ 'description' => esc_html__('Check here to disable Fixed header and activate Normal header.', 'elanzalite'),
302
+ 'active_callback' => 'elanzalite_is_not_magazine_page'
303
+ )
304
+ );
305
+ // Disable back to top button
306
+ $wp_customize->add_setting( 'elanzalite_backtotop_disable',
307
+ array(
308
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
309
+ 'default' => '',
310
+ )
311
+ );
312
+ $wp_customize->add_control( 'elanzalite_backtotop_disable',
313
+ array(
314
+ 'type' => 'checkbox',
315
+ 'label' => esc_html__('Disable back to top button ?', 'elanzalite'),
316
+ 'section' => 'global_set',
317
+ 'description' => esc_html__('Check here to disable Back To Top button.', 'elanzalite')
318
+ )
319
+ );
320
+ //*****************************************//
321
+ // site-color
322
+ //*****************************************//
323
+ $wp_customize->add_section('site_color', array(
324
+ 'title' => __('Global Color', 'elanzalite'),
325
+ 'priority' => 2,
326
+ 'panel' => 'elanzalite_theme_options',
327
+ ));
328
+ $wp_customize->add_setting('theme_color', array(
329
+ 'default' => '#66cda9',
330
+ 'capability' => 'edit_theme_options',
331
+
332
+ ));
333
+ $wp_customize->add_control(
334
+ new WP_Customize_Color_Control(
335
+ $wp_customize,
336
+ 'theme_color',
337
+ array(
338
+ 'label' => __( 'Theme Color', 'elanzalite' ),
339
+ 'section' => 'site_color',
340
+ 'settings' => 'theme_color',
341
+ ) ) );
342
+ // footer-bg
343
+ $wp_customize->add_setting('ftr_bg_color',
344
+ array(
345
+ 'default' => '#111',
346
+ 'type' => 'theme_mod',
347
+ 'capability' => 'edit_theme_options',
348
+
349
+ ) );
350
+
351
+ $wp_customize->add_control(
352
+ new Customize_themehunk_Color_Control($wp_customize,
353
+ 'ftr_bg_color',
354
+ array(
355
+ 'label' => __('Footer Widget Background Color','elanzalite'),
356
+ 'section' => 'site_color',
357
+ 'settings' => 'ftr_bg_color',
358
+ 'palette' => $palette
359
+ )
360
+ )
361
+ );
362
+ $wp_customize->add_setting('ftr_wgt_tl_color', array(
363
+ 'default' => '#5a5d5a',
364
+ 'capability' => 'edit_theme_options',
365
+
366
+ ));
367
+ $wp_customize->add_control(
368
+ new WP_Customize_Color_Control(
369
+ $wp_customize,
370
+ 'ftr_wgt_tl_color',
371
+ array(
372
+ 'label' => __( 'Footer Widget Title Color', 'elanzalite' ),
373
+ 'section' => 'site_color',
374
+ 'settings' => 'ftr_wgt_tl_color',
375
+ ) ) );
376
+
377
+ // copyright Background
378
+ $wp_customize->add_setting('ftr_cpybg_color',
379
+ array(
380
+ 'default' => '#111',
381
+ 'type' => 'theme_mod',
382
+ 'capability' => 'edit_theme_options',
383
+
384
+ ) );
385
+
386
+ $wp_customize->add_control(
387
+ new Customize_themehunk_Color_Control($wp_customize,
388
+ 'ftr_cpybg_color',
389
+ array(
390
+ 'label' => __('Footer Copyright Background Color','elanzalite'),
391
+ 'section' => 'site_color',
392
+ 'settings' => 'ftr_cpybg_color',
393
+ 'palette' => $palette
394
+ )
395
+ )
396
+ );
397
+ // copyright color
398
+ $wp_customize->add_setting('copy_txt_color', array(
399
+ 'default' => '#ddd',
400
+ 'capability' => 'edit_theme_options',
401
+
402
+ ));
403
+ $wp_customize->add_control(
404
+ new WP_Customize_Color_Control(
405
+ $wp_customize,
406
+ 'copy_txt_color',
407
+ array(
408
+ 'label' => __( 'Footer Copyright Text Color', 'elanzalite' ),
409
+ 'section' => 'site_color',
410
+ 'settings' => 'copy_txt_color',
411
+ ) ) );
412
+ // social icon color
413
+ $wp_customize->add_setting('social_icon_color', array(
414
+ 'default' => '#8224e3',
415
+ 'capability' => 'edit_theme_options',
416
+
417
+ ));
418
+ $wp_customize->add_control(
419
+ new WP_Customize_Color_Control(
420
+ $wp_customize,
421
+ 'social_icon_color',
422
+ array(
423
+ 'label' => __( 'Icon color', 'elanzalite' ),
424
+ 'section' => 'social_option',
425
+ 'settings' => 'social_icon_color',
426
+ ) ) );
427
+
428
+ // =============================
429
+ // = top Header Settings =
430
+ // =============================
431
+ $wp_customize->add_section('top_header_setng_option', array(
432
+ 'title' => __('Top Header Setting', 'elanzalite'),
433
+ 'priority' => 3,
434
+ 'panel' => 'elanzalite_theme_options',
435
+ ));
436
+ $wp_customize->add_setting('more_grd_lyt_11', array(
437
+ 'sanitize_callback' => 'themehunk_sanitize_text',
438
+ ));
439
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'more_grd_lyt_11',
440
+ array(
441
+ 'section' => 'top_header_setng_option',
442
+ 'type' => 'custom_message',
443
+ 'description' => wp_kses_post( 'First create a menu for showing your top header','elanzalite' )
444
+ )));
445
+ $wp_customize->add_setting( 'top_hdr_active',
446
+ array(
447
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
448
+ 'default' => '',
449
+ )
450
+ );
451
+ $wp_customize->add_control( 'top_hdr_active',
452
+ array(
453
+ 'type' => 'checkbox',
454
+ 'label' => esc_html__('Top Header Hide', 'elanzalite'),
455
+ 'section' => 'top_header_setng_option',
456
+ 'description' => esc_html__('(Check here to Disable Top Header)', 'elanzalite')
457
+ )
458
+ );
459
+ // TOP header-bg-color
460
+ $wp_customize->add_setting('top_hd_bg_color',
461
+ array(
462
+ 'default' => '#0e0e0e',
463
+ 'type' => 'theme_mod',
464
+ 'capability' => 'edit_theme_options',
465
+
466
+ ) );
467
+
468
+ $wp_customize->add_control(
469
+ new Customize_themehunk_Color_Control($wp_customize,
470
+ 'top_hd_bg_color',
471
+ array(
472
+ 'label' => __('Background Color','elanzalite'),
473
+ 'section' => 'top_header_setng_option',
474
+ 'settings' => 'top_hd_bg_color',
475
+ 'palette' => $palette
476
+ )
477
+ )
478
+ );
479
+ $wp_customize->add_setting('top_date_clr', array(
480
+ 'default' => '#fff',
481
+ 'capability' => 'edit_theme_options',
482
+
483
+ ));
484
+ $wp_customize->add_control(
485
+ new WP_Customize_Color_Control(
486
+ $wp_customize,
487
+ 'top_date_clr',
488
+ array(
489
+ 'label' => __('Date Color','elanzalite'),
490
+ 'section' => 'top_header_setng_option',
491
+ 'settings' => 'top_date_clr',
492
+ ) ) );
493
+ $wp_customize->add_setting('top_menu_clr', array(
494
+ 'default' => '#fff',
495
+ 'capability' => 'edit_theme_options',
496
+
497
+ ));
498
+ $wp_customize->add_control(
499
+ new WP_Customize_Color_Control(
500
+ $wp_customize,
501
+ 'top_menu_clr',
502
+ array(
503
+ 'label' => __('Menu Color','elanzalite'),
504
+ 'section' => 'top_header_setng_option',
505
+ 'settings' => 'top_menu_clr',
506
+ ) ) );
507
+
508
+ $wp_customize->add_setting('top_icon_clr', array(
509
+ 'default' => '#fff',
510
+ 'capability' => 'edit_theme_options',
511
+
512
+ ));
513
+ $wp_customize->add_control(
514
+ new WP_Customize_Color_Control(
515
+ $wp_customize,
516
+ 'top_icon_clr',
517
+ array(
518
+ 'label' => __('Social Icon Color','elanzalite'),
519
+ 'section' => 'top_header_setng_option',
520
+ 'settings' => 'top_icon_clr',
521
+ ) ) );
522
+ // =============================
523
+ // = Header Settings =
524
+ // =============================
525
+ $wp_customize->add_section('heaer_setng_option', array(
526
+ 'title' => __('Header Setting', 'elanzalite'),
527
+ 'priority' => 3,
528
+ 'panel' => 'elanzalite_theme_options',
529
+ ));
530
+ //header transparent
531
+ $wp_customize->add_setting( 'heaer_bg_trnsparent_active',
532
+ array(
533
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
534
+ 'default' => '1',
535
+ )
536
+ );
537
+ $wp_customize->add_control( 'heaer_bg_trnsparent_active',
538
+ array(
539
+ 'type' => 'checkbox',
540
+ 'label' => esc_html__('Header Transparent', 'elanzalite'),
541
+ 'section' => 'heaer_setng_option',
542
+ 'description' => esc_html__('(Only applied for front page template.)', 'elanzalite'),'active_callback' => 'elanzalite_is_not_magazine_page'
543
+ )
544
+ );
545
+ //header visibility
546
+ $wp_customize->add_setting( 'header_visibility_active',
547
+ array(
548
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
549
+ 'default' => '',
550
+ )
551
+ );
552
+ $wp_customize->add_control( 'header_visibility_active',
553
+ array(
554
+ 'type' => 'checkbox',
555
+ 'label' => esc_html__('Header Visibility', 'elanzalite'),
556
+ 'section' => 'heaer_setng_option',
557
+ 'description' => esc_html__('(Only applied for front page template.)', 'elanzalite'),'active_callback' => 'elanzalite_is_not_magazine_page'
558
+ )
559
+ );
560
+ // header-bg-color
561
+ $wp_customize->add_setting('hd_bg_color',
562
+ array(
563
+ 'default' => '',
564
+ 'type' => 'theme_mod',
565
+ 'capability' => 'edit_theme_options',
566
+
567
+ ) );
568
+
569
+ $wp_customize->add_control(
570
+ new Customize_themehunk_Color_Control($wp_customize,
571
+ 'hd_bg_color',
572
+ array(
573
+ 'label' => __('Header Background Color','elanzalite'),
574
+ 'section' => 'heaer_setng_option',
575
+ 'settings' => 'hd_bg_color',
576
+ 'active_callback' => 'elanzalite_is_not_magazine_page',
577
+ 'palette' => $palette,
578
+
579
+ )
580
+ )
581
+ );
582
+ // header-bg-shrink-color
583
+ $wp_customize->add_setting('hd_bg_shr_color',
584
+ array(
585
+ 'default' => 'rgba(255, 255, 255, 0.95)',
586
+ 'type' => 'theme_mod',
587
+ 'capability' => 'edit_theme_options',
588
+
589
+ ) );
590
+
591
+ $wp_customize->add_control(
592
+ new Customize_themehunk_Color_Control($wp_customize,
593
+ 'hd_bg_shr_color',
594
+ array(
595
+ 'label' => __('Header Shrink Background Color','elanzalite'),
596
+ 'section' => 'heaer_setng_option',
597
+ 'settings' => 'hd_bg_shr_color',
598
+ 'active_callback' => 'elanzalite_is_not_magazine_page',
599
+ 'palette' => $palette
600
+ )
601
+ )
602
+ );
603
+ // title
604
+ $wp_customize->add_setting('site_title_color', array(
605
+ 'default' => '#fff',
606
+ 'capability' => 'edit_theme_options',
607
+
608
+ ));
609
+ $wp_customize->add_control(
610
+ new WP_Customize_Color_Control(
611
+ $wp_customize,
612
+ 'site_title_color',
613
+ array(
614
+ 'label' => __('Site Title Color','elanzalite'),
615
+ 'section' => 'heaer_setng_option',
616
+ 'settings' => 'site_title_color',
617
+ ) ) );
618
+
619
+ // menu
620
+ $wp_customize->add_setting('hd_menu_color', array(
621
+ 'default' => '#606060',
622
+ 'capability' => 'edit_theme_options',
623
+ ));
624
+ $wp_customize->add_control(
625
+ new WP_Customize_Color_Control(
626
+ $wp_customize,
627
+ 'hd_menu_color',
628
+ array(
629
+ 'label' => __('Menu Link Color','elanzalite'),
630
+ 'section' => 'heaer_setng_option',
631
+ 'settings' => 'hd_menu_color',
632
+ ) ) );
633
+ // hover
634
+ $wp_customize->add_setting('hd_menu_hvr_color', array(
635
+ 'default' => '#66cdaa',
636
+ 'capability' => 'edit_theme_options',
637
+ ));
638
+ $wp_customize->add_control(
639
+ new WP_Customize_Color_Control(
640
+ $wp_customize,
641
+ 'hd_menu_hvr_color',
642
+ array(
643
+ 'label' => __('Menu Link Hover/Active Color','elanzalite'),
644
+ 'section' => 'heaer_setng_option',
645
+ 'settings' => 'hd_menu_hvr_color',
646
+ ) ) );
647
+ // responsive menu icon button color
648
+ $wp_customize->add_setting('mobile_menu_bg_color', array(
649
+ 'default' => '#606060',
650
+ 'capability' => 'edit_theme_options',
651
+ ));
652
+ $wp_customize->add_control(
653
+ new WP_Customize_Color_Control(
654
+ $wp_customize,
655
+ 'mobile_menu_bg_color',
656
+ array(
657
+ 'label' => __('Responsive Menu Icon Color','elanzalite'),
658
+ 'section' => 'heaer_setng_option',
659
+ 'settings' => 'mobile_menu_bg_color',
660
+ ) ) );
661
+ // =============================
662
+ // = Home Post Settings =
663
+ // =============================
664
+ // Sidebar settings
665
+ $wp_customize->add_setting( 'elanzalite_blog_layout',
666
+ array(
667
+ 'sanitize_callback' => 'sanitize_text_field',
668
+ 'default' => 'right',
669
+
670
+ )
671
+ );
672
+ $wp_customize->add_control( 'elanzalite_blog_layout',
673
+ array(
674
+ 'type' => 'select',
675
+ 'label' => esc_html__('Sidebar Alignment', 'elanzalite'),
676
+ 'description' => esc_html__('Choose sidebar option for Blog Page', 'elanzalite'),
677
+ 'section' => 'blog_option',
678
+ 'choices' => array(
679
+ 'right' => esc_html__('Right sidebar', 'elanzalite'),
680
+ 'left' => esc_html__('Left sidebar', 'elanzalite'),
681
+ 'no-sidebar' => esc_html__('No sidebar', 'elanzalite'),
682
+ )
683
+ )
684
+ );
685
+ $wp_customize->add_setting( 'post_cat_hide',
686
+ array(
687
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
688
+ 'default' => '',
689
+ )
690
+ );
691
+ $wp_customize->add_control( 'post_cat_hide',
692
+ array(
693
+ 'type' => 'checkbox',
694
+ 'label' => esc_html__('Disable Post Category ?', 'elanzalite'),
695
+ 'section' => 'blog_option',
696
+ 'description' => esc_html__('Check here to disable Post Category', 'elanzalite')
697
+ )
698
+ );
699
+
700
+ // Hide Excerpt data in standarad
701
+ $wp_customize->add_setting( 'stndrd_post_excerpt_data_hide',
702
+ array(
703
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
704
+ 'default' => '',
705
+ )
706
+ );
707
+ $wp_customize->add_control( 'stndrd_post_excerpt_data_hide',
708
+ array(
709
+ 'type' => 'checkbox',
710
+ 'label' => esc_html__('Disable Post Content ?', 'elanzalite'),
711
+ 'section' => 'blog_option',
712
+ 'description' => esc_html__('Check here to disable Post Excerpt Content', 'elanzalite')
713
+ )
714
+ );
715
+ // Hide Excerpt data
716
+ $wp_customize->add_setting( 'post_excerpt_data_hide',
717
+ array(
718
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
719
+ 'default' => '',
720
+ )
721
+ );
722
+ $wp_customize->add_control( 'post_excerpt_data_hide',
723
+ array(
724
+ 'type' => 'checkbox',
725
+ 'label' => esc_html__('Disable Post Excerpt ?', 'elanzalite'),
726
+ 'section' => 'blog_option',
727
+ 'description' => esc_html__('Check here to disable Post Excerpt Content', 'elanzalite')
728
+ )
729
+ );
730
+ // excerpt length
731
+ $wp_customize->add_setting('excerpt_lenght', array(
732
+ 'default' => '',
733
+ 'capability' => 'edit_theme_options',
734
+ 'sanitize_callback' => 'sanitize_text_field',
735
+ ));
736
+ $wp_customize->add_control('excerpt_lenght', array(
737
+ 'label' => __('Post Excerpt Length', 'elanzalite'),
738
+ 'section' => 'blog_option',
739
+ 'type' =>'text',
740
+ 'settings' => 'excerpt_lenght',
741
+ )
742
+ );
743
+
744
+ // Hide readmore text
745
+ $wp_customize->add_setting( 'post_read_more_hide',
746
+ array(
747
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
748
+ 'default' => '',
749
+ )
750
+ );
751
+ $wp_customize->add_control( 'post_read_more_hide',
752
+ array(
753
+ 'type' => 'checkbox',
754
+ 'label' => esc_html__('Disable Read More?', 'elanzalite'),
755
+ 'section' => 'blog_option',
756
+ 'description' => esc_html__('Check here to disable Read More Text', 'elanzalite')
757
+ )
758
+ );
759
+ // Read more text
760
+ $wp_customize->add_setting('readmore_text', array(
761
+ 'default' => '',
762
+ 'capability' => 'edit_theme_options',
763
+ 'sanitize_callback' => 'sanitize_text_field',
764
+ ));
765
+ $wp_customize->add_control('readmore_text', array(
766
+ 'label' => __('Read More Text', 'elanzalite'),
767
+ 'section' => 'blog_option',
768
+ 'type' =>'text',
769
+ 'settings' => 'readmore_text',
770
+ )
771
+ );
772
+ // Hide Post Meta
773
+ $wp_customize->add_setting( 'post_meta_hide',
774
+ array(
775
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
776
+ 'default' => '',
777
+ )
778
+ );
779
+ $wp_customize->add_control( 'post_meta_hide',
780
+ array(
781
+ 'type' => 'checkbox',
782
+ 'label' => esc_html__('Disable Post Meta?', 'elanzalite'),
783
+ 'section' => 'blog_option',
784
+ 'description' => esc_html__('Check here to disable Post Meta', 'elanzalite')
785
+ )
786
+ );
787
+ // Hide blog social share
788
+ $wp_customize->add_setting( 'blog_post_share_hide',
789
+ array(
790
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
791
+ 'default' => '',
792
+ )
793
+ );
794
+ $wp_customize->add_control( 'blog_post_share_hide',
795
+ array(
796
+ 'type' => 'checkbox',
797
+ 'label' => esc_html__('Disable Post share ?', 'elanzalite'),
798
+ 'section' => 'blog_option',
799
+ 'description' => esc_html__('Check here to disable Post share in Standard Post', 'elanzalite')
800
+ )
801
+ );
802
+ // Hide Prefix archive
803
+ $wp_customize->add_setting( 'archive_pre_hide',
804
+ array(
805
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
806
+ 'default' => '',
807
+ )
808
+ );
809
+ $wp_customize->add_control( 'archive_pre_hide',
810
+ array(
811
+ 'type' => 'checkbox',
812
+ 'label' => esc_html__('Disable Prefix?', 'elanzalite'),
813
+ 'section' => 'blog_option',
814
+ 'description' => esc_html__('Check here to disable Prefix in Archive Page', 'elanzalite')
815
+ )
816
+ );
817
+
818
+ $wp_customize->add_setting('more_grd_lyt_1', array(
819
+ 'sanitize_callback' => 'themehunk_sanitize_text',
820
+ ));
821
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'more_grd_lyt_1',
822
+ array(
823
+ 'section' => 'blog_option',
824
+ 'type' => 'custom_message',
825
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//themehunk.com/elanza-blogging-theme/">Elanza</a> for More <strong>Home Page Layout!</strong>','elanzalite' )
826
+ )));
827
+ // =============================
828
+ // = Single post setting =
829
+ // =============================
830
+ $wp_customize->add_section('blog_single_option', array(
831
+ 'title' => __('Single Post', 'elanzalite'),
832
+ 'priority' => 5,
833
+ 'panel' => 'elanzalite_theme_options',
834
+ ));
835
+ // Sidebar settings
836
+ $wp_customize->add_setting( 'elanzalite_blog_single_layout',
837
+ array(
838
+ 'sanitize_callback' => 'sanitize_text_field',
839
+ 'default' => 'right',
840
+
841
+ )
842
+ );
843
+ $wp_customize->add_control( 'elanzalite_blog_single_layout',
844
+ array(
845
+ 'type' => 'select',
846
+ 'label' => esc_html__('Sidebar Alignment', 'elanzalite'),
847
+ 'description' => esc_html__('Choose sidebar option for Single Page', 'elanzalite'),
848
+ 'section' => 'blog_single_option',
849
+ 'choices' => array(
850
+ 'right' => esc_html__('Right sidebar', 'elanzalite'),
851
+ 'left' => esc_html__('Left sidebar', 'elanzalite'),
852
+ 'no-sidebar' => esc_html__('No sidebar', 'elanzalite'),
853
+ )
854
+ )
855
+ );
856
+ // Hide post meta single page
857
+ $wp_customize->add_setting('single_post_cat_hide',
858
+ array(
859
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
860
+ 'default' => '',
861
+ )
862
+ );
863
+ $wp_customize->add_control('single_post_cat_hide',
864
+ array(
865
+ 'type' => 'checkbox',
866
+ 'label' => esc_html__('Disable Post Category ?', 'elanzalite'),
867
+ 'section' => 'blog_single_option',
868
+ 'description' => esc_html__('Check here to disable Post Category in Single Page', 'elanzalite')
869
+ )
870
+ );
871
+ // Hide post meta single page
872
+ $wp_customize->add_setting('single_post_meta_hide',
873
+ array(
874
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
875
+ 'default' => '',
876
+ )
877
+ );
878
+ $wp_customize->add_control('single_post_meta_hide',
879
+ array(
880
+ 'type' => 'checkbox',
881
+ 'label' => esc_html__('Disable Post Meta?', 'elanzalite'),
882
+ 'section' => 'blog_single_option',
883
+ 'description' => esc_html__('Check here to disable Post meta in Single Page', 'elanzalite')
884
+ )
885
+ );
886
+ // Featured Image
887
+ $wp_customize->add_setting('single_post_ftured_hide',
888
+ array(
889
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
890
+ 'default' => '',
891
+ )
892
+ );
893
+ $wp_customize->add_control('single_post_ftured_hide',
894
+ array(
895
+ 'type' => 'checkbox',
896
+ 'label' => esc_html__('Disable Featured Image ?', 'elanzalite'),
897
+ 'section' => 'blog_single_option',
898
+ 'description' => esc_html__('Check here to disable Featured Image in Single Page', 'elanzalite')
899
+ )
900
+ );
901
+
902
+
903
+
904
+ // Related post
905
+ $wp_customize->add_setting('post_related_hide',
906
+ array(
907
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
908
+ 'default' => '',
909
+ )
910
+ );
911
+ $wp_customize->add_control('post_related_hide',
912
+ array(
913
+ 'type' => 'checkbox',
914
+ 'label' => esc_html__('Disable Related Post ?', 'elanzalite'),
915
+ 'section' => 'blog_single_option',
916
+ 'description' => esc_html__('Check here to disable Related Post in Single Page', 'elanzalite')
917
+ )
918
+ );
919
+ // TAG
920
+ $wp_customize->add_setting('post_tag_hide',
921
+ array(
922
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
923
+ 'default' => '',
924
+ )
925
+ );
926
+ $wp_customize->add_control('post_tag_hide',
927
+ array(
928
+ 'type' => 'checkbox',
929
+ 'label' => esc_html__('Disable Tag ?', 'elanzalite'),
930
+ 'section' => 'blog_single_option',
931
+ 'description' => esc_html__('Check here to disable Tag in Single Page', 'elanzalite')
932
+ )
933
+ );
934
+ // Post navigation
935
+ $wp_customize->add_setting('post_nav_hide',
936
+ array(
937
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
938
+ 'default' => '',
939
+ )
940
+ );
941
+ $wp_customize->add_control('post_nav_hide',
942
+ array(
943
+ 'type' => 'checkbox',
944
+ 'label' => esc_html__('Disable Post Navigation ?', 'elanzalite'),
945
+ 'section' => 'blog_single_option',
946
+ 'description' => esc_html__('Check here to disable Post Navigation in Single Page', 'elanzalite')
947
+ )
948
+ );
949
+ // share
950
+ $wp_customize->add_setting('post_share_hide',
951
+ array(
952
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
953
+ 'default' => '',
954
+ )
955
+ );
956
+ $wp_customize->add_control('post_share_hide',
957
+ array(
958
+ 'type' => 'checkbox',
959
+ 'label' => esc_html__('Disable Post Share ?', 'elanzalite'),
960
+ 'section' => 'blog_single_option',
961
+ 'description' => esc_html__('Check here to disable Post Share in Single Page', 'elanzalite')
962
+ )
963
+ );
964
+ /*************************************************************************/
965
+
966
+ //Gloabal-typograpgy//
967
+
968
+ /**************************************************************************/
969
+ $wp_customize->register_control_type( 'Themehunk_Customizer_Range_Value_Control' );
970
+ $wp_customize->add_panel( 'theme_tygrphy', array(
971
+ 'priority' => 4,
972
+ 'capability' => 'edit_theme_options',
973
+ 'theme_supports' => '',
974
+ 'title' => __('Typography', 'elanzalite'),
975
+ 'description' => '',
976
+ ) );
977
+ $wp_customize->add_section(
978
+ 'elanzalite_fontsubset_typography', array(
979
+ 'title' => esc_html__( 'Font Subsets', 'elanzalite' ),
980
+ 'priority' => 25,
981
+ 'panel' => 'theme_tygrphy',
982
+ )
983
+ );
984
+ if ( class_exists( 'themehunk_Customize_Control_Checkbox_Multiple' ) ) {
985
+
986
+ $wp_customize->add_setting(
987
+ 'themehunk_font_subsets', array(
988
+ 'default' => array( 'latin' ),
989
+ 'sanitize_callback' => 'themehunk_checkbox_explode',
990
+ )
991
+ );
992
+
993
+ $wp_customize->add_control(
994
+ new themehunk_Customize_Control_Checkbox_Multiple(
995
+ $wp_customize, 'themehunk_font_subsets', array(
996
+ 'section' => 'elanzalite_fontsubset_typography',
997
+ 'label' => esc_html__('Font Subsets', 'elanzalite'),
998
+ 'choices' => array(
999
+ 'latin' => 'latin',
1000
+ 'latin-ext' => 'latin-ext',
1001
+ 'cyrillic' => 'cyrillic',
1002
+ 'cyrillic-ext' => 'cyrillic-ext',
1003
+ 'greek' => 'greek',
1004
+ 'greek-ext' => 'greek-ext',
1005
+ 'vietnamese' => 'vietnamese',
1006
+ 'arabic' => 'arabic',
1007
+ ),
1008
+ 'priority' => 10,
1009
+ )
1010
+ )
1011
+ );
1012
+ }
1013
+ $wp_customize->add_section(
1014
+ 'elanzalite_typography', array(
1015
+ 'title' => esc_html__( 'Body', 'elanzalite' ),
1016
+ 'priority' => 25,
1017
+ 'panel' => 'theme_tygrphy',
1018
+ )
1019
+ );
1020
+
1021
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
1022
+ $wp_customize->add_setting(
1023
+ 'elanzalite_body_font', array(
1024
+ 'type' => 'theme_mod',
1025
+ 'sanitize_callback' => 'sanitize_text_field',
1026
+ )
1027
+ );
1028
+
1029
+ $wp_customize->add_control(
1030
+ new Themehunk_Font_Selector(
1031
+ $wp_customize, 'elanzalite_body_font', array(
1032
+ 'label' => esc_html__( 'Font family', 'elanzalite' ),
1033
+ 'section' => 'elanzalite_typography',
1034
+ 'priority' => 2,
1035
+ 'type' => 'select',
1036
+ )
1037
+ )
1038
+ );
1039
+ }
1040
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
1041
+
1042
+ $wp_customize->add_setting(
1043
+ 'elanzalite_body_font_size', array(
1044
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1045
+ 'default' => 15,
1046
+
1047
+ )
1048
+ );
1049
+
1050
+ $wp_customize->add_control(
1051
+ new Themehunk_Customizer_Range_Value_Control(
1052
+ $wp_customize, 'elanzalite_body_font_size', array(
1053
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1054
+ 'section' => 'elanzalite_typography',
1055
+ 'type' => 'range-value',
1056
+ 'input_attr' => array(
1057
+ 'min' => 10,
1058
+ 'max' => 20,
1059
+ 'step' => 0.1,
1060
+ ),
1061
+ 'priority' => 3,
1062
+ )
1063
+ )
1064
+ );
1065
+
1066
+ // tab
1067
+ $wp_customize->add_setting(
1068
+ 'elanzalite_body_font_size_tb', array(
1069
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1070
+ 'default' => 15,
1071
+
1072
+ )
1073
+ );
1074
+
1075
+ $wp_customize->add_control(
1076
+ new Themehunk_Customizer_Range_Value_Control(
1077
+ $wp_customize, 'elanzalite_body_font_size_tb', array(
1078
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1079
+ 'section' => 'elanzalite_typography',
1080
+ 'type' => 'range-value',
1081
+ 'input_attr' => array(
1082
+ 'min' => 10,
1083
+ 'max' => 20,
1084
+ 'step' => 0.1,
1085
+ ),
1086
+ 'priority' => 3,
1087
+ )
1088
+ )
1089
+ );
1090
+ // mob
1091
+ $wp_customize->add_setting(
1092
+ 'elanzalite_body_font_size_mb', array(
1093
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1094
+ 'default' => 15,
1095
+
1096
+ )
1097
+ );
1098
+
1099
+ $wp_customize->add_control(
1100
+ new Themehunk_Customizer_Range_Value_Control(
1101
+ $wp_customize, 'elanzalite_body_font_size_mb', array(
1102
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1103
+ 'section' => 'elanzalite_typography',
1104
+ 'type' => 'range-value',
1105
+ 'input_attr' => array(
1106
+ 'min' => 10,
1107
+ 'max' => 20,
1108
+ 'step' => 0.1,
1109
+ ),
1110
+ 'priority' => 3,
1111
+ )
1112
+ )
1113
+ );
1114
+ // line-height
1115
+ $wp_customize->add_setting(
1116
+ 'elanzalite_body_line_height', array(
1117
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1118
+ 'default' => 24,
1119
+
1120
+ )
1121
+ );
1122
+
1123
+ $wp_customize->add_control(
1124
+ new Themehunk_Customizer_Range_Value_Control(
1125
+ $wp_customize, 'elanzalite_body_line_height', array(
1126
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1127
+ 'section' => 'elanzalite_typography',
1128
+ 'type' => 'range-value',
1129
+ 'input_attr' => array(
1130
+ 'min' => 1,
1131
+ 'max' => 50,
1132
+ 'step' => 0.1,
1133
+ ),
1134
+ 'priority' => 4,
1135
+ )
1136
+ )
1137
+ );
1138
+ // tab
1139
+ $wp_customize->add_setting(
1140
+ 'elanzalite_body_line_height_tb', array(
1141
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1142
+ 'default' => 24,
1143
+
1144
+ )
1145
+ );
1146
+
1147
+ $wp_customize->add_control(
1148
+ new Themehunk_Customizer_Range_Value_Control(
1149
+ $wp_customize, 'elanzalite_body_line_height_tb', array(
1150
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1151
+ 'section' => 'elanzalite_typography',
1152
+ 'type' => 'range-value',
1153
+ 'input_attr' => array(
1154
+ 'min' => 1,
1155
+ 'max' => 50,
1156
+ 'step' => 0.1,
1157
+ ),
1158
+ 'priority' => 4,
1159
+ )
1160
+ )
1161
+ );
1162
+ // mob
1163
+ $wp_customize->add_setting(
1164
+ 'elanzalite_body_line_height_mb', array(
1165
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1166
+ 'default' => 24,
1167
+
1168
+ )
1169
+ );
1170
+
1171
+ $wp_customize->add_control(
1172
+ new Themehunk_Customizer_Range_Value_Control(
1173
+ $wp_customize, 'elanzalite_body_line_height_mb', array(
1174
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1175
+ 'section' => 'elanzalite_typography',
1176
+ 'type' => 'range-value',
1177
+ 'input_attr' => array(
1178
+ 'min' => 1,
1179
+ 'max' => 50,
1180
+ 'step' => 0.1,
1181
+ ),
1182
+ 'priority' => 4,
1183
+ )
1184
+ )
1185
+ );
1186
+ // letter-spacing
1187
+ $wp_customize->add_setting(
1188
+ 'elanzalite_body_letter_spacing', array(
1189
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1190
+ 'default' => 0.7,
1191
+
1192
+ )
1193
+ );
1194
+
1195
+ $wp_customize->add_control(
1196
+ new Themehunk_Customizer_Range_Value_Control(
1197
+ $wp_customize, 'elanzalite_body_letter_spacing', array(
1198
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1199
+ 'section' => 'elanzalite_typography',
1200
+ 'type' => 'range-value',
1201
+ 'input_attr' => array(
1202
+ 'min' => 0,
1203
+ 'max' => 3,
1204
+ 'step' => 0.1,
1205
+ ),
1206
+ 'priority' => 25,
1207
+ )
1208
+ )
1209
+ );
1210
+ // tab
1211
+ $wp_customize->add_setting(
1212
+ 'elanzalite_body_letter_spacing_tb', array(
1213
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1214
+ 'default' => 0.7,
1215
+
1216
+ )
1217
+ );
1218
+
1219
+ $wp_customize->add_control(
1220
+ new Themehunk_Customizer_Range_Value_Control(
1221
+ $wp_customize, 'elanzalite_body_letter_spacing_tb', array(
1222
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1223
+ 'section' => 'elanzalite_typography',
1224
+ 'type' => 'range-value',
1225
+ 'input_attr' => array(
1226
+ 'min' => 0,
1227
+ 'max' => 3,
1228
+ 'step' => 0.1,
1229
+ ),
1230
+ 'priority' => 25,
1231
+ )
1232
+ )
1233
+ );
1234
+ //mob
1235
+ $wp_customize->add_setting(
1236
+ 'elanzalite_body_letter_spacing_mb', array(
1237
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1238
+ 'default' => 0.7,
1239
+
1240
+ )
1241
+ );
1242
+
1243
+ $wp_customize->add_control(
1244
+ new Themehunk_Customizer_Range_Value_Control(
1245
+ $wp_customize, 'elanzalite_body_letter_spacing_mb', array(
1246
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1247
+ 'section' => 'elanzalite_typography',
1248
+ 'type' => 'range-value',
1249
+ 'input_attr' => array(
1250
+ 'min' => 0,
1251
+ 'max' => 3,
1252
+ 'step' => 0.1,
1253
+ ),
1254
+ 'priority' => 25,
1255
+ )
1256
+ )
1257
+ );
1258
+
1259
+ }
1260
+ /************************************/
1261
+ // H1-typography
1262
+ /***********************************/
1263
+ $wp_customize->add_section(
1264
+ 'elanzalite_typography_h1', array(
1265
+ 'title' => esc_html__( 'Heading 1 (H1)', 'elanzalite' ),
1266
+ 'priority' => 25,
1267
+ 'panel' => 'theme_tygrphy',
1268
+ )
1269
+ );
1270
+
1271
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
1272
+ $wp_customize->add_setting(
1273
+ 'elanzalite_body_font_h1', array(
1274
+ 'type' => 'theme_mod',
1275
+ 'sanitize_callback' => 'sanitize_text_field',
1276
+ )
1277
+ );
1278
+
1279
+ $wp_customize->add_control(
1280
+ new Themehunk_Font_Selector(
1281
+ $wp_customize, 'elanzalite_body_font_h1', array(
1282
+ 'label' => esc_html__( 'Font family', 'elanzalite' ),
1283
+ 'section' => 'elanzalite_typography_h1',
1284
+ 'priority' => 2,
1285
+ 'type' => 'select',
1286
+ )
1287
+ )
1288
+ );
1289
+ }
1290
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
1291
+
1292
+ $wp_customize->add_setting(
1293
+ 'elanzalite_body_font_size_h1', array(
1294
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1295
+ 'default' => 44,
1296
+
1297
+ )
1298
+ );
1299
+
1300
+ $wp_customize->add_control(
1301
+ new Themehunk_Customizer_Range_Value_Control(
1302
+ $wp_customize, 'elanzalite_body_font_size_h1', array(
1303
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1304
+ 'section' => 'elanzalite_typography_h1',
1305
+ 'type' => 'range-value',
1306
+ 'input_attr' => array(
1307
+ 'min' => 10,
1308
+ 'max' => 100,
1309
+ 'step' => 0.1,
1310
+ ),
1311
+ 'priority' => 3,
1312
+ )
1313
+ )
1314
+ );
1315
+
1316
+ // tab
1317
+ $wp_customize->add_setting(
1318
+ 'elanzalite_body_font_size_tb_h1', array(
1319
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1320
+ 'default' => 44,
1321
+
1322
+ )
1323
+ );
1324
+
1325
+ $wp_customize->add_control(
1326
+ new Themehunk_Customizer_Range_Value_Control(
1327
+ $wp_customize, 'elanzalite_body_font_size_tb_h1', array(
1328
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1329
+ 'section' => 'elanzalite_typography_h1',
1330
+ 'type' => 'range-value',
1331
+ 'input_attr' => array(
1332
+ 'min' => 10,
1333
+ 'max' => 100,
1334
+ 'step' => 0.1,
1335
+ ),
1336
+ 'priority' => 3,
1337
+ )
1338
+ )
1339
+ );
1340
+ // mob
1341
+ $wp_customize->add_setting(
1342
+ 'elanzalite_body_font_size_mb_h1', array(
1343
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1344
+ 'default' => 44,
1345
+
1346
+ )
1347
+ );
1348
+
1349
+ $wp_customize->add_control(
1350
+ new Themehunk_Customizer_Range_Value_Control(
1351
+ $wp_customize, 'elanzalite_body_font_size_mb_h1', array(
1352
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1353
+ 'section' => 'elanzalite_typography_h1',
1354
+ 'type' => 'range-value',
1355
+ 'input_attr' => array(
1356
+ 'min' => 10,
1357
+ 'max' => 100,
1358
+ 'step' => 0.1,
1359
+ ),
1360
+ 'priority' => 3,
1361
+ )
1362
+ )
1363
+ );
1364
+ // line-height
1365
+ $wp_customize->add_setting(
1366
+ 'elanzalite_body_line_height_h1', array(
1367
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1368
+ 'default' => 55,
1369
+
1370
+ )
1371
+ );
1372
+
1373
+ $wp_customize->add_control(
1374
+ new Themehunk_Customizer_Range_Value_Control(
1375
+ $wp_customize, 'elanzalite_body_line_height_h1', array(
1376
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1377
+ 'section' => 'elanzalite_typography_h1',
1378
+ 'type' => 'range-value',
1379
+ 'input_attr' => array(
1380
+ 'min' => 1,
1381
+ 'max' => 100,
1382
+ 'step' => 0.1,
1383
+ ),
1384
+ 'priority' => 4,
1385
+ )
1386
+ )
1387
+ );
1388
+ // tab
1389
+ $wp_customize->add_setting(
1390
+ 'elanzalite_body_line_height_tb_h1', array(
1391
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1392
+ 'default' => 55,
1393
+
1394
+ )
1395
+ );
1396
+
1397
+ $wp_customize->add_control(
1398
+ new Themehunk_Customizer_Range_Value_Control(
1399
+ $wp_customize, 'elanzalite_body_line_height_tb_h1', array(
1400
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1401
+ 'section' => 'elanzalite_typography_h1',
1402
+ 'type' => 'range-value',
1403
+ 'input_attr' => array(
1404
+ 'min' => 1,
1405
+ 'max' => 100,
1406
+ 'step' => 0.1,
1407
+ ),
1408
+ 'priority' => 4,
1409
+ )
1410
+ )
1411
+ );
1412
+ // mob
1413
+ $wp_customize->add_setting(
1414
+ 'elanzalite_body_line_height_mb_h1', array(
1415
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1416
+ 'default' => 55,
1417
+
1418
+ )
1419
+ );
1420
+
1421
+ $wp_customize->add_control(
1422
+ new Themehunk_Customizer_Range_Value_Control(
1423
+ $wp_customize, 'elanzalite_body_line_height_mb_h1', array(
1424
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1425
+ 'section' => 'elanzalite_typography_h1',
1426
+ 'type' => 'range-value',
1427
+ 'input_attr' => array(
1428
+ 'min' => 1,
1429
+ 'max' => 100,
1430
+ 'step' => 0.1,
1431
+ ),
1432
+ 'priority' => 4,
1433
+ )
1434
+ )
1435
+ );
1436
+ // letter-spacing
1437
+ $wp_customize->add_setting(
1438
+ 'elanzalite_body_letter_spacing_h1', array(
1439
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1440
+ 'default' => 0.7,
1441
+
1442
+ )
1443
+ );
1444
+
1445
+ $wp_customize->add_control(
1446
+ new Themehunk_Customizer_Range_Value_Control(
1447
+ $wp_customize, 'elanzalite_body_letter_spacing_h1', array(
1448
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1449
+ 'section' => 'elanzalite_typography_h1',
1450
+ 'type' => 'range-value',
1451
+ 'input_attr' => array(
1452
+ 'min' => 0,
1453
+ 'max' => 5,
1454
+ 'step' => 0.1,
1455
+ ),
1456
+ 'priority' => 25,
1457
+ )
1458
+ )
1459
+ );
1460
+ // tab
1461
+ $wp_customize->add_setting(
1462
+ 'elanzalite_body_letter_spacing_tb_h1', array(
1463
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1464
+ 'default' => 0.7,
1465
+
1466
+ )
1467
+ );
1468
+
1469
+ $wp_customize->add_control(
1470
+ new Themehunk_Customizer_Range_Value_Control(
1471
+ $wp_customize, 'elanzalite_body_letter_spacing_tb_h1', array(
1472
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1473
+ 'section' => 'elanzalite_typography_h1',
1474
+ 'type' => 'range-value',
1475
+ 'input_attr' => array(
1476
+ 'min' => 0,
1477
+ 'max' => 5,
1478
+ 'step' => 0.1,
1479
+ ),
1480
+ 'priority' => 25,
1481
+ )
1482
+ )
1483
+ );
1484
+ //mob
1485
+ $wp_customize->add_setting(
1486
+ 'elanzalite_body_letter_spacing_mb_h1', array(
1487
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1488
+ 'default' => 0.7,
1489
+
1490
+ )
1491
+ );
1492
+
1493
+ $wp_customize->add_control(
1494
+ new Themehunk_Customizer_Range_Value_Control(
1495
+ $wp_customize, 'elanzalite_body_letter_spacing_mb_h1', array(
1496
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1497
+ 'section' => 'elanzalite_typography_h1',
1498
+ 'type' => 'range-value',
1499
+ 'input_attr' => array(
1500
+ 'min' => 0,
1501
+ 'max' => 5,
1502
+ 'step' => 0.1,
1503
+ ),
1504
+ 'priority' => 25,
1505
+ )
1506
+ )
1507
+ );
1508
+
1509
+ }
1510
+ /************************************/
1511
+ // H2-typography
1512
+ /***********************************/
1513
+ $wp_customize->add_section(
1514
+ 'elanzalite_typography_h2', array(
1515
+ 'title' => esc_html__( 'Heading 2 (H2)', 'elanzalite' ),
1516
+ 'priority' => 25,
1517
+ 'panel' => 'theme_tygrphy',
1518
+ )
1519
+ );
1520
+
1521
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
1522
+ $wp_customize->add_setting(
1523
+ 'elanzalite_body_font_h2', array(
1524
+ 'type' => 'theme_mod',
1525
+ 'sanitize_callback' => 'sanitize_text_field',
1526
+ )
1527
+ );
1528
+
1529
+ $wp_customize->add_control(
1530
+ new Themehunk_Font_Selector(
1531
+ $wp_customize, 'elanzalite_body_font_h2', array(
1532
+ 'label' => esc_html__( 'Font family', 'elanzalite' ),
1533
+ 'section' => 'elanzalite_typography_h2',
1534
+ 'priority' => 2,
1535
+ 'type' => 'select',
1536
+ )
1537
+ )
1538
+ );
1539
+ }
1540
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
1541
+
1542
+ $wp_customize->add_setting(
1543
+ 'elanzalite_body_font_size_h2', array(
1544
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1545
+ 'default' => 38,
1546
+
1547
+ )
1548
+ );
1549
+
1550
+ $wp_customize->add_control(
1551
+ new Themehunk_Customizer_Range_Value_Control(
1552
+ $wp_customize, 'elanzalite_body_font_size_h2', array(
1553
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1554
+ 'section' => 'elanzalite_typography_h2',
1555
+ 'type' => 'range-value',
1556
+ 'input_attr' => array(
1557
+ 'min' => 10,
1558
+ 'max' => 100,
1559
+ 'step' => 0.1,
1560
+ ),
1561
+ 'priority' => 3,
1562
+ )
1563
+ )
1564
+ );
1565
+
1566
+ // tab
1567
+ $wp_customize->add_setting(
1568
+ 'elanzalite_body_font_size_tb_h2', array(
1569
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1570
+ 'default' => 38,
1571
+
1572
+ )
1573
+ );
1574
+
1575
+ $wp_customize->add_control(
1576
+ new Themehunk_Customizer_Range_Value_Control(
1577
+ $wp_customize, 'elanzalite_body_font_size_tb_h2', array(
1578
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1579
+ 'section' => 'elanzalite_typography_h2',
1580
+ 'type' => 'range-value',
1581
+ 'input_attr' => array(
1582
+ 'min' => 10,
1583
+ 'max' => 100,
1584
+ 'step' => 0.1,
1585
+ ),
1586
+ 'priority' => 3,
1587
+ )
1588
+ )
1589
+ );
1590
+ // mob
1591
+ $wp_customize->add_setting(
1592
+ 'elanzalite_body_font_size_mb_h2', array(
1593
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1594
+ 'default' => 38,
1595
+
1596
+ )
1597
+ );
1598
+
1599
+ $wp_customize->add_control(
1600
+ new Themehunk_Customizer_Range_Value_Control(
1601
+ $wp_customize, 'elanzalite_body_font_size_mb_h2', array(
1602
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1603
+ 'section' => 'elanzalite_typography_h2',
1604
+ 'type' => 'range-value',
1605
+ 'input_attr' => array(
1606
+ 'min' => 10,
1607
+ 'max' => 100,
1608
+ 'step' => 0.1,
1609
+ ),
1610
+ 'priority' => 3,
1611
+ )
1612
+ )
1613
+ );
1614
+ // line-height
1615
+ $wp_customize->add_setting(
1616
+ 'elanzalite_body_line_height_h2', array(
1617
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1618
+ 'default' => 48,
1619
+
1620
+ )
1621
+ );
1622
+
1623
+ $wp_customize->add_control(
1624
+ new Themehunk_Customizer_Range_Value_Control(
1625
+ $wp_customize, 'elanzalite_body_line_height_h2', array(
1626
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1627
+ 'section' => 'elanzalite_typography_h2',
1628
+ 'type' => 'range-value',
1629
+ 'input_attr' => array(
1630
+ 'min' => 1,
1631
+ 'max' => 100,
1632
+ 'step' => 0.1,
1633
+ ),
1634
+ 'priority' => 4,
1635
+ )
1636
+ )
1637
+ );
1638
+ // tab
1639
+ $wp_customize->add_setting(
1640
+ 'elanzalite_body_line_height_tb_h2', array(
1641
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1642
+ 'default' => 48,
1643
+
1644
+ )
1645
+ );
1646
+
1647
+ $wp_customize->add_control(
1648
+ new Themehunk_Customizer_Range_Value_Control(
1649
+ $wp_customize, 'elanzalite_body_line_height_tb_h2', array(
1650
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1651
+ 'section' => 'elanzalite_typography_h2',
1652
+ 'type' => 'range-value',
1653
+ 'input_attr' => array(
1654
+ 'min' => 1,
1655
+ 'max' => 100,
1656
+ 'step' => 0.1,
1657
+ ),
1658
+ 'priority' => 4,
1659
+ )
1660
+ )
1661
+ );
1662
+ // mob
1663
+ $wp_customize->add_setting(
1664
+ 'elanzalite_body_line_height_mb_h2', array(
1665
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1666
+ 'default' => 48,
1667
+
1668
+ )
1669
+ );
1670
+
1671
+ $wp_customize->add_control(
1672
+ new Themehunk_Customizer_Range_Value_Control(
1673
+ $wp_customize, 'elanzalite_body_line_height_mb_h2', array(
1674
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1675
+ 'section' => 'elanzalite_typography_h2',
1676
+ 'type' => 'range-value',
1677
+ 'input_attr' => array(
1678
+ 'min' => 1,
1679
+ 'max' => 100,
1680
+ 'step' => 0.1,
1681
+ ),
1682
+ 'priority' => 4,
1683
+ )
1684
+ )
1685
+ );
1686
+ // letter-spacing
1687
+ $wp_customize->add_setting(
1688
+ 'elanzalite_body_letter_spacing_h2', array(
1689
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1690
+ 'default' => 0.7,
1691
+
1692
+ )
1693
+ );
1694
+
1695
+ $wp_customize->add_control(
1696
+ new Themehunk_Customizer_Range_Value_Control(
1697
+ $wp_customize, 'elanzalite_body_letter_spacing_h2', array(
1698
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1699
+ 'section' => 'elanzalite_typography_h2',
1700
+ 'type' => 'range-value',
1701
+ 'input_attr' => array(
1702
+ 'min' => 0,
1703
+ 'max' => 5,
1704
+ 'step' => 0.1,
1705
+ ),
1706
+ 'priority' => 25,
1707
+ )
1708
+ )
1709
+ );
1710
+ // tab
1711
+ $wp_customize->add_setting(
1712
+ 'elanzalite_body_letter_spacing_tb_h2', array(
1713
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1714
+ 'default' => 0.7,
1715
+
1716
+ )
1717
+ );
1718
+
1719
+ $wp_customize->add_control(
1720
+ new Themehunk_Customizer_Range_Value_Control(
1721
+ $wp_customize, 'elanzalite_body_letter_spacing_tb_h2', array(
1722
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1723
+ 'section' => 'elanzalite_typography_h2',
1724
+ 'type' => 'range-value',
1725
+ 'input_attr' => array(
1726
+ 'min' => 0,
1727
+ 'max' => 5,
1728
+ 'step' => 0.1,
1729
+ ),
1730
+ 'priority' => 25,
1731
+ )
1732
+ )
1733
+ );
1734
+ //mob
1735
+ $wp_customize->add_setting(
1736
+ 'elanzalite_body_letter_spacing_mb_h2', array(
1737
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1738
+ 'default' => 0.7,
1739
+
1740
+ )
1741
+ );
1742
+
1743
+ $wp_customize->add_control(
1744
+ new Themehunk_Customizer_Range_Value_Control(
1745
+ $wp_customize, 'elanzalite_body_letter_spacing_mb_h2', array(
1746
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1747
+ 'section' => 'elanzalite_typography_h2',
1748
+ 'type' => 'range-value',
1749
+ 'input_attr' => array(
1750
+ 'min' => 0,
1751
+ 'max' => 5,
1752
+ 'step' => 0.1,
1753
+ ),
1754
+ 'priority' => 25,
1755
+ )
1756
+ )
1757
+ );
1758
+
1759
+ }
1760
+ /************************************/
1761
+ // H3-typography
1762
+ /***********************************/
1763
+ $wp_customize->add_section(
1764
+ 'elanzalite_typography_h3', array(
1765
+ 'title' => esc_html__( 'Heading 3 (H3)', 'elanzalite' ),
1766
+ 'priority' => 25,
1767
+ 'panel' => 'theme_tygrphy',
1768
+ )
1769
+ );
1770
+
1771
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
1772
+ $wp_customize->add_setting(
1773
+ 'elanzalite_body_font_h3', array(
1774
+ 'type' => 'theme_mod',
1775
+ 'sanitize_callback' => 'sanitize_text_field',
1776
+ )
1777
+ );
1778
+
1779
+ $wp_customize->add_control(
1780
+ new Themehunk_Font_Selector(
1781
+ $wp_customize, 'elanzalite_body_font_h3', array(
1782
+ 'label' => esc_html__( 'Font family', 'elanzalite' ),
1783
+ 'section' => 'elanzalite_typography_h3',
1784
+ 'priority' => 2,
1785
+ 'type' => 'select',
1786
+ )
1787
+ )
1788
+ );
1789
+ }
1790
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
1791
+
1792
+ $wp_customize->add_setting(
1793
+ 'elanzalite_body_font_size_h3', array(
1794
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1795
+ 'default' => 34,
1796
+
1797
+ )
1798
+ );
1799
+
1800
+ $wp_customize->add_control(
1801
+ new Themehunk_Customizer_Range_Value_Control(
1802
+ $wp_customize, 'elanzalite_body_font_size_h3', array(
1803
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1804
+ 'section' => 'elanzalite_typography_h3',
1805
+ 'type' => 'range-value',
1806
+ 'input_attr' => array(
1807
+ 'min' => 10,
1808
+ 'max' => 100,
1809
+ 'step' => 0.1,
1810
+ ),
1811
+ 'priority' => 3,
1812
+ )
1813
+ )
1814
+ );
1815
+
1816
+ // tab
1817
+ $wp_customize->add_setting(
1818
+ 'elanzalite_body_font_size_tb_h3', array(
1819
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1820
+ 'default' => 34,
1821
+
1822
+ )
1823
+ );
1824
+
1825
+ $wp_customize->add_control(
1826
+ new Themehunk_Customizer_Range_Value_Control(
1827
+ $wp_customize, 'elanzalite_body_font_size_tb_h3', array(
1828
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1829
+ 'section' => 'elanzalite_typography_h3',
1830
+ 'type' => 'range-value',
1831
+ 'input_attr' => array(
1832
+ 'min' => 10,
1833
+ 'max' => 100,
1834
+ 'step' => 0.1,
1835
+ ),
1836
+ 'priority' => 3,
1837
+ )
1838
+ )
1839
+ );
1840
+ // mob
1841
+ $wp_customize->add_setting(
1842
+ 'elanzalite_body_font_size_mb_h3', array(
1843
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1844
+ 'default' => 34,
1845
+
1846
+ )
1847
+ );
1848
+
1849
+ $wp_customize->add_control(
1850
+ new Themehunk_Customizer_Range_Value_Control(
1851
+ $wp_customize, 'elanzalite_body_font_size_mb_h3', array(
1852
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1853
+ 'section' => 'elanzalite_typography_h3',
1854
+ 'type' => 'range-value',
1855
+ 'input_attr' => array(
1856
+ 'min' => 10,
1857
+ 'max' => 100,
1858
+ 'step' => 0.1,
1859
+ ),
1860
+ 'priority' => 3,
1861
+ )
1862
+ )
1863
+ );
1864
+ // line-height
1865
+ $wp_customize->add_setting(
1866
+ 'elanzalite_body_line_height_h3', array(
1867
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1868
+ 'default' => 44,
1869
+
1870
+ )
1871
+ );
1872
+
1873
+ $wp_customize->add_control(
1874
+ new Themehunk_Customizer_Range_Value_Control(
1875
+ $wp_customize, 'elanzalite_body_line_height_h3', array(
1876
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1877
+ 'section' => 'elanzalite_typography_h3',
1878
+ 'type' => 'range-value',
1879
+ 'input_attr' => array(
1880
+ 'min' => 1,
1881
+ 'max' => 100,
1882
+ 'step' => 0.1,
1883
+ ),
1884
+ 'priority' => 4,
1885
+ )
1886
+ )
1887
+ );
1888
+ // tab
1889
+ $wp_customize->add_setting(
1890
+ 'elanzalite_body_line_height_tb_h3', array(
1891
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1892
+ 'default' => 44,
1893
+
1894
+ )
1895
+ );
1896
+
1897
+ $wp_customize->add_control(
1898
+ new Themehunk_Customizer_Range_Value_Control(
1899
+ $wp_customize, 'elanzalite_body_line_height_tb_h3', array(
1900
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1901
+ 'section' => 'elanzalite_typography_h3',
1902
+ 'type' => 'range-value',
1903
+ 'input_attr' => array(
1904
+ 'min' => 1,
1905
+ 'max' => 100,
1906
+ 'step' => 0.1,
1907
+ ),
1908
+ 'priority' => 4,
1909
+ )
1910
+ )
1911
+ );
1912
+ // mob
1913
+ $wp_customize->add_setting(
1914
+ 'elanzalite_body_line_height_mb_h3', array(
1915
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1916
+ 'default' => 44,
1917
+
1918
+ )
1919
+ );
1920
+
1921
+ $wp_customize->add_control(
1922
+ new Themehunk_Customizer_Range_Value_Control(
1923
+ $wp_customize, 'elanzalite_body_line_height_mb_h3', array(
1924
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1925
+ 'section' => 'elanzalite_typography_h3',
1926
+ 'type' => 'range-value',
1927
+ 'input_attr' => array(
1928
+ 'min' => 1,
1929
+ 'max' => 100,
1930
+ 'step' => 0.1,
1931
+ ),
1932
+ 'priority' => 4,
1933
+ )
1934
+ )
1935
+ );
1936
+ // letter-spacing
1937
+ $wp_customize->add_setting(
1938
+ 'elanzalite_body_letter_spacing_h3', array(
1939
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1940
+ 'default' => 0.7,
1941
+
1942
+ )
1943
+ );
1944
+
1945
+ $wp_customize->add_control(
1946
+ new Themehunk_Customizer_Range_Value_Control(
1947
+ $wp_customize, 'elanzalite_body_letter_spacing_h3', array(
1948
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1949
+ 'section' => 'elanzalite_typography_h3',
1950
+ 'type' => 'range-value',
1951
+ 'input_attr' => array(
1952
+ 'min' => 0,
1953
+ 'max' => 5,
1954
+ 'step' => 0.1,
1955
+ ),
1956
+ 'priority' => 25,
1957
+ )
1958
+ )
1959
+ );
1960
+ // tab
1961
+ $wp_customize->add_setting(
1962
+ 'elanzalite_body_letter_spacing_tb_h3', array(
1963
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1964
+ 'default' => 0.7,
1965
+
1966
+ )
1967
+ );
1968
+
1969
+ $wp_customize->add_control(
1970
+ new Themehunk_Customizer_Range_Value_Control(
1971
+ $wp_customize, 'elanzalite_body_letter_spacing_tb_h3', array(
1972
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1973
+ 'section' => 'elanzalite_typography_h3',
1974
+ 'type' => 'range-value',
1975
+ 'input_attr' => array(
1976
+ 'min' => 0,
1977
+ 'max' => 5,
1978
+ 'step' => 0.1,
1979
+ ),
1980
+ 'priority' => 25,
1981
+ )
1982
+ )
1983
+ );
1984
+ //mob
1985
+ $wp_customize->add_setting(
1986
+ 'elanzalite_body_letter_spacing_mb_h3', array(
1987
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1988
+ 'default' => 0.7,
1989
+
1990
+ )
1991
+ );
1992
+
1993
+ $wp_customize->add_control(
1994
+ new Themehunk_Customizer_Range_Value_Control(
1995
+ $wp_customize, 'elanzalite_body_letter_spacing_mb_h3', array(
1996
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
1997
+ 'section' => 'elanzalite_typography_h3',
1998
+ 'type' => 'range-value',
1999
+ 'input_attr' => array(
2000
+ 'min' => 0,
2001
+ 'max' => 5,
2002
+ 'step' => 0.1,
2003
+ ),
2004
+ 'priority' => 25,
2005
+ )
2006
+ )
2007
+ );
2008
+
2009
+ }
2010
+ /************************************/
2011
+ // H4-typography
2012
+ /***********************************/
2013
+ $wp_customize->add_section(
2014
+ 'elanzalite_typography_h4', array(
2015
+ 'title' => esc_html__( 'Heading 4 (H4)', 'elanzalite' ),
2016
+ 'priority' => 25,
2017
+ 'panel' => 'theme_tygrphy',
2018
+ )
2019
+ );
2020
+
2021
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
2022
+ $wp_customize->add_setting(
2023
+ 'elanzalite_body_font_h4', array(
2024
+ 'type' => 'theme_mod',
2025
+ 'sanitize_callback' => 'sanitize_text_field',
2026
+ )
2027
+ );
2028
+
2029
+ $wp_customize->add_control(
2030
+ new Themehunk_Font_Selector(
2031
+ $wp_customize, 'elanzalite_body_font_h4', array(
2032
+ 'label' => esc_html__( 'Font family', 'elanzalite' ),
2033
+ 'section' => 'elanzalite_typography_h4',
2034
+ 'priority' => 2,
2035
+ 'type' => 'select',
2036
+ )
2037
+ )
2038
+ );
2039
+ }
2040
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
2041
+
2042
+ $wp_customize->add_setting(
2043
+ 'elanzalite_body_font_size_h4', array(
2044
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2045
+ 'default' => 30,
2046
+
2047
+ )
2048
+ );
2049
+
2050
+ $wp_customize->add_control(
2051
+ new Themehunk_Customizer_Range_Value_Control(
2052
+ $wp_customize, 'elanzalite_body_font_size_h4', array(
2053
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2054
+ 'section' => 'elanzalite_typography_h4',
2055
+ 'type' => 'range-value',
2056
+ 'input_attr' => array(
2057
+ 'min' => 10,
2058
+ 'max' => 100,
2059
+ 'step' => 0.1,
2060
+ ),
2061
+ 'priority' => 3,
2062
+ )
2063
+ )
2064
+ );
2065
+
2066
+ // tab
2067
+ $wp_customize->add_setting(
2068
+ 'elanzalite_body_font_size_tb_h4', array(
2069
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2070
+ 'default' => 30,
2071
+
2072
+ )
2073
+ );
2074
+
2075
+ $wp_customize->add_control(
2076
+ new Themehunk_Customizer_Range_Value_Control(
2077
+ $wp_customize, 'elanzalite_body_font_size_tb_h4', array(
2078
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2079
+ 'section' => 'elanzalite_typography_h4',
2080
+ 'type' => 'range-value',
2081
+ 'input_attr' => array(
2082
+ 'min' => 10,
2083
+ 'max' => 100,
2084
+ 'step' => 0.1,
2085
+ ),
2086
+ 'priority' => 3,
2087
+ )
2088
+ )
2089
+ );
2090
+ // mob
2091
+ $wp_customize->add_setting(
2092
+ 'elanzalite_body_font_size_mb_h4', array(
2093
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2094
+ 'default' => 30,
2095
+
2096
+ )
2097
+ );
2098
+
2099
+ $wp_customize->add_control(
2100
+ new Themehunk_Customizer_Range_Value_Control(
2101
+ $wp_customize, 'elanzalite_body_font_size_mb_h4', array(
2102
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2103
+ 'section' => 'elanzalite_typography_h4',
2104
+ 'type' => 'range-value',
2105
+ 'input_attr' => array(
2106
+ 'min' => 10,
2107
+ 'max' => 100,
2108
+ 'step' => 0.1,
2109
+ ),
2110
+ 'priority' => 3,
2111
+ )
2112
+ )
2113
+ );
2114
+ // line-height
2115
+ $wp_customize->add_setting(
2116
+ 'elanzalite_body_line_height_h4', array(
2117
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2118
+ 'default' => 40,
2119
+
2120
+ )
2121
+ );
2122
+
2123
+ $wp_customize->add_control(
2124
+ new Themehunk_Customizer_Range_Value_Control(
2125
+ $wp_customize, 'elanzalite_body_line_height_h4', array(
2126
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2127
+ 'section' => 'elanzalite_typography_h4',
2128
+ 'type' => 'range-value',
2129
+ 'input_attr' => array(
2130
+ 'min' => 1,
2131
+ 'max' => 100,
2132
+ 'step' => 0.1,
2133
+ ),
2134
+ 'priority' => 4,
2135
+ )
2136
+ )
2137
+ );
2138
+ // tab
2139
+ $wp_customize->add_setting(
2140
+ 'elanzalite_body_line_height_tb_h4', array(
2141
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2142
+ 'default' => 40,
2143
+
2144
+ )
2145
+ );
2146
+
2147
+ $wp_customize->add_control(
2148
+ new Themehunk_Customizer_Range_Value_Control(
2149
+ $wp_customize, 'elanzalite_body_line_height_tb_h4', array(
2150
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2151
+ 'section' => 'elanzalite_typography_h4',
2152
+ 'type' => 'range-value',
2153
+ 'input_attr' => array(
2154
+ 'min' => 1,
2155
+ 'max' => 100,
2156
+ 'step' => 0.1,
2157
+ ),
2158
+ 'priority' => 4,
2159
+ )
2160
+ )
2161
+ );
2162
+ // mob
2163
+ $wp_customize->add_setting(
2164
+ 'elanzalite_body_line_height_mb_h4', array(
2165
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2166
+ 'default' => 40,
2167
+
2168
+ )
2169
+ );
2170
+
2171
+ $wp_customize->add_control(
2172
+ new Themehunk_Customizer_Range_Value_Control(
2173
+ $wp_customize, 'elanzalite_body_line_height_mb_h4', array(
2174
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2175
+ 'section' => 'elanzalite_typography_h4',
2176
+ 'type' => 'range-value',
2177
+ 'input_attr' => array(
2178
+ 'min' => 1,
2179
+ 'max' => 100,
2180
+ 'step' => 0.1,
2181
+ ),
2182
+ 'priority' => 4,
2183
+ )
2184
+ )
2185
+ );
2186
+ // letter-spacing
2187
+ $wp_customize->add_setting(
2188
+ 'elanzalite_body_letter_spacing_h4', array(
2189
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2190
+ 'default' => 0.7,
2191
+
2192
+ )
2193
+ );
2194
+
2195
+ $wp_customize->add_control(
2196
+ new Themehunk_Customizer_Range_Value_Control(
2197
+ $wp_customize, 'elanzalite_body_letter_spacing_h4', array(
2198
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2199
+ 'section' => 'elanzalite_typography_h4',
2200
+ 'type' => 'range-value',
2201
+ 'input_attr' => array(
2202
+ 'min' => 0,
2203
+ 'max' => 5,
2204
+ 'step' => 0.1,
2205
+ ),
2206
+ 'priority' => 25,
2207
+ )
2208
+ )
2209
+ );
2210
+ // tab
2211
+ $wp_customize->add_setting(
2212
+ 'elanzalite_body_letter_spacing_tb_h4', array(
2213
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2214
+ 'default' => 0.7,
2215
+
2216
+ )
2217
+ );
2218
+
2219
+ $wp_customize->add_control(
2220
+ new Themehunk_Customizer_Range_Value_Control(
2221
+ $wp_customize, 'elanzalite_body_letter_spacing_tb_h4', array(
2222
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2223
+ 'section' => 'elanzalite_typography_h4',
2224
+ 'type' => 'range-value',
2225
+ 'input_attr' => array(
2226
+ 'min' => 0,
2227
+ 'max' => 5,
2228
+ 'step' => 0.1,
2229
+ ),
2230
+ 'priority' => 25,
2231
+ )
2232
+ )
2233
+ );
2234
+ //mob
2235
+ $wp_customize->add_setting(
2236
+ 'elanzalite_body_letter_spacing_mb_h4', array(
2237
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2238
+ 'default' => 0.7,
2239
+
2240
+ )
2241
+ );
2242
+
2243
+ $wp_customize->add_control(
2244
+ new Themehunk_Customizer_Range_Value_Control(
2245
+ $wp_customize, 'elanzalite_body_letter_spacing_mb_h4', array(
2246
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2247
+ 'section' => 'elanzalite_typography_h4',
2248
+ 'type' => 'range-value',
2249
+ 'input_attr' => array(
2250
+ 'min' => 0,
2251
+ 'max' => 5,
2252
+ 'step' => 0.1,
2253
+ ),
2254
+ 'priority' => 25,
2255
+ )
2256
+ )
2257
+ );
2258
+
2259
+ }
2260
+ /************************************/
2261
+ // H5-typography
2262
+ /***********************************/
2263
+ $wp_customize->add_section(
2264
+ 'elanzalite_typography_h5', array(
2265
+ 'title' => esc_html__( 'Heading 5 (H5)', 'elanzalite' ),
2266
+ 'priority' => 25,
2267
+ 'panel' => 'theme_tygrphy',
2268
+ )
2269
+ );
2270
+
2271
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
2272
+ $wp_customize->add_setting(
2273
+ 'elanzalite_body_font_h5', array(
2274
+ 'type' => 'theme_mod',
2275
+ 'sanitize_callback' => 'sanitize_text_field',
2276
+ )
2277
+ );
2278
+
2279
+ $wp_customize->add_control(
2280
+ new Themehunk_Font_Selector(
2281
+ $wp_customize, 'elanzalite_body_font_h5', array(
2282
+ 'label' => esc_html__( 'Font family', 'elanzalite' ),
2283
+ 'section' => 'elanzalite_typography_h5',
2284
+ 'priority' => 2,
2285
+ 'type' => 'select',
2286
+ )
2287
+ )
2288
+ );
2289
+ }
2290
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
2291
+
2292
+ $wp_customize->add_setting(
2293
+ 'elanzalite_body_font_size_h5', array(
2294
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2295
+ 'default' => 26,
2296
+
2297
+ )
2298
+ );
2299
+
2300
+ $wp_customize->add_control(
2301
+ new Themehunk_Customizer_Range_Value_Control(
2302
+ $wp_customize, 'elanzalite_body_font_size_h5', array(
2303
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2304
+ 'section' => 'elanzalite_typography_h5',
2305
+ 'type' => 'range-value',
2306
+ 'input_attr' => array(
2307
+ 'min' => 10,
2308
+ 'max' => 100,
2309
+ 'step' => 0.1,
2310
+ ),
2311
+ 'priority' => 3,
2312
+ )
2313
+ )
2314
+ );
2315
+
2316
+ // tab
2317
+ $wp_customize->add_setting(
2318
+ 'elanzalite_body_font_size_tb_h5', array(
2319
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2320
+ 'default' => 26,
2321
+
2322
+ )
2323
+ );
2324
+
2325
+ $wp_customize->add_control(
2326
+ new Themehunk_Customizer_Range_Value_Control(
2327
+ $wp_customize, 'elanzalite_body_font_size_tb_h5', array(
2328
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2329
+ 'section' => 'elanzalite_typography_h5',
2330
+ 'type' => 'range-value',
2331
+ 'input_attr' => array(
2332
+ 'min' => 10,
2333
+ 'max' => 100,
2334
+ 'step' => 0.1,
2335
+ ),
2336
+ 'priority' => 3,
2337
+ )
2338
+ )
2339
+ );
2340
+ // mob
2341
+ $wp_customize->add_setting(
2342
+ 'elanzalite_body_font_size_mb_h5', array(
2343
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2344
+ 'default' => 26,
2345
+
2346
+ )
2347
+ );
2348
+
2349
+ $wp_customize->add_control(
2350
+ new Themehunk_Customizer_Range_Value_Control(
2351
+ $wp_customize, 'elanzalite_body_font_size_mb_h5', array(
2352
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2353
+ 'section' => 'elanzalite_typography_h5',
2354
+ 'type' => 'range-value',
2355
+ 'input_attr' => array(
2356
+ 'min' => 10,
2357
+ 'max' => 100,
2358
+ 'step' => 0.1,
2359
+ ),
2360
+ 'priority' => 3,
2361
+ )
2362
+ )
2363
+ );
2364
+ // line-height
2365
+ $wp_customize->add_setting(
2366
+ 'elanzalite_body_line_height_h5', array(
2367
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2368
+ 'default' => 36,
2369
+
2370
+ )
2371
+ );
2372
+
2373
+ $wp_customize->add_control(
2374
+ new Themehunk_Customizer_Range_Value_Control(
2375
+ $wp_customize, 'elanzalite_body_line_height_h5', array(
2376
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2377
+ 'section' => 'elanzalite_typography_h5',
2378
+ 'type' => 'range-value',
2379
+ 'input_attr' => array(
2380
+ 'min' => 1,
2381
+ 'max' => 100,
2382
+ 'step' => 0.1,
2383
+ ),
2384
+ 'priority' => 4,
2385
+ )
2386
+ )
2387
+ );
2388
+ // tab
2389
+ $wp_customize->add_setting(
2390
+ 'elanzalite_body_line_height_tb_h5', array(
2391
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2392
+ 'default' => 36,
2393
+
2394
+ )
2395
+ );
2396
+
2397
+ $wp_customize->add_control(
2398
+ new Themehunk_Customizer_Range_Value_Control(
2399
+ $wp_customize, 'elanzalite_body_line_height_tb_h5', array(
2400
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2401
+ 'section' => 'elanzalite_typography_h5',
2402
+ 'type' => 'range-value',
2403
+ 'input_attr' => array(
2404
+ 'min' => 1,
2405
+ 'max' => 100,
2406
+ 'step' => 0.1,
2407
+ ),
2408
+ 'priority' => 4,
2409
+ )
2410
+ )
2411
+ );
2412
+ // mob
2413
+ $wp_customize->add_setting(
2414
+ 'elanzalite_body_line_height_mb_h5', array(
2415
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2416
+ 'default' => 36,
2417
+
2418
+ )
2419
+ );
2420
+
2421
+ $wp_customize->add_control(
2422
+ new Themehunk_Customizer_Range_Value_Control(
2423
+ $wp_customize, 'elanzalite_body_line_height_mb_h5', array(
2424
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2425
+ 'section' => 'elanzalite_typography_h5',
2426
+ 'type' => 'range-value',
2427
+ 'input_attr' => array(
2428
+ 'min' => 1,
2429
+ 'max' => 100,
2430
+ 'step' => 0.1,
2431
+ ),
2432
+ 'priority' => 4,
2433
+ )
2434
+ )
2435
+ );
2436
+ // letter-spacing
2437
+ $wp_customize->add_setting(
2438
+ 'elanzalite_body_letter_spacing_h5', array(
2439
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2440
+ 'default' => 0.7,
2441
+
2442
+ )
2443
+ );
2444
+
2445
+ $wp_customize->add_control(
2446
+ new Themehunk_Customizer_Range_Value_Control(
2447
+ $wp_customize, 'elanzalite_body_letter_spacing_h5', array(
2448
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2449
+ 'section' => 'elanzalite_typography_h5',
2450
+ 'type' => 'range-value',
2451
+ 'input_attr' => array(
2452
+ 'min' => 0,
2453
+ 'max' => 5,
2454
+ 'step' => 0.1,
2455
+ ),
2456
+ 'priority' => 25,
2457
+ )
2458
+ )
2459
+ );
2460
+ // tab
2461
+ $wp_customize->add_setting(
2462
+ 'elanzalite_body_letter_spacing_tb_h5', array(
2463
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2464
+ 'default' => 0.7,
2465
+
2466
+ )
2467
+ );
2468
+
2469
+ $wp_customize->add_control(
2470
+ new Themehunk_Customizer_Range_Value_Control(
2471
+ $wp_customize, 'elanzalite_body_letter_spacing_tb_h5', array(
2472
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2473
+ 'section' => 'elanzalite_typography_h5',
2474
+ 'type' => 'range-value',
2475
+ 'input_attr' => array(
2476
+ 'min' => 0,
2477
+ 'max' => 5,
2478
+ 'step' => 0.1,
2479
+ ),
2480
+ 'priority' => 25,
2481
+ )
2482
+ )
2483
+ );
2484
+ //mob
2485
+ $wp_customize->add_setting(
2486
+ 'elanzalite_body_letter_spacing_mb_h5', array(
2487
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2488
+ 'default' => 0.7,
2489
+
2490
+ )
2491
+ );
2492
+
2493
+ $wp_customize->add_control(
2494
+ new Themehunk_Customizer_Range_Value_Control(
2495
+ $wp_customize, 'elanzalite_body_letter_spacing_mb_h5', array(
2496
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2497
+ 'section' => 'elanzalite_typography_h5',
2498
+ 'type' => 'range-value',
2499
+ 'input_attr' => array(
2500
+ 'min' => 0,
2501
+ 'max' => 5,
2502
+ 'step' => 0.1,
2503
+ ),
2504
+ 'priority' => 25,
2505
+ )
2506
+ )
2507
+ );
2508
+
2509
+ }
2510
+ /************************************/
2511
+ // H6-typography
2512
+ /***********************************/
2513
+ $wp_customize->add_section(
2514
+ 'elanzalite_typography_h6', array(
2515
+ 'title' => esc_html__( 'Heading 6 (H6)', 'elanzalite' ),
2516
+ 'priority' => 25,
2517
+ 'panel' => 'theme_tygrphy',
2518
+ )
2519
+ );
2520
+
2521
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
2522
+ $wp_customize->add_setting(
2523
+ 'elanzalite_body_font_h6', array(
2524
+ 'type' => 'theme_mod',
2525
+ 'sanitize_callback' => 'sanitize_text_field',
2526
+ )
2527
+ );
2528
+
2529
+ $wp_customize->add_control(
2530
+ new Themehunk_Font_Selector(
2531
+ $wp_customize, 'elanzalite_body_font_h6', array(
2532
+ 'label' => esc_html__( 'Font family', 'elanzalite' ),
2533
+ 'section' => 'elanzalite_typography_h6',
2534
+ 'priority' => 2,
2535
+ 'type' => 'select',
2536
+ )
2537
+ )
2538
+ );
2539
+ }
2540
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
2541
+
2542
+ $wp_customize->add_setting(
2543
+ 'elanzalite_body_font_size_h6', array(
2544
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2545
+ 'default' => 22,
2546
+
2547
+ )
2548
+ );
2549
+
2550
+ $wp_customize->add_control(
2551
+ new Themehunk_Customizer_Range_Value_Control(
2552
+ $wp_customize, 'elanzalite_body_font_size_h6', array(
2553
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2554
+ 'section' => 'elanzalite_typography_h6',
2555
+ 'type' => 'range-value',
2556
+ 'input_attr' => array(
2557
+ 'min' => 10,
2558
+ 'max' => 100,
2559
+ 'step' => 0.1,
2560
+ ),
2561
+ 'priority' => 3,
2562
+ )
2563
+ )
2564
+ );
2565
+
2566
+ // tab
2567
+ $wp_customize->add_setting(
2568
+ 'elanzalite_body_font_size_tb_h6', array(
2569
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2570
+ 'default' => 22,
2571
+
2572
+ )
2573
+ );
2574
+
2575
+ $wp_customize->add_control(
2576
+ new Themehunk_Customizer_Range_Value_Control(
2577
+ $wp_customize, 'elanzalite_body_font_size_tb_h6', array(
2578
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2579
+ 'section' => 'elanzalite_typography_h6',
2580
+ 'type' => 'range-value',
2581
+ 'input_attr' => array(
2582
+ 'min' => 10,
2583
+ 'max' => 100,
2584
+ 'step' => 0.1,
2585
+ ),
2586
+ 'priority' => 3,
2587
+ )
2588
+ )
2589
+ );
2590
+ // mob
2591
+ $wp_customize->add_setting(
2592
+ 'elanzalite_body_font_size_mb_h6', array(
2593
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2594
+ 'default' => 22,
2595
+
2596
+ )
2597
+ );
2598
+
2599
+ $wp_customize->add_control(
2600
+ new Themehunk_Customizer_Range_Value_Control(
2601
+ $wp_customize, 'elanzalite_body_font_size_mb_h6', array(
2602
+ 'label' => esc_html__( 'Font size', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2603
+ 'section' => 'elanzalite_typography_h6',
2604
+ 'type' => 'range-value',
2605
+ 'input_attr' => array(
2606
+ 'min' => 10,
2607
+ 'max' => 100,
2608
+ 'step' => 0.1,
2609
+ ),
2610
+ 'priority' => 3,
2611
+ )
2612
+ )
2613
+ );
2614
+ // line-height
2615
+ $wp_customize->add_setting(
2616
+ 'elanzalite_body_line_height_h6', array(
2617
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2618
+ 'default' => 32,
2619
+
2620
+ )
2621
+ );
2622
+
2623
+ $wp_customize->add_control(
2624
+ new Themehunk_Customizer_Range_Value_Control(
2625
+ $wp_customize, 'elanzalite_body_line_height_h6', array(
2626
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2627
+ 'section' => 'elanzalite_typography_h6',
2628
+ 'type' => 'range-value',
2629
+ 'input_attr' => array(
2630
+ 'min' => 1,
2631
+ 'max' => 100,
2632
+ 'step' => 0.1,
2633
+ ),
2634
+ 'priority' => 4,
2635
+ )
2636
+ )
2637
+ );
2638
+ // tab
2639
+ $wp_customize->add_setting(
2640
+ 'elanzalite_body_line_height_tb_h6', array(
2641
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2642
+ 'default' => 32,
2643
+
2644
+ )
2645
+ );
2646
+
2647
+ $wp_customize->add_control(
2648
+ new Themehunk_Customizer_Range_Value_Control(
2649
+ $wp_customize, 'elanzalite_body_line_height_tb_h6', array(
2650
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2651
+ 'section' => 'elanzalite_typography_h6',
2652
+ 'type' => 'range-value',
2653
+ 'input_attr' => array(
2654
+ 'min' => 1,
2655
+ 'max' => 100,
2656
+ 'step' => 0.1,
2657
+ ),
2658
+ 'priority' => 4,
2659
+ )
2660
+ )
2661
+ );
2662
+ // mob
2663
+ $wp_customize->add_setting(
2664
+ 'elanzalite_body_line_height_mb_h6', array(
2665
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2666
+ 'default' => 32,
2667
+
2668
+ )
2669
+ );
2670
+
2671
+ $wp_customize->add_control(
2672
+ new Themehunk_Customizer_Range_Value_Control(
2673
+ $wp_customize, 'elanzalite_body_line_height_mb_h6', array(
2674
+ 'label' => esc_html__( 'Line height', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2675
+ 'section' => 'elanzalite_typography_h6',
2676
+ 'type' => 'range-value',
2677
+ 'input_attr' => array(
2678
+ 'min' => 1,
2679
+ 'max' => 100,
2680
+ 'step' => 0.1,
2681
+ ),
2682
+ 'priority' => 4,
2683
+ )
2684
+ )
2685
+ );
2686
+ // letter-spacing
2687
+ $wp_customize->add_setting(
2688
+ 'elanzalite_body_letter_spacing_h6', array(
2689
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2690
+ 'default' => 0.7,
2691
+
2692
+ )
2693
+ );
2694
+
2695
+ $wp_customize->add_control(
2696
+ new Themehunk_Customizer_Range_Value_Control(
2697
+ $wp_customize, 'elanzalite_body_letter_spacing_h6', array(
2698
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2699
+ 'section' => 'elanzalite_typography_h6',
2700
+ 'type' => 'range-value',
2701
+ 'input_attr' => array(
2702
+ 'min' => 0,
2703
+ 'max' => 5,
2704
+ 'step' => 0.1,
2705
+ ),
2706
+ 'priority' => 25,
2707
+ )
2708
+ )
2709
+ );
2710
+ // tab
2711
+ $wp_customize->add_setting(
2712
+ 'elanzalite_body_letter_spacing_tb_h6', array(
2713
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2714
+ 'default' => 0.7,
2715
+
2716
+ )
2717
+ );
2718
+
2719
+ $wp_customize->add_control(
2720
+ new Themehunk_Customizer_Range_Value_Control(
2721
+ $wp_customize, 'elanzalite_body_letter_spacing_tb_h6', array(
2722
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2723
+ 'section' => 'elanzalite_typography_h6',
2724
+ 'type' => 'range-value',
2725
+ 'input_attr' => array(
2726
+ 'min' => 0,
2727
+ 'max' => 5,
2728
+ 'step' => 0.1,
2729
+ ),
2730
+ 'priority' => 25,
2731
+ )
2732
+ )
2733
+ );
2734
+ //mob
2735
+ $wp_customize->add_setting(
2736
+ 'elanzalite_body_letter_spacing_mb_h6', array(
2737
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2738
+ 'default' => 0.7,
2739
+
2740
+ )
2741
+ );
2742
+
2743
+ $wp_customize->add_control(
2744
+ new Themehunk_Customizer_Range_Value_Control(
2745
+ $wp_customize, 'elanzalite_body_letter_spacing_mb_h6', array(
2746
+ 'label' => esc_html__( 'Letter-spacing ', 'elanzalite' ) . ' ( ' . esc_html__( 'px','elanzalite' ) . ' )',
2747
+ 'section' => 'elanzalite_typography_h6',
2748
+ 'type' => 'range-value',
2749
+ 'input_attr' => array(
2750
+ 'min' => 0,
2751
+ 'max' => 5,
2752
+ 'step' => 0.1,
2753
+ ),
2754
+ 'priority' => 25,
2755
+ )
2756
+ )
2757
+ );
2758
+ }
2759
+ /************************************/
2760
+ // a-typography
2761
+ /***********************************/
2762
+ $wp_customize->add_section(
2763
+ 'elanzalite_typography_a', array(
2764
+ 'title' => esc_html__( 'Anchor Tag (a)', 'elanzalite' ),
2765
+ 'priority' => 25,
2766
+ 'panel' => 'theme_tygrphy',
2767
+ )
2768
+ );
2769
+
2770
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
2771
+ $wp_customize->add_setting(
2772
+ 'elanzalite_body_font_a', array(
2773
+ 'type' => 'theme_mod',
2774
+ 'sanitize_callback' => 'sanitize_text_field',
2775
+ )
2776
+ );
2777
+
2778
+ $wp_customize->add_control(
2779
+ new Themehunk_Font_Selector(
2780
+ $wp_customize, 'elanzalite_body_font_a', array(
2781
+ 'label' => esc_html__( 'Font family', 'elanzalite' ),
2782
+ 'section' => 'elanzalite_typography_a',
2783
+ 'priority' => 2,
2784
+ 'type' => 'select',
2785
+ )
2786
+ )
2787
+ );
2788
+ }
2789
+ /*********************/
2790
+ //magzine template
2791
+ /*********************/
2792
+ $wp_customize->add_panel( 'elanzalite_magzine', array(
2793
+ 'priority' => 3,
2794
+ 'title' => __('Magazine Template', 'elanzalite'),
2795
+ ) );
2796
+
2797
+ $wp_customize->add_section('magzine_box_layout', array(
2798
+ 'title' => __('Boxed Layout', 'elanzalite'),
2799
+ 'priority' => 1,
2800
+ 'panel' => 'elanzalite_magzine',
2801
+ ));
2802
+ //choose Boxed layout
2803
+ $wp_customize->add_setting('magzine_boxed_layout', array(
2804
+ 'default' => 'disable-all',
2805
+ 'capability' => 'edit_theme_options',
2806
+ 'priority' => 1,
2807
+ ));
2808
+ $wp_customize->add_control('magzine_boxed_layout', array(
2809
+ 'settings' => 'magzine_boxed_layout',
2810
+ 'label' => 'Boxed Layout',
2811
+ 'section' => 'magzine_box_layout',
2812
+ 'active_callback' => 'elanzalite_is_magazine_page',
2813
+ 'type' => 'radio',
2814
+ 'choices' => array(
2815
+ 'disable-all' => ' Disable For All',
2816
+ 'boxed-single' => 'Enable Boxed Layout ( Single page)',
2817
+ 'boxed-all' => ' Enable Boxed Layout ( All pages)',
2818
+
2819
+ ),
2820
+ ));
2821
+ $wp_customize->add_section('magzine_box_hrdr_layout', array(
2822
+ 'title' => __('Header Layout', 'elanzalite'),
2823
+ 'priority' => 3,
2824
+ 'panel' => 'elanzalite_magzine',
2825
+ 'active_callback' => 'elanzalite_is_magazine_page',
2826
+ ));
2827
+ $wp_customize->add_setting('mag_header_desc', array(
2828
+ 'sanitize_callback' => 'sanitize_text_field'
2829
+ ));
2830
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'mag_header_desc',
2831
+ array(
2832
+ 'section' => 'magzine_box_hrdr_layout',
2833
+ 'type' => 'custom_message',
2834
+ 'description' => wp_kses_post( '(First Enable boxed layout for showing header layout on your site)','elanzalite' )
2835
+ )));
2836
+ // choose header style
2837
+ $wp_customize->add_setting('header_style1_active', array(
2838
+ 'default' => 'hdr_default',
2839
+ 'capability' => 'edit_theme_options',
2840
+ ));
2841
+ $wp_customize->add_control( 'header_style1_active', array(
2842
+ 'settings' => 'header_style1_active',
2843
+ 'label' => 'Choose Header Style',
2844
+ 'section' => 'magzine_box_hrdr_layout',
2845
+ 'type' => 'radio',
2846
+ 'choices' => array(
2847
+ 'hdr_default' => 'Default',
2848
+ 'hdr_one_ads' => 'Header With Ad',
2849
+
2850
+ ),
2851
+ ));
2852
+ // = Choose ads =
2853
+ $wp_customize->add_setting('ads_select', array(
2854
+ 'default' => 'ads_image',
2855
+ 'capability' => 'edit_theme_options',
2856
+ ));
2857
+ $wp_customize->add_control('ads_select', array(
2858
+ 'settings' => 'ads_select',
2859
+ 'label' => 'Choose Ad',
2860
+ 'section' => 'magzine_box_hrdr_layout',
2861
+ 'type' => 'radio',
2862
+ 'choices' => array(
2863
+ 'ads_image' => 'Banner Ad',
2864
+ 'ads_code' => 'Google Ad',
2865
+
2866
+ ),
2867
+ ));
2868
+ //ads-image
2869
+ $wp_customize->add_setting('hdr_ads_image', array(
2870
+ 'capability' => 'edit_theme_options',
2871
+ 'sanitize_callback' => 'sanitize_text_field'
2872
+ ));
2873
+ $wp_customize->add_control( new WP_Customize_Image_Control(
2874
+ $wp_customize, 'hdr_ads_image', array(
2875
+ 'label' => __('Upload Ad Image', 'elanza'),
2876
+ 'section' => 'magzine_box_hrdr_layout',
2877
+ 'settings' => 'hdr_ads_image',
2878
+ )));
2879
+ // ads link
2880
+ $wp_customize->add_setting('ads_link', array(
2881
+ 'default' => '',
2882
+ 'capability' => 'edit_theme_options',
2883
+ ));
2884
+ $wp_customize->add_control('ads_link', array(
2885
+ 'settings' => 'ads_link',
2886
+ 'label' => 'Ad Link',
2887
+ 'section' => 'magzine_box_hrdr_layout',
2888
+ 'type' => 'text',
2889
+ ) );
2890
+ // adsense code
2891
+ $wp_customize->add_setting('hdr_adsense_code', array(
2892
+ 'default' => '',
2893
+ 'capability' => 'edit_theme_options',
2894
+ ));
2895
+ $wp_customize->add_control('hdr_adsense_code', array(
2896
+ 'settings' => 'hdr_adsense_code',
2897
+ 'label' => __('Adsense Code','elanza'),
2898
+ 'description' => __('Google Adsense / Custom Ad Generate <a target="_blank" href="//www.google.com/adsense/start/">Google Adsense</a> code and paste it below.','elanzalite'),
2899
+ 'section' => 'magzine_box_hrdr_layout',
2900
+ 'type' => 'textarea',
2901
+ ) );
2902
+ //bg-color-menu
2903
+ $wp_customize->add_setting('ads_hd_bg_color',
2904
+ array(
2905
+ 'default' => '#0e0e0e',
2906
+ 'type' => 'theme_mod',
2907
+ 'capability' => 'edit_theme_options',
2908
+
2909
+ ) );
2910
+
2911
+ $wp_customize->add_control(
2912
+ new Customize_themehunk_Color_Control($wp_customize,
2913
+ 'ads_hd_bg_color',
2914
+ array(
2915
+ 'label' => __('Menu Background Color','elanzalite'),
2916
+ 'section' => 'magzine_box_hrdr_layout',
2917
+ 'settings' => 'ads_hd_bg_color',
2918
+ 'palette' => $palette
2919
+ )
2920
+ )
2921
+ );
2922
+ // responsive menu text
2923
+ $wp_customize->add_setting('mobile_menu_text', array(
2924
+ 'default' => 'Main Menu',
2925
+ 'capability' => 'edit_theme_options',
2926
+ ));
2927
+ $wp_customize->add_control('mobile_menu_text', array(
2928
+ 'settings' => 'mobile_menu_text',
2929
+ 'label' => 'Mobile Menu Text',
2930
+ 'section' => 'magzine_box_hrdr_layout',
2931
+ 'type' => 'text',
2932
+ ) );
2933
+ // magazine-color
2934
+ $wp_customize->add_section('magzine_color_option', array(
2935
+ 'title' => __('Setting', 'elanzalite'),
2936
+ 'priority' => 5,
2937
+ 'panel' => 'elanzalite_magzine',
2938
+ ));
2939
+ // Sidebar settings
2940
+
2941
+ $wp_customize->add_section('elanzalite_magzine_layout_section', array(
2942
+ 'title' => __('Setting', 'elanzalite'),
2943
+ 'priority' => 1,
2944
+ 'panel' => 'elanzalite_magzine',
2945
+ ));
2946
+ $wp_customize->add_setting( 'elanzalite_magzine_layout',
2947
+ array(
2948
+ 'sanitize_callback' => 'sanitize_text_field',
2949
+ 'default' => 'right',
2950
+
2951
+ )
2952
+ );
2953
+ $wp_customize->add_control( 'elanzalite_magzine_layout',
2954
+ array(
2955
+ 'type' => 'select',
2956
+ 'label' => esc_html__('Sidebar Alignment', 'elanzalite'),
2957
+ 'description' => esc_html__('Choose sidebar option for Magazine Template', 'elanzalite'),
2958
+ 'active_callback' => 'elanzalite_is_magazine_page',
2959
+ 'section' => 'elanzalite_magzine_layout_section',
2960
+ 'priority' => 100,
2961
+ 'choices' => array(
2962
+ 'right' => esc_html__('Right sidebar', 'elanzalite'),
2963
+ 'left' => esc_html__('Left sidebar', 'elanzalite'),
2964
+ )
2965
+ )
2966
+ );
2967
+ //break
2968
+ $wp_customize->add_setting('mg_view_break_color', array(
2969
+ 'sanitize_callback' => 'sanitize_text_field'
2970
+ ));
2971
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
2972
+ $wp_customize,'mg_view_break_color',array(
2973
+ 'section' => 'magzine_color_option',
2974
+ 'description' => __( 'View All Button', 'elanzalite' ),
2975
+ 'type' => 'content',
2976
+ 'input_attrs' => array('divider' => true),
2977
+ 'active_callback' => 'elanzalite_is_magazine_page',
2978
+ 'priority' => 2,
2979
+ )));
2980
+
2981
+ $wp_customize->add_setting('magzine_vw_bg_color', array(
2982
+ 'default' => '#0e0e0e',
2983
+ 'capability' => 'edit_theme_options',
2984
+
2985
+ ));
2986
+ $wp_customize->add_control(
2987
+ new WP_Customize_Color_Control(
2988
+ $wp_customize,
2989
+ 'magzine_vw_bg_color',
2990
+ array(
2991
+ 'label' => __( 'Background Color', 'elanzalite' ),
2992
+ 'section' => 'magzine_color_option',
2993
+ 'settings' => 'magzine_vw_bg_color',
2994
+ 'active_callback' => 'elanzalite_is_magazine_page',
2995
+ 'priority' => 3,
2996
+ ) ) );
2997
+ //break
2998
+ $wp_customize->add_setting('mg_cat_break_color', array(
2999
+ 'sanitize_callback' => 'sanitize_text_field'
3000
+ ));
3001
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
3002
+ $wp_customize,'mg_cat_break_color',array(
3003
+ 'section' => 'magzine_color_option',
3004
+ 'description' => __( 'Category Background Color', 'elanzalite' ),
3005
+ 'type' => 'content',
3006
+ 'input_attrs' => array('divider' => true),
3007
+ 'active_callback' => 'elanzalite_is_magazine_page',
3008
+ 'priority' => 4,
3009
+ )));
3010
+ $i = 1;
3011
+ $args = array(
3012
+ 'orderby' => 'id',
3013
+ 'hide_empty' => 0
3014
+ );
3015
+ $categories = get_categories( $args );
3016
+ $wp_category_list = array();
3017
+ foreach ( $categories as $category_list ) {
3018
+ $wp_category_list[ $category_list->cat_ID ] = $category_list->cat_name;
3019
+
3020
+ $wp_customize->add_setting( 'elanzalite_category_color_' . get_cat_id( $wp_category_list[ $category_list->cat_ID ] ), array(
3021
+ 'default' => '',
3022
+ 'capability' => 'edit_theme_options',
3023
+
3024
+ ) );
3025
+
3026
+ $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'elanzalite_category_color_' . get_cat_id( $wp_category_list[ $category_list->cat_ID ] ), array(
3027
+ 'label' => sprintf( __( '%s', 'elanzalite' ), $wp_category_list[ $category_list->cat_ID ] ),
3028
+ 'section' => 'magzine_color_option',
3029
+ 'settings' => 'elanzalite_category_color_' . get_cat_id( $wp_category_list[ $category_list->cat_ID ] ),
3030
+ 'priority' => $i,
3031
+ 'active_callback' => 'elanzalite_is_magazine_page',
3032
+ 'priority' => 5,
3033
+ ) ) );
3034
+ $i ++;
3035
+ }
3036
+
3037
+ }
3038
+ add_action('customize_register','elanzalite_unlimited_customize_register',999);
3039
+ /**
3040
+ * Check if a string is in json format
3041
+ * @param string $string Input.
3042
+ *
3043
+ * @since 1.1.38
3044
+ * @return bool
3045
+ */
3046
+ function themehunk_is_json( $string ) {
3047
+ return is_string( $string ) && is_array( json_decode( $string, true ) ) ? true : false;
3048
+ }
3049
+ function elanzalite_is_magazine_page() {
3050
+ return is_page_template('magazine-template.php');
3051
+ }
3052
+ function elanzalite_is_not_magazine_page() {
3053
+ return ! is_page_template('magazine-template.php');
3054
+ }
3055
+ ?>
elanzalite/customizer/customizer_styles.css ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #widget-customizer-control-templates, .control-section.control-section-sidebar, .customize-control-sidebar_widgets .hide-if-js, .customize-control-sidebar_widgets label, .customize-control-widget_form .widget-control-save{
2
+ display:block;
3
+ }
4
+
5
+ a.oneline-docs-to-pro-button {
6
+ background: rgba(0, 128, 0, 0.75);
7
+ padding: 5px;
8
+ border-radius: 2px;
9
+ color: #fff;
10
+ position: relative;
11
+ top: 7px;
12
+ }
13
+ .widget-content .wp-picker-input-wrap label{
14
+ padding-bottom:0px;
15
+ display:inherit;
16
+ padding-top: 0px;
17
+
18
+ }
19
+ #customize-control-sdr_btn_break_color .description,#customize-control-mg_view_break_color .description,#customize-control-mg_cat_break_color .description{
20
+ font-size:17PX;
21
+ }
22
+
23
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-section-news"] .widget-title::before,
24
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-section-one"] .widget-title::before,
25
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-section-two"] .widget-title::before,
26
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-section-three"] .widget-title::before,
27
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-section-four"] .widget-title::before,
28
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-section-five"] .widget-title::before,
29
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-section-add"] .widget-title::before,
30
+ #available-widgets #available-widgets-list div[class*="advanced-recent-posts"] .widget-title::before,
31
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-about-me-widget"] .widget-title::before,
32
+ #available-widgets #available-widgets-list div[class*="advanced-social-widget"] .widget-title::before{
33
+ content: "\f132";
34
+ color:#66cda9;
35
+ }
36
+ a.button.pro-button-secondary.alignright {
37
+ background: #03a9f4;
38
+ }
elanzalite/customizer/js/customizer.js ADDED
@@ -0,0 +1,330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){
2
+ // Magzine widget
3
+ // Magzine widget
4
+ wp.customize.section( 'sidebar-widgets-magzine-widget' ).panel('elanzalite_magzine');
5
+ wp.customize.section( 'sidebar-widgets-magzine-widget' ).priority('5');
6
+
7
+ wp.customize.section( 'sidebar-widgets-magzine-sidebar-widget' ).panel('elanzalite_magzine');
8
+ wp.customize.section( 'sidebar-widgets-magzine-sidebar-widget' ).priority('6');
9
+ wp.customize.control( 'elanzalite_magzine_layout' ).section( 'sidebar-widgets-magzine-sidebar-widget' );
10
+
11
+
12
+ wp.customize('elanzalite_listing_layout', function( value ){
13
+ var filter_type = value.bind( function( to ) {
14
+ if(to=='two-grid-layout'){
15
+ jQuery( '#customize-control-blog_post_share_hide' ).css('display','none' );
16
+
17
+ } else if(to=='standard-layout'){
18
+ jQuery( '#customize-control-blog_post_share_hide' ).css('display','block' );
19
+
20
+ }
21
+ } );
22
+ if(filter_type()=='two-grid-layout'){
23
+ jQuery( '#customize-control-blog_post_share_hide' ).css('display','none' );
24
+
25
+ } else if(filter_type()=='standard-layout'){
26
+ jQuery( '#customize-control-blog_post_share_hide' ).css('display','block' );
27
+
28
+
29
+ }
30
+
31
+ } );
32
+
33
+ wp.customize('elanzalite_listing_layout', function( value ){
34
+ var filter_type = value.bind( function( to ) {
35
+ if(to=='standard-layout'){
36
+ jQuery( '#customize-control-stndrd_post_excerpt_data_hide' ).css('display','block' );
37
+ jQuery( '#customize-control-post_excerpt_data_hide' ).css('display','none' );
38
+ jQuery( '#customize-control-excerpt_lenght' ).css('display','none' );
39
+ jQuery( '#customize-control-post_read_more_hide' ).css('display','none' );
40
+ jQuery( '#customize-control-readmore_text' ).css('display','none' );
41
+
42
+
43
+ } else if(to=='two-grid-layout'){
44
+ jQuery( '#customize-control-stndrd_post_excerpt_data_hide' ).css('display','none' );
45
+ jQuery( '#customize-control-post_excerpt_data_hide' ).css('display','block' );
46
+ jQuery( '#customize-control-excerpt_lenght' ).css('display','block' );
47
+ jQuery( '#customize-control-post_read_more_hide' ).css('display','block' );
48
+ jQuery( '#customize-control-readmore_text' ).css('display','block' );
49
+
50
+
51
+ }
52
+ } );
53
+ if(filter_type()=='standard-layout'){
54
+ jQuery( '#customize-control-stndrd_post_excerpt_data_hide' ).css('display','block' );
55
+ jQuery( '#customize-control-post_excerpt_data_hide' ).css('display','none' );
56
+ jQuery( '#customize-control-excerpt_lenght' ).css('display','none' );
57
+ jQuery( '#customize-control-post_read_more_hide' ).css('display','none' );
58
+ jQuery( '#customize-control-readmore_text' ).css('display','none' );
59
+
60
+
61
+ } else if(filter_type()=='two-grid-layout'){
62
+ jQuery( '#customize-control-stndrd_post_excerpt_data_hide' ).css('display','none' );
63
+ jQuery( '#customize-control-post_excerpt_data_hide' ).css('display','block' );
64
+ jQuery( '#customize-control-excerpt_lenght' ).css('display','block' );
65
+ jQuery( '#customize-control-post_read_more_hide' ).css('display','block' );
66
+ jQuery( '#customize-control-readmore_text' ).css('display','block' );
67
+
68
+
69
+ }
70
+ } );
71
+ wp.customize( 'post_excerpt_data_hide', function( value ) {
72
+ var filter_type = value.bind( function( to ) {
73
+ if(to=='1'){
74
+ jQuery( '#customize-control-excerpt_lenght' ).css('display','none' );
75
+
76
+ } else if(to=='' || to=='0'){
77
+ jQuery( '#customize-control-excerpt_lenght' ).css('display','block' );
78
+
79
+ }
80
+ } );
81
+ if(filter_type()=='1'){
82
+ jQuery( '#customize-control-excerpt_lenght' ).css('display','none' );
83
+
84
+ } else if(filter_type()=='' || filter_type()=='0'){
85
+ jQuery( '#customize-control-excerpt_lenght' ).css('display','block' );
86
+
87
+
88
+ }
89
+
90
+ } );
91
+ wp.customize('post_read_more_hide', function( value ){
92
+ var filter_type = value.bind( function( to ) {
93
+ if(to=='1'){
94
+ jQuery( '#customize-control-readmore_text' ).css('display','none' );
95
+
96
+ } else if(to=='' || to=='0'){
97
+ jQuery( '#customize-control-readmore_text' ).css('display','block' );
98
+
99
+ }
100
+ } );
101
+ if(filter_type()=='1'){
102
+ jQuery( '#customize-control-readmore_text' ).css('display','none' );
103
+
104
+ } else if(filter_type()=='' || filter_type()=='0'){
105
+ jQuery( '#customize-control-readmore_text' ).css('display','block' );
106
+
107
+
108
+ }
109
+
110
+ } );
111
+
112
+
113
+ jQuery( 'body' ).bind( 'click', '.devices button', function ( e ) {
114
+ if(jQuery('.devices-wrapper .preview-desktop').hasClass('active')){
115
+ // body
116
+ jQuery('#customize-control-elanzalite_body_font_size' ).css('display','block' );
117
+ jQuery('#customize-control-elanzalite_body_font_size_tb' ).css('display','none' );
118
+ jQuery('#customize-control-elanzalite_body_font_size_mb' ).css('display','none' );
119
+ jQuery('#customize-control-elanzalite_body_line_height' ).css('display','block' );
120
+ jQuery('#customize-control-elanzalite_body_line_height_tb' ).css('display','none' );
121
+ jQuery('#customize-control-elanzalite_body_line_height_mb' ).css('display','none' );
122
+ jQuery('#customize-control-elanzalite_body_letter_spacing' ).css('display','block' );
123
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb' ).css('display','none' );
124
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb' ).css('display','none' );
125
+ // H1
126
+ jQuery('#customize-control-elanzalite_body_font_size_h1' ).css('display','block' );
127
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h1' ).css('display','none' );
128
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h1' ).css('display','none' );
129
+ jQuery('#customize-control-elanzalite_body_line_height_h1' ).css('display','block' );
130
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h1' ).css('display','none' );
131
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h1' ).css('display','none' );
132
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h1' ).css('display','block' );
133
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h1' ).css('display','none' );
134
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h1' ).css('display','none' );
135
+ // H2
136
+ jQuery('#customize-control-elanzalite_body_font_size_h2' ).css('display','block' );
137
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h2' ).css('display','none' );
138
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h2' ).css('display','none' );
139
+ jQuery('#customize-control-elanzalite_body_line_height_h2' ).css('display','block' );
140
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h2' ).css('display','none' );
141
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h2' ).css('display','none' );
142
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h2' ).css('display','block' );
143
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h2' ).css('display','none' );
144
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h2' ).css('display','none' );
145
+ // H3
146
+ jQuery('#customize-control-elanzalite_body_font_size_h3' ).css('display','block' );
147
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h3' ).css('display','none' );
148
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h3' ).css('display','none' );
149
+ jQuery('#customize-control-elanzalite_body_line_height_h3' ).css('display','block' );
150
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h3' ).css('display','none' );
151
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h3' ).css('display','none' );
152
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h3' ).css('display','block' );
153
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h3' ).css('display','none' );
154
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h3' ).css('display','none' );
155
+ // H4
156
+ jQuery('#customize-control-elanzalite_body_font_size_h4' ).css('display','block' );
157
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h4' ).css('display','none' );
158
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h4' ).css('display','none' );
159
+ jQuery('#customize-control-elanzalite_body_line_height_h4' ).css('display','block' );
160
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h4' ).css('display','none' );
161
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h4' ).css('display','none' );
162
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h4' ).css('display','block' );
163
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h4' ).css('display','none' );
164
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h4' ).css('display','none' );
165
+ // H5
166
+ jQuery('#customize-control-elanzalite_body_font_size_h5' ).css('display','block' );
167
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h5' ).css('display','none' );
168
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h5' ).css('display','none' );
169
+ jQuery('#customize-control-elanzalite_body_line_height_h5' ).css('display','block' );
170
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h5' ).css('display','none' );
171
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h5' ).css('display','none' );
172
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h5' ).css('display','block' );
173
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h5' ).css('display','none' );
174
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h5' ).css('display','none' );
175
+ // H6
176
+ jQuery('#customize-control-elanzalite_body_font_size_h6' ).css('display','block' );
177
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h6' ).css('display','none' );
178
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h6' ).css('display','none' );
179
+ jQuery('#customize-control-elanzalite_body_line_height_h6' ).css('display','block' );
180
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h6' ).css('display','none' );
181
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h6' ).css('display','none' );
182
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h6' ).css('display','block' );
183
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h6' ).css('display','none' );
184
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h6' ).css('display','none' );
185
+ }
186
+ if(jQuery('.devices-wrapper .preview-tablet').hasClass('active')){
187
+ // body
188
+ jQuery('#customize-control-elanzalite_body_font_size' ).css('display','none' );
189
+ jQuery('#customize-control-elanzalite_body_font_size_tb' ).css('display','block' );
190
+ jQuery('#customize-control-elanzalite_body_font_size_mb' ).css('display','none' );
191
+ jQuery('#customize-control-elanzalite_body_line_height' ).css('display','none' );
192
+ jQuery('#customize-control-elanzalite_body_line_height_tb' ).css('display','block' );
193
+ jQuery('#customize-control-elanzalite_body_line_height_mb' ).css('display','none' );
194
+ jQuery('#customize-control-elanzalite_body_letter_spacing' ).css('display','none' );
195
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb' ).css('display','block' );
196
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb' ).css('display','none' );
197
+ // H1
198
+ jQuery('#customize-control-elanzalite_body_font_size_h1' ).css('display','none' );
199
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h1' ).css('display','block' );
200
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h1' ).css('display','none' );
201
+ jQuery('#customize-control-elanzalite_body_line_height_h1' ).css('display','none' );
202
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h1' ).css('display','block' );
203
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h1' ).css('display','none' );
204
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h1' ).css('display','none' );
205
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h1' ).css('display','block' );
206
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h1' ).css('display','none' );
207
+ // H2
208
+ jQuery('#customize-control-elanzalite_body_font_size_h2' ).css('display','none' );
209
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h2' ).css('display','block' );
210
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h2' ).css('display','none' );
211
+ jQuery('#customize-control-elanzalite_body_line_height_h2' ).css('display','none' );
212
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h2' ).css('display','block' );
213
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h2' ).css('display','none' );
214
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h2' ).css('display','none' );
215
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h2' ).css('display','block' );
216
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h2' ).css('display','none' );
217
+ // H3
218
+ jQuery('#customize-control-elanzalite_body_font_size_h3' ).css('display','none' );
219
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h3' ).css('display','block' );
220
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h3' ).css('display','none' );
221
+ jQuery('#customize-control-elanzalite_body_line_height_h3' ).css('display','none' );
222
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h3' ).css('display','block' );
223
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h3' ).css('display','none' );
224
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h3' ).css('display','none' );
225
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h3' ).css('display','block' );
226
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h3' ).css('display','none' );
227
+ // H4
228
+ jQuery('#customize-control-elanzalite_body_font_size_h4' ).css('display','none' );
229
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h4' ).css('display','block' );
230
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h4' ).css('display','none' );
231
+ jQuery('#customize-control-elanzalite_body_line_height_h4' ).css('display','none' );
232
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h4' ).css('display','block' );
233
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h4' ).css('display','none' );
234
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h4' ).css('display','none' );
235
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h4' ).css('display','block' );
236
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h4' ).css('display','none' );
237
+ // H5
238
+ jQuery('#customize-control-elanzalite_body_font_size_h5' ).css('display','none' );
239
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h5' ).css('display','block' );
240
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h5' ).css('display','none' );
241
+ jQuery('#customize-control-elanzalite_body_line_height_h5' ).css('display','none' );
242
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h5' ).css('display','block' );
243
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h5' ).css('display','none' );
244
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h5' ).css('display','none' );
245
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h5' ).css('display','block' );
246
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h5' ).css('display','none' );
247
+ // H6
248
+ jQuery('#customize-control-elanzalite_body_font_size_h6' ).css('display','none' );
249
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h6' ).css('display','block' );
250
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h6' ).css('display','none' );
251
+ jQuery('#customize-control-elanzalite_body_line_height_h6' ).css('display','none' );
252
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h6' ).css('display','block' );
253
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h6' ).css('display','none' );
254
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h6' ).css('display','none' );
255
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h6' ).css('display','block' );
256
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h6' ).css('display','none' );
257
+ }
258
+ if(jQuery('.devices-wrapper .preview-mobile').hasClass('active')){
259
+ // body
260
+ jQuery('#customize-control-elanzalite_body_font_size' ).css('display','none' );
261
+ jQuery('#customize-control-elanzalite_body_font_size_tb' ).css('display','none' );
262
+ jQuery('#customize-control-elanzalite_body_font_size_mb' ).css('display','block' );
263
+ jQuery('#customize-control-elanzalite_body_line_height' ).css('display','none' );
264
+ jQuery('#customize-control-elanzalite_body_line_height_tb' ).css('display','none' );
265
+ jQuery('#customize-control-elanzalite_body_line_height_mb' ).css('display','block' );
266
+ jQuery('#customize-control-elanzalite_body_letter_spacing' ).css('display','none' );
267
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb' ).css('display','none' );
268
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb' ).css('display','block' );
269
+ //H1
270
+ jQuery('#customize-control-elanzalite_body_font_size_h1' ).css('display','none' );
271
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h1' ).css('display','none' );
272
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h1' ).css('display','block' );
273
+ jQuery('#customize-control-elanzalite_body_line_height_h1' ).css('display','none' );
274
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h1' ).css('display','none' );
275
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h1' ).css('display','block' );
276
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h1' ).css('display','none' );
277
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h1' ).css('display','none' );
278
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h1' ).css('display','block' );
279
+ //H2
280
+ jQuery('#customize-control-elanzalite_body_font_size_h2' ).css('display','none' );
281
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h2' ).css('display','none' );
282
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h2' ).css('display','block' );
283
+ jQuery('#customize-control-elanzalite_body_line_height_h2' ).css('display','none' );
284
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h2' ).css('display','none' );
285
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h2' ).css('display','block' );
286
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h2' ).css('display','none' );
287
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h2' ).css('display','none' );
288
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h2' ).css('display','block' );
289
+ //H3
290
+ jQuery('#customize-control-elanzalite_body_font_size_h3' ).css('display','none' );
291
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h3' ).css('display','none' );
292
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h3' ).css('display','block' );
293
+ jQuery('#customize-control-elanzalite_body_line_height_h3' ).css('display','none' );
294
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h3' ).css('display','none' );
295
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h3' ).css('display','block' );
296
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h3' ).css('display','none' );
297
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h3' ).css('display','none' );
298
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h3' ).css('display','block' );
299
+ //H4
300
+ jQuery('#customize-control-elanzalite_body_font_size_h4' ).css('display','none' );
301
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h4' ).css('display','none' );
302
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h4' ).css('display','block' );
303
+ jQuery('#customize-control-elanzalite_body_line_height_h4' ).css('display','none' );
304
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h4' ).css('display','none' );
305
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h4' ).css('display','block' );
306
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h4' ).css('display','none' );
307
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h4' ).css('display','none' );
308
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h4' ).css('display','block' );
309
+ //H5
310
+ jQuery('#customize-control-elanzalite_body_font_size_h5' ).css('display','none' );
311
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h5' ).css('display','none' );
312
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h5' ).css('display','block' );
313
+ jQuery('#customize-control-elanzalite_body_line_height_h5' ).css('display','none' );
314
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h5' ).css('display','none' );
315
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h5' ).css('display','block' );
316
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h5' ).css('display','none' );
317
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h5' ).css('display','none' );
318
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h5' ).css('display','block' );
319
+ //H6
320
+ jQuery('#customize-control-elanzalite_body_font_size_h6' ).css('display','none' );
321
+ jQuery('#customize-control-elanzalite_body_font_size_tb_h6' ).css('display','none' );
322
+ jQuery('#customize-control-elanzalite_body_font_size_mb_h6' ).css('display','block' );
323
+ jQuery('#customize-control-elanzalite_body_line_height_h6' ).css('display','none' );
324
+ jQuery('#customize-control-elanzalite_body_line_height_tb_h6' ).css('display','none' );
325
+ jQuery('#customize-control-elanzalite_body_line_height_mb_h6' ).css('display','block' );
326
+ jQuery('#customize-control-elanzalite_body_letter_spacing_h6' ).css('display','none' );
327
+ jQuery('#customize-control-elanzalite_body_letter_spacing_tb_h6' ).css('display','none' );
328
+ jQuery('#customize-control-elanzalite_body_letter_spacing_mb_h6' ).css('display','block' );
329
+ }});
330
+ });
elanzalite/customizer/js/widget.js ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ jQuery(document).ready( function($) {
3
+
4
+ function media_upload(button_class) {
5
+
6
+ var _custom_media = true,
7
+
8
+ _orig_send_attachment = wp.media.editor.send.attachment;
9
+
10
+
11
+
12
+ $('body').on('click', button_class, function(e) {
13
+
14
+ var button_id ='#'+$(this).attr('id');
15
+
16
+ var self = $(button_id);
17
+
18
+ var send_attachment_bkp = wp.media.editor.send.attachment;
19
+
20
+ var button = $(button_id);
21
+
22
+ var id = button.attr('id').replace('_button', '');
23
+
24
+ _custom_media = true;
25
+
26
+ wp.media.editor.send.attachment = function(props, attachment){
27
+
28
+ if ( _custom_media ) {
29
+ $('#'+id).val(attachment.url);
30
+ $('.'+id).attr('src',attachment.url).css('display','block');
31
+ } else {
32
+
33
+ return _orig_send_attachment.apply( button_id, [props, attachment] );
34
+
35
+ }
36
+
37
+ }
38
+
39
+ wp.media.editor.open(button);
40
+
41
+ return false;
42
+
43
+ });
44
+
45
+ }
46
+
47
+ media_upload('.custom_media_button.button');
48
+
49
+ $(document).on( 'widget-added widget-updated ready', function() {
50
+ $('#widgets-right .color-picker').each( function() {
51
+ if ( ! $(this).data('wpWpColorPicker') ) {
52
+ $(this).wpColorPicker( {
53
+ change: _.throttle(function() {
54
+ $(this).trigger( 'change' );
55
+ }, 3000)
56
+ });
57
+ }
58
+ });
59
+ });
60
+
61
+ // alert($( "#accordion" ).accordion());
62
+
63
+
64
+ });
elanzalite/images/style1.png ADDED
Binary file
elanzalite/images/style2.png ADDED
Binary file
elanzalite/images/style3.png ADDED
Binary file
elanzalite/images/style4.png ADDED
Binary file
elanzalite/images/style5.png ADDED
Binary file
elanzalite/inc/constant.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ define('THEMEHUNK_CUSTOMIZER_STYLE1', __(THEMEHUNK_CUSTOMIZER_PLUGIN_URL.'elanzalite/images/style1.png','themehunk-customizer'));
5
+ define('THEMEHUNK_CUSTOMIZER_STYLE2', __(THEMEHUNK_CUSTOMIZER_PLUGIN_URL.'elanzalite/images/style2.png','themehunk-customizer'));
6
+ define('THEMEHUNK_CUSTOMIZER_STYLE3', __(THEMEHUNK_CUSTOMIZER_PLUGIN_URL.'elanzalite/images/style3.png','themehunk-customizer'));
7
+ define('THEMEHUNK_CUSTOMIZER_STYLE4', __(THEMEHUNK_CUSTOMIZER_PLUGIN_URL.'elanzalite/images/style4.png','themehunk-customizer'));
8
+ define('THEMEHUNK_CUSTOMIZER_STYLE5', __(THEMEHUNK_CUSTOMIZER_PLUGIN_URL.'elanzalite/images/style5.png','themehunk-customizer'));
9
+ ?>
elanzalite/inc/custom-style.php ADDED
@@ -0,0 +1,410 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ // custom header background
5
+ function themehunk_customizer_elanzalite_custom_style(){
6
+ $custom_css='';
7
+ $hd_bg_color = get_theme_mod('hd_bg_color');
8
+ $hd_bg_shr_color = get_theme_mod('hd_bg_shr_color','rgba(255,255,255,0.95)');
9
+ $site_title_color = get_theme_mod('site_title_color','#5a5d5a');
10
+ $hd_menu_color = get_theme_mod('hd_menu_color','#606060');
11
+ $hd_menu_hvr_color = get_theme_mod('hd_menu_hvr_color','#66cdaa');
12
+ $mobile_menu_bg_color = get_theme_mod('mobile_menu_bg_color','#606060');
13
+ $theme_color = get_theme_mod('theme_color','#66cda9');
14
+ $ftr_bg_color = get_theme_mod('ftr_bg_color','#111');
15
+ $ftr_cpybg_color = get_theme_mod('ftr_cpybg_color','#111');
16
+ $ftr_wgt_tl_color = get_theme_mod('ftr_wgt_tl_color','#5a5d5a');
17
+ $copy_txt_color = get_theme_mod('copy_txt_color','#5a5d5a');
18
+ $social_icon_color = get_theme_mod('social_icon_color','#8224e3');
19
+ // header-setting
20
+ $top_hd_bg_color = get_theme_mod('top_hd_bg_color','#0e0e0e');
21
+ $top_date_clr = get_theme_mod('top_date_clr','#fff');
22
+ $top_menu_clr = get_theme_mod('top_menu_clr','#fff');
23
+ $top_icon_clr = get_theme_mod('top_icon_clr','#fff');
24
+ // slider
25
+ $slder_ovrlay_color = get_theme_mod('slder_ovrlay_color','rgba(0, 0, 0, 0.18)');
26
+ $slider_title_color = get_theme_mod('slider_title_color','#fff');
27
+ $slider_meta_color = get_theme_mod('slider_meta_color','#fff');
28
+ $slider_desc_color = get_theme_mod('slider_desc_color','#fff');
29
+ $slder_btn_bg_color = get_theme_mod('slder_btn_bg_color','rgba(0, 0, 0, 0)');
30
+ $slider_btn_brd_color = get_theme_mod('slider_btn_brd_color','#fff');
31
+ $slider_btn_txt_color = get_theme_mod('slider_btn_txt_color','#fff');
32
+
33
+ $slder_btn_bg_hvr_color = get_theme_mod('slder_btn_bg_hvr_color','rgba(0, 0, 0, 0)');
34
+ $slider_btn_brd_hvr_color = get_theme_mod('slider_btn_brd_hvr_color','#fff');
35
+ $slider_btn_txt_hvr_color = get_theme_mod('slider_btn_txt_hvr_color','#fff');
36
+ // MAGZINE-LAYOUT
37
+ $magzine_vw_bg_color = get_theme_mod('magzine_vw_bg_color','#0e0e0e');
38
+ $ads_hd_bg_color = get_theme_mod('ads_hd_bg_color','#0e0e0e');
39
+ $mobile_menu_text = get_theme_mod('mobile_menu_text','Main Menu');
40
+
41
+ $custom_css .= ".header-wrap-top,.header-wrap-top .inner-wrap-top{background:$top_hd_bg_color;}.header-wrap-top .top-date{color:$top_date_clr;}.header-wrap-top .top-menu .top li a{color:$top_menu_clr;} .header-wrap-top .top-social-icon li a{color:$top_icon_clr;}
42
+ header,.page header{background:{$hd_bg_color};}
43
+ h3.view{background:{$magzine_vw_bg_color};}
44
+ .home header.smaller, header.smaller{background:{$hd_bg_shr_color};}
45
+ .header .logo h1 a,.header .logo h1 a, header.smaller .header .logo h1 a{
46
+ color:{$site_title_color};}
47
+ .home .navigation .menu > li > a,.navigation .menu > li > a,.navigation ul li a:link,#main-menu-wrapper .menu-item-has-children > a:after,.home header #main-menu-wrapper .menu-item-has-children > a:after{
48
+ color:{$hd_menu_color};}
49
+ .home .navigation .menu > li > a:hover,.navigation .menu > li > a:hover,.navigation .menu > li.current-menu-item > a{
50
+ color:{$hd_menu_hvr_color};}
51
+ .page-template-magazine-template header.header-style-one #main-menu-wrapper,
52
+ .magazine-box header.header-style-one #main-menu-wrapper,
53
+ .magazine-single-box .header-style-one .header #main-menu-wrapper{
54
+ background:{$ads_hd_bg_color};
55
+ }
56
+
57
+ @media screen and (max-width: 1024px){
58
+ .page-template-magazine-template.page .header-style-one .header #main-menu-wrapper a#pull:before,.page-template-magazine-template.page .header-style-one .header #main-menu-wrapper a#pull:before, .magazine-box .header-style-one .header #main-menu-wrapper a#pull:before,
59
+ .magazine-single-box .header-style-one .header #main-menu-wrapper a#pull:before {
60
+ content:'{$mobile_menu_text}';
61
+ }
62
+ .home .header a#pull,.header a#pull,.header-wrapper header.smaller a#pull{
63
+ color: {$mobile_menu_bg_color};}
64
+ .navigation ul .current-menu-item > a, .navigation ul li a:hover,.navigation ul ul li:hover{
65
+ background:{$hd_menu_hvr_color};}
66
+ }
67
+ .content .two-grid-layout .post-img,.content .standard-layout .post.format-standard .post-img{border-top-color:{$theme_color};}
68
+ a:hover,.post-title h2:hover,a.more-link,.widget .tagcloud a:hover,.footer-wrapper .social-icon li a:hover,.content .post-content .read-more a{color:{$theme_color};}
69
+ .nav-links .page-numbers.current, .nav-links .page-numbers:hover{
70
+ border-color:{$theme_color};
71
+ background:{$theme_color};
72
+ }
73
+ li.sl-related-thumbnail h3{
74
+ border-color:{$theme_color};
75
+ }
76
+ .tagcloud a{
77
+ background: {$theme_color};
78
+
79
+ }
80
+ .breadcrumbs a:hover,.breadcrumbs .trail-end span,.th-aboutme ul li i{
81
+ color: {$theme_color};
82
+ }
83
+ #section_one .section-title,#section_one .slider_widgets h3.title,#section_two h3.title,#section_three h3.title,#section_four h3.title,#section_five h3.title,#section_five .col-two h3.title{background:{$theme_color};}
84
+ .nav-links .page-numbers{border-color:{$theme_color};}
85
+ #move-to-top{background:{$theme_color};}
86
+ .footer-wrapper{background:{$ftr_bg_color};}
87
+ .footer-wrapper .widget .widgettitle{color:{$ftr_wgt_tl_color};}
88
+ .footer-wrapper .footer-copyright .copyright a{color:{$copy_txt_color};}
89
+ .footer-wrapper .footer-copyright{background:{$ftr_cpybg_color};}
90
+ .footer-wrapper .social-icon li a{color:{$social_icon_color};}
91
+
92
+ .flex-slider .fs-caption-overlay{
93
+ background:{$slder_ovrlay_color};}
94
+ .flex-slider li .caption-content h1{
95
+ color:{$slider_title_color};}
96
+ .flex-slider li .caption-content p{color:{$slider_desc_color};}
97
+ .flex-slider li .caption-content a{color:{$slider_meta_color};}
98
+ .flex-slider .read-more.read-more-slider a,.flex-slider.button-two .read-more.read-more-slider a,.flex-slider.button-one .read-more.read-more-slider a{color:{$slider_btn_txt_color};border-color:{$slider_btn_brd_color};background:{$slder_btn_bg_color};}
99
+ .flex-slider .read-more.read-more-slider a:hover,.flex-slider.button-two .read-more.read-more-slider a:hover,.flex-slider.button-one .read-more.read-more-slider a:hover{color:{$slider_btn_txt_hvr_color};border-color:{$slider_btn_brd_hvr_color};background:{$slder_btn_bg_hvr_color};}
100
+ .flex-slider.button-one .read-more.read-more-slider a:hover{
101
+ -webkit-box-shadow: 0 14px 26px -12px " .elanzalite_hex2rgba($slider_btn_brd_hvr_color, 0.42);
102
+ $custom_css.=", 0 4px 23px 0 " .elanzalite_hex2rgba($slider_btn_brd_hvr_color, 0.12);
103
+ $custom_css.=", 0 8px 10px -5px " .elanzalite_hex2rgba($slider_btn_brd_hvr_color, 0.2);
104
+ $custom_css.=";box-shadow: 0 14px 26px -12px " .elanzalite_hex2rgba($slider_btn_brd_hvr_color, 0.42);
105
+ $custom_css.=", 0 4px 23px 0 " .elanzalite_hex2rgba($slider_btn_brd_hvr_color, 0.12);
106
+ $custom_css.=", 0 8px 10px -5px " .elanzalite_hex2rgba($slider_btn_brd_hvr_color, 0.12);
107
+ $custom_css.="}";
108
+ /***********************************/
109
+ // body-typography
110
+ /***********************************/
111
+ $elanzalite_body_font = get_theme_mod( 'elanzalite_body_font' );
112
+ $elanzalite_body_font_size = get_theme_mod( 'elanzalite_body_font_size','14' );
113
+ $elanzalite_body_line_height = get_theme_mod( 'elanzalite_body_line_height','22' );
114
+ $elanzalite_body_letter_spacing = get_theme_mod( 'elanzalite_body_letter_spacing','0.4' );
115
+ // tab
116
+ $elanzalite_body_font_size_tb = get_theme_mod( 'elanzalite_body_font_size_tb','14' );
117
+ $elanzalite_body_line_height_tb = get_theme_mod( 'elanzalite_body_line_height_tb','22' );
118
+ $elanzalite_body_letter_spacing_tb = get_theme_mod( 'elanzalite_body_letter_spacing_tb','0.4' );
119
+ // mob
120
+ $elanzalite_body_font_size_mb = get_theme_mod( 'elanzalite_body_font_size_mb','14' );
121
+ $elanzalite_body_line_height_mb = get_theme_mod( 'elanzalite_body_line_height_mb','22' );
122
+ $elanzalite_body_letter_spacing_mb = get_theme_mod( 'elanzalite_body_letter_spacing_mb','0.4' );
123
+
124
+ if ( ! empty( $elanzalite_body_font ) ) {
125
+ themehunk_enqueue_google_font($elanzalite_body_font);
126
+ $custom_css.="body,p{
127
+ font-family:{$elanzalite_body_font};
128
+ font-size:{$elanzalite_body_font_size}px;
129
+ line-height:{$elanzalite_body_line_height}px;
130
+ letter-spacing:{$elanzalite_body_letter_spacing}px;
131
+ }";
132
+ }
133
+
134
+ /***********************************/
135
+ //h1-typography
136
+ /***********************************/
137
+ $elanzalite_body_font_h1 = get_theme_mod( 'elanzalite_body_font_h1' );
138
+ $elanzalite_body_font_size_h1 = get_theme_mod( 'elanzalite_body_font_size_h1','44' );
139
+ $elanzalite_body_line_height_h1 = get_theme_mod( 'elanzalite_body_line_height_h1','55' );
140
+ $elanzalite_body_letter_spacing_h1 = get_theme_mod( 'elanzalite_body_letter_spacing_h1','0.7' );
141
+ // tab
142
+ $elanzalite_body_font_size_tb_h1 = get_theme_mod( 'elanzalite_body_font_size_tb_h1','44' );
143
+ $elanzalite_body_line_height_tb_h1 = get_theme_mod( 'elanzalite_body_line_height_tb_h1','55' );
144
+ $elanzalite_body_letter_spacing_tb_h1 = get_theme_mod( 'elanzalite_body_letter_spacing_tb_h1','0.7' );
145
+ // mob
146
+ $elanzalite_body_font_size_mb_h1 = get_theme_mod( 'elanzalite_body_font_size_mb_h1','44' );
147
+ $elanzalite_body_line_height_mb_h1 = get_theme_mod( 'elanzalite_body_line_height_mb_h1','55' );
148
+ $elanzalite_body_letter_spacing_mb_h1 = get_theme_mod( 'elanzalite_body_letter_spacing_mb_h1','0.7' );
149
+
150
+ if ( ! empty( $elanzalite_body_font_h1 ) ) {
151
+ themehunk_enqueue_google_font($elanzalite_body_font_h1);
152
+ $custom_css.="h1,.flex-slider li .caption-content h1{
153
+ font-family:{$elanzalite_body_font_h1};
154
+ font-size:{$elanzalite_body_font_size_h1}px;
155
+ line-height:{$elanzalite_body_line_height_h1}px;
156
+ letter-spacing:{$elanzalite_body_letter_spacing_h1}px;
157
+ }";
158
+ }
159
+ /***********************************/
160
+ //h2-typography
161
+ /***********************************/
162
+ $elanzalite_body_font_h2 = get_theme_mod( 'elanzalite_body_font_h2' );
163
+ $elanzalite_body_font_size_h2 = get_theme_mod( 'elanzalite_body_font_size_h2','38' );
164
+ $elanzalite_body_line_height_h2 = get_theme_mod( 'elanzalite_body_line_height_h2','48' );
165
+ $elanzalite_body_letter_spacing_h2 = get_theme_mod( 'elanzalite_body_letter_spacing_h2','0.7' );
166
+ // tab
167
+ $elanzalite_body_font_size_tb_h2 = get_theme_mod( 'elanzalite_body_font_size_tb_h2','38' );
168
+ $elanzalite_body_line_height_tb_h2 = get_theme_mod( 'elanzalite_body_line_height_tb_h2','48' );
169
+ $elanzalite_body_letter_spacing_tb_h2 = get_theme_mod( 'elanzalite_body_letter_spacing_tb_h2','0.7' );
170
+ // mob
171
+ $elanzalite_body_font_size_mb_h2 = get_theme_mod( 'elanzalite_body_font_size_mb_h2','38' );
172
+ $elanzalite_body_line_height_mb_h2 = get_theme_mod( 'elanzalite_body_line_height_mb_h2','48' );
173
+ $elanzalite_body_letter_spacing_mb_h2 = get_theme_mod( 'elanzalite_body_letter_spacing_mb_h2','0.7' );
174
+
175
+ if ( ! empty( $elanzalite_body_font_h2 ) ) {
176
+ themehunk_enqueue_google_font($elanzalite_body_font_h2);
177
+ $custom_css.="h2,.two-grid-layout .post-content h2,.standard-layout .post-title h2{
178
+ font-family:{$elanzalite_body_font_h2};
179
+ font-size:{$elanzalite_body_font_size_h2}px;
180
+ line-height:{$elanzalite_body_line_height_h2}px;
181
+ letter-spacing:{$elanzalite_body_letter_spacing_h2}px;
182
+ }";
183
+ }
184
+ /***********************************/
185
+ //h3-typography
186
+ /***********************************/
187
+ $elanzalite_body_font_h3 = get_theme_mod( 'elanzalite_body_font_h3' );
188
+ $elanzalite_body_font_size_h3 = get_theme_mod( 'elanzalite_body_font_size_h3','38' );
189
+ $elanzalite_body_line_height_h3 = get_theme_mod( 'elanzalite_body_line_height_h3','48' );
190
+ $elanzalite_body_letter_spacing_h3 = get_theme_mod( 'elanzalite_body_letter_spacing_h3','0.7' );
191
+ // tab
192
+ $elanzalite_body_font_size_tb_h3 = get_theme_mod( 'elanzalite_body_font_size_tb_h3','38' );
193
+ $elanzalite_body_line_height_tb_h3 = get_theme_mod( 'elanzalite_body_line_height_tb_h3','48' );
194
+ $elanzalite_body_letter_spacing_tb_h3 = get_theme_mod( 'elanzalite_body_letter_spacing_tb_h3','0.7' );
195
+ // mob
196
+ $elanzalite_body_font_size_mb_h3 = get_theme_mod( 'elanzalite_body_font_size_mb_h3','38' );
197
+ $elanzalite_body_line_height_mb_h3 = get_theme_mod( 'elanzalite_body_line_height_mb_h3','48' );
198
+ $elanzalite_body_letter_spacing_mb_h3 = get_theme_mod( 'elanzalite_body_letter_spacing_mb_h3','0.7' );
199
+
200
+ if ( ! empty( $elanzalite_body_font_h3 ) ) {
201
+ themehunk_enqueue_google_font($elanzalite_body_font_h3);
202
+ $custom_css.="h3{
203
+ font-family:{$elanzalite_body_font_h3};
204
+ font-size:{$elanzalite_body_font_size_h3}px;
205
+ line-height:{$elanzalite_body_line_height_h3}px;
206
+ letter-spacing:{$elanzalite_body_letter_spacing_h3}px;
207
+ }";
208
+ }
209
+ /***********************************/
210
+ //h4-typography
211
+ /***********************************/
212
+ $elanzalite_body_font_h4 = get_theme_mod( 'elanzalite_body_font_h4' );
213
+ $elanzalite_body_font_size_h4 = get_theme_mod( 'elanzalite_body_font_size_h4','30' );
214
+ $elanzalite_body_line_height_h4 = get_theme_mod( 'elanzalite_body_line_height_h4','40' );
215
+ $elanzalite_body_letter_spacing_h4 = get_theme_mod( 'elanzalite_body_letter_spacing_h4','0.7' );
216
+ // tab
217
+ $elanzalite_body_font_size_tb_h4 = get_theme_mod( 'elanzalite_body_font_size_tb_h4','30' );
218
+ $elanzalite_body_line_height_tb_h4 = get_theme_mod( 'elanzalite_body_line_height_tb_h4','40' );
219
+ $elanzalite_body_letter_spacing_tb_h4 = get_theme_mod( 'elanzalite_body_letter_spacing_tb_h4','0.7' );
220
+ // mob
221
+ $elanzalite_body_font_size_mb_h4 = get_theme_mod( 'elanzalite_body_font_size_mb_h4','30' );
222
+ $elanzalite_body_line_height_mb_h4 = get_theme_mod( 'elanzalite_body_line_height_mb_h4','40' );
223
+ $elanzalite_body_letter_spacing_mb_h4 = get_theme_mod( 'elanzalite_body_letter_spacing_mb_h4','0.7' );
224
+
225
+ if ( ! empty( $elanzalite_body_font_h4 ) ) {
226
+ themehunk_enqueue_google_font($elanzalite_body_font_h4);
227
+ $custom_css.="h4,h4.widgettitle{
228
+ font-family:{$elanzalite_body_font_h4};
229
+ font-size:{$elanzalite_body_font_size_h4}px;
230
+ line-height:{$elanzalite_body_line_height_h4}px;
231
+ letter-spacing:{$elanzalite_body_letter_spacing_h4}px;
232
+ }";
233
+ }
234
+ /***********************************/
235
+ //h5-typography
236
+ /***********************************/
237
+ $elanzalite_body_font_h5 = get_theme_mod( 'elanzalite_body_font_h5' );
238
+ $elanzalite_body_font_size_h5 = get_theme_mod( 'elanzalite_body_font_size_h5','26' );
239
+ $elanzalite_body_line_height_h5 = get_theme_mod( 'elanzalite_body_line_height_h5','36' );
240
+ $elanzalite_body_letter_spacing_h5 = get_theme_mod( 'elanzalite_body_letter_spacing_h5','0.7' );
241
+ // tab
242
+ $elanzalite_body_font_size_tb_h5 = get_theme_mod( 'elanzalite_body_font_size_tb_h5','26' );
243
+ $elanzalite_body_line_height_tb_h5 = get_theme_mod( 'elanzalite_body_line_height_tb_h5','36' );
244
+ $elanzalite_body_letter_spacing_tb_h5 = get_theme_mod( 'elanzalite_body_letter_spacing_tb_h5','0.7' );
245
+ // mob
246
+ $elanzalite_body_font_size_mb_h5 = get_theme_mod( 'elanzalite_body_font_size_mb_h5','26' );
247
+ $elanzalite_body_line_height_mb_h5 = get_theme_mod( 'elanzalite_body_line_height_mb_h5','36' );
248
+ $elanzalite_body_letter_spacing_mb_h5 = get_theme_mod( 'elanzalite_body_letter_spacing_mb_h5','0.7' );
249
+
250
+ if ( ! empty( $elanzalite_body_font_h5 ) ) {
251
+ themehunk_enqueue_google_font($elanzalite_body_font_h5);
252
+ $custom_css.="h5{
253
+ font-family:{$elanzalite_body_font_h5};
254
+ font-size:{$elanzalite_body_font_size_h5}px;
255
+ line-height:{$elanzalite_body_line_height_h5}px;
256
+ letter-spacing:{$elanzalite_body_letter_spacing_h5}px;
257
+ }";
258
+ }
259
+ /***********************************/
260
+ //h6-typography
261
+ /***********************************/
262
+ $elanzalite_body_font_h6 = get_theme_mod( 'elanzalite_body_font_h6' );
263
+ $elanzalite_body_font_size_h6 = get_theme_mod( 'elanzalite_body_font_size_h6','22' );
264
+ $elanzalite_body_line_height_h6 = get_theme_mod( 'elanzalite_body_line_height_h6','32' );
265
+ $elanzalite_body_letter_spacing_h6 = get_theme_mod( 'elanzalite_body_letter_spacing_h6','0.7' );
266
+ // tab
267
+ $elanzalite_body_font_size_tb_h6 = get_theme_mod( 'elanzalite_body_font_size_tb_h6','22' );
268
+ $elanzalite_body_line_height_tb_h6 = get_theme_mod( 'elanzalite_body_line_height_tb_h6','32' );
269
+ $elanzalite_body_letter_spacing_tb_h6 = get_theme_mod( 'elanzalite_body_letter_spacing_tb_h6','0.7' );
270
+ // mob
271
+ $elanzalite_body_font_size_mb_h6 = get_theme_mod( 'elanzalite_body_font_size_mb_h6','22' );
272
+ $elanzalite_body_line_height_mb_h6 = get_theme_mod( 'elanzalite_body_line_height_mb_h6','32' );
273
+ $elanzalite_body_letter_spacing_mb_h6 = get_theme_mod( 'elanzalite_body_letter_spacing_mb_h6','0.7' );
274
+
275
+ if ( ! empty( $elanzalite_body_font_h6 ) ) {
276
+ themehunk_enqueue_google_font($elanzalite_body_font_h6);
277
+ $custom_css.="h6{
278
+ font-family:{$elanzalite_body_font_h6};
279
+ font-size:{$elanzalite_body_font_size_h6}px;
280
+ line-height:{$elanzalite_body_line_height_h6}px;
281
+ letter-spacing:{$elanzalite_body_letter_spacing_h6}px;
282
+ }";
283
+ }
284
+ /***********************************/
285
+ //a-typography
286
+ /***********************************/
287
+ $elanzalite_body_font_a = get_theme_mod( 'elanzalite_body_font_a' );
288
+ if ( ! empty( $elanzalite_body_font_a ) ) {
289
+ themehunk_enqueue_google_font($elanzalite_body_font_a);
290
+ $custom_css.="a{
291
+ font-family:{$elanzalite_body_font_a};
292
+ }";
293
+ }
294
+
295
+ /*************************/
296
+ // media-typography
297
+ /*************************/
298
+ $custom_css .="@media screen and (max-width: 768px){";
299
+ if ( ! empty( $elanzalite_body_font ) ) {
300
+ $custom_css .="body,p{
301
+ font-size:{$elanzalite_body_font_size_tb}px;
302
+ line-height:{$elanzalite_body_line_height_tb}px;
303
+ letter-spacing:{$elanzalite_body_letter_spacing_tb}px;
304
+ }";
305
+ }
306
+ if ( ! empty( $elanzalite_body_font_h1 ) ) {
307
+ $custom_css .="h1,.flex-slider li .caption-content h1{
308
+ font-size:{$elanzalite_body_font_size_tb_h1}px;
309
+ line-height:{$elanzalite_body_line_height_tb_h1}px;
310
+ letter-spacing:{$elanzalite_body_letter_spacing_tb_h1}px;
311
+ } ";
312
+ }
313
+ if ( ! empty( $elanzalite_body_font_h2 ) ) {
314
+ $custom_css .="h2,.two-grid-layout .post-content h2,.standard-layout .post-title h2{
315
+ font-size:{$elanzalite_body_font_size_tb_h2}px;
316
+ line-height:{$elanzalite_body_line_height_tb_h2}px;
317
+ letter-spacing:{$elanzalite_body_letter_spacing_tb_h2}px;
318
+ }";
319
+ }
320
+ if ( ! empty( $elanzalite_body_font_h3 ) ) {
321
+ $custom_css .="h3{
322
+ font-size:{$elanzalite_body_font_size_tb_h3}px;
323
+ line-height:{$elanzalite_body_line_height_tb_h3}px;
324
+ letter-spacing:{$elanzalite_body_letter_spacing_tb_h3}px;
325
+ }";
326
+ }
327
+ if ( ! empty( $elanzalite_body_font_h4 ) ) {
328
+ $custom_css .="h4,h4.widgettitle{
329
+ font-size:{$elanzalite_body_font_size_tb_h4}px;
330
+ line-height:{$elanzalite_body_line_height_tb_h4}px;
331
+ letter-spacing:{$elanzalite_body_letter_spacing_tb_h4}px;
332
+ }";
333
+ }
334
+ if ( ! empty( $elanzalite_body_font_h5 ) ) {
335
+ $custom_css .="h5{
336
+ font-size:{$elanzalite_body_font_size_tb_h5}px;
337
+ line-height:{$elanzalite_body_line_height_tb_h5}px;
338
+ letter-spacing:{$elanzalite_body_letter_spacing_tb_h5}px;
339
+ }";
340
+ }
341
+ if ( ! empty( $elanzalite_body_font_h5 ) ) {
342
+ $custom_css .=" h6{
343
+ font-size:{$elanzalite_body_font_size_tb_h6}px;
344
+ line-height:{$elanzalite_body_line_height_tb_h6}px;
345
+ letter-spacing:{$elanzalite_body_letter_spacing_tb_h6}px;
346
+ } ";
347
+ }
348
+ $custom_css .="}
349
+ @media screen and (max-width: 550px){";
350
+ if ( ! empty( $elanzalite_body_font ) ) {
351
+ $custom_css .="body,p{
352
+ font-size:{$elanzalite_body_font_size_mb}px;
353
+ line-height:{$elanzalite_body_line_height_mb}px;
354
+ letter-spacing:{$elanzalite_body_letter_spacing_mb}px;
355
+ }";
356
+ }
357
+ if ( ! empty( $elanzalite_body_font_h1 ) ) {
358
+ $custom_css .="h1,.flex-slider li .caption-content h1{
359
+ font-size:{$elanzalite_body_font_size_mb_h1}px;
360
+ line-height:{$elanzalite_body_line_height_mb_h1}px;
361
+ letter-spacing:{$elanzalite_body_letter_spacing_mb_h1}px;
362
+ }";
363
+ }
364
+ if ( ! empty( $elanzalite_body_font_h2 ) ) {
365
+ $custom_css .="h2,.two-grid-layout .post-content h2,.standard-layout .post-title h2{
366
+ font-size:{$elanzalite_body_font_size_mb_h2}px;
367
+ line-height:{$elanzalite_body_line_height_mb_h2}px;
368
+ letter-spacing:{$elanzalite_body_letter_spacing_mb_h2}px;
369
+ } ";
370
+ }
371
+ if ( ! empty( $elanzalite_body_font_h3 ) ) {
372
+ $custom_css .="h3{
373
+ font-size:{$elanzalite_body_font_size_mb_h3}px;
374
+ line-height:{$elanzalite_body_line_height_mb_h3}px;
375
+ letter-spacing:{$elanzalite_body_letter_spacing_mb_h3}px;
376
+ }";
377
+ }
378
+ if ( ! empty( $elanzalite_body_font_h4 ) ) {
379
+ $custom_css .="h4,h4.widgettitle{
380
+ font-size:{$elanzalite_body_font_size_mb_h4}px;
381
+ line-height:{$elanzalite_body_line_height_mb_h4}px;
382
+ letter-spacing:{$elanzalite_body_letter_spacing_mb_h4}px;
383
+ } ";
384
+ }
385
+ if ( ! empty( $elanzalite_body_font_h5 ) ) {
386
+ $custom_css .="h5{
387
+ font-size:{$elanzalite_body_font_size_mb_h5}px;
388
+ line-height:{$elanzalite_body_line_height_mb_h5}px;
389
+ letter-spacing:{$elanzalite_body_letter_spacing_mb_h5}px;
390
+ }";
391
+ }
392
+ if ( ! empty( $elanzalite_body_font_h5 ) ) {
393
+ $custom_css .=" h6{
394
+ font-size:{$elanzalite_body_font_size_mb_h6}px;
395
+ line-height:{$elanzalite_body_line_height_mb_h6}px;
396
+ letter-spacing:{$elanzalite_body_letter_spacing_mb_h6}px;
397
+ }";
398
+ }
399
+ $custom_css .="}";
400
+ return $custom_css;
401
+ }
402
+ function themehunk_customizers_enqueue(){
403
+ echo "<style>";
404
+ echo themehunk_customizer_elanzalite_custom_style();
405
+ echo "</style>";
406
+
407
+ }
408
+ add_action( 'wp_head', 'themehunk_customizers_enqueue' );
409
+
410
+ ?>
elanzalite/inc/install.php ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ // image cropping
5
+ add_action( 'init', 'THunk_cropping' );
6
+
7
+ function THunk_cropping(){
8
+ add_image_size('section-one-small', 433, 228, true);
9
+ add_image_size('section-one-large', 908, 460, true);
10
+ add_image_size('section-three-small', 165, 110, true);
11
+ add_image_size('section-three-large', 710, 350, true);
12
+ add_image_size('section-four', 405, 270, true);
13
+ add_image_size('section-five-small', 165, 110, true);
14
+ add_image_size('section-five-large', 710, 350, true);
15
+ add_image_size('section-two-small', 353, 236, true);
16
+ }
17
+
18
+ add_action('widgets_init', 'themehunk_customizer_widget_init');
19
+ function themehunk_customizer_widget_init() {
20
+ register_sidebar(array(
21
+ 'name' => __('Magazine Content Area', 'themehunk-customizer'),
22
+ 'id' => 'magzine-widget',
23
+ 'description' => __('Add desired magazine post widgets. Widgets added in this area will display in fullwidth. You can also re-order widgets using drag and drop feature.','themehunk-customizer'),
24
+ 'before_widget' => '',
25
+ 'after_widget' => '',
26
+ 'before_title' => '',
27
+ 'after_title' => '',
28
+ ));
29
+
30
+ register_sidebar(array(
31
+ 'name' => __('Magazine Content Area with Sidebar ', 'themehunk-customizer'),
32
+ 'id' => 'magzine-sidebar-widget',
33
+ 'description' => __('Add desired magazine post widgets. Widgets added in this area will display with sidebar. You can also re-order widgets using drag and drop feature.','themehunk-customizer'),
34
+ 'before_widget' => '',
35
+ 'after_widget' => '',
36
+ 'before_title' => '',
37
+ 'after_title' => '',
38
+ ));
39
+
40
+ register_widget( 'THunkcustomizer_RecentPost' );
41
+ register_widget( 'themehunk_customizer_section_one' );
42
+ register_widget( 'themehunk_customizer_section_two' );
43
+ register_widget( 'themehunk_customizer_section_three' );
44
+ register_widget( 'themehunk_customizer_section_four' );
45
+ register_widget( 'themehunk_customizer_section_five' );
46
+ register_widget( 'themehunk_customizer_section_add' );
47
+ register_widget( 'themehunk_customizer_section_news' );
48
+ register_widget( 'themehunk_customizer_aboutme' );
49
+ register_widget( 'Socialth' );
50
+ }
51
+
52
+ function THunk_Customizer_Comment(){
53
+ comments_popup_link(__('0','themehunk-customizer'), __('1','themehunk-customizer'), __('%','themehunk-customizer'));
54
+ }
55
+ /*
56
+ * Category Color Options
57
+ */
58
+ if ( ! function_exists( 'THunk_category_color' ) ) :
59
+ function THunk_category_color( $wp_category_id ) {
60
+ $args = array(
61
+ 'orderby' => 'id',
62
+ 'hide_empty' => 0
63
+ );
64
+ $category = get_categories( $args );
65
+ foreach ($category as $category_list ) {
66
+ $color = get_theme_mod('elanzalite_category_color_'.$wp_category_id);
67
+ return $color;
68
+ }
69
+ }
70
+ endif;
71
+ function THunk_customizer_Cate(){
72
+ $category = get_the_category();
73
+ $return = '';
74
+ foreach($category as $cat)
75
+ {
76
+ $return .= "<a style=background:".THunk_category_color(get_cat_id($cat->name))." href='".get_category_link($cat->cat_ID)."' class='{$cat->slug}'>{$cat->name}</a>";
77
+ }
78
+
79
+ return $return;
80
+ }
81
+ function THunkcustom_excerpt_length( $length ) {
82
+ return 20;
83
+ }
84
+ add_filter( 'excerpt_length', 'THunkcustom_excerpt_length', 28 );
85
+
86
+ function THunkcustom_excerpt_more($more) {
87
+ return '…';
88
+ }
89
+ add_filter('excerpt_more', 'THunkcustom_excerpt_more');
90
+
91
+ if ( ! function_exists( 'elanzalite_hex2rgba' ) ) :
92
+ /*hexa to rgba convert*/
93
+ function elanzalite_hex2rgba($color, $opacity = false) {
94
+
95
+ $default = 'rgb(0,0,0)';
96
+
97
+ //Return default if no color provided
98
+ if(empty($color)){
99
+ return $default;
100
+ }
101
+ //Sanitize $color if "#" is provided
102
+ if ($color[0] == '#' ) {
103
+ $color = substr( $color, 1 );
104
+ }
105
+
106
+ //Check if color has 6 or 3 characters and get values
107
+ if (strlen($color) == 6) {
108
+ $hex = array( $color[0] . $color[1], $color[2] . $color[3], $color[4] . $color[5] );
109
+ } elseif ( strlen( $color ) == 3 ) {
110
+ $hex = array( $color[0] . $color[0], $color[1] . $color[1], $color[2] . $color[2] );
111
+ } else {
112
+ return $default;
113
+ }
114
+
115
+ //Convert hexadec to rgb
116
+ $rgb = array_map('hexdec', $hex);
117
+
118
+ //Check if opacity is set(rgba or rgb)
119
+ if($opacity){
120
+ if(abs($opacity) > 1){
121
+ $opacity = 1.0;
122
+ }
123
+ $output = 'rgba('.implode(",",$rgb).','.$opacity.')';
124
+ } else {
125
+ $output = 'rgb('.implode(",",$rgb).')';
126
+ }
127
+
128
+ //Return rgb(a) color string
129
+ return $output;
130
+ }
131
+ endif;
132
+
133
+
134
+
135
+ // Include assets
136
+ function themehunk_customizer_enqueue_assets() {
137
+
138
+ wp_enqueue_style('thunk-customizer-magzine', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . "/elanzalite/assets/css/magzine.css", '', THEMEHUNK_CUSTOMIZER_VERSION, 'all');
139
+
140
+ wp_enqueue_style('owl-carousel', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . "/elanzalite/assets/css/owl.carousel.css", '', THEMEHUNK_CUSTOMIZER_VERSION, 'all');
141
+
142
+
143
+ wp_enqueue_script('flexslider', THEMEHUNK_CUSTOMIZER_PLUGIN_URL. 'elanzalite/assets/js/jquery.flexslider.js', array(), THEMEHUNK_CUSTOMIZER_VERSION, true);
144
+
145
+ wp_enqueue_script('owl-carousel', THEMEHUNK_CUSTOMIZER_PLUGIN_URL. 'elanzalite/assets/js/owl.carousel.js', array(), THEMEHUNK_CUSTOMIZER_VERSION, true);
146
+
147
+ wp_enqueue_script('news-ticker', THEMEHUNK_CUSTOMIZER_PLUGIN_URL. 'elanzalite/assets/js/jquery.easy-ticker.js', array(), THEMEHUNK_CUSTOMIZER_VERSION, true);
148
+
149
+ wp_enqueue_script('custom-js', THEMEHUNK_CUSTOMIZER_PLUGIN_URL. 'elanzalite/assets/js/custom.js', array(), THEMEHUNK_CUSTOMIZER_VERSION, true);
150
+
151
+ }
152
+ add_action('wp_enqueue_scripts', 'themehunk_customizer_enqueue_assets');
153
+
154
+ function themehunk_customizer_unlimited_admin_assets() {
155
+
156
+ wp_enqueue_script('elanzalite_widget_script', THEMEHUNK_CUSTOMIZER_PLUGIN_URL. 'elanzalite/customizer/js/widget.js', array( 'jquery', 'wp-color-picker' ), THEMEHUNK_CUSTOMIZER_VERSION, true);
157
+ }
158
+ add_action('admin_enqueue_scripts', 'themehunk_customizer_unlimited_admin_assets');
159
+ ?>
elanzalite/inc/shortcode.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ function themehunk_customizer_elanzalite_dummy($section=''){
5
+
6
+ if($section=='cate-slider'){
7
+ $slider_alignment=get_theme_mod('slider_alignment','slider-left');
8
+ $slidr_button=get_theme_mod('slidr_button','default');
9
+ $count = (get_theme_mod('slider_count',1)>3)?3:get_theme_mod('slider_count',1);
10
+ $stickies = get_option('sticky_posts');
11
+ $loop = new WP_Query(array('posts_per_page' => $count,
12
+ 'cat' => get_theme_mod('slider_cate'),
13
+ 'order' => 'DESC',
14
+ 'ignore_sticky_posts' => 1,
15
+ 'post__not_in' => $stickies,
16
+ 'meta_query' => array(array( 'key' => '_thumbnail_id')) ));
17
+ if ($loop->have_posts()) {
18
+ $i = 0;
19
+
20
+ if (get_theme_mod('elanzalite_slider_disable','')=='' || get_theme_mod('elanzalite_slider_disable','')=='0'){?>
21
+ <div class="flex-slider <?php echo $slider_alignment; ?> <?php echo $slidr_button; ?>" style="height:100vh!important;">
22
+ <ul class="slides">
23
+ <?php
24
+ while ($loop->have_posts()) : $loop->the_post();
25
+ $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id( $loop->ID ),'size' );
26
+ ?>
27
+ <li class="bg-dark" style="background-image: url(<?php echo $thumbnail_src[0]; ?>);">
28
+ <div class="fs-caption-overlay">
29
+ <div class="fs-caption">
30
+ <div class="caption-content">
31
+ <div class="fs-category">
32
+ <span><?php echo $category_list = get_the_category_list( __( ',', 'elanzalite' ) ); ?></span>
33
+ </div>
34
+ <div class="fs-post-title">
35
+ <a href="<?php the_permalink(); ?>">
36
+ <h1><?php the_title(); ?></h1>
37
+ </a>
38
+ </div>
39
+ <div class="slider-post-date"><span><a><?php the_time( get_option('date_format') ); ?></a></span></div>
40
+ <div class="fs-desc"><p><?php if ( ! has_excerpt() ){
41
+ echo elanzalite_get_custom_excerpt();
42
+ }else{
43
+ the_excerpt();
44
+ } ?></p></div>
45
+ <div class="read-more read-more-slider"><a class="section-scroll" href="<?php the_permalink(); ?>"><?php _e('Continue Reading','elanzalite'); ?></a></div>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </li>
50
+ <?php endwhile; ?>
51
+ </ul>
52
+ </div>
53
+ <?php
54
+ }
55
+ } }elseif($section=='magzine'){
56
+ if ( is_active_sidebar( 'magzine-widget' ) ){
57
+ dynamic_sidebar( 'magzine-widget' );
58
+ }
59
+ }elseif($section=='magzine-sidebar'){
60
+ if ( is_active_sidebar( 'magzine-sidebar-widget' ) ){
61
+ dynamic_sidebar( 'magzine-sidebar-widget' );
62
+ }
63
+ } elseif($section=='social-share'){
64
+ ?>
65
+ <div class="post-share">
66
+ <span class="share-text"><?php _e('Share:','elanzalite' ); ?></span>
67
+ <ul class="single-social-icon">
68
+ <li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php the_permalink(); ?>"><i class="fa fa-facebook"></i></a></li>
69
+ <li><a target="_blank" href="https://plus.google.com/share?url=<?php the_permalink(); ?>"><i class="fa fa-google-plus"></i></a></li>
70
+ <li><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>&source=LinkedIn"><i class="fa fa-linkedin"></i></a></li>
71
+ <li><a target="_blank" href="https://twitter.com/home?status=<?php the_title(); ?>-<?php the_permalink(); ?>"><i class="fa fa-twitter"></i></a></li>
72
+ <li><a data-pin-do="skipLink" target="_blank" href="https://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>&amp;media=&amp;description=<?php the_title(); ?>"><i class="fa fa-pinterest"></i></a></li>
73
+ </ul>
74
+ </div>
75
+ <?php
76
+ }
77
+ }
78
+
79
+ function themehunk_customizer_elanzalite_data($atts) {
80
+ $output = '';
81
+ $pull_quote_atts = shortcode_atts(array(
82
+ 'page' => 1
83
+ ), $atts);
84
+ $did = wp_kses_post($pull_quote_atts['page']);
85
+
86
+ $output = themehunk_customizer_elanzalite_dummy($did);
87
+ return $output;
88
+ }
89
+ add_shortcode('themehunk-customizer-elanzalite', 'themehunk_customizer_elanzalite_data');
90
+ ?>
elanzalite/include.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ include_once( plugin_dir_path(__FILE__) . 'inc/constant.php' );
3
+ include_once( plugin_dir_path(__FILE__) . 'widget/recent-post.php' );
4
+ include_once( plugin_dir_path(__FILE__) . 'widget/section-one.php' );
5
+ include_once( plugin_dir_path(__FILE__) . 'widget/section-two.php' );
6
+ include_once( plugin_dir_path(__FILE__) . 'widget/section-three.php' );
7
+ include_once( plugin_dir_path(__FILE__) . 'widget/section-four.php' );
8
+ include_once( plugin_dir_path(__FILE__) . 'widget/section-five.php' );
9
+ include_once( plugin_dir_path(__FILE__) . 'widget/section-ad.php' );
10
+ include_once( plugin_dir_path(__FILE__) . 'widget/section-news.php' );
11
+ include_once( plugin_dir_path(__FILE__) . 'widget/about-widget.php' );
12
+ include_once( plugin_dir_path(__FILE__) . 'widget/social-widget.php' );
13
+ include_once( plugin_dir_path(__FILE__) . 'inc/install.php' );
14
+ include_once( plugin_dir_path(__FILE__) . 'customizer/customizer.php' );
15
+ include_once( plugin_dir_path(__FILE__) . 'customizer/custom-customizer.php' );
16
+ include_once( plugin_dir_path(__FILE__) . 'inc/custom-style.php' );
17
+ include_once( plugin_dir_path(__FILE__) . 'inc/shortcode.php' );
18
+ ?>
elanzalite/widget/about-widget.php ADDED
@@ -0,0 +1,172 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * Add Widget
6
+ */
7
+ // about me widget class
8
+ class themehunk_customizer_aboutme extends WP_Widget {
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-about-me','description' => 'Display member image with description, link and font awesome icons');
11
+ parent::__construct('themehunk-customizer-about-me-widget', __('THunk : About Me','themehunk_customizer'), $widget_ops);
12
+ }
13
+
14
+ function widget($args, $instance) {
15
+ extract($args);
16
+
17
+ // widget content
18
+ echo $before_widget;
19
+ $title = isset($instance['title'])?$instance['title']:'';
20
+ $text = isset($instance['text'])?$instance['text']:'';
21
+ $author_img_uri = isset($instance['author_img_uri'])?$instance['author_img_uri']:'';
22
+ $readlink = isset($instance['readlink'])?$instance['readlink']:'';
23
+ $readtxt = isset($instance['readtxt'])?$instance['readtxt']:'';
24
+ $icon1 = isset($instance['icon1'])?$instance['icon1']:'';
25
+ $icon2 = isset($instance['icon2'])?$instance['icon2']:'';
26
+ $icon3 = isset($instance['icon3'])?$instance['icon3']:'';
27
+ $icon4 = isset($instance['icon4'])?$instance['icon4']:'';
28
+ $linkicon1 = isset($instance['linkicon1'])?$instance['linkicon1']:'http://';
29
+ $linkicon2 = isset($instance['linkicon2'])?$instance['linkicon2']:'http://';
30
+ $linkicon3 = isset($instance['linkicon3'])?$instance['linkicon3']:'http://';
31
+ $linkicon4 = isset($instance['linkicon4'])?$instance['linkicon4']:'http://';
32
+ ?>
33
+ <div class="th-aboutme">
34
+ <h4 class="widgettitle">
35
+ <?php echo apply_filters('widget_title',$title); ?>
36
+ </h4>
37
+ <?php if($author_img_uri != ''){ ?>
38
+ <a href="<?php echo $readlink; ?>"><img src="<?php echo esc_url($author_img_uri); ?>" /></a>
39
+ <?php } ?>
40
+ <p><?php echo $text; ?></p>
41
+ <a class="read-more" href="<?php echo $readlink; ?>"><?php echo $readtxt; ?></a>
42
+ <?php if($icon1!=='') {?>
43
+ <div class="about-social-meta">
44
+ <ul>
45
+ <li class="about-social-social"><a href="<?php echo $linkicon1;?>"><i class="<?php echo $icon1; ?>"></i></a></li>
46
+ <li class="about-social-social"><a href="<?php echo $linkicon2;?>"><i class="<?php echo $icon2; ?>"></i></a></li>
47
+ <li class="about-social-social"><a href="<?php echo $linkicon3;?>"><i class="<?php echo $icon3; ?>"></i></a></li>
48
+ <li class="about-social-social"><a href="<?php echo $linkicon4;?>"><i class="<?php echo $icon4; ?>"></i></a></li>
49
+ </ul>
50
+ </div>
51
+ <?php } ?>
52
+ </div>
53
+
54
+ <?php
55
+ echo $after_widget;
56
+
57
+ }
58
+
59
+ function update($new_instance, $old_instance) {
60
+ $instance = $old_instance;
61
+ $instance['text'] = $new_instance['text'];
62
+ $instance['title'] = strip_tags( $new_instance['title'] );
63
+ $instance['author_img_uri'] = strip_tags( $new_instance['author_img_uri'] );
64
+ $instance['readlink'] = $new_instance['readlink'];
65
+ $instance['readtxt'] = $new_instance['readtxt'];
66
+ $instance['icon1'] = $new_instance['icon1'];
67
+ $instance['icon2'] = $new_instance['icon2'];
68
+ $instance['icon3'] = $new_instance['icon3'];
69
+ $instance['icon4'] = $new_instance['icon4'];
70
+ $instance['linkicon1'] = $new_instance['linkicon1'];
71
+ $instance['linkicon2'] = $new_instance['linkicon2'];
72
+ $instance['linkicon3'] = $new_instance['linkicon3'];
73
+ $instance['linkicon4'] = $new_instance['linkicon4'];
74
+ return $instance;
75
+ }
76
+
77
+ function form($instance) {
78
+ if( $instance) {
79
+ $title = $instance['title'];
80
+ $text = $instance['text'];
81
+ $author_img_uri = $instance['author_img_uri'];
82
+ $readlink = $instance['readlink'];
83
+ $readtxt = $instance['readtxt'];
84
+ $icon1 = $instance['icon1'];
85
+ $icon2 = $instance['icon2'];
86
+ $icon3 = $instance['icon3'];
87
+ $icon4 = $instance['icon4'];
88
+ $linkicon1 = $instance['linkicon1'];
89
+ $linkicon2 = $instance['linkicon2'];
90
+ $linkicon3 = $instance['linkicon3'];
91
+ $linkicon4 = $instance['linkicon4'];
92
+
93
+
94
+ } else {
95
+ $title = '';
96
+ $text = '';
97
+ $author_img_uri = '';
98
+ $readtxt = '';
99
+ $readlink = 'https://';
100
+ $icon1 = 'fa fa-facebook';
101
+ $icon2 = 'fa fa-twitter';
102
+ $icon3 = 'fa fa-linkedin';
103
+ $icon4 = 'fa fa-google';
104
+ $linkicon1 = '';
105
+ $linkicon2 = '';
106
+ $linkicon3 = '';
107
+ $linkicon4 = '';
108
+ }
109
+
110
+
111
+ ?>
112
+ <div class="clearfix"></div>
113
+ <p>
114
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title','themehunk_customizer'); ?></label>
115
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php if(isset($instance["title"])){ echo $instance['title']; } ?>" style="margin-top:5px;">
116
+ </p>
117
+
118
+ <p>
119
+ <label for="<?php echo $this->get_field_id('author_img_uri'); ?>"><?php _e('Member Image','themehunk-customizer'); ?></label>
120
+ <?php
121
+ if ( isset($instance['author_img_uri']) && $instance['author_img_uri'] != '' ) :
122
+ echo '<img class="custom_media_image" src="' . $instance['author_img_uri'] . '" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" /><br />';
123
+ endif;
124
+ ?>
125
+ <input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name('author_img_uri'); ?>" id="<?php echo $this->get_field_id('author_img_uri'); ?>" value="<?php echo $author_img_uri; ?>" style="margin-top:5px;">
126
+ <input type="button" class="button button-primary custom_media_button" id="<?php echo $this->get_field_id('author_img_uri'); ?>_button" name="<?php echo $this->get_field_name('author_img_uri'); ?>" value="Upload Image" style="margin-top:5px;" />
127
+ </p>
128
+
129
+ <p>
130
+ <label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('About Me Description','themehunk-customizer'); ?></label>
131
+ <textarea name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>" class="widefat" >
132
+ <?php if(isset($instance["text"])){ echo $instance['text']; } ?></textarea>
133
+ </p>
134
+
135
+ <p>
136
+ <label for="<?php echo $this->get_field_id('readtxt'); ?>"><?php _e('Read More Text','themehunk-customizer'); ?></label>
137
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('readtxt'); ?>" id="<?php echo $this->get_field_id('readtxt'); ?>" value="<?php if(isset($instance["readtxt"])){ echo $instance['readtxt']; } ?>" style="margin-top:5px;">
138
+ </p>
139
+ <p>
140
+ <label for="<?php echo $this->get_field_id('readlink'); ?>"><?php _e('Link','themehunk-customizer'); ?></label>
141
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('readlink'); ?>" id="<?php echo $this->get_field_id('readlink'); ?>" value="<?php if(isset($instance["readlink"])){ echo $instance['readlink']; } ?>" style="margin-top:5px;">
142
+ </p>
143
+
144
+ <p>
145
+ <label style="padding-bottom: 5px; padding-top:0px;font-size: 12px;font-style: italic;"><?php _e('Go to this link for <a target="_blank" href="//fontawesome.io/icons/">Fontawesome icons</a> and copy the class of icon that you need & paste it below.','themehunk-customizer'); ?></label>
146
+ <label for="<?php echo $this->get_field_id('icon1'); ?>"><?php _e('Fontawesome Social Icon-1','themehunk-customizer'); ?></label>
147
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('icon1'); ?>" id="<?php echo $this->get_field_id('icon1'); ?>" value="<?php if(isset($instance["icon1"])){ echo $instance['icon1']; } ?>" style="margin-top:5px;">
148
+ <label for="<?php echo $this->get_field_id('linkicon1'); ?>"><?php _e('Social Icon Link','themehunk-customizer'); ?></label>
149
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('linkicon1'); ?>" id="<?php echo $this->get_field_id('linkicon1'); ?>" value="<?php if(isset($instance["linkicon1"])){ echo $instance['linkicon1']; } ?>" style="margin-top:5px;" placeholder="<?php _e('Social Link-1'); ?>" >
150
+ </p>
151
+ <p>
152
+ <label for="<?php echo $this->get_field_id('icon2'); ?>"><?php _e('Fontawesome Social Icon-2','themehunk-customizer'); ?></label>
153
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('icon2'); ?>" id="<?php echo $this->get_field_id('icon2'); ?>" value="<?php if(isset($instance["icon2"])){ echo $instance['icon2']; } ?>" style="margin-top:5px;">
154
+ <label for="<?php echo $this->get_field_id('linkicon2'); ?>"><?php _e('Social Icon Link','themehunk-customizer'); ?></label>
155
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('linkicon2'); ?>" id="<?php echo $this->get_field_id('linkicon2'); ?>" value="<?php if(isset($instance["linkicon2"])){ echo $instance['linkicon2']; } ?>" style="margin-top:5px;" placeholder="<?php _e('Social Link-2'); ?>">
156
+ </p>
157
+ <p>
158
+ <label for="<?php echo $this->get_field_id('icon3'); ?>"><?php _e('Fontawesome Social Icon-3','themehunk-customizer'); ?></label>
159
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('icon3'); ?>" id="<?php echo $this->get_field_id('icon3'); ?>" value="<?php if(isset($instance["icon3"])){ echo $instance['icon3']; } ?>" style="margin-top:5px;" >
160
+ <label for="<?php echo $this->get_field_id('linkicon3'); ?>"><?php _e('Social Icon Link','themehunk-customizer'); ?></label>
161
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('linkicon3'); ?>" id="<?php echo $this->get_field_id('linkicon3'); ?>" value="<?php if(isset($instance["linkicon3"])){ echo $instance['linkicon3']; } ?>" style="margin-top:5px;" placeholder="<?php _e('Social Link-3'); ?>">
162
+ </p>
163
+ <p>
164
+ <label for="<?php echo $this->get_field_id('icon4'); ?>"><?php _e('Fontawesome Social Icon-4','themehunk-customizer'); ?></label>
165
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('icon4'); ?>" id="<?php echo $this->get_field_id('icon4'); ?>" value="<?php if(isset($instance["icon4"])){ echo $instance['icon4']; } ?>" style="margin-top:5px;">
166
+ <label for="<?php echo $this->get_field_id('linkicon4'); ?>"><?php _e('Social Icon Link','themehunk-customizer'); ?></label>
167
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('linkicon4'); ?>" id="<?php echo $this->get_field_id('linkicon4'); ?>" value="<?php if(isset($instance["linkicon4"])){ echo $instance['linkicon4']; } ?>" style="margin-top:5px;" placeholder="<?php _e('Social Link-4'); ?>">
168
+ </p>
169
+
170
+ <?php
171
+ }
172
+ }
elanzalite/widget/recent-post.php ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+ /**
4
+ * ElanzaLite Recent Post Widget
5
+ * This widget shows latest place post
6
+ */
7
+ class THunkcustomizer_RecentPost extends WP_Widget {
8
+ /** constructor */
9
+ function __construct() {
10
+ $widget_ops = array(
11
+ 'classname' => 'elanzalite_recent_posts_widget',
12
+ 'description' => 'Display recent post in sidebar with thumbnail images'
13
+ );
14
+ parent::__construct('advanced-recent-posts', 'THunk : Recent Post With Thumbnail', $widget_ops);
15
+ }
16
+
17
+ function widget($args, $instance) {
18
+ extract($args);
19
+ $linkmore = '';
20
+ $title = apply_filters('widget_title', empty($instance['title']) ? 'Recent Post' : $instance['title'], $instance, $this->id_base);
21
+
22
+ $ptitle = isset( $instance['title'])? $instance['title']: 'Recent Post';
23
+ $number = isset($instance['number'])? absint($instance['number']): 5;
24
+
25
+ $excerpt_length = isset($instance['excerpt_length'])? absint($instance['excerpt_length']):5;
26
+
27
+ $default_sort_orders = array('date', 'title', 'comment_count', 'rand');
28
+ // by default, display latest first
29
+
30
+ $sort_by = isset($instance['sort_by']) ? esc_attr($instance['sort_by']) : 'date';
31
+ $sort_order='DESC';
32
+ //Excerpt more filter
33
+ $new_excerpt_more = create_function('$more', 'return " ";');
34
+ add_filter('excerpt_more', $new_excerpt_more);
35
+ // Excerpt length filter
36
+ $new_excerpt_length = create_function('$length', "return " . $excerpt_length . ";");
37
+ if (isset($instance["excerpt_length"])){
38
+ add_filter('excerpt_length', $new_excerpt_length);
39
+ }
40
+ // post info array.
41
+ $my_args = array(
42
+ 'post_type' => 'post',
43
+ 'meta_query' => array(
44
+ array(
45
+ 'key' => '_thumbnail_id'
46
+ )
47
+ ),
48
+ 'ignore_sticky_posts' => 1,
49
+ 'orderby' => 'date',
50
+ 'order' => 'DESC',
51
+ 'posts_per_page' => $number,
52
+
53
+ );
54
+ $excerpt_readmore = '[...]';
55
+ $adv_recent_posts = new WP_Query($my_args);
56
+ // echo "<pre>"; print_r($adv_recent_posts); echo "</pre>";
57
+
58
+ echo $before_widget;
59
+ ?>
60
+ <!--Start Review Thumb-->
61
+ <div class="recent-widget">
62
+ <div class="recent-post">
63
+ <h4 class="widgettitle"><?php echo apply_filters('widget_title',$ptitle ); ?></h4 class="widgettitle">
64
+ <div class="sidebar-tip"></div>
65
+ <?php
66
+ if ( $adv_recent_posts->have_posts() ) {
67
+ while ($adv_recent_posts->have_posts()) { $adv_recent_posts->the_post();
68
+ $link_more = ' <a href="' . esc_url(get_permalink()) . '" class="more-link">' . $excerpt_readmore . '</a>';
69
+ ?>
70
+ <!--Start Review Element-->
71
+ <div class="th-widget-recent-post">
72
+ <?php
73
+ if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
74
+ <a href="<?php esc_url(get_permalink()); ?>"> <?php the_post_thumbnail('elanzalite-recent-post-thumb'); ?></a>
75
+
76
+ <?php } ?>
77
+
78
+ <div class="th-recent-post">
79
+ <h5 class="r_title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent link to <?php the_title_attribute(); ?>" class="post-title"><?php if (strlen($adv_recent_posts->post_title) > 18) {
80
+ echo substr(the_title($before = '', $after = '', FALSE), 0, 18) . '...'; } else {
81
+ the_title();
82
+ } ?></a></h5>
83
+ <ul class="th-recent-meta">
84
+ <?php if (isset($instance['date'])) : ?>
85
+ <li class="post-date"><?php the_time( get_option('date_format') ); ?></li>
86
+ <?php endif; ?>
87
+ </ul>
88
+
89
+ <?php if (isset($instance['excerpt']) && $instance['excerpt']) : ?>
90
+ <div class="post-entry">
91
+ <?php if (isset($instance['excerpt']) && $instance['excerpt']) : ?>
92
+ <p><?php echo get_the_excerpt() . $link_more; ?> </p>
93
+ <?php endif; ?>
94
+ </div>
95
+ <?php endif; ?>
96
+
97
+ </div>
98
+ </div>
99
+ <div class="clearfix"></div>
100
+ <!--End Review Element-->
101
+
102
+ <?php
103
+ }
104
+
105
+ } wp_reset_postdata();
106
+ ?>
107
+ </div>
108
+ </div>
109
+ <!--End Review Thumb-->
110
+ <?php
111
+ echo $after_widget;
112
+ remove_filter('excerpt_length', $new_excerpt_length);
113
+ }
114
+
115
+ function update($new_instance, $old_instance) {
116
+ $instance = $old_instance;
117
+ $instance['title'] = strip_tags($new_instance['title']);
118
+ $instance['sort_by'] = esc_attr($new_instance['sort_by']);
119
+ $instance['show_type'] = esc_attr($new_instance['show_type']);
120
+ $instance['number'] = absint($new_instance['number']);
121
+ $instance['date'] = esc_attr($new_instance['date']);
122
+ $instance['comment_num'] = esc_attr($new_instance['comment_num']);
123
+ $instance["excerpt_length"] = absint($new_instance["excerpt_length"]);
124
+ $instance["excerpt"] = esc_attr($new_instance["excerpt"]);
125
+ return $instance;
126
+ }
127
+
128
+ function form($instance) {
129
+ $title = isset($instance['title']) ? esc_attr($instance['title']) : 'Recent Blog Post';
130
+ $number = isset($instance['number']) ? absint($instance['number']) : 5;
131
+ $show_type = isset($instance['show_type']) ? esc_attr($instance['show_type']) : 'post';
132
+ $excerpt_length = isset($instance['excerpt_length']) ? absint($instance['excerpt_length']) : 5;
133
+
134
+ ?>
135
+ <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title','elanzalite'); ?></label>
136
+ <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
137
+ <p style="display:none;">
138
+ <label for="<?php echo $this->get_field_id("sort_by"); ?>">
139
+ <?php _e('Post Sort','elanzalite'); ?>:
140
+ <select id="<?php echo $this->get_field_id("sort_by"); ?>" name="<?php echo $this->get_field_name("sort_by"); ?>">
141
+ <option value="date"<?php selected($instance["sort_by"], "date"); ?>><?php _e('Recent Sort Post','elanzalite'); ?></option>
142
+ <option value="title"<?php selected($instance["sort_by"], "title"); ?>><?php _e('Title Sort Post','elanzalite'); ?></option>
143
+ <!-- <option value="comment_count"<?php selected($instance["sort_by"], "comment_count"); ?>><php echo 'R_N_CMT'; ?></option> -->
144
+ <option value="rand"<?php selected($instance["sort_by"], "rand"); ?>><?php _e('Random Sort Post','elanzalite'); ?></option>
145
+ </select>
146
+ </label>
147
+ </p>
148
+ <p>
149
+ <label for="<?php echo $this->get_field_id("excerpt"); ?>">
150
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("excerpt"); ?>" name="<?php echo $this->get_field_name("excerpt"); ?>"<?php if(isset($instance["excerpt"])){ checked((bool) $instance["excerpt"], true); } ?> />
151
+ <?php _e('Show Post Excerpt','elanzalite'); ?>
152
+ </label>
153
+ </p>
154
+ <p>
155
+ <label for="<?php echo $this->get_field_id("excerpt_length"); ?>">
156
+ <?php _e('Post Excerpt length','elanzalite'); ?>
157
+ </label>
158
+ <input type="text" id="<?php echo $this->get_field_id("excerpt_length"); ?>" name="<?php echo $this->get_field_name("excerpt_length"); ?>" value="<?php echo $excerpt_length; ?>" size="3" />
159
+ </p>
160
+ <p style="display:none;">
161
+ <label for="<?php echo $this->get_field_id("date"); ?>">
162
+ <input type="checkbox" class="checkbox" id="<?php echo $this->get_field_id("date"); ?>" name="<?php echo $this->get_field_name("date"); ?>"<?php checked((bool) $instance["date"], true); ?> />
163
+ <?php _e('Post Date','elanzalite'); ?>
164
+ </label>
165
+ </p>
166
+ <p><label for="<?php echo $this->get_field_id('number'); ?>"><?php _e('Add Number Of Post To Show','elanzalite'); ?></label>
167
+ <input id="<?php echo $this->get_field_id('number'); ?>" name="<?php echo $this->get_field_name('number'); ?>" type="text" value="<?php echo $number; ?>" size="3" /></p>
168
+
169
+ <p>
170
+
171
+ <input type="hidden" id="<?php echo $this->get_field_id('show_type'); ?>" name="<?php echo $this->get_field_name('show_type'); ?>" value="listing"/>
172
+
173
+ </p>
174
+ <?php } } ?>
elanzalite/widget/section-ad.php ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * Add Widget
6
+ */
7
+ class themehunk_customizer_section_add extends WP_Widget {
8
+
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-section-add',
11
+ 'description' => 'Display Banner ad or Google adsense by adding code');
12
+ parent::__construct('themehunk-customizer-section-add', __('THunk : Ad Widget','themehunk_customizer'), $widget_ops);
13
+ }
14
+
15
+ function widget($args, $instance) {
16
+ extract($args);
17
+ // widget content
18
+ echo $before_widget;
19
+ $ad_show = isset($instance['ad_show'])?$instance['ad_show']:'ads_image';
20
+ $ad_img_uri = isset($instance['ad_img_uri'])?$instance['ad_img_uri']:'';
21
+ $ads_link = isset($instance['ads_link'])?$instance['ads_link']:'';
22
+ $add_code = isset($instance['add_code'])?$instance['add_code']:__('Add Ad code Here','themehunk_customizer');
23
+ ?>
24
+ <section id="section_adver">
25
+ <div class="inner_wrap">
26
+ <div class="adver_wrap" style="text-align: center;">
27
+ <?php if($ad_show =='ads_image' && $ad_img_uri!=''){?>
28
+ <a href="<?php echo $ads_link;?>"><img src="<?php echo $ad_img_uri;?>"></a>
29
+ <?php }if($ad_show =='ads_code'){
30
+ echo $add_code;
31
+ }
32
+ ?>
33
+ </div>
34
+ </div>
35
+ </section>
36
+ <?php
37
+ echo $after_widget;
38
+
39
+ }
40
+
41
+ function update($new_instance, $old_instance) {
42
+ $instance = $old_instance;
43
+ $instance['ad_show'] = $new_instance['ad_show'];
44
+ $instance['ad_img_uri'] = $new_instance['ad_img_uri'];
45
+ $instance['ads_link'] = $new_instance['ads_link'];
46
+ $instance['add_code'] = $new_instance['add_code'];
47
+ return $instance;
48
+ }
49
+
50
+ function form($instance) {
51
+ $ad_show = isset($instance['ad_show']) ? $instance['ad_show'] :'ads_image';
52
+ $ad_img_uri = isset($instance['ad_img_uri']) ? $instance['ad_img_uri'] :'';
53
+ $ads_link = isset($instance['ads_link']) ? $instance['ads_link'] :'';
54
+ $add_code = isset($instance['add_code']) ? $instance['add_code'] :'';
55
+ ?>
56
+ <p>
57
+ <input
58
+ style="margin-right:5px;margin-left:5px;" type="radio" id="role_info" class="widefat" name="<?php echo $this->get_field_name('ad_show'); ?>" value="ads_image" <?php checked( $ad_show, 'ads_image' ); ?> >For Banner Image
59
+ <br/>
60
+ <br/>
61
+ <input style="margin-right:5px;margin-left:5px;" type="radio" id="role_info" class="widefat" name="<?php echo $this->get_field_name('ad_show'); ?>" value="ads_code" <?php checked( $ad_show, 'ads_code' ); ?> >For Adsense Code
62
+ </p>
63
+
64
+ <p>
65
+ <label for="<?php echo $this->get_field_id('ad_img_uri'); ?>"><?php _e('Banner Image','themehunk-customizer'); ?>
66
+ </label>
67
+ <?php
68
+ if ( isset($instance['ad_img_uri']) && $instance['ad_img_uri'] != '' ) :
69
+ echo '<img class="custom_media_image" src="' . $instance['ad_img_uri'] . '" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" /><br />';
70
+ endif;
71
+ ?>
72
+ <input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name('ad_img_uri'); ?>" id="<?php echo $this->get_field_id('ad_img_uri'); ?>" value="<?php echo $ad_img_uri; ?>" style="margin-top:5px;">
73
+ <input type="button" class="button button-primary custom_media_button" id="<?php echo $this->get_field_id('ad_img_uri'); ?>_button" name="<?php echo $this->get_field_name('ad_img_uri'); ?>" value="Upload Image" style="margin-top:5px;" />
74
+ </p>
75
+ <p>
76
+ <label for="<?php echo $this->get_field_id('ads_link'); ?>"><?php _e('Banner Link','themehunk_customizer'); ?></label>
77
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('ads_link'); ?>" id="<?php echo $this->get_field_id('ads_link'); ?>" value="<?php if(isset($instance["ads_link"])){ echo $instance['ads_link']; } ?>" style="margin-top:5px;">
78
+ </p>
79
+
80
+ <p>OR</p>
81
+
82
+ <p>
83
+ <label for="<?php echo $this->get_field_id('add_code'); ?>"><?php _e('Google Adsense / Custom Ad','themehunk-customizer'); ?></label>
84
+ <label style="padding-top:0px;font-size: 12px;font-style: italic;"><?php _e('Generate <a target="_blank" href="https://www.google.com/adsense/start/">Google Adsense</a> code and paste it below.','themehunk-customizer'); ?></label>
85
+ <textarea rows="8" name="<?php echo $this->get_field_name('add_code'); ?>" id="<?php echo $this->get_field_id('add_code'); ?>" class="widefat" placeholder="<?php _e('Ad Generated Here','themehunk-customizer'); ?>"><?php echo $add_code; ?></textarea>
86
+ </p>
87
+ <?php
88
+ }
89
+ }
90
+ ?>
elanzalite/widget/section-five.php ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * Testimonial Widget
6
+ */
7
+ class themehunk_customizer_section_five extends WP_Widget {
8
+
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-section-five',
11
+ 'description' => 'Display post in left and right column with description');
12
+ parent::__construct('themehunk-customizer-section-five', __('THunk : Post Style 5','themehunk_customizer'), $widget_ops);
13
+ }
14
+
15
+ function widget($args, $instance) {
16
+ extract($args);
17
+ // widget content
18
+ echo $before_widget;
19
+ $title = isset($instance['title'])?$instance['title']:__('writing your description','themehunk_customizer');
20
+ $one_cate = isset($instance['one_cate']) ? absint($instance['one_cate']) : 0;
21
+ $one_count = isset($instance['one_count']) ? absint($instance['one_count']) : 4;
22
+ $two_cate = isset($instance['two_cate']) ? absint($instance['two_cate']) : 0;
23
+ $two_count = isset($instance['two_count']) ? absint($instance['two_count']) : 4;
24
+ $title_bg_color = isset($instance['title_bg_color'])? $instance['title_bg_color']:'#66cda9';
25
+ $title_txt_color = isset($instance['title_txt_color'])? $instance['title_txt_color']:'#fff';
26
+ $r_title_bg_color = isset($instance['r_title_bg_color'])? $instance['r_title_bg_color']:'#66cda9';
27
+ $r_title_txt_color = isset($instance['r_title_txt_color'])? $instance['r_title_txt_color']:'#fff';
28
+ $args = array(
29
+ 'order' => 'DESC',
30
+ 'orderby' =>'date',
31
+ 'ignore_sticky_posts' => 1,
32
+ 'post_type' => 'post',
33
+ // 'meta_key' => '_thumbnail_id',
34
+ 'posts_per_page' => $one_count,
35
+ 'cat' => $one_cate
36
+ );
37
+ if($one_cate != true){
38
+ $args['orderby'] = 'rand';
39
+ }
40
+ $one_posts = new WP_Query($args);
41
+ ?>
42
+ <section id="section_five">
43
+ <div class="inner_wrap">
44
+ <div class="col-one">
45
+ <?php if ( $one_posts->have_posts() ) { $count=1; ?>
46
+ <?php while($one_posts->have_posts()): $one_posts->the_post();
47
+ ?>
48
+ <?php if($count<=1){ ?>
49
+
50
+ <h3 class="title" style="background:<?php echo $title_bg_color;?>">
51
+ <a style="color:<?php echo $title_txt_color;?>" href="<?php echo esc_url(get_category_link( $one_cate )); ?>"><?php echo get_cat_name($one_cate); ?></a></h3>
52
+ <div class="post-item">
53
+
54
+ <div class="post-thumb"><a href="#"><?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
55
+ the_post_thumbnail( 'section-five-large' );
56
+ }
57
+ ?></a></div>
58
+ <div class="post-item-content">
59
+ <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
60
+ <div class="entry-meta">
61
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
62
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
63
+ </div>
64
+ <?php the_excerpt(); ?>
65
+ </div>
66
+ </div>
67
+ <ul class="feat-cat_small_list">
68
+ <?php } else{ ?>
69
+ <li>
70
+ <div class="post-item">
71
+
72
+ <div class="post-thumb">
73
+ <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
74
+ the_post_thumbnail( 'section-five-small' );
75
+ }
76
+ ?></div>
77
+ <div class="post-item-content">
78
+ <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
79
+ <div class="entry-meta">
80
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
81
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
82
+ </div>
83
+ </div>
84
+
85
+ </div>
86
+ </li>
87
+
88
+ <?php } $count++; ?>
89
+ <?php endwhile; } wp_reset_postdata(); ?>
90
+ </div>
91
+ <?php
92
+ $targs = array(
93
+ 'order' => 'DESC',
94
+ 'orderby' =>'date',
95
+ 'ignore_sticky_posts' => 1,
96
+ 'post_type' => 'post',
97
+ 'posts_per_page' => $two_count,
98
+ 'cat' => $two_cate
99
+ );
100
+ if($two_cate != true){
101
+ $targs['orderby'] = 'rand';
102
+ }
103
+ $two_posts = new WP_Query($targs);
104
+ ?>
105
+ <div class="col-two">
106
+ <?php if ( $two_posts->have_posts() ) { $count=1; ?>
107
+ <?php while($two_posts->have_posts()): $two_posts->the_post(); ?>
108
+ <?php if($count<=1){ ?>
109
+
110
+ <h3 class="title" style="background:<?php echo $r_title_bg_color;?>"><a style="color:<?php echo $r_title_txt_color;?>" href="<?php echo esc_url(get_category_link( $two_cate )); ?>"><?php echo get_cat_name($two_cate); ?></a></h3>
111
+ <div class="post-item">
112
+
113
+ <div class="post-thumb"><a href="#"><?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
114
+ the_post_thumbnail( 'section-five-large' );
115
+ }
116
+ ?></a></div>
117
+ <div class="post-item-content">
118
+ <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
119
+ <div class="entry-meta">
120
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
121
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
122
+ </div>
123
+ <?php the_excerpt(); ?>
124
+ </div>
125
+ </div>
126
+ <ul class="feat-cat_small_list">
127
+ <?php } else{ ?>
128
+ <li>
129
+ <div class="post-item">
130
+
131
+ <div class="post-thumb"><?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
132
+ the_post_thumbnail( 'section-five-small' );
133
+ }
134
+ ?></div>
135
+ <div class="post-item-content">
136
+ <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
137
+ <div class="entry-meta">
138
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
139
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
140
+ </div>
141
+ </div>
142
+
143
+ </div>
144
+ </li>
145
+
146
+ <?php } $count++; ?>
147
+ <?php endwhile; } wp_reset_postdata(); ?>
148
+ </div>
149
+ </div>
150
+ </section>
151
+ <?php
152
+ echo $after_widget;
153
+
154
+ }
155
+
156
+ function update($new_instance, $old_instance) {
157
+ $instance = $old_instance;
158
+ $instance["one_cate"] = absint($new_instance["one_cate"]);
159
+ $instance['one_count'] = strip_tags( $new_instance['one_count'] );
160
+ $instance["two_cate"] = absint($new_instance["two_cate"]);
161
+ $instance['two_count'] = strip_tags( $new_instance['two_count'] );
162
+ $instance["title_bg_color"] = $new_instance["title_bg_color"];
163
+ $instance["title_txt_color"] = $new_instance["title_txt_color"];
164
+ $instance["r_title_bg_color"] = $new_instance["r_title_bg_color"];
165
+ $instance["r_title_txt_color"] = $new_instance["r_title_txt_color"];
166
+ return $instance;
167
+ }
168
+
169
+ function form($instance) {
170
+ $one_cate = isset($instance['one_cate']) ? absint($instance['one_cate']) : 0;
171
+ $one_count = isset($instance['one_count']) ? absint($instance['one_count']) : 4;
172
+ $two_cate = isset($instance['two_cate']) ? absint($instance['two_cate']) : 0;
173
+ $two_count = isset($instance['two_count']) ? absint($instance['two_count']) : 4;
174
+ $title_bg_color = isset($instance['title_bg_color']) ? $instance['title_bg_color'] :"#66cda9";
175
+ $title_txt_color = isset($instance['title_txt_color']) ? $instance['title_txt_color'] :"#fff";
176
+ $r_title_bg_color = isset($instance['r_title_bg_color']) ? $instance['r_title_bg_color'] :"#66cda9";
177
+ $r_title_txt_color = isset($instance['r_title_txt_color']) ? $instance['r_title_txt_color'] :"#fff";
178
+
179
+
180
+ $termarr = array('child_of' => 0);
181
+ $terms = get_terms('category' ,$termarr);
182
+ $oneoption = $twooption = '<option value="0">Random Post</option>';
183
+
184
+ foreach($terms as $cat) {
185
+ $term_id = $cat->term_id;
186
+ $selected1 = ($one_cate==$term_id)?'selected':'';
187
+ $selected2 = ($two_cate==$term_id)?'selected':'';
188
+ $oneoption .= '<option value="'.$term_id.'" '.$selected1.'>'.$cat->name.'</option>';
189
+ $twooption .= '<option value="'.$term_id.'" '.$selected2.'>'.$cat->name.'</option>';
190
+ }
191
+
192
+
193
+ ?>
194
+ <style>
195
+ .thunk-widget-title{
196
+ background: #d9e8e9;
197
+ padding: 6px;
198
+ text-align: center;
199
+ border-radius: 1px;
200
+ }
201
+ </style>
202
+ <div class="clearfix"></div>
203
+ <img src="<?php echo THEMEHUNK_CUSTOMIZER_STYLE5; ?>" />
204
+ <p class="thunk-widget-title">Left Blog Setting</p>
205
+ <p>
206
+ <label for="<?php echo $this->get_field_id('one_cate'); ?>"><?php _e('Select Specific Option To Display Post','themehunk-customizer'); ?></label>
207
+ <select name="<?php echo $this->get_field_name('one_cate'); ?>" ><?php echo $oneoption; ?></select>
208
+ </p>
209
+ <p><label for="<?php echo $this->get_field_id('one_count'); ?>"><?php _e('Add Number Of Post To Show','elanzalite'); ?></label>
210
+ <input id="<?php echo $this->get_field_id('one_count'); ?>" name="<?php echo $this->get_field_name('one_count'); ?>" type="text" value="<?php echo $one_count; ?>" size="3" /></p>
211
+ <p><label for="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" style="display:block;"><?php _e( 'Title Background Color:','themehunk-customizer' ); ?></label>
212
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" name="<?php echo $this->get_field_name( 'title_bg_color' ); ?>" type="text" value="<?php echo esc_attr( $title_bg_color ); ?>" />
213
+ </p>
214
+ <p>
215
+ <label for="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" style="display:block;"><?php _e( 'Text Color','themehunk-customizer' ); ?></label>
216
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" name="<?php echo $this->get_field_name( 'title_txt_color' ); ?>" type="text" value="<?php echo esc_attr( $title_txt_color); ?>" />
217
+ </p>
218
+
219
+ <p class="thunk-widget-title">Right Blog Setting</p>
220
+ <p>
221
+ <label for="<?php echo $this->get_field_id('two_cate'); ?>"><?php _e('Select Specific Option To Display Post','themehunk-customizer'); ?></label>
222
+ <select name="<?php echo $this->get_field_name('two_cate'); ?>" ><?php echo $twooption; ?></select>
223
+ </p>
224
+ <p><label for="<?php echo $this->get_field_id('two_count'); ?>"><?php _e('Add Number Of Post To Show','elanzalite'); ?></label>
225
+ <input id="<?php echo $this->get_field_id('two_count'); ?>" name="<?php echo $this->get_field_name('two_count'); ?>" type="text" value="<?php echo $two_count; ?>" size="3" /></p>
226
+ <p><label for="<?php echo $this->get_field_id( 'r_title_bg_color' ); ?>" style="display:block;"><?php _e( 'Title Background Color:','themehunk-customizer' ); ?></label>
227
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'r_title_bg_color' ); ?>" name="<?php echo $this->get_field_name( 'r_title_bg_color' ); ?>" type="text" value="<?php echo esc_attr( $r_title_bg_color ); ?>" />
228
+ </p>
229
+ <p>
230
+ <label for="<?php echo $this->get_field_id( 'r_title_txt_color' ); ?>" style="display:block;"><?php _e( 'Text Color','themehunk-customizer' ); ?></label>
231
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'r_title_txt_color' ); ?>" name="<?php echo $this->get_field_name( 'r_title_txt_color' ); ?>" type="text" value="<?php echo esc_attr( $r_title_txt_color); ?>" />
232
+ </p>
233
+
234
+ <?php
235
+ }
236
+ }
237
+ ?>
elanzalite/widget/section-four.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * Testimonial Widget
6
+ */
7
+ class themehunk_customizer_section_four extends WP_Widget {
8
+
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-section-four',
11
+ 'description' => 'Display post along with description');
12
+ parent::__construct('themehunk-customizer-section-four', __('THunk : Post Style 4','themehunk_customizer'), $widget_ops);
13
+ }
14
+
15
+ function widget($args, $instance) {
16
+ extract($args);
17
+ // widget content
18
+ echo $before_widget;
19
+ $title = isset($instance['title'])?$instance['title']:__('Latest News','themehunk_customizer');
20
+ $cate = isset($instance['cate']) ? absint($instance['cate']) : 0;
21
+ $count = isset($instance['count']) ? absint($instance['count']) : 3;
22
+ $title_bg_color = isset($instance['title_bg_color'])? $instance['title_bg_color']:'#66cda9';
23
+ $title_txt_color = isset($instance['title_txt_color'])? $instance['title_txt_color']:'#fff';
24
+ $args = array(
25
+ 'order' => 'DESC',
26
+ 'orderby' =>'date',
27
+ 'ignore_sticky_posts' => 1,
28
+ 'post_type' => 'post',
29
+ 'posts_per_page' => $count,
30
+ 'cat' => $cate
31
+ );
32
+ if($cate != true){
33
+ $args['orderby'] = 'rand';
34
+ }
35
+ $latest_posts = new WP_Query($args);
36
+ $catelink = get_category_link( $cate );
37
+ ?>
38
+ <section id="section_four">
39
+ <div class="inner_wrap">
40
+ <!-- one -->
41
+ <div class="recent-news">
42
+ <h3 class="title" style="background:<?php echo $title_bg_color;?>; color:<?php echo $title_txt_color;?>"><?php echo $title; ?></h3>
43
+ <?php if($cate): ?>
44
+ <h3 class="view"><a href="<?php echo esc_url($catelink); ?>"><?php _e('View All','themehunk-customizer'); ?></a></h3>
45
+ <?php endif; ?> <?php if ( $latest_posts->have_posts() ) { ?>
46
+
47
+ <?php while($latest_posts->have_posts()): $latest_posts->the_post();
48
+ ?>
49
+ <!-- one -->
50
+ <div class="post-item">
51
+ <div class="post-thumb">
52
+ <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
53
+ the_post_thumbnail( 'section-four' );
54
+ }
55
+ ?>
56
+ </div>
57
+ <div class="entry-body">
58
+ <div class="post-item-content">
59
+ <span class="cat-links">
60
+ <?php echo THunk_customizer_Cate(); ?>
61
+ </span>
62
+ <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
63
+ <div class="entry-meta">
64
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
65
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
66
+ </div>
67
+ <?php the_excerpt(''); ?>
68
+ <div class="readmore_button">
69
+ <a href="<?php echo get_permalink(); ?>" rel="nofollow"><?php _e('Continue Reading →','themehunk-cutomizer'); ?></a>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ <?php endwhile; ?>
75
+ <?php } wp_reset_postdata(); ?>
76
+ </div>
77
+ </div>
78
+ </section>
79
+ <?php
80
+ echo $after_widget;
81
+
82
+ }
83
+
84
+ function update($new_instance, $old_instance) {
85
+ $instance = $old_instance;
86
+ $instance['title'] = strip_tags( $new_instance['title'] );
87
+ $instance["cate"] = absint($new_instance["cate"]);
88
+ $instance['count'] = strip_tags( $new_instance['count'] );
89
+ $instance["title_bg_color"] = $new_instance["title_bg_color"];
90
+ $instance["title_txt_color"] = $new_instance["title_txt_color"];
91
+ return $instance;
92
+ }
93
+
94
+ function form($instance) {
95
+ $title = isset($instance['title']) ? esc_attr($instance['title']) : __('Latest News','themehunk-customizer');
96
+ $cate = isset($instance['cate']) ? absint($instance['cate']) : 0;
97
+ $count = isset($instance['count']) ? absint($instance['count']) : 3;
98
+ $title_bg_color = isset($instance['title_bg_color']) ? $instance['title_bg_color'] :"#66cda9";
99
+ $title_txt_color = isset($instance['title_txt_color']) ? $instance['title_txt_color'] :"#fff";
100
+
101
+ $termarr = array('child_of' => 0);
102
+ $terms = get_terms('category' ,$termarr);
103
+ $foption = '<option value="0">Random Post</option>';
104
+ foreach($terms as $cat) {
105
+ $term_id = $cat->term_id;
106
+ $selected1 = ($cate==$term_id)?'selected':'';
107
+ $foption .= '<option value="'.$term_id.'" '.$selected1.'>'.$cat->name.'</option>';
108
+ }
109
+ ?>
110
+
111
+ <div class="clearfix"></div>
112
+ <img src="<?php echo THEMEHUNK_CUSTOMIZER_STYLE4; ?>" />
113
+ <p>
114
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Latest News Title','themehunk-customizer'); ?></label>
115
+ <input name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" class="widefat" value="<?php echo $title; ?>" >
116
+ </p>
117
+ <p><label for="<?php echo $this->get_field_id('count'); ?>"><?php _e('Add Number Of Post To Show','elanzalite'); ?></label>
118
+ <input id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="text" value="<?php echo $count; ?>" size="3" /></p>
119
+ <p>
120
+ <p>
121
+ <label for="<?php echo $this->get_field_id('cate'); ?>"><?php _e('Select Specific Option To Display Post','themehunk-customizer'); ?></label>
122
+ <select name="<?php echo $this->get_field_name('cate'); ?>" ><?php echo $foption; ?></select>
123
+ </p>
124
+ <p><label for="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" style="display:block;"><?php _e( 'Title Background Color:','themehunk-customizer' ); ?></label>
125
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" name="<?php echo $this->get_field_name( 'title_bg_color' ); ?>" type="text" value="<?php echo esc_attr( $title_bg_color ); ?>" />
126
+ </p>
127
+ <p>
128
+ <label for="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" style="display:block;"><?php _e( 'Text Color','themehunk-customizer' ); ?></label>
129
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" name="<?php echo $this->get_field_name( 'title_txt_color' ); ?>" type="text" value="<?php echo esc_attr( $title_txt_color); ?>" />
130
+ </p>
131
+ <?php
132
+ }
133
+ }
134
+ ?>
elanzalite/widget/section-news.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * Add Widget
6
+ */
7
+ class themehunk_customizer_section_news extends WP_Widget {
8
+
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-section-news',
11
+ 'description' => 'Display breaking news slider');
12
+ parent::__construct('themehunk-customizer-section-news', __('THunk : News Slider','themehunk_customizer'), $widget_ops);
13
+ }
14
+
15
+ function widget($args, $instance) {
16
+ extract($args);
17
+ // widget content
18
+ echo $before_widget;
19
+ $title = isset($instance['title'])?$instance['title']:__('Breaking News','themehunk_customizer');
20
+ $fcount = isset($instance['fcount']) ? absint($instance['fcount']) : 4;
21
+ $fcate = isset($instance['fcate']) ? absint($instance['fcate']) : 0;
22
+ $news_bg_color = isset($instance['news_bg_color'])? $instance['news_bg_color']:'#0e0e0e';
23
+ $news_tle_color = isset($instance['news_tle_color'])? $instance['news_tle_color']:'#fff';
24
+ $news_post_tle_color = isset($instance['news_post_tle_color'])? $instance['news_post_tle_color']:'#66cda9';
25
+ $news_post_tme_color = isset($instance['news_post_tme_color'])? $instance['news_post_tme_color']:'#bbb';
26
+ $news_post_tme_bgcolor = isset($instance['news_post_tme_bgcolor'])? $instance['news_post_tme_bgcolor']:'#403f3f';
27
+
28
+ $args = array(
29
+ 'order' => 'DESC',
30
+ 'post_type' => 'post',
31
+ 'meta_key' => '_thumbnail_id',
32
+ 'posts_per_page' => $fcount,
33
+ 'cat' => $fcate
34
+ );
35
+ $featured_posts = new WP_Query($args);
36
+ ?>
37
+ <div class="breaking-new" style="background:<?php echo $news_bg_color;?>">
38
+ <div class="inner-wrap">
39
+ <div class="new-title">
40
+ <h3 style="color:<?php echo $news_tle_color;?>"><?php echo $title; ?></h3>
41
+ </div>
42
+ <div id="<?php echo $widget_id; ?>" class="news-ticker-wrap">
43
+ <?php if ( $featured_posts->have_posts() ) { ?>
44
+ <ul class="news-ticker">
45
+ <?php while ($featured_posts->have_posts()): $featured_posts->the_post();?>
46
+ <li><span style="color:<?php echo $news_post_tme_color;?>; background:<?php echo $news_post_tme_bgcolor;?>"><?php echo human_time_diff(get_the_time('U'), current_time('timestamp')). ' ago';?></span><a style="color:<?php echo $news_post_tle_color;?>" target=_blank href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
47
+ </li>
48
+ <?php endwhile; ?>
49
+ </ul>
50
+
51
+ <?php } wp_reset_postdata(); ?>
52
+
53
+ </div>
54
+ <div class="page-tab">
55
+ <i class="nt-prev fa fa-angle-left" id="nt-prev<?php echo $widget_id; ?>" aria-hidden="true"></i>
56
+ <i class="nt-next fa fa-angle-right" id="nt-next<?php echo $widget_id; ?>" aria-hidden="true" ></i>
57
+ </div>
58
+ </div>
59
+ </div>
60
+
61
+ <script>
62
+ jQuery(window).load(function(){
63
+ var wdgetid = '<?php echo $widget_id; ?>';
64
+ // newsticker-widget
65
+ var dd = jQuery('#'+wdgetid).easyTicker({
66
+ direction: 'down',
67
+ easing: 'swing',
68
+ speed:'slow',
69
+ interval: 2500,
70
+ height: 'auto',
71
+ visible: 1,
72
+ mousePause:1,
73
+ controls: {
74
+ up: '#nt-prev'+wdgetid,
75
+ down:'#nt-next'+wdgetid,
76
+ }
77
+ }).data('easyTicker');
78
+ });
79
+ </script>
80
+ <?php
81
+ echo $after_widget;
82
+
83
+ }
84
+
85
+ function update($new_instance, $old_instance) {
86
+ $instance = $old_instance;
87
+ $instance['title'] = strip_tags( $new_instance['title'] );
88
+ $instance["fcount"] = absint($new_instance["fcount"]);
89
+ $instance["fcate"] = absint($new_instance["fcate"]);
90
+ $instance["news_bg_color"] = $new_instance["news_bg_color"];
91
+ $instance["news_tle_color"] = $new_instance["news_tle_color"];
92
+ $instance["news_post_tle_color"] = $new_instance["news_post_tle_color"];
93
+ $instance["news_post_tme_color"] = $new_instance["news_post_tme_color"];
94
+ $instance["news_post_tme_bgcolor"] = $new_instance["news_post_tme_bgcolor"];
95
+ return $instance;
96
+ }
97
+
98
+ function form($instance) {
99
+ $title = isset($instance['title']) ? esc_attr($instance['title']) : __('Breaking News','themehunk-customizer');
100
+ $fcate = isset($instance['fcate']) ? absint($instance['fcate']) : 0;
101
+ $fcount = isset($instance['fcount']) ? absint($instance['fcount']) : 4;
102
+ $news_bg_color = isset($instance['news_bg_color']) ? $instance['news_bg_color'] :"#0e0e0e";
103
+ $news_tle_color = isset($instance['news_tle_color']) ? $instance['news_tle_color'] :"#fff";
104
+ $news_post_tle_color = isset($instance['news_post_tle_color']) ? $instance['news_post_tle_color'] :"#66cda9";
105
+ $news_post_tme_color = isset($instance['news_post_tme_color']) ? $instance['news_post_tme_color'] :"#bbb";
106
+ $news_post_tme_bgcolor = isset($instance['news_post_tme_bgcolor']) ? $instance['news_post_tme_bgcolor'] :"#403f3f";
107
+
108
+
109
+ $termarr = array('child_of' => 0);
110
+ $terms = get_terms('category' ,$termarr);
111
+ $foption = '<option value="0">Recent Post</option>';
112
+ foreach($terms as $cat) {
113
+ $term_id = $cat->term_id;
114
+ $selected1 = ($fcate==$term_id)?'selected':'';
115
+ $foption .= '<option value="'.$term_id.'" '.$selected1.'>'.$cat->name.'</option>';
116
+ }
117
+ ?>
118
+ <div class="clearfix"></div>
119
+ <p>
120
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title','themehunk-customizer'); ?></label>
121
+ <input name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" class="widefat" value="<?php echo $title; ?>" >
122
+ </p>
123
+ <p><label for="<?php echo $this->get_field_id('fcount'); ?>"><?php _e('Add Number Of Post To Show','elanzalite'); ?></label>
124
+ <input id="<?php echo $this->get_field_id('fcount'); ?>" name="<?php echo $this->get_field_name('fcount'); ?>" type="text" value="<?php echo $fcount; ?>" size="3" />
125
+ </p>
126
+ <p>
127
+ <label for="<?php echo $this->get_field_id('fcate'); ?>"><?php _e('Select Specific Option To Display Post','themehunk-customizer'); ?></label>
128
+ <select name="<?php echo $this->get_field_name('fcate'); ?>" ><?php echo $foption; ?></select>
129
+ </p>
130
+ <p><label for="<?php echo $this->get_field_id( 'news_bg_color' ); ?>" style="display:block;"><?php _e( 'Background Color:','themehunk-customizer' ); ?></label>
131
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'news_bg_color' ); ?>" name="<?php echo $this->get_field_name( 'news_bg_color' ); ?>" type="text" value="<?php echo esc_attr( $news_bg_color ); ?>" />
132
+ </p>
133
+
134
+ <p><label for="<?php echo $this->get_field_id( 'news_tle_color' ); ?>" style="display:block;"><?php _e( 'Tilte Color:','themehunk-customizer' ); ?></label>
135
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'news_tle_color' ); ?>" name="<?php echo $this->get_field_name( 'news_tle_color' ); ?>" type="text" value="<?php echo esc_attr( $news_tle_color ); ?>" />
136
+ </p>
137
+ <p><label for="<?php echo $this->get_field_id( 'news_post_tle_color' ); ?>" style="display:block;"><?php _e( 'Post Tilte Color:','themehunk-customizer' ); ?></label>
138
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'news_post_tle_color' ); ?>" name="<?php echo $this->get_field_name( 'news_post_tle_color' ); ?>" type="text" value="<?php echo esc_attr($news_post_tle_color); ?>" />
139
+ </p>
140
+ <p><label for="<?php echo $this->get_field_id( 'news_post_tme_bgcolor' ); ?>" style="display:block;"><?php _e( 'Post Date Background Color :','themehunk-customizer' ); ?></label>
141
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'news_post_tme_bgcolor' ); ?>" name="<?php echo $this->get_field_name( 'news_post_tme_bgcolor' ); ?>" type="text" value="<?php echo esc_attr($news_post_tme_bgcolor); ?>" />
142
+ </p>
143
+ <p><label for="<?php echo $this->get_field_id( 'news_post_tme_color' ); ?>" style="display:block;"><?php _e( 'Post Date Color :','themehunk-customizer' ); ?></label>
144
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'news_post_tme_color' ); ?>" name="<?php echo $this->get_field_name( 'news_post_tme_color' ); ?>" type="text" value="<?php echo esc_attr($news_post_tme_color); ?>" />
145
+ </p>
146
+
147
+ <?php
148
+ }
149
+ }
150
+ ?>
elanzalite/widget/section-one.php ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * Post first Widget
6
+ */
7
+ class themehunk_customizer_section_one extends WP_Widget {
8
+
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-section-one',
11
+ 'description' => 'Display post slider in left column and other post in right column');
12
+ parent::__construct('themehunk-customizer-section-one', __('THunk : Post Style 1','themehunk_customizer'), $widget_ops);
13
+ }
14
+
15
+ function widget($args, $instance) {
16
+ extract($args);
17
+ // widget content
18
+ echo $before_widget;
19
+ $title = isset($instance['title'])?$instance['title']:__('Featured Post Title','themehunk_customizer');
20
+ $fcate = isset($instance['fcate']) ? absint($instance['fcate']) : 0;
21
+ $lttitle = isset($instance['lttitle']) ? esc_attr($instance['lttitle']) : __('Latest Post Title','themehunk-customizer');
22
+ $ltcate = isset($instance['ltcate']) ? absint($instance['ltcate']) : 0;
23
+ $fcount = isset($instance['fcount']) ? absint($instance['fcount']) : 4;
24
+ $title_bg_color = isset($instance['title_bg_color'])? $instance['title_bg_color']:'#66cda9';
25
+ $title_txt_color = isset($instance['title_txt_color'])? $instance['title_txt_color']:'#fff';
26
+ $r_title_bg_color = isset($instance['r_title_bg_color'])? $instance['r_title_bg_color']:'#66cda9';
27
+ $r_title_txt_color = isset($instance['r_title_txt_color'])? $instance['r_title_txt_color']:'#fff';
28
+
29
+ $args = array(
30
+ 'order' => 'DESC',
31
+ 'ignore_sticky_posts' => 1,
32
+ 'post_type' => 'post',
33
+ 'meta_key' => '_thumbnail_id',
34
+ 'posts_per_page' => $fcount,
35
+ 'cat' => $fcate
36
+ );
37
+ $featured_posts = new WP_Query($args);
38
+
39
+ ?>
40
+ <section id="section_one">
41
+ <div class="inner_wrap">
42
+ <?php if ( $featured_posts->have_posts() ) { ?>
43
+ <div class="slider">
44
+ <div class="flexslider carousel">
45
+ <h3 class="section-title" style="background:<?php echo $title_bg_color;?>; color:<?php echo $title_txt_color;?>"><?php echo apply_filters('widget_title', $title ); ?></h3>
46
+ <ul class="slides">
47
+ <?php while ($featured_posts->have_posts()): $featured_posts->the_post();
48
+ if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
49
+ $imgurl = get_the_post_thumbnail_url($featured_posts->ID,'section-one-large');
50
+ ?>
51
+ <li class="slide" style="background:url('<?php echo $imgurl; ?>')">
52
+ <div class="slide-header">
53
+ <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
54
+ <div class="entry-meta">
55
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
56
+
57
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
58
+
59
+ </div>
60
+ <div class="slide-cat"><span class="cat-links">
61
+ <?php echo THunk_customizer_Cate(); ?>
62
+ </span></div>
63
+ </div>
64
+ </li>
65
+ <?php } endwhile; ?>
66
+ </ul>
67
+ </div>
68
+ </div>
69
+ <?php } wp_reset_postdata(); ?>
70
+ <?php
71
+ $args1 = array(
72
+ 'order' => 'DESC',
73
+ 'ignore_sticky_posts' => 1,
74
+ 'post_type' => 'post',
75
+ 'meta_key' => '_thumbnail_id',
76
+ 'posts_per_page' => 4,
77
+ 'cat' => $ltcate
78
+ );
79
+ $latest_posts = new WP_Query($args1);
80
+
81
+ if ( $latest_posts->have_posts() ) { ?>
82
+ <div class="slider_widgets">
83
+ <div class="slider_widgets_one">
84
+ <h3 class="title" style="background:<?php echo $r_title_bg_color;?>; color:<?php echo $r_title_txt_color;?>"><?php echo $lttitle; ?></h3>
85
+ <div class="feature-grid">
86
+ <?php while ($latest_posts->have_posts()): $latest_posts->the_post(); ?>
87
+ <div class="post-item one">
88
+ <div class="post-thumb">
89
+ <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
90
+ the_post_thumbnail( 'section-one-small' );
91
+ }
92
+ ?>
93
+ </div>
94
+ <div class="post-item-content">
95
+ <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
96
+ <div class="entry-meta">
97
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
98
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ <?php endwhile; ?>
103
+ </div>
104
+ </div>
105
+ </div>
106
+ <?php } wp_reset_postdata(); ?>
107
+
108
+ </div>
109
+ </section>
110
+ <?php
111
+ echo $after_widget;
112
+ }
113
+
114
+ function update($new_instance, $old_instance) {
115
+ $instance = $old_instance;
116
+ $instance['title'] = strip_tags( $new_instance['title'] );
117
+ $instance["fcate"] = absint($new_instance["fcate"]);
118
+ $instance['lttitle'] = strip_tags( $new_instance['lttitle'] );
119
+ $instance["ltcate"] = absint($new_instance["ltcate"]);
120
+ $instance["fcount"] = absint($new_instance["fcount"]);
121
+ $instance["title_bg_color"] = $new_instance["title_bg_color"];
122
+ $instance["title_txt_color"] = $new_instance["title_txt_color"];
123
+ $instance["r_title_bg_color"] = $new_instance["r_title_bg_color"];
124
+ $instance["r_title_txt_color"] = $new_instance["r_title_txt_color"];
125
+ return $instance;
126
+ }
127
+
128
+ function form($instance) {
129
+ $title = isset($instance['title']) ? esc_attr($instance['title']) : __('Featured Post Title','themehunk-customizer');
130
+ $fcate = isset($instance['fcate']) ? absint($instance['fcate']) : 0;
131
+ $lttitle = isset($instance['lttitle']) ? esc_attr($instance['lttitle']) : __('Latest Post Title','themehunk-customizer');
132
+ $ltcate = isset($instance['ltcate']) ? absint($instance['ltcate']) : 0;
133
+ $fcount = isset($instance['fcount']) ? absint($instance['fcount']) : 4;
134
+ $title_bg_color = isset($instance['title_bg_color']) ? $instance['title_bg_color'] :"#66cda9";
135
+ $title_txt_color = isset($instance['title_txt_color']) ? $instance['title_txt_color'] :"#fff";
136
+ $r_title_bg_color = isset($instance['r_title_bg_color']) ? $instance['r_title_bg_color'] :"#66cda9";
137
+ $r_title_txt_color = isset($instance['r_title_txt_color']) ? $instance['r_title_txt_color'] :"#fff";
138
+
139
+
140
+
141
+ $termarr = array('child_of' => 0);
142
+ $terms = get_terms('category' ,$termarr);
143
+ $foption = $ltoption = '';
144
+ foreach($terms as $cat) {
145
+ $term_id = $cat->term_id;
146
+ $selected1 = ($fcate==$term_id)?'selected':'';
147
+ $selected2 = ($ltcate==$term_id)?'selected':'';
148
+ $foption .= '<option value="'.$term_id.'" '.$selected1.'>'.$cat->name.'</option>';
149
+ $ltoption .= '<option value="'.$term_id.'" '.$selected2.'>'.$cat->name.'</option>';
150
+ }
151
+ ?>
152
+ <style>
153
+ .thunk-widget-title{
154
+ background: #d9e8e9;
155
+ padding: 6px;
156
+ text-align: center;
157
+ border-radius: 1px;
158
+ }
159
+ </style>
160
+ <div class="clearfix"></div>
161
+ <img src="<?php echo THEMEHUNK_CUSTOMIZER_STYLE1; ?>" />
162
+ <p class="thunk-widget-title">Left Column Slider Setting</p>
163
+ <p>
164
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Featured Post Title','themehunk-customizer'); ?></label>
165
+ <input name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" class="widefat" value="<?php echo $title; ?>" >
166
+ </p>
167
+ <p><label for="<?php echo $this->get_field_id('fcount'); ?>"><?php _e('Add Number Of Post To Show','elanzalite'); ?></label>
168
+ <input id="<?php echo $this->get_field_id('fcount'); ?>" name="<?php echo $this->get_field_name('fcount'); ?>" type="text" value="<?php echo $fcount; ?>" size="3" /></p>
169
+ <p>
170
+ <p>
171
+ <label for="<?php echo $this->get_field_id('fcate'); ?>"><?php _e('Choose Category To Show Post','themehunk-customizer'); ?></label>
172
+ <select name="<?php echo $this->get_field_name('fcate'); ?>" ><?php echo $foption; ?></select>
173
+ </p>
174
+ <p><label for="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" style="display:block;"><?php _e( 'Title Background Color:','themehunk-customizer' ); ?></label>
175
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" name="<?php echo $this->get_field_name( 'title_bg_color' ); ?>" type="text" value="<?php echo esc_attr( $title_bg_color ); ?>" />
176
+ </p>
177
+
178
+
179
+ <p>
180
+ <label for="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" style="display:block;"><?php _e( 'Text Color','themehunk-customizer' ); ?></label>
181
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" name="<?php echo $this->get_field_name( 'title_txt_color' ); ?>" type="text" value="<?php echo esc_attr( $title_txt_color); ?>" />
182
+ </p>
183
+ <div class='tchr'></div>
184
+ <p class="thunk-widget-title">Right Column Setting</p>
185
+ <p><label for="<?php echo $this->get_field_id('lttitle'); ?>"><?php _e('Latest Post Title','elanzalite'); ?></label>
186
+ <input id="<?php echo $this->get_field_id('lttitle'); ?>" name="<?php echo $this->get_field_name('lttitle'); ?>" type="text" value="<?php echo $lttitle; ?>" /></p>
187
+ <p>
188
+ <p>
189
+ <label for="<?php echo $this->get_field_id('ltcate'); ?>"><?php _e('Choose Category To Show Post','themehunk-customizer'); ?></label>
190
+ <select name="<?php echo $this->get_field_name('ltcate'); ?>" ><?php echo $ltoption; ?></select>
191
+ </p>
192
+ <p><label for="<?php echo $this->get_field_id( 'r_title_bg_color' ); ?>" style="display:block;"><?php _e( 'Title Background Color:','themehunk-customizer' ); ?></label>
193
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'r_title_bg_color' ); ?>" name="<?php echo $this->get_field_name( 'r_title_bg_color' ); ?>" type="text" value="<?php echo esc_attr( $r_title_bg_color ); ?>" />
194
+ </p>
195
+
196
+
197
+ <p>
198
+ <label for="<?php echo $this->get_field_id( 'r_title_txt_color' ); ?>" style="display:block;"><?php _e( 'Text Color','themehunk-customizer' ); ?></label>
199
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'r_title_txt_color' ); ?>" name="<?php echo $this->get_field_name( 'r_title_txt_color' ); ?>" type="text" value="<?php echo esc_attr( $r_title_txt_color); ?>" />
200
+ </p>
201
+
202
+ <?php
203
+ }
204
+ }
205
+ ?>
elanzalite/widget/section-three.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * Testimonial Widget
6
+ */
7
+ class themehunk_customizer_section_three extends WP_Widget {
8
+
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-section-three',
11
+ 'description' => 'Display post in left column along with description and other post in right column');
12
+ parent::__construct('themehunk-customizer-section-three', __('THunk : Post Style 3','themehunk_customizer'), $widget_ops);
13
+ }
14
+
15
+ function widget($args, $instance) {
16
+ extract($args);
17
+ // widget content
18
+ echo $before_widget;
19
+ $title = isset($instance['title'])?$instance['title']:__('Featured Post','themehunk_customizer');
20
+ $ofcate = isset($instance['ofcate']) ? absint($instance['ofcate']) : 0;
21
+ $ofcount = isset($instance['ofcount']) ? absint($instance['ofcount']) : 5;
22
+ $title_bg_color = isset($instance['title_bg_color'])? $instance['title_bg_color']:'#66cda9';
23
+ $title_txt_color = isset($instance['title_txt_color'])? $instance['title_txt_color']:'#fff';
24
+
25
+
26
+ $args = array(
27
+ 'order' => 'DESC',
28
+ 'orderby' =>'date',
29
+ 'ignore_sticky_posts' => 1,
30
+ 'post_type' => 'post',
31
+ // 'meta_key' => '_thumbnail_id',
32
+ 'posts_per_page' => $ofcount,
33
+ 'cat' => $ofcate
34
+ );
35
+ if($ofcate != true){
36
+ $args['orderby'] = 'rand';
37
+ }
38
+ $of_posts = new WP_Query($args);
39
+ $catelink = get_category_link( $ofcate );
40
+ ?>
41
+ <section id="section_three">
42
+ <div class="inner_wrap">
43
+ <?php if ( $of_posts->have_posts() ) { $count=1; ?>
44
+
45
+ <?php while($of_posts->have_posts()): $of_posts->the_post(); ?>
46
+ <?php if($count<=1){ ?>
47
+ <div class="col-one">
48
+ <h3 class="title" style="background:<?php echo $title_bg_color;?>; color:<?php echo $title_txt_color;?>"><?php echo $title; ?></h3>
49
+ <div class="post-item">
50
+ <div class="post-thumb"><a href="#">
51
+ <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
52
+ the_post_thumbnail( 'section-three-large' );
53
+ }
54
+ ?>
55
+ </a></div>
56
+ <div class="post-item-content">
57
+ <span class="cat-links">
58
+ <?php echo THunk_customizer_Cate(); ?>
59
+ </span>
60
+ <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
61
+ <div class="entry-meta">
62
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
63
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
64
+ </div>
65
+ <?php the_excerpt(); ?>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ <div class="col-two">
70
+ <?php if($ofcate): ?>
71
+ <h3 class="view"><a href="<?php echo esc_url($catelink); ?>"><?php _e('View All','themehunk-customizer'); ?></a></h3>
72
+ <?php endif; ?>
73
+ <?php } else{ ?>
74
+ <div class="post-item">
75
+ <div class="post-thumb">
76
+ <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
77
+ the_post_thumbnail( 'section-three-small' );
78
+ }
79
+ ?>
80
+ </div>
81
+ <div class="post-item-content">
82
+ <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
83
+ <div class="entry-meta">
84
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
85
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ <?php } $count++; ?>
90
+ <?php endwhile; } wp_reset_postdata(); ?>
91
+ </div> <!-- col-two -->
92
+ </div>
93
+ </section>
94
+ <?php
95
+ echo $after_widget;
96
+
97
+ }
98
+
99
+ function update($new_instance, $old_instance) {
100
+ $instance = $old_instance;
101
+ $instance['title'] = strip_tags( $new_instance['title'] );
102
+ $instance["ofcate"] = absint($new_instance["ofcate"]);
103
+ $instance['ofcount'] = strip_tags( $new_instance['ofcount'] );
104
+ $instance["title_bg_color"] = $new_instance["title_bg_color"];
105
+ $instance["title_txt_color"] = $new_instance["title_txt_color"];
106
+ return $instance;
107
+ }
108
+
109
+ function form($instance) {
110
+ $title = isset($instance['title']) ? esc_attr($instance['title']) : __('Featured Post','themehunk-customizer');
111
+ $ofcate = isset($instance['ofcate']) ? absint($instance['ofcate']) : 0;
112
+ $ofcount = isset($instance['ofcount']) ? absint($instance['ofcount']) : 5;
113
+ $title_bg_color = isset($instance['title_bg_color']) ? $instance['title_bg_color'] :"#66cda9";
114
+ $title_txt_color = isset($instance['title_txt_color']) ? $instance['title_txt_color'] :"#fff";
115
+
116
+
117
+ $termarr = array('child_of' => 0);
118
+ $terms = get_terms('category' ,$termarr);
119
+ $foption = '<option value="0">Random Post</option>';
120
+ foreach($terms as $cat) {
121
+ $term_id = $cat->term_id;
122
+ $selected1 = ($ofcate==$term_id)?'selected':'';
123
+ $foption .= '<option value="'.$term_id.'" '.$selected1.'>'.$cat->name.'</option>';
124
+ }
125
+ ?>
126
+ <div class="clearfix"></div>
127
+ <img src="<?php echo THEMEHUNK_CUSTOMIZER_STYLE3; ?>" />
128
+ <p>
129
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Featured Post Title','themehunk-customizer'); ?></label>
130
+ <input name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" class="widefat" value="<?php echo $title; ?>" >
131
+ </p>
132
+ <p><label for="<?php echo $this->get_field_id('ofcount'); ?>"><?php _e('Add Number Of Post To Show','elanzalite'); ?></label>
133
+ <input id="<?php echo $this->get_field_id('ofcount'); ?>" name="<?php echo $this->get_field_name('ofcount'); ?>" type="text" value="<?php echo $ofcount; ?>" size="3" /></p>
134
+ <p>
135
+ <p>
136
+ <label for="<?php echo $this->get_field_id('ofcate'); ?>"><?php _e('Select Specific Option To Display Post','themehunk-customizer'); ?></label>
137
+ <select name="<?php echo $this->get_field_name('ofcate'); ?>" ><?php echo $foption; ?></select>
138
+ </p>
139
+ <p><label for="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" style="display:block;"><?php _e( 'Title Background Color:','themehunk-customizer' ); ?></label>
140
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" name="<?php echo $this->get_field_name( 'title_bg_color' ); ?>" type="text" value="<?php echo esc_attr( $title_bg_color ); ?>" />
141
+ </p>
142
+ <p>
143
+ <label for="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" style="display:block;"><?php _e( 'Text Color','themehunk-customizer' ); ?></label>
144
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" name="<?php echo $this->get_field_name( 'title_txt_color' ); ?>" type="text" value="<?php echo esc_attr( $title_txt_color); ?>" />
145
+ </p>
146
+
147
+ <?php
148
+ }
149
+ }
150
+ ?>
elanzalite/widget/section-two.php ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * Testimonial Widget
6
+ */
7
+ class themehunk_customizer_section_two extends WP_Widget {
8
+
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-section-two',
11
+ 'description' => 'Display featured post slider');
12
+ parent::__construct('themehunk-customizer-section-two', __('THunk : Post Style 2','themehunk_customizer'), $widget_ops);
13
+ }
14
+
15
+ function widget($args, $instance) {
16
+ extract($args);
17
+ // widget content
18
+ echo $before_widget;
19
+ $title = isset($instance['title'])?$instance['title']:__('Top Stories','themehunk_customizer');
20
+ $cate = isset($instance['cate']) ? absint($instance['cate']) : 0;
21
+ $count = isset($instance['count']) ? absint($instance['count']) : 4;
22
+ $title_bg_color = isset($instance['title_bg_color'])? $instance['title_bg_color']:'#66cda9';
23
+ $title_txt_color = isset($instance['title_txt_color'])? $instance['title_txt_color']:'#fff';
24
+
25
+ $args = array(
26
+ 'order' => 'DESC',
27
+ 'ignore_sticky_posts' => 1,
28
+ 'post_type' => 'post',
29
+ 'meta_key' => '_thumbnail_id',
30
+ 'posts_per_page' => $count,
31
+ 'cat' => $cate
32
+ );
33
+ $query_posts = new WP_Query($args);
34
+
35
+ ?>
36
+ <section id="section_two">
37
+ <div class="inner_wrap">
38
+ <div class="post_slide">
39
+ <h3 class="title" style="background:<?php echo $title_bg_color;?>; color:<?php echo $title_txt_color;?>"><?php echo apply_filters('widget_title', $title ); ?></h3>
40
+ <?php if ( $query_posts->have_posts() ) { ?>
41
+
42
+ <div class="owl-carousel owl-theme">
43
+ <?php while ($query_posts->have_posts()): $query_posts->the_post();
44
+ ?>
45
+ <div class="item">
46
+ <div class="post-item">
47
+ <div class="post-thumb">
48
+ <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
49
+ the_post_thumbnail('section-two-small');
50
+ }
51
+ ?>
52
+ </div>
53
+ <div class="post-item-content">
54
+ <h3 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
55
+ <div class="entry-meta">
56
+ <span class="entry-date"><?php the_time( get_option('date_format') ); ?></span>
57
+ <span class="comments-link"><?php THunk_Customizer_Comment(); ?></span>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ <?php endwhile; ?>
63
+
64
+ <?php } wp_reset_postdata(); ?>
65
+
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </section>
70
+ <?php
71
+ echo $after_widget;
72
+
73
+ }
74
+
75
+ function update($new_instance, $old_instance) {
76
+ $instance = $old_instance;
77
+ $instance['title'] = strip_tags( $new_instance['title'] );
78
+ $instance["cate"] = absint($new_instance["cate"]);
79
+ $instance["count"] = absint($new_instance["count"]);
80
+ $instance["title_bg_color"] = $new_instance["title_bg_color"];
81
+ $instance["title_txt_color"] = $new_instance["title_txt_color"];
82
+ return $instance;
83
+ }
84
+
85
+ function form($instance) {
86
+ $title = isset($instance['title']) ? esc_attr($instance['title']) : __('Top Stories','themehunk-customizer');
87
+ $cate = isset($instance['cate']) ? absint($instance['cate']) : 0;
88
+ $count = isset($instance['count']) ? absint($instance['count']) : 4;
89
+ $title_bg_color = isset($instance['title_bg_color']) ? $instance['title_bg_color'] :"#66cda9";
90
+ $title_txt_color = isset($instance['title_txt_color']) ? $instance['title_txt_color'] :"#fff";
91
+
92
+
93
+ $termarr = array('child_of' => 0);
94
+ $terms = get_terms('category' ,$termarr);
95
+ $foption = $ltoption = '';
96
+ foreach($terms as $cat) {
97
+ $term_id = $cat->term_id;
98
+ $selected1 = ($cate==$term_id)?'selected':'';
99
+ $foption .= '<option value="'.$term_id.'" '.$selected1.'>'.$cat->name.'</option>';
100
+ }
101
+ ?>
102
+ <div class="clearfix"></div>
103
+ <img src="<?php echo THEMEHUNK_CUSTOMIZER_STYLE2; ?>" />
104
+ <p>
105
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Featured Post Title','themehunk-customizer'); ?></label>
106
+ <input name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" class="widefat" value="<?php echo $title; ?>" >
107
+ </p>
108
+ <p><label for="<?php echo $this->get_field_id('count'); ?>"><?php _e('Add Number Of Post To Show','elanzalite'); ?></label>
109
+ <input id="<?php echo $this->get_field_id('count'); ?>" name="<?php echo $this->get_field_name('count'); ?>" type="text" value="<?php echo $count; ?>" size="3" /></p>
110
+ <p>
111
+ <p>
112
+ <label for="<?php echo $this->get_field_id('cate'); ?>"><?php _e('Choose Category To Show Post','themehunk-customizer'); ?></label>
113
+ <select name="<?php echo $this->get_field_name('cate'); ?>" ><?php echo $foption; ?></select>
114
+ </p>
115
+
116
+ <p><label for="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" style="display:block;"><?php _e( 'Title Background Color:','themehunk-customizer' ); ?></label>
117
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_bg_color' ); ?>" name="<?php echo $this->get_field_name( 'title_bg_color' ); ?>" type="text" value="<?php echo esc_attr( $title_bg_color ); ?>" />
118
+ </p>
119
+ <p>
120
+ <label for="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" style="display:block;"><?php _e( 'Text Color','themehunk-customizer' ); ?></label>
121
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'title_txt_color' ); ?>" name="<?php echo $this->get_field_name( 'title_txt_color' ); ?>" type="text" value="<?php echo esc_attr( $title_txt_color); ?>" />
122
+ </p>
123
+ <?php
124
+ }
125
+ }
126
+ ?>
elanzalite/widget/social-widget.php ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+ /**
4
+ * social Widget
5
+ * This widget shows social icon
6
+ */
7
+ class Socialth extends WP_Widget {
8
+ /** constructor */
9
+ function __construct() {
10
+ $widget_ops = array(
11
+ 'classname' => 'socialth_widget',
12
+ 'description' => 'Display Social Icon in Sidebar'
13
+ );
14
+ parent::__construct('advanced-social-widget', __('THunk : Social-Widget','themehunk_customizer'), $widget_ops);
15
+ }
16
+
17
+ function widget($args, $instance) {
18
+ extract($args);
19
+ // widget content
20
+ echo $before_widget;
21
+ $title = isset($instance['title'])?$instance['title']:'Latest Theme';
22
+
23
+ $icon_one_link = isset($instance['icon_one_link'])?$instance['icon_one_link']:'#';
24
+
25
+ $icon_second_link = isset($instance['icon_second_link'])?$instance['icon_second_link']:'';
26
+
27
+ $icon_third_link = isset($instance['icon_third_link'])?$instance['icon_third_link']:'';
28
+
29
+ $icon_four_link = isset($instance['icon_four_link'])?$instance['icon_four_link']:'';
30
+
31
+ $icon_five_link = isset($instance['icon_five_link'])?$instance['icon_five_link']:'';
32
+
33
+ $icon_six_link = isset($instance['icon_six_link'])?$instance['icon_six_link']:'';
34
+
35
+ ?>
36
+ <!--Start view section-->
37
+ <h4 class="widgettitle">
38
+ <?php echo apply_filters('widget_title',$title); ?>
39
+ </h4>
40
+ <div class="th-social">
41
+ <!--START SOCIAL ICON-->
42
+ <ul class="latest-social">
43
+ <?php if($icon_one_link!=='') {?>
44
+ <li><a target="_blank" href="<?php echo $icon_one_link ?>">
45
+ <i class="fa fa-facebook" aria-hidden="true"></i></a></li>
46
+ <?php } ?>
47
+ <?php if($icon_second_link!=='') {?>
48
+ <li><a target="_blank" href="<?php echo $icon_second_link ?>">
49
+ <i class="fa fa-google-plus" aria-hidden="true"></i></a></li>
50
+ <?php } ?>
51
+ <?php if($icon_third_link!=='') {?>
52
+ <li><a target="_blank" href="<?php echo $icon_third_link ?>">
53
+ <i class="fa fa-twitter" aria-hidden="true"></i></a></li>
54
+ <?php } ?>
55
+ <?php if($icon_four_link!=='') {?>
56
+ <li><a target="_blank" href="<?php echo $icon_four_link ?>">
57
+ <i class="fa fa-pinterest" aria-hidden="true"></i></a></li>
58
+ <?php } ?>
59
+ <?php if($icon_five_link!=='') {?>
60
+ <li><a target="_blank" href="<?php echo $icon_five_link ?>">
61
+ <i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
62
+ <?php } ?>
63
+ <?php if($icon_six_link!=='') {?>
64
+ <li><a target="_blank" href="<?php echo $icon_six_link ?>">
65
+ <i class="fa fa-youtube-play" aria-hidden="true"></i></a></li>
66
+ <?php } ?>
67
+ </ul>
68
+ </div>
69
+
70
+ <?php
71
+ echo $after_widget;
72
+
73
+ }
74
+
75
+ function update($new_instance, $old_instance) {
76
+ $instance = $old_instance;
77
+ $instance['title'] = strip_tags($new_instance['title']);
78
+ $instance['icon_one_link'] = $new_instance['icon_one_link'];
79
+ $instance['icon_second_link'] = $new_instance['icon_second_link'];
80
+ $instance['icon_third_link'] = $new_instance['icon_third_link'];
81
+ $instance['icon_four_link'] = $new_instance['icon_four_link'];
82
+ $instance['icon_five_link'] = $new_instance['icon_five_link'];
83
+ $instance['icon_six_link'] = $new_instance['icon_six_link'];
84
+ return $instance;
85
+ }
86
+
87
+ function form($instance) {
88
+ if( $instance){
89
+ $title = isset($instance['title']) ? esc_attr($instance['title']) :'Title';
90
+ $icon_one_link= $instance['icon_one_link'];
91
+ $icon_second_link = $instance['icon_second_link'];
92
+ $icon_third_link= $instance['icon_third_link'];
93
+ $icon_four_link= $instance['icon_four_link'];
94
+ $icon_five_link= $instance['icon_five_link'];
95
+ $icon_six_link= $instance['icon_six_link'];
96
+ }
97
+ else{
98
+ $title = 'Title';
99
+ $icon_one_link= '#';
100
+ $icon_second_link = '';
101
+ $icon_third_link= '';
102
+ $icon_four_link= '';
103
+ $icon_five_link= '';
104
+ $icon_six_link= '';
105
+ }
106
+ ?>
107
+ <p><label for="<?php echo $this->get_field_id('title'); ?>">
108
+ <?php _e('Title','themehunk_customizer'); ?></label>
109
+ <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></p>
110
+ <p><label for="<?php echo $this->get_field_id('icon_one_link'); ?>"><?php _e('Facebook URL','themehunk_customizer'); ?></label>
111
+ <input class="widefat" id="<?php echo $this->get_field_id('icon_one_link'); ?>" name="<?php echo $this->get_field_name('icon_one_link'); ?>" type="text" value="<?php echo $icon_one_link; ?>" />
112
+ </p>
113
+ <!-- II -->
114
+ <p><label for="<?php echo $this->get_field_id('icon_second_link'); ?>"><?php _e('Google URL','themehunk_customizer'); ?></label>
115
+ <input class="widefat" id="<?php echo $this->get_field_id('icon_second_link'); ?>" name="<?php echo $this->get_field_name('icon_second_link'); ?>" type="text" value="<?php echo $icon_second_link; ?>" />
116
+ </p>
117
+ <!-- III -->
118
+ <p><label for="<?php echo $this->get_field_id('icon_second_link'); ?>"><?php _e('Twitter URL','themehunk_customizer'); ?></label>
119
+ <input class="widefat" id="<?php echo $this->get_field_id('icon_third_link'); ?>" name="<?php echo $this->get_field_name('icon_third_link'); ?>" type="text" value="<?php echo $icon_third_link; ?>" />
120
+ </p>
121
+ <!-- four -->
122
+ <p><label for="<?php echo $this->get_field_id('icon_four_link'); ?>"><?php _e('Pinterest URL','themehunk_customizer'); ?></label>
123
+ <input class="widefat" id="<?php echo $this->get_field_id('icon_four_link'); ?>" name="<?php echo $this->get_field_name('icon_four_link'); ?>" type="text" value="<?php echo $icon_four_link; ?>" />
124
+ </p>
125
+ <!-- FIVE -->
126
+ <p><label for="<?php echo $this->get_field_id('icon_five_link'); ?>"><?php _e('Linkedin URL','themehunk_customizer'); ?></label>
127
+ <input class="widefat" id="<?php echo $this->get_field_id('icon_five_link'); ?>" name="<?php echo $this->get_field_name('icon_five_link'); ?>" type="text" value="<?php echo $icon_five_link; ?>" />
128
+ </p>
129
+ <!-- SIX -->
130
+ <p><label for="<?php echo $this->get_field_id('icon_six_link'); ?>"><?php _e('Youtube URL','themehunk_customizer'); ?></label>
131
+ <input class="widefat" id="<?php echo $this->get_field_id('icon_six_link'); ?>" name="<?php echo $this->get_field_name('icon_six_link'); ?>" type="text" value="<?php echo $icon_six_link; ?>" />
132
+ </p>
133
+ <?php
134
+ }
135
+ }
136
+
137
+ ?>
featuredlite/customizer/custom-customizer.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Add controls for arbitrary heading, description, line
5
+ *
6
+ * @package Customizer_Library
7
+ * @author Devin Price
8
+ */
9
+ if ( ! function_exists( 'featuredlite_registers_js' ) ):
10
+ function featuredlite_registers_js(){
11
+ wp_enqueue_script( 'featuredlite_th_customizer_script', THEMEHUNK_CUSTOMIZER_PLUGIN_URL .'/featuredlite/customizer/js/customizer.js', array("jquery"), '', true );
12
+ }
13
+ add_action( 'customize_controls_enqueue_scripts', 'featuredlite_registers_js' );
14
+ endif;
15
+
16
+ if ( ! function_exists( 'featuredlite_customizer_styles' ) ) :
17
+ function featuredlite_customizer_styles() {
18
+ wp_enqueue_style('featuredlite_th_customizer_styles', THEMEHUNK_CUSTOMIZER_PLUGIN_URL .'/featuredlite/customizer/customizer_styles.css');
19
+ }
20
+ add_action('customize_controls_print_styles', 'featuredlite_customizer_styles');
21
+ endif;
featuredlite/customizer/customizer.php ADDED
@@ -0,0 +1,2263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // =============================
3
+ // = Default Theme Customizer Settings =
4
+ function thunk_customize_register( $wp_customize ) {
5
+ $palette = array('rgb(0, 0, 0, 0)',);
6
+ //=============================
7
+ //= Theme option =
8
+ //=============================
9
+ $wp_customize->add_panel( 'theme_optn', array(
10
+ 'priority' => 3,
11
+ 'capability' => 'edit_theme_options',
12
+ 'theme_supports' => '',
13
+ 'title' => __('Theme Option', 'featuredlite'),
14
+ 'description' => '',
15
+ ) );
16
+ $wp_customize->add_section('global_set', array(
17
+ 'title' => __('Global Setting', 'featuredlite'),
18
+ 'priority' => 1,
19
+ 'panel' => 'theme_optn',
20
+ ));
21
+ // Sidebar settings
22
+ $wp_customize->add_setting( 'featuredlite_layout',
23
+ array(
24
+ 'sanitize_callback' => 'sanitize_text_field',
25
+ 'default' => 'right',
26
+
27
+ )
28
+ );
29
+ $wp_customize->add_control( 'featuredlite_layout',
30
+ array(
31
+ 'type' => 'select',
32
+ 'label' => esc_html__('Site Layout', 'featuredlite'),
33
+ 'description' => esc_html__('Site layout is applied for all page templates', 'featuredlite'),
34
+ 'section' => 'global_set',
35
+ 'choices' => array(
36
+ 'right' => esc_html__('Right sidebar', 'featuredlite'),
37
+ 'left' => esc_html__('Left sidebar', 'featuredlite'),
38
+ 'no-sidebar' => esc_html__('No sidebar', 'featuredlite'),
39
+ )
40
+ )
41
+ );
42
+ // Disable Sticky Header
43
+ $wp_customize->add_setting( 'featuredlite_sticky_header_disable',
44
+ array(
45
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
46
+ 'default' => '',
47
+ )
48
+ );
49
+ $wp_customize->add_control( 'featuredlite_sticky_header_disable',
50
+ array(
51
+ 'type' => 'checkbox',
52
+ 'label' => esc_html__('Disable Fixed Header?', 'featuredlite'),
53
+ 'section' => 'global_set',
54
+ 'description' => esc_html__('Check here to disable Fixed header and activate Normal header.', 'featuredlite')
55
+ )
56
+ );
57
+ // Disable Animation
58
+ $wp_customize->add_setting( 'featuredlite_animation_disable',
59
+ array(
60
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
61
+ 'default' => '',
62
+ )
63
+ );
64
+ $wp_customize->add_control( 'featuredlite_animation_disable',
65
+ array(
66
+ 'type' => 'checkbox',
67
+ 'label' => esc_html__('Disable animation effect?', 'featuredlite'),
68
+ 'section' => 'global_set',
69
+ 'description' => esc_html__('Check here to disable homepage section animation.', 'featuredlite')
70
+ )
71
+ );
72
+ // Disable back to top button
73
+ $wp_customize->add_setting( 'featuredlite_backtotop_disable',
74
+ array(
75
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
76
+ 'default' => '',
77
+ )
78
+ );
79
+ $wp_customize->add_control( 'featuredlite_backtotop_disable',
80
+ array(
81
+ 'type' => 'checkbox',
82
+ 'label' => esc_html__('Hide back to top button ?', 'featuredlite'),
83
+ 'section' => 'global_set',
84
+ 'description' => esc_html__('Check here to disable Back To Top button.', 'featuredlite')
85
+ )
86
+ );
87
+ // site-color
88
+ $wp_customize->add_section('site_color', array(
89
+ 'title' => __('Site Color', 'featuredlite'),
90
+ 'priority' => 2,
91
+ 'panel' => 'theme_optn',
92
+ ));
93
+ $wp_customize->add_setting('theme_color', array(
94
+ 'default' => '#f16c20',
95
+ 'capability' => 'edit_theme_options',
96
+
97
+ ));
98
+ $wp_customize->add_control(
99
+ new WP_Customize_Color_Control(
100
+ $wp_customize,
101
+ 'theme_color',
102
+ array(
103
+ 'label' => __( 'Theme Color', 'featuredlite' ),
104
+ 'section' => 'site_color',
105
+ 'settings' => 'theme_color',
106
+ ) ) );
107
+ // footer-bg-color
108
+ $wp_customize->add_setting('footer_bg_color', array(
109
+ 'default' => '#f8f8f8',
110
+ 'capability' => 'edit_theme_options',
111
+
112
+
113
+ ));
114
+ $wp_customize->add_control(
115
+ new WP_Customize_Color_Control(
116
+ $wp_customize,
117
+ 'footer_bg_color',
118
+ array(
119
+ 'label' => __('Footer Background Color', 'featuredlite' ),
120
+ 'section' => 'site_color',
121
+ 'settings' => 'footer_bg_color',
122
+ ) ) );
123
+ // footer-info-color
124
+ $wp_customize->add_setting('footer_info_bg_color', array(
125
+ 'default' => '#fff',
126
+ 'capability' => 'edit_theme_options',
127
+
128
+
129
+ ));
130
+ $wp_customize->add_control(
131
+ new WP_Customize_Color_Control(
132
+ $wp_customize,
133
+ 'footer_info_bg_color',
134
+ array(
135
+ 'label' => __( 'Copyright Background Color', 'featuredlite' ),
136
+ 'section' => 'site_color',
137
+ 'settings' => 'footer_info_bg_color',
138
+ ) ) );
139
+ // =============================
140
+ // header option =
141
+ // =============================
142
+ // header-setting
143
+ $wp_customize->add_section('header_setting', array(
144
+ 'title' => __('Header Setting', 'featuredlite'),
145
+ 'priority' => 3,
146
+ 'panel' => 'theme_optn',
147
+ ));
148
+ // header layout option
149
+ $wp_customize->add_setting('header_layout', array(
150
+ 'default' =>'default',
151
+ 'capability' => 'edit_theme_options',
152
+ 'sanitize_callback' => 'sanitize_text_field'
153
+ ));
154
+
155
+ $wp_customize->add_control( 'header_layout', array(
156
+ 'settings' => 'header_layout',
157
+ 'label' => __('Header Layout Option','featuredlite'),
158
+ 'section' => 'header_setting',
159
+ 'type' => 'radio',
160
+ 'choices' => array(
161
+ 'default' => 'Default Menu',
162
+ 'center' => 'Center Menu',
163
+ 'split' => 'Split Menu',
164
+ ),
165
+ ));
166
+ //header transparent
167
+ $wp_customize->add_setting( 'hdr_bg_trnsparent_active',
168
+ array(
169
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
170
+ 'default' => '1',
171
+ )
172
+ );
173
+ $wp_customize->add_control( 'hdr_bg_trnsparent_active',
174
+ array(
175
+ 'type' => 'checkbox',
176
+ 'label' => esc_html__('Header Transparent', 'featuredlite'),
177
+ 'section' => 'header_setting',
178
+ 'description' => esc_html__('(Only applied for front page template.)', 'featuredlite')
179
+ )
180
+ );
181
+ //header transparent
182
+ $wp_customize->add_setting( 'last_menu_btn',
183
+ array(
184
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
185
+ 'default' => '',
186
+ )
187
+ );
188
+ $wp_customize->add_control( 'last_menu_btn',
189
+ array(
190
+ 'type' => 'checkbox',
191
+ 'label' => esc_html__('Custom Button', 'featuredlite'),
192
+ 'description' => esc_html__('(Check here to style last Menu Item as a Custom Button)', 'featuredlite'),
193
+ 'section' => 'header_setting',
194
+
195
+ )
196
+ );
197
+ // background-color
198
+ $wp_customize->add_setting('hd_bg_color',
199
+ array(
200
+ 'default' => '',
201
+ 'type' => 'theme_mod',
202
+ 'capability' => 'edit_theme_options',
203
+
204
+ ) );
205
+
206
+ $wp_customize->add_control(
207
+ new Customize_themehunk_Color_Control($wp_customize,
208
+ 'hd_bg_color',
209
+ array(
210
+ 'label' => __('Header Background Color','featuredlite'),
211
+ 'section' => 'header_setting',
212
+ 'settings' => 'hd_bg_color',
213
+ 'palette' => $palette
214
+ )
215
+ )
216
+ );
217
+ // shrink header bg
218
+ $wp_customize->add_setting('shrnk_hd_bg_color',
219
+ array(
220
+ 'default' => '#222',
221
+ 'type' => 'theme_mod',
222
+ 'capability' => 'edit_theme_options',
223
+
224
+ ) );
225
+
226
+ $wp_customize->add_control(
227
+ new Customize_themehunk_Color_Control($wp_customize,
228
+ 'shrnk_hd_bg_color',
229
+ array(
230
+ 'label' => __('Header Shrink Background Color','featuredlite'),
231
+ 'section' => 'header_setting',
232
+ 'settings' => 'shrnk_hd_bg_color',
233
+ 'palette' => $palette
234
+ )
235
+ )
236
+ );
237
+ // title
238
+ $wp_customize->add_setting('site_title_color', array(
239
+ 'default' => '#fff',
240
+ 'capability' => 'edit_theme_options',
241
+
242
+ ));
243
+ $wp_customize->add_control(
244
+ new WP_Customize_Color_Control(
245
+ $wp_customize,
246
+ 'site_title_color',
247
+ array(
248
+ 'label' => __('Site Title Color','featuredlite'),
249
+ 'section' => 'header_setting',
250
+ 'settings' => 'site_title_color',
251
+ ) ) );
252
+ // menu
253
+ $wp_customize->add_setting('hd_menu_color', array(
254
+ 'default' => '#fff',
255
+ 'capability' => 'edit_theme_options',
256
+ ));
257
+ $wp_customize->add_control(
258
+ new WP_Customize_Color_Control(
259
+ $wp_customize,
260
+ 'hd_menu_color',
261
+ array(
262
+ 'label' => __('Menu Link Color','featuredlite'),
263
+ 'section' => 'header_setting',
264
+ 'settings' => 'hd_menu_color',
265
+ ) ) );
266
+ // hover
267
+ $wp_customize->add_setting('hd_menu_hvr_color', array(
268
+ 'default' => '#f16c20',
269
+ 'capability' => 'edit_theme_options',
270
+ ));
271
+ $wp_customize->add_control(
272
+ new WP_Customize_Color_Control(
273
+ $wp_customize,
274
+ 'hd_menu_hvr_color',
275
+ array(
276
+ 'label' => __('Menu Link Hover/Active Color','featuredlite'),
277
+ 'section' => 'header_setting',
278
+ 'settings' => 'hd_menu_hvr_color',
279
+ ) ) );
280
+
281
+ // responsive menu button color
282
+ $wp_customize->add_setting('mobile_menu_bg_color', array(
283
+ 'default' => '#fff',
284
+ 'capability' => 'edit_theme_options',
285
+
286
+
287
+ ));
288
+ $wp_customize->add_control(
289
+ new WP_Customize_Color_Control(
290
+ $wp_customize,
291
+ 'mobile_menu_bg_color',
292
+ array(
293
+ 'label' => __('Responsive Menu Color','featuredlite'),
294
+ 'section' => 'header_setting',
295
+ 'settings' => 'mobile_menu_bg_color',
296
+ ) ) );
297
+ // =============================
298
+ // Social Icon Section =
299
+ // =============================
300
+
301
+ $wp_customize->add_section( 'social_icon_section', array(
302
+ 'title' => __( 'Social Icon', 'featuredlite' ),
303
+ 'priority' => 6,
304
+ 'panel' => 'theme_optn',
305
+ ) );
306
+
307
+ $wp_customize->add_setting('f_link', array(
308
+ 'default' => '',
309
+ 'capability' => 'edit_theme_options',
310
+ 'sanitize_callback' => 'esc_url_raw'
311
+ ));
312
+ $wp_customize->add_control('f_link', array(
313
+ 'label' => __('Facebook URL', 'featuredlite'),
314
+ 'section' => 'social_icon_section',
315
+ 'settings' => 'f_link',
316
+ 'type' => 'text',
317
+ ));
318
+
319
+ $wp_customize->add_setting('t_link', array(
320
+ 'capability' => 'edit_theme_options',
321
+ 'sanitize_callback' => 'esc_url_raw'
322
+ ));
323
+ $wp_customize->add_control('t_link', array(
324
+ 'label' => __('Twitter URL', 'featuredlite'),
325
+ 'section' => 'social_icon_section',
326
+ 'settings' => 't_link',
327
+ 'type' => 'text',
328
+ ));
329
+
330
+ $wp_customize->add_setting('p_link', array(
331
+ 'capability' => 'edit_theme_options',
332
+ 'sanitize_callback' => 'esc_url_raw'
333
+ ));
334
+ $wp_customize->add_control('p_link', array(
335
+ 'label' => __('Pintrest URL', 'featuredlite'),
336
+ 'section' => 'social_icon_section',
337
+ 'settings' => 'p_link',
338
+ 'type' => 'text',
339
+ ));
340
+
341
+ $wp_customize->add_setting('y_link', array(
342
+ 'capability' => 'edit_theme_options',
343
+ 'sanitize_callback' => 'esc_url_raw'
344
+ ));
345
+ $wp_customize->add_control('y_link', array(
346
+ 'label' => __('Youtube URL', 'featuredlite'),
347
+ 'section' => 'social_icon_section',
348
+ 'settings' => 'y_link',
349
+ 'type' => 'text',
350
+ ));
351
+
352
+ $wp_customize->add_setting('i_link', array(
353
+ 'capability' => 'edit_theme_options',
354
+ 'sanitize_callback' => 'esc_url_raw'
355
+ ));
356
+ $wp_customize->add_control('i_link', array(
357
+ 'label' => __('Instagram URL', 'featuredlite'),
358
+ 'section' => 'social_icon_section',
359
+ 'settings' => 'i_link',
360
+ 'type' => 'text',
361
+ ));
362
+
363
+ $wp_customize->add_setting('s_link', array(
364
+ 'capability' => 'edit_theme_options',
365
+ 'sanitize_callback' => 'esc_url_raw'
366
+ ));
367
+ $wp_customize->add_control('s_link', array(
368
+ 'label' => __('Skype URL', 'featuredlite'),
369
+ 'section' => 'social_icon_section',
370
+ 'settings' => 's_link',
371
+ 'type' => 'text',
372
+ ));
373
+
374
+
375
+ $wp_customize->add_setting('l_link', array(
376
+ 'capability' => 'edit_theme_options',
377
+ 'sanitize_callback' => 'esc_url_raw'
378
+ ));
379
+ $wp_customize->add_control('l_link', array(
380
+ 'label' => __('LinkedIn URL', 'featuredlite'),
381
+ 'section' => 'social_icon_section',
382
+ 'settings' => 'l_link',
383
+ 'type' => 'text',
384
+ ));
385
+ //============================
386
+ // section ordering
387
+ //============================
388
+ $wp_customize->add_section('section_hide', array(
389
+ 'title' => __('Section On/Off', 'featuredlite'),
390
+ 'priority' => 3,
391
+ ));
392
+ $wp_customize->add_setting('section_on_off', array(
393
+ 'default' =>array(),
394
+ 'capability' => 'edit_theme_options',
395
+ 'sanitize_callback' => 'themehunk_checkbox_explode'
396
+ ));
397
+ $wp_customize->add_control(new themehunk_Customize_Control_Checkbox_Multiple(
398
+ $wp_customize,'section_on_off', array(
399
+ 'settings' => 'section_on_off',
400
+ 'label' => __( 'Section On/Off', 'featuredlite' ),
401
+ 'description' => __( '(check to Hide section from frontpage)','featuredlite' ),
402
+ 'section' => 'section_hide',
403
+ 'choices' => array(
404
+ 'ribbon' => __( '1 Ribbon Section','featuredlite' ),
405
+ 'services' => __( '2 Service Section','featuredlite' ),
406
+ 'aboutus' => __( '3 About Us Section', 'featuredlite' ),
407
+ 'bottom-ribbon' => __( '4 Bottom Ribbon Section ','featuredlite' ),
408
+ 'blogslider' => __( '5 Blog Section Section','featuredlite' ),
409
+ 'testimonial'=> __( '6 Testimonial Section','featuredlite' ),
410
+ 'team' => __( '7 Team Section','featuredlite' ),
411
+ 'woocommerce'=> __( '8 woocommerce Section','featuredlite' ),
412
+ 'contact' => __( '9 Contact Section','featured' ),
413
+
414
+ )
415
+ )
416
+ )
417
+ );
418
+ //===============================
419
+ // = section ordering pro feature Settings =
420
+ // =============================
421
+ $wp_customize->add_section('section_home_ordering', array(
422
+ 'title' => __('Section Ordering', 'featuredlite'),
423
+ 'priority' => 3,
424
+ ));
425
+ $wp_customize->add_setting('section_order', array(
426
+ 'sanitize_callback' => 'themehunk_sanitize_text',
427
+ ));
428
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'section_order',
429
+ array(
430
+ 'section' => 'section_home_ordering',
431
+ 'type' => 'custom_message',
432
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//www.themehunk.com/product/featured/">FeaturedPro</a> for full control over <strong>section ordering</strong>!','featuredlite' )
433
+ )));
434
+ // =============================//
435
+ // S1 = parallax sections =
436
+ // =============================//
437
+
438
+ // parallax image and video
439
+ $wp_customize->add_section('parallax_panel', array(
440
+ 'title' => __('Background Option', 'featuredlite'),
441
+ 'priority' => 3,
442
+ ));
443
+
444
+ $wp_customize->add_setting('parallax_image_video', array(
445
+ 'default' => 'image',
446
+ 'capability' => 'edit_theme_options',
447
+ 'sanitize_callback' => 'esc_attr',
448
+ ));
449
+ $wp_customize->add_control('parallax_image_video', array(
450
+ 'label' => __('Background Option', 'featuredlite'),
451
+ 'section' => 'parallax_panel',
452
+ 'settings' => 'parallax_image_video',
453
+ 'type' => 'radio',
454
+ 'choices' => array(
455
+ // 'video' => __('Video Background Active','featuredlite'),
456
+ 'image' => __('Check to activate background image','featuredlite'),
457
+ 'slider' => __('Check to activate background slider','featuredlite'),
458
+ ),
459
+ ));
460
+
461
+ // START BACKGROUND SLIDER IMAGE
462
+ //slider speed
463
+ $wp_customize->add_setting('featured_slider_speed', array(
464
+ 'default' => 3000,
465
+ 'capability' => 'edit_theme_options',
466
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_int'
467
+ ));
468
+ $wp_customize->add_control('featured_slider_speed', array(
469
+ 'label' => __('Slider Speed Options', 'featuredlite'),
470
+ 'description'=> __('(Increase or decrease the value in multiple of thousand to change slide speed. For example 3000 equals to 3 second. )', 'featuredlite'),
471
+ 'section' => 'parallax_panel',
472
+ 'settings' => 'featured_slider_speed',
473
+ 'type' => 'text',
474
+
475
+ ));
476
+ //first slider image
477
+ $wp_customize->add_setting('first_slider_image', array(
478
+ 'default' => '',
479
+ 'capability' => 'edit_theme_options',
480
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
481
+ ));
482
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'first_slider_image', array(
483
+ 'label' => __('First Image Upload', 'featuredlite'),
484
+ 'section' => 'parallax_panel',
485
+ 'settings' => 'first_slider_image',
486
+ )));
487
+ //Second slider image
488
+ $wp_customize->add_setting('second_slider_image', array(
489
+ 'default' => '',
490
+ 'capability' => 'edit_theme_options',
491
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
492
+ ));
493
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'second_slider_image', array(
494
+ 'label' => __('Second Image Upload', 'featuredlite'),
495
+ 'section' => 'parallax_panel',
496
+ 'settings' => 'second_slider_image',
497
+ )));
498
+ //Third slider image
499
+ $wp_customize->add_setting('third_slider_image', array(
500
+ 'default' => '',
501
+ 'capability' => 'edit_theme_options',
502
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
503
+ ));
504
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'third_slider_image', array(
505
+ 'label' => __('Third Image Upload', 'featuredlite'),
506
+ 'section' => 'parallax_panel',
507
+ 'settings' => 'third_slider_image',
508
+ )));
509
+ $wp_customize->add_setting('for_more_slide', array(
510
+ 'sanitize_callback' => 'themehunk_sanitize_text',
511
+ ));
512
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'for_more_slide',
513
+ array(
514
+ 'section' => 'parallax_panel',
515
+ 'type' => 'custom_message',
516
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//www.themehunk.com/product/featured/">FeaturedPro</a> for multiple slides with advance settings!','featuredlite' )
517
+ )));
518
+ //END BACKGROUND SLIDER IMAGE
519
+ $wp_customize->add_setting('parallax_image_upload', array(
520
+ 'default' => get_template_directory_uri().'/images/bg.jpg',
521
+ 'capability' => 'edit_theme_options',
522
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
523
+ ));
524
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'parallax_image_upload', array(
525
+ 'label' => __('Background Image Upload', 'featuredlite'),
526
+ 'section' => 'parallax_panel',
527
+ 'settings' => 'parallax_image_upload',
528
+ )));
529
+ // pro-feature-video-add
530
+ $wp_customize->add_setting('for_video_add', array(
531
+ 'sanitize_callback' => 'themehunk_sanitize_text',
532
+ ));
533
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'for_video_add',
534
+ array(
535
+ 'section' => 'parallax_panel',
536
+ 'type' => 'custom_message',
537
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//www.themehunk.com/product/featured/">FeaturedPro</a> for using video background!','featuredlite' )
538
+ )));
539
+ // end-background-option
540
+ $wp_customize->add_panel( 'main_header_panel', array(
541
+ 'priority' => 4,
542
+ 'capability' => 'edit_theme_options',
543
+ 'theme_supports' => '',
544
+ 'title' => __('Main Header Section', 'featuredlite'),
545
+ 'description' => '',
546
+ ) );
547
+ // parallax heading and subheading
548
+ $wp_customize->add_section('parallax_heading_option', array(
549
+ 'title' => __('Setting', 'featuredlite'),
550
+ 'priority' => 5,
551
+ 'panel' => 'main_header_panel',
552
+ ));
553
+
554
+ $wp_customize->add_setting('parallax_heading', array(
555
+ 'default' => __('Beautiful Wordpress Business Themes','featuredlite'),
556
+ 'capability' => 'edit_theme_options',
557
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
558
+
559
+ ));
560
+ $wp_customize->add_control('parallax_heading', array(
561
+ 'label' => __(' Main Heading', 'featuredlite'),
562
+ 'section' => 'parallax_heading_option',
563
+ 'settings' => 'parallax_heading',
564
+ 'type' => 'text',
565
+ ));
566
+
567
+ $wp_customize->add_setting('parallax_subheading', array(
568
+ 'default' => __('Best Optimized WordPress Themes','featuredlite'),
569
+ 'capability' => 'edit_theme_options',
570
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
571
+ 'transport' => 'postMessage'
572
+
573
+ ));
574
+ $wp_customize->add_control('parallax_subheading', array(
575
+ 'label' => __('Sub Heading', 'featuredlite'),
576
+ 'section' => 'parallax_heading_option',
577
+ 'settings' => 'parallax_subheading',
578
+ 'type' => 'textarea',
579
+ ));
580
+
581
+ $wp_customize->add_setting('parallax_button_text', array(
582
+ 'default' => __('Read More','featuredlite'),
583
+ 'capability' => 'edit_theme_options',
584
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
585
+ 'transport' => 'postMessage',
586
+ ));
587
+ $wp_customize->add_control('parallax_button_text', array(
588
+ 'label' => __('Button text', 'featuredlite'),
589
+ 'section' => 'parallax_heading_option',
590
+ 'settings' => 'parallax_button_text',
591
+ 'type' => 'text',
592
+ ));
593
+
594
+ $wp_customize->add_setting('parallax_button_link', array(
595
+ 'default' => '#',
596
+ 'capability' => 'edit_theme_options',
597
+ 'sanitize_callback' => 'esc_url_raw',
598
+ ));
599
+ $wp_customize->add_control('parallax_button_link', array(
600
+ 'label' => __('Button Link', 'featuredlite'),
601
+ 'section' => 'parallax_heading_option',
602
+ 'settings' => 'parallax_button_link',
603
+ 'type' => 'text',
604
+ ));
605
+ $wp_customize->add_setting('prlx_opn_new_tab', array(
606
+ 'default' => '',
607
+ 'capability' => 'edit_theme_options',
608
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
609
+ ));
610
+ $wp_customize->add_control('prlx_opn_new_tab', array(
611
+ 'settings' => 'prlx_opn_new_tab',
612
+ 'label' => __( 'Check to open link in new tab','featuredlite'),
613
+ 'section' => 'parallax_heading_option',
614
+ 'type' => 'checkbox',
615
+ ) );
616
+ // color-option-header-section
617
+ $wp_customize->add_setting('top_hd_bg_color',
618
+ array(
619
+ 'default' => 'rgba(0, 0, 0, 0.3)',
620
+ 'type' => 'theme_mod',
621
+ 'capability' => 'edit_theme_options',
622
+ ) );
623
+
624
+ $wp_customize->add_control(
625
+ new Customize_themehunk_Color_Control($wp_customize,
626
+ 'top_hd_bg_color',
627
+ array(
628
+ 'label' => __('Background Overlay Color','featuredlite'),
629
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
630
+ 'section' => 'parallax_heading_option',
631
+ 'settings' => 'top_hd_bg_color',
632
+ 'palette' => $palette
633
+ )
634
+ )
635
+ );
636
+ $wp_customize->add_setting('main_hdng_color', array(
637
+ 'default' => '#fff',
638
+ 'capability' => 'edit_theme_options',
639
+ 'sanitize_callback' => 'themehunk_hex_color',
640
+
641
+ ));
642
+ $wp_customize->add_control(
643
+ new WP_Customize_Color_Control(
644
+ $wp_customize,
645
+ 'main_hdng_color',
646
+ array(
647
+ 'label' => __( 'Main Heading Color', 'featuredlite' ),
648
+ 'section' => 'parallax_heading_option',
649
+ 'settings' => 'main_hdng_color',
650
+ ) ) );
651
+
652
+ $wp_customize->add_setting('brdr_hdng_color', array(
653
+ 'default' => '#adadad',
654
+ 'capability' => 'edit_theme_options',
655
+ 'sanitize_callback' => 'themehunk_hex_color',
656
+
657
+ ));
658
+ $wp_customize->add_control(
659
+ new WP_Customize_Color_Control(
660
+ $wp_customize,
661
+ 'brdr_hdng_color',
662
+ array(
663
+ 'label' => __( 'Border Color', 'featuredlite' ),
664
+ 'section' => 'parallax_heading_option',
665
+ 'settings' => 'brdr_hdng_color',
666
+ ) ) );
667
+
668
+ $wp_customize->add_setting('sub_hdng_color', array(
669
+ 'default' => '#fff',
670
+ 'capability' => 'edit_theme_options',
671
+ 'sanitize_callback' => 'themehunk_hex_color',
672
+
673
+ ));
674
+ $wp_customize->add_control(
675
+ new WP_Customize_Color_Control(
676
+ $wp_customize,
677
+ 'sub_hdng_color',
678
+ array(
679
+ 'label' => __( 'Sub Heading Color', 'featuredlite' ),
680
+ 'section' => 'parallax_heading_option',
681
+ 'settings' => 'sub_hdng_color',
682
+ ) ) );
683
+ // slider-button-style
684
+ $wp_customize->add_setting( 'slidr_button',
685
+ array(
686
+ 'sanitize_callback' => 'sanitize_text_field',
687
+ 'default' => 'default',
688
+ )
689
+ );
690
+ $wp_customize->add_control('slidr_button',
691
+ array(
692
+ 'type' => 'select',
693
+ 'label' => esc_html__('Button', 'featuredlite'),
694
+ 'description' => esc_html__('Choose button style for slider.', 'featuredlite'),
695
+ 'section' => 'parallax_heading_option',
696
+ 'choices' => array(
697
+ 'default' => esc_html__('Button style 1', 'featuredlite'),
698
+ 'button-one' => esc_html__('Button style 2', 'featuredlite'),
699
+ 'button-two' => esc_html__('Button style 3', 'featuredlite'),
700
+ 'button-three' => esc_html__('Button style 4', 'featuredlite'),
701
+ 'button-four' => esc_html__('Button style 5', 'featuredlite'),
702
+ 'button-five' => esc_html__('Button style 6', 'featuredlite'),
703
+ )
704
+ )
705
+ );
706
+ // = Parallax Three Column Settings =
707
+ // Parallax First First Block
708
+ $wp_customize->add_section('first_parallax_block', array(
709
+ 'title' => __('First Column', 'featuredlite'),
710
+ 'priority' => 20,
711
+ 'panel' => 'main_header_panel',
712
+ ));
713
+ $wp_customize->add_setting('first_parallax_font_icon', array(
714
+ 'default' => 'fa fa-leaf',
715
+ 'capability' => 'edit_theme_options',
716
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
717
+
718
+ ));
719
+ $wp_customize->add_control('first_parallax_font_icon', array(
720
+ 'label' => __('Font Icon', 'featuredlite'),
721
+ 'description' => __( 'Go to this link for <a target="_blank" href="//fontawesome.io/icons/">Fontawesome icons</a> and copy the class of icon that you need & paste it below.','featuredlite' ),
722
+ 'section' => 'first_parallax_block',
723
+ 'settings' => 'first_parallax_font_icon',
724
+ 'type' => 'text',
725
+ ));
726
+
727
+ $wp_customize->add_setting('first_parallax_heading', array(
728
+ 'default' => '',
729
+ 'capability' => 'edit_theme_options',
730
+ 'sanitize_callback' => 'sanitize_text_field',
731
+
732
+ ));
733
+ $wp_customize->add_control('first_parallax_heading', array(
734
+ 'label' => __('Title', 'featuredlite'),
735
+ 'section' => 'first_parallax_block',
736
+ 'settings' => 'first_parallax_heading',
737
+ 'type' => 'text',
738
+ ));
739
+
740
+ $wp_customize->add_setting('first_parallax_link', array(
741
+ 'default' => '',
742
+ 'capability' => 'edit_theme_options',
743
+ 'sanitize_callback' => 'esc_url',
744
+ ));
745
+ $wp_customize->add_control('first_parallax_link', array(
746
+ 'label' => __('Title Link', 'featuredlite'),
747
+ 'section' => 'first_parallax_block',
748
+ 'settings' => 'first_parallax_link',
749
+ 'type' => 'text',
750
+ ));
751
+
752
+ $wp_customize->add_setting('first_parallax_desc', array(
753
+ 'default' => '',
754
+ 'capability' => 'edit_theme_options',
755
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
756
+
757
+ ));
758
+ $wp_customize->add_control('first_parallax_desc', array(
759
+ 'label' => __('Description', 'featuredlite'),
760
+ 'section' => 'first_parallax_block',
761
+ 'settings' => 'first_parallax_desc',
762
+ 'type' => 'textarea',
763
+
764
+ ));
765
+
766
+ $wp_customize->add_setting('first_colmn_icon_color', array(
767
+ 'default' => '#fff',
768
+ 'capability' => 'edit_theme_options',
769
+ 'sanitize_callback' => 'themehunk_hex_color',
770
+
771
+ ));
772
+ $wp_customize->add_control(
773
+ new WP_Customize_Color_Control(
774
+ $wp_customize,
775
+ 'first_colmn_icon_color',
776
+ array(
777
+ 'label' => __( 'Icon Color', 'featuredlite' ),
778
+ 'section' => 'first_parallax_block',
779
+ 'settings' => 'first_colmn_icon_color',
780
+ ) ) );
781
+
782
+ $wp_customize->add_setting('first_colmn_hdng_color', array(
783
+ 'default' => '#fff',
784
+ 'capability' => 'edit_theme_options',
785
+ 'sanitize_callback' => 'themehunk_hex_color',
786
+
787
+ ));
788
+ $wp_customize->add_control(
789
+ new WP_Customize_Color_Control(
790
+ $wp_customize,
791
+ 'first_colmn_hdng_color',
792
+ array(
793
+ 'label' => __( 'Title Color', 'featuredlite' ),
794
+ 'section' => 'first_parallax_block',
795
+ 'settings' => 'first_colmn_hdng_color',
796
+ ) ) );
797
+ $wp_customize->add_setting('first_colmn_desc_color', array(
798
+ 'default' => '#fff',
799
+ 'capability' => 'edit_theme_options',
800
+ 'sanitize_callback' => 'themehunk_hex_color',
801
+ ));
802
+ $wp_customize->add_control(
803
+ new WP_Customize_Color_Control(
804
+ $wp_customize,
805
+ 'first_colmn_desc_color',
806
+ array(
807
+ 'label' => __( 'Description Color', 'featuredlite' ),
808
+ 'section' => 'first_parallax_block',
809
+ 'settings' => 'first_colmn_desc_color',
810
+ ) ) );
811
+ $wp_customize->add_setting('first_colmn_bg_color',
812
+ array(
813
+ 'default' => 'rgba(0, 0, 0, 0.6)',
814
+ 'type' => 'theme_mod',
815
+ 'capability' => 'edit_theme_options',
816
+
817
+ ) );
818
+ $wp_customize->add_control(
819
+ new Customize_themehunk_Color_Control($wp_customize,
820
+ 'first_colmn_bg_color',
821
+ array(
822
+ 'label' => __('Background Hover Color','featuredlite'),
823
+ 'section' => 'first_parallax_block',
824
+ 'settings' => 'first_colmn_bg_color',
825
+ 'palette' => $palette
826
+ )
827
+ )
828
+ );
829
+ // parallax Second Block
830
+ $wp_customize->add_section('second_parallax_block', array(
831
+ 'title' => __('Second Column', 'featuredlite'),
832
+ 'priority' => 20,
833
+ 'panel' => 'main_header_panel',
834
+ ));
835
+ $wp_customize->add_setting('second_parallax_font_icon', array(
836
+ 'default' => 'fa fa-apple',
837
+ 'capability' => 'edit_theme_options',
838
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
839
+
840
+ ));
841
+ $wp_customize->add_control('second_parallax_font_icon', array(
842
+ 'label' => __('Font Icon', 'featuredlite'),
843
+ 'description' => __( 'Go to this link for <a target="_blank" href="//fontawesome.io/icons/">Fontawesome icons</a> and copy the class of icon that you need & paste it below.','featuredlite' ),
844
+ 'section' => 'second_parallax_block',
845
+ 'settings' => 'second_parallax_font_icon',
846
+ 'type' => 'text',
847
+ ));
848
+
849
+ $wp_customize->add_setting('second_parallax_heading', array(
850
+ 'default' => '',
851
+ 'capability' => 'edit_theme_options',
852
+ 'sanitize_callback' => 'sanitize_text_field',
853
+
854
+ ));
855
+ $wp_customize->add_control('second_parallax_heading', array(
856
+ 'label' => __('Title', 'featuredlite'),
857
+ 'section' => 'second_parallax_block',
858
+ 'settings' => 'second_parallax_heading',
859
+ 'type' => 'text',
860
+ ));
861
+
862
+ $wp_customize->add_setting('second_parallax_link', array(
863
+ 'default' => '',
864
+ 'capability' => 'edit_theme_options',
865
+ 'sanitize_callback' => 'esc_url',
866
+ ));
867
+ $wp_customize->add_control('second_parallax_link', array(
868
+ 'label' => __('Title Link', 'featuredlite'),
869
+ 'section' => 'second_parallax_block',
870
+ 'settings' => 'second_parallax_link',
871
+ 'type' => 'text',
872
+ ));
873
+
874
+ $wp_customize->add_setting('second_parallax_desc', array(
875
+ 'default' => '',
876
+ 'capability' => 'edit_theme_options',
877
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
878
+ ));
879
+ $wp_customize->add_control('second_parallax_desc', array(
880
+ 'label' => __('Description', 'featuredlite'),
881
+ 'section' => 'second_parallax_block',
882
+ 'settings' => 'second_parallax_desc',
883
+ 'type' => 'textarea',
884
+ ));
885
+ $wp_customize->add_setting('second_colmn_icon_color', array(
886
+ 'default' => '#fff',
887
+ 'capability' => 'edit_theme_options',
888
+ 'sanitize_callback' => 'themehunk_hex_color',
889
+
890
+ ));
891
+ $wp_customize->add_control(
892
+ new WP_Customize_Color_Control(
893
+ $wp_customize,
894
+ 'second_colmn_icon_color',
895
+ array(
896
+ 'label' => __( 'Icon Color', 'featuredlite' ),
897
+ 'section' => 'second_parallax_block',
898
+ 'settings' => 'second_colmn_icon_color',
899
+ ) ) );
900
+
901
+ $wp_customize->add_setting('second_colmn_hdng_color', array(
902
+ 'default' => '#fff',
903
+ 'capability' => 'edit_theme_options',
904
+ 'sanitize_callback' => 'themehunk_hex_color',
905
+
906
+ ));
907
+ $wp_customize->add_control(
908
+ new WP_Customize_Color_Control(
909
+ $wp_customize,
910
+ 'second_colmn_hdng_color',
911
+ array(
912
+ 'label' => __( 'Title Color', 'featuredlite' ),
913
+ 'section' => 'second_parallax_block',
914
+ 'settings' => 'second_colmn_hdng_color',
915
+ ) ) );
916
+ $wp_customize->add_setting('second_colmn_desc_color', array(
917
+ 'default' => '#fff',
918
+ 'capability' => 'edit_theme_options',
919
+ 'sanitize_callback' => 'themehunk_hex_color',
920
+
921
+ ));
922
+ $wp_customize->add_control(
923
+ new WP_Customize_Color_Control(
924
+ $wp_customize,
925
+ 'second_colmn_desc_color',
926
+ array(
927
+ 'label' => __( 'Description Color', 'featuredlite' ),
928
+ 'section' => 'second_parallax_block',
929
+ 'settings' => 'second_colmn_desc_color',
930
+ ) ) );
931
+ $wp_customize->add_setting('second_colmn_bg_color',
932
+ array(
933
+ 'default' => 'rgba(0, 0, 0, 0.6)',
934
+ 'type' => 'theme_mod',
935
+ 'capability' => 'edit_theme_options',
936
+
937
+ ) );
938
+ $wp_customize->add_control(
939
+ new Customize_themehunk_Color_Control($wp_customize,
940
+ 'second_colmn_bg_color',
941
+ array(
942
+ 'label' => __('Background Hover Color','featuredlite'),
943
+ 'section' => 'second_parallax_block',
944
+ 'settings' => 'second_colmn_bg_color',
945
+ 'palette' => $palette
946
+ )
947
+ )
948
+ );
949
+ // parallax Third Block
950
+ $wp_customize->add_section('third_parallax_block', array(
951
+ 'title' => __('Third Column', 'featuredlite'),
952
+ 'priority' => 20,
953
+ 'panel' => 'main_header_panel',
954
+ ));
955
+ $wp_customize->add_setting('third_parallax_font_icon', array(
956
+ 'default' => 'fa fa-ban',
957
+ 'capability' => 'edit_theme_options',
958
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
959
+ ));
960
+ $wp_customize->add_control('third_parallax_font_icon', array(
961
+ 'label' => __('Font Icon', 'featuredlite'),
962
+ 'description' => __( 'Go to this link for <a target="_blank" href="//fontawesome.io/icons/">Fontawesome icons</a> and copy the class of icon that you need & paste it below.','featuredlite' ),
963
+ 'section' => 'third_parallax_block',
964
+ 'settings' => 'third_parallax_font_icon',
965
+ 'type' => 'text',
966
+ ));
967
+
968
+ $wp_customize->add_setting('third_parallax_heading', array(
969
+ 'default' => '',
970
+ 'capability' => 'edit_theme_options',
971
+ 'sanitize_callback' => 'sanitize_text_field',
972
+
973
+ ));
974
+ $wp_customize->add_control('third_parallax_heading', array(
975
+ 'label' => __('Title', 'featuredlite'),
976
+ 'section' => 'third_parallax_block',
977
+ 'settings' => 'third_parallax_heading',
978
+ 'type' => 'text',
979
+ ));
980
+
981
+ $wp_customize->add_setting('third_parallax_link', array(
982
+ 'default' => '',
983
+ 'capability' => 'edit_theme_options',
984
+ 'sanitize_callback' => 'esc_url',
985
+ ));
986
+ $wp_customize->add_control('third_parallax_link', array(
987
+ 'label' => __('Title Link', 'featuredlite'),
988
+ 'section' => 'third_parallax_block',
989
+ 'settings' => 'third_parallax_link',
990
+ 'type' => 'text',
991
+ ));
992
+
993
+ $wp_customize->add_setting('third_parallax_desc', array(
994
+ 'default' => '',
995
+ 'capability' => 'edit_theme_options',
996
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
997
+
998
+ ));
999
+ $wp_customize->add_control('third_parallax_desc', array(
1000
+ 'label' => __('Description', 'featuredlite'),
1001
+ 'section' => 'third_parallax_block',
1002
+ 'settings' => 'third_parallax_desc',
1003
+ 'type' => 'textarea',
1004
+ ));
1005
+ $wp_customize->add_setting('third_colmn_icon_color', array(
1006
+ 'default' => '#fff',
1007
+ 'capability' => 'edit_theme_options',
1008
+ 'sanitize_callback' => 'themehunk_hex_color',
1009
+
1010
+ ));
1011
+ $wp_customize->add_control(
1012
+ new WP_Customize_Color_Control(
1013
+ $wp_customize,
1014
+ 'third_colmn_icon_color',
1015
+ array(
1016
+ 'label' => __( 'Icon Color', 'featuredlite' ),
1017
+ 'section' => 'third_parallax_block',
1018
+ 'settings' => 'third_colmn_icon_color',
1019
+ ) ) );
1020
+
1021
+ $wp_customize->add_setting('third_colmn_hdng_color', array(
1022
+ 'default' => '#fff',
1023
+ 'capability' => 'edit_theme_options',
1024
+ 'sanitize_callback' => 'themehunk_hex_color',
1025
+
1026
+ ));
1027
+ $wp_customize->add_control(
1028
+ new WP_Customize_Color_Control(
1029
+ $wp_customize,
1030
+ 'third_colmn_hdng_color',
1031
+ array(
1032
+ 'label' => __( 'Title Color', 'featuredlite' ),
1033
+ 'section' => 'third_parallax_block',
1034
+ 'settings' => 'third_colmn_hdng_color',
1035
+ ) ) );
1036
+ $wp_customize->add_setting('third_colmn_desc_color', array(
1037
+ 'default' => '#fff',
1038
+ 'capability' => 'edit_theme_options',
1039
+ 'sanitize_callback' => 'themehunk_hex_color',
1040
+
1041
+ ));
1042
+ $wp_customize->add_control(
1043
+ new WP_Customize_Color_Control(
1044
+ $wp_customize,
1045
+ 'third_colmn_desc_color',
1046
+ array(
1047
+ 'label' => __( 'Description Color', 'featuredlite' ),
1048
+ 'section' => 'third_parallax_block',
1049
+ 'settings' => 'third_colmn_desc_color',
1050
+ ) ) );
1051
+ $wp_customize->add_setting('third_colmn_bg_color',
1052
+ array(
1053
+ 'default' => 'rgba(0, 0, 0, 0.6)',
1054
+ 'type' => 'theme_mod',
1055
+ 'capability' => 'edit_theme_options',
1056
+
1057
+ ) );
1058
+ $wp_customize->add_control(
1059
+ new Customize_themehunk_Color_Control($wp_customize,
1060
+ 'third_colmn_bg_color',
1061
+ array(
1062
+ 'label' => __('Background Hover Color','featuredlite'),
1063
+ 'section' => 'third_parallax_block',
1064
+ 'settings' => 'third_colmn_bg_color',
1065
+ 'palette' => $palette
1066
+ )
1067
+ )
1068
+ );
1069
+ //===============================
1070
+ // = Header leadform pro feature Settings =
1071
+ // =============================
1072
+ $wp_customize->add_section('header_leadform_pro_feature', array(
1073
+ 'title' => __('Leadform Setting', 'featuredlite'),
1074
+ 'priority' =>1,
1075
+ 'panel' => 'main_header_panel',
1076
+ ));
1077
+ $wp_customize->add_setting('feature_pro_leadform', array(
1078
+ 'sanitize_callback' => 'themehunk_sanitize_text',
1079
+ ));
1080
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'feature_pro_leadform',
1081
+ array(
1082
+ 'section' => 'header_leadform_pro_feature',
1083
+ 'type' => 'custom_message',
1084
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//www.themehunk.com/product/featured/">FeaturedPro</a> for adding a leadform in main header section!','featuredlite' )
1085
+ )));
1086
+ //-------------------End Parallax Panel----------------------------//
1087
+
1088
+ // ============================= //
1089
+ // S2 = Heading and Button sections =
1090
+ // ============================= //
1091
+ $wp_customize->add_panel( 'our_ribbon_panel', array(
1092
+ 'priority' => 8,
1093
+ 'capability' => 'edit_theme_options',
1094
+ 'theme_supports' => '',
1095
+ 'title' => __('Ribbon Section', 'featuredlite'),
1096
+ 'description' => '',
1097
+ ) );
1098
+ $wp_customize->add_section( 'ribbon_panel', array(
1099
+ 'priority' => 6,
1100
+ 'title' => __('First Ribbon', 'featuredlite'),
1101
+ 'panel' => 'our_ribbon_panel',
1102
+ ) );
1103
+
1104
+
1105
+ $wp_customize->add_setting('hb_heading', array(
1106
+ 'default' => '',
1107
+ 'capability' => 'edit_theme_options',
1108
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1109
+
1110
+ ));
1111
+ $wp_customize->add_control('hb_heading', array(
1112
+ 'label' => __('Title', 'featuredlite'),
1113
+ 'section' => 'ribbon_panel',
1114
+ 'settings' => 'hb_heading',
1115
+ 'type' => 'textarea',
1116
+ ));
1117
+
1118
+ $wp_customize->add_setting('hb_button_text', array(
1119
+ 'default' => __('Read More','featuredlite'),
1120
+ 'capability' => 'edit_theme_options',
1121
+ 'sanitize_callback' => 'sanitize_text_field',
1122
+
1123
+ ));
1124
+ $wp_customize->add_control('hb_button_text', array(
1125
+ 'label' => __('Button Text', 'featuredlite'),
1126
+ 'section' => 'ribbon_panel',
1127
+ 'settings' => 'hb_button_text',
1128
+ 'type' => 'text',
1129
+ ));
1130
+
1131
+ $wp_customize->add_setting('hb_button_link', array(
1132
+ 'default' => '#',
1133
+ 'capability' => 'edit_theme_options',
1134
+ 'sanitize_callback' => 'esc_url',
1135
+ ));
1136
+ $wp_customize->add_control('hb_button_link', array(
1137
+ 'label' => __('Button Link', 'featuredlite'),
1138
+ 'section' => 'ribbon_panel',
1139
+ 'settings' => 'hb_button_link',
1140
+ 'type' => 'text',
1141
+ ));
1142
+ $wp_customize->add_setting('top_opn_new_tab', array(
1143
+ 'default' => '',
1144
+ 'capability' => 'edit_theme_options',
1145
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1146
+ ));
1147
+ $wp_customize->add_control('top_opn_new_tab', array(
1148
+ 'settings' => 'top_opn_new_tab',
1149
+ 'label' => __('Check to open link in new tab','featuredlite'),
1150
+ 'section' => 'ribbon_panel',
1151
+ 'type' => 'checkbox',
1152
+ ) );
1153
+
1154
+ $wp_customize->add_setting('ribbon_color',
1155
+ array(
1156
+ 'default' => '#f16c20',
1157
+ 'type' => 'theme_mod',
1158
+ 'capability' => 'edit_theme_options',
1159
+ ) );
1160
+ $wp_customize->add_control(
1161
+ new Customize_themehunk_Color_Control($wp_customize,
1162
+ 'ribbon_color',
1163
+ array(
1164
+ 'label' => __('Background Color','featuredlite'),
1165
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
1166
+ 'section' => 'ribbon_panel',
1167
+ 'settings' => 'ribbon_color',
1168
+ 'palette' => $palette
1169
+ )
1170
+ )
1171
+ );
1172
+ $wp_customize->add_setting('top_ribbon_txt_color', array(
1173
+ 'default' => '#fff',
1174
+ 'capability' => 'edit_theme_options',
1175
+ 'sanitize_callback' => 'sanitize_hex_color'
1176
+ ));
1177
+ $wp_customize->add_control(
1178
+ new WP_Customize_Color_Control( $wp_customize,'top_ribbon_txt_color', array(
1179
+ 'label' => __('Text Color', 'featuredlite' ),
1180
+ 'section' => 'ribbon_panel',
1181
+ 'settings' => 'top_ribbon_txt_color',
1182
+ ) )
1183
+ );
1184
+ $wp_customize->add_setting('ribbon_button_color', array(
1185
+ 'default' => '#ff9d65',
1186
+ 'capability' => 'edit_theme_options',
1187
+ 'sanitize_callback' => 'sanitize_hex_color'
1188
+ ));
1189
+ $wp_customize->add_control(
1190
+ new WP_Customize_Color_Control($wp_customize,'ribbon_button_color', array(
1191
+ 'label' => __('Button Background Color', 'featuredlite' ),
1192
+ 'section' => 'ribbon_panel',
1193
+ 'settings' => 'ribbon_button_color',
1194
+ ) )
1195
+ );
1196
+ $wp_customize->add_setting('ribbon_button_txt_color', array(
1197
+ 'default' => '#fff',
1198
+ 'capability' => 'edit_theme_options',
1199
+ 'sanitize_callback' => 'sanitize_hex_color'
1200
+ ));
1201
+ $wp_customize->add_control(
1202
+ new WP_Customize_Color_Control($wp_customize,'ribbon_button_txt_color', array(
1203
+ 'label' => __('Button Text Color', 'featuredlite' ),
1204
+ 'section' => 'ribbon_panel',
1205
+ 'settings' => 'ribbon_button_txt_color',
1206
+ ) )
1207
+ );
1208
+
1209
+
1210
+
1211
+ $wp_customize->add_setting('ribbon_button_hover_color', array(
1212
+ 'default' => '#e85500',
1213
+ 'capability' => 'edit_theme_options',
1214
+ 'sanitize_callback' => 'sanitize_hex_color'
1215
+ ));
1216
+ $wp_customize->add_control(
1217
+ new WP_Customize_Color_Control( $wp_customize,'ribbon_button_hover_color', array(
1218
+ 'label' => __('Button Background Hover Color', 'featuredlite' ),
1219
+ 'section' => 'ribbon_panel',
1220
+ 'settings' => 'ribbon_button_hover_color',
1221
+ ) )
1222
+ );
1223
+ $wp_customize->add_setting('ribbon_button_txt_hvr_color', array(
1224
+ 'default' => '#fff',
1225
+ 'capability' => 'edit_theme_options',
1226
+ 'sanitize_callback' => 'sanitize_hex_color'
1227
+ ));
1228
+ $wp_customize->add_control(
1229
+ new WP_Customize_Color_Control($wp_customize,'ribbon_button_txt_hvr_color', array(
1230
+ 'label' => __('Button Text Hover Color', 'featuredlite' ),
1231
+ 'section' => 'ribbon_panel',
1232
+ 'settings' => 'ribbon_button_txt_hvr_color',
1233
+ ) )
1234
+ );
1235
+
1236
+ // ribbon-bottom
1237
+ $wp_customize->add_section( 'ribbon_bottom_panel', array(
1238
+ 'priority' => 7,
1239
+ 'title' => __('Second Ribbon', 'featuredlite'),
1240
+ 'panel' => 'our_ribbon_panel',
1241
+ ) );
1242
+ $wp_customize->add_setting('hb_heading_bottom', array(
1243
+ 'default' => '',
1244
+ 'capability' => 'edit_theme_options',
1245
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1246
+
1247
+ ));
1248
+ $wp_customize->add_control('hb_heading_bottom', array(
1249
+ 'label' => __('Title', 'featuredlite'),
1250
+ 'section' => 'ribbon_bottom_panel',
1251
+ 'settings' => 'hb_heading_bottom',
1252
+ 'type' => 'textarea',
1253
+ ));
1254
+ $wp_customize->add_setting('hb_button_text_bottom', array(
1255
+ 'default' => __('Read More','featuredlite'),
1256
+ 'capability' => 'edit_theme_options',
1257
+ 'sanitize_callback' => 'sanitize_text_field',
1258
+
1259
+ ));
1260
+ $wp_customize->add_control('hb_button_text_bottom', array(
1261
+ 'label' => __('Button Text', 'featuredlite'),
1262
+ 'section' => 'ribbon_bottom_panel',
1263
+ 'settings' => 'hb_button_text_bottom',
1264
+ 'type' => 'text',
1265
+ ));
1266
+
1267
+ $wp_customize->add_setting('hb_button_link_bottom', array(
1268
+ 'default' => '#',
1269
+ 'capability' => 'edit_theme_options',
1270
+ 'sanitize_callback' => 'esc_url',
1271
+ ));
1272
+ $wp_customize->add_control('hb_button_link_bottom', array(
1273
+ 'label' => __('Button Link', 'featuredlite'),
1274
+ 'section' => 'ribbon_bottom_panel',
1275
+ 'settings' => 'hb_button_link_bottom',
1276
+ 'type' => 'text',
1277
+ ));
1278
+ $wp_customize->add_setting('btm_opn_new_tab', array(
1279
+ 'default' => '',
1280
+ 'capability' => 'edit_theme_options',
1281
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1282
+ ));
1283
+ $wp_customize->add_control('btm_opn_new_tab', array(
1284
+ 'settings' => 'btm_opn_new_tab',
1285
+ 'label' => __( 'Check to open link in new tab' ),
1286
+ 'section' => 'ribbon_bottom_panel',
1287
+ 'type' => 'checkbox',
1288
+ ) );
1289
+ $wp_customize->add_setting('ribbon_color_bottom',
1290
+ array(
1291
+ 'default' => 'rgba(241, 108, 32, 0.5)',
1292
+ 'type' => 'theme_mod',
1293
+ 'capability' => 'edit_theme_options',
1294
+ ) );
1295
+ $wp_customize->add_control(
1296
+ new Customize_themehunk_Color_Control($wp_customize,
1297
+ 'ribbon_color_bottom',
1298
+ array(
1299
+ 'label' => __('Background Color','featuredlite'),
1300
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
1301
+ 'section' => 'ribbon_bottom_panel',
1302
+ 'settings' => 'ribbon_color_bottom',
1303
+ 'palette' => $palette
1304
+ )
1305
+ )
1306
+ );
1307
+ $wp_customize->add_setting('btm_ribbon_txt_color', array(
1308
+ 'default' => '#fff',
1309
+ 'capability' => 'edit_theme_options',
1310
+ 'sanitize_callback' => 'sanitize_hex_color'
1311
+ ));
1312
+ $wp_customize->add_control(
1313
+ new WP_Customize_Color_Control( $wp_customize,'btm_ribbon_txt_color', array(
1314
+ 'label' => __('Text Color', 'featuredlite' ),
1315
+ 'section' => 'ribbon_bottom_panel',
1316
+ 'settings' => 'btm_ribbon_txt_color',
1317
+ ) )
1318
+ );
1319
+ $wp_customize->add_setting('ribbon_button_color_bottom', array(
1320
+ 'default' => '#f16c20',
1321
+ 'capability' => 'edit_theme_options',
1322
+ 'sanitize_callback' => 'sanitize_hex_color'
1323
+ ));
1324
+ $wp_customize->add_control(
1325
+ new WP_Customize_Color_Control($wp_customize,'ribbon_button_color_bottom', array(
1326
+ 'label' => __('Button Background Color', 'featuredlite' ),
1327
+ 'section' => 'ribbon_bottom_panel',
1328
+ 'settings' => 'ribbon_button_color_bottom',
1329
+ ) )
1330
+ );
1331
+ $wp_customize->add_setting('ribbon_button_color_txt_bottom', array(
1332
+ 'default' => '#fff',
1333
+ 'capability' => 'edit_theme_options',
1334
+ 'sanitize_callback' => 'sanitize_hex_color'
1335
+ ));
1336
+ $wp_customize->add_control(
1337
+ new WP_Customize_Color_Control($wp_customize,'ribbon_button_color_txt_bottom', array(
1338
+ 'label' => __('Button Text Color', 'featuredlite' ),
1339
+ 'section' => 'ribbon_bottom_panel',
1340
+ 'settings' => 'ribbon_button_color_txt_bottom',
1341
+ ) )
1342
+ );
1343
+ $wp_customize->add_setting('ribbon_button_hover_color_bottom', array(
1344
+ 'default' => '#ff9d65',
1345
+ 'capability' => 'edit_theme_options',
1346
+ 'sanitize_callback' => 'sanitize_hex_color'
1347
+ ));
1348
+ $wp_customize->add_control(
1349
+ new WP_Customize_Color_Control( $wp_customize,'ribbon_button_hover_color_bottom', array(
1350
+ 'label' => __('Button Background Hover Color', 'featuredlite' ),
1351
+ 'section' => 'ribbon_bottom_panel',
1352
+ 'settings' => 'ribbon_button_hover_color_bottom',
1353
+ ) )
1354
+ );
1355
+ $wp_customize->add_setting('ribbon_button_color_txt__hvr_bottom', array(
1356
+ 'default' => '#fff',
1357
+ 'capability' => 'edit_theme_options',
1358
+ 'sanitize_callback' => 'sanitize_hex_color'
1359
+ ));
1360
+ $wp_customize->add_control(
1361
+ new WP_Customize_Color_Control($wp_customize,'ribbon_button_color_txt__hvr_bottom', array(
1362
+ 'label' => __('Button Text Hover Color', 'featuredlite' ),
1363
+ 'section' => 'ribbon_bottom_panel',
1364
+ 'settings' => 'ribbon_button_color_txt__hvr_bottom',
1365
+ ) )
1366
+ );
1367
+
1368
+ //--------------End heading and button Panel-------------//
1369
+
1370
+ // ============================= //
1371
+ // S3 = Our Services sections =
1372
+ // ============================= //
1373
+
1374
+ $wp_customize->add_panel( 'services_panel', array(
1375
+ 'priority' => 8,
1376
+ 'capability' => 'edit_theme_options',
1377
+ 'theme_supports' => '',
1378
+ 'title' => __('Service Section', 'featuredlite'),
1379
+ 'description' => '',
1380
+ ) );
1381
+
1382
+ // Our Services heading and subheading
1383
+ $wp_customize->add_section('our_services_heading_option', array(
1384
+ 'title' => __('Setting', 'featuredlite'),
1385
+ 'priority' => 4,
1386
+ 'panel' => 'services_panel',
1387
+ ));
1388
+
1389
+ $wp_customize->add_setting('our_services_heading', array(
1390
+ 'default' => '',
1391
+ 'capability' => 'edit_theme_options',
1392
+ 'sanitize_callback' => 'sanitize_text_field',
1393
+
1394
+ ));
1395
+ $wp_customize->add_control('our_services_heading', array(
1396
+ 'label' => __('Main Heading', 'featuredlite'),
1397
+ 'section' => 'our_services_heading_option',
1398
+ 'settings' => 'our_services_heading',
1399
+ 'type' => 'text',
1400
+ ));
1401
+
1402
+ $wp_customize->add_setting('our_services_subheading', array(
1403
+ 'default' => '',
1404
+ 'capability' => 'edit_theme_options',
1405
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1406
+
1407
+
1408
+ ));
1409
+ $wp_customize->add_control('our_services_subheading', array(
1410
+ 'label' => __('Sub Heading', 'featuredlite'),
1411
+ 'section' => 'our_services_heading_option',
1412
+ 'settings' => 'our_services_subheading',
1413
+ 'type' => 'textarea',
1414
+ ));
1415
+ $wp_customize->add_setting('service_bg_color',
1416
+ array(
1417
+ 'default' => 'rgba(0, 0, 0, 0.3)',
1418
+ 'type' => 'theme_mod',
1419
+ 'capability' => 'edit_theme_options',
1420
+ ) );
1421
+ $wp_customize->add_control(
1422
+ new Customize_themehunk_Color_Control($wp_customize,
1423
+ 'service_bg_color',
1424
+ array(
1425
+ 'label' => __('Background Color','featuredlite'),
1426
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
1427
+ 'section' => 'our_services_heading_option',
1428
+ 'settings' => 'service_bg_color',
1429
+ 'palette' => $palette
1430
+ )
1431
+ )
1432
+ );
1433
+
1434
+ $wp_customize->add_setting('srv_main_hd_color', array(
1435
+ 'default' => '#fff',
1436
+ 'capability' => 'edit_theme_options',
1437
+ 'sanitize_callback' => 'sanitize_hex_color'
1438
+ ));
1439
+ $wp_customize->add_control(
1440
+ new WP_Customize_Color_Control($wp_customize,'srv_main_hd_color', array(
1441
+ 'label' => __('Main Heading Color', 'featuredlite' ),
1442
+ 'section' => 'our_services_heading_option',
1443
+ 'settings' => 'srv_main_hd_color',
1444
+ ) )
1445
+ );
1446
+
1447
+ $wp_customize->add_setting('srv_sub_hd_color', array(
1448
+ 'default' => '#fff',
1449
+ 'capability' => 'edit_theme_options',
1450
+ 'sanitize_callback' => 'sanitize_hex_color'
1451
+ ));
1452
+ $wp_customize->add_control(
1453
+ new WP_Customize_Color_Control($wp_customize,'srv_sub_hd_color', array(
1454
+ 'label' => __('Sub Heading Color', 'featuredlite' ),
1455
+ 'section' => 'our_services_heading_option',
1456
+ 'settings' => 'srv_sub_hd_color',
1457
+ ) )
1458
+ );
1459
+ $wp_customize->add_setting('srv_colom_bg_color', array(
1460
+ 'default' => '#fff',
1461
+ 'capability' => 'edit_theme_options',
1462
+ 'sanitize_callback' => 'sanitize_hex_color'
1463
+ ));
1464
+ $wp_customize->add_control(
1465
+ new WP_Customize_Color_Control($wp_customize,'srv_colom_bg_color', array(
1466
+ 'label' => __('Column Background Color', 'featuredlite' ),
1467
+ 'section' => 'our_services_heading_option',
1468
+ 'settings' => 'srv_colom_bg_color',
1469
+ ) )
1470
+ );
1471
+
1472
+ $wp_customize->add_setting('srv_colom_hd_color', array(
1473
+ 'default' => '#858585',
1474
+ 'capability' => 'edit_theme_options',
1475
+ 'sanitize_callback' => 'sanitize_hex_color'
1476
+ ));
1477
+ $wp_customize->add_control(
1478
+ new WP_Customize_Color_Control($wp_customize,'srv_colom_hd_color', array(
1479
+ 'label' => __('Column Heading Color', 'featuredlite' ),
1480
+ 'section' => 'our_services_heading_option',
1481
+ 'settings' => 'srv_colom_hd_color',
1482
+ ) )
1483
+ );
1484
+ $wp_customize->add_setting('srv_colom_txt_color', array(
1485
+ 'default' => '#858585',
1486
+ 'capability' => 'edit_theme_options',
1487
+ 'sanitize_callback' => 'sanitize_hex_color'
1488
+ ));
1489
+ $wp_customize->add_control(
1490
+ new WP_Customize_Color_Control($wp_customize,'srv_colom_txt_color', array(
1491
+ 'label' => __('Column Description Color', 'featuredlite' ),
1492
+ 'section' => 'our_services_heading_option',
1493
+ 'settings' => 'srv_colom_txt_color',
1494
+ ) )
1495
+ );
1496
+ //-------------------End our services Panel----------------------------//
1497
+ // ============================= //
1498
+ // S4 = About Us sections =
1499
+ // ============================= //
1500
+
1501
+ // Our heading
1502
+ $wp_customize->add_section('about_us_option', array(
1503
+ 'title' => __('About Us Section', 'featuredlite'),
1504
+ 'priority' => 9,
1505
+ ));
1506
+ $wp_customize->add_setting('about_us_heading', array(
1507
+ 'default' => '',
1508
+ 'capability' => 'edit_theme_options',
1509
+ 'sanitize_callback' => 'sanitize_text_field',
1510
+
1511
+ ));
1512
+ $wp_customize->add_control('about_us_heading', array(
1513
+ 'label' => __('Title', 'featuredlite'),
1514
+ 'section' => 'about_us_option',
1515
+ 'settings' => 'about_us_heading',
1516
+ 'type' => 'text',
1517
+ ));
1518
+
1519
+ $wp_customize->add_setting('about_us_subheading', array(
1520
+ 'default' => '',
1521
+ 'capability' => 'edit_theme_options',
1522
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1523
+
1524
+
1525
+ ));
1526
+ $wp_customize->add_control('about_us_subheading', array(
1527
+ 'label' => __('Description', 'featuredlite'),
1528
+ 'section' => 'about_us_option',
1529
+ 'settings' => 'about_us_subheading',
1530
+ 'type' => 'textarea',
1531
+ ));
1532
+
1533
+ $wp_customize->add_setting('about_us_image', array(
1534
+ 'capability' => 'edit_theme_options',
1535
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload',
1536
+ 'default' =>FEATUREDLITE_ABOUTUS,
1537
+ ));
1538
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'about_us_image', array(
1539
+ 'label' => __('Image Upload', 'featuredlite'),
1540
+ 'section' => 'about_us_option',
1541
+ 'settings' => 'about_us_image',
1542
+ )));
1543
+ $wp_customize->add_setting('about_us_bg_color',
1544
+ array(
1545
+ 'default' => '#fff',
1546
+ 'type' => 'theme_mod',
1547
+ 'capability' => 'edit_theme_options',
1548
+ ) );
1549
+ $wp_customize->add_control(
1550
+ new Customize_themehunk_Color_Control($wp_customize,
1551
+ 'about_us_bg_color',
1552
+ array(
1553
+ 'label' => __('Background Color','featuredlite'),
1554
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
1555
+ 'section' => 'about_us_option',
1556
+ 'settings' => 'about_us_bg_color',
1557
+ 'palette' => $palette
1558
+ )
1559
+ )
1560
+ );
1561
+
1562
+ $wp_customize->add_setting('about_us_txt_color', array(
1563
+ 'default' => '#000',
1564
+ 'capability' => 'edit_theme_options',
1565
+ 'sanitize_callback' => 'sanitize_hex_color'
1566
+ ));
1567
+ $wp_customize->add_control(
1568
+ new WP_Customize_Color_Control($wp_customize,'about_us_txt_color', array(
1569
+ 'label' => __('Text Color', 'featuredlite' ),
1570
+ 'section' => 'about_us_option',
1571
+ 'settings' => 'about_us_txt_color',
1572
+ ) )
1573
+ );
1574
+
1575
+ //-------------------End about us Panel----------------------------//
1576
+ // = Our TEAM sections =//
1577
+ // ============================= //
1578
+ $wp_customize->add_panel( 'team_panel', array(
1579
+ 'priority' => 10,
1580
+ 'capability' => 'edit_theme_options',
1581
+ 'theme_supports' => '',
1582
+ 'title' => __('Team Section', 'featuredlite'),
1583
+ 'description' => '',
1584
+ ) );
1585
+ // Our team heading and subheading
1586
+ $wp_customize->add_section('our_team_heading_option', array(
1587
+ 'title' => __('Setting', 'featuredlite'),
1588
+ 'priority' => 4,
1589
+ 'panel' => 'team_panel',
1590
+ ));
1591
+
1592
+ $wp_customize->add_setting('our_team_heading', array(
1593
+ 'default' => '',
1594
+ 'capability' => 'edit_theme_options',
1595
+ 'sanitize_callback' => 'sanitize_text_field',
1596
+
1597
+ ));
1598
+ $wp_customize->add_control('our_team_heading', array(
1599
+ 'label' => __('Main Heading', 'featuredlite'),
1600
+ 'section' => 'our_team_heading_option',
1601
+ 'settings' => 'our_team_heading',
1602
+ 'type' => 'text',
1603
+ ));
1604
+
1605
+ $wp_customize->add_setting('our_team_subheading', array(
1606
+ 'default' => '',
1607
+ 'capability' => 'edit_theme_options',
1608
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1609
+
1610
+ ));
1611
+ $wp_customize->add_control('our_team_subheading', array(
1612
+ 'label' => __('Sub Heading', 'featuredlite'),
1613
+ 'section' => 'our_team_heading_option',
1614
+ 'settings' => 'our_team_subheading',
1615
+ 'type' => 'textarea',
1616
+ ));
1617
+ $wp_customize->add_setting('team_bg_color',
1618
+ array(
1619
+ 'default' => '#fff',
1620
+ 'type' => 'theme_mod',
1621
+ 'capability' => 'edit_theme_options',
1622
+ ) );
1623
+ $wp_customize->add_control(
1624
+ new Customize_themehunk_Color_Control($wp_customize,
1625
+ 'team_bg_color',
1626
+ array(
1627
+ 'label' => __('Background Color','featuredlite'),
1628
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
1629
+ 'section' => 'our_team_heading_option',
1630
+ 'settings' => 'team_bg_color',
1631
+ 'palette' => $palette
1632
+ )
1633
+ )
1634
+ );
1635
+ $wp_customize->add_setting('team_txt_color', array(
1636
+ 'default' => '#444',
1637
+ 'capability' => 'edit_theme_options',
1638
+ 'sanitize_callback' => 'sanitize_hex_color'
1639
+ ));
1640
+ $wp_customize->add_control(
1641
+ new WP_Customize_Color_Control($wp_customize,'team_txt_color', array(
1642
+ 'label' => __('Main Heading Color', 'featuredlite' ),
1643
+ 'section' => 'our_team_heading_option',
1644
+ 'settings' => 'team_txt_color',
1645
+ ) )
1646
+ );
1647
+ $wp_customize->add_setting('team_sub_hd_color', array(
1648
+ 'default' => '#444',
1649
+ 'capability' => 'edit_theme_options',
1650
+ 'sanitize_callback' => 'sanitize_hex_color'
1651
+ ));
1652
+ $wp_customize->add_control(
1653
+ new WP_Customize_Color_Control($wp_customize,'team_sub_hd_color', array(
1654
+ 'label' => __('Sub Heading Color', 'featuredlite' ),
1655
+ 'section' => 'our_team_heading_option',
1656
+ 'settings' => 'team_sub_hd_color',
1657
+ ) )
1658
+ );
1659
+
1660
+ //--------------------End team section------------------------------//
1661
+ //--------------------start woocommerce section---------------------------//
1662
+ $wp_customize->add_panel( 'our_woocommerce_panel', array(
1663
+ 'priority' => 11,
1664
+ 'capability' => 'edit_theme_options',
1665
+ 'theme_supports' => '',
1666
+ 'title' => __('WooCommerce Section', 'featuredlite'),
1667
+ 'description' => '',
1668
+ ) );
1669
+
1670
+ // Our woocommerce heading and subheading
1671
+ $wp_customize->add_section( 'woo_section', array(
1672
+ 'title' => __( 'WooCommerce Section','featuredlite' ),
1673
+ 'priority' => 11,
1674
+ ));
1675
+
1676
+ $wp_customize->add_setting('woo_head_', array(
1677
+ 'default' => '',
1678
+ 'capability' => 'edit_theme_options',
1679
+ 'sanitize_callback' => 'sanitize_text_field',
1680
+
1681
+ ));
1682
+ $wp_customize->add_control('woo_head_', array(
1683
+ 'label' => __('Main Heading', 'featuredlite'),
1684
+ 'section' => 'woo_section',
1685
+ 'settings' => 'woo_head_',
1686
+ 'type' => 'text',
1687
+ ));
1688
+
1689
+ $wp_customize->add_setting('woo_desc_', array(
1690
+ 'default' => '',
1691
+ 'capability' => 'edit_theme_options',
1692
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1693
+
1694
+ ));
1695
+ $wp_customize->add_control('woo_desc_', array(
1696
+ 'label' => __('Sub Heading', 'featuredlite'),
1697
+ 'section' => 'woo_section',
1698
+ 'settings' => 'woo_desc_',
1699
+ 'type' => 'textarea',
1700
+ ));
1701
+
1702
+ $wp_customize->add_setting('woo_shortcode', array(
1703
+ 'default' => '[recent_products]',
1704
+ 'capability' => 'edit_theme_options',
1705
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1706
+ ));
1707
+ $wp_customize->add_control('woo_shortcode', array(
1708
+ 'settings' => 'woo_shortcode',
1709
+ 'label' => 'WooCommerce ShortCode',
1710
+ 'section' => 'woo_section',
1711
+ 'type' => 'textarea',
1712
+ ) );
1713
+ $wp_customize->add_setting('woo_bg_color',
1714
+ array(
1715
+ 'default' => 'rgba(0, 0, 0, 0.3)',
1716
+ 'type' => 'theme_mod',
1717
+ 'capability' => 'edit_theme_options',
1718
+ ) );
1719
+ $wp_customize->add_control(
1720
+ new Customize_themehunk_Color_Control($wp_customize,
1721
+ 'woo_bg_color',
1722
+ array(
1723
+ 'label' => __('Background Color','featuredlite'),
1724
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
1725
+ 'section' => 'woo_section',
1726
+ 'settings' => 'woo_bg_color',
1727
+ 'palette' => $palette
1728
+ )
1729
+ )
1730
+ );
1731
+ $wp_customize->add_setting('woo_hd_color', array(
1732
+ 'default' => '#fff',
1733
+ 'capability' => 'edit_theme_options',
1734
+ 'sanitize_callback' => 'sanitize_hex_color'
1735
+ ));
1736
+ $wp_customize->add_control(
1737
+ new WP_Customize_Color_Control($wp_customize,'woo_hd_color', array(
1738
+ 'label' => __('Main Heading Color', 'featuredlite' ),
1739
+ 'section' => 'woo_section',
1740
+ 'settings' => 'woo_hd_color',
1741
+ ) )
1742
+ );
1743
+ $wp_customize->add_setting('woo_sub_hd_color', array(
1744
+ 'default' => '#fff',
1745
+ 'capability' => 'edit_theme_options',
1746
+ 'sanitize_callback' => 'sanitize_hex_color'
1747
+ ));
1748
+ $wp_customize->add_control(
1749
+ new WP_Customize_Color_Control($wp_customize,'woo_sub_hd_color', array(
1750
+ 'label' => __('Sub Heading Color', 'featuredlite' ),
1751
+ 'section' => 'woo_section',
1752
+ 'settings' => 'woo_sub_hd_color',
1753
+ ) )
1754
+ );
1755
+ //--------------------end woocommerce section---------------------------//
1756
+
1757
+
1758
+ // ============================= //
1759
+ // S5 = blog sections =
1760
+ // ============================= //
1761
+
1762
+ $wp_customize->add_section( 'blog_head_desc', array(
1763
+ 'title' => __( 'Recent Post Section','featuredlite' ),
1764
+ 'priority' => 13,
1765
+ ) );
1766
+ $wp_customize->add_setting('blog_head_', array(
1767
+ 'default' => __('Latest News & Blogs','featuredlite'),
1768
+ 'capability' => 'edit_theme_options',
1769
+ 'sanitize_callback' => 'sanitize_text_field',
1770
+
1771
+ ));
1772
+ $wp_customize->add_control('blog_head_', array(
1773
+ 'label' => __('Main Heading', 'featuredlite'),
1774
+ 'section' => 'blog_head_desc',
1775
+ 'settings' => 'blog_head_',
1776
+ 'type' => 'text',
1777
+ ));
1778
+
1779
+ $wp_customize->add_setting('blog_desc_', array(
1780
+ 'default' => '',
1781
+ 'capability' => 'edit_theme_options',
1782
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1783
+
1784
+ ));
1785
+ $wp_customize->add_control('blog_desc_', array(
1786
+ 'label' => __('Sub Heading', 'featuredlite'),
1787
+ 'section' => 'blog_head_desc',
1788
+ 'settings' => 'blog_desc_',
1789
+ 'type' => 'textarea',
1790
+ ));
1791
+
1792
+
1793
+ $cats = array();
1794
+ $cats[0] = 'All Categories';
1795
+ foreach ( get_categories() as $categories => $category ){
1796
+ $cats[$category->term_id] = $category->name;
1797
+ }
1798
+
1799
+ $wp_customize->add_setting('slider_cate', array(
1800
+ 'default' => 1,
1801
+ 'capability' => 'edit_theme_options',
1802
+ 'sanitize_callback' => 'esc_attr',
1803
+ ));
1804
+ $wp_customize->add_control('slider_cate', array(
1805
+ 'settings' => 'slider_cate',
1806
+ 'label' => __('Featured Post Category','featuredlite'),
1807
+ 'section' => 'blog_head_desc',
1808
+ 'type' => 'select',
1809
+ 'choices' => $cats,
1810
+ ) );
1811
+ $wp_customize->add_setting('slider_count', array(
1812
+ 'default' => 4,
1813
+ 'capability' => 'edit_theme_options',
1814
+ 'sanitize_callback' => 'esc_attr',
1815
+ ));
1816
+ $wp_customize->add_control('slider_count', array(
1817
+ 'settings' => 'slider_count',
1818
+ 'label' => __('Number of Post','featuredlite'),
1819
+ 'section' => 'blog_head_desc',
1820
+ 'type' => 'number',
1821
+ 'input_attrs' => array('min' => 1,'max' => 50)
1822
+
1823
+ ) );
1824
+ $wp_customize->add_setting('post_count', array(
1825
+ 'default' => 5,
1826
+ 'capability' => 'edit_theme_options',
1827
+ 'sanitize_callback' => 'esc_attr',
1828
+ ));
1829
+ $wp_customize->add_control('post_count', array(
1830
+ 'settings' => 'post_count',
1831
+ 'label' => __('Number of visible post ','featuredlite'),
1832
+ 'section' => 'blog_head_desc',
1833
+ 'type' => 'number',
1834
+ 'input_attrs' => array('min' => 1,'max' => 50)
1835
+
1836
+ ) );
1837
+ $wp_customize->add_setting('blog_bg_color',
1838
+ array(
1839
+ 'default' => 'rgba(0, 0, 0, 0.3)',
1840
+ 'type' => 'theme_mod',
1841
+ 'capability' => 'edit_theme_options',
1842
+ ) );
1843
+ $wp_customize->add_control(
1844
+ new Customize_themehunk_Color_Control($wp_customize,
1845
+ 'woo_bg_color',
1846
+ array(
1847
+ 'label' => __('Background Color','featuredlite'),
1848
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
1849
+ 'section' => 'blog_head_desc',
1850
+ 'settings' => 'blog_bg_color',
1851
+ 'palette' => $palette
1852
+ )
1853
+ )
1854
+ );
1855
+ $wp_customize->add_setting('blog_hd_color', array(
1856
+ 'default' => '#fff',
1857
+ 'capability' => 'edit_theme_options',
1858
+ 'sanitize_callback' => 'sanitize_hex_color'
1859
+ ));
1860
+ $wp_customize->add_control(
1861
+ new WP_Customize_Color_Control($wp_customize,'blog_hd_color', array(
1862
+ 'label' => __('Main Heading Color', 'featuredlite' ),
1863
+ 'section' => 'blog_head_desc',
1864
+ 'settings' => 'blog_hd_color',
1865
+ ) )
1866
+ );
1867
+ $wp_customize->add_setting('blog_sub_hd_color', array(
1868
+ 'default' => '#fff',
1869
+ 'capability' => 'edit_theme_options',
1870
+ 'sanitize_callback' => 'sanitize_hex_color'
1871
+ ));
1872
+ $wp_customize->add_control(
1873
+ new WP_Customize_Color_Control($wp_customize,'blog_sub_hd_color', array(
1874
+ 'label' => __('Sub Heading Color', 'featuredlite' ),
1875
+ 'section' => 'blog_head_desc',
1876
+ 'settings' => 'blog_sub_hd_color',
1877
+ ) )
1878
+ );
1879
+ //-------------------End blog heading Panel----------------------------//
1880
+
1881
+ // =============================
1882
+ // =S6 Testimonial Settings =
1883
+ // =============================
1884
+
1885
+ $wp_customize->add_panel( 'testimonial_panel', array(
1886
+ 'priority' => 12,
1887
+ 'capability' => 'edit_theme_options',
1888
+ 'theme_supports' => '',
1889
+ 'title' => __('Testimonial Section', 'featuredlite'),
1890
+ 'description' => '',
1891
+ ));
1892
+ // main heading
1893
+ $wp_customize->add_section('testimonial_heading_section', array(
1894
+ 'title' => __('Setting', 'featuredlite'),
1895
+ 'priority' => 1,
1896
+ 'panel' => 'testimonial_panel',
1897
+ ));
1898
+
1899
+ $wp_customize->add_setting('testimonial_heading', array(
1900
+ 'default' => '',
1901
+ 'capability' => 'edit_theme_options',
1902
+ 'sanitize_callback' => 'sanitize_text_field',
1903
+
1904
+ ));
1905
+ $wp_customize->add_control('testimonial_heading', array(
1906
+ 'label' => __('Main Heading', 'featuredlite'),
1907
+ 'section' => 'testimonial_heading_section',
1908
+ 'settings' => 'testimonial_heading',
1909
+ 'type' => 'text',
1910
+ ));
1911
+ $wp_customize->add_setting('testimonial_subheading', array(
1912
+ 'default' => '',
1913
+ 'capability' => 'edit_theme_options',
1914
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1915
+
1916
+ ));
1917
+ $wp_customize->add_control('testimonial_subheading', array(
1918
+ 'label' => __('Sub Heading', 'featuredlite'),
1919
+ 'section' => 'testimonial_heading_section',
1920
+ 'settings' => 'testimonial_subheading',
1921
+ 'type' => 'textarea',
1922
+ ));
1923
+ $wp_customize->add_setting('testimonial_bg_color',
1924
+ array(
1925
+ 'default' => '#fff',
1926
+ 'type' => 'theme_mod',
1927
+ 'capability' => 'edit_theme_options',
1928
+ ) );
1929
+ $wp_customize->add_control(
1930
+ new Customize_themehunk_Color_Control($wp_customize,
1931
+ 'testimonial_bg_color',
1932
+ array(
1933
+ 'label' => __('Background Color','featuredlite'),
1934
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
1935
+ 'section' => 'testimonial_heading_section',
1936
+ 'settings' => 'testimonial_bg_color',
1937
+ 'palette' => $palette
1938
+ )
1939
+ )
1940
+ );
1941
+ $wp_customize->add_setting('testimonial_txt_color', array(
1942
+ 'default' => '#444',
1943
+ 'capability' => 'edit_theme_options',
1944
+ 'sanitize_callback' => 'sanitize_hex_color'
1945
+ ));
1946
+ $wp_customize->add_control(
1947
+ new WP_Customize_Color_Control($wp_customize,'testimonial_txt_color', array(
1948
+ 'label' => __('Main Heading Color', 'featuredlite' ),
1949
+ 'section' => 'testimonial_heading_section',
1950
+ 'settings' => 'testimonial_txt_color',
1951
+ ) )
1952
+ );
1953
+ $wp_customize->add_setting('testimonial_sub_hd_color', array(
1954
+ 'default' => '#444',
1955
+ 'capability' => 'edit_theme_options',
1956
+ 'sanitize_callback' => 'sanitize_hex_color'
1957
+ ));
1958
+ $wp_customize->add_control(
1959
+ new WP_Customize_Color_Control($wp_customize,'testimonial_sub_hd_color', array(
1960
+ 'label' => __('Sub Heading Color', 'featuredlite' ),
1961
+ 'section' => 'testimonial_heading_section',
1962
+ 'settings' => 'testimonial_sub_hd_color',
1963
+ ) )
1964
+ );
1965
+ //-------------------End Author Section Panel----------------------------//
1966
+
1967
+ // = Our contact sections =//
1968
+ // ============================= //
1969
+ $wp_customize->add_panel( 'our_cnt_panel', array(
1970
+ 'priority' => 17,
1971
+ 'capability' => 'edit_theme_options',
1972
+ 'theme_supports' => '',
1973
+ 'title' => __('Contact Section', 'featuredlite'),
1974
+ 'description' => '',
1975
+ ) );
1976
+ $wp_customize->add_section('cnt_color_section', array(
1977
+ 'title' => __('Color Option', 'featuredlite'),
1978
+ 'priority' => 6,
1979
+ 'panel' => 'our_cnt_panel',
1980
+ ));
1981
+
1982
+ $wp_customize->add_setting('cnt_bg_color',
1983
+ array(
1984
+ 'default' => 'rgba(0, 0, 0, 0.3)',
1985
+ 'type' => 'theme_mod',
1986
+ 'capability' => 'edit_theme_options',
1987
+ ) );
1988
+ $wp_customize->add_control(
1989
+ new Customize_themehunk_Color_Control($wp_customize,
1990
+ 'cnt_bg_color',
1991
+ array(
1992
+ 'label' => __('Contact Background Color','featuredlite'),
1993
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','featuredlite'),
1994
+ 'section' => 'cnt_color_section',
1995
+ 'settings' => 'cnt_bg_color',
1996
+ 'palette' => $palette
1997
+ )
1998
+ )
1999
+ );
2000
+ // main-heading-color
2001
+ $wp_customize->add_setting('cnt_main_heading_color', array(
2002
+ 'default' => '#fff',
2003
+ 'capability' => 'edit_theme_options',
2004
+ 'sanitize_callback' => 'sanitize_hex_color'
2005
+ ));
2006
+ $wp_customize->add_control(
2007
+ new WP_Customize_Color_Control($wp_customize,'cnt_main_heading_color', array(
2008
+ 'label' => __('Main Heading Color', 'featuredlite' ),
2009
+ 'section' => 'cnt_color_section',
2010
+ 'settings' => 'cnt_main_heading_color',
2011
+ ) )
2012
+ );
2013
+ // sub-heading-color
2014
+ $wp_customize->add_setting('cnt_sub_heading_color', array(
2015
+ 'default' => '#fff',
2016
+ 'capability' => 'edit_theme_options',
2017
+ 'sanitize_callback' => 'sanitize_hex_color'
2018
+ ));
2019
+ $wp_customize->add_control(
2020
+ new WP_Customize_Color_Control($wp_customize,'cnt_sub_heading_color', array(
2021
+ 'label' => __('Sub Heading Color', 'featuredlite' ),
2022
+ 'section' => 'cnt_color_section',
2023
+ 'settings' => 'cnt_sub_heading_color',
2024
+ ) )
2025
+ );
2026
+ $wp_customize->add_setting('cnt_txt_color', array(
2027
+ 'default' => '#000',
2028
+ 'capability' => 'edit_theme_options',
2029
+ 'sanitize_callback' => 'sanitize_hex_color'
2030
+ ));
2031
+ $wp_customize->add_control(
2032
+ new WP_Customize_Color_Control($wp_customize,'cnt_txt_color', array(
2033
+ 'label' => __('Icon & Text Color', 'featuredlite' ),
2034
+ 'section' => 'cnt_color_section',
2035
+ 'settings' => 'cnt_txt_color',
2036
+ ) )
2037
+ );
2038
+ // Our contact heading and subheading
2039
+ $wp_customize->add_section('our_cnt_heading_option', array(
2040
+ 'title' => __('Setting', 'featuredlite'),
2041
+ 'priority' => 4,
2042
+ 'panel' => 'our_cnt_panel',
2043
+ ));
2044
+
2045
+ $wp_customize->add_setting('our_cnt_heading', array(
2046
+ 'default' => '',
2047
+ 'capability' => 'edit_theme_options',
2048
+ 'sanitize_callback' => 'sanitize_text_field',
2049
+
2050
+ ));
2051
+ $wp_customize->add_control('our_cnt_heading', array(
2052
+ 'label' => __('Main Heading', 'featuredlite'),
2053
+ 'section' => 'our_cnt_heading_option',
2054
+ 'settings' => 'our_cnt_heading',
2055
+ 'type' => 'text',
2056
+ ));
2057
+ $wp_customize->add_setting('our_cnt_subheading', array(
2058
+ 'default' => '',
2059
+ 'capability' => 'edit_theme_options',
2060
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
2061
+
2062
+ ));
2063
+ $wp_customize->add_control('our_cnt_subheading', array(
2064
+ 'label' => __('Sub Heading', 'featuredlite'),
2065
+ 'section' => 'our_cnt_heading_option',
2066
+ 'settings' => 'our_cnt_subheading',
2067
+ 'type' => 'textarea',
2068
+ ));
2069
+
2070
+ $wp_customize->add_setting('cf_shtcd_', array(
2071
+ 'default' => '[lead-form form-id=1 title=Contact Us]',
2072
+ 'capability' => 'edit_theme_options',
2073
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
2074
+
2075
+ ));
2076
+ $wp_customize->add_control('cf_shtcd_', array(
2077
+ 'label' => __('Leadform Shortcode', 'featuredlite'),
2078
+ 'description' => __('Install recommended <a target="_blank" href="//wordpress.org/plugins/lead-form-builder/">Contact Form & Lead Form Builder</a> Plugin for Contact Us form.', 'featuredlite'),
2079
+ 'section' => 'our_cnt_heading_option',
2080
+ 'settings' => 'cf_shtcd_',
2081
+ 'type' => 'textarea',
2082
+ ));
2083
+
2084
+ //tel
2085
+ $wp_customize->add_setting('cnt_tel', array(
2086
+ 'default' => '',
2087
+ 'capability' => 'edit_theme_options',
2088
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
2089
+
2090
+ ));
2091
+ $wp_customize->add_control('cnt_tel', array(
2092
+ 'label' => __('Mobile', 'featuredlite'),
2093
+ 'section' => 'our_cnt_heading_option',
2094
+ 'settings' => 'cnt_tel',
2095
+ 'type' => 'text',
2096
+ 'priority' => 20,
2097
+ ));
2098
+
2099
+ //adderess
2100
+ $wp_customize->add_setting('cnt_add', array(
2101
+ 'default' => '',
2102
+ 'capability' => 'edit_theme_options',
2103
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
2104
+
2105
+ ));
2106
+ $wp_customize->add_control('cnt_add', array(
2107
+ 'label' => __('Address', 'featuredlite'),
2108
+ 'section' => 'our_cnt_heading_option',
2109
+ 'settings' => 'cnt_add',
2110
+ 'type' => 'textarea',
2111
+ 'priority' => 20,
2112
+ ));
2113
+ //mail
2114
+ $wp_customize->add_setting('cnt_mail', array(
2115
+ 'default' => '',
2116
+ 'capability' => 'edit_theme_options',
2117
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
2118
+
2119
+ ));
2120
+ $wp_customize->add_control('cnt_mail', array(
2121
+ 'label' => __('Email', 'featuredlite'),
2122
+ 'section' => 'our_cnt_heading_option',
2123
+ 'settings' => 'cnt_mail',
2124
+ 'type' => 'text',
2125
+ 'priority' => 20,
2126
+ ));
2127
+
2128
+ //map
2129
+ $wp_customize->add_setting('map_add', array(
2130
+ 'default' => '',
2131
+ 'capability' => 'edit_theme_options',
2132
+ 'sanitize_callback' => 'themehunk_customizer_textarea_html'
2133
+ ));
2134
+ $wp_customize->add_control('map_add', array(
2135
+ 'label' => __('Map Address', 'featuredlite'),
2136
+ 'description' => __('insert goole map iframe <a target="_blank" href="https://www.google.co.in/maps">Map</a>','featured'),
2137
+ 'section' => 'our_cnt_heading_option',
2138
+ 'settings' => 'map_add',
2139
+ 'type' => 'textarea',
2140
+ 'priority' => 20,
2141
+ ));
2142
+
2143
+ // top section
2144
+ //===============================
2145
+ // = ADD-NEW section pro feature Settings =
2146
+ // =============================
2147
+ $wp_customize->add_section('section_addnew_', array(
2148
+ 'title' => __('Add New Section', 'featuredlite'),
2149
+ 'priority' => 18,
2150
+ ));
2151
+ $wp_customize->add_setting('feature_addnew_pro', array(
2152
+ 'sanitize_callback' => 'themehunk_sanitize_text',
2153
+ ));
2154
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'feature_addnew_pro',
2155
+ array(
2156
+ 'section' => 'section_addnew_',
2157
+ 'type' => 'custom_message',
2158
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//www.themehunk.com/product/featured/">FeaturedPro</a> for adding multiple new section!','featuredlite' )
2159
+ )));
2160
+
2161
+ $wp_customize->selective_refresh->add_partial('parallax_heading', array(
2162
+ 'selector' => '.main-header-section .main-text h1',
2163
+ ) );
2164
+ $wp_customize->selective_refresh->add_partial('parallax_subheading', array(
2165
+ 'selector' => '.main-header-section .main-text h2',
2166
+ ) );
2167
+ $wp_customize->selective_refresh->add_partial('parallax_button_text', array(
2168
+ 'selector' => '.main-header-section .main-button a',
2169
+ ) );
2170
+ // three coloum
2171
+ $wp_customize->selective_refresh->add_partial('first_parallax_font_icon', array(
2172
+ 'selector' => '.first a span.featured-icon',
2173
+ ) );
2174
+ $wp_customize->selective_refresh->add_partial('second_parallax_font_icon', array(
2175
+ 'selector' => '.second a span.featured-icon',
2176
+ ) );
2177
+ $wp_customize->selective_refresh->add_partial('third_parallax_font_icon', array(
2178
+ 'selector' => '.third a span.featured-icon',
2179
+ ) );
2180
+ // ribbon-top
2181
+ $wp_customize->selective_refresh->add_partial('hb_heading', array(
2182
+ 'selector' => '.ribbon-section h2.heading-area',
2183
+ ) );
2184
+ // services
2185
+ $wp_customize->selective_refresh->add_partial('our_services_heading', array(
2186
+ 'selector' => '#multifeature h2',
2187
+ ) );
2188
+ $wp_customize->selective_refresh->add_partial('our_services_subheading', array(
2189
+ 'selector' => '#multifeature h3.subhead-text',
2190
+ ) );
2191
+ // about us
2192
+ $wp_customize->selective_refresh->add_partial('about_us_heading', array(
2193
+ 'selector' => '#about h2',
2194
+ ) );
2195
+ $wp_customize->selective_refresh->add_partial('about_us_subheading', array(
2196
+ 'selector' => '#about p',
2197
+ ) );
2198
+ // blog
2199
+ $wp_customize->selective_refresh->add_partial('blog_head_', array(
2200
+ 'selector' => '#news h2',
2201
+ ) );
2202
+ $wp_customize->selective_refresh->add_partial('blog_desc_', array(
2203
+ 'selector' => '#news h3.subhead-text',
2204
+ ) );
2205
+ // testimonial
2206
+ $wp_customize->selective_refresh->add_partial('testimonial_heading', array(
2207
+ 'selector' => '#testimonials h2',
2208
+ ) );
2209
+ $wp_customize->selective_refresh->add_partial('testimonial_subheading', array(
2210
+ 'selector' => '#testimonials h3.subhead-text',
2211
+ ) );
2212
+ // news letter
2213
+ $wp_customize->selective_refresh->add_partial('cf_head_', array(
2214
+ 'selector' => '#newsletter h3',
2215
+ ) );
2216
+ // team
2217
+ $wp_customize->selective_refresh->add_partial('our_team_heading', array(
2218
+ 'selector' => '#team h2',
2219
+ ) );
2220
+ $wp_customize->selective_refresh->add_partial('our_team_subheading', array(
2221
+ 'selector' => '#team h3.subhead-text',
2222
+ ) );
2223
+ // price
2224
+ $wp_customize->selective_refresh->add_partial('our_price_heading', array(
2225
+ 'selector' => '#price h2',
2226
+ ) );
2227
+ $wp_customize->selective_refresh->add_partial('our_price_subheading', array(
2228
+ 'selector' => '#price h3.subhead-text',
2229
+ ) );
2230
+ // woocommerce
2231
+ $wp_customize->selective_refresh->add_partial('woo_head_', array(
2232
+ 'selector' => '.woocommerce-section h2.head-text',
2233
+ ) );
2234
+ $wp_customize->selective_refresh->add_partial('woo_desc_', array(
2235
+ 'selector' => '.woocommerce-section h3.subhead-text',
2236
+ ) );
2237
+ //bottom ribbon
2238
+ $wp_customize->selective_refresh->add_partial('hb_heading_bottom', array(
2239
+ 'selector' => '#bottom-ribbon h2.heading-area',
2240
+ ) );
2241
+ //contact
2242
+ $wp_customize->selective_refresh->add_partial('our_cnt_heading', array(
2243
+ 'selector' => '.contact-section h2',
2244
+ ) );
2245
+ $wp_customize->selective_refresh->add_partial('our_cnt_subheading', array(
2246
+ 'selector' => '.contact-section h3.subhead-text',
2247
+ ) );
2248
+ $wp_customize->selective_refresh->add_partial('cf_shtcd_', array(
2249
+ 'selector' => '.contact-wrap',
2250
+ ) );
2251
+ $wp_customize->selective_refresh->add_partial('cnt_tel', array(
2252
+ 'selector' => '.contact-section .cnt-detail ul li.tel .cnt-info',
2253
+ ) );
2254
+ $wp_customize->selective_refresh->add_partial('cnt_add', array(
2255
+ 'selector' => '.contact-section .cnt-detail ul li.address .cnt-info',
2256
+ ) );
2257
+ $wp_customize->selective_refresh->add_partial('cnt_mail', array(
2258
+ 'selector' => '.contact-section .cnt-detail ul li.email-ad .cnt-info',
2259
+ ) );
2260
+
2261
+ }
2262
+ add_action('customize_register','thunk_customize_register');
2263
+ ?>
featuredlite/customizer/customizer_styles.css ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #widget-customizer-control-templates, .control-section.control-section-sidebar, .customize-control-sidebar_widgets .hide-if-js, .customize-control-sidebar_widgets label, .customize-control-widget_form .widget-control-save{
2
+ display:block;
3
+ }
4
+
5
+ a.novel-docs-to-pro-button {
6
+ background: rgba(0, 128, 0, 0.75);
7
+ padding: 5px;
8
+ border-radius: 2px;
9
+ color: #fff;
10
+ position: relative;
11
+ top: 7px;
12
+ }
13
+ strong.panel-title.site-title {
14
+ margin-bottom: 10px;
15
+ }
16
+ /***Section drag and drop feature***/
17
+ #customize-control-home_sorting{
18
+ margin-top:20px;
19
+ }
20
+ #customize-control-home_sorting .customize-control-title{
21
+ margin-bottom:10px
22
+ }
23
+ ul#sortable li {
24
+ padding: 7px;
25
+ margin-bottom:15px;
26
+ box-shadow: 0 0 1px #7B7A7A;
27
+ cursor: move;
28
+ background: #fff;
29
+ }
30
+ ul#sortable li label{
31
+ cursor:move;
32
+ }
33
+ .ui-sortable-placeholder{
34
+ border: 2px dashed #00a0d2;
35
+ box-shadow: none!important;
36
+ min-height:20px;
37
+ }
38
+
39
+ .widget-content label {
40
+ padding-top: 10px;
41
+ padding-bottom: 10px;
42
+ display: block;
43
+ }
44
+
45
+ .widget-control-actions {
46
+ margin-top: 15px;
47
+ }
featuredlite/customizer/js/customizer.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function() {
2
+ // our service widget
3
+ wp.customize.section( 'sidebar-widgets-multi-service-widget' ).panel('services_panel');
4
+ wp.customize.section( 'sidebar-widgets-multi-service-widget' ).priority('5');
5
+
6
+ // team widget
7
+ wp.customize.section( 'sidebar-widgets-multi-team-widget' ).panel('team_panel');
8
+ wp.customize.section( 'sidebar-widgets-multi-team-widget' ).priority('5');
9
+
10
+ // testimonial widget
11
+ wp.customize.section( 'sidebar-widgets-testimonial-widget' ).panel('testimonial_panel');
12
+ wp.customize.section( 'sidebar-widgets-testimonial-widget' ).priority('5');
13
+ });
featuredlite/demo/import-data.php ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ add_filter( 'pt-ocdi/disable_pt_branding', '__return_true' );
3
+ add_filter( 'pt-ocdi/regenerate_thumbnails_in_content_import', '__return_false' );
4
+
5
+ function featuredlite_import_files(){
6
+ return apply_filters(
7
+ 'featuredlite_demo_site', array(
8
+ array(
9
+ 'import_file_name' => esc_html__('Featuredlite Default','featuredlite'),
10
+ 'import_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/featured-lite/blogs.xml'),
11
+ 'import_customizer_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/featured-lite/customizer.dat'),
12
+ 'import_widget_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/featured-lite/widgets.wie'),
13
+ 'import_notice' => __( 'Before importing the demo data, Install & Activate the recommended plugins.', 'featuredlite' ),
14
+ ),
15
+ )
16
+ );
17
+ }
18
+ add_filter( 'pt-ocdi/import_files', 'featuredlite_import_files');
19
+
20
+ function featuredlite_after_import(){
21
+ // Assign front page and posts page (blog page).
22
+ $front_page_id = null;
23
+ $blog_page_id = null;
24
+ $front_page = get_page_by_title( 'home' );
25
+ if ( $front_page ) {
26
+ if ( is_array( $front_page ) ){
27
+ $first_page = array_shift( $front_page );
28
+ $front_page_id = $first_page->ID;
29
+ } else {
30
+ $front_page_id = $front_page->ID;
31
+ }
32
+ }
33
+ $blog_page = get_page_by_title( 'blog' );
34
+ if ( $blog_page ) {
35
+ if ( is_array( $blog_page ) ) {
36
+ $first_page = array_shift( $blog_page );
37
+ $blog_page_id = $first_page->ID;
38
+ } else {
39
+ $blog_page_id = $blog_page->ID;
40
+ }
41
+ }
42
+ if ( $front_page_id && $blog_page_id ) {
43
+ update_option( 'show_on_front', 'page' );
44
+ update_option( 'page_on_front', $front_page_id );
45
+ update_option( 'page_for_posts', $blog_page_id );
46
+ }
47
+ // Assign navigation menu locations.
48
+ $menu_location_details = array(
49
+ 'page' => 'Main Menu'
50
+ );
51
+ if ( ! empty( $menu_location_details ) ){
52
+ $navigation_settings = array();
53
+ $current_navigation_menus = wp_get_nav_menus();
54
+ if ( ! empty( $current_navigation_menus ) && ! is_wp_error( $current_navigation_menus ) ) {
55
+ foreach ( $current_navigation_menus as $menu ) {
56
+ foreach ( $menu_location_details as $location => $menu_slug ) {
57
+ if ( $menu->slug === $menu_slug ) {
58
+ $navigation_settings[ $location ] = $menu->term_id;
59
+ }
60
+ }
61
+ }
62
+ }
63
+ set_theme_mod( 'nav_menu_locations', $navigation_settings );
64
+ }
65
+ }
66
+
67
+ add_action( 'pt-ocdi/after_import', 'featuredlite_after_import' );
featuredlite/images/about-us.png ADDED
Binary file
featuredlite/images/slider.jpeg ADDED
Binary file
featuredlite/images/team.jpg ADDED
Binary file
featuredlite/images/testimonia.png ADDED
Binary file
featuredlite/inc/constant.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php
2
+ define('FEATUREDLITE_THEME_URI',get_template_directory_uri());
3
+ define('FEATUREDLITE_HEADER_IMG', get_template_directory_uri()."/images/bg.jpg");
4
+ define('FEATUREDLITE_ABOUTUS', get_template_directory_uri()."/images/about-us.png");
featuredlite/inc/custom-style.php ADDED
@@ -0,0 +1,382 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // custom header background
3
+ add_action('wp_head','featured_lite_custom_style');
4
+ function featured_lite_custom_style(){
5
+ $top_hd_bg_color = get_theme_mod('top_hd_bg_color','rgba(0, 0, 0, 0.3)');
6
+ $main_hdng_color = get_theme_mod('main_hdng_color');
7
+ $brdr_hdng_color = get_theme_mod('brdr_hdng_color');
8
+ $sub_hdng_color = get_theme_mod('sub_hdng_color');
9
+ $first_colmn_bg_color = get_theme_mod('first_colmn_bg_color');
10
+ $first_colmn_icon_color = get_theme_mod('first_colmn_icon_color');
11
+ $first_colmn_hdng_color = get_theme_mod('first_colmn_hdng_color');
12
+ $first_colmn_desc_color = get_theme_mod('first_colmn_desc_color');
13
+ $second_colmn_bg_color = get_theme_mod('second_colmn_bg_color');
14
+ $second_colmn_icon_color = get_theme_mod('second_colmn_icon_color');
15
+ $second_colmn_hdng_color = get_theme_mod('second_colmn_hdng_color');
16
+ $second_colmn_desc_color = get_theme_mod('second_colmn_desc_color');
17
+ $third_colmn_bg_color = get_theme_mod('third_colmn_bg_color');
18
+ $third_colmn_icon_color = get_theme_mod('third_colmn_icon_color');
19
+ $third_colmn_hdng_color = get_theme_mod('third_colmn_hdng_color');
20
+ $third_colmn_desc_color = get_theme_mod('third_colmn_desc_color');
21
+ // top-bottom-ribon
22
+ $ribbon_color = get_theme_mod('ribbon_color');
23
+ $ribbon_btn_color = get_theme_mod('ribbon_button_color');
24
+ $ribbon_btn_hover_color = get_theme_mod('ribbon_button_hover_color');
25
+ $top_ribbon_txt_color = get_theme_mod('top_ribbon_txt_color');
26
+ $ribbon_color_bottom = get_theme_mod('ribbon_color_bottom');
27
+ $ribbon_btn_color_bottom = get_theme_mod('ribbon_button_color_bottom');
28
+ $ribbon_btn_hover_color_bottom = get_theme_mod('ribbon_button_hover_color_bottom');
29
+ $btm_ribbon_txt_color = get_theme_mod('btm_ribbon_txt_color');
30
+ $ribbon_button_txt_color = get_theme_mod('ribbon_button_txt_color');
31
+ $ribbon_button_txt_hvr_color = get_theme_mod('ribbon_button_txt_hvr_color');
32
+
33
+ $ribbon_button_color_txt_bottom = get_theme_mod('ribbon_button_color_txt_bottom');
34
+ $ribbon_button_color_txt__hvr_bottom = get_theme_mod('ribbon_button_color_txt__hvr_bottom');
35
+
36
+ // services
37
+ $service_bg_color = get_theme_mod('service_bg_color');
38
+ $srv_main_hd_color = get_theme_mod('srv_main_hd_color');
39
+ $srv_sub_hd_color = get_theme_mod('srv_sub_hd_color');
40
+ $srv_colom_bg_color = get_theme_mod('srv_colom_bg_color');
41
+ $srv_colom_hd_color = get_theme_mod('srv_colom_hd_color');
42
+ $srv_colom_txt_color = get_theme_mod('srv_colom_txt_color');
43
+ //aboutus
44
+ $about_bg = get_theme_mod('about_us_bg_color');
45
+ $about_txt = get_theme_mod('about_us_txt_color');
46
+ //team
47
+ $team_bg = get_theme_mod('team_bg_color');
48
+ $team_txt = get_theme_mod('team_txt_color');
49
+ $team_sub_hd_color = get_theme_mod('team_sub_hd_color');
50
+ //woocommerce
51
+ $woo_bg_color = get_theme_mod('woo_bg_color');
52
+ $woo_hd_color = get_theme_mod('woo_hd_color');
53
+ $woo_sub_hd_color= get_theme_mod('woo_sub_hd_color');
54
+ //testimonial
55
+ $testimonial_bg = get_theme_mod('testimonial_bg_color');
56
+ $testimonial_txt = get_theme_mod('testimonial_txt_color');
57
+ $testimonial_sub_hd_color = get_theme_mod('testimonial_sub_hd_color');
58
+ //recent post
59
+ $blog_bg_color = get_theme_mod('blog_bg_color');
60
+ $blog_hd_color = get_theme_mod('blog_hd_color');
61
+ $blog_sub_hd_color = get_theme_mod('blog_sub_hd_color');
62
+ //contact
63
+ $cnt_bg = get_theme_mod('cnt_bg_color','rgba(0, 0, 0, 0.3)');
64
+ $cnt_main_heading_color = get_theme_mod('cnt_main_heading_color');
65
+ $cnt_sub_heading_color = get_theme_mod('cnt_sub_heading_color');
66
+ $cnt_txt = get_theme_mod('cnt_txt_color');
67
+ // site-color
68
+ $theme_color = get_theme_mod('theme_color','#f16c20');
69
+ $footer_bg_color = get_theme_mod('footer_bg_color');
70
+ $footer_info_bg_color = get_theme_mod('footer_info_bg_color');
71
+ $hd_bg_color = get_theme_mod('hd_bg_color');
72
+ $shrnk_hd_bg_color = get_theme_mod('shrnk_hd_bg_color');
73
+ $site_title_color = get_theme_mod('site_title_color');
74
+ $hd_menu_color = get_theme_mod('hd_menu_color','#fff');
75
+ $hd_menu_hvr_color = get_theme_mod('hd_menu_hvr_color','#f16c20');
76
+ $mobile_menu_bg_color = get_theme_mod('mobile_menu_bg_color');
77
+
78
+ echo "<style type='text/css'>"; ?>
79
+ .loader {
80
+ border-top: 2px solid <?php echo $theme_color; ?>;
81
+ }
82
+ #respond input#submit{
83
+ background:<?php echo $theme_color; ?>;
84
+ }
85
+ .woocommerce #content input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover, .woocommerce-page #content input.button:hover, .woocommerce-page #respond input#submit:hover, .woocommerce-page a.button:hover, .woocommerce-page button.button:hover, .woocommerce-page input.button:hover, .woocommerce #content input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover, .woocommerce-page #content input.button.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce-page button.button.alt:hover, .woocommerce-page input.button.alt:hover, .woocommerce ul.products li.product a.button:hover, .woocommerce.archive ul.products li.product a.button:hover, .woocommerce-page.archive ul.products li.product a.button:hover,.woocommerce nav.woocommerce-pagination ul li span.current,
86
+ .woocommerce-page nav.woocommerce-pagination ul li a:hover,.woocommerce nav.woocommerce-pagination ul li a:focus,.woocommerce-page nav.woocommerce-pagination ul li a:focus {
87
+ background:<?php echo $theme_color;?>;
88
+ }
89
+ .woocommerce ul.products li.product a.button, .woocommerce.archive ul.products li.product a.button, .woocommerce-page.archive ul.products li.product a.button {
90
+ background:<?php echo $theme_color;?>;
91
+ }
92
+ .home .switch-lead .leadform-show-form.leadform-lite input[type="submit"] {
93
+ background-color:<?php echo $theme_color; ?>!important;
94
+ }
95
+ .home .switch-lead .lead-genration-wrapper .popup .close {
96
+ color: <?php echo $theme_color; ?>;
97
+ }
98
+ .last-btn .navigation ul#menu > li:last-child > a{
99
+ border: 2px solid <?php echo $theme_color; ?>;
100
+ color: <?php echo $theme_color; ?>;
101
+ }
102
+ .last-btn .menu-item-has-children > a:after{
103
+ color: <?php echo $theme_color; ?>;
104
+ }
105
+ .last-btn.smaller .navigation ul#menu > li:last-child > a{
106
+ border: 2px solid <?php echo $theme_color; ?>;
107
+ background:<?php echo $theme_color; ?>
108
+ }
109
+ blockquote:before,
110
+ ul.multiple-testimonial-section li.multi-testimonial blockquote:before, a:hover, a:focus {
111
+ color: <?php echo $theme_color; ?>;
112
+ }
113
+ span.multi-featured-icon i, #move-to-top .fa-angle-up:before {
114
+ color: <?php echo $theme_color; ?>;
115
+ }
116
+ span.multi-testimonial-image img {
117
+ box-shadow: 0px 0px 0px 1px <?php echo $theme_color; ?>;
118
+ }
119
+ ul.multiple-featured-section li:hover span.multi-featured-icon i {
120
+ background-color: <?php echo $theme_color; ?>;
121
+ color: #fff;
122
+ border-color: <?php echo $theme_color; ?>;
123
+ }
124
+ ul.multiple-testimonial-section li.multi-testimonial a.author{
125
+ color: <?php echo $theme_color; ?>!important;
126
+ }
127
+ .wpcf7 input[type=submit] {
128
+ background:<?php echo $theme_color; ?>;
129
+ }
130
+ input.search-submit {
131
+ background:<?php echo $theme_color; ?>;
132
+ }
133
+ .newsletter-wrapper form.Newsletter-form input[type="submit"] {
134
+ background: <?php echo $theme_color; ?>;
135
+ color: #fff;
136
+ }
137
+ .blog-container .blog-loop .read-more a, .single-container .single-loop .read-more a {
138
+ border: 1px solid <?php echo $theme_color; ?>;
139
+ color: <?php echo $theme_color; ?>;
140
+ }
141
+ .blog-container .blog-loop .read-more a:hover, .single-container .single-loop .read-more a:hover, .tagcloud a {
142
+ background-color: <?php echo $theme_color; ?>;
143
+ }
144
+ .blog-container .breadcrumb h4, .single-container .breadcrumb h4{
145
+ border-bottom: 2px solid <?php echo $theme_color; ?>;
146
+ }
147
+ .contact-wrap .form-group:before {
148
+ background: <?php echo $theme_color; ?>;
149
+ }
150
+ .contact-wrap .form-group.form-lined:before {
151
+ background: <?php echo $theme_color; ?>;
152
+ }
153
+ .contact-wrap .leadform-show-form.leadform-lite input[type="submit"]{
154
+ background: <?php echo $theme_color; ?>;
155
+ }
156
+ .widgettitle > span:before, .widgettitle > span:after{
157
+ border-color: <?php echo $theme_color; ?>;
158
+ }
159
+ .widgettitle > span:before, .widgettitle > span:after, .page .breadcrumb h1:after, #move-to-top, .widgettitle, .tagcloud a, h1.page-title:after {
160
+ border-color: <?php echo $theme_color; ?>!important;
161
+ }
162
+ .woocommerce span.onsale, .woocommerce-page span.onsale {
163
+ background-color:<?php echo$theme_color;?>
164
+ }
165
+ .woocommerce-page #respond input#submit {
166
+ background:<?php echo$theme_color;?>
167
+ }
168
+ .woocommerce ul.products li.product a.button{
169
+ background-color:<?php echo$theme_color;?>
170
+ }
171
+ .woocommerce ul.products li.product a.button:hover{
172
+ background-color:<?php echo$theme_color;?>
173
+ }
174
+ .woocommerce-page a.button{
175
+ background-color:<?php echo$theme_color;?>
176
+ }
177
+ .woocommerce div.product form.cart .button {
178
+ background-color:<?php echo$theme_color;?>
179
+ }
180
+ .woocommerce .cart .button, .woocommerce .cart input.button,.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt{
181
+ background-color:<?php echo$theme_color;?>
182
+ }
183
+ .footer-wrapper{
184
+ background:<?php echo $footer_bg_color;?>
185
+ }
186
+ .footer-copyright{
187
+ background:<?php echo $footer_info_bg_color;?>
188
+ }
189
+ .header-wrapper{
190
+ background:<?php echo $hd_bg_color;?>
191
+ }
192
+ header.smaller .header-wrapper,
193
+ .home .hdr-transparent.smaller .header-wrapper{
194
+ background:<?php echo $shrnk_hd_bg_color;?>
195
+ }
196
+ .logo h1 a,.logo p,
197
+ .split-menu .logo-cent h1 a,
198
+ .split-menu .logo-cent p{
199
+ color:<?php echo $site_title_color; ?>
200
+ }
201
+ .navigation .menu > li > a,
202
+ .menu-item-has-children > a:after{
203
+ color:<?php echo $hd_menu_color; ?>
204
+ }
205
+ .navigation ul li a:hover,
206
+ .navigation .menu .current_page_item a,
207
+ .navigation .menu li a.active{
208
+ color:<?php echo $hd_menu_hvr_color; ?>
209
+ }
210
+ @media screen and (max-width: 1024px){
211
+ .navigation ul li a:hover,
212
+ .navigation .menu .current_page_item a,
213
+ .navigation .menu li a.active{
214
+ background:<?php echo $hd_menu_hvr_color; ?>;
215
+ color:#fff!important;
216
+ }
217
+ .header a#pull{
218
+ color:<?php echo $mobile_menu_bg_color; ?>
219
+ }
220
+ }
221
+
222
+ .main-header-section{
223
+ background-color:<?php echo $top_hd_bg_color;?>
224
+ }
225
+ .main-header-section .main-text h1{
226
+ color:<?php echo $main_hdng_color;?>
227
+ }
228
+ .main-header-section .main-text h2{
229
+ color:<?php echo $sub_hdng_color;?>
230
+ }
231
+ .main-header-section .main-head-partition{
232
+ border-color:<?php echo $brdr_hdng_color;?>
233
+ }
234
+ .featured-section.first a:hover{
235
+ background-color:<?php echo $first_colmn_bg_color;?>
236
+ }
237
+ .featured-section.first span.featured-icon i{
238
+ color:<?php echo $first_colmn_icon_color; ?>;
239
+ border-color:<?php echo $first_colmn_icon_color; ?>
240
+ }
241
+ .featured-section.first h3{
242
+ color:<?php echo $first_colmn_hdng_color; ?>
243
+ }
244
+ .featured-section.first p{
245
+ color:<?php echo $first_colmn_desc_color; ?>
246
+ }
247
+
248
+ .featured-section.second a:hover{
249
+ background-color:<?php echo $second_colmn_bg_color;?>
250
+ }
251
+ .featured-section.second span.featured-icon i{
252
+ color:<?php echo $second_colmn_icon_color; ?>;
253
+ border-color:<?php echo $second_colmn_icon_color; ?>
254
+ }
255
+ .featured-section.second h3{
256
+ color:<?php echo $second_colmn_hdng_color; ?>
257
+ }
258
+ .featured-section.second p{
259
+ color:<?php echo $second_colmn_desc_color; ?>
260
+ }
261
+ .featured-section.third a:hover{
262
+ background-color:<?php echo $third_colmn_bg_color;?>
263
+ }
264
+ .featured-section.third span.featured-icon i{
265
+ color:<?php echo $third_colmn_icon_color; ?>;
266
+ border-color:<?php echo $third_colmn_icon_color; ?>
267
+ }
268
+ .featured-section.third h3{
269
+ color:<?php echo $third_colmn_hdng_color; ?>
270
+ }
271
+ .featured-section.third p{
272
+ color:<?php echo $third_colmn_desc_color; ?>
273
+ }
274
+
275
+ .ribbon-section{
276
+ background: <?php echo $ribbon_color; ?>;
277
+ }
278
+ .ribbon-section .ribbon-button button:hover{
279
+ background: <?php echo $ribbon_btn_hover_color; ?>;
280
+ color: <?php echo $ribbon_button_txt_hvr_color; ?>;
281
+ }
282
+ .ribbon-section h2.heading-area{
283
+ color:<?php echo $top_ribbon_txt_color;?>
284
+ }
285
+ .ribbon-section .ribbon-button button{
286
+ background: <?php echo $ribbon_btn_color; ?>;
287
+ color: <?php echo $ribbon_button_txt_color; ?>;
288
+ }
289
+ .bottom-ribbon-section{
290
+ background:<?php echo $ribbon_color_bottom; ?>;
291
+ }
292
+ .bottom-ribbon-section .ribbon-button button:hover {
293
+ background:<?php echo $ribbon_btn_hover_color_bottom; ?>;
294
+ color:<?php echo $ribbon_button_color_txt__hvr_bottom; ?>;
295
+ }
296
+ .bottom-ribbon-section .ribbon-button button{
297
+ background:<?php echo $ribbon_btn_color_bottom; ?>;
298
+ color:<?php echo $ribbon_button_color_txt_bottom; ?>;
299
+ }
300
+ .bottom-ribbon-section h2.heading-area{
301
+ color:<?php echo $btm_ribbon_txt_color; ?>;
302
+ }
303
+
304
+ .multi-feature-area {
305
+ background-color: <?php echo $service_bg_color; ?>;
306
+ }
307
+ .multi-feature-area h2.head-text{
308
+ color:<?php echo $srv_main_hd_color;?>
309
+ }
310
+ .multi-feature-area h3.subhead-text{
311
+ color:<?php echo $srv_sub_hd_color;?>
312
+ }
313
+
314
+ ul.multiple-featured-section li.multi-featured{
315
+ background:<?php echo $srv_colom_bg_color;?>
316
+ }
317
+
318
+ .multi-feature-area h3{
319
+ color:<?php echo $srv_colom_hd_color;?>
320
+ }
321
+ ul.multiple-featured-section li.multi-featured p{
322
+ color:<?php echo $srv_colom_txt_color;?>
323
+ }
324
+ .aboutus-section {
325
+ background: <?php echo $about_bg; ?>;
326
+ }
327
+ .aboutus-text h2, .aboutus-text p{
328
+ color: <?php echo $about_txt; ?>;
329
+ }
330
+ .client-team-section {
331
+ background:<?php echo $team_bg; ?>;
332
+ }
333
+ .client-team-section h2 {
334
+ color: <?php echo $team_txt; ?>;
335
+ }
336
+ .client-team-section h3 {
337
+ color: <?php echo $team_sub_hd_color; ?>;
338
+ }
339
+ #woocommerce.woocommerce-section{
340
+ background:<?php echo $woo_bg_color; ?>;
341
+ }
342
+ .woocommerce-section h2{
343
+ color:<?php echo $woo_hd_color; ?>
344
+ }
345
+ .woocommerce-section h3{
346
+ color:<?php echo $woo_sub_hd_color; ?>
347
+ }
348
+ .client-testimonial-section {
349
+ background: <?php echo $testimonial_bg; ?>;
350
+ }
351
+ .client-testimonial-section h2 {
352
+ color: <?php echo $testimonial_txt; ?>;
353
+ }
354
+ #testimonials h3.subhead-text{
355
+ color: <?php echo $testimonial_sub_hd_color; ?>;
356
+ }
357
+ #news.multi-slider-area{
358
+ background: <?php echo $blog_bg_color; ?>
359
+ }
360
+ #news.multi-slider-area h2.head-text{
361
+ color:<?php echo $blog_hd_color; ?>
362
+ }
363
+ #news.multi-slider-area h3.subhead-text{
364
+ color:<?php echo $blog_sub_hd_color; ?>
365
+ }
366
+ .contact-section{
367
+ background:<?php echo $cnt_bg; ?>
368
+ }
369
+ .contact-section h2{
370
+ color: <?php echo $cnt_main_heading_color; ?>;
371
+ }
372
+ .contact-section h3.subhead-text{
373
+ color: <?php echo $cnt_sub_heading_color; ?>;
374
+ }
375
+ .cnt-detail .cnt-icon i, .cnt-detail .cnt-info a, .cnt-info p{
376
+ color: <?php echo $cnt_txt; ?>;
377
+ }
378
+ <?php
379
+ echo get_theme_mod('custom_css_text');
380
+ echo "</style>";
381
+ }
382
+ ?>
featuredlite/inc/shortcode.php ADDED
@@ -0,0 +1,439 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+ function themehunk_customizer_add_shotcode($section=''){
4
+ $return =''; ?>
5
+ <?php if($section=='parallax'):
6
+ $bnt_style = get_theme_mod('slidr_button','default'); ?>
7
+ <div class="main-header-section <?php echo $bnt_style; ?>">
8
+ <div class="container">
9
+ <div class="main-text wow thunk-fadeInDown" data-wow-duration="2s">
10
+ <?php if(get_theme_mod( 'parallax_heading',__('Beautiful Wordpress Business Themes','featuredlite'))!=''){?>
11
+ <h1><?php echo get_theme_mod( 'parallax_heading',__('BEAUTIFUL WORDPRESS BUSINESS THEMES','featuredlite')); ?></h1>
12
+ <?php } ?>
13
+ <div class="main-head-partition"></div>
14
+ <?php if(get_theme_mod( 'parallax_subheading',__('Best Optimized WordPress Themes','featuredlite'))!=''){?>
15
+ <h2><?php echo get_theme_mod( 'parallax_subheading',__('Best Optimized WordPress Themes','featuredlite')); ?></h2>
16
+ <?php } ?>
17
+ <?php if(get_theme_mod( 'parallax_button_link','#')!=''){?>
18
+ <div class="main-button">
19
+ <?php if(get_theme_mod( 'prlx_opn_new_tab')==''){?>
20
+ <a class="page-scroll" href="<?php echo get_theme_mod( 'parallax_button_link','#'); ?>"><button><?php echo get_theme_mod( 'parallax_button_text',__('Buy Now','featuredlite')); ?></button></a>
21
+ <?php } else { ?>
22
+ <a class="page-scroll" href="<?php echo get_theme_mod( 'parallax_button_link','#'); ?>" target=_blank><button><?php echo get_theme_mod( 'parallax_button_text',__('Buy Now','featuredlite')); ?></button></a>
23
+ <?php } ?>
24
+ </div>
25
+ <?php } ?>
26
+ </div>
27
+ </div>
28
+ <?php elseif($section=='slider'): ?>
29
+ <?php $i=0; ?>
30
+ <div class="fadein-slider">
31
+ <?php if (get_theme_mod('first_slider_image','') != '') { $i++; ?>
32
+ <div class="slide-item" style="background-image: url('<?php echo get_theme_mod( 'first_slider_image'); ?>');"></div>
33
+ <?php } else {?>
34
+ <div class="slide-item" style="background-image: url('<?php echo get_template_directory_uri(); ?>/images/bg.jpg');"></div>
35
+ <?php } ?>
36
+ <?php if (get_theme_mod('second_slider_image','') != '') { $i++; ?>
37
+ <div class="slide-item" style="background-image: url('<?php echo get_theme_mod( 'second_slider_image'); ?>');"></div>
38
+ <?php } ?>
39
+ <?php if (get_theme_mod('third_slider_image','') != '') { $i++; ?>
40
+ <div class="slide-item" style="background-image: url('<?php echo get_theme_mod( 'third_slider_image'); ?>');"></div>
41
+ <?php } ?>
42
+ </ul>
43
+ </div>
44
+ <?php elseif($section=='three-column'): ?>
45
+ <li class="featured-section first wow thunk-fadeInLeftBig" data-wow-duration="2s">
46
+ <a href="<?php echo get_theme_mod('first_parallax_link','#'); ?>">
47
+ <span class="featured-icon">
48
+ <i class="<?php echo get_theme_mod('first_parallax_font_icon','fa fa-leaf'); ?>"></i>
49
+ </span>
50
+ <?php if(get_theme_mod( 'first_parallax_heading')==''){?>
51
+ <h3><?php _e('Parallax Effect','featuredlite');?></h3>
52
+ <?php } else{ ?>
53
+ <h3><?php echo get_theme_mod( 'first_parallax_heading'); ?></h3>
54
+ <?php } ?>
55
+ <?php if(get_theme_mod( 'first_parallax_desc')==''){?>
56
+ <p><?php _e('Lorem Ipsum is simply dummy text','featuredlite');?></p>
57
+ <?php } else { ?>
58
+ <p><?php echo get_theme_mod( 'first_parallax_desc'); ?></p>
59
+ <?php } ?>
60
+ </a>
61
+ </li>
62
+ <li class="featured-section second wow thunk-fadeInUpBig" data-wow-duration="2s">
63
+ <a href="<?php echo get_theme_mod('second_parallax_link','#'); ?>">
64
+ <span class="featured-icon">
65
+ <i class="<?php echo get_theme_mod('second_parallax_font_icon','fa fa-apple'); ?>"></i>
66
+ </span>
67
+ <?php if(get_theme_mod( 'second_parallax_heading')==''){?>
68
+ <h3><?php _e('Unlimited options','featuredlite');?></h3>
69
+ <?php } else{ ?>
70
+ <h3><?php echo get_theme_mod( 'second_parallax_heading'); ?></h3>
71
+ <?php } ?>
72
+ <?php if(get_theme_mod( 'second_parallax_desc')==''){?>
73
+ <p><?php _e('Lorem Ipsum is simply dummy text','featuredlite');?></p>
74
+ <?php } else { ?>
75
+ <p><?php echo get_theme_mod( 'second_parallax_desc'); ?></p>
76
+ <?php } ?>
77
+ </a>
78
+ </li>
79
+ <li class="featured-section third wow thunk-fadeInRightBig" data-wow-duration="2s">
80
+ <a href="<?php echo get_theme_mod('third_parallax_link','#'); ?>">
81
+ <span class="featured-icon">
82
+ <i class="<?php echo get_theme_mod('third_parallax_font_icon','fa fa-ban'); ?>"></i>
83
+ </span>
84
+ <?php if(get_theme_mod( 'third_parallax_heading')==''){?>
85
+ <h3><?php _e('Responsive design','featuredlite');?></h3>
86
+ <?php } else{ ?>
87
+ <h3><?php echo get_theme_mod( 'third_parallax_heading'); ?></h3>
88
+ <?php } ?>
89
+ <?php if(get_theme_mod( 'third_parallax_desc')==''){?>
90
+ <p><?php _e('Lorem Ipsum is simply dummy text','featuredlite');?></p>
91
+ <?php } else { ?>
92
+ <p><?php echo get_theme_mod( 'third_parallax_desc'); ?></p>
93
+ <?php } ?>
94
+ </a>
95
+ </li>
96
+ <?php elseif($section=='about_us'):?>
97
+ <?php if(get_theme_mod( 'about_us_image')!=''){?>
98
+ <div class="aboutus-image wow thunk-fadeInRight" data-wow-duration="1s">
99
+ <img src="<?php echo get_theme_mod( 'about_us_image'); ?>">
100
+ </div>
101
+ <?php } else { ?>
102
+ <div class="aboutus-image wow thunk-fadeInRight" data-wow-duration="1s">
103
+ <img src="<?php echo get_template_directory_uri(); ?>/images/about-us.png">
104
+ </div>
105
+ <?php } ?>
106
+ <div class="aboutus-text wow thunk-fadeInLeft" data-wow-duration="1s">
107
+ <?php if(get_theme_mod( 'about_us_heading')!=''){?>
108
+ <h2 class="head-text"><?php echo get_theme_mod( 'about_us_heading'); ?></h2>
109
+ <?php } else { ?>
110
+ <h2 class="head-text"><?php _e('About Us','featuredlite');?></h2>
111
+ <?php } ?>
112
+ <?php if(get_theme_mod( 'about_us_subheading')!=''){?>
113
+ <p><?php echo get_theme_mod( 'about_us_subheading'); ?></p>
114
+ <?php } else{ ?>
115
+ <p><?php _e('Lorem Ipsum is simply ras ac sapien erat. Mauris justo elit, faucibus sed interdum vitae, vestibulum et dui. Suspendisse convallis a nulla nec placerat. Cras ac porta ipsum. Nam suscipit eros ut neque posuere, aliquam dapibus metus congue. Praesent ullamcorper vulputate tempus. Praesent eget est egestas, sagittis leo vel, interdum mi. Maecenas nec arcu gravida justo mollis condimentum. Proin quis nulla quis nisi sagittis finibus. Fusce efficitur blandit nulla, luctus viverra enim lacinia a.','featuredlite');?></p>
116
+ <?php } ?>
117
+ <?php elseif($section=='bottom_ribbon'):?>
118
+ <?php if(get_theme_mod( 'hb_heading_bottom')==''){?>
119
+ <h2 class="heading-area wow thunk-fadeInLeft" data-wow-duration="2s"><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry.','featuredlite'); ?></h2>
120
+
121
+ <?php } else { ?>
122
+ <h2 class="heading-area wow thunk-fadeInLeft" data-wow-duration="2s"><?php echo get_theme_mod( 'hb_heading_bottom'); ?></h2>
123
+ <?php } ?>
124
+
125
+ <?php if(get_theme_mod( 'hb_button_text_bottom','Read More')!=''){?>
126
+ <div class="ribbon-button wow thunk-fadeInRight" data-wow-duration="2s">
127
+ <?php if(get_theme_mod( 'btm_opn_new_tab')==''){?>
128
+ <a href="<?php echo get_theme_mod( 'hb_button_link_bottom','#'); ?>"><button><?php echo get_theme_mod( 'hb_button_text_bottom','Read More'); ?></button></a>
129
+ <?php } else { ?>
130
+ <a href="<?php echo get_theme_mod( 'hb_button_link_bottom','#'); ?>" target=_blank><button><?php echo get_theme_mod( 'hb_button_text_bottom','Read More'); ?></button></a>
131
+ <?php } ?>
132
+ </div>
133
+ <?php } ?>
134
+
135
+ <?php elseif($section=='ribbon'):
136
+ if(get_theme_mod( 'hb_heading')==''){?>
137
+ <h2 class="heading-area wow thunk-fadeInLeft" data-wow-duration="2s"><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry.','featuredlite');?></h2>
138
+ <?php } else { ?>
139
+ <h2 class="heading-area wow thunk-fadeInLeft" data-wow-duration="2s"><?php echo get_theme_mod( 'hb_heading'); ?></h2>
140
+ <?php } ?>
141
+ <?php if(get_theme_mod( 'hb_button_text','Read More')!=''){?>
142
+ <div class="ribbon-button wow thunk-fadeInRight" data-wow-duration="2s">
143
+ <?php if(get_theme_mod( 'top_opn_new_tab')==''){?>
144
+ <a href="<?php echo get_theme_mod( 'hb_button_link','#'); ?>"><button><?php echo get_theme_mod( 'hb_button_text','Read More'); ?></button></a>
145
+ <?php }else{?>
146
+ <a href="<?php echo get_theme_mod( 'hb_button_link','#'); ?>" target=_blank><button><?php echo get_theme_mod( 'hb_button_text','Read More'); ?></button></a>
147
+ <?php } ?>
148
+ </div>
149
+ <?php } ?>
150
+
151
+ <?php elseif($section=='service'): ?>
152
+ <?php if(get_theme_mod( 'our_services_heading')!=''){?>
153
+ <h2 class="head-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php echo get_theme_mod( 'our_services_heading'); ?></h2>
154
+ <?php } else { ?>
155
+ <h2 class="head-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php _e('Our Services','featuredlite');?></h2>
156
+ <?php } ?>
157
+ <?php if(get_theme_mod( 'our_services_subheading')!=''){?>
158
+ <h3 class="subhead-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php echo get_theme_mod( 'our_services_subheading'); ?></h3>
159
+ <?php } else { ?>
160
+ <h3 class="subhead-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry','featuredlite');?></h3>
161
+ <?php } ?>
162
+ <ul class="multiple-featured-section wow thunk-fadeInRight" data-wow-duration="1s">
163
+ <?php
164
+ if ( is_active_sidebar( 'multi-service-widget' ) ){
165
+ dynamic_sidebar( 'multi-service-widget' );
166
+ } else{
167
+ ?>
168
+ <li class="multi-featured first">
169
+ <a href="#"><span class="multi-featured-icon"><i class="fa fa-sitemap"></i></span></a>
170
+ <div class="clearfix"></div>
171
+ <a href="#"><h3><?php _e('sitemap planner','featuredlite');?></h3></a>
172
+ <p><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrystandard dummy text ever since the 1500s','featuredlite');?></p>
173
+ </li>
174
+ <li class="multi-featured second">
175
+ <a href="#"><span class="multi-featured-icon"><i class="fa fa-sitemap"></i></span></a>
176
+ <div class="clearfix"></div>
177
+ <a href="#"><h3><?php _e('sitemap planner','featuredlite');?></h3></a>
178
+ <p><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s','featuredlite');?></p>
179
+ </li>
180
+ <li class="multi-featured third">
181
+ <a href="#"><span class="multi-featured-icon"><i class="fa fa-sitemap"></i></span></a>
182
+ <div class="clearfix"></div>
183
+ <a href="#"><h3><?php _e('sitemap planner','featuredlite');?></h3></a>
184
+ <p><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s','featuredlite');?></p>
185
+ </li>
186
+ <li class="multi-featured fourth">
187
+ <a href="#"><span class="multi-featured-icon"><i class="fa fa-sitemap"></i></span></a>
188
+ <div class="clearfix"></div>
189
+ <a href="#"><h3><?php _e('sitemap planner','featuredlite');?></h3></a>
190
+ <p><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s','featuredlite');?></p>
191
+ </li>
192
+ <li class="multi-featured fifth">
193
+ <a href="#"><span class="multi-featured-icon"><i class="fa fa-sitemap"></i></span></a>
194
+ <div class="clearfix"></div>
195
+ <a href="#"><h3><?php _e('sitemap planner','featuredlite');?></h3></a>
196
+ <p><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s','featuredlite');?></p>
197
+ </li>
198
+ <li class="multi-featured sixth">
199
+ <a href="#"><span class="multi-featured-icon"><i class="fa fa-sitemap"></i></span></a>
200
+ <div class="clearfix"></div>
201
+ <a href="#"><h3><?php _e('sitemap planner','featuredlite');?></h3></a>
202
+ <p><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s','featuredlite');?></p>
203
+ </li>
204
+ <?php } ?>
205
+ </ul>
206
+ <?php elseif($section=='team'): ?>
207
+ <?php if(get_theme_mod( 'our_team_heading')!=''){?>
208
+ <h2 class="head-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php echo get_theme_mod( 'our_team_heading'); ?></h2>
209
+ <?php } else { ?>
210
+ <h2 class="head-text wow thunk-fadeInLeft" data-wow-duration="1s">
211
+ <?php _e('Our Perfect Team','featuredlite'); ?></h2>
212
+ <?php } ?>
213
+ <?php if(get_theme_mod( 'our_team_subheading')!=''){?>
214
+ <h3 class="subhead-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php echo get_theme_mod( 'our_team_subheading'); ?></h3>
215
+ <?php } else { ?>
216
+ <h3 class="subhead-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry','featuredlite'); ?></h3>
217
+ <?php } ?>
218
+ <ul class="multiple-team-section wow thunk-fadeInRight" data-wow-duration="1s">
219
+ <?php
220
+ if ( is_active_sidebar( 'multi-team-widget' ) ){
221
+ dynamic_sidebar( 'multi-team-widget' );
222
+ } else{
223
+ ?>
224
+ <li class="multi-team first">
225
+ <figure class="team-box red">
226
+ <img src="<?php echo get_template_directory_uri(); ?>/images/team/team.jpg" alt="sample8" />
227
+ <figcaption>
228
+ <h2><?php _e('Gabriel','featuredlite'); ?><span><?php _e('Lavarez','featuredlite'); ?></span></h2>
229
+ <p><?php _e('Im just very selective about the reality I choose to accept. ','featuredlite'); ?></p>
230
+ <div class="icons"><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a><a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a></div>
231
+ </figcaption>
232
+ <div class="position"><?php _e('Chairman','featuredlite'); ?></div>
233
+ </figure>
234
+
235
+ </li>
236
+ <li class="multi-team second">
237
+ <figure class="team-box yellow"><img src="<?php echo get_template_directory_uri(); ?>/images/team/team.jpg" alt="sample8" />
238
+ <figcaption>
239
+ <h2><?php _e('Roland','featuredlite'); ?><span><?php _e('Lee','featuredlite'); ?></span></h2>
240
+ <p><?php _e('Im a simple man with complex tastes.','featuredlite'); ?></p>
241
+ <div class="icons"><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a><a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a></div>
242
+ </figcaption>
243
+ <div class="position"><?php _e('Software Engineer','featuredlite'); ?></div>
244
+ </figure>
245
+
246
+ </li>
247
+ <li class="multi-team third">
248
+ <figure class="team-box blue"><img src="<?php echo get_template_directory_uri(); ?>/images/team/team.jpg" alt="sample8" />
249
+ <figcaption>
250
+ <h2><?php _e('Annie','featuredlite'); ?><span><?php _e('Watkins','featuredlite'); ?></span></h2>
251
+ <p><?php _e('Im just very selective about the reality I choose to accept. ','featuredlite'); ?></p>
252
+ <div class="icons"><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a><a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a></div>
253
+ </figcaption>
254
+ <div class="position"><?php _e('Accoutant','featuredlite'); ?></div>
255
+ </figure>
256
+ </li>
257
+ <li class="multi-team fourth">
258
+ <figure class="team-box green"><img src="<?php echo get_template_directory_uri(); ?>/images/team/team.jpg" alt="sample8" />
259
+ <figcaption>
260
+ <h2><?php _e('Annie','featuredlite'); ?><span><?php _e('Watkins','featuredlite'); ?></span></h2>
261
+ <p><?php _e('Im just very selective about the reality I choose to accept. ','featuredlite'); ?></p>
262
+ <div class="icons"><a href="#"><i class="fa fa-facebook" aria-hidden="true"></i></a><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a><a href="#"><i class="fa fa-linkedin" aria-hidden="true"></i></a></div>
263
+ </figcaption>
264
+ <div class="position"><?php _e('Consultant','featuredlite'); ?></div>
265
+ </figure>
266
+
267
+ </li>
268
+ <?php } ?>
269
+ </ul>
270
+ <?php elseif($section=='testimonial'): ?>
271
+ <?php if(get_theme_mod( 'testimonial_heading')!=''){?>
272
+ <h2 class="head-text wow thunk-fadeInRight" data-wow-duration="1s"><?php echo get_theme_mod( 'testimonial_heading'); ?></h2>
273
+ <?php } else { ?>
274
+ <h2 class="head-text wow thunk-fadeInRight" data-wow-duration="1s"><?php _e('Happy Customers','featuredlite'); ?></h2>
275
+ <?php } ?>
276
+ <?php if(get_theme_mod( 'testimonial_subheading')!=''){?>
277
+ <h3 class="subhead-text wow thunk-fadeInRight" data-wow-duration="1s"><?php echo get_theme_mod( 'testimonial_subheading'); ?></h3>
278
+ <?php } else { ?>
279
+ <h3 class="subhead-text wow thunk-fadeInRight" data-wow-duration="1s"><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry','featuredlite'); ?></h3>
280
+ <?php } ?>
281
+
282
+ <ul class="multiple-testimonial-section wow thunk-fadeInLeft" data-wow-duration="1s">
283
+ <?php if ( is_active_sidebar( 'testimonial-widget' ) ){
284
+ dynamic_sidebar( 'testimonial-widget' );
285
+ } else{ ?>
286
+ <li class="multi-testimonial first">
287
+ <span class="multi-testimonial-image"><img src="<?php echo FEATUREDLITE_THEME_URI; ?>/images/testimonial-image.png"></span>
288
+ <div class="clearfix"></div>
289
+ <blockquote><p><?php _e('Lorem Ipsum is simply ras ac sapien erat. Mauris justo elit, faucibus sed interdum vitae, vestibulum et dui. Suspendisse convallis a nulla nec placerat. Cras ac porta ipsum. Nam suscipit eros ut neque posuere, aliquam dapibus metus congue. Praesent ullamcorper vulputate tempus','featuredlite'); ?></p></blockquote>
290
+ <a class="author" href="#"><?php _e('Alex','featuredlite'); ?></a>
291
+ </li>
292
+ <li class="multi-testimonial second">
293
+ <span class="multi-testimonial-image"><img src="<?php echo FEATUREDLITE_THEME_URI; ?>/images/testimonial-image.png"></span>
294
+ <div class="clearfix"></div>
295
+ <blockquote><p><?php _e('Lorem Ipsum is simply ras ac sapien erat. Mauris justo elit, faucibus sed interdum vitae, vestibulum et dui. Suspendisse convallis a nulla nec placerat. Cras ac porta ipsum. Nam suscipit eros ut neque posuere, aliquam dapibus metus congue. Praesent ullamcorper vulputate tempus','featuredlite'); ?></p></blockquote>
296
+ <a class="author" href="#"><?php _e('Alex','featuredlite'); ?></a>
297
+ </li>
298
+ <li class="multi-testimonial third">
299
+ <span class="multi-testimonial-image"><img src="<?php echo FEATUREDLITE_THEME_URI; ?>/images/testimonial-image.png"></span>
300
+ <div class="clearfix"></div>
301
+ <blockquote><p><?php _e('Lorem Ipsum is simply ras ac sapien erat. Mauris justo elit, faucibus sed interdum vitae, vestibulum et dui. Suspendisse convallis a nulla nec placerat. Cras ac porta ipsum. Nam suscipit eros ut neque posuere, aliquam dapibus metus congue. Praesent ullamcorper vulputate tempus','featuredlite'); ?></p></blockquote>
302
+ <a class="author" href="#"><?php _e('Alex','featuredlite'); ?></a>
303
+ </li>
304
+ <?php } ?>
305
+ </ul>
306
+ <?php elseif($section=='contact_us'): ?>
307
+ <?php $contactus_shortcode = get_theme_mod('cf_shtcd_','[lead-form form-id=1 title=Contact Us]');
308
+ $cnt_tel = get_theme_mod('cnt_tel');
309
+ $cnt_add = get_theme_mod('cnt_add');
310
+ $cnt_mail = get_theme_mod('cnt_mail'); ?>
311
+ <?php if(get_theme_mod( 'our_cnt_heading')!=''){?>
312
+ <h2 class="head-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php echo get_theme_mod( 'our_cnt_heading'); ?></h2>
313
+ <?php } else { ?>
314
+ <h2 class="head-text wow thunk-fadeInLeft" data-wow-duration="1s">
315
+ <?php _e('Contact us','featured'); ?></h2>
316
+ <?php } ?>
317
+ <?php if(get_theme_mod( 'our_cnt_subheading')!=''){?>
318
+ <h3 class="subhead-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php echo get_theme_mod( 'our_cnt_subheading'); ?></h3>
319
+ <?php } else { ?>
320
+ <h3 class="subhead-text wow thunk-fadeInLeft" data-wow-duration="1s"><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry','featured'); ?></h3>
321
+ <?php } ?>
322
+ <div class="cnt-block">
323
+ <div class="contact-wrap"><?php echo do_shortcode($contactus_shortcode); ?></div>
324
+ <div class="detail-wrap">
325
+ <div class="cnt-detail">
326
+ <ul>
327
+ <?php if($cnt_tel!=''){?>
328
+ <li class="tel">
329
+ <div class="cnt-icon"><a href="tel:<?php echo $cnt_tel;?>"><i class="fa fa-mobile" aria-hidden="true"></i></a></div>
330
+ <div class="cnt-info"><a href="tel:<?php echo $cnt_tel;?>"><?php echo $cnt_tel;?></a></div>
331
+ </li>
332
+ <?php } ?>
333
+ <?php if($cnt_add!=''){?>
334
+ <li class="address">
335
+ <div class="cnt-icon">
336
+ <i class="fa fa-home" aria-hidden="true"></i>
337
+ </div>
338
+ <div class="cnt-info"><p><?php echo $cnt_add;?></p></div>
339
+ </li>
340
+ <?php } ?>
341
+ <?php if($cnt_mail!=''){?>
342
+ <li class="email-ad">
343
+ <div class="cnt-icon"><a href="mailto:<?php echo $cnt_mail;?>"><i class="fa fa-envelope" aria-hidden="true"></i></a></div>
344
+ <div class="cnt-info"><a href="mailto:<?php echo $cnt_mail;?>"><?php echo $cnt_mail;?></a></div>
345
+ </li>
346
+ <?php } ?>
347
+ </ul>
348
+ </div>
349
+ <div class="map"><?php
350
+ $map = get_theme_mod('map_add','');
351
+ if($map !==''){
352
+ echo html_entity_decode($map);
353
+ }else{ ?> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d387145.8663710261!2d-74.25819529498874!3d40.70531103717957!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89c24fa5d33f083b%3A0xc80b8f06e177fe62!2sNew+York%2C+NY%2C+USA!5e0!3m2!1sen!2sin!4v1474307010013" frameborder="0" allowfullscreen></iframe><?php } ?></div>
354
+ </div>
355
+ </div>
356
+
357
+
358
+
359
+ <?php elseif($section=='woocommerce'): ?>
360
+ <?php if( shortcode_exists( 'recent_products' ) ): ?>
361
+ <?php $woo_product = get_theme_mod('woo_shortcode','[recent_products]'); ?>
362
+ <div class="container">
363
+ <?php if(get_theme_mod( 'woo_head_')!=''){?>
364
+ <h2 class="head-text wow thunk-fadeInRight" data-wow-duration="1s"><?php echo get_theme_mod( 'woo_head_'); ?></h2>
365
+ <?php } else { ?>
366
+ <h2 class="head-text wow thunk-fadeInRight" data-wow-duration="1s"> <?php _e('Woocommerce ','featuredlite'); ?></h2>
367
+ <?php } ?>
368
+ <?php if(get_theme_mod( 'woo_desc_')!=''){?>
369
+ <h3 class="subhead-text wow thunk-fadeInRight" data-wow-duration="1s"><?php echo get_theme_mod( 'woo_desc_'); ?></h3>
370
+ <?php } else { ?>
371
+ <h3 class="subhead-text wow thunk-fadeInRight" data-wow-duration="1s"><?php _e('Lorem Ipsum is simply dummy text of the printing and typesetting industry','featuredlite'); ?></h3>
372
+ <?php } ?>
373
+ <div class="wow thunk-fadeInLeft" data-wow-duration="1s">
374
+ <?php echo do_shortcode($woo_product); ?>
375
+ </div>
376
+ </div>
377
+ <?php endif; ?>
378
+ <?php endif;
379
+ }
380
+
381
+ function themehunk_customizer_shortcode($atts) {
382
+ $output = '';
383
+ $pull_quote_atts = shortcode_atts(array(
384
+ 'section' => 1
385
+ ), $atts);
386
+ $did = wp_kses_post($pull_quote_atts['section']);
387
+
388
+ $output = themehunk_customizer_add_shotcode($did);
389
+ return $output;
390
+ }
391
+ add_shortcode('themehunk-customizer', 'themehunk_customizer_shortcode');
392
+
393
+ //social icon shortocdes
394
+ function themehunk_customizer_social(){
395
+ $social ='<ul>
396
+ <span style="font-style:italic;font-size:12px;">Share</span>
397
+ <li><a target="_blank" href="https://twitter.com/home?status='.get_the_title().'-'.get_permalink().'"><i class="fa fa-twitter"></i></a></li>
398
+ <li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.get_permalink().'"><i class="fa fa-facebook"></i></a></li>
399
+ <li><a target="_blank" href="https://plus.google.com/share?url='.get_permalink().'"><i class="fa fa-google-plus"></i></a></li>
400
+ <li><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url='.get_permalink().'&title='.get_the_title().'&source=LinkedIn"><i class="fa fa-linkedin"></i></a></li>
401
+ </ul>';
402
+ return $social;
403
+ }
404
+
405
+ function themehunk_customizer_social_shortcode($atts) {
406
+ $output = '';
407
+ $pull_quote_atts = shortcode_atts(array(
408
+ 'did' => 1
409
+ ), $atts);
410
+ $did = wp_kses_post($pull_quote_atts['did']);
411
+
412
+ $output = themehunk_customizer_social($did);
413
+ return $output;
414
+ }
415
+ add_shortcode('themehunk-customizer-social', 'themehunk_customizer_social_shortcode');
416
+
417
+
418
+ // woocommerce plugin
419
+ function themehunk_customizer_woo($did=''){
420
+ $woo_product = get_theme_mod('woo_shortcode','[recent_products]');
421
+
422
+ echo do_shortcode( $woo_product );
423
+
424
+ }
425
+
426
+ function themehunk_customizer_oneline_lite_woo($atts) {
427
+ $output = '';
428
+ $pull_quote_atts = shortcode_atts(array(
429
+ 'did' => 1
430
+ ), $atts);
431
+ $did = wp_kses_post($pull_quote_atts['did']);
432
+
433
+ $output = themehunk_customizer_woo($did);
434
+ return $output;
435
+ }
436
+ add_shortcode('themehunk-customizer-woo', 'themehunk_customizer_oneline_lite_woo');
437
+
438
+
439
+ ?>
featuredlite/include.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ include_once( plugin_dir_path(__FILE__) . 'inc/constant.php' );
3
+ include_once( plugin_dir_path(__FILE__) . 'customizer/custom-customizer.php' );
4
+ include_once( plugin_dir_path(__FILE__) . 'inc/custom-style.php' );
5
+ include_once( plugin_dir_path(__FILE__) . 'widget/team.php' );
6
+ include_once( plugin_dir_path(__FILE__) . 'widget/testimonial.php' );
7
+ include_once( plugin_dir_path(__FILE__) . 'widget/services.php' );
8
+ include_once( plugin_dir_path(__FILE__) . 'customizer/customizer.php' );
9
+ include_once( plugin_dir_path(__FILE__) . 'inc/shortcode.php' );
10
+ ?>
featuredlite/widget/services.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Multi Featuredlite Column widget
4
+ *
5
+ */
6
+ // register widget
7
+ add_action('widgets_init', 'featuredlite_multifeature_column_widget');
8
+ function featuredlite_multifeature_column_widget() {
9
+ register_widget( 'featuredlite_multifeature_column' );
10
+ }
11
+ // featuredlite__multifeature_column widget class
12
+ class featuredlite_multifeature_column extends WP_Widget {
13
+
14
+
15
+ function __construct() {
16
+ $widget_ops = array('classname' => 'th-multifeature-column');
17
+ parent::__construct('th-multifeature-column-widget', __('ThemeHunk : Multi Services Column','featuredlite'), $widget_ops);
18
+ }
19
+ function widget($args, $instance) {
20
+ extract($args);
21
+ // widget content
22
+ echo $before_widget;
23
+ $text = isset($instance['text'])?$instance['text']:'writing your description';
24
+ $link = isset($instance['link'])?$instance['link']:'http://';
25
+ $title = isset($instance['title'])?$instance['title']:'New Title';
26
+ $fontaws = isset($instance['fontaws'])?$instance['fontaws']:'fa fa-car';
27
+ ?>
28
+ <li class="multi-featured first">
29
+ <a href="<?php echo $link; ?>"><span class="multi-featured-icon"><i class="<?php echo $fontaws; ?>"></i></span></a>
30
+ <div class="clearfix"></div>
31
+
32
+ <a href="<?php echo $link; ?>"><h3><span><?php echo apply_filters('widget_title', $title ); ?></h3></a>
33
+ <p><?php echo $text; ?></p>
34
+ </li>
35
+ <?php
36
+ echo $after_widget;
37
+
38
+ }
39
+
40
+ function update($new_instance, $old_instance) {
41
+ $instance = $old_instance;
42
+ $instance['fontaws'] = $new_instance['fontaws'];
43
+ $instance['title'] = strip_tags( $new_instance['title'] );
44
+ $instance['text'] = $new_instance['text'];
45
+ $instance['link'] = $new_instance['link'];
46
+ return $instance;
47
+ }
48
+
49
+ function form($instance) {
50
+ if( $instance) {
51
+ $title = esc_attr($instance['title']);
52
+ $fontaws = esc_attr($instance['fontaws']);
53
+ $text = $instance['text'];
54
+ $link = $instance['link'];
55
+ } else {
56
+ $title = '';
57
+ $fontaws = 'fa fa-car';
58
+ $text = '';
59
+ $link = 'http://';
60
+ }
61
+ ?>
62
+ <div class="clearfix"></div>
63
+ <p>
64
+ <label for="<?php echo $this->get_field_id('fontaws'); ?>"><?php _e('Font Awesome Icon','featuredlite'); ?></label>
65
+ <label style="padding-bottom: 5px; padding-top:0px;font-size: 12px;font-style: italic;"><?php _e('Go to this link for <a target="_blank" href="//fontawesome.io/icons/">Fontawesome icons</a> and copy the class of icon that you need & paste it below.','featuredlite'); ?></label>
66
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws'); ?>" id="<?php echo $this->get_field_id('fontaws'); ?>" value="<?php echo $fontaws; ?>" style="margin-top:5px;"></p>
67
+
68
+ <p>
69
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title','featuredlite'); ?></label>
70
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php echo $title; ?>" style="margin-top:5px;"></p><p>
71
+
72
+ <label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('Description','featuredlite'); ?></label>
73
+ <textarea name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>" class="widefat" ><?php echo $text; ?></textarea></p>
74
+ <p>
75
+ <label for="<?php echo $this->get_field_id('link'); ?>"><?php _e('Link','featuredlite'); ?> ex: http://www.abc.com</label>
76
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('link'); ?>" id="<?php echo $this->get_field_id('link'); ?>" value="<?php echo $link; ?>" style="margin-top:5px;">
77
+ </p>
78
+ <?php
79
+ }
80
+ }
featuredlite/widget/team.php ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * team Featuredlite Column widget
4
+ *
5
+ */
6
+ // register widget
7
+ add_action('widgets_init', 'featuredlite_team_widget');
8
+ function featuredlite_team_widget() {
9
+ register_widget( 'featuredlite_team' );
10
+ }
11
+ // add admin scripts
12
+ add_action('admin_enqueue_scripts', 'featuredlite_team_enqueue');
13
+ function featuredlite_team_enqueue() {
14
+ wp_enqueue_media();
15
+ wp_enqueue_script('featuredlite_team_script', get_template_directory_uri() . '/js/widget.js', array( 'jquery'), '1.0', true);
16
+ }
17
+ // featuredlite_team widget class
18
+ class featuredlite_team extends WP_Widget {
19
+
20
+ function __construct() {
21
+ $widget_ops = array('classname' => 'th-team');
22
+ parent::__construct('team-widget', __('ThemeHunk : Team Widget','featuredlite'), $widget_ops);
23
+ }
24
+ function widget($args, $instance) {
25
+ extract($args);
26
+ // widget content
27
+ echo $before_widget;
28
+ $text = isset($instance['text'])?$instance['text']:'writing your description';
29
+ $link = isset($instance['link'])?$instance['link']:'http://';
30
+ $title = isset($instance['title'])?$instance['title']:'New Title';
31
+ $authpic = isset($instance['authpic'])?$instance['authpic']:'';
32
+ $deg = isset($instance['deg'])?$instance['deg']:'Designation';
33
+ $fontaws1 = isset($instance['fontaws1'])?$instance['fontaws1']:'';
34
+ $fontaws2 = isset($instance['fontaws2'])?$instance['fontaws2']:'';
35
+ $fontaws3 = isset($instance['fontaws3'])?$instance['fontaws3']:'';
36
+ $fontaws1link = isset($instance['fontaws1link'])?$instance['fontaws1link']:'';
37
+ $fontaws2link = isset($instance['fontaws2link'])?$instance['fontaws2link']:'';
38
+ $fontaws3link = isset($instance['fontaws3link'])?$instance['fontaws3link']:'';
39
+ ?>
40
+
41
+ <li class="multi-team first">
42
+ <figure class="team-box blue">
43
+ <?php if($authpic!=''){ ?>
44
+ <img src="<?php echo $authpic; ?>">
45
+ <?php } ?>
46
+ <figcaption>
47
+ <h2><a href="<?php echo $link; ?>"><?php echo apply_filters('widget_title', $title ); ?></a></h2>
48
+ <p><?php echo $text; ?></p>
49
+ <div class="icons">
50
+ <?php if($fontaws1!=''){ ?>
51
+ <a href="<?php echo $fontaws1link; ?>"><i class="<?php echo $fontaws1; ?>" aria-hidden="true"></i></a>
52
+ <?php } ?>
53
+ <?php if($fontaws2!=''){ ?>
54
+ <a href="<?php echo $fontaws2link ?>"><i class="<?php echo $fontaws2; ?>" aria-hidden="true"></i></a>
55
+ <?php } ?>
56
+ <?php if($fontaws3!=''){ ?>
57
+ <a href="<?php echo $fontaws3link; ?>"><i class="<?php echo $fontaws3; ?>" aria-hidden="true"></i></a>
58
+ <?php } ?>
59
+ </div>
60
+ </figcaption>
61
+ <div class="position"><?php echo $deg; ?></div>
62
+ </figure>
63
+ </li>
64
+
65
+
66
+ <?php
67
+ echo $after_widget;
68
+
69
+ }
70
+
71
+ function update($new_instance, $old_instance) {
72
+ $instance = $old_instance;
73
+ $instance['authpic'] = $new_instance['authpic'];
74
+ $instance['title'] = strip_tags( $new_instance['title'] );
75
+ $instance['text'] = $new_instance['text'];
76
+ $instance['link'] = $new_instance['link'];
77
+ $instance['deg'] = $new_instance['deg'];
78
+ $instance['fontaws1'] = $new_instance['fontaws1'];
79
+ $instance['fontaws2'] = $new_instance['fontaws2'];
80
+ $instance['fontaws3'] = $new_instance['fontaws3'];
81
+ $instance['fontaws1link'] = $new_instance['fontaws1link'];
82
+ $instance['fontaws2link'] = $new_instance['fontaws2link'];
83
+ $instance['fontaws3link'] = $new_instance['fontaws3link'];
84
+
85
+ return $instance;
86
+ }
87
+
88
+ function form($instance) {
89
+ if( $instance) {
90
+ $title = esc_attr($instance['title']);
91
+ $authpic = strip_tags($instance['authpic']);
92
+ $text = $instance['text'];
93
+ $link = $instance['link'];
94
+ $deg = $instance['deg'];
95
+ $fontaws1 = $instance['fontaws1'];
96
+ $fontaws2 = $instance['fontaws2'];
97
+ $fontaws3 = $instance['fontaws3'];
98
+ $fontaws1link = $instance['fontaws1link'];
99
+ $fontaws2link = $instance['fontaws2link'];
100
+ $fontaws3link = $instance['fontaws3link'];
101
+ } else {
102
+ $title = '';
103
+ $authpic = '';
104
+ $text = '';
105
+ $link = '';
106
+ $deg = '';
107
+ $fontaws1 = 'fa fa-facebook';
108
+ $fontaws2 = 'fa fa-twitter';
109
+ $fontaws3 = 'fa fa-linkedin';
110
+ $fontaws1link = '';
111
+ $fontaws2link = '';
112
+ $fontaws3link = '';
113
+ }
114
+ ?>
115
+ <div class="clearfix"></div>
116
+ <p>
117
+ <label for="<?php echo $this->get_field_id('authpic'); ?>"><?php _e('Member Image','featuredlite'); ?></label>
118
+ <?php
119
+ if ( isset($instance['authpic']) && $instance['authpic'] != '' ) :
120
+ echo '<img class="custom_media_image" src="' . $instance['authpic'] . '" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" /><br />';
121
+ endif;
122
+ ?>
123
+ <input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name('authpic'); ?>" id="<?php echo $this->get_field_id('authpic'); ?>" value="<?php echo $authpic; ?>" style="margin-top:5px;">
124
+ <input type="button" class="button button-primary custom_media_button" id="<?php echo $this->get_field_id('authpic'); ?>_button" name="<?php echo $this->get_field_name('authpic'); ?>" value="Upload Image" style="margin-top:5px;" />
125
+ </p>
126
+ <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Member Name','featuredlite'); ?></label>
127
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php echo $title; ?>">
128
+ </p>
129
+ <p>
130
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Designation','featuredlite'); ?></label>
131
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('deg'); ?>" id="<?php echo $this->get_field_id('deg'); ?>" value="<?php echo $deg; ?>">
132
+ </p>
133
+ <p>
134
+ <label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('Description','featuredlite'); ?></label>
135
+ <textarea name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>" class="widefat" ><?php echo $text; ?></textarea>
136
+ </p>
137
+
138
+
139
+ <p> <label for="<?php echo $this->get_field_id('fontaws1'); ?>"><?php _e('Social-Icon-1','featuredlite'); ?></label>
140
+ <label style="padding-bottom: 5px; padding-top:0px;font-size: 12px;font-style: italic;"><?php _e('Go to this link for <a target="_blank" href="//fontawesome.io/icons/">Fontawesome icons</a> and copy the class of icon that you need & paste it below.','featuredlite'); ?></label>
141
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws1'); ?>" id="<?php echo $this->get_field_id('fontaws1'); ?>" value="<?php echo $fontaws1; ?>" style="margin-top:5px;">
142
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws1link'); ?>" id="<?php echo $this->get_field_id('fontaws1link'); ?>" value="<?php echo $fontaws1link; ?>" placeholder="link" style="margin-top:5px;"></p>
143
+
144
+
145
+ <p><label for="<?php echo $this->get_field_id('fontaws2'); ?>"><?php _e('Social-Icon-2','featuredlite'); ?></label>
146
+
147
+
148
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws2'); ?>" id="<?php echo $this->get_field_id('fontaws2'); ?>" value="<?php echo $fontaws2; ?>" style="margin-top:5px;">
149
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws2link'); ?>" id="<?php echo $this->get_field_id('fontaws2link'); ?>" value="<?php echo $fontaws2link; ?>" placeholder="link" style="margin-top:5px;"></p>
150
+ <p> <label for="<?php echo $this->get_field_id('fontaws3'); ?>"><?php _e('Social-Icon-3','featuredlite'); ?></label>
151
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws3'); ?>" id="<?php echo $this->get_field_id('fontaws3'); ?>" value="<?php echo $fontaws3; ?>" style="margin-top:5px;">
152
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws3link'); ?>" id="<?php echo $this->get_field_id('fontaws3link'); ?>" value="<?php echo $fontaws3link; ?>" placeholder="link" style="margin-top:5px;">
153
+ </p>
154
+ <p><label for="<?php echo $this->get_field_id('link'); ?>"><?php _e('Author Link','featuredlite'); ?> ex: http://www.abc.com</label>
155
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('link'); ?>" id="<?php echo $this->get_field_id('link'); ?>" value="<?php echo $link; ?>" style="margin-top:5px;">
156
+ </p>
157
+
158
+ <?php } } ?>
featuredlite/widget/testimonial.php ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Testimonial widget
4
+ *
5
+ */
6
+ // register widget
7
+ add_action('widgets_init', 'featuredlite_testimonial_widget');
8
+ function featuredlite_testimonial_widget() {
9
+ register_widget( 'featuredlite_testimonial' );
10
+ }
11
+
12
+
13
+ // add admin scripts
14
+ add_action('admin_enqueue_scripts', 'featuredlite_testimonial_enqueue');
15
+ function featuredlite_testimonial_enqueue() {
16
+ wp_enqueue_media();
17
+ wp_enqueue_script('featuredlite_testimonial_script', get_template_directory_uri() . '/js/widget.js', false, '1.0', true);
18
+ }
19
+ // featuredlite_testimonial widget class
20
+ class featuredlite_testimonial extends WP_Widget {
21
+
22
+ function __construct() {
23
+ $widget_ops = array('classname' => 'th-testimonial');
24
+ parent::__construct('testimonial-widget', __('ThemeHunk : Testimonial Widget','featuredlite'), $widget_ops);
25
+ }
26
+
27
+ function widget($args, $instance) {
28
+ extract($args);
29
+
30
+ // widget content
31
+ echo $before_widget;
32
+
33
+ $text = isset($instance['text'])?$instance['text']:'writing your description';
34
+ $link = isset($instance['link'])?$instance['link']:'http://';
35
+ $title = isset($instance['title'])?$instance['title']:'New Title';
36
+ $authpic = isset($instance['authpic'])?$instance['authpic']:'';
37
+ ?>
38
+ <li class="multi-testimonial">
39
+ <span class="multi-testimonial-image"><img src="<?php echo $authpic; ?>"></span>
40
+ <div class="clearfix"></div>
41
+ <blockquote><p><?php echo $text; ?></p></blockquote>
42
+ <a class="author" href="<?php echo $link; ?>"><?php echo apply_filters('widget_title', $title ); ?></a>
43
+ </li>
44
+ <?php
45
+ echo $after_widget;
46
+
47
+ }
48
+
49
+ function update($new_instance, $old_instance) {
50
+ $instance = $old_instance;
51
+ $instance['authpic'] = $new_instance['authpic'];
52
+ $instance['title'] = strip_tags( $new_instance['title'] );
53
+ $instance['text'] = $new_instance['text'];
54
+ $instance['link'] = $new_instance['link'];
55
+ return $instance;
56
+ }
57
+
58
+ function form($instance) {
59
+ if( $instance) {
60
+ $title = esc_attr($instance['title']);
61
+ $authpic = strip_tags($instance['authpic']);
62
+ $text = $instance['text'];
63
+ $link = $instance['link'];
64
+ } else {
65
+ $title = '';
66
+ $authpic = '';
67
+ $text = '';
68
+ $link = '';
69
+ }
70
+ ?>
71
+ <div class="clearfix"></div>
72
+ <p>
73
+ <label for="<?php echo $this->get_field_id('authpic'); ?>"><?php _e('Author Image','featuredlite'); ?></label>
74
+ <?php
75
+ if ( isset($instance['authpic']) && $instance['authpic'] != '' ) :
76
+ echo '<img class="custom_media_image" src="' . $instance['authpic'] . '" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" /><br />';
77
+ endif;
78
+ ?>
79
+ <input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name('authpic'); ?>" id="<?php echo $this->get_field_id('authpic'); ?>" value="<?php echo $authpic; ?>" style="margin-top:5px;">
80
+ <input type="button" class="button button-primary custom_media_button" id="<?php echo $this->get_field_id('authpic'); ?>_button" name="<?php echo $this->get_field_name('authpic'); ?>" value="Upload Image" style="margin-top:5px;" />
81
+ </p><p>
82
+ <label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('Author Short bio','featuredlite'); ?></label>
83
+ <textarea name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>" class="widefat" ><?php echo $text; ?></textarea>
84
+ </p><p>
85
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Author Name','featuredlite'); ?></label>
86
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php echo $title; ?>" style="margin-top:5px;">
87
+ </p>
88
+ <p>
89
+ <label for="<?php echo $this->get_field_id('link'); ?>"><?php _e('Author Link','featuredlite'); ?> ex: http://www.abc.com</label>
90
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('link'); ?>" id="<?php echo $this->get_field_id('link'); ?>" value="<?php echo $link; ?>" style="margin-top:5px;">
91
+ </p>
92
+ <?php
93
+ }
94
+ }
95
+ ?>
oneline-lite/customizer/custom-customizer.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Add controls for arbitrary heading, description, line
5
+ *
6
+ * @package Customizer_Library
7
+ * @author Devin Price
8
+ */
9
+ if ( ! function_exists( 'onelinelite_registers' ) ) :
10
+ function onelinelite_registers() {
11
+ wp_enqueue_script( 'onelinelite_customizer_script', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . '/oneline-lite/customizer/js/customizer.js', array("jquery"), '', true );
12
+ }
13
+ add_action( 'customize_controls_enqueue_scripts', 'onelinelite_registers' );
14
+ endif;
15
+ if ( ! function_exists( 'onelinelite_customizer_styles' ) ) :
16
+ function onelinelite_customizer_styles() {
17
+ wp_enqueue_style('onelinelite_customizer_styles', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . '/oneline-lite/customizer/customizer_styles.css');
18
+ }
19
+ add_action('customize_controls_print_styles', 'onelinelite_customizer_styles');
20
+ endif;
oneline-lite/customizer/customizer.php ADDED
@@ -0,0 +1,1610 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function oneline_lite_unlimited_customize_register( $wp_customize ) {
3
+ $palette = array('rgb(0, 0, 0, 0)',);
4
+ //=============================
5
+ //= Theme option =
6
+ //=============================
7
+ $wp_customize->add_panel('theme_optn', array(
8
+ 'priority' => 3,
9
+ 'capability' => 'edit_theme_options',
10
+ 'theme_supports' => '',
11
+ 'title' => __('Theme Option', 'oneline-lite'),
12
+ 'description' => '',
13
+ ) );
14
+ $wp_customize->add_section('global_set', array(
15
+ 'title' => __('Global Setting', 'oneline-lite'),
16
+ 'priority' => 1,
17
+ 'panel' => 'theme_optn',
18
+ ));
19
+ // Sidebar settings
20
+ $wp_customize->add_setting( 'oneline-lite_layout',
21
+ array(
22
+ 'sanitize_callback' => 'sanitize_text_field',
23
+ 'default' => 'right',
24
+
25
+ )
26
+ );
27
+ $wp_customize->add_control( 'oneline-lite_layout',
28
+ array(
29
+ 'type' => 'select',
30
+ 'label' => esc_html__('Page Layout', 'oneline-lite'),
31
+ 'description' => esc_html__('Choose sidebar option for inner pages (non-home)', 'oneline-lite'),
32
+ 'section' => 'global_set',
33
+ 'choices' => array(
34
+ 'right' => esc_html__('Right sidebar', 'oneline-lite'),
35
+ 'left' => esc_html__('Left sidebar', 'oneline-lite'),
36
+ 'no-sidebar' => esc_html__('No sidebar', 'oneline-lite'),
37
+ )
38
+ )
39
+ );
40
+ // Disable Sticky Header
41
+ $wp_customize->add_setting( 'oneline-lite_sticky_header_disable',
42
+ array(
43
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
44
+ 'default' => '',
45
+ )
46
+ );
47
+ $wp_customize->add_control( 'oneline-lite_sticky_header_disable',
48
+ array(
49
+ 'type' => 'checkbox',
50
+ 'label' => esc_html__('Disable Fixed Header?', 'oneline-lite'),
51
+ 'section' => 'global_set',
52
+ 'description' => esc_html__('Check here to disable Fixed header and activate Normal header.', 'oneline-lite')
53
+ )
54
+ );
55
+ // Disable Animation
56
+ $wp_customize->add_setting( 'oneline-lite_animation_disable',
57
+ array(
58
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
59
+ 'default' => '',
60
+ )
61
+ );
62
+ $wp_customize->add_control( 'oneline-lite_animation_disable',
63
+ array(
64
+ 'type' => 'checkbox',
65
+ 'label' => esc_html__('Disable animation effect?', 'oneline-lite'),
66
+ 'section' => 'global_set',
67
+ 'description' => esc_html__('Check here to disable homepage section animation.', 'oneline-lite')
68
+ )
69
+ );
70
+ // Disable back to top button
71
+ $wp_customize->add_setting( 'oneline-lite_backtotop_disable',
72
+ array(
73
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
74
+ 'default' => '',
75
+ )
76
+ );
77
+ $wp_customize->add_control( 'oneline-lite_backtotop_disable',
78
+ array(
79
+ 'type' => 'checkbox',
80
+ 'label' => esc_html__('Hide back to top button ?', 'oneline-lite'),
81
+ 'section' => 'global_set',
82
+ 'description' => esc_html__('Check here to disable Back To Top button.', 'oneline-lite')
83
+ )
84
+ );
85
+ // Disable SVG in all section
86
+ $wp_customize->add_setting( 'oneline-lite_svg_disable',
87
+ array(
88
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
89
+ 'default' => '',
90
+ )
91
+ );
92
+ $wp_customize->add_control( 'oneline-lite_svg_disable',
93
+ array(
94
+ 'type' => 'checkbox',
95
+ 'label' => esc_html__('Disable SVG effect ?', 'oneline-lite'),
96
+ 'section' => 'global_set',
97
+ 'description' => esc_html__('Check here to disable SVG in all section', 'oneline-lite')
98
+ )
99
+ );
100
+ // Disable parallax effect in all site
101
+ $wp_customize->add_setting( 'parallax_opt',
102
+ array(
103
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
104
+ 'default' => '',
105
+ )
106
+ );
107
+ $wp_customize->add_control( 'parallax_opt',
108
+ array(
109
+ 'type' => 'checkbox',
110
+ 'label' => esc_html__('Disable Parallax effect ?', 'oneline-lite'),
111
+ 'section' => 'global_set',
112
+ 'description' => esc_html__('Check here to disable Parallax effect ', 'oneline-lite')
113
+ )
114
+ );
115
+
116
+ //*****************************************//
117
+ // site-color
118
+ //*****************************************//
119
+ $wp_customize->add_section('site_color', array(
120
+ 'title' => __('Site Color', 'oneline-lite'),
121
+ 'priority' => 2,
122
+ 'panel' => 'theme_optn',
123
+ ));
124
+ $wp_customize->add_setting('theme_color', array(
125
+ 'default' => '#D4B068',
126
+ 'capability' => 'edit_theme_options',
127
+
128
+ ));
129
+ $wp_customize->add_control(
130
+ new WP_Customize_Color_Control(
131
+ $wp_customize,
132
+ 'theme_color',
133
+ array(
134
+ 'label' => __( 'Theme Color', 'oneline-lite' ),
135
+ 'section' => 'site_color',
136
+ 'settings' => 'theme_color',
137
+ ) ) );
138
+ // footer-bg-color
139
+ $wp_customize->add_setting('footer_bg_color', array(
140
+ 'default' => '#fff',
141
+ 'capability' => 'edit_theme_options',
142
+
143
+
144
+ ));
145
+ $wp_customize->add_control(
146
+ new WP_Customize_Color_Control(
147
+ $wp_customize,
148
+ 'footer_bg_color',
149
+ array(
150
+ 'label' => __('Footer Background Color', 'oneline-lite' ),
151
+ 'section' => 'site_color',
152
+ 'settings' => 'footer_bg_color',
153
+ ) ) );
154
+ // =============================
155
+ // header option =
156
+ // =============================
157
+ // header-setting
158
+ $wp_customize->add_section('header_setting', array(
159
+ 'title' => __('Header Setting', 'oneline-lite'),
160
+ 'priority' => 3,
161
+ 'panel' => 'theme_optn',
162
+ ));
163
+ // header layout option
164
+ $wp_customize->add_setting('header_layout', array(
165
+ 'default' =>'default',
166
+ 'capability' => 'edit_theme_options',
167
+ 'sanitize_callback' => 'sanitize_text_field'
168
+ ));
169
+
170
+ $wp_customize->add_control( 'header_layout', array(
171
+ 'settings' => 'header_layout',
172
+ 'label' => __('Header Layout Option','oneline-lite'),
173
+ 'section' => 'header_setting',
174
+ 'type' => 'radio',
175
+ 'choices' => array(
176
+ 'default' => 'Default Menu',
177
+ 'center' => 'Center Menu',
178
+ 'split' => 'Split Menu',
179
+ ),
180
+ ));
181
+ //header transparent
182
+ $wp_customize->add_setting( 'hdr_bg_trnsparent_active',
183
+ array(
184
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
185
+ 'default' => '1',
186
+ )
187
+ );
188
+ $wp_customize->add_control( 'hdr_bg_trnsparent_active',
189
+ array(
190
+ 'type' => 'checkbox',
191
+ 'label' => esc_html__('Header Transparent', 'oneline-lite'),
192
+ 'section' => 'header_setting',
193
+ 'description' => esc_html__('(Only applied for front page template.)', 'oneline-lite')
194
+ )
195
+ );
196
+ //header-toggle
197
+ $wp_customize->add_setting('hdr_toggle_active', array(
198
+ 'default' => '',
199
+ 'capability' => 'edit_theme_options',
200
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
201
+ ));
202
+ $wp_customize->add_control('hdr_toggle_active', array(
203
+ 'settings' => 'hdr_toggle_active',
204
+ 'label' => __( 'Header Visibility','oneline-lite'),
205
+ 'description' => esc_html__('(Check here to header will toggle on front page)', 'oneline-lite'),
206
+ 'section' => 'header_setting',
207
+ 'type' => 'checkbox',
208
+ ) );
209
+ // custom-last-menu-button
210
+ $wp_customize->add_setting( 'last_menu_btn',
211
+ array(
212
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
213
+ 'default' => '',
214
+ )
215
+ );
216
+ $wp_customize->add_control( 'last_menu_btn',
217
+ array(
218
+ 'type' => 'checkbox',
219
+ 'label' => esc_html__('Custom Button', 'oneline-lite'),
220
+ 'description' => esc_html__('(Check here to style last Menu Item as a Custom Button)', 'oneline-lite'),
221
+ 'section' => 'header_setting',
222
+
223
+ )
224
+ );
225
+ // header-setting-color-option
226
+ // background-color
227
+ $wp_customize->add_setting('hd_bg_color',
228
+ array(
229
+ 'default' => '',
230
+ 'type' => 'theme_mod',
231
+ 'capability' => 'edit_theme_options',
232
+
233
+ ) );
234
+
235
+ $wp_customize->add_control(
236
+ new Customize_themehunk_Color_Control($wp_customize,
237
+ 'hd_bg_color',
238
+ array(
239
+ 'label' => __('Header Background Color','oneline-lite'),
240
+ 'section' => 'header_setting',
241
+ 'settings' => 'hd_bg_color',
242
+ 'palette' => $palette
243
+ )
244
+ )
245
+ );
246
+ // shrink header bg
247
+ $wp_customize->add_setting('shrnk_hd_bg_color',
248
+ array(
249
+ 'default' => 'rgba(20, 20, 20, 0.952941)',
250
+ 'type' => 'theme_mod',
251
+ 'capability' => 'edit_theme_options',
252
+
253
+ ) );
254
+
255
+ $wp_customize->add_control(
256
+ new Customize_themehunk_Color_Control($wp_customize,
257
+ 'shrnk_hd_bg_color',
258
+ array(
259
+ 'label' => __('Header Shrink Background Color','oneline-lite'),
260
+ 'section' => 'header_setting',
261
+ 'settings' => 'shrnk_hd_bg_color',
262
+ 'palette' => $palette
263
+ )
264
+ )
265
+ );
266
+ // title
267
+ $wp_customize->add_setting('site_title_color', array(
268
+ 'default' => '#D4B068',
269
+ 'capability' => 'edit_theme_options',
270
+
271
+ ));
272
+ $wp_customize->add_control(
273
+ new WP_Customize_Color_Control(
274
+ $wp_customize,
275
+ 'site_title_color',
276
+ array(
277
+ 'label' => __('Site Title Color','oneline-lite'),
278
+ 'section' => 'header_setting',
279
+ 'settings' => 'site_title_color',
280
+ ) ) );
281
+ // menu
282
+ $wp_customize->add_setting('hd_menu_color', array(
283
+ 'default' => '#fff',
284
+ 'capability' => 'edit_theme_options',
285
+ ));
286
+ $wp_customize->add_control(
287
+ new WP_Customize_Color_Control(
288
+ $wp_customize,
289
+ 'hd_menu_color',
290
+ array(
291
+ 'label' => __('Menu Link Color','oneline-lite'),
292
+ 'section' => 'header_setting',
293
+ 'settings' => 'hd_menu_color',
294
+ ) ) );
295
+ // hover
296
+ $wp_customize->add_setting('hd_menu_hvr_color', array(
297
+ 'default' => '#D4B068',
298
+ 'capability' => 'edit_theme_options',
299
+ ));
300
+ $wp_customize->add_control(
301
+ new WP_Customize_Color_Control(
302
+ $wp_customize,
303
+ 'hd_menu_hvr_color',
304
+ array(
305
+ 'label' => __('Menu Link Hover/Active Color','oneline-lite'),
306
+ 'section' => 'header_setting',
307
+ 'settings' => 'hd_menu_hvr_color',
308
+ ) ) );
309
+ // responsive menu icon button color
310
+ $wp_customize->add_setting('mobile_menu_bg_color', array(
311
+ 'default' => '#fff',
312
+ 'capability' => 'edit_theme_options',
313
+ ));
314
+ $wp_customize->add_control(
315
+ new WP_Customize_Color_Control(
316
+ $wp_customize,
317
+ 'mobile_menu_bg_color',
318
+ array(
319
+ 'label' => __('Responsive Menu Icon Color','featuredlite'),
320
+ 'section' => 'header_setting',
321
+ 'settings' => 'mobile_menu_bg_color',
322
+ ) ) );
323
+ // footer-info-color
324
+ $wp_customize->add_setting('footer_info_bg_color', array(
325
+ 'default' => '#1F1F1F',
326
+ 'capability' => 'edit_theme_options',
327
+ ));
328
+ $wp_customize->add_control(
329
+ new WP_Customize_Color_Control(
330
+ $wp_customize,
331
+ 'footer_info_bg_color',
332
+ array(
333
+ 'label' => __( 'Copyright Background Color', 'oneline-lite' ),
334
+ 'section' => 'site_color',
335
+ 'settings' => 'footer_info_bg_color',
336
+ ) ) );
337
+
338
+ // footer text
339
+ $wp_customize->add_section( 'footer_option', array(
340
+ 'title' => __( 'Footer Text', 'oneline-lite' ),
341
+ 'priority' => 5,
342
+ 'panel' => 'theme_optn',
343
+ ) );
344
+ $wp_customize->add_setting('copyright_textbox', array(
345
+ 'default' => '',
346
+ 'capability' => 'edit_theme_options',
347
+ 'sanitize_callback' => 'sanitize_text_field'
348
+ ));
349
+ $wp_customize->add_control('copyright_textbox', array(
350
+ 'label' => __('Footer Text', 'oneline-lite'),
351
+ 'section' => 'footer_option',
352
+ 'settings' => 'copyright_textbox',
353
+ 'type' => 'textarea',
354
+ ));
355
+
356
+ //**************************************//
357
+ // theme-option-end
358
+ //**************************************//
359
+ //============================
360
+ // section On/off start
361
+ //============================
362
+ $wp_customize->add_section('section_hide', array(
363
+ 'title' => __('Section On/Off', 'oneline-lite'),
364
+ 'priority' => 3,
365
+ ));
366
+ $wp_customize->add_setting('section_on_off', array(
367
+ 'default' =>array(),
368
+ 'capability' => 'edit_theme_options',
369
+ 'sanitize_callback' => 'themehunk_checkbox_explode'
370
+ ));
371
+ $wp_customize->add_control(new themehunk_Customize_Control_Checkbox_Multiple(
372
+ $wp_customize,'section_on_off', array(
373
+ 'settings' => 'section_on_off',
374
+ 'label' => __( 'Section On/Off', 'oneline-lite' ),
375
+ 'description' => __( '(check to Hide section from frontpage)','oneline-lite' ),
376
+ 'section' => 'section_hide',
377
+ 'choices' => array(
378
+ 'slider' => __( '1 Slider Section','oneline-lite' ),
379
+ 'services' => __( '2 Service Section','oneline-lite' ),
380
+ 'ribbon' => __( '3 Ribbon Section', 'oneline-lite' ),
381
+ 'team' => __( '4 Team Section ','oneline-lite' ),
382
+ 'testimonial'=> __( '6 Testimonial Section','oneline-lite' ),
383
+ 'blog' => __( '5 Blog Section','oneline-lite' ),
384
+ 'woocommerce'=> __( '8 woocommerce Section','oneline-lite' ),
385
+ 'contact' => __( '9 Contact Section','oneline-lite' ),
386
+
387
+ )
388
+ )
389
+ )
390
+ );
391
+ //===============================
392
+ //= section ordering pro feature Settings =
393
+ //=============================
394
+ $wp_customize->add_section('section_home_ordering', array(
395
+ 'title' => __('Section Ordering', 'oneline-lite'),
396
+ 'priority' => 3,
397
+ ));
398
+ $wp_customize->add_setting('section_order', array(
399
+ 'sanitize_callback' => 'themehunk_sanitize_text',
400
+ ));
401
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'section_order',
402
+ array(
403
+ 'section' => 'section_home_ordering',
404
+ 'type' => 'custom_message',
405
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//www.themehunk.com/product/oneline-single-page-wordpress-theme/">OnelinePro</a> for full control over <strong>section ordering</strong>!','oneline-lite' )
406
+ )));
407
+ //****** Slider Section ****//
408
+ $wp_customize->add_panel( 'slider_panel', array(
409
+ 'priority' => 5,
410
+ 'title' => __('Slider Setting', 'oneline-lite'),
411
+ 'description' => '',
412
+ ));
413
+ $wp_customize->add_section('slider_set_optn', array(
414
+ 'title' => __('Slider Setting', 'oneline-lite'),
415
+ 'priority' => 1,
416
+ 'panel' => 'slider_panel',
417
+ ));
418
+ //slider speed
419
+ $wp_customize->add_setting('oneline_slider_speed', array(
420
+ 'default' => 3000,
421
+ 'capability' => 'edit_theme_options',
422
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_int'
423
+ ));
424
+ $wp_customize->add_control('oneline_slider_speed', array(
425
+ 'label' => __('Slider Speed', 'oneline-lite'),
426
+ 'description'=> __('(Increase or decrease the value in multiple of thousand to change slide speed. For example 3000 equals to 3 second. )', 'oneline-lite'),
427
+ 'section' => 'slider_set_optn',
428
+ 'settings' => 'oneline_slider_speed',
429
+ 'type' => 'text',
430
+
431
+ ));
432
+ $wp_customize->add_setting('sldr_ovrly_color',
433
+ array(
434
+ 'default' => 'rgba(0, 0, 0, 0.55)',
435
+ 'type' => 'theme_mod',
436
+ 'capability' => 'edit_theme_options',
437
+
438
+ ) );
439
+ $wp_customize->add_control(
440
+ new Customize_themehunk_Color_Control($wp_customize,
441
+ 'sldr_ovrly_color',
442
+ array(
443
+ 'label' => __('Overlay Color','oneline-lite'),
444
+ 'section' => 'slider_set_optn',
445
+ 'settings' => 'sldr_ovrly_color',
446
+ 'palette' => $palette
447
+ )
448
+ )
449
+ );
450
+ // title-color
451
+ $wp_customize->add_setting('sldr_title_color', array(
452
+ 'default' => '#fff',
453
+ 'capability' => 'edit_theme_options',
454
+ ));
455
+ $wp_customize->add_control(
456
+ new WP_Customize_Color_Control(
457
+ $wp_customize,
458
+ 'sldr_title_color',
459
+ array(
460
+ 'label' => __('Title Color','oneline-lite'),
461
+ 'section' => 'slider_set_optn',
462
+ 'settings' => 'sldr_title_color',
463
+ ) ) );
464
+ // slider-button-style
465
+ $wp_customize->add_setting( 'slidr_button',
466
+ array(
467
+ 'sanitize_callback' => 'sanitize_text_field',
468
+ 'default' => 'default',
469
+ )
470
+ );
471
+ $wp_customize->add_control('slidr_button',
472
+ array(
473
+ 'type' => 'select',
474
+ 'label' => esc_html__('Button', 'oneline-lite'),
475
+ 'description' => esc_html__('Choose button style for slider.', 'oneline-lite'),
476
+ 'section' => 'slider_set_optn',
477
+ 'choices' => array(
478
+ 'default' => esc_html__('Button style 1', 'oneline-lite'),
479
+ 'button-one' => esc_html__('Button style 2', 'oneline-lite'),
480
+ 'button-two' => esc_html__('Button style 3', 'oneline-lite'),
481
+ 'button-three' => esc_html__('Button style 4', 'oneline-lite'),
482
+ 'button-four' => esc_html__('Button style 5', 'oneline-lite'),
483
+ )
484
+ )
485
+ );
486
+ //First slider image
487
+ $wp_customize->add_section('section_slider_first', array(
488
+ 'title' => __('First Slider Setting', 'oneline-lite'),
489
+ 'priority' => 1,
490
+ 'panel' => 'slider_panel',
491
+ ));
492
+ $wp_customize->add_setting('first_slider_image', array(
493
+ 'default' => '',
494
+ 'capability' => 'edit_theme_options',
495
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
496
+ ));
497
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'first_slider_image', array(
498
+ 'label' => __('Slider Image Upload', 'oneline-lite'),
499
+ 'section' => 'section_slider_first',
500
+ 'settings' => 'first_slider_image',
501
+ )));
502
+ $wp_customize->add_setting('first_slider_heading', array(
503
+ 'default' => __('Heading','oneline-lite'),
504
+ 'capability' => 'edit_theme_options',
505
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
506
+ ));
507
+ $wp_customize->add_control('first_slider_heading', array(
508
+ 'label' => __('Slider Heading', 'oneline-lite'),
509
+ 'section' => 'section_slider_first',
510
+ 'settings' => 'first_slider_heading',
511
+ 'type' => 'textarea',
512
+ ));
513
+ $wp_customize->add_setting('first_slider_link', array(
514
+ 'default' => '#',
515
+ 'capability' => 'edit_theme_options',
516
+ 'sanitize_callback' => 'esc_url',
517
+ 'transport' => 'postMessage'
518
+ ));
519
+ $wp_customize->add_control('first_slider_link', array(
520
+ 'label' => __('Link for Heading', 'oneline-lite'),
521
+ 'section' => 'section_slider_first',
522
+ 'settings' => 'first_slider_link',
523
+ 'type' => 'text',
524
+ ));
525
+ $wp_customize->add_setting('first_button_text', array(
526
+ 'default' => '#',
527
+ 'capability' => 'edit_theme_options',
528
+ 'sanitize_callback' => 'sanitize_text_field',
529
+ ));
530
+ $wp_customize->add_control('first_button_text', array(
531
+ 'label' => __('Text for button', 'oneline-lite'),
532
+ 'section' => 'section_slider_first',
533
+ 'settings' => 'first_button_text',
534
+ 'type' => 'text',
535
+ ));
536
+ $wp_customize->add_setting('first_button_link', array(
537
+ 'default' => '#',
538
+ 'capability' => 'edit_theme_options',
539
+ 'sanitize_callback' => 'esc_url_raw',
540
+ 'transport' => 'postMessage'
541
+ ));
542
+ $wp_customize->add_control('first_button_link', array(
543
+ 'label' => __('Link for button', 'oneline-lite'),
544
+ 'section' => 'section_slider_first',
545
+ 'settings' => 'first_button_link',
546
+ 'type' => 'text',
547
+ ));
548
+
549
+ //Second slider image
550
+
551
+ $wp_customize->add_section('section_slider_second', array(
552
+ 'title' => __('Second Slider Setting', 'oneline-lite'),
553
+ 'priority' => 2,
554
+ 'panel' => 'slider_panel',
555
+ ));
556
+ $wp_customize->add_setting('second_slider_image', array(
557
+ 'default' => '',
558
+ 'capability' => 'edit_theme_options',
559
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
560
+ ));
561
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'second_slider_image', array(
562
+ 'label' => __('Slider Image Upload', 'oneline-lite'),
563
+ 'section' => 'section_slider_second',
564
+ 'settings' => 'second_slider_image',
565
+ )));
566
+ $wp_customize->add_setting('second_slider_heading', array(
567
+ 'default' => __('Heading','oneline-lite'),
568
+ 'capability' => 'edit_theme_options',
569
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
570
+ 'transport' => 'postMessage'
571
+ ));
572
+ $wp_customize->add_control('second_slider_heading', array(
573
+ 'label' => __('Slider Heading', 'oneline-lite'),
574
+ 'section' => 'section_slider_second',
575
+ 'settings' => 'second_slider_heading',
576
+ 'type' => 'textarea',
577
+ ));
578
+ $wp_customize->add_setting('second_slider_link', array(
579
+ 'default' => '#',
580
+ 'capability' => 'edit_theme_options',
581
+ 'sanitize_callback' => 'esc_url',
582
+ 'transport' => 'postMessage'
583
+ ));
584
+ $wp_customize->add_control('second_slider_link', array(
585
+ 'label' => __('Link for Heading', 'oneline-lite'),
586
+ 'section' => 'section_slider_second',
587
+ 'settings' => 'second_slider_link',
588
+ 'type' => 'text',
589
+ ));
590
+ $wp_customize->add_setting('second_button_text', array(
591
+ 'default' => '#',
592
+ 'capability' => 'edit_theme_options',
593
+ 'sanitize_callback' => 'sanitize_text_field',
594
+ 'transport' => 'postMessage'
595
+ ));
596
+ $wp_customize->add_control('second_button_text', array(
597
+ 'label' => __('Text for button', 'oneline-lite'),
598
+ 'section' => 'section_slider_second',
599
+ 'settings' => 'second_button_text',
600
+ 'type' => 'text',
601
+ ));
602
+ $wp_customize->add_setting('second_button_link', array(
603
+ 'default' => '#',
604
+ 'capability' => 'edit_theme_options',
605
+ 'sanitize_callback' => 'esc_url_raw',
606
+ 'transport' => 'postMessage'
607
+ ));
608
+ $wp_customize->add_control('second_button_link', array(
609
+ 'label' => __('Link for button', 'oneline-lite'),
610
+ 'section' => 'section_slider_second',
611
+ 'settings' => 'second_button_link',
612
+ 'type' => 'text',
613
+ ));
614
+ //Second Third image
615
+
616
+ $wp_customize->add_section('section_slider_third', array(
617
+ 'title' => __('Third Slider Setting', 'oneline-lite'),
618
+ 'priority' => 3,
619
+ 'panel' => 'slider_panel',
620
+ ));
621
+ $wp_customize->add_setting('third_slider_image', array(
622
+ 'default' => '',
623
+ 'capability' => 'edit_theme_options',
624
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
625
+ ));
626
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'third_slider_image', array(
627
+ 'label' => __('Slider Image Upload', 'oneline-lite'),
628
+ 'section' => 'section_slider_third',
629
+ 'settings' => 'third_slider_image',
630
+ )));
631
+ $wp_customize->add_setting('third_slider_heading', array(
632
+ 'default' => __('Heading','oneline-lite'),
633
+ 'capability' => 'edit_theme_options',
634
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
635
+ 'transport' => 'postMessage'
636
+ ));
637
+ $wp_customize->add_control('third_slider_heading', array(
638
+ 'label' => __('Slider Heading', 'oneline-lite'),
639
+ 'section' => 'section_slider_third',
640
+ 'settings' => 'third_slider_heading',
641
+ 'type' => 'textarea',
642
+ ));
643
+ $wp_customize->add_setting('third_slider_link', array(
644
+ 'default' => '#',
645
+ 'capability' => 'edit_theme_options',
646
+ 'sanitize_callback' => 'esc_url',
647
+ 'transport' => 'postMessage'
648
+ ));
649
+ $wp_customize->add_control('third_slider_link', array(
650
+ 'label' => __('Link for Heading', 'oneline-lite'),
651
+ 'section' => 'section_slider_third',
652
+ 'settings' => 'third_slider_link',
653
+ 'type' => 'text',
654
+ ));
655
+ $wp_customize->add_setting('third_button_text', array(
656
+ 'default' => '#',
657
+ 'capability' => 'edit_theme_options',
658
+ 'sanitize_callback' => 'sanitize_text_field',
659
+ 'transport' => 'postMessage'
660
+ ));
661
+ $wp_customize->add_control('third_button_text', array(
662
+ 'label' => __('Text for button', 'oneline-lite'),
663
+ 'section' => 'section_slider_third',
664
+ 'settings' => 'third_button_text',
665
+ 'type' => 'text',
666
+ ));
667
+ $wp_customize->add_setting('third_button_link', array(
668
+ 'default' => '#',
669
+ 'capability' => 'edit_theme_options',
670
+ 'sanitize_callback' => 'esc_url_raw',
671
+ 'transport' => 'postMessage'
672
+ ));
673
+ $wp_customize->add_control('third_button_link', array(
674
+ 'label' => __('Link for button', 'oneline-lite'),
675
+ 'section' => 'section_slider_third',
676
+ 'settings' => 'third_button_link',
677
+ 'type' => 'text',
678
+ ));
679
+
680
+ // add-more-slider-pro
681
+ $wp_customize->add_section('more_slidr_', array(
682
+ 'title' => __('For More Slider', 'oneline-lite'),
683
+ 'priority' => 5,
684
+ 'panel' => 'slider_panel',
685
+ ));
686
+ $wp_customize->add_setting('slide_more', array(
687
+ 'sanitize_callback' => 'themehunk_sanitize_text',
688
+ ));
689
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'slide_more',
690
+ array(
691
+ 'section' => 'more_slidr_',
692
+ 'type' => 'custom_message',
693
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//www.themehunk.com/product/oneline-single-page-wordpress-theme/">OnelinePro</a> for full control over <strong>section ordering</strong>!','oneline-lite' )
694
+ )));
695
+
696
+ // end slider section
697
+ /************************************************/
698
+ /** Our Services Section ***/
699
+ /************************************************/
700
+ $wp_customize->add_panel( 'services_panel', array(
701
+ 'priority' => 5,
702
+ 'title' => __('Services Section', 'oneline-lite'),
703
+ ) );
704
+ $wp_customize->add_section('services_setting', array(
705
+ 'title' => __('Setting', 'oneline-lite'),
706
+ 'priority' => 1,
707
+ 'panel' =>'services_panel'
708
+ ));
709
+ $wp_customize->add_setting('our_services_heading', array(
710
+ 'default' => '',
711
+ 'capability' => 'edit_theme_options',
712
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
713
+ ));
714
+ $wp_customize->add_control('our_services_heading', array(
715
+ 'label' => __('Main Heading', 'oneline-lite'),
716
+ 'section' => 'services_setting',
717
+ 'settings' => 'our_services_heading',
718
+ 'type' => 'text',
719
+ ));
720
+ $wp_customize->add_setting('our_services_subheading', array(
721
+ 'default' => '',
722
+ 'capability' => 'edit_theme_options',
723
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
724
+
725
+ ));
726
+ $wp_customize->add_control('our_services_subheading', array(
727
+ 'label' => __('Sub Heading', 'oneline-lite'),
728
+ 'section' => 'services_setting',
729
+ 'settings' => 'our_services_subheading',
730
+ 'type' => 'textarea',
731
+ ));
732
+ $wp_customize->add_setting('service_bg_color',
733
+ array(
734
+ 'default' => '#fff',
735
+ 'type' => 'theme_mod',
736
+ 'capability' => 'edit_theme_options',
737
+
738
+ ) );
739
+ $wp_customize->add_control(
740
+ new WP_Customize_Color_Control(
741
+ $wp_customize,
742
+ 'service_bg_color',
743
+ array(
744
+ 'label' => __('Background Color','oneline-lite'),
745
+ 'section' => 'services_setting',
746
+ 'settings' => 'service_bg_color',
747
+ )
748
+ )
749
+ );
750
+ $wp_customize->add_setting('service_hd_color', array(
751
+ 'default' => '#111',
752
+ 'capability' => 'edit_theme_options',
753
+ ));
754
+ $wp_customize->add_control(
755
+ new WP_Customize_Color_Control(
756
+ $wp_customize,
757
+ 'service_hd_color',
758
+ array(
759
+ 'label' => __('Main Heading Color','oneline-lite'),
760
+ 'section' => 'services_setting',
761
+ 'settings' => 'service_hd_color',
762
+ ) ) );
763
+ $wp_customize->add_setting('service_sbhd_color', array(
764
+ 'default' => '#7D7D7D',
765
+ 'capability' => 'edit_theme_options',
766
+ ));
767
+ $wp_customize->add_control(
768
+ new WP_Customize_Color_Control(
769
+ $wp_customize,
770
+ 'service_sbhd_color',
771
+ array(
772
+ 'label' => __('Sub Heading Color','oneline-lite'),
773
+ 'section' => 'services_setting',
774
+ 'settings' => 'service_sbhd_color',
775
+ ) ) );
776
+ // end services section
777
+ /** Our Ribbon Section ***/
778
+ $wp_customize->add_panel( 'ribbon_panel', array(
779
+ 'priority' => 6,
780
+ 'title' => __('Ribbon Section', 'oneline-lite'),
781
+ ) );
782
+ $wp_customize->add_section('ribbon_sittings', array(
783
+ 'title' => __('Setting', 'oneline-lite'),
784
+ 'priority' => 1,
785
+ 'panel' =>'ribbon_panel'
786
+ ));
787
+ $wp_customize->add_setting('ribbon_heading', array(
788
+ 'default' => '',
789
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
790
+ ));
791
+ $wp_customize->add_control('ribbon_heading', array(
792
+ 'label' => __('Heading', 'oneline-lite'),
793
+ 'section' => 'ribbon_sittings',
794
+ 'settings' => 'ribbon_heading',
795
+ 'type' => 'text',
796
+ ));
797
+ $wp_customize->add_setting('ribbon_button_text', array(
798
+ 'default' => '',
799
+ 'sanitize_callback' => 'sanitize_text_field'
800
+ ));
801
+ $wp_customize->add_control('ribbon_button_text', array(
802
+ 'label' => __('Button Text', 'oneline-lite'),
803
+ 'section' => 'ribbon_sittings',
804
+ 'settings' => 'ribbon_button_text',
805
+ 'type' => 'text',
806
+ ));
807
+ $wp_customize->add_setting('ribbon_button_link', array(
808
+ 'default' => '#',
809
+ 'capability' => 'edit_theme_options',
810
+ 'sanitize_callback' => 'esc_url_raw',
811
+ ));
812
+ $wp_customize->add_control('ribbon_button_link', array(
813
+ 'label' => __('Button Link', 'oneline-lite'),
814
+ 'section' => 'ribbon_sittings',
815
+ 'settings' => 'ribbon_button_link',
816
+ 'type' => 'text',
817
+ ));
818
+ $wp_customize->add_setting('ribbn_bg_color',
819
+ array(
820
+ 'default' => 'rgba(0, 0, 0, 0.55)',
821
+ 'type' => 'theme_mod',
822
+ 'capability' => 'edit_theme_options',
823
+
824
+ ) );
825
+ $wp_customize->add_control(
826
+ new Customize_themehunk_Color_Control($wp_customize,
827
+ 'ribbn_bg_color',
828
+ array(
829
+ 'label' => __('Overlay Color','oneline-lite'),
830
+ 'description' => __('(Set background color for section or set color with transparency for section overlay)','oneline-lite'),
831
+ 'section' => 'ribbon_sittings',
832
+ 'settings' => 'ribbn_bg_color',
833
+ 'palette' => $palette
834
+ )
835
+ )
836
+ );
837
+ $wp_customize->add_setting('ribbon_hd_color', array(
838
+ 'default' => '#fff',
839
+ 'capability' => 'edit_theme_options',
840
+ ));
841
+ $wp_customize->add_control(
842
+ new WP_Customize_Color_Control(
843
+ $wp_customize,
844
+ 'ribbon_hd_color',
845
+ array(
846
+ 'label' => __('Heading Color','oneline-lite'),
847
+ 'section' => 'ribbon_sittings',
848
+ 'settings' => 'ribbon_hd_color',
849
+ ) ) );
850
+
851
+ $wp_customize->add_setting('ribbn_btn_bg_color',
852
+ array(
853
+ 'default' => 'rgba(0, 0, 0, 0)',
854
+ 'type' => 'theme_mod',
855
+ 'capability' => 'edit_theme_options',
856
+
857
+ ) );
858
+ $wp_customize->add_control(
859
+ new Customize_themehunk_Color_Control($wp_customize,
860
+ 'ribbn_btn_bg_color',
861
+ array(
862
+ 'label' => __('Button Background Color','oneline-lite'),
863
+ 'section' => 'ribbon_sittings',
864
+ 'settings' => 'ribbn_btn_bg_color',
865
+ 'palette' => $palette
866
+ )
867
+ )
868
+ );
869
+
870
+ $wp_customize->add_setting('ribbon_btn_title_color', array(
871
+ 'default' => '#fff',
872
+ 'capability' => 'edit_theme_options',
873
+ ));
874
+ $wp_customize->add_control(
875
+ new WP_Customize_Color_Control(
876
+ $wp_customize,
877
+ 'ribbon_btn_title_color',
878
+ array(
879
+ 'label' => __('Button Text Color','oneline-lite'),
880
+ 'section' => 'ribbon_sittings',
881
+ 'settings' => 'ribbon_btn_title_color',
882
+ ) ) );
883
+
884
+ $wp_customize->add_setting('ribbon_btn_brd_color', array(
885
+ 'default' => '#fff',
886
+ 'capability' => 'edit_theme_options',
887
+ ));
888
+ $wp_customize->add_control(
889
+ new WP_Customize_Color_Control(
890
+ $wp_customize,
891
+ 'ribbon_btn_brd_color',
892
+ array(
893
+ 'label' => __('Button Border Color','oneline-lite'),
894
+ 'section' => 'ribbon_sittings',
895
+ 'settings' => 'ribbon_btn_brd_color',
896
+ ) ) );
897
+ // btn-hover
898
+ $wp_customize->add_setting('ribbn_btn_bg_hvr_color',
899
+ array(
900
+ 'default' => 'rgba(255, 255, 255, 0.5)',
901
+ 'type' => 'theme_mod',
902
+ 'capability' => 'edit_theme_options',
903
+
904
+ ) );
905
+ $wp_customize->add_control(
906
+ new Customize_themehunk_Color_Control($wp_customize,
907
+ 'ribbn_btn_bg_hvr_color',
908
+ array(
909
+ 'label' => __('Button Background Hover Color','oneline-lite'),
910
+ 'section' => 'ribbon_sittings',
911
+ 'settings' => 'ribbn_btn_bg_hvr_color',
912
+ 'palette' => $palette
913
+ )
914
+ )
915
+ );
916
+
917
+ $wp_customize->add_setting('ribbon_btn_title_hvr_color', array(
918
+ 'default' => '#fff',
919
+ 'capability' => 'edit_theme_options',
920
+ ));
921
+ $wp_customize->add_control(
922
+ new WP_Customize_Color_Control(
923
+ $wp_customize,
924
+ 'ribbon_btn_title_hvr_color',
925
+ array(
926
+ 'label' => __('Button Text Hover Color','oneline-lite'),
927
+ 'section' => 'ribbon_sittings',
928
+ 'settings' => 'ribbon_btn_title_hvr_color',
929
+ ) ) );
930
+
931
+ $wp_customize->add_setting('ribbon_btn_brd_hvr_color', array(
932
+ 'default' => '#fff',
933
+ 'capability' => 'edit_theme_options',
934
+ ));
935
+ $wp_customize->add_control(
936
+ new WP_Customize_Color_Control(
937
+ $wp_customize,
938
+ 'ribbon_btn_brd_hvr_color',
939
+ array(
940
+ 'label' => __('Button Border Color','oneline-lite'),
941
+ 'section' => 'ribbon_sittings',
942
+ 'settings' => 'ribbon_btn_brd_hvr_color',
943
+ ) ) );
944
+
945
+ //image
946
+ $wp_customize->add_section('ribbon_image', array(
947
+ 'title' => __('Image', 'oneline-lite'),
948
+ 'priority' => 3,
949
+ 'panel' =>'ribbon_panel'
950
+ ));
951
+
952
+ $wp_customize->add_setting('ribbon_bg_image', array(
953
+ 'default' => '',
954
+ 'sanitize_callback' => 'esc_url'
955
+ ));
956
+ $wp_customize->add_control( new WP_Customize_Image_Control(
957
+ $wp_customize, 'ribbon_bg_image', array(
958
+ 'label' => __('Upload Background Image', 'oneline-lite'),
959
+ 'section' => 'ribbon_image',
960
+ 'settings' => 'ribbon_bg_image',
961
+ )));
962
+ /********************************/
963
+ /** Our Team Section ***/
964
+ /********************************/
965
+ $wp_customize->add_panel( 'team_panel', array(
966
+ 'priority' => 9,
967
+ 'title' => __('Team Section', 'oneline-lite'),
968
+ ));
969
+ //header
970
+ $wp_customize->add_section('team_setting', array(
971
+ 'title' => __('Setting', 'oneline-lite'),
972
+ 'priority' => 1,
973
+ 'panel' =>'team_panel'
974
+ ));
975
+ $wp_customize->add_setting('team_heading', array(
976
+ 'default' => '',
977
+ 'capability' => 'edit_theme_options',
978
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
979
+ ));
980
+ $wp_customize->add_control('team_heading', array(
981
+ 'label' => __('Main Heading', 'oneline-lite'),
982
+ 'section' => 'team_setting',
983
+ 'settings' => 'team_heading',
984
+ 'type' => 'text',
985
+ ));
986
+ $wp_customize->add_setting('team_subheading', array(
987
+ 'default' => '',
988
+ 'capability' => 'edit_theme_options',
989
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
990
+ ));
991
+ $wp_customize->add_control('team_subheading', array(
992
+ 'label' => __('Sub Heading', 'oneline-lite'),
993
+ 'section' => 'team_setting',
994
+ 'settings' => 'team_subheading',
995
+ 'type' => 'textarea',
996
+ ));
997
+ $wp_customize->add_setting('team_bg_color',
998
+ array(
999
+ 'default' => '#fff',
1000
+ 'type' => 'theme_mod',
1001
+ 'capability' => 'edit_theme_options',
1002
+
1003
+ ) );
1004
+ $wp_customize->add_control(
1005
+ new WP_Customize_Color_Control(
1006
+ $wp_customize,
1007
+ 'team_bg_color',
1008
+ array(
1009
+ 'label' => __('Background Color','oneline-lite'),
1010
+ 'section' => 'team_setting',
1011
+ 'settings' => 'team_bg_color',
1012
+
1013
+ )
1014
+ )
1015
+ );
1016
+
1017
+ $wp_customize->add_setting('team_hd_color', array(
1018
+ 'default' => '#111',
1019
+ 'capability' => 'edit_theme_options',
1020
+ ));
1021
+ $wp_customize->add_control(
1022
+ new WP_Customize_Color_Control(
1023
+ $wp_customize,
1024
+ 'team_hd_color',
1025
+ array(
1026
+ 'label' => __('Main Heading Color','oneline-lite'),
1027
+ 'section' => 'team_setting',
1028
+ 'settings' => 'team_hd_color',
1029
+ ) ) );
1030
+
1031
+ $wp_customize->add_setting('team_sb_hd_color', array(
1032
+ 'default' => '#7D7D7D',
1033
+ 'capability' => 'edit_theme_options',
1034
+ ));
1035
+ $wp_customize->add_control(
1036
+ new WP_Customize_Color_Control(
1037
+ $wp_customize,
1038
+ 'team_sb_hd_color',
1039
+ array(
1040
+ 'label' => __('Sub Heading Color','oneline-lite'),
1041
+ 'section' => 'team_setting',
1042
+ 'settings' => 'team_sb_hd_color',
1043
+ ) ) );
1044
+ // =============================
1045
+ // = Testimonial Settings =
1046
+ // =============================
1047
+ $wp_customize->add_panel( 'testimonial_panel', array(
1048
+ 'priority' => 10,
1049
+ 'title' => __('Testimonial Section', 'oneline-lite'),
1050
+ ));
1051
+
1052
+ $wp_customize->add_section('testimonial_setting', array(
1053
+ 'title' => __('Color', 'oneline-lite'),
1054
+ 'priority' => 1,
1055
+ 'panel' =>'testimonial_panel'
1056
+ ));
1057
+ $wp_customize->add_setting('testimonial_bg_color',
1058
+ array(
1059
+ 'default' => '#1F1F1F',
1060
+ 'type' => 'theme_mod',
1061
+ 'capability' => 'edit_theme_options',
1062
+
1063
+ ) );
1064
+ $wp_customize->add_control(
1065
+ new WP_Customize_Color_Control(
1066
+ $wp_customize,
1067
+ 'testimonial_bg_color',
1068
+ array(
1069
+ 'label' => __('Background Color','oneline-lite'),
1070
+ 'section' => 'testimonial_setting',
1071
+ 'settings' => 'testimonial_bg_color',
1072
+
1073
+ )
1074
+ )
1075
+ );
1076
+ $wp_customize->add_setting('testimonial_athr_color',
1077
+ array(
1078
+ 'default' => '#fff',
1079
+ 'type' => 'theme_mod',
1080
+ 'capability' => 'edit_theme_options',
1081
+
1082
+ ) );
1083
+ $wp_customize->add_control(
1084
+ new WP_Customize_Color_Control(
1085
+ $wp_customize,
1086
+ 'testimonial_athr_color',
1087
+ array(
1088
+ 'label' => __('Author Name Color','oneline-lite'),
1089
+ 'section' => 'testimonial_setting',
1090
+ 'settings' => 'testimonial_athr_color',
1091
+
1092
+ )
1093
+ )
1094
+ );
1095
+ $wp_customize->add_setting('testimonial_url_color',
1096
+ array(
1097
+ 'default' => '#808080',
1098
+ 'type' => 'theme_mod',
1099
+ 'capability' => 'edit_theme_options',
1100
+
1101
+ ) );
1102
+ $wp_customize->add_control(
1103
+ new WP_Customize_Color_Control(
1104
+ $wp_customize,
1105
+ 'testimonial_url_color',
1106
+ array(
1107
+ 'label' => __('Url & Border Color','oneline-lite'),
1108
+ 'section' => 'testimonial_setting',
1109
+ 'settings' => 'testimonial_url_color',
1110
+
1111
+ )
1112
+ )
1113
+ );
1114
+ $wp_customize->add_setting('testimonial_desc_color',
1115
+ array(
1116
+ 'default' => '#808080',
1117
+ 'type' => 'theme_mod',
1118
+ 'capability' => 'edit_theme_options',
1119
+
1120
+ ) );
1121
+ $wp_customize->add_control(
1122
+ new WP_Customize_Color_Control(
1123
+ $wp_customize,
1124
+ 'testimonial_desc_color',
1125
+ array(
1126
+ 'label' => __('Description Color','oneline-lite'),
1127
+ 'section' => 'testimonial_setting',
1128
+ 'settings' => 'testimonial_desc_color',
1129
+
1130
+ )
1131
+ )
1132
+ );
1133
+
1134
+ /** woocommerce section**/
1135
+ $wp_customize->add_section('woo_setting', array(
1136
+ 'title' => __('Woocommerce Section', 'oneline-lite'),
1137
+ 'priority' => 12,
1138
+ ));
1139
+ $wp_customize->add_setting('woo_heading', array(
1140
+ 'default' => '',
1141
+ 'capability' => 'edit_theme_options',
1142
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1143
+ ));
1144
+ $wp_customize->add_control('woo_heading', array(
1145
+ 'label' => __('Main Heading', 'oneline-lite'),
1146
+ 'section' => 'woo_setting',
1147
+ 'settings' => 'woo_heading',
1148
+ 'type' => 'text',
1149
+ ));
1150
+ $wp_customize->add_setting('woo_subheading', array(
1151
+ 'default' => '',
1152
+ 'capability' => 'edit_theme_options',
1153
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1154
+ ));
1155
+ $wp_customize->add_control('woo_subheading', array(
1156
+ 'label' => __('Sub Heading', 'oneline-lite'),
1157
+ 'section' => 'woo_setting',
1158
+ 'settings' => 'woo_subheading',
1159
+ 'type' => 'textarea',
1160
+ ));
1161
+ $wp_customize->add_setting('woo_shortcode', array(
1162
+ 'default' => '[recent_products]',
1163
+ 'capability' => 'edit_theme_options',
1164
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1165
+ ));
1166
+ $wp_customize->add_control('woo_shortcode', array(
1167
+ 'label' => __('Woocommerce Shortcode', 'oneline-lite'),
1168
+ 'section' => 'woo_setting',
1169
+ 'settings' => 'woo_shortcode',
1170
+ 'type' => 'textarea',
1171
+ ));
1172
+
1173
+ $wp_customize->add_setting('woo_bg_color',
1174
+ array(
1175
+ 'default' => '#fff',
1176
+ 'type' => 'theme_mod',
1177
+ 'capability' => 'edit_theme_options',
1178
+
1179
+ ) );
1180
+ $wp_customize->add_control(
1181
+ new WP_Customize_Color_Control(
1182
+ $wp_customize,
1183
+ 'woo_bg_color',
1184
+ array(
1185
+ 'label' => __('Background Color','oneline-lite'),
1186
+ 'section' => 'woo_setting',
1187
+ 'settings' => 'woo_bg_color',
1188
+
1189
+ )
1190
+ )
1191
+ );
1192
+ $wp_customize->add_setting('woo_hd_color',
1193
+ array(
1194
+ 'default' => '#111',
1195
+ 'type' => 'theme_mod',
1196
+ 'capability' => 'edit_theme_options',
1197
+
1198
+ ) );
1199
+ $wp_customize->add_control(
1200
+ new WP_Customize_Color_Control(
1201
+ $wp_customize,
1202
+ 'woo_hd_color',
1203
+ array(
1204
+ 'label' => __('Main Heading Color','oneline-lite'),
1205
+ 'section' => 'woo_setting',
1206
+ 'settings' => 'woo_hd_color',
1207
+
1208
+ )
1209
+ )
1210
+ );
1211
+ $wp_customize->add_setting('woo_subhd_color',
1212
+ array(
1213
+ 'default' => '#7D7D7D',
1214
+ 'type' => 'theme_mod',
1215
+ 'capability' => 'edit_theme_options',
1216
+
1217
+ ) );
1218
+ $wp_customize->add_control(
1219
+ new WP_Customize_Color_Control(
1220
+ $wp_customize,
1221
+ 'woo_subhd_color',
1222
+ array(
1223
+ 'label' => __('Sub Heading Color','oneline-lite'),
1224
+ 'section' => 'woo_setting',
1225
+ 'settings' => 'woo_subhd_color',
1226
+
1227
+ )
1228
+ )
1229
+ );
1230
+ /**End woocommerce section**/
1231
+
1232
+
1233
+
1234
+ /** Latest Post Section ***/
1235
+
1236
+ $wp_customize->add_section('blog_setting', array(
1237
+ 'title' => __('Latest Post Section', 'oneline-lite'),
1238
+ 'priority' => 11,
1239
+ ));
1240
+ $wp_customize->add_setting('blog_heading', array(
1241
+ 'default' => '',
1242
+ 'capability' => 'edit_theme_options',
1243
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1244
+ ));
1245
+ $wp_customize->add_control('blog_heading', array(
1246
+ 'label' => __('Main Heading', 'oneline-lite'),
1247
+ 'section' => 'blog_setting',
1248
+ 'settings' => 'blog_heading',
1249
+ 'type' => 'text',
1250
+ ));
1251
+ $wp_customize->add_setting('blog_subheading', array(
1252
+ 'default' => '',
1253
+ 'capability' => 'edit_theme_options',
1254
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1255
+ ));
1256
+ $wp_customize->add_control('blog_subheading', array(
1257
+ 'label' => __('Sub Heading', 'oneline-lite'),
1258
+ 'section' => 'blog_setting',
1259
+ 'settings' => 'blog_subheading',
1260
+ 'type' => 'textarea',
1261
+ ));
1262
+
1263
+ $wp_customize->add_setting('post_cate_count', array(
1264
+ 'default' => 4,
1265
+ 'capability' => 'edit_theme_options',
1266
+ 'sanitize_callback' => 'esc_attr',
1267
+ ));
1268
+ $wp_customize->add_control('post_cate_count', array(
1269
+ 'settings' => 'post_cate_count',
1270
+ 'label' => __('Number of Post','oneline-lite'),
1271
+ 'description' => __('(Enter number of post which you want to show.)','oneline-lite'),
1272
+ 'section' => 'blog_setting',
1273
+ 'type' => 'number',
1274
+ 'input_attrs' => array('min' => 1,'max' => 8)
1275
+ ) );
1276
+ $wp_customize->add_setting('read_more_txt', array(
1277
+ 'default' => 'Read More',
1278
+ 'capability' => 'edit_theme_options',
1279
+ 'sanitize_callback' => 'esc_attr',
1280
+ ));
1281
+ $wp_customize->add_control('read_more_txt', array(
1282
+ 'settings' => 'read_more_txt',
1283
+ 'label' => __('Change Read More Text','oneline-lite'),
1284
+ 'description'=> __('Enter a text below that you want to show instead of Read More','oneline-lite'),
1285
+ 'section' => 'blog_setting',
1286
+ 'type' => 'text',
1287
+
1288
+ ) );
1289
+
1290
+ $wp_customize->add_setting('blog_bg_color',
1291
+ array(
1292
+ 'default' => '#f7f7f7',
1293
+ 'type' => 'theme_mod',
1294
+ 'capability' => 'edit_theme_options',
1295
+
1296
+ ) );
1297
+ $wp_customize->add_control(
1298
+ new WP_Customize_Color_Control(
1299
+ $wp_customize,
1300
+ 'blog_bg_color',
1301
+ array(
1302
+ 'label' => __('Background Color','oneline-lite'),
1303
+ 'section' => 'blog_setting',
1304
+ 'settings' => 'blog_bg_color',
1305
+
1306
+ )
1307
+ )
1308
+ );
1309
+ $wp_customize->add_setting('blog_hd_color',
1310
+ array(
1311
+ 'default' => '#111',
1312
+ 'type' => 'theme_mod',
1313
+ 'capability' => 'edit_theme_options',
1314
+
1315
+ ) );
1316
+ $wp_customize->add_control(
1317
+ new WP_Customize_Color_Control(
1318
+ $wp_customize,
1319
+ 'blog_hd_color',
1320
+ array(
1321
+ 'label' => __('Main Heading Color','oneline-lite'),
1322
+ 'section' => 'blog_setting',
1323
+ 'settings' => 'blog_hd_color',
1324
+
1325
+ )
1326
+ )
1327
+ );
1328
+ $wp_customize->add_setting('blog_sbhd_color',
1329
+ array(
1330
+ 'default' => '#7D7D7D',
1331
+ 'type' => 'theme_mod',
1332
+ 'capability' => 'edit_theme_options',
1333
+
1334
+ ) );
1335
+ $wp_customize->add_control(
1336
+ new WP_Customize_Color_Control(
1337
+ $wp_customize,
1338
+ 'blog_sbhd_color',
1339
+ array(
1340
+ 'label' => __('Sub Heading Color','oneline-lite'),
1341
+ 'section' => 'blog_setting',
1342
+ 'settings' => 'blog_sbhd_color',
1343
+
1344
+ )
1345
+ )
1346
+ );
1347
+ /** Contact Us Section ***/
1348
+ $wp_customize->add_panel( 'contactus_panel', array(
1349
+ 'priority' => 13,
1350
+ 'title' => __('Contact Us Section', 'oneline-lite'),
1351
+ ));
1352
+ //header
1353
+ $wp_customize->add_section('contactus_setting', array(
1354
+ 'title' => __('Setting', 'oneline-lite'),
1355
+ 'priority' => 1,
1356
+ 'panel' =>'contactus_panel'
1357
+ ));
1358
+ $wp_customize->add_setting('contactus_heading', array(
1359
+ 'default' => '',
1360
+ 'capability' => 'edit_theme_options',
1361
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1362
+ ));
1363
+ $wp_customize->add_control('contactus_heading', array(
1364
+ 'label' => __('Main Heading', 'oneline-lite'),
1365
+ 'section' => 'contactus_setting',
1366
+ 'settings' => 'contactus_heading',
1367
+ 'type' => 'text',
1368
+ ));
1369
+ $wp_customize->add_setting('contactus_subheading', array(
1370
+ 'default' => '',
1371
+ 'capability' => 'edit_theme_options',
1372
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1373
+ ));
1374
+ $wp_customize->add_control('contactus_subheading', array(
1375
+ 'label' => __('Sub Heading', 'oneline-lite'),
1376
+ 'section' => 'contactus_setting',
1377
+ 'settings' => 'contactus_subheading',
1378
+ 'type' => 'textarea',
1379
+ ));
1380
+ $wp_customize->add_setting('contactus_shortcode', array(
1381
+ 'default' => '[lead-form form-id=1 title=Contact Us]',
1382
+ 'capability' => 'edit_theme_options',
1383
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1384
+ ));
1385
+ $wp_customize->add_control('contactus_shortcode', array(
1386
+ 'label' => __('Contact Us Shortcode', 'oneline-lite'),
1387
+ 'description' =>__('Lead Form Builder Plugin Shortcode Insert.','oneline-lite'),
1388
+ 'section' => 'contactus_setting',
1389
+ 'settings' => 'contactus_shortcode',
1390
+ 'type' => 'textarea',
1391
+ ));
1392
+
1393
+ $wp_customize->add_setting('contactus_address_heading', array(
1394
+ 'default' => '',
1395
+ 'capability' => 'edit_theme_options',
1396
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1397
+ ));
1398
+ $wp_customize->add_control('contactus_address_heading', array(
1399
+ 'label' => __('Address Heading', 'oneline-lite'),
1400
+ 'section' => 'contactus_setting',
1401
+ 'settings' => 'contactus_address_heading',
1402
+ 'type' => 'text',
1403
+ ));
1404
+ $wp_customize->add_setting('contactus_address', array(
1405
+ 'default' => '',
1406
+ 'capability' => 'edit_theme_options',
1407
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1408
+ ));
1409
+ $wp_customize->add_control('contactus_address', array(
1410
+ 'label' => __('Full Address', 'oneline-lite'),
1411
+ 'section' => 'contactus_setting',
1412
+ 'settings' => 'contactus_address',
1413
+ 'type' => 'textarea',
1414
+ ));
1415
+ // contact-color
1416
+ $wp_customize->add_section('contactus_clr', array(
1417
+ 'title' => __('Color', 'oneline-lite'),
1418
+ 'priority' => 2,
1419
+ 'panel' =>'contactus_panel'
1420
+ ));
1421
+
1422
+ $wp_customize->add_setting('cnt_bg_color',
1423
+ array(
1424
+ 'default' => '#1F1F1F',
1425
+ 'type' => 'theme_mod',
1426
+ 'capability' => 'edit_theme_options',
1427
+
1428
+ ) );
1429
+ $wp_customize->add_control(
1430
+ new WP_Customize_Color_Control(
1431
+ $wp_customize,
1432
+ 'cnt_bg_color',
1433
+ array(
1434
+ 'label' => __('Background Color','oneline-lite'),
1435
+ 'section' => 'contactus_clr',
1436
+ 'settings' => 'cnt_bg_color',
1437
+
1438
+ )
1439
+ )
1440
+ );
1441
+ $wp_customize->add_setting('cnt_bhd_color',
1442
+ array(
1443
+ 'default' => '#fff',
1444
+ 'type' => 'theme_mod',
1445
+ 'capability' => 'edit_theme_options',
1446
+
1447
+ ) );
1448
+ $wp_customize->add_control(
1449
+ new WP_Customize_Color_Control(
1450
+ $wp_customize,
1451
+ 'cnt_bhd_color',
1452
+ array(
1453
+ 'label' => __('Main Heading Color','oneline-lite'),
1454
+ 'section' => 'contactus_clr',
1455
+ 'settings' => 'cnt_bhd_color',
1456
+
1457
+ )
1458
+ )
1459
+ );
1460
+ $wp_customize->add_setting('cnt_sbhd_color',
1461
+ array(
1462
+ 'default' => '#7D7D7D',
1463
+ 'type' => 'theme_mod',
1464
+ 'capability' => 'edit_theme_options',
1465
+
1466
+ ) );
1467
+ $wp_customize->add_control(
1468
+ new WP_Customize_Color_Control(
1469
+ $wp_customize,
1470
+ 'cnt_sbhd_color',
1471
+ array(
1472
+ 'label' => __('Sub Heading Color','oneline-lite'),
1473
+ 'section' => 'contactus_clr',
1474
+ 'settings' => 'cnt_sbhd_color',
1475
+
1476
+ )
1477
+ )
1478
+ );
1479
+ $wp_customize->add_setting('cnt_ad_main_color',
1480
+ array(
1481
+ 'default' => '#D4B068',
1482
+ 'type' => 'theme_mod',
1483
+ 'capability' => 'edit_theme_options',
1484
+
1485
+ ) );
1486
+ $wp_customize->add_control(
1487
+ new WP_Customize_Color_Control(
1488
+ $wp_customize,
1489
+ 'cnt_ad_main_color',
1490
+ array(
1491
+ 'label' => __('Address Heading Color','oneline-lite'),
1492
+ 'section' => 'contactus_clr',
1493
+ 'settings' => 'cnt_ad_main_color',
1494
+
1495
+ )
1496
+ )
1497
+ );
1498
+ $wp_customize->add_setting('cnt_ad_txt_color',
1499
+ array(
1500
+ 'default' => '#7D7D7D',
1501
+ 'type' => 'theme_mod',
1502
+ 'capability' => 'edit_theme_options',
1503
+
1504
+ ) );
1505
+ $wp_customize->add_control(
1506
+ new WP_Customize_Color_Control(
1507
+ $wp_customize,
1508
+ 'cnt_ad_txt_color',
1509
+ array(
1510
+ 'label' => __('Address Text Color','oneline-lite'),
1511
+ 'section' => 'contactus_clr',
1512
+ 'settings' => 'cnt_ad_txt_color',
1513
+
1514
+ )
1515
+ )
1516
+ );
1517
+ //===============================
1518
+ // = ADD-NEW section pro feature Settings =
1519
+ // =============================
1520
+ $wp_customize->add_section('section_addnew_', array(
1521
+ 'title' => __('Add New Section', 'oneline-lite'),
1522
+ 'priority' => 18,
1523
+ ));
1524
+ $wp_customize->add_setting('feature_addnew_pro', array(
1525
+ 'sanitize_callback' => 'themehunk_sanitize_text',
1526
+ ));
1527
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'feature_addnew_pro',
1528
+ array(
1529
+ 'section' => 'section_addnew_',
1530
+ 'type' => 'custom_message',
1531
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//www.themehunk.com/product/oneline-single-page-wordpress-theme/">OnelinePro</a> for full control over <strong>section ordering</strong>!','oneline-lite' )
1532
+ )));
1533
+
1534
+ // selective-refresh option added
1535
+ $wp_customize->selective_refresh->add_partial( 'blogname', array(
1536
+ 'selector' => '#logo .site-title a'
1537
+ ) );
1538
+ $wp_customize->selective_refresh->add_partial( 'blogdescription', array(
1539
+ 'selector' => '#logo p'
1540
+ ) );
1541
+ // slider
1542
+ $wp_customize->selective_refresh->add_partial( 'first_slider_heading', array(
1543
+ 'selector' => '#slider-div h2.title a',
1544
+ ) );
1545
+ $wp_customize->selective_refresh->add_partial( 'first_button_text', array(
1546
+ 'selector' => '#slider-div .slider-button',
1547
+ ) );
1548
+ // services
1549
+ $wp_customize->selective_refresh->add_partial( 'our_services_heading', array(
1550
+ 'selector' => '#services h2.main-heading',
1551
+ ) );
1552
+ $wp_customize->selective_refresh->add_partial( 'our_services_subheading', array(
1553
+ 'selector' => '#services p.sub-heading',
1554
+ ) );
1555
+ // ribbon
1556
+ $wp_customize->selective_refresh->add_partial( 'ribbon_heading', array(
1557
+ 'selector' => '#ribbon h3.main-heading',
1558
+ ) );
1559
+ $wp_customize->selective_refresh->add_partial( 'ribbon_button_text', array(
1560
+ 'selector' => '#ribbon .ribbon-button',
1561
+ ) );
1562
+ // team
1563
+ $wp_customize->selective_refresh->add_partial( 'team_heading', array(
1564
+ 'selector' => '#team h2.main-heading',
1565
+ ) );
1566
+ $wp_customize->selective_refresh->add_partial( 'team_subheading', array(
1567
+ 'selector' => '#team p.sub-heading',
1568
+ ) );
1569
+ // post
1570
+ $wp_customize->selective_refresh->add_partial( 'blog_heading', array(
1571
+ 'selector' => '#latest-post h2.main-heading',
1572
+ ) );
1573
+ $wp_customize->selective_refresh->add_partial( 'blog_subheading', array(
1574
+ 'selector' => '#latest-post p.sub-heading',
1575
+ ) );
1576
+ // woocommerce
1577
+ $wp_customize->selective_refresh->add_partial( 'woo_heading', array(
1578
+ 'selector' => '#woo-section h2.main-heading',
1579
+ ) );
1580
+ $wp_customize->selective_refresh->add_partial( 'woo_subheading', array(
1581
+ 'selector' => '#woo-section p.sub-heading',
1582
+ ) );
1583
+ // contact
1584
+ $wp_customize->selective_refresh->add_partial( 'contactus_heading', array(
1585
+ 'selector' => '#contact h2.cnt-main-heading',
1586
+ ) );
1587
+ $wp_customize->selective_refresh->add_partial( 'contactus_subheading', array(
1588
+ 'selector' => '#contact p.cnt-sub-heading',
1589
+ ) );
1590
+ $wp_customize->selective_refresh->add_partial( 'contactus_address_heading', array(
1591
+ 'selector' => '#contact .add-heading h3',
1592
+ ) );
1593
+ $wp_customize->selective_refresh->add_partial( 'contactus_address', array(
1594
+ 'selector' => '#contact .addrs p',
1595
+ ) );
1596
+ $wp_customize->selective_refresh->add_partial( 'contactus_shortcode', array(
1597
+ 'selector' => '#contact .cnt-div',
1598
+ ) );
1599
+ // copyright
1600
+ $wp_customize->selective_refresh->add_partial( 'copyright_text', array(
1601
+ 'selector' => '.foot-copyright span.text-footer',
1602
+ ) );
1603
+ $wp_customize->selective_refresh->add_partial( 'social_link_facebook', array(
1604
+ 'selector' => '.social-ft i.fa-facebook',
1605
+ ) );
1606
+ // end brand section
1607
+
1608
+ }
1609
+ add_action('customize_register','oneline_lite_unlimited_customize_register',999);
1610
+ ?>
oneline-lite/customizer/customizer_styles.css ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #widget-customizer-control-templates, .control-section.control-section-sidebar, .customize-control-sidebar_widgets .hide-if-js, .customize-control-sidebar_widgets label, .customize-control-widget_form .widget-control-save{
2
+ display:block;
3
+ }
4
+ a.oneline-docs-to-pro-button {
5
+ background: rgba(0, 128, 0, 0.75);
6
+ padding: 5px;
7
+ border-radius: 2px;
8
+ color: #fff;
9
+ position: relative;
10
+ top: 7px;
11
+ }
12
+ strong.panel-title.site-title {
13
+ margin-bottom: 10px;
14
+ }
15
+ .widget-content label {
16
+ padding-top: 10px;
17
+ padding-bottom: 10px;
18
+ display: block;
19
+ }
20
+ .widget-control-actions {
21
+ margin-top: 15px;
22
+ }
23
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-services"] .widget-title::before
24
+ { content: "\f339";
25
+ color: #D4B068;
26
+ }
27
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-team"] .widget-title::before
28
+ {
29
+ content: "\f307";
30
+ color: #D4B068;
31
+ }
32
+
33
+ #available-widgets #available-widgets-list div[class*="themehunk-customizer-testimonial"] .widget-title::before
34
+ {
35
+ color: #D4B068;
36
+ }
oneline-lite/customizer/js/customizer.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function() {
2
+ // our service widget
3
+ wp.customize.section( 'sidebar-widgets-multi-service-widget' ).panel('services_panel');
4
+ wp.customize.section( 'sidebar-widgets-multi-service-widget' ).priority('5');
5
+
6
+ // team widget
7
+ wp.customize.section( 'sidebar-widgets-multi-team-widget' ).panel('team_panel');
8
+ wp.customize.section( 'sidebar-widgets-multi-team-widget' ).priority('5');
9
+
10
+ // testimonial widget
11
+ wp.customize.section( 'sidebar-widgets-testimonial-widget' ).panel('testimonial_panel');
12
+ wp.customize.section( 'sidebar-widgets-testimonial-widget' ).priority('5');
13
+ });
oneline-lite/customizer/js/widget.js ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ jQuery(document).ready( function($) {
3
+
4
+ function media_upload(button_class) {
5
+
6
+ var _custom_media = true,
7
+
8
+ _orig_send_attachment = wp.media.editor.send.attachment;
9
+
10
+
11
+
12
+ $('body').on('click', button_class, function(e) {
13
+
14
+ var button_id ='#'+$(this).attr('id');
15
+
16
+ var self = $(button_id);
17
+
18
+ var send_attachment_bkp = wp.media.editor.send.attachment;
19
+
20
+ var button = $(button_id);
21
+
22
+ var id = button.attr('id').replace('_button', '');
23
+
24
+ _custom_media = true;
25
+
26
+ wp.media.editor.send.attachment = function(props, attachment){
27
+
28
+ if ( _custom_media ) {
29
+ $('#'+id).val(attachment.url);
30
+ $('.'+id).attr('src',attachment.url).css('display','block');
31
+ } else {
32
+
33
+ return _orig_send_attachment.apply( button_id, [props, attachment] );
34
+
35
+ }
36
+
37
+ }
38
+
39
+ wp.media.editor.open(button);
40
+
41
+ return false;
42
+
43
+ });
44
+
45
+ }
46
+
47
+ media_upload('.custom_media_button.button');
48
+
49
+ $(document).on( 'widget-added widget-updated ready', function() {
50
+ $('#widgets-right .color-picker').each( function() {
51
+ if ( ! $(this).data('wpWpColorPicker') ) {
52
+ $(this).wpColorPicker( {
53
+ change: _.throttle(function() {
54
+ $(this).trigger( 'change' );
55
+ }, 3000)
56
+ });
57
+ }
58
+ });
59
+ });
60
+
61
+ // alert($( "#accordion" ).accordion());
62
+
63
+
64
+ });
oneline-lite/demo/import-data.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ add_filter( 'pt-ocdi/disable_pt_branding', '__return_true' );
3
+ add_filter( 'pt-ocdi/regenerate_thumbnails_in_content_import', '__return_false' );
4
+
5
+ function onelinelite_import_files(){
6
+ return apply_filters(
7
+ 'onelinelite_demo_site', array(
8
+ array(
9
+ 'import_file_name' => esc_html__('OnelineLite Default','oneline-lite'),
10
+ 'import_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/oneline-lite/blogs.xml'),
11
+ 'import_customizer_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/oneline-lite/customizer.dat'),
12
+ 'import_widget_file_url'=> esc_url('https://themehunk.com/wp-content/uploads/sites-demo/oneline-lite/widgets.wie'),
13
+ 'import_notice' => __( 'Before importing the demo data, Install & Activate the recommended plugins.', 'oneline-lite' ),
14
+ ),
15
+ )
16
+ );
17
+ }
18
+ add_filter( 'pt-ocdi/import_files', 'onelinelite_import_files');
19
+
20
+
21
+ function onelinelite_after_import(){
22
+ // Assign front page and posts page (blog page).
23
+ $front_page_id = null;
24
+ $blog_page_id = null;
25
+ $front_page = get_page_by_title( 'home' );
26
+ if ( $front_page ) {
27
+ if ( is_array( $front_page ) ){
28
+ $first_page = array_shift( $front_page );
29
+ $front_page_id = $first_page->ID;
30
+ } else {
31
+ $front_page_id = $front_page->ID;
32
+ }
33
+ }
34
+ $blog_page = get_page_by_title( 'blog' );
35
+ if ( $blog_page ) {
36
+ if ( is_array( $blog_page ) ) {
37
+ $first_page = array_shift( $blog_page );
38
+ $blog_page_id = $first_page->ID;
39
+ } else {
40
+ $blog_page_id = $blog_page->ID;
41
+ }
42
+ }
43
+ if ( $front_page_id && $blog_page_id ) {
44
+ update_option( 'show_on_front', 'page' );
45
+ update_option( 'page_on_front', $front_page_id );
46
+ update_option( 'page_for_posts', $blog_page_id );
47
+ }
48
+ // Assign navigation menu locations.
49
+ $menu_location_details = array(
50
+ 'home-menu' => 'Front Menu',
51
+ 'frontpage-menu' => 'Main Menu'
52
+ );
53
+ if ( ! empty( $menu_location_details ) ){
54
+ $navigation_settings = array();
55
+ $current_navigation_menus = wp_get_nav_menus();
56
+ if ( ! empty( $current_navigation_menus ) && ! is_wp_error( $current_navigation_menus ) ) {
57
+ foreach ( $current_navigation_menus as $menu ) {
58
+ foreach ( $menu_location_details as $location => $menu_slug ) {
59
+ if ( $menu->slug === $menu_slug ) {
60
+ $navigation_settings[ $location ] = $menu->term_id;
61
+ }
62
+ }
63
+ }
64
+ }
65
+ set_theme_mod( 'nav_menu_locations', $navigation_settings );
66
+ }
67
+ }
68
+
69
+ add_action( 'pt-ocdi/after_import', 'onelinelite_after_import' );
oneline-lite/images/slider.jpeg ADDED
Binary file
oneline-lite/images/team.jpg ADDED
Binary file
oneline-lite/images/testimonia.png ADDED
Binary file
oneline-lite/inc/constant.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ define('THEMEHUNK_CUSTOMIZER_TEAM', __(THEMEHUNK_CUSTOMIZER_PLUGIN_URL.'oneline-lite/images/team.jpg','themehunk-customizer'));
5
+ define('THEMEHUNK_CUSTOMIZER_TESTIMONIAL', __(THEMEHUNK_CUSTOMIZER_PLUGIN_URL.'oneline-lite/images/testimonia.png','themehunk-customizer'));
6
+ define('THEMEHUNK_CUSTOMIZER_SLIDER', __(THEMEHUNK_CUSTOMIZER_PLUGIN_URL.'oneline-lite/images/slider.jpeg','themehunk-customizer'));
7
+ ?>
oneline-lite/inc/custom-style.php ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ // custom header background
5
+ function themehunk_customizer_oneline_custom_style(){
6
+
7
+ $custom_css = "
8
+ .footer-wrapper .svg-top-container{ fill:#fff; }
9
+ .foot-copyright .svg-top-container{ fill: #1F1F1F; }
10
+ .footer{ background-color:#fff;}
11
+ .foot-copyright { background-color:#1F1F1F; }
12
+ ";
13
+
14
+ $theme_color = get_theme_mod('theme_color','#D4B068');
15
+ $footer_bg_color = get_theme_mod('footer_bg_color','#fff');
16
+ $footer_info_bg_color = get_theme_mod('footer_info_bg_color','#1F1F1F');
17
+ $custom_css .= ".caption-container h2, .widget ul li:before, .widget #recentcomments .recentcomments span a,.widget #recentcomments .recentcomments, li.nav-previous a:after, li.nav-next a:after,.post-meta a:hover, .post-comment a:hover:before, ul.paging li a,#respond input#submit:hover, .breadcrumbs .current, .breadcrumbs a:hover, .caption-container .archive-title h1, .widget #recentcomments .recentcomments:before, .footer-wrapper a:hover, .tagcloud a:hover,.sidebar-inner-widget li a:hover, a:hover, a:focus, figure.portfolio-content h2 a, .navigation .sub-menu a:hover,.th-widget-recent-post .th-recent-post h5 a:hover, .post-meta .post-previous a:hover,.post-meta .post-next a:hover,.post-meta .post-previous a:hover:before,.post-meta .post-next a:hover:before,.post-meta .post-previous a:hover,.post-meta .post-next a:hover, span.post-author a:hover:before,mark,figure.post-content .date, figure.post-content i,#latest-post span.read-more a:hover,a, .foot-copyright a:hover,.breadcrumb-trail ul li.trail-end,.commentlist .reply a:hover, #cancel-comment-reply-link:hover, ol.commentlist li .comment-metadata span.edit-link a:hover, .commentlist b.fn,ol.commentlist li .reply a{color:{$theme_color};}
18
+ ::-moz-selection,::selection,#scroll:hover, ul.paging li a.current, ul.paging li a:hover, li.nav-next a:hover:after, li.nav-previous a:hover:after,.popup .post-detail::-webkit-scrollbar-thumb{
19
+ background:{$theme_color};}
20
+ ::-moz-selection {
21
+ background: {$theme_color};}
22
+ ::selection {
23
+ background:{$theme_color};}
24
+ textarea#comment:focus:focus,#respond input:focus, .widget input.search-field:focus, .search input.search-field:focus, .error404 input.search-field:focus, #searchform input[type='text']:focus{
25
+ outline:{$theme_color} .1px solid;}
26
+
27
+ .widgettitle, ul.paging li a, .post-meta .post-previous, #respond input#submit:hover,#scroll, .tagcloud a:hover, .page-description blockquote,.post-meta .post-previous a:hover,.post-meta .post-next a:hover, span.post-readmore a:hover, .post-date a:hover,#latest-post span.read-more a:hover{
28
+ border-color:{$theme_color};}
29
+ .loader{
30
+ border-color:{$theme_color};
31
+ border-top: 2px solid #f3f3f3;}
32
+ #scroll span {
33
+ border-bottom-color:{$theme_color};}
34
+ .last-btn #menu >li:last-child > a {
35
+ border: 1px solid {$theme_color};
36
+ background: {$theme_color};}
37
+ .blog-content .nav-links span.current{
38
+ color:{$theme_color};
39
+ border-color:{$theme_color};
40
+ }
41
+ .last-btn #menu >li:last-child > a:hover{color:{$theme_color};}
42
+ .foot-copyright{background:{$footer_info_bg_color};}
43
+ .foot-copyright .svg-top-container{fill:{$footer_info_bg_color};}
44
+ .footer-wrapper,.footer{background:{$footer_bg_color};}
45
+ .footer-wrapper .svg-top-container{fill:{$footer_bg_color};}";
46
+
47
+ $hd_bg_color = get_theme_mod('hd_bg_color');
48
+ $shrnk_hd_bg_color = get_theme_mod('shrnk_hd_bg_color','rgba(20, 20, 20, 0.952941)');
49
+ $site_title_color = get_theme_mod('site_title_color','#D4B068');
50
+ $hd_menu_color = get_theme_mod('hd_menu_color');
51
+ $hd_menu_hvr_color = get_theme_mod('hd_menu_hvr_color');
52
+ $mobile_menu_bg_color = get_theme_mod('mobile_menu_bg_color','#fff');
53
+
54
+
55
+ $custom_css .= ".header{background:{$hd_bg_color};}.header.smaller, .home .header.hdr-transparent.smaller{background:{$shrnk_hd_bg_color};}
56
+ .home .header #logo h1 a, .home .header #logo p,.header.smaller #logo h1 a, .header #logo p, .header.smaller #logo p{color:{$site_title_color};}
57
+
58
+ .home .navigation > ul > li >a,
59
+ .home .navigation > ul > li >a:link,
60
+ .navigation > ul > li >a,
61
+ .navigation > ul > li >a:link,
62
+ .smaller .navigation > ul > li > a,
63
+ .smaller .navigation > ul > li > a:link{color:{$hd_menu_color};}
64
+ .home .navigation > ul > li >a:before,
65
+ .home .navigation ul li a.active:before,
66
+ .navigation > ul > li >a:before,
67
+ .navigation ul li a.active:before,
68
+ .navigation li.current_page_item > a:before{background:{$hd_menu_hvr_color};}
69
+ .home .navigation > ul > li >a:hover,
70
+ .home .navigation > ul > li >a:link:hover,
71
+ .home .navigation ul li a.active,
72
+ .home .smaller .navigation ul li a.active,
73
+ .navigation > ul > li >a:hover,
74
+ .navigation > ul > li >a:link:hover,
75
+ .navigation ul li a.active,
76
+ .smaller .navigation > ul > li > a.active,
77
+ .navigation > ul > li.current-menu-item > a,
78
+ .navigation > ul > li.current-menu-item > a:link,
79
+ .home .navigation > ul > li.current-menu-item > a,
80
+ .navigation > ul > li.current-menu-item > a,
81
+ .navigation > ul.sub-menu > li > a:hover,
82
+ .smaller .navigation > ul > li > a:hover,
83
+ .smaller .navigation > ul > li > a:link:hover,
84
+ .smaller .navigation ul.sub-menu li a:hover,
85
+ .home .smaller .navigation ul.sub-menu li a:hover,.navigation ul.sub-menu li a:hover{color:{$hd_menu_hvr_color};}
86
+
87
+ @media screen and (max-width: 1024px){
88
+ .last-btn #menu >li:last-child > a{
89
+ background:#fff;
90
+ }
91
+ .last-btn #menu >li:last-child > a:hover{
92
+ background-color:{$hd_menu_hvr_color};}
93
+ .navigation .menu a:hover, .navigation ul > li.current-menu-item>a{
94
+ background-color:{$hd_menu_hvr_color};}
95
+ .navigation ul.sub-menu li a:hover{color:{$hd_menu_hvr_color}!important;}
96
+ .home a#pull:after,a#pull:after,.home .smaller a#pull:after,.smaller a#pull:after{color:{$mobile_menu_bg_color};}}";
97
+
98
+ $sldr_ovrly_color = get_theme_mod('sldr_ovrly_color','rgba(0, 0, 0, 0.55)');
99
+ $sldr_title_color = get_theme_mod('sldr_title_color','#fff');
100
+ $custom_css .= "#slider-div .over-lay{background:{$sldr_ovrly_color};}
101
+ #slider-div h2.title a{color:{$sldr_title_color};}";
102
+
103
+
104
+ $service_bg_color = get_theme_mod('service_bg_color','#fff');
105
+ $service_hd_color = get_theme_mod('service_hd_color','#111');
106
+ $service_sbhd_color = get_theme_mod('service_sbhd_color','#7D7D7D');
107
+ $custom_css .= "#services{ background-color:{$service_bg_color};}
108
+ .service-wrapper .svg-top-container { fill: {$service_bg_color};}
109
+ #services .main-heading{color:{$service_hd_color};}
110
+ #services .sub-heading{color:{$service_sbhd_color};}
111
+ .service-wrapper .svg-bottom-container{fill:{$service_bg_color};}";
112
+
113
+ $ribbn_bg_color = get_theme_mod('ribbn_bg_color','rgba(0,0,0,0.55)');
114
+ $ribbon_hd_color = get_theme_mod('ribbon_hd_color','#fff');
115
+ $ribbn_btn_bg_color = get_theme_mod('ribbn_btn_bg_color');
116
+ $ribbon_btn_title_color = get_theme_mod('ribbon_btn_title_color','#fff');
117
+ $ribbon_btn_brd_color = get_theme_mod('ribbon_btn_brd_color','#fff');
118
+ $ribbn_btn_bg_hvr_color = get_theme_mod('ribbn_btn_bg_hvr_color','rgba(255, 255, 255, 0.5)');
119
+ $ribbon_btn_title_hvr_color = get_theme_mod('ribbon_btn_title_hvr_color','#fff');
120
+ $ribbon_btn_brd_hvr_color = get_theme_mod('ribbon_btn_brd_hvr_color','#fff');
121
+ $custom_css .= "#ribbon:before{background:{$ribbn_bg_color};}
122
+ #ribbon h3.main-heading{color:{$ribbon_hd_color};}
123
+ #ribbon .header-button.left-button{color:{$ribbon_btn_title_color};}
124
+ #ribbon .header-button.left-button{border-color:{$ribbon_btn_brd_color};}
125
+ #ribbon .header-button.left-button{background:{$ribbn_btn_bg_color};}
126
+ #ribbon .header-button.left-button:hover{background:{$ribbn_btn_bg_hvr_color};color:{$ribbon_btn_title_hvr_color};border-color:{$ribbon_btn_brd_hvr_color};}";
127
+
128
+ $team_bg_color = get_theme_mod('team_bg_color','#fff');
129
+ $team_hd_color = get_theme_mod('team_hd_color','#111');
130
+ $team_sb_hd_color = get_theme_mod('team_sb_hd_color','#7D7D7D');
131
+ $custom_css .= ".team-wrapper #team{background:{$team_bg_color};}
132
+ .team-wrapper .svg-top-container{fill:{$team_bg_color};}
133
+ #team .main-heading{color:{$team_hd_color};}
134
+ #team .sub-heading{color:{$team_sb_hd_color};}";
135
+
136
+ $testimonial_bg_color = get_theme_mod('testimonial_bg_color','#1F1F1F');
137
+ $testimonial_athr_color = get_theme_mod('testimonial_athr_color','#fff');
138
+ $testimonial_url_color = get_theme_mod('testimonial_url_color','#808080');
139
+ $testimonial_desc_color = get_theme_mod('testimonial_desc_color','#808080');
140
+ $custom_css .="#testimonials:before{background:{$testimonial_bg_color};}
141
+ .testimonials-wrapper .svg-top-container{fill:{$testimonial_bg_color};}
142
+ .test-cont-heading h2{color:{$testimonial_athr_color};}
143
+ .test-cont a p{color:{$testimonial_url_color};}
144
+ .image-test img{border-color:{$testimonial_url_color};}
145
+ .test-cont p{color:{$testimonial_desc_color};}";
146
+
147
+ $blog_bg_color = get_theme_mod('blog_bg_color','#f7f7f7');
148
+ $blog_hd_color = get_theme_mod('blog_hd_color','#111');
149
+ $blog_sbhd_color = get_theme_mod('blog_sbhd_color','#7D7D7D');
150
+ $custom_css .="#latest-post{background:{$blog_bg_color};}
151
+ .post-wrapper .svg-top-container {fill:{$blog_bg_color};}
152
+ #latest-post .main-heading{color:{$blog_hd_color};}
153
+ #latest-post .sub-heading{color:{$blog_sbhd_color};}";
154
+
155
+ $cnt_bg_color = get_theme_mod('cnt_bg_color','#1F1F1F');
156
+ $cnt_bhd_color = get_theme_mod('cnt_bhd_color','#fff');
157
+ $cnt_sbhd_color = get_theme_mod('cnt_sbhd_color','#7D7D7D');
158
+ $cnt_ad_main_color = get_theme_mod('cnt_ad_main_color','#D4B068');
159
+ $cnt_ad_txt_color = get_theme_mod('cnt_ad_txt_color','#7D7D7D');
160
+ $custom_css .="#contact:before{background:{$cnt_bg_color};}
161
+ .contact-wrapper .svg-top-container{fill:{$cnt_bg_color};}
162
+ #contact .cnt-main-heading{color:{$cnt_bhd_color};}
163
+ #contact .cnt-sub-heading{color:{$cnt_sbhd_color};}
164
+ #contact .add-heading h3{color:{$cnt_ad_main_color};}
165
+ #contact .addrs p {color:{$cnt_ad_txt_color};}";
166
+
167
+ $woo_bg_color = get_theme_mod('woo_bg_color','#fff');
168
+ $woo_hd_color = get_theme_mod('woo_hd_color','#111');
169
+ $woo_subhd_color = get_theme_mod('woo_subhd_color','#7D7D7D');
170
+ $custom_css .="#woo-section{background:{$woo_bg_color};}
171
+ .woo-wrapper .svg-top-container { fill: {$woo_bg_color};}
172
+ #woo-section .main-heading{color:{$woo_hd_color };}
173
+ #woo-section .sub-heading{color:{$woo_subhd_color};}
174
+ #woo-section .woocommerce span.onsale,
175
+ #searchform input[type='submit'],.woocommerce-product-search input[type='submit'] {background-color:{$theme_color};}
176
+ #woo-section .woocommerce .woocommerce-message {
177
+ border-top-color:{$theme_color};}
178
+ #woo-section .woocommerce ul.products li.product h3,.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3{
179
+ color:{$theme_color};}
180
+ #woo-section .woocommerce span.onsale,
181
+ .woocommerce span.onsale, .woocommerce button.button.alt {
182
+ background-color:{$theme_color};}
183
+ .woocommerce button.button.alt,.woocommerce div.product form.cart .button {
184
+ border: 1px solid {$theme_color};}
185
+ .woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button.alt {
186
+ background-color:{$theme_color};
187
+ border-color:{$theme_color};}
188
+ .woocommerce #respond input#submit:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
189
+ .woocommerce div.product form.cart .button:hover,
190
+ .woocommerce a.button.alt:hover, .woocommerce input.button.alt:hover{
191
+ color:{$theme_color};
192
+ border: 1px solid {$theme_color};}
193
+ .woocommerce #commentform p.stars a{
194
+ color: {$theme_color};}";
195
+ return $custom_css;
196
+ }
197
+ function themehunk_customizer_enqueue(){
198
+ echo "<style>";
199
+ echo themehunk_customizer_oneline_custom_style();
200
+ echo "</style>";
201
+
202
+ }
203
+ add_action( 'wp_head', 'themehunk_customizer_enqueue' );
204
+
205
+ ?>
oneline-lite/inc/install.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ // register widget
5
+ add_action('widgets_init', 'themehunk_customizer_widget_init');
6
+ function themehunk_customizer_widget_init() {
7
+ register_widget( 'themehunk_customizer_services_widget' );
8
+ register_widget( 'themehunk_customizer_team_widget' );
9
+ register_widget( 'themehunk_customizer_testimonial_widget' );
10
+
11
+ }
12
+
13
+ /*
14
+ * Include assets
15
+ */
16
+ function themehunk_customizer_admin_assets() {
17
+ wp_enqueue_media();
18
+ wp_enqueue_script('themehunk-customizer-widget-script', THEMEHUNK_CUSTOMIZER_PLUGIN_URL. 'oneline-lite/customizer/js/widget.js', array( 'jquery', 'wp-color-picker' ), THEMEHUNK_CUSTOMIZER_VERSION, true);
19
+ }
20
+ add_action('admin_enqueue_scripts', 'themehunk_customizer_admin_assets');
21
+ ?>
oneline-lite/inc/shortcode.php ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ function themehunk_customizer_oneline_lite_dummy($did=''){
5
+ $return ='';
6
+ $services = '<li class="service-list">
7
+
8
+ <div class="service-icon1"><a href=""></a></div>
9
+
10
+ <div class="service-title"><a href="">IDEAS AND CONCEPTS</a></div>
11
+ <div class="service-content"><p>Lorem ipsum dolor sit amet, consectetur elit adipiscing. Etiam lectus libero, tincidunt et eu augue, congue finibus est.</p></div>
12
+ </li>
13
+ <li class="service-list">
14
+
15
+ <div class="service-icon2"><a href=""></a></div>
16
+
17
+ <div class="service-title"><a href="">DESIGNS & INTERFACES</a></div>
18
+ <div class="service-content"><p>Lorem ipsum dolor sit amet, consectetur elit adipiscing. Etiam lectus libero, tincidunt et eu augue, congue finibus est. </p></div>
19
+ </li>
20
+ <li class="service-list">
21
+ <div class="service-icon3"><a href=""></a></div>
22
+ <div class="service-title"><a href="">HIGHLY CUSTOMIZABLE</a></div>
23
+ <div class="service-content"><p>Lorem ipsum dolor sit amet, consectetur elit adipiscing. Etiam lectus libero, tincidunt et eu augue, congue finibus est. </p></div>
24
+ </li>
25
+ <li class="service-list">
26
+ <div class="service-icon4"><a href=""></a></div>
27
+ <div class="service-title"><a href="">EASY TO USE</a></div>
28
+ <div class="service-content"><p>Lorem ipsum dolor sit amet, consectetur elit adipiscing. Etiam lectus libero, tincidunt et eu augue, congue finibus est. </p></div>
29
+ </li>';
30
+
31
+ $team = '<li class="team-list">
32
+ <figure class="team-content"><img src="'. THEMEHUNK_CUSTOMIZER_TEAM.'" alt="Feature Image 1" />
33
+ <figcaption>
34
+ <a href=""><h3>Clairy&nbsp;<span>Robert</span></h3></a>
35
+ <h4>
36
+ Director
37
+ </h4>
38
+ <div class="team-social-meta">
39
+ <ul>
40
+ <li class="team-social-social-fb"><a href=""></a></li>
41
+ <li class="team-social-social-tw"><a href=""></a></li>
42
+ <li class="team-social-social-gm"><a href=""></a></li>
43
+ <li class="team-social-social-ln"><a href=""></a></li>
44
+ </ul>
45
+ </div>
46
+ </figcaption>
47
+ </figure>
48
+
49
+ </li>
50
+ <li class="team-list">
51
+ <figure class="team-content"><img src="'. THEMEHUNK_CUSTOMIZER_TEAM.'" alt="Feature Image 2" />
52
+ <figcaption>
53
+ <a href=""><h3>Justin&nbsp;<span>Martin</span></h3></a>
54
+ <h4>
55
+ Creative
56
+ </h4>
57
+ <div class="team-social-meta">
58
+ <ul>
59
+ <li class="team-social-social-fb"><a href=""></a></li>
60
+ <li class="team-social-social-tw"><a href=""></a></li>
61
+ <li class="team-social-social-gm"><a href=""></a></li>
62
+ <li class="team-social-social-ln"><a href=""></a></li>
63
+ </ul>
64
+ </div>
65
+ </figcaption>
66
+ </figure>
67
+
68
+ </li>
69
+ <li class="team-list">
70
+ <figure class="team-content"><img src="'. THEMEHUNK_CUSTOMIZER_TEAM.'" alt="Feature Image 3" />
71
+ <figcaption>
72
+ <a href=""><h3>Dalene&nbsp;<span>Atkinson</span></h3></a>
73
+ <h4>
74
+ Creator
75
+ </h4>
76
+ <div class="team-social-meta">
77
+ <ul>
78
+ <li class="team-social-social-fb"><a href=""></a></li>
79
+ <li class="team-social-social-tw"><a href=""></a></li>
80
+ <li class="team-social-social-gm"><a href=""></a></li>
81
+ <li class="team-social-social-ln"><a href=""></a></li>
82
+ </ul>
83
+ </div>
84
+ </figcaption>
85
+ </figure>
86
+
87
+ </li>
88
+ <li class="team-list">
89
+ <figure class="team-content"><img src="'. THEMEHUNK_CUSTOMIZER_TEAM.'" alt="Feature Image 4" />
90
+ <figcaption>
91
+ <a href=""><h3>Kerry&nbsp;<span>Smith</span></h3></a>
92
+ <h4>
93
+ Creator
94
+ </h4>
95
+ <div class="team-social-meta">
96
+ <ul>
97
+ <li class="team-social-social-fb"><a href=""></a></li>
98
+ <li class="team-social-social-tw"><a href=""></a></li>
99
+ <li class="team-social-social-gm"><a href=""></a></li>
100
+ <li class="team-social-social-ln"><a href=""></a></li>
101
+ </ul>
102
+ </div>
103
+ </figcaption>
104
+ </figure>
105
+ </li>';
106
+
107
+ $testimonial = '<li><div class="image-test">
108
+ <img src="'.THEMEHUNK_CUSTOMIZER_TESTIMONIAL.'">
109
+ </div>
110
+ <div class="test-cont-heading"><h2>Michael Rocks</h2></div>
111
+ <div class="test-cont"><a href=""><p>Google.com</p><div class="brd-testimonial"></div></a><p>Sed posuere consectetur est at lobortis. Fusce dapibus, tellus ac cursus commodo.Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis. Fusce dapibus, tellus ac cursus commodo.Sed posuere consectetur est at lobortis. .Sed posuere consectetur est at lobortis. Fusce dapibus, tellus ac cursus commodo.Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis. Fusce dapibus, tellus ac cursus commodo.Sed posuere consectetur est at lobortis
112
+ </p>
113
+ </div>
114
+ </li>
115
+ <li><div class="image-test">
116
+ <img src="'.THEMEHUNK_CUSTOMIZER_TESTIMONIAL.'">
117
+ </div>
118
+ <div class="test-cont-heading"><h2>George Hath</h2></div>
119
+ <div class="test-cont"><a href=""><p>Google.com</p><div class="brd-testimonial"></div></a><p>Sed posuere consectetur est at lobortis. Fusce dapibus, tellus ac cursus commodo.Cras mattis consectetur purus sit amet fermentum. Sed posuere consectetur est at lobortis. Fusce dapibus, tellus ac cursus commodo.Sed posuere consectetur est at lobortis. .
120
+ </p>
121
+ </div>
122
+ </li>';
123
+ $prlx = get_theme_mod('parallax_opt','on');
124
+ $prlx_class = '';
125
+ $prlx_data_center = '';
126
+ $prlx_top_bottom ='';
127
+ if($prlx=='on'){
128
+ $prlx_class = 'parallax-lite';
129
+ $prlx_data_center = 'background-position: 50% 0px';
130
+ $prlx_top_bottom = 'background-position: 50% -100px;';
131
+ }else{
132
+ $prlx_class = '';
133
+ $prlx_data_center = '';
134
+ $prlx_top_bottom ='';
135
+ }
136
+ $slider = '<li data-center="'.$prlx_data_center.'" data-top-bottom="'.$prlx_top_bottom.'" style="background:url('.THEMEHUNK_CUSTOMIZER_SLIDER.');">
137
+ <div class="over-lay">
138
+ <div class="fs-caption wow fadeInDown" data-wow-delay="1s">
139
+ <div class="caption-container">
140
+ <h2 class="title overtext"><a href="#">Every Client Deserves an Innovative Product</a></h2>
141
+ <div class="slider-button">
142
+ <a href="" class="theme-slider-button">GET IT NOW</a>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </li>';
148
+
149
+ $heading = 'Lorem ipsum dolor sit amet';
150
+ $subheading = 'In posuere consequat purus ut venenatis. Maecenas mattis mattisIn';
151
+ $serv_heading = 'Services';
152
+ $team_heading = 'Our Team';
153
+ $add_heading = 'Address';
154
+ $contact_heading = 'Address';
155
+ $address = 'Chris Niswandee </br>
156
+ Smallsys INC , 79 Dragram</br>
157
+ Tuson , 88879</br>
158
+ USA';
159
+ if($did==1){
160
+ $return = $services;
161
+ } elseif($did==2){
162
+ $return = $team;
163
+ } elseif($did==3){
164
+ $return = $testimonial;
165
+ }elseif($did==4){
166
+ $return = $slider;
167
+ } elseif($did==5){
168
+ $return = $heading;
169
+ } elseif($did==6){
170
+ $return = $subheading;
171
+ }elseif($did==7){
172
+ $return = $address;
173
+ }elseif($did==111){
174
+ $return = $serv_heading;
175
+ }elseif($did==222){
176
+ $return = $team_heading;
177
+ }elseif($did==333){
178
+ $return = $contact_heading;
179
+ }elseif($did==444){
180
+ $return = $add_heading;
181
+ }
182
+ return $return;
183
+ }
184
+
185
+ function themehunk_customizer_oneline_lite_data($atts) {
186
+ $output = '';
187
+ $pull_quote_atts = shortcode_atts(array(
188
+ 'did' => 1
189
+ ), $atts);
190
+ $did = wp_kses_post($pull_quote_atts['did']);
191
+
192
+ $output = themehunk_customizer_oneline_lite_dummy($did);
193
+ return $output;
194
+ }
195
+ add_shortcode('themehunk-customizer-oneline-lite', 'themehunk_customizer_oneline_lite_data');
196
+
197
+ function themehunk_customizer_oneline_social(){
198
+ $social = '<ul>
199
+ <li class="post-social-social-fb"><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.get_permalink().'"></a></li>
200
+ <li class="post-social-social-tw"><a target="_blank" href="https://twitter.com/home?status='.get_the_title().'-'.get_permalink().'"></a></li>
201
+ <li class="post-social-social-gm"><a target="_blank" href="https://plus.google.com/share?url='.get_permalink().'"></a></li>
202
+ <li class="post-social-social-ln"><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&url='. get_permalink().'&title='.get_the_title().'&source=LinkedIn"></a></li>
203
+ </ul>';
204
+ return $social;
205
+ }
206
+
207
+ function themehunk_customizer_oneline_lite_social_shortcode($atts) {
208
+ $output = '';
209
+ $pull_quote_atts = shortcode_atts(array(
210
+ 'did' => 1
211
+ ), $atts);
212
+ $did = wp_kses_post($pull_quote_atts['did']);
213
+
214
+ $output = themehunk_customizer_oneline_social($did);
215
+ return $output;
216
+ }
217
+ add_shortcode('themehunk-customizer-social', 'themehunk_customizer_oneline_lite_social_shortcode');
218
+
219
+
220
+ // woocommerce plugin
221
+ function themehunk_customizer_woo($did=''){
222
+ $woo_product = get_theme_mod('woo_shortcode','[recent_products]');
223
+
224
+ echo do_shortcode( $woo_product );
225
+
226
+ }
227
+
228
+ function themehunk_customizer_oneline_lite_woo($atts) {
229
+ $output = '';
230
+ $pull_quote_atts = shortcode_atts(array(
231
+ 'did' => 1
232
+ ), $atts);
233
+ $did = wp_kses_post($pull_quote_atts['did']);
234
+
235
+ $output = themehunk_customizer_woo($did);
236
+ return $output;
237
+ }
238
+ add_shortcode('themehunk-customizer-woo', 'themehunk_customizer_oneline_lite_woo');
239
+
240
+
241
+ ?>
oneline-lite/include.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ include_once( plugin_dir_path(__FILE__) . 'inc/constant.php' );
3
+ include_once( plugin_dir_path(__FILE__) . 'widget/team.php' );
4
+ include_once( plugin_dir_path(__FILE__) . 'widget/testimonial.php' );
5
+ include_once( plugin_dir_path(__FILE__) . 'widget/services.php' );
6
+ include_once( plugin_dir_path(__FILE__) . 'inc/install.php' );
7
+ include_once( plugin_dir_path(__FILE__) . 'customizer/custom-customizer.php' );
8
+ include_once( plugin_dir_path(__FILE__) . 'customizer/customizer.php' );
9
+ include_once( plugin_dir_path(__FILE__) . 'inc/custom-style.php' );
10
+ include_once( plugin_dir_path(__FILE__) . 'inc/shortcode.php' );
11
+ ?>
oneline-lite/widget/services.php ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+ /*
4
+ * Multi-Service Widget
5
+ */
6
+ class themehunk_customizer_services_widget extends WP_Widget {
7
+
8
+ function __construct() {
9
+ $widget_ops = array('classname' => 'themehunk-customizer-services',
10
+ 'description' => 'Show your services provided');
11
+ parent::__construct('themehunk-customizer-services-widget', __('ThemeHunk : Service Widget','themehunk-customizer'), $widget_ops);
12
+ }
13
+
14
+ function widget($args, $instance) {
15
+ extract($args);
16
+
17
+ // widget content
18
+ echo $before_widget;
19
+
20
+ $text = isset($instance['text'])?$instance['text']:__('writing your description','themehunk-customizer');
21
+ $link = isset($instance['link'])?$instance['link']:'http://';
22
+ $title = isset($instance['title'])?$instance['title']:__('New Title','themehunk-customizer');
23
+ $fontaws = isset($instance['fontaws'])?$instance['fontaws']:'fa fa-taxi';
24
+ $iconcolor = isset($instance['iconcolor'])?$instance['iconcolor']:'#D4B068';
25
+ $titlecolor = isset($instance['titlecolor'])?$instance['titlecolor']:'#111';
26
+ $desccolor = isset($instance['desccolor'])?$instance['desccolor']:'#1f1f1f';
27
+ ?>
28
+ <li class="service-list">
29
+ <div class="service-icon"><a href="<?php echo $link; ?>"><i style="color:<?php echo $iconcolor;?>" class="<?php echo $fontaws; ?>"></i></a></div>
30
+ <div class="service-title"><a style="color:<?php echo $titlecolor; ?>" href="<?php echo $link; ?>"><?php echo apply_filters('widget_title', $title ); ?></a></div>
31
+ <div class="service-content"><p style="color:<?php echo $desccolor; ?>"><?php echo $text; ?></p></div>
32
+ </li>
33
+
34
+ <?php
35
+ echo $after_widget;
36
+
37
+ }
38
+
39
+ function update($new_instance, $old_instance) {
40
+ $instance = $old_instance;
41
+ $instance['fontaws'] = $new_instance['fontaws'];
42
+ $instance['title'] = strip_tags( $new_instance['title'] );
43
+ $instance['text'] = $new_instance['text'];
44
+ $instance['link'] = $new_instance['link'];
45
+ $instance['titlecolor'] = $new_instance['titlecolor'];
46
+ $instance['iconcolor'] = $new_instance['iconcolor'];
47
+ $instance['desccolor'] = $new_instance['desccolor'];
48
+ return $instance;
49
+ }
50
+
51
+ function form($instance) {
52
+ if( $instance) {
53
+ $title = esc_attr($instance['title']);
54
+ $fontaws = esc_attr($instance['fontaws']);
55
+ $text = $instance['text'];
56
+ $link = $instance['link'];
57
+ $titlecolor = $instance['titlecolor'];
58
+ $iconcolor = $instance['iconcolor'];
59
+ $desccolor = $instance['desccolor'];
60
+
61
+ } else {
62
+ $title = '';
63
+ $fontaws = 'fa fa-taxi';
64
+ $text = '';
65
+ $link = 'http://';
66
+ $titlecolor = '#111';
67
+ $iconcolor = '#D4B068';
68
+ $desccolor = '#1f1f1f';
69
+ }
70
+ ?>
71
+ <div class="clearfix"></div>
72
+ <p>
73
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title','themehunk-customizer'); ?></label>
74
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php echo $title; ?>" style="margin-top:5px;">
75
+ </p>
76
+ <p>
77
+ <label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('Description','themehunk-customizer'); ?></label>
78
+ <textarea name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>" class="widefat" ><?php echo $text; ?></textarea>
79
+ </p>
80
+ <p>
81
+ <label for="<?php echo $this->get_field_id('link'); ?>"><?php _e('Link','themehunk-customizer'); _e('ex: http://www.abc.com','themehunk-customizer'); ?></label>
82
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('link'); ?>" id="<?php echo $this->get_field_id('link'); ?>" value="<?php echo $link; ?>" style="margin-top:5px;">
83
+ </p>
84
+ <p>
85
+ <label for="<?php echo $this->get_field_id('fontaws'); ?>"><?php _e('Font Awesome Icon','themehunk-customizer'); ?></label>
86
+ <label style="padding-bottom: 5px; padding-top:0px;font-size: 12px;font-style: italic;"><?php _e('Go to this link for <a target="_blank" href="//fontawesome.io/icons/">Fontawesome icons</a> and copy the class of icon that you need & paste it below.','themehunk-customizer'); ?></label>
87
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws'); ?>" id="<?php echo $this->get_field_id('fontaws'); ?>" value="<?php echo $fontaws; ?>" style="margin-top:5px;">
88
+ </p>
89
+
90
+ <p><label for="<?php echo $this->get_field_id( 'iconcolor' ); ?>" style="display:block;"><?php _e( 'Icon Color','themehunk-customizer' ); ?></label>
91
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'iconcolor' ); ?>" name="<?php echo $this->get_field_name( 'iconcolor' ); ?>" type="text" value="<?php echo esc_attr( $iconcolor ); ?>" />
92
+ </p>
93
+ <p><label for="<?php echo $this->get_field_id( 'titlecolor' ); ?>" style="display:block;"><?php _e( 'Title Color','themehunk-customizer' ); ?></label>
94
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'titlecolor' ); ?>" name="<?php echo $this->get_field_name( 'titlecolor' ); ?>" type="text" value="<?php echo esc_attr( $titlecolor ); ?>" />
95
+ </p>
96
+ <p><label for="<?php echo $this->get_field_id( 'desccolor' ); ?>" style="display:block;"><?php _e( 'Description Color','themehunk-customizer' ); ?></label>
97
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'desccolor' ); ?>" name="<?php echo $this->get_field_name( 'desccolor' ); ?>" type="text" value="<?php echo esc_attr( $desccolor ); ?>" />
98
+ </p>
99
+
100
+ <?php
101
+ }
102
+ }
oneline-lite/widget/team.php ADDED
@@ -0,0 +1,179 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * team Feature Column widget
6
+ */
7
+ class themehunk_customizer_team_widget extends WP_Widget {
8
+
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-team',
11
+ 'description' => 'Show your team');
12
+ parent::__construct('themehunk-customizer-team-widget', __('ThemeHunk : Team Widget','themehunk-customizer'), $widget_ops);
13
+ }
14
+
15
+ function widget($args, $instance) {
16
+ extract($args);
17
+
18
+ // widget content
19
+ echo $before_widget;
20
+ $link = isset($instance['link'])?$instance['link']:'http://';
21
+ $title = isset($instance['title'])?$instance['title']:__('New Title','themehunk-customizer');
22
+ $authpic = isset($instance['authpic'])?$instance['authpic']:'';
23
+ $deg = isset($instance['deg'])?$instance['deg']:'Designation';
24
+ $fontaws1 = isset($instance['fontaws1'])?$instance['fontaws1']:'';
25
+ $fontaws2 = isset($instance['fontaws2'])?$instance['fontaws2']:'';
26
+ $fontaws3 = isset($instance['fontaws3'])?$instance['fontaws3']:'';
27
+ $fontaws4 = isset($instance['fontaws4'])?$instance['fontaws4']:'';
28
+ $fontaws1link = isset($instance['fontaws1link'])?$instance['fontaws1link']:'';
29
+ $fontaws2link = isset($instance['fontaws2link'])?$instance['fontaws2link']:'';
30
+ $fontaws3link = isset($instance['fontaws3link'])?$instance['fontaws3link']:'';
31
+ $fontaws4link = isset($instance['fontaws4link'])?$instance['fontaws4link']:'';
32
+ $color = isset($instance['color'])?$instance['color']:'';
33
+ $border_color = isset($instance['border_color'])?$instance['border_color']:'';
34
+ $font_color = isset($instance['font_color'])?$instance['font_color']:'';
35
+ $hov_color = isset($instance['hov_color'])?$instance['hov_color']:'';
36
+ ?>
37
+
38
+ <li class="team-list">
39
+ <figure class="team-content">
40
+ <?php if($authpic!=''){ ?>
41
+ <img style="border:3px solid<?php echo $border_color ?>;" src="<?php echo $authpic; ?>">
42
+ <?php } ?>
43
+ <figcaption>
44
+ <a href="<?php echo $link;?>"><h3 style="color:<?php echo $font_color; ?>"><?php echo apply_filters('widget_title', $title ); ?></h3></a>
45
+ <h4 style="color:<?php echo $hov_color ?>">
46
+ <?php echo $deg; ?>
47
+ </h4>
48
+ <div class="team-social-meta">
49
+ <ul>
50
+ <li class="team-social-social"><a href="<?php echo $fontaws1link?>"><i style="color:<?php echo $color; ?>" class="<?php echo $fontaws1; ?>"></i></a></li>
51
+ <li class="team-social-social"><a href="<?php echo $fontaws2link?>"><i style="color:<?php echo $color; ?>" class="<?php echo $fontaws2; ?>"></i></a></li>
52
+ <li class="team-social-social"><a href="<?php echo $fontaws3link?>"><i style="color:<?php echo $color; ?>" class="<?php echo $fontaws3; ?>"></i></a></li>
53
+ <li class="team-social-social"><a href="<?php echo $fontaws4link?>"><i style="color:<?php echo $color; ?>" class="<?php echo $fontaws4; ?>"></i></a></li>
54
+ </ul>
55
+ </div>
56
+ </figcaption>
57
+ </figure>
58
+ </li>
59
+ <?php
60
+ echo $after_widget;
61
+
62
+ }
63
+
64
+ function update($new_instance, $old_instance) {
65
+ $instance = $old_instance;
66
+ $instance['authpic'] = $new_instance['authpic'];
67
+ $instance['title'] = strip_tags( $new_instance['title'] );
68
+ $instance['text'] = $new_instance['text'];
69
+ $instance['link'] = $new_instance['link'];
70
+ $instance['deg'] = $new_instance['deg'];
71
+ $instance['fontaws1'] = $new_instance['fontaws1'];
72
+ $instance['fontaws2'] = $new_instance['fontaws2'];
73
+ $instance['fontaws3'] = $new_instance['fontaws3'];
74
+ $instance['fontaws4'] = $new_instance['fontaws4'];
75
+ $instance['fontaws1link'] = $new_instance['fontaws1link'];
76
+ $instance['fontaws2link'] = $new_instance['fontaws2link'];
77
+ $instance['fontaws3link'] = $new_instance['fontaws3link'];
78
+ $instance['fontaws4link'] = $new_instance['fontaws4link'];
79
+ $instance['color'] = $new_instance['color'];
80
+ $instance['border_color'] = $new_instance['border_color'];
81
+ $instance['font_color'] = $new_instance['font_color'];
82
+ $instance['hov_color'] = $new_instance['hov_color'];
83
+ return $instance;
84
+ }
85
+
86
+ function form($instance) {
87
+ if( $instance) {
88
+ $title = esc_attr($instance['title']);
89
+ $authpic = strip_tags($instance['authpic']);
90
+ $text = $instance['text'];
91
+ $link = $instance['link'];
92
+ $deg = $instance['deg'];
93
+ $fontaws1 = $instance['fontaws1'];
94
+ $fontaws2 = $instance['fontaws2'];
95
+ $fontaws3 = $instance['fontaws3'];
96
+ $fontaws4 = $instance['fontaws4'];
97
+ $fontaws1link = $instance['fontaws1link'];
98
+ $fontaws2link = $instance['fontaws2link'];
99
+ $fontaws3link = $instance['fontaws3link'];
100
+ $fontaws4link = $instance['fontaws4link'];
101
+ $color = $instance['color'];
102
+ $border_color = $instance['border_color'];
103
+ $font_color = $instance['font_color'];
104
+ $hov_color = $instance['hov_color'];
105
+ } else {
106
+ $title = '';
107
+ $authpic = '';
108
+ $text = '';
109
+ $link = '';
110
+ $deg = '';
111
+ $fontaws1 = 'fa fa-facebook';
112
+ $fontaws2 = 'fa fa-twitter';
113
+ $fontaws3 = 'fa fa-linkedin';
114
+ $fontaws4 = 'fa fa-google';
115
+ $fontaws1link = '';
116
+ $fontaws2link = '';
117
+ $fontaws3link = '';
118
+ $fontaws4link = '';
119
+ $color = '';
120
+ $border_color = '';
121
+ $font_color = '';
122
+ $hov_color = '';
123
+ }
124
+
125
+ ?>
126
+ <div class="clearfix"></div>
127
+ <label for="<?php echo $this->get_field_id('authpic'); ?>"><?php _e('Member Image','themehunk-customizer'); ?></label>
128
+ <?php
129
+ if ( isset($instance['authpic']) && $instance['authpic'] != '' ) :
130
+ echo '<img class="custom_media_image" src="' . $instance['authpic'] . '" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" /><br />';
131
+ endif;
132
+ ?>
133
+ <input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name('authpic'); ?>" id="<?php echo $this->get_field_id('authpic'); ?>" value="<?php echo $authpic; ?>" style="margin-top:5px;">
134
+ <input type="button" class="button button-primary custom_media_button" id="<?php echo $this->get_field_id('authpic'); ?>_button" name="<?php echo $this->get_field_name('authpic'); ?>" value="Upload Image" style="margin-top:5px;" />
135
+
136
+ <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Member Name','themehunk-customizer'); ?></label>
137
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" value="<?php echo $title; ?>">
138
+ </p>
139
+ <p>
140
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Designation','themehunk-customizer'); ?></label>
141
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('deg'); ?>" id="<?php echo $this->get_field_id('deg'); ?>" value="<?php echo $deg; ?>">
142
+ </p>
143
+
144
+ <p> <label for="<?php echo $this->get_field_id('fontaws1'); ?>"><?php _e('Social-Icon-1','themehunk-customizer'); ?></label>
145
+ <label style="padding-bottom: 5px; padding-top:0px;font-size: 12px;font-style: italic;"><?php _e('Go to this link for <a target="_blank" href="//fontawesome.io/icons/">Fontawesome icons</a> and copy the class of icon that you need & paste it below.','themehunk-customizer'); ?></label>
146
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws1'); ?>" id="<?php echo $this->get_field_id('fontaws1'); ?>" value="<?php echo $fontaws1; ?>" style="margin-top:5px;">
147
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws1link'); ?>" id="<?php echo $this->get_field_id('fontaws1link'); ?>" value="<?php echo $fontaws1link; ?>" placeholder="link" style="margin-top:5px;"></p>
148
+
149
+
150
+ <p><label for="<?php echo $this->get_field_id('fontaws2'); ?>"><?php _e('Social-Icon-2','themehunk-customizer'); ?></label>
151
+
152
+
153
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws2'); ?>" id="<?php echo $this->get_field_id('fontaws2'); ?>" value="<?php echo $fontaws2; ?>" style="margin-top:5px;">
154
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws2link'); ?>" id="<?php echo $this->get_field_id('fontaws2link'); ?>" value="<?php echo $fontaws2link; ?>" placeholder="link" style="margin-top:5px;"></p>
155
+ <p> <label for="<?php echo $this->get_field_id('fontaws3'); ?>"><?php _e('Social-Icon-3','themehunk-customizer'); ?></label>
156
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws3'); ?>" id="<?php echo $this->get_field_id('fontaws3'); ?>" value="<?php echo $fontaws3; ?>" style="margin-top:5px;">
157
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws3link'); ?>" id="<?php echo $this->get_field_id('fontaws3link'); ?>" value="<?php echo $fontaws3link; ?>" placeholder="link" style="margin-top:5px;">
158
+ </p>
159
+ <p><label for="<?php echo $this->get_field_id('fontaws4'); ?>"><?php _e('Social-Icon-4','themehunk-customizer'); ?></label>
160
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws4'); ?>" id="<?php echo $this->get_field_id('fontaws4'); ?>" value="<?php echo $fontaws4; ?>" style="margin-top:5px;">
161
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('fontaws4link'); ?>" id="<?php echo $this->get_field_id('fontaws4link'); ?>" value="<?php echo $fontaws4link; ?>" placeholder="link" style="margin-top:5px;">
162
+ </p>
163
+ <p><label for="<?php echo $this->get_field_id('link'); ?>"><?php _e('Author Link','themehunk-customizer'); _e('ex: http://www.abc.com','themehunk-customizer'); ?></label>
164
+ <input type="text" class="widefat" name="<?php echo $this->get_field_name('link'); ?>" id="<?php echo $this->get_field_id('link'); ?>" value="<?php echo $link; ?>" style="margin-top:5px;">
165
+ </p>
166
+ <label for="<?php echo $this->get_field_id( 'border_color' ); ?>" style="display:block;"><?php _e( 'Border Color','themehunk-customizer' ); ?></label>
167
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'border_color' ); ?>" name="<?php echo $this->get_field_name( 'border_color' ); ?>" type="text" value="<?php echo esc_attr( $border_color ); ?>" />
168
+ <label for="<?php echo $this->get_field_id( 'font_color' ); ?>" style="display:block;"><?php _e( 'Text Color','themehunk-customizer' ); ?></label>
169
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'font_color' ); ?>" name="<?php echo $this->get_field_name( 'font_color' ); ?>" type="text" value="<?php echo esc_attr( $font_color ); ?>" />
170
+
171
+ <label for="<?php echo $this->get_field_id( 'hov_color' ); ?>" style="display:block;"><?php _e( 'Designation Color','themehunk-customizer' ); ?></label>
172
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'hov_color' ); ?>" name="<?php echo $this->get_field_name( 'hov_color' ); ?>" type="text" value="<?php echo esc_attr( $hov_color ); ?>" />
173
+ <label for="<?php echo $this->get_field_id( 'color' ); ?>" style="display:block;"><?php _e( 'Social Icon Color','themehunk-customizer' ); ?></label>
174
+ <input class="widefat color-picker" id="<?php echo $this->get_field_id( 'color' ); ?>" name="<?php echo $this->get_field_name( 'color' ); ?>" type="text" value="<?php echo esc_attr( $color ); ?>" />
175
+
176
+ <?php
177
+ }
178
+ }
179
+ ?>
oneline-lite/widget/testimonial.php ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
3
+
4
+ /*
5
+ * Testimonial Widget
6
+ */
7
+ class themehunk_customizer_testimonial_widget extends WP_Widget {
8
+
9
+ function __construct() {
10
+ $widget_ops = array('classname' => 'themehunk-customizer-testimonial',
11
+ 'description' => 'Show your testimonial');
12
+ parent::__construct('themehunk-customizer-testimonial-widget', __('ThemeHunk : Testimonial Widget','themehunk_customizer'), $widget_ops);
13
+ }
14
+
15
+ function widget($args, $instance) {
16
+ extract($args);
17
+ // widget content
18
+ echo $before_widget;
19
+
20
+ $text = isset($instance['text'])?$instance['text']:__('writing your description','themehunk_customizer');
21
+ $link = isset($instance['link'])?$instance['link']:'http://';
22
+ $title = isset($instance['title'])?$instance['title']:__('New Title','themehunk_customizer');
23
+ $authpic = isset($instance['authpic'])?$instance['authpic']:'';
24
+ $desc = isset($instance['desc'])?$instance['desc']:'';
25
+ ?>
26
+
27
+ <li><div class="image-test">
28
+ <?php if($authpic!=''){ ?>
29
+ <img src="<?php echo $authpic; ?>">
30
+ <?php } ?>
31
+ </div>
32
+ <div class="test-cont-heading"><h2><?php echo apply_filters('widget_title', $title ); ?></h2></div>
33
+ <div class="test-cont">
34
+ <a href="<?php echo $link; ?>"><p><?php echo $text; ?></p></a>
35
+ <p><?php echo $desc; ?></p>
36
+ </div>
37
+ </li>
38
+
39
+ <?php
40
+ echo $after_widget;
41
+
42
+ }
43
+
44
+ function update($new_instance, $old_instance) {
45
+ $instance = $old_instance;
46
+ $instance['authpic'] = $new_instance['authpic'];
47
+ $instance['title'] = strip_tags( $new_instance['title'] );
48
+ $instance['text'] = $new_instance['text'];
49
+ $instance['link'] = $new_instance['link'];
50
+ $instance['desc'] = $new_instance['desc'];
51
+ return $instance;
52
+ }
53
+
54
+ function form($instance) {
55
+ if( $instance) {
56
+ $title = esc_attr($instance['title']);
57
+ $authpic = strip_tags($instance['authpic']);
58
+ $text = $instance['text'];
59
+ $link = $instance['link'];
60
+ $desc = $instance['desc'];
61
+ } else {
62
+ $title = '';
63
+ $authpic = '';
64
+ $text = '';
65
+ $link = '';
66
+ $desc = '';
67
+ }
68
+ ?>
69
+ <div class="clearfix"></div>
70
+ <label for="<?php echo $this->get_field_id('authpic'); ?>"><?php _e('Author Image','themehunk-customizer'); ?></label>
71
+ <?php
72
+ if ( isset($instance['authpic']) && $instance['authpic'] != '' ) :
73
+ echo '<img class="custom_media_image" src="' . $instance['authpic'] . '" style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" /><br />';
74
+ endif;
75
+ ?>
76
+ <input type="text" class="widefat custom_media_url" name="<?php echo $this->get_field_name('authpic'); ?>" id="<?php echo $this->get_field_id('authpic'); ?>" value="<?php echo $authpic; ?>" style="margin-top:5px;">
77
+ <input type="button" class="button button-primary custom_media_button" id="<?php echo $this->get_field_id('authpic'); ?>_button" name="<?php echo $this->get_field_name('authpic'); ?>" value="Upload Image" style="margin-top:5px;" />
78
+
79
+
80
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Author Name','themehunk-customizer'); ?>
81
+ </label>
82
+ <textarea name="<?php echo $this->get_field_name('title'); ?>" id="<?php echo $this->get_field_id('title'); ?>" class="widefat" ><?php echo $title; ?></textarea>
83
+
84
+ <label for="<?php echo $this->get_field_id('text'); ?>"><?php _e('Author Website Url','themehunk-customizer'); ?>
85
+ </label>
86
+ <textarea name="<?php echo $this->get_field_name('text'); ?>" id="<?php echo $this->get_field_id('text'); ?>" class="widefat" ><?php echo $text; ?></textarea>
87
+
88
+ <label for="<?php echo $this->get_field_id('desc'); ?>"><?php _e('Description','themehunk-customizer'); ?></label>
89
+ <textarea name="<?php echo $this->get_field_name('desc'); ?>" id="<?php echo $this->get_field_id('desc'); ?>" class="widefat" ><?php echo $desc; ?></textarea>
90
+
91
+ <label for="<?php echo $this->get_field_id('link'); ?>"><?php _e('Author Link','themehunk-customizer'); _e( 'ex: http://www.abc.com','themehunk-customizer'); ?></label>
92
+ <textarea name="<?php echo $this->get_field_name('link'); ?>" id="<?php echo $this->get_field_id('link'); ?>" class="widefat" ><?php echo $link; ?></textarea>
93
+ <?php
94
+ }
95
+ }
96
+ ?>
readme.txt ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ====== ThemeHunk Customizer ========
2
+ Contributors: ThemeHunk
3
+ Author URI: : https://www.themehunk.com/
4
+ Tags: themehunk, customizer, oneline-lite,Testimonial,Team, service
5
+ Requires at least: 4.5
6
+ Tested up to: 5.3.2
7
+ Stable tag: 2.2.8
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ ThemeHunk Customiser plugin will add features of testimonial, team and service.
12
+
13
+ == Description ==
14
+
15
+ ThemeHunk Customiser plugin will allow you to add features of testimonial, team and service section. Which will be visible on front page of site.
16
+
17
+ == Installation ==
18
+
19
+ 1. Upload the `themehunk-customizer.zip` to the `/wp-content/plugins/` directory
20
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
21
+
22
+ == Frequently Asked Questions ==
23
+
24
+ = How to Install Plugin =
25
+ Just upload the `themehunk-customizer.zip` to the `/wp-content/plugins/` directory, and then activate it from 'Plugins' menu in WordPress.
26
+
27
+ 1. [Support Forum](https://wordpress.org/support/plugin/themehunk-customizer)
28
+
29
+ == Screenshots ==
30
+
31
+ == Changelog ==
32
+
33
+ = 2.2.8 =
34
+ * shopline - woocommerce issue fixed.
35
+
36
+ = 2.2.7 =
37
+ * Featuredlite - animation issue fixed.
38
+
39
+ = 2.2.6 =
40
+ * Shopline - google plus icon remove and social icon issue fixed.
41
+
42
+ = 2.2.5 =
43
+ * Shopline - styling issue fixed.
44
+ * Featuredlite - Customizer issue fixed.
45
+
46
+ = 2.2.3 =
47
+ * Shopline - customizer issue fixed.
48
+ * Featuredlite - demo import feature added.
49
+
50
+ = 2.2.2 =
51
+ * Shopline - demo import path change.
52
+
53
+ = 2.2.1 =
54
+ * online-lite - Demo import issue fixed.
55
+
56
+ = 2.2.0 =
57
+ * online-lite - Demo import feature added.
58
+
59
+ = 2.1.11 =
60
+ * shopline - Demo import issue fixed
61
+
62
+ = 2.1.10 =
63
+ * shopline - product issue fixed.
64
+
65
+ = 2.1.9 =
66
+ * featuredlite - tel: issue fixed in contact section.
67
+
68
+ = 2.1.8=
69
+ * featuredlite - fontawsome issue fixed.
70
+
71
+ = 2.1.7=
72
+ * featuredlite - button scroll issue fixed.
73
+
74
+ = 2.1.6=
75
+ * shopline - bug fixed.
76
+
77
+ = 2.1.5=
78
+ * elanzalite - shortcode issue fixed.
79
+
80
+ = 2.1.4=
81
+ * elanzalite - issue fixed.
82
+
83
+ = 2.1.3=
84
+ * shopline- php7.2 Deprecated function 'create_function()' issue fixed.
85
+
86
+ = 2.1.2=
87
+ * shopline- Deprecated function issue fixed.
88
+
89
+ = 2.1.1=
90
+ * shopline- error fixed.
91
+
92
+ = 2.1.0=
93
+ * shopline- section ordering issue fixed.
94
+ * shopline- no-header inner page issue fixed.
95
+
96
+ = 2.0.27=
97
+ * Widget issue fixed.
98
+
99
+ = 2.0.26=
100
+ * shopline - Radio image issue fixed.
101
+
102
+ = 2.0.25=
103
+ * shopline - customizer issue fixed.
104
+
105
+ = 2.0.24=
106
+ * shopline - scrolling issue fixed.
107
+
108
+ = 2.0.23=
109
+ * shopline - header redirect issue fixed.
110
+
111
+ = 2.0.22=
112
+ * shopline - product category issue fixed.
113
+
114
+ = 2.0.21=
115
+ * shopline - images change.
116
+
117
+ = 2.0.20=
118
+ * shopline - bug fixed.
119
+ * shopline - woocommerce error fixed.
120
+ * featuredlite - team section social icon hide issue fixed.
121
+
122
+ = 2.0.19=
123
+ * shopline - heading issue fixed.
124
+ * featuredlite - team section social icon link fixed.
125
+
126
+ = 2.0.18=
127
+ * shopline - new shortcode added.
128
+
129
+ = 2.0.17=
130
+ * shopline - new file added and bug fixed.
131
+
132
+ = 2.0.16=
133
+ * shopline - New customizer design added.
134
+
135
+ = 2.0.15=
136
+ * shopline - shopline issue fixed.
137
+
138
+ = 2.0.14=
139
+ * elanzalite - new file added.
140
+
141
+ = 2.0.13=
142
+ * elanzalite - new feature added.
143
+
144
+ = 2.0.12=
145
+ * elanzalite - issue fixed.
146
+
147
+ = 2.0.11=
148
+ * elanzalite - new tricker file added.
149
+ * style issue fixed.
150
+
151
+ = 2.0.10=
152
+ * elanzalite - customizer and style issue fixed.
153
+
154
+ = 2.0.9=
155
+ * elanzalite text issue fixed.
156
+
157
+ = 2.0.8 =
158
+ * elanzalite new file added.
159
+
160
+ = 2.0.7 =
161
+ * elanzalite widget added.
162
+
163
+ = 2.0.6 =
164
+ * elanzalite style improved.
165
+
166
+ = 2.0.5 =
167
+ * Elanzalite: sidebar and without sidebar magazine tempalte widget added.
168
+
169
+ = 2.0.4 =
170
+ * Elanzalite theme error issue fixed.
171
+
172
+ = 2.0.3 =
173
+ * Elanzalite recent post error issue fixed.
174
+
175
+ = 2.0.2 =
176
+ * Elanzalite customizer option change.
177
+
178
+ = 2.0.1 =
179
+ * Shopline theme error issue fixed.
180
+
181
+ = 2.0.0 =
182
+ * elanzalite theme customizer added.
183
+
184
+ = 1.1.9 =
185
+ * alpha color picker issue fixed.
186
+
187
+ = 1.1.8 =
188
+ * WordPress 4.9 tested.
189
+ * online-lite theme issue fixed.
190
+
191
+ = 1.1.7 =
192
+ * Shopline customizer error issue fixed.
193
+
194
+ = 1.1.6 =
195
+ * Shopline error issue fixed.
196
+
197
+ = 1.1.5 =
198
+ * Shopline Theme issue fixed.
199
+
200
+ = 1.1.4 =
201
+ * Shopline Theme improved.
202
+
203
+ = 1.1.3 =
204
+ * Shopline Theme add new feature.
205
+
206
+ = 1.1.2 =
207
+ * Shopline Theme style improved.
208
+
209
+ = 1.1.1 =
210
+ * Shopline Theme image console issue fixed.
211
+
212
+ = 1.1.0 =
213
+ * Shopline Theme Customizer added.
214
+
215
+ = 1.0.12 =
216
+ * Checkbox js issue fixed.
217
+
218
+ = 1.0.11 =
219
+ * online-lite js issue fixed.
220
+
221
+ = 1.0.10 =
222
+ * Child Theme issue fixed.
223
+
224
+ = 1.0.9 =
225
+ * online-lite theme issue fixed.
226
+
227
+ = 1.0.8 =
228
+ * Add color option.
229
+ * All issue fixed.
230
+
231
+ = 1.0.7 =
232
+ * New section add.
233
+
234
+ = 1.0.6 =
235
+ * error issue fixd.
236
+
237
+ = 1.0.5 =
238
+ * deprecated issue fixd.
239
+
240
+ = 1.0.4 =
241
+ * delete old folders
242
+
243
+ = 1.0.3 =
244
+ * fix issue
245
+
246
+ = 1.0.2 =
247
+ * new shortcode added.
248
+ * issue fix.
249
+
250
+ = 1.0.1 =
251
+ * woocommerce shortcode added.
252
+
253
+ = 1.0.0 =
254
+ Initial release
shopline/customizer/custom-customizer.php ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Add controls for arbitrary heading, description, line
5
+ *
6
+ * @package Customizer_Library
7
+ * @author Devin Price
8
+ */
9
+ if ( ! function_exists( 'shopline_registers' ) ) :
10
+
11
+ function shopline_registers() {
12
+ wp_enqueue_script( 'shopline_customizer_script', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . '/shopline/customizer/js/customizer.js', array("jquery"), '', true );
13
+
14
+ wp_enqueue_script( 'pe-customize-controls', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . '/shopline/customizer/js/pe-customize-controls.js', array(), '', true );
15
+ }
16
+ add_action( 'customize_controls_enqueue_scripts', 'shopline_registers' );
17
+
18
+ endif;
19
+ if ( ! function_exists( 'shopline_customizer_styles' ) ) :
20
+
21
+ function shopline_customizer_styles() {
22
+ wp_enqueue_style('shopline_customizer_styles', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . '/shopline/customizer/customizer_styles.css');
23
+ wp_enqueue_style( 'pe-customize-controls', THEMEHUNK_CUSTOMIZER_PLUGIN_URL . '/shopline/customizer/pe-customize-controls.css');
24
+
25
+ }
26
+ add_action('customize_controls_print_styles', 'shopline_customizer_styles');
27
+
28
+ endif;
29
+
30
+ if ( ! function_exists( 'shopline_checkbox_filter' ) ) :
31
+
32
+ // single page post meta
33
+ function shopline_checkbox_filter($search,$theme_mod,$default=false){
34
+ $filter = get_theme_mod($theme_mod);
35
+ $value = (!empty($filter) && !empty($filter[0]))?in_array($search, $filter):$default;
36
+ return $value;
37
+ }
38
+ endif;
39
+ //*******************************//
40
+ // nested-pannel-start
41
+ //*******************************//
42
+ if ( class_exists( 'WP_Customize_Panel' ) ) {
43
+
44
+ class PE_WP_Customize_Panel extends WP_Customize_Panel {
45
+
46
+ public $panel;
47
+
48
+ public $type = 'pe_panel';
49
+
50
+ public function json() {
51
+
52
+ $array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'type', 'panel', ) );
53
+ $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
54
+ $array['content'] = $this->get_content();
55
+ $array['active'] = $this->active();
56
+ $array['instanceNumber'] = $this->instance_number;
57
+
58
+ return $array;
59
+
60
+ }
61
+
62
+ }
63
+
64
+ }
65
+
66
+ if ( class_exists( 'WP_Customize_Section' ) ){
67
+
68
+ class PE_WP_Customize_Section extends WP_Customize_Section {
69
+
70
+ public $section;
71
+
72
+ public $type = 'pe_section';
73
+
74
+ public function json() {
75
+
76
+ $array = wp_array_slice_assoc( (array) $this, array( 'id', 'description', 'priority', 'panel', 'type', 'description_hidden', 'section', ) );
77
+ $array['title'] = html_entity_decode( $this->title, ENT_QUOTES, get_bloginfo( 'charset' ) );
78
+ $array['content'] = $this->get_content();
79
+ $array['active'] = $this->active();
80
+ $array['instanceNumber'] = $this->instance_number;
81
+
82
+ if ( $this->panel ) {
83
+
84
+ $array['customizeAction'] = sprintf( 'Customizing &#9656; %s', esc_html( $this->manager->get_panel( $this->panel )->title ) );
85
+
86
+ } else {
87
+
88
+ $array['customizeAction'] = 'Customizing';
89
+
90
+ }
91
+
92
+ return $array;
93
+
94
+ }
95
+
96
+ }
97
+
98
+ }
99
+
100
+ ?>
shopline/customizer/customizer.php ADDED
@@ -0,0 +1,7829 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! function_exists('shopline_get_category_list')):
3
+ function shopline_get_category_list($arr='',$all=true){
4
+ $cats = array();
5
+ if($all == true){
6
+ $cats[0] = 'All Categories';
7
+ }
8
+ foreach ( get_categories($arr) as $categories => $category ){
9
+ $cats[$category->term_id] = $category->name;
10
+ }
11
+ return $cats;
12
+ }
13
+ endif;
14
+ // select category
15
+ if (! function_exists('shopline_get_categories_select')) :
16
+ function shopline_get_categories_select() {
17
+ if ( taxonomy_exists ( 'product_cat' )) {
18
+ $results= array ('all'=> 'All'); // for default value
19
+ $teh_cats = get_terms('product_cat', array (
20
+ 'orderby' => 'count',
21
+ 'include' => ',' ,
22
+ 'order' => 'DESC'));
23
+ $count = count($teh_cats);
24
+ for ($i=0; $i < $count; $i++) {
25
+ if (isset($teh_cats[$i])) $results[$teh_cats[$i]->slug] = $teh_cats[$i]->name; //provide slug as options key and category name as options value on select options
26
+ else
27
+ $count++;
28
+ }
29
+ return $results;
30
+ }else{
31
+ return array ("all" => __('Add Category', 'shopline')); // if woocommerce is not installed
32
+ }
33
+ }
34
+ endif;
35
+ // = Default Theme Customizer Settings =
36
+ function shopline_lite_customize_register( $wp_customize ) {
37
+ /**
38
+ * Class Shopline_contact_Page_Instructions
39
+ */
40
+ class Shopline_contact_Page_Instructions extends WP_Customize_Control{
41
+ /**
42
+ * Render about page instruction
43
+ */
44
+ public function render_content() {
45
+ echo __( 'To customize the Contact Page first go to "Dashboard > Page > Template > Contact Page Template". Then open the page in the browser and click on customize. After that you will able to see the setting of Contact Page in your customize panel.', 'shopline' ) . '<br><br>' . __( 'Need further assistance? Check out this', 'shopline' ) . ' <a href="//themehunk.com/docs/shopline-theme/#contact-page" target="_blank">' . __( 'doc', 'shopline' ) . '</a>';
46
+ }
47
+ }
48
+
49
+ $color_palette = array('rgb(150, 50, 220)', // RGB, RGBa, and hex values supported
50
+ 'rgba(50,50,50,0.8)',
51
+ 'rgba( 255, 255, 255, 0.2 )', // Different spacing = no problem
52
+ '#00CC99' // Mix of color types = no problem
53
+ );
54
+ $palette = array('rgb(0, 0, 0, 0)');
55
+ // // dummy data on/off
56
+ // $wp_customize->add_section('section_dummydata', array(
57
+ // 'title' => __('Dummy Data Hide/Show', 'shopline'),
58
+ // 'priority' => 1,
59
+ // ));
60
+ // $wp_customize->add_setting('dummydata_hide_show', array(
61
+ // 'default' =>'show',
62
+ // 'capability' => 'edit_theme_options',
63
+ // 'sanitize_callback' => 'sanitize_text_field'
64
+ // ));
65
+ // $wp_customize->add_control('dummydata_hide_show', array(
66
+ // 'settings' => 'dummydata_hide_show',
67
+ // 'label' => __('Dummy Data Hide / Show','shopline'),
68
+ // 'section' => 'section_dummydata',
69
+ // 'type' => 'radio',
70
+ // 'choices' => array(
71
+ // 'show' => __('Show Dummy Data ','shopline'),
72
+ // 'hide' => __('Hide Dummy Data','shopline'),
73
+ // ),
74
+ // ));
75
+ /****************************************************************/
76
+ /************ Theme Settings ************/
77
+ /****************************************************************/
78
+ $wp_customize->add_panel( 'settings_theme_options', array(
79
+ 'priority' => 4,
80
+ 'title' => __('Appearance Settings', 'shopline'),
81
+ ) );
82
+ /*********************** Global-setting ************************/
83
+ $wp_customize->add_section('global_set', array(
84
+ 'title' => __('Global Setting', 'shopline'),
85
+ 'priority' => 1,
86
+ 'panel' => 'settings_theme_options',
87
+ ));
88
+ // page layout settings
89
+ $wp_customize->add_setting( 'shopline_layout',
90
+ array(
91
+ 'sanitize_callback' => 'sanitize_text_field',
92
+ 'default' => 'right',
93
+
94
+ )
95
+ );
96
+ $wp_customize->add_control( 'shopline_layout',
97
+ array(
98
+ 'type' => 'select',
99
+ 'label' => esc_html__('Page Layout', 'shopline'),
100
+ 'description' => esc_html__('Choose sidebar option for inner pages (non-home)', 'shopline'),
101
+ 'section' => 'global_set',
102
+ 'choices' => array(
103
+ 'right' => esc_html__('Right sidebar', 'shopline'),
104
+ 'left' => esc_html__('Left sidebar', 'shopline'),
105
+ 'no-sidebar' => esc_html__('No sidebar', 'shopline'),
106
+ )
107
+ )
108
+ );
109
+ // Disable parallax effect in all site
110
+ $wp_customize->add_setting( 'parallax_opt',
111
+ array(
112
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
113
+ 'default' => '',
114
+ )
115
+ );
116
+ $wp_customize->add_control( 'parallax_opt',
117
+ array(
118
+ 'type' => 'checkbox',
119
+ 'label' => esc_html__('Disable Parallax effect ?', 'shopline'),
120
+ 'section' => 'global_set',
121
+ 'description' => esc_html__('Check here to disable Parallax effect ', 'shopline')
122
+ )
123
+ );
124
+ // Disable Animation
125
+ $wp_customize->add_setting( 'shopline_animation_disable',
126
+ array(
127
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
128
+ 'default' => '',
129
+ )
130
+ );
131
+ $wp_customize->add_control( 'shopline_animation_disable',
132
+ array(
133
+ 'type' => 'checkbox',
134
+ 'label' => esc_html__('Disable animation effect?', 'shopline'),
135
+ 'section' => 'global_set',
136
+ 'description' => esc_html__('Check here to disable homepage section animation.', 'shopline')
137
+ )
138
+ );
139
+ // Disable back to top button
140
+ $wp_customize->add_setting( 'shopline_backtotop_disable',
141
+ array(
142
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
143
+ 'default' => '',
144
+ )
145
+ );
146
+ $wp_customize->add_control( 'shopline_backtotop_disable',
147
+ array(
148
+ 'type' => 'checkbox',
149
+ 'label' => esc_html__('Hide back to top button ?', 'shopline'),
150
+ 'section' => 'global_set',
151
+ 'description' => esc_html__('Check here to disable Back To Top button.', 'shopline')
152
+ )
153
+ );
154
+ // enable rtl-transform
155
+ // $wp_customize->add_setting( 'shopline_rtl_optn',
156
+ // array(
157
+ // 'sanitize_callback' => 'themehunk_sanitize_checkbox',
158
+ // 'default' => '',
159
+ // )
160
+ // );
161
+ // $wp_customize->add_control( 'shopline_rtl_optn',
162
+ // array(
163
+ // 'type' => 'checkbox',
164
+ // 'label' => esc_html__('Enable Rtl Transform ?', 'shopline'),
165
+ // 'section' => 'global_set',
166
+ // 'description' => esc_html__('Check here to enable right to left transform in your site.', 'shopline')
167
+ // )
168
+ // );
169
+ // Genral Settings
170
+ $wp_customize->get_section('title_tagline')->title = esc_html__('Site Identity', 'shopline');
171
+ $wp_customize->get_section('title_tagline')->priority = 2;
172
+ // Page Container Setting
173
+ $wp_customize->add_section('contn_setng', array(
174
+ 'title' => __('Page Container Setting', 'shopline'),
175
+ 'priority' => 61,
176
+ 'panel' =>'settings_theme_options'
177
+ ));
178
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ){
179
+ $wp_customize->add_setting(
180
+ 'contn_size', array(
181
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
182
+ 'default' => 1200,
183
+
184
+ )
185
+ );
186
+ $wp_customize->add_control(
187
+ new Themehunk_Customizer_Range_Value_Control(
188
+ $wp_customize, 'contn_size', array(
189
+ 'label' => esc_html__( 'Container Size (In Pixel)', 'shopline' ),
190
+ 'description'=> __('(For all theme pages)', 'shopline'),
191
+ 'section' => 'contn_setng',
192
+ 'type' => 'range-value',
193
+ 'input_attr' => array(
194
+ 'min' => 0,
195
+ 'max' => 1200,
196
+ 'step' => 10,
197
+ ),
198
+ )
199
+ )
200
+ );
201
+ }
202
+ $wp_customize->add_setting('container_desc', array(
203
+ 'sanitize_callback' => 'themehunk_sanitize_text',
204
+ ));
205
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'container_desc',
206
+ array(
207
+ 'section' => 'contn_setng',
208
+ 'type' => 'custom_message',
209
+ 'description' => wp_kses_post( 'For all theme pages.','shopline' ),
210
+ 'priority' => 0,
211
+ 'active_callback' => 'shopline_is_contact_page',
212
+ )));
213
+ /*************************************************************************/
214
+ //Contact-us-tempalte-option//
215
+ /**************************************************************************/
216
+ $wp_customize->add_section( 'contact_sectn', array(
217
+ 'priority' => 15,
218
+ 'title' => __('Contact Page Setting', 'shopline'),
219
+ ));
220
+ $wp_customize->add_setting('cnt_page_desc', array(
221
+ 'sanitize_callback' => 'sanitize_text_field'
222
+ ));
223
+ $wp_customize->add_control(new Shopline_contact_Page_Instructions(
224
+ $wp_customize,'cnt_page_desc',array(
225
+ 'section' => 'contact_sectn',
226
+ 'active_callback' => 'shopline_is_not_contact_page',
227
+ )));
228
+
229
+
230
+ $wp_customize->add_setting('contact_txt', array(
231
+ 'sanitize_callback' => 'themehunk_sanitize_text',
232
+ ));
233
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'contact_txt',
234
+ array(
235
+ 'section' => 'contact_sectn',
236
+ 'type' => 'custom_message',
237
+ 'description' => wp_kses_post( 'These settings will be applicable for page with <a target="_blank" href="//themehunk.com/docs/shopline-theme/#custom-setting">contact template</a> selected.','shopline' ),
238
+ 'priority' => 0,
239
+ 'active_callback' => 'shopline_is_contact_page',
240
+ )));
241
+ //pages-sidebar-settting
242
+ $wp_customize->add_setting('contact_tel', array(
243
+ 'default' => '',
244
+ 'capability' => 'edit_theme_options',
245
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
246
+ ));
247
+ $wp_customize->add_control('contact_tel', array(
248
+ 'label' => __('Mobile', 'shopline'),
249
+ 'section' => 'contact_sectn',
250
+ 'settings' => 'contact_tel',
251
+ 'type' => 'text',
252
+ 'priority' => 5,
253
+ 'active_callback' => 'shopline_is_contact_page',
254
+ ));
255
+
256
+ //adderess
257
+ $wp_customize->add_setting('contact_add', array(
258
+ 'default' => '',
259
+ 'capability' => 'edit_theme_options',
260
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
261
+
262
+ ));
263
+ $wp_customize->add_control('contact_add', array(
264
+ 'label' => __('Address', 'shopline'),
265
+ 'section' => 'contact_sectn',
266
+ 'settings' => 'contact_add',
267
+ 'type' => 'textarea',
268
+ 'priority' => 5,
269
+ 'active_callback' => 'shopline_is_contact_page',
270
+ ));
271
+ //time
272
+ $wp_customize->add_setting('contact_time', array(
273
+ 'default' => '',
274
+ 'capability' => 'edit_theme_options',
275
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
276
+
277
+ ));
278
+ $wp_customize->add_control('contact_time', array(
279
+ 'label' => __('Time', 'shopline'),
280
+ 'section' => 'contact_sectn',
281
+ 'settings' => 'contact_time',
282
+ 'type' => 'textarea',
283
+ 'priority' => 5,
284
+ 'active_callback' => 'shopline_is_contact_page',
285
+ ));
286
+ // shortcode
287
+ $wp_customize->add_setting('contact_shrcd', array(
288
+ 'default' => '[lead-form form-id=1 title=Contact Us]',
289
+ 'capability' => 'edit_theme_options',
290
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
291
+ ));
292
+ $wp_customize->add_control('contact_shrcd', array(
293
+ 'label' => __('Shortcode', 'shopline'),
294
+ 'description' => __('Install recommended <a target="_blank" href="//wordpress.org/plugins/lead-form-builder/">Contact Form & Lead Form Builder</a> Plugin for Contact Us form.', 'shopline'),
295
+ 'section' => 'contact_sectn',
296
+ 'settings' => 'contact_shrcd',
297
+ 'type' => 'textarea',
298
+ 'priority' => 5,
299
+ 'active_callback' => 'shopline_is_contact_page',
300
+ ));
301
+
302
+
303
+ /*
304
+ /****************************************************************/
305
+ /************ Header Option ************/
306
+ /****************************************************************/
307
+ $header_options = new PE_WP_Customize_Panel( $wp_customize, 'header_options', array(
308
+ 'title' => 'Header Options (Hero)',
309
+ 'priority' => 4,
310
+ ));
311
+ $wp_customize->add_panel( $header_options );
312
+ /*************************************/
313
+ // Header-setting
314
+ /*************************************/
315
+ $wp_customize->add_section('header_setting', array(
316
+ 'title' => __('Header Setting', 'shopline'),
317
+ 'priority' => 1,
318
+ 'panel' => 'header_options',
319
+ ));
320
+ $wp_customize->add_setting(
321
+ 'header_tab', array(
322
+ 'sanitize_callback' => 'sanitize_text_field',
323
+ )
324
+ );
325
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
326
+ $wp_customize->add_control(
327
+ new Themehunk_Customize_Control_Tabs(
328
+ $wp_customize, 'header_tab', array(
329
+ 'section' => 'header_setting',
330
+ 'tabs' => array(
331
+ 'woo_cat_setting' => array(
332
+ 'nicename' => esc_html__( 'Setting', 'hestia' ),
333
+ 'controls' => array(
334
+ 'shopline_sticky_header_disable',
335
+ 'hdr_bg_trnsparent_active',
336
+ 'hdr_intrnl_trnsparent_active',
337
+ 'hdr_toggle_active',
338
+ 'last_menu_btn',
339
+ ),
340
+ ),
341
+ 'woo_cat_style' => array(
342
+ 'nicename' => esc_html__( 'Style', 'hestia' ),
343
+ 'controls' => array(
344
+ 'header_break_color',
345
+ 'headr_bckg',
346
+ 'shrnk_headr_bckg',
347
+ 'site_title_color',
348
+ 'site_desc_color',
349
+ 'menu_break_color',
350
+ 'top_menu_color',
351
+ 'top_menu_hvr_color',
352
+ 'mob_icon_color',
353
+ 'icon_break_color',
354
+ 'top_icon_color'
355
+ ),
356
+ ),
357
+ ),
358
+ )
359
+ )
360
+ );
361
+ }
362
+ // Disable fixed Header
363
+ $wp_customize->add_setting( 'shopline_sticky_header_disable',
364
+ array(
365
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
366
+ 'default' => '',
367
+ )
368
+ );
369
+ $wp_customize->add_control( 'shopline_sticky_header_disable',
370
+ array(
371
+ 'type' => 'checkbox',
372
+ 'label' => esc_html__('Disable Fixed Header?', 'shopline'),
373
+ 'section' => 'header_setting',
374
+ 'description' => esc_html__('Check here to disable Fixed header and activate Normal header.', 'shopline')
375
+ )
376
+ );
377
+ //header transparent
378
+ $wp_customize->add_setting( 'hdr_bg_trnsparent_active',
379
+ array(
380
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
381
+ 'default' => '',
382
+ )
383
+ );
384
+ $wp_customize->add_control( 'hdr_bg_trnsparent_active',
385
+ array(
386
+ 'type' => 'checkbox',
387
+ 'label' => esc_html__('Header Transparent (Home)', 'shopline'),
388
+ 'section' => 'header_setting',
389
+ 'description' => esc_html__('(Only applied for Home page template.)','shopline')
390
+ )
391
+ );
392
+ //header transparent
393
+ $wp_customize->add_setting( 'hdr_intrnl_trnsparent_active',
394
+ array(
395
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
396
+ 'default' => '',
397
+ )
398
+ );
399
+ $wp_customize->add_control( 'hdr_intrnl_trnsparent_active',
400
+ array(
401
+ 'type' => 'checkbox',
402
+ 'label' => esc_html__('Header Transparent', 'shopline'),
403
+ 'section' => 'header_setting',
404
+ 'description' => esc_html__('(Only applied for all other Pages.)','shopline')
405
+ )
406
+ );
407
+ //header-toggle
408
+ $wp_customize->add_setting('hdr_toggle_active', array(
409
+ 'default' => '',
410
+ 'capability' => 'edit_theme_options',
411
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
412
+ ));
413
+ $wp_customize->add_control('hdr_toggle_active', array(
414
+ 'settings' => 'hdr_toggle_active',
415
+ 'label' => __( 'Header Visibility','shopline'),
416
+ 'description' => esc_html__('(Check here to header will toggle on front page)', 'shopline'),
417
+ 'section' => 'header_setting',
418
+ 'type' => 'checkbox',
419
+ ) );
420
+ // custom-last-menu-button
421
+ $wp_customize->add_setting( 'last_menu_btn',
422
+ array(
423
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
424
+ 'default' => '',
425
+ )
426
+ );
427
+ $wp_customize->add_control( 'last_menu_btn',
428
+ array(
429
+ 'type' => 'checkbox',
430
+ 'label' => esc_html__('Custom Button', 'shopline'),
431
+ 'description' => esc_html__('(Check here to style last Menu Item as a Custom Button)', 'shopline'),
432
+ 'section' => 'header_setting',
433
+
434
+ )
435
+ );
436
+ // header-setting-color-option
437
+ //break
438
+ $wp_customize->add_setting('header_break_color', array(
439
+ 'sanitize_callback' => 'sanitize_text_field'
440
+ ));
441
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
442
+ $wp_customize,'header_break_color',array(
443
+ 'section' => 'header_setting',
444
+ 'description' => __( 'Header Color', 'shopline' ),
445
+ 'type' => 'content',
446
+ 'input_attrs' => array('divider' => true),
447
+ )));
448
+ // background-color
449
+ $wp_customize->add_setting('headr_bckg',
450
+ array(
451
+ 'default' => 'rgba(0, 0, 0,0)',
452
+ 'type' => 'theme_mod',
453
+ 'capability' => 'edit_theme_options',
454
+
455
+ ) );
456
+
457
+ $wp_customize->add_control(
458
+ new Customize_themehunk_Color_Control($wp_customize,
459
+ 'headr_bckg',
460
+ array(
461
+ 'label' => __('Header Background','shopline'),
462
+ 'section' => 'header_setting',
463
+ 'settings' => 'headr_bckg',
464
+ 'palette' => $palette
465
+ )
466
+ )
467
+ );
468
+ // shrink header bg
469
+ $wp_customize->add_setting('shrnk_headr_bckg',
470
+ array(
471
+ 'default' => 'rgba(255, 255, 255,1)',
472
+ 'type' => 'theme_mod',
473
+ 'capability' => 'edit_theme_options',
474
+
475
+ ) );
476
+
477
+ $wp_customize->add_control(
478
+ new Customize_themehunk_Color_Control($wp_customize,
479
+ 'shrnk_headr_bckg',
480
+ array(
481
+ 'label' => __('Header Shrink Background','shopline'),
482
+ 'section' => 'header_setting',
483
+ 'settings' => 'shrnk_headr_bckg',
484
+ 'palette' => $palette
485
+ )
486
+ )
487
+ );
488
+ // site-title
489
+ $wp_customize->add_setting('site_title_color', array(
490
+ 'default' => '#080808',
491
+ 'capability' => 'edit_theme_options',
492
+
493
+ ));
494
+ $wp_customize->add_control(
495
+ new WP_Customize_Color_Control(
496
+ $wp_customize,
497
+ 'site_title_color',
498
+ array(
499
+ 'label' => __('Site Title','shopline'),
500
+ 'section' => 'header_setting',
501
+ 'settings' => 'site_title_color',
502
+ ) ) );
503
+ // sub-title
504
+ $wp_customize->add_setting('site_desc_color', array(
505
+ 'default' => '#666666',
506
+ 'capability' => 'edit_theme_options',
507
+
508
+ ));
509
+ $wp_customize->add_control(
510
+ new WP_Customize_Color_Control(
511
+ $wp_customize,
512
+ 'site_desc_color',
513
+ array(
514
+ 'label' => __('Title Description','shopline'),
515
+ 'section' => 'header_setting',
516
+ 'settings' => 'site_desc_color',
517
+ ) ) );
518
+ //break
519
+ $wp_customize->add_setting('menu_break_color', array(
520
+ 'sanitize_callback' => 'sanitize_text_field'
521
+ ));
522
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
523
+ $wp_customize,'menu_break_color',array(
524
+ 'section' => 'header_setting',
525
+ 'description' => __( 'Menu Color', 'shopline' ),
526
+ 'type' => 'content',
527
+ 'input_attrs' => array('divider' => true),
528
+ )));
529
+ $wp_customize->add_setting('top_menu_color', array(
530
+ 'default' => '#080808',
531
+ 'capability' => 'edit_theme_options',
532
+
533
+ ));
534
+ $wp_customize->add_control(
535
+ new WP_Customize_Color_Control(
536
+ $wp_customize,
537
+ 'top_menu_color',
538
+ array(
539
+ 'label' => __('Menu Link','shopline'),
540
+ 'section' => 'header_setting',
541
+ 'settings' => 'top_menu_color',
542
+ ) ) );
543
+
544
+ $wp_customize->add_setting('top_menu_hvr_color', array(
545
+ 'default' => '#e7c09c',
546
+ 'capability' => 'edit_theme_options',
547
+
548
+ ));
549
+ $wp_customize->add_control(
550
+ new WP_Customize_Color_Control(
551
+ $wp_customize,
552
+ 'top_menu_hvr_color',
553
+ array(
554
+ 'label' => __('Menu Link Hover/Active','shopline'),
555
+ 'section' => 'header_setting',
556
+ 'settings' => 'top_menu_hvr_color',
557
+ ) ) );
558
+ // responsive menu icon button color
559
+ $wp_customize->add_setting('mob_icon_color', array(
560
+ 'default' => '#575757',
561
+ 'capability' => 'edit_theme_options',
562
+ ));
563
+ $wp_customize->add_control(
564
+ new WP_Customize_Color_Control(
565
+ $wp_customize,
566
+ 'mob_icon_color',
567
+ array(
568
+ 'label' => __('Mobile menu icon','featuredlite'),
569
+ 'section' => 'header_setting',
570
+ 'settings' => 'mob_icon_color',
571
+ ) ) );
572
+ //break
573
+ $wp_customize->add_setting('icon_break_color', array(
574
+ 'sanitize_callback' => 'sanitize_text_field'
575
+ ));
576
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
577
+ $wp_customize,'icon_break_color',array(
578
+ 'section' => 'header_setting',
579
+ 'description' => __( 'Icon Color', 'shopline' ),
580
+ 'type' => 'content',
581
+ 'input_attrs' => array('divider' => true),
582
+ )));
583
+ $wp_customize->add_setting('top_icon_color', array(
584
+ 'default' => '#080808',
585
+ 'capability' => 'edit_theme_options',
586
+ ));
587
+ $wp_customize->add_control(
588
+ new WP_Customize_Color_Control(
589
+ $wp_customize,
590
+ 'top_icon_color',
591
+ array(
592
+ 'label' => __('Icon','featuredlite'),
593
+ 'section' => 'header_setting',
594
+ 'settings' => 'top_icon_color',
595
+ ) ) );
596
+
597
+ $wp_customize->add_section( 'header_image', array(
598
+ 'title' => __( 'Header Image', 'shopline' ),
599
+ 'theme_supports' => 'custom-background',
600
+ 'priority' => 8,
601
+ 'panel' => 'header_options',
602
+
603
+ ) );
604
+
605
+ /**************************** HERO FRONT SECTION ************************/
606
+ /********************************************************************/
607
+ $wp_customize->add_section( 'front_page_hero', array(
608
+ 'title' => __('Front Page Hero', 'shopline'),
609
+ 'panel' => 'header_options',
610
+ 'priority' => 4,
611
+ ));
612
+ $wp_customize->add_setting(
613
+ 'front_page_tabs', array(
614
+ 'sanitize_callback' => 'sanitize_text_field',
615
+ )
616
+ );
617
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
618
+ $wp_customize->add_control(
619
+ new Themehunk_Customize_Control_Tabs(
620
+ $wp_customize, 'front_page_tabs', array(
621
+ 'section' => 'front_page_hero',
622
+ 'tabs' => array(
623
+ 'woo_cat_setting' => array(
624
+ 'nicename' => esc_html__( 'Setting', 'hestia' ),
625
+ 'controls' => array(
626
+ 'front_page_doc_link',
627
+ 'shopline_front_page_set',
628
+ 'front_hero_height',
629
+ 'content_hide_hd_hero',
630
+ 'content_hide_sb_hero',
631
+ 'content_hide_btn_hero',
632
+ 'front_page_slide_first_line_break_color',
633
+ 'first_slider_image',
634
+ 'first_slider_heading',
635
+ 'first_slider_desc',
636
+ 'first_slider_link',
637
+ 'first_button_text',
638
+ 'first_button_link',
639
+ 'front_page_slide_second_line_break_color',
640
+ 'second_slider_image',
641
+ 'second_slider_heading',
642
+ 'second_slider_desc',
643
+ 'second_slider_link',
644
+ 'second_button_text',
645
+ 'second_button_link',
646
+ 'front_page_slide_third_line_break_color',
647
+ 'third_slider_image',
648
+ 'third_slider_heading',
649
+ 'third_slider_desc',
650
+ 'third_slider_link',
651
+ 'third_button_text',
652
+ 'third_button_link',
653
+ 'sldr_content_front_align_set',
654
+ 'align_image',
655
+ 'normal_slider_speed',
656
+ '_content_front_align_set',
657
+ 'front_hero_video',
658
+ 'front_hero_video_poster',
659
+ 'front_hero_video_muted',
660
+ 'front_hero_img',
661
+ 'front_hero_bg_color',
662
+ 'front_garedient_hero',
663
+ 'front_hero_video_heading',
664
+ 'front_hero_video_desc',
665
+ 'front_hero_video_link',
666
+ 'front_hero_video_button_text',
667
+ 'front_hero_video_button_link',
668
+ 'front_extrnl_shrcd',
669
+
670
+ ),
671
+ ),
672
+ 'woo_cat_style' => array(
673
+ 'nicename' => esc_html__( 'Style', 'hestia' ),
674
+ 'controls' => array(
675
+ 'hero_overlay_set',
676
+ 'normal_slider_bg_overly',
677
+ 'overlay_garedient_hero',
678
+ 'sldr_heading_clr',
679
+ 'sldr_subheading_clr',
680
+ 'slider_bg_clr',
681
+ 'sldr_btn_txt_clr',
682
+ 'sldr_btn_brd_clr',
683
+ 'slider_bg_hvr_clr',
684
+ 'sldr_btn_hvr_txt_clr',
685
+ 'sldr_btn_hvr_brd_clr'
686
+ ),
687
+ ),
688
+ ),
689
+ )
690
+ )
691
+ );
692
+ }
693
+ $wp_customize->add_setting('front_page_doc_link', array(
694
+ 'sanitize_callback' => 'themehunk_sanitize_text',
695
+ ));
696
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'front_page_doc_link',
697
+ array(
698
+ 'section' => 'front_page_hero',
699
+ 'priority' => 0,
700
+ 'type' => 'custom_message',
701
+ 'description' => wp_kses_post( 'Check <a target="_blank" href="//themehunk.com/docs/shopline-theme/#front-page">Doc</a> for front page hero.','shopline' )
702
+ )));
703
+ // Choose settings
704
+ $wp_customize->add_setting( 'shopline_front_page_set',
705
+ array(
706
+ 'sanitize_callback' => 'sanitize_text_field',
707
+ 'default' => 'slide',
708
+
709
+ )
710
+ );
711
+ $wp_customize->add_control( 'shopline_front_page_set',
712
+ array(
713
+ 'type' => 'select',
714
+ 'label' => esc_html__('Hero Layout', 'shopline'),
715
+ 'description' => esc_html__('Choose background type for front page', 'shopline'),
716
+ 'section' => 'front_page_hero',
717
+ 'choices' => array(
718
+ 'slide' => esc_html__('Slide Show', 'shopline'),
719
+ 'video' => esc_html__('Video', 'shopline'),
720
+ 'image' => esc_html__('Image', 'shopline'),
721
+ 'color' => esc_html__('Color', 'shopline'),
722
+ 'gradient' => esc_html__('Gradient', 'shopline'),
723
+ 'external' => esc_html__('External Plugin', 'shopline'),
724
+ )
725
+ )
726
+ );
727
+ // front-hero height
728
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
729
+ $wp_customize->add_setting(
730
+ 'front_hero_height', array(
731
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
732
+ 'default' => '765',
733
+
734
+ )
735
+ );
736
+ $wp_customize->add_control(
737
+ new Themehunk_Customizer_Range_Value_Control(
738
+ $wp_customize, 'front_hero_height', array(
739
+ 'label' => esc_html__( 'Set hero section height in px', 'shopline' ),
740
+ 'section' => 'front_page_hero',
741
+ 'type' => 'range-value',
742
+ 'input_attr' => array(
743
+ 'min' => 100,
744
+ 'max' => 1000,
745
+ 'step' => 1,
746
+ ),
747
+ 'priority' => 3,
748
+ )
749
+ )
750
+ );
751
+ }
752
+
753
+ // hide-content-option
754
+ $wp_customize->add_setting( 'content_hide_hd_hero',
755
+ array(
756
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
757
+ 'default' => '',
758
+ )
759
+ );
760
+ $wp_customize->add_control( 'content_hide_hd_hero',
761
+ array(
762
+ 'type' => 'checkbox',
763
+ 'label' => esc_html__('Hide Heading', 'shopline'),
764
+ 'section' => 'front_page_hero',
765
+ )
766
+ );
767
+ $wp_customize->add_setting( 'content_hide_sb_hero',
768
+ array(
769
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
770
+ 'default' => '',
771
+ )
772
+ );
773
+ $wp_customize->add_control( 'content_hide_sb_hero',
774
+ array(
775
+ 'type' => 'checkbox',
776
+ 'label' => esc_html__('Hide Description', 'shopline'),
777
+ 'section' => 'front_page_hero',
778
+ )
779
+ );
780
+ $wp_customize->add_setting( 'content_hide_btn_hero',
781
+ array(
782
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
783
+ 'default' => '',
784
+ )
785
+ );
786
+ $wp_customize->add_control( 'content_hide_btn_hero',
787
+ array(
788
+ 'type' => 'checkbox',
789
+ 'label' => esc_html__('Hide Button', 'shopline'),
790
+ 'section' => 'front_page_hero',
791
+ )
792
+ );
793
+ // first slider
794
+ $wp_customize->add_setting('front_page_slide_first_line_break_color', array(
795
+ 'sanitize_callback' => 'sanitize_text_field',
796
+ ));
797
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
798
+ $wp_customize,'front_page_slide_first_line_break_color',array(
799
+ 'section' => 'front_page_hero',
800
+ 'description' => __( 'First Slide', 'shopline' ),
801
+ 'type' => 'content',
802
+ 'input_attrs' => array('divider' => true),
803
+ )));
804
+
805
+ // slider-first-setting
806
+ $wp_customize->add_setting('first_slider_image', array(
807
+ 'default' => '',
808
+ 'capability' => 'edit_theme_options',
809
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
810
+ ));
811
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'first_slider_image', array(
812
+ 'label' => __('Slider Image Upload', 'shopline'),
813
+ 'section' => 'front_page_hero',
814
+ 'settings' => 'first_slider_image',
815
+ )));
816
+ $wp_customize->add_setting('first_slider_heading', array(
817
+ 'default' => 'Heading 1',
818
+ 'capability' => 'edit_theme_options',
819
+ 'sanitize_callback' => 'sanitize_text_field',
820
+
821
+ ));
822
+ $wp_customize->add_control('first_slider_heading', array(
823
+ 'label' => __('Slider Heading', 'shopline'),
824
+ 'section' => 'front_page_hero',
825
+ 'settings' => 'first_slider_heading',
826
+ 'type' => 'text',
827
+ ));
828
+
829
+ $wp_customize->add_setting('first_slider_desc', array(
830
+ 'default' => '',
831
+ 'capability' => 'edit_theme_options',
832
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
833
+
834
+
835
+ ));
836
+ $wp_customize->add_control('first_slider_desc', array(
837
+ 'label' => __('Description for slider', 'shopline'),
838
+ 'section' => 'front_page_hero',
839
+ 'settings' => 'first_slider_desc',
840
+ 'type' => 'textarea',
841
+ ));
842
+ $wp_customize->add_setting('first_slider_link', array(
843
+ 'default' => '#',
844
+ 'capability' => 'edit_theme_options',
845
+ 'sanitize_callback' => 'esc_url',
846
+
847
+ ));
848
+ $wp_customize->add_control('first_slider_link', array(
849
+ 'label' => __('Link for slider', 'shopline'),
850
+ 'section' => 'front_page_hero',
851
+ 'settings' => 'first_slider_link',
852
+ 'type' => 'text',
853
+ ));
854
+
855
+ $wp_customize->add_setting('first_button_text', array(
856
+ 'default' => '#',
857
+ 'capability' => 'edit_theme_options',
858
+ 'sanitize_callback' => 'sanitize_text_field',
859
+
860
+ ));
861
+ $wp_customize->add_control('first_button_text', array(
862
+ 'label' => __('Text for button', 'shopline'),
863
+ 'section' => 'front_page_hero',
864
+ 'settings' => 'first_button_text',
865
+ 'type' => 'text',
866
+ ));
867
+
868
+ $wp_customize->add_setting('first_button_link', array(
869
+ 'default' => '#',
870
+ 'capability' => 'edit_theme_options',
871
+ 'sanitize_callback' => 'esc_url_raw',
872
+
873
+ ));
874
+ $wp_customize->add_control('first_button_link', array(
875
+ 'label' => __('Link for button', 'shopline'),
876
+ 'section' => 'front_page_hero',
877
+ 'settings' => 'first_button_link',
878
+ 'type' => 'text',
879
+ ));
880
+ $wp_customize->add_setting('front_page_slide_second_line_break_color', array(
881
+ 'sanitize_callback' => 'sanitize_text_field'
882
+ ));
883
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
884
+ $wp_customize,'front_page_slide_second_line_break_color',array(
885
+ 'section' => 'front_page_hero',
886
+ 'description' => __( 'Second Slide', 'shopline' ),
887
+ 'type' => 'content',
888
+ 'input_attrs' => array('divider' => true),
889
+ )));
890
+ //Second slider image
891
+ $wp_customize->add_setting('second_slider_image', array(
892
+ 'default' => '',
893
+ 'capability' => 'edit_theme_options',
894
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
895
+ ));
896
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'second_slider_image', array(
897
+ 'label' => __('Slider Image Upload', 'shopline'),
898
+ 'section' => 'front_page_hero',
899
+ 'settings' => 'second_slider_image',
900
+ )));
901
+ $wp_customize->add_setting('second_slider_heading', array(
902
+ 'default' => 'Heading 1',
903
+ 'capability' => 'edit_theme_options',
904
+ 'sanitize_callback' => 'sanitize_text_field',
905
+
906
+ ));
907
+ $wp_customize->add_control('second_slider_heading', array(
908
+ 'label' => __('Slider Heading', 'shopline'),
909
+ 'section' => 'front_page_hero',
910
+ 'settings' => 'second_slider_heading',
911
+ 'type' => 'text',
912
+ ));
913
+
914
+ $wp_customize->add_setting('second_slider_desc', array(
915
+ 'default' => '',
916
+ 'capability' => 'edit_theme_options',
917
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
918
+
919
+ ));
920
+ $wp_customize->add_control('second_slider_desc', array(
921
+ 'label' => __('Description for slider', 'shopline'),
922
+ 'section' => 'front_page_hero',
923
+ 'settings' => 'second_slider_desc',
924
+ 'type' => 'textarea',
925
+ ));
926
+ $wp_customize->add_setting('second_slider_link', array(
927
+ 'default' => '#',
928
+ 'capability' => 'edit_theme_options',
929
+ 'sanitize_callback' => 'esc_url',
930
+
931
+ ));
932
+ $wp_customize->add_control('second_slider_link', array(
933
+ 'label' => __('Link for slider', 'shopline'),
934
+ 'section' => 'front_page_hero',
935
+ 'settings' => 'second_slider_link',
936
+ 'type' => 'text',
937
+ ));
938
+
939
+ $wp_customize->add_setting('second_button_text', array(
940
+ 'default' => '#',
941
+ 'capability' => 'edit_theme_options',
942
+ 'sanitize_callback' => 'sanitize_text_field',
943
+
944
+ ));
945
+ $wp_customize->add_control('second_button_text', array(
946
+ 'label' => __('Text for button', 'shopline'),
947
+ 'section' => 'front_page_hero',
948
+ 'settings' => 'second_button_text',
949
+ 'type' => 'text',
950
+ ));
951
+
952
+ $wp_customize->add_setting('second_button_link', array(
953
+ 'default' => '#',
954
+ 'capability' => 'edit_theme_options',
955
+ 'sanitize_callback' => 'esc_url_raw',
956
+
957
+ ));
958
+ $wp_customize->add_control('second_button_link', array(
959
+ 'label' => __('Link for button', 'shopline'),
960
+ 'section' => 'front_page_hero',
961
+ 'settings' => 'second_button_link',
962
+ 'type' => 'text',
963
+ ));
964
+ $wp_customize->add_setting('front_page_slide_third_line_break_color', array(
965
+ 'sanitize_callback' => 'sanitize_text_field'
966
+ ));
967
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
968
+ $wp_customize,'front_page_slide_third_line_break_color',array(
969
+ 'section' => 'front_page_hero',
970
+ 'description' => __( 'Third Slide', 'shopline' ),
971
+ 'type' => 'content',
972
+ 'input_attrs' => array('divider' => true),
973
+ )));
974
+ //Third slider image
975
+ $wp_customize->add_setting('third_slider_image', array(
976
+ 'default' => '',
977
+ 'capability' => 'edit_theme_options',
978
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
979
+ ));
980
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'third_slider_image', array(
981
+ 'label' => __('Slider Image Upload', 'shopline'),
982
+ 'section' => 'front_page_hero',
983
+ 'settings' => 'third_slider_image',
984
+ )));
985
+ $wp_customize->add_setting('third_slider_heading', array(
986
+ 'default' => 'Heading 1',
987
+ 'capability' => 'edit_theme_options',
988
+ 'sanitize_callback' => 'sanitize_text_field',
989
+
990
+ ));
991
+ $wp_customize->add_control('third_slider_heading', array(
992
+ 'label' => __('Slider Heading', 'shopline'),
993
+ 'section' => 'front_page_hero',
994
+ 'settings' => 'third_slider_heading',
995
+ 'type' => 'text',
996
+ ));
997
+
998
+ $wp_customize->add_setting('third_slider_desc', array(
999
+ 'default' => '',
1000
+ 'capability' => 'edit_theme_options',
1001
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1002
+
1003
+ ));
1004
+ $wp_customize->add_control('third_slider_desc', array(
1005
+ 'label' => __('Description for slider', 'shopline'),
1006
+ 'section' => 'front_page_hero',
1007
+ 'settings' => 'third_slider_desc',
1008
+ 'type' => 'textarea',
1009
+ ));
1010
+ $wp_customize->add_setting('third_slider_link', array(
1011
+ 'default' => '#',
1012
+ 'capability' => 'edit_theme_options',
1013
+ 'sanitize_callback' => 'esc_url',
1014
+
1015
+ ));
1016
+ $wp_customize->add_control('third_slider_link', array(
1017
+ 'label' => __('Link for slider', 'shopline'),
1018
+ 'section' => 'front_page_hero',
1019
+ 'settings' => 'third_slider_link',
1020
+ 'type' => 'text',
1021
+ ));
1022
+
1023
+ $wp_customize->add_setting('third_button_text', array(
1024
+ 'default' => '#',
1025
+ 'capability' => 'edit_theme_options',
1026
+ 'sanitize_callback' => 'sanitize_text_field',
1027
+
1028
+ ));
1029
+ $wp_customize->add_control('third_button_text', array(
1030
+ 'label' => __('Text for button', 'shopline'),
1031
+ 'section' => 'front_page_hero',
1032
+ 'settings' => 'third_button_text',
1033
+ 'type' => 'text',
1034
+ ));
1035
+
1036
+ $wp_customize->add_setting('third_button_link', array(
1037
+ 'default' => '#',
1038
+ 'capability' => 'edit_theme_options',
1039
+ 'sanitize_callback' => 'esc_url_raw',
1040
+
1041
+ ));
1042
+ $wp_customize->add_control('third_button_link', array(
1043
+ 'label' => __('Link for button', 'shopline'),
1044
+ 'section' => 'front_page_hero',
1045
+ 'settings' => 'third_button_link',
1046
+ 'type' => 'text',
1047
+ ));
1048
+ // slider-content-alignment-setting
1049
+ $wp_customize->add_setting( 'sldr_content_front_align_set',
1050
+ array(
1051
+ 'sanitize_callback' => 'sanitize_text_field',
1052
+ 'default' => 'txt-center',
1053
+
1054
+ )
1055
+ );
1056
+ $wp_customize->add_control( 'sldr_content_front_align_set',
1057
+ array(
1058
+ 'type' => 'select',
1059
+ 'label' => esc_html__('Content Alignment', 'shopline'),
1060
+ 'section' => 'front_page_hero',
1061
+ 'choices' => array(
1062
+ 'txt-center' => esc_html__('Text To Center', 'shopline'),
1063
+ 'txt-left' => esc_html__('Text To Left', 'shopline'),
1064
+ 'txt-right' => esc_html__('Text To Right', 'shopline'),
1065
+ )
1066
+ )
1067
+ );
1068
+ // slider-speed
1069
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
1070
+ $wp_customize->add_setting(
1071
+ 'normal_slider_speed', array(
1072
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1073
+ 'default' => 3000,
1074
+
1075
+ )
1076
+ );
1077
+ $wp_customize->add_control(
1078
+ new Themehunk_Customizer_Range_Value_Control(
1079
+ $wp_customize, 'normal_slider_speed', array(
1080
+ 'label' => esc_html__( 'Slider Speed', 'shopline' ),
1081
+ 'description'=> __('(Increase or decrease the value in multiple of thousand to change slide speed. For example 3000 equals to 3 second. )', 'shopline'),
1082
+ 'section' => 'front_page_hero',
1083
+ 'type' => 'range-value',
1084
+ 'input_attr' => array(
1085
+ 'min' => 100,
1086
+ 'max' => 5000,
1087
+ 'step' => 100,
1088
+ ),
1089
+ )
1090
+ )
1091
+ );
1092
+ }
1093
+ // add-more-slider-pro
1094
+ $wp_customize->add_setting('slide_more', array(
1095
+ 'sanitize_callback' => 'themehunk_sanitize_text',
1096
+ ));
1097
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'slide_more',
1098
+ array(
1099
+ 'section' => 'front_page_hero',
1100
+ 'type' => 'custom_message',
1101
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//themehunk.com/product/shopline-pro-multipurpose-shopping-theme/">ShoplinePro</a> for six slide to show','shopline' )
1102
+ )));
1103
+
1104
+ // front-video setting
1105
+ $wp_customize->add_setting('front_hero_video', array(
1106
+ 'default' => '',
1107
+ 'capability' => 'edit_theme_options',
1108
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
1109
+ ));
1110
+ $wp_customize->add_control( new WP_Customize_Upload_Control($wp_customize, 'front_hero_video', array(
1111
+ 'label' => __('Video Upload', 'shopline'),
1112
+ 'section' => 'front_page_hero',
1113
+ 'settings' => 'front_hero_video',
1114
+ )));
1115
+ $wp_customize->add_setting('front_hero_video_poster', array(
1116
+ 'default' => '',
1117
+ 'capability' => 'edit_theme_options',
1118
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
1119
+ ));
1120
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'front_hero_video_poster', array(
1121
+ 'label' => __('Poster Image Upload', 'shopline'),
1122
+ 'section' => 'front_page_hero',
1123
+ 'settings' => 'front_hero_video_poster',
1124
+ )));
1125
+ // muted
1126
+ $wp_customize->add_setting('front_hero_video_muted', array(
1127
+ 'default' => '',
1128
+ 'capability' => 'edit_theme_options',
1129
+ 'sanitize_callback' => 'sanitize_text_field'
1130
+ ));
1131
+ $wp_customize->add_control( 'front_hero_video_muted', array(
1132
+ 'settings' => 'front_hero_video_muted',
1133
+ 'label' => __('Mute Audio','shopline'),
1134
+ 'section' => 'front_page_hero',
1135
+ 'type' => 'checkbox',
1136
+ 'choices' => array(
1137
+ 'muted' => 'Mute Audio',
1138
+ ),
1139
+ ));
1140
+ // front-image-setting
1141
+ $wp_customize->add_setting('front_hero_img', array(
1142
+ 'default' => '',
1143
+ 'capability' => 'edit_theme_options',
1144
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
1145
+ ));
1146
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'front_hero_img', array(
1147
+ 'label' => __('Image Upload', 'shopline'),
1148
+ 'section' => 'front_page_hero',
1149
+ 'settings' => 'front_hero_img',
1150
+ )));
1151
+ // front-color
1152
+ $wp_customize->add_setting(
1153
+ 'front_hero_bg_color',
1154
+ array(
1155
+ 'default' => '#7D7D7D',
1156
+ 'type' => 'theme_mod',
1157
+ 'capability' => 'edit_theme_options',
1158
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
1159
+ )
1160
+ );
1161
+ $wp_customize->add_control(
1162
+ new Customize_themehunk_Color_Control(
1163
+ $wp_customize,
1164
+ 'front_hero_bg_color',
1165
+ array(
1166
+ 'label' => __( 'Background Color', 'shopline' ),
1167
+ 'section' => 'front_page_hero',
1168
+ 'settings' => 'front_hero_bg_color',
1169
+ 'show_opacity' => true, // Optional.
1170
+ 'palette' => $palette
1171
+ )
1172
+ )
1173
+ );
1174
+ // gradient-front-setting
1175
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
1176
+ $wp_customize->add_setting(
1177
+ 'front_garedient_hero', array(
1178
+ 'default' => 'gradient-default',
1179
+ 'sanitize_callback' => 'sanitize_text_field',
1180
+ )
1181
+ );
1182
+ $wp_customize->add_control(
1183
+ new Themehunk_Customize_Control_Radio_Image(
1184
+ $wp_customize, 'front_garedient_hero', array(
1185
+ 'label' => esc_html__( 'Gradient', 'shopline' ),
1186
+ 'section' => 'front_page_hero',
1187
+ 'choices' => array(
1188
+ 'gradient-default' => array(
1189
+ 'url' => SHOPLINE_GRADIENT_DFLT_IMAGE,
1190
+ ),
1191
+ 'gradient-one' => array(
1192
+ 'url' => SHOPLINE_GRADIENT_ONE_IMAGE,
1193
+ ),
1194
+ 'gradient-two' => array(
1195
+ 'url' => SHOPLINE_GRADIENT_TWO_IMAGE,
1196
+ ),
1197
+ ),
1198
+ )
1199
+ )
1200
+ );
1201
+ }
1202
+ // overall-container-setting
1203
+ $wp_customize->add_setting('front_hero_video_heading', array(
1204
+ 'default' => 'Heading 1',
1205
+ 'capability' => 'edit_theme_options',
1206
+ 'sanitize_callback' => 'sanitize_text_field',
1207
+
1208
+ ));
1209
+ $wp_customize->add_control('front_hero_video_heading', array(
1210
+ 'label' => __('Heading', 'shopline'),
1211
+ 'section' => 'front_page_hero',
1212
+ 'settings' => 'front_hero_video_heading',
1213
+ 'type' => 'text',
1214
+ ));
1215
+
1216
+ $wp_customize->add_setting('front_hero_video_desc', array(
1217
+ 'default' => '',
1218
+ 'capability' => 'edit_theme_options',
1219
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
1220
+
1221
+ ));
1222
+ $wp_customize->add_control('front_hero_video_desc', array(
1223
+ 'label' => __('Description', 'shopline'),
1224
+ 'section' => 'front_page_hero',
1225
+ 'settings' => 'front_hero_video_desc',
1226
+ 'type' => 'textarea',
1227
+ ));
1228
+ $wp_customize->add_setting('front_hero_video_link', array(
1229
+ 'default' => '#',
1230
+ 'capability' => 'edit_theme_options',
1231
+ 'sanitize_callback' => 'esc_url',
1232
+
1233
+ ));
1234
+ $wp_customize->add_control('front_hero_video_link', array(
1235
+ 'label' => __('Link', 'shopline'),
1236
+ 'section' => 'front_page_hero',
1237
+ 'settings' => 'front_hero_video_link',
1238
+ 'type' => 'text',
1239
+ ));
1240
+
1241
+ $wp_customize->add_setting('front_hero_video_button_text', array(
1242
+ 'default' => '#',
1243
+ 'capability' => 'edit_theme_options',
1244
+ 'sanitize_callback' => 'sanitize_text_field',
1245
+
1246
+ ));
1247
+ $wp_customize->add_control('front_hero_video_button_text', array(
1248
+ 'label' => __('Text for button', 'shopline'),
1249
+ 'section' => 'front_page_hero',
1250
+ 'settings' => 'front_hero_video_button_text',
1251
+ 'type' => 'text',
1252
+ ));
1253
+
1254
+ $wp_customize->add_setting('front_hero_video_button_link', array(
1255
+ 'default' => '#',
1256
+ 'capability' => 'edit_theme_options',
1257
+ 'sanitize_callback' => 'esc_url_raw',
1258
+
1259
+ ));
1260
+ $wp_customize->add_control('front_hero_video_button_link', array(
1261
+ 'label' => __('Link for button', 'shopline'),
1262
+ 'section' => 'front_page_hero',
1263
+ 'settings' => 'front_hero_video_button_link',
1264
+ 'type' => 'text',
1265
+ ));
1266
+ // external plugin fornt setting
1267
+ $wp_customize->add_setting('front_extrnl_shrcd', array(
1268
+ 'default' => '',
1269
+ 'capability' => 'edit_theme_options',
1270
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
1271
+ ));
1272
+ $wp_customize->add_control('front_extrnl_shrcd', array(
1273
+ 'label' => __('Plugin Shortcode', 'shopline'),
1274
+ 'description' => __('Description', 'shopline'),
1275
+ 'section' => 'front_page_hero',
1276
+ 'settings' => 'front_extrnl_shrcd',
1277
+ 'type' => 'textarea',
1278
+ ));
1279
+ // not-slider-content-alignment-setting
1280
+ $wp_customize->add_setting( '_content_front_align_set',
1281
+ array(
1282
+ 'sanitize_callback' => 'sanitize_text_field',
1283
+ 'default' => 'txt-center',
1284
+ )
1285
+ );
1286
+ $wp_customize->add_control( '_content_front_align_set',
1287
+ array(
1288
+ 'type' => 'select',
1289
+ 'label' => esc_html__('Content Alignment', 'shopline'),
1290
+ 'section' => 'front_page_hero',
1291
+ 'choices' => array(
1292
+ 'txt-center' => esc_html__('Text To Center', 'shopline'),
1293
+ 'txt-left' => esc_html__('Text To Left', 'shopline'),
1294
+ 'txt-right' => esc_html__('Text To Right', 'shopline'),
1295
+ 'txt-media-left' => esc_html__('Text With Media on Left', 'shopline'),
1296
+ 'txt-media-right' => esc_html__('Text With Media on Right', 'shopline'),
1297
+ )
1298
+ )
1299
+ );
1300
+
1301
+ $wp_customize->add_setting('align_image', array(
1302
+ 'capability' => 'edit_theme_options',
1303
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
1304
+ ));
1305
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'align_image', array(
1306
+ 'label' => __('Image Upload', 'shopline'),
1307
+ 'section' => 'front_page_hero',
1308
+ 'settings' => 'align_image',
1309
+ )));
1310
+
1311
+ // overlay color
1312
+ $wp_customize->add_setting( 'hero_overlay_set',
1313
+ array(
1314
+ 'sanitize_callback' => 'sanitize_text_field',
1315
+ 'default' => 'color',
1316
+ )
1317
+ );
1318
+ $wp_customize->add_control( 'hero_overlay_set',
1319
+ array(
1320
+ 'type' => 'select',
1321
+ 'label' => esc_html__('Choose Overlay', 'shopline'),
1322
+ 'section' => 'front_page_hero',
1323
+ 'choices' => array(
1324
+ 'color' => esc_html__('Color', 'shopline'),
1325
+ 'gradient' => esc_html__('Gradient', 'shopline'),
1326
+ )
1327
+ )
1328
+ );
1329
+
1330
+ // overlay-color
1331
+ $wp_customize->add_setting(
1332
+ 'normal_slider_bg_overly',
1333
+ array(
1334
+ 'default' => 'rgba(0, 0, 0, 0)',
1335
+ 'type' => 'theme_mod',
1336
+ 'capability' => 'edit_theme_options',
1337
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
1338
+ )
1339
+ );
1340
+ $wp_customize->add_control(
1341
+ new Customize_themehunk_Color_Control(
1342
+ $wp_customize,
1343
+ 'normal_slider_bg_overly',
1344
+ array(
1345
+ 'label' => __( 'Overlay Color', 'shopline' ),
1346
+ 'section' => 'front_page_hero',
1347
+ 'settings' => 'normal_slider_bg_overly',
1348
+ 'show_opacity' => true, // Optional.
1349
+ 'palette' => $palette
1350
+ )
1351
+ )
1352
+ );
1353
+ // overlay-gradient
1354
+ // gradient-front-setting
1355
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
1356
+ $wp_customize->add_setting(
1357
+ 'overlay_garedient_hero', array(
1358
+ 'default' => 'gradient-default',
1359
+ 'sanitize_callback' => 'sanitize_text_field',
1360
+ )
1361
+ );
1362
+ $wp_customize->add_control(
1363
+ new Themehunk_Customize_Control_Radio_Image(
1364
+ $wp_customize, 'overlay_garedient_hero', array(
1365
+ 'label' => esc_html__( 'Overlay Gradient', 'shopline' ),
1366
+ 'section' => 'front_page_hero',
1367
+ 'choices' => array(
1368
+ 'gradient-default' => array(
1369
+ 'url' => SHOPLINE_GRADIENT_OVLY_ONE_IMAGE,
1370
+ ),
1371
+ 'gradient-one' => array(
1372
+ 'url' => SHOPLINE_GRADIENT_OVLY_TWO_IMAGE,
1373
+ ),
1374
+ 'gradient-two' => array(
1375
+ 'url' => SHOPLINE_GRADIENT_OVLY_THREE_IMAGE,
1376
+ ),
1377
+ 'gradient-three' => array(
1378
+ 'url' => SHOPLINE_GRADIENT_OVLY_FOUR_IMAGE,
1379
+ ),
1380
+ 'gradient-four' => array(
1381
+ 'url' => SHOPLINE_GRADIENT_OVLY_FIVE_IMAGE,
1382
+ ),
1383
+ 'gradient-five' => array(
1384
+ 'url' => SHOPLINE_GRADIENT_OVLY_SIX_IMAGE,
1385
+ ),
1386
+ ),
1387
+ )
1388
+ )
1389
+ );
1390
+ }
1391
+
1392
+ $wp_customize->add_setting('sldr_heading_clr', array(
1393
+ 'default' => '#fff',
1394
+ 'sanitize_callback' => 'sanitize_hex_color'
1395
+ ));
1396
+ $wp_customize->add_control(
1397
+ new WP_Customize_Color_Control($wp_customize,'sldr_heading_clr', array(
1398
+ 'label' => __('Heading Color', 'shopline' ),
1399
+ 'section' => 'front_page_hero',
1400
+ 'settings' => 'sldr_heading_clr',
1401
+ ) ) );
1402
+ $wp_customize->add_setting('sldr_subheading_clr', array(
1403
+ 'default' => '#fff',
1404
+ 'sanitize_callback' => 'sanitize_hex_color'
1405
+ ));
1406
+ $wp_customize->add_control(
1407
+ new WP_Customize_Color_Control($wp_customize,'sldr_subheading_clr', array(
1408
+ 'label' => __('Sub Heading Color', 'shopline' ),
1409
+ 'section' => 'front_page_hero',
1410
+ 'settings' => 'sldr_subheading_clr',
1411
+ ) ) );
1412
+
1413
+ // slider-button
1414
+ $wp_customize->add_setting(
1415
+ 'slider_bg_clr',
1416
+ array(
1417
+ 'default' => 'rgba(0, 0, 0, 0)',
1418
+ 'type' => 'theme_mod',
1419
+ 'capability' => 'edit_theme_options',
1420
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
1421
+ )
1422
+ );
1423
+ $wp_customize->add_control(
1424
+ new Customize_themehunk_Color_Control(
1425
+ $wp_customize,
1426
+ 'slider_bg_clr',
1427
+ array(
1428
+ 'label' => __( 'Button Background Color', 'shopline' ),
1429
+ 'section' => 'front_page_hero',
1430
+ 'settings' => 'slider_bg_clr',
1431
+ 'show_opacity' => true, // Optional.
1432
+ 'palette' => $palette
1433
+ )
1434
+ )
1435
+ );
1436
+
1437
+ $wp_customize->add_setting('sldr_btn_txt_clr', array(
1438
+ 'default' => '#fff',
1439
+ 'sanitize_callback' => 'sanitize_hex_color'
1440
+ ));
1441
+ $wp_customize->add_control(
1442
+ new WP_Customize_Color_Control($wp_customize,'sldr_btn_txt_clr', array(
1443
+ 'label' => __('Button Text Color', 'shopline' ),
1444
+ 'section' => 'front_page_hero',
1445
+ 'settings' => 'sldr_btn_txt_clr',
1446
+ ) ) );
1447
+
1448
+ $wp_customize->add_setting('sldr_btn_brd_clr', array(
1449
+ 'default' => '#fff',
1450
+ 'sanitize_callback' => 'sanitize_hex_color'
1451
+ ));
1452
+ $wp_customize->add_control(
1453
+ new WP_Customize_Color_Control($wp_customize,'sldr_btn_brd_clr', array(
1454
+ 'label' => __('Button Border Color', 'shopline' ),
1455
+ 'section' => 'front_page_hero',
1456
+ 'settings' => 'sldr_btn_brd_clr',
1457
+ ) ) );
1458
+
1459
+ $wp_customize->add_setting(
1460
+ 'slider_bg_hvr_clr',
1461
+ array(
1462
+ 'default' => '#ffffff',
1463
+ 'type' => 'theme_mod',
1464
+ 'capability' => 'edit_theme_options',
1465
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
1466
+ )
1467
+ );
1468
+ $wp_customize->add_control(
1469
+ new Customize_themehunk_Color_Control(
1470
+ $wp_customize,
1471
+ 'slider_bg_hvr_clr',
1472
+ array(
1473
+ 'label' => __( 'Button Background Hover Color', 'shopline' ),
1474
+ 'section' => 'front_page_hero',
1475
+ 'settings' => 'slider_bg_hvr_clr',
1476
+ 'show_opacity' => true, // Optional.
1477
+ 'palette' => $palette
1478
+ )
1479
+ )
1480
+ );
1481
+
1482
+ $wp_customize->add_setting('sldr_btn_hvr_txt_clr', array(
1483
+ 'default' => '#e7c09c',
1484
+ 'sanitize_callback' => 'sanitize_hex_color'
1485
+ ));
1486
+ $wp_customize->add_control(
1487
+ new WP_Customize_Color_Control($wp_customize,'sldr_btn_hvr_txt_clr', array(
1488
+ 'label' => __('Button Text Hover Color', 'shopline' ),
1489
+ 'section' => 'front_page_hero',
1490
+ 'settings' => 'sldr_btn_hvr_txt_clr',
1491
+ ) ) );
1492
+
1493
+ $wp_customize->add_setting('sldr_btn_hvr_brd_clr', array(
1494
+ 'default' => '#ffff',
1495
+ 'sanitize_callback' => 'sanitize_hex_color'
1496
+ ));
1497
+ $wp_customize->add_control(
1498
+ new WP_Customize_Color_Control($wp_customize,'sldr_btn_hvr_brd_clr', array(
1499
+ 'label' => __('Button Border Hover Color', 'shopline' ),
1500
+ 'section' => 'front_page_hero',
1501
+ 'settings' => 'sldr_btn_hvr_brd_clr',
1502
+ ) ) );
1503
+
1504
+ /**************************** HERO INNER SECTION ************************/
1505
+ /********************************************************************/
1506
+ $wp_customize->add_section( 'inner_page_hero', array(
1507
+ 'title' => __('Inner Page Hero', 'shopline'),
1508
+ 'panel' => 'header_options',
1509
+ 'priority' => 4,
1510
+ ));
1511
+ $wp_customize->add_setting(
1512
+ 'inner_page_tabs', array(
1513
+ 'sanitize_callback' => 'sanitize_text_field',
1514
+ )
1515
+ );
1516
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
1517
+ $wp_customize->add_control(
1518
+ new Themehunk_Customize_Control_Tabs(
1519
+ $wp_customize, 'inner_page_tabs', array(
1520
+ 'section' => 'inner_page_hero',
1521
+ 'tabs' => array(
1522
+ 'woo_cat_setting' => array(
1523
+ 'nicename' => esc_html__( 'Setting', 'hestia' ),
1524
+ 'controls' => array(
1525
+ 'inner_page_doc_link',
1526
+ 'shopline_inner_page_set',
1527
+ 'inner_hero_height',
1528
+ 'title_hide_hero',
1529
+ 'inner_hero_speed',
1530
+ 'inner_page_slide_first_line_break_color',
1531
+ 'inner_slide_image',
1532
+ 'inner_page_slide_second_line_break_color',
1533
+ 'inner_slide2_image',
1534
+ 'inner_page_slide_third_line_break_color',
1535
+ 'inner_slide3_image',
1536
+ 'inner_hero_video',
1537
+ 'inner_hero_video_poster',
1538
+ 'inner_hero_video_muted',
1539
+ 'inner_hero_image',
1540
+ 'inner_hero_color',
1541
+ ),
1542
+ ),
1543
+ 'woo_cat_style' => array(
1544
+ 'nicename' => esc_html__( 'Style', 'hestia' ),
1545
+ 'controls' => array(
1546
+ 'inner_hero_overlay_set',
1547
+ 'inner_bg_overly',
1548
+ 'overlay_garedient_hero_inner',
1549
+ 'inner_hero_title_color'
1550
+
1551
+ ),
1552
+ ),
1553
+ ),
1554
+ )
1555
+ )
1556
+ );
1557
+ }
1558
+ $wp_customize->add_setting('inner_page_doc_link', array(
1559
+ 'sanitize_callback' => 'themehunk_sanitize_text',
1560
+ ));
1561
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'inner_page_doc_link',
1562
+ array(
1563
+ 'section' => 'inner_page_hero',
1564
+ 'priority' => 0,
1565
+ 'type' => 'custom_message',
1566
+ 'description' => wp_kses_post( 'Check <a target="_blank" href="//themehunk.com/docs/shopline-theme/#inner-page"> Doc </a> for Inner page hero.','shopline' )
1567
+ )));
1568
+ // Choose settings
1569
+ $wp_customize->add_setting( 'shopline_inner_page_set',
1570
+ array(
1571
+ 'sanitize_callback' => 'sanitize_text_field',
1572
+ 'default' => 'image',
1573
+
1574
+ )
1575
+ );
1576
+ $wp_customize->add_control( 'shopline_inner_page_set',
1577
+ array(
1578
+ 'type' => 'select',
1579
+ 'label' => esc_html__('Hero Layout', 'shopline'),
1580
+ 'description' => esc_html__('Choose background type for Inner pages', 'shopline'),
1581
+ 'section' => 'inner_page_hero',
1582
+ 'choices' => array(
1583
+ 'image' => esc_html__('Image', 'shopline'),
1584
+ 'slide' => esc_html__('Slide Show', 'shopline'),
1585
+ 'video' => esc_html__('Video', 'shopline'),
1586
+ 'color' => esc_html__('Color', 'shopline'),
1587
+ 'no-header' => esc_html__('No Header', 'shopline'),
1588
+ )
1589
+ )
1590
+ );
1591
+ // inner-hero height
1592
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
1593
+ $wp_customize->add_setting(
1594
+ 'inner_hero_height', array(
1595
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1596
+ 'default' => '420',
1597
+
1598
+ )
1599
+ );
1600
+ $wp_customize->add_control(
1601
+ new Themehunk_Customizer_Range_Value_Control(
1602
+ $wp_customize, 'inner_hero_height', array(
1603
+ 'label' => esc_html__( 'Set hero section height in px', 'shopline'),
1604
+ 'section' => 'inner_page_hero',
1605
+ 'type' => 'range-value',
1606
+ 'input_attr' => array(
1607
+ 'min' => 100,
1608
+ 'max' => 1000,
1609
+ 'step' => 1,
1610
+ ),
1611
+ 'priority' => 3,
1612
+ )
1613
+ )
1614
+ );
1615
+ }
1616
+ // hide-content-option
1617
+ $wp_customize->add_setting( 'title_hide_hero',
1618
+ array(
1619
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
1620
+ 'default' => '',
1621
+ )
1622
+ );
1623
+ $wp_customize->add_control( 'title_hide_hero',
1624
+ array(
1625
+ 'type' => 'checkbox',
1626
+ 'label' => esc_html__('Hide Title', 'shopline'),
1627
+ 'section' => 'inner_page_hero',
1628
+ )
1629
+ );
1630
+ // slide-show
1631
+ // first
1632
+ // iinner slider speed
1633
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
1634
+ $wp_customize->add_setting(
1635
+ 'inner_hero_speed', array(
1636
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
1637
+ 'default' => '5000',
1638
+
1639
+ )
1640
+ );
1641
+ $wp_customize->add_control(
1642
+ new Themehunk_Customizer_Range_Value_Control(
1643
+ $wp_customize, 'inner_hero_speed', array(
1644
+ 'label' => esc_html__( 'Speed', 'shopline' ),
1645
+ 'section' => 'inner_page_hero',
1646
+ 'type' => 'range-value',
1647
+ 'input_attr' => array(
1648
+ 'min' => 1000,
1649
+ 'max' => 10000,
1650
+ 'step' => 100,
1651
+ ),
1652
+ )
1653
+ )
1654
+ );
1655
+ }
1656
+ $wp_customize->add_setting('inner_page_slide_first_line_break_color', array(
1657
+ 'sanitize_callback' => 'sanitize_text_field',
1658
+ ));
1659
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
1660
+ $wp_customize,'inner_page_slide_first_line_break_color',array(
1661
+ 'section' => 'inner_page_hero',
1662
+ 'description' => __( 'First Slide', 'shopline' ),
1663
+ 'type' => 'content',
1664
+ 'input_attrs' => array('divider' => true),
1665
+ )));
1666
+ $wp_customize->add_setting('inner_slide_image', array(
1667
+ 'capability' => 'edit_theme_options',
1668
+ 'sanitize_callback' => 'sanitize_text_field'
1669
+ ));
1670
+ $wp_customize->add_control( new WP_Customize_Image_Control(
1671
+ $wp_customize, 'inner_slide_image', array(
1672
+ 'label' => __('Upload Background Image', 'shopline'),
1673
+ 'section' => 'inner_page_hero',
1674
+ 'settings' => 'inner_slide_image',
1675
+ )));
1676
+ // second
1677
+ $wp_customize->add_setting('inner_page_slide_second_line_break_color', array(
1678
+ 'sanitize_callback' => 'sanitize_text_field',
1679
+ ));
1680
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
1681
+ $wp_customize,'inner_page_slide_second_line_break_color',array(
1682
+ 'section' => 'inner_page_hero',
1683
+ 'description' => __( 'Second Slide', 'shopline' ),
1684
+ 'type' => 'content',
1685
+ 'input_attrs' => array('divider' => true),
1686
+ )));
1687
+ $wp_customize->add_setting('inner_slide2_image', array(
1688
+ 'capability' => 'edit_theme_options',
1689
+ 'sanitize_callback' => 'sanitize_text_field'
1690
+ ));
1691
+ $wp_customize->add_control( new WP_Customize_Image_Control(
1692
+ $wp_customize, 'inner_slide2_image', array(
1693
+ 'label' => __('Upload Background Image', 'shopline'),
1694
+ 'section' => 'inner_page_hero',
1695
+ 'settings' => 'inner_slide2_image',
1696
+ )));
1697
+ // three
1698
+ $wp_customize->add_setting('inner_page_slide_third_line_break_color', array(
1699
+ 'sanitize_callback' => 'sanitize_text_field',
1700
+ ));
1701
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
1702
+ $wp_customize,'inner_page_slide_third_line_break_color',array(
1703
+ 'section' => 'inner_page_hero',
1704
+ 'description' => __( 'Third Slide', 'shopline' ),
1705
+ 'type' => 'content',
1706
+ 'input_attrs' => array('divider' => true),
1707
+ )));
1708
+ $wp_customize->add_setting('inner_slide3_image', array(
1709
+ 'capability' => 'edit_theme_options',
1710
+ 'sanitize_callback' => 'sanitize_text_field'
1711
+ ));
1712
+ $wp_customize->add_control( new WP_Customize_Image_Control(
1713
+ $wp_customize, 'inner_slide3_image', array(
1714
+ 'label' => __('Upload Background Image', 'shopline'),
1715
+ 'section' => 'inner_page_hero',
1716
+ 'settings' => 'inner_slide3_image',
1717
+ )));
1718
+
1719
+ // inner-video
1720
+ // inner-video setting
1721
+ $wp_customize->add_setting('inner_hero_video', array(
1722
+ 'default' => '',
1723
+ 'capability' => 'edit_theme_options',
1724
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
1725
+ ));
1726
+ $wp_customize->add_control( new WP_Customize_Upload_Control($wp_customize, 'inner_hero_video', array(
1727
+ 'label' => __('Video Upload', 'shopline'),
1728
+ 'section' => 'inner_page_hero',
1729
+ 'settings' => 'inner_hero_video',
1730
+ )));
1731
+ $wp_customize->add_setting('inner_hero_video_poster', array(
1732
+ 'default' => '',
1733
+ 'capability' => 'edit_theme_options',
1734
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
1735
+ ));
1736
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'inner_hero_video_poster', array(
1737
+ 'label' => __('Poster Image Upload', 'shopline'),
1738
+ 'section' => 'inner_page_hero',
1739
+ 'settings' => 'inner_hero_video_poster',
1740
+ )));
1741
+ // muted
1742
+ $wp_customize->add_setting('inner_hero_video_muted', array(
1743
+ 'default' => '',
1744
+ 'capability' => 'edit_theme_options',
1745
+ 'sanitize_callback' => 'sanitize_text_field'
1746
+ ));
1747
+ $wp_customize->add_control( 'inner_hero_video_muted', array(
1748
+ 'settings' => 'inner_hero_video_muted',
1749
+ 'label' => __('Mute Audio','shopline'),
1750
+ 'section' => 'inner_page_hero',
1751
+ 'type' => 'checkbox',
1752
+ 'choices' => array(
1753
+ 'muted' => 'Mute Audio',
1754
+ ),
1755
+ ));
1756
+ // image
1757
+ if ( class_exists( 'Themehunk_Display_Text' ) ) {
1758
+ $wp_customize->add_setting(
1759
+ 'inner_hero_image', array(
1760
+ 'sanitize_callback' => 'sanitize_text_field',
1761
+ )
1762
+ );
1763
+ $wp_customize->add_control(
1764
+ new Themehunk_Display_Text(
1765
+ $wp_customize, 'inner_hero_image', array(
1766
+ 'priority' => 25,
1767
+ 'section' => 'inner_page_hero',
1768
+ 'button_text' => esc_html__( 'Header Image', 'hestia' ),
1769
+ 'button_class' => 'focus-customizer-header-image',
1770
+
1771
+ )
1772
+ )
1773
+ );
1774
+ }
1775
+ // color
1776
+ $wp_customize->add_setting(
1777
+ 'inner_hero_color',
1778
+ array(
1779
+ 'default' => '#7D7D7D',
1780
+ 'type' => 'theme_mod',
1781
+ 'capability' => 'edit_theme_options',
1782
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
1783
+ )
1784
+ );
1785
+ $wp_customize->add_control(
1786
+ new Customize_themehunk_Color_Control(
1787
+ $wp_customize,
1788
+ 'inner_hero_color',
1789
+ array(
1790
+ 'label' => __( 'Color', 'shopline' ),
1791
+ 'section' => 'inner_page_hero',
1792
+ 'settings' => 'inner_hero_color',
1793
+ 'show_opacity' => true, // Optional.
1794
+ 'palette' => $palette
1795
+ )));
1796
+ // inner color setting
1797
+ // overlay color
1798
+ $wp_customize->add_setting( 'inner_hero_overlay_set',
1799
+ array(
1800
+ 'sanitize_callback' => 'sanitize_text_field',
1801
+ 'default' => 'color',
1802
+ )
1803
+ );
1804
+ $wp_customize->add_control( 'inner_hero_overlay_set',
1805
+ array(
1806
+ 'type' => 'select',
1807
+ 'label' => esc_html__('Choose Overlay', 'shopline'),
1808
+ 'section' => 'inner_page_hero',
1809
+ 'choices' => array(
1810
+ 'color' => esc_html__('Color', 'shopline'),
1811
+ 'gradient' => esc_html__('Gradient', 'shopline'),
1812
+ )
1813
+ )
1814
+ );
1815
+
1816
+ // overlay-color
1817
+ $wp_customize->add_setting(
1818
+ 'inner_bg_overly',
1819
+ array(
1820
+ 'default' => 'rgba(8, 8, 8, 0.3)',
1821
+ 'type' => 'theme_mod',
1822
+ 'capability' => 'edit_theme_options',
1823
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
1824
+ )
1825
+ );
1826
+ $wp_customize->add_control(
1827
+ new Customize_themehunk_Color_Control(
1828
+ $wp_customize,
1829
+ 'inner_bg_overly',
1830
+ array(
1831
+ 'label' => __( 'Overlay Color', 'shopline' ),
1832
+ 'section' => 'inner_page_hero',
1833
+ 'settings' => 'inner_bg_overly',
1834
+ 'show_opacity' => true, // Optional.
1835
+ 'palette' => $palette
1836
+ )
1837
+ )
1838
+ );
1839
+ // overlay-gradient
1840
+ // gradient-front-setting
1841
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
1842
+ $wp_customize->add_setting(
1843
+ 'overlay_garedient_hero_inner', array(
1844
+ 'default' => 'gradient-default',
1845
+ 'sanitize_callback' => 'sanitize_text_field',
1846
+ )
1847
+ );
1848
+ $wp_customize->add_control(
1849
+ new Themehunk_Customize_Control_Radio_Image(
1850
+ $wp_customize, 'overlay_garedient_hero_inner', array(
1851
+ 'label' => esc_html__( 'Overlay Gradient', 'shopline' ),
1852
+ 'section' => 'inner_page_hero',
1853
+ 'choices' => array(
1854
+ 'gradient-default' => array(
1855
+ 'url' => SHOPLINE_GRADIENT_OVLY_ONE_IMAGE,
1856
+ ),
1857
+ 'gradient-one' => array(
1858
+ 'url' => SHOPLINE_GRADIENT_OVLY_TWO_IMAGE,
1859
+ ),
1860
+ 'gradient-two' => array(
1861
+ 'url' => SHOPLINE_GRADIENT_OVLY_THREE_IMAGE,
1862
+ ),
1863
+ 'gradient-three' => array(
1864
+ 'url' => SHOPLINE_GRADIENT_OVLY_FOUR_IMAGE,
1865
+ ),
1866
+ 'gradient-four' => array(
1867
+ 'url' => SHOPLINE_GRADIENT_OVLY_FIVE_IMAGE,
1868
+ ),
1869
+ 'gradient-five' => array(
1870
+ 'url' => SHOPLINE_GRADIENT_OVLY_SIX_IMAGE,
1871
+ ),
1872
+ ),
1873
+ )
1874
+ )
1875
+ );
1876
+ }
1877
+
1878
+
1879
+ /*
1880
+ /****************************************************************/
1881
+ /************FRONT SECTION ************/
1882
+ /****************************************************************/
1883
+
1884
+ $wp_customize->add_panel( 'front_page_section', array(
1885
+ 'priority' => 6,
1886
+ 'title' => __('Frontpage Section', 'shopline'),
1887
+ ) );
1888
+ //===============================
1889
+ //= section ordering Settings =
1890
+ //=============================
1891
+ $wp_customize->add_section('section_order', array(
1892
+ 'title' => __('Section ordering', 'shopline'),
1893
+ 'priority' => 60,
1894
+ 'panel' =>'front_page_section',
1895
+
1896
+ ));
1897
+ // section ordering
1898
+ $wp_customize->add_setting('section_sorting', array(
1899
+ 'default' =>array('section_slider','section_woocate','section_ribbon','section_services','section_wooproduct','section_wooproduct1','section_testimonial','section_aboutus','section_blog','section_adsecond'),
1900
+ 'capability' => 'edit_theme_options',
1901
+ 'sanitize_callback' => 'themehunk_checkbox_explode'
1902
+ ));
1903
+ $wp_customize->add_control(new Themehunk_Customize_Sort_List(
1904
+ $wp_customize,'section_sorting', array(
1905
+ 'settings' => 'section_sorting',
1906
+ 'label' => __( 'Section Order', 'shopline' ),
1907
+ 'section' => 'section_order',
1908
+ 'choices' => array(
1909
+ 'section_slider' => __( '1 Slider Section', 'shopline'),
1910
+ 'section_woocate' => __( '2 Woocommerce Category Slider Section','shopline'),
1911
+ 'section_ribbon' => __( '3 Ribbon Section', 'shopline'),
1912
+ 'section_services' => __( '4 Service Section', 'shopline'),
1913
+ 'section_wooproduct' => __( '5 Woocommerce Product Section', 'shopline'),
1914
+ 'section_wooproduct1' => __( '6 Woocommerce Product slider Section', 'shopline'),
1915
+ 'section_testimonial' => __( '7 Testimonial Section','shopline' ),
1916
+ 'section_aboutus' => __( '8 About Us Section','shopline' ),
1917
+ 'section_blog' => __( '9 Latest Blog Section','shopline'),
1918
+ 'section_adsecond' => __( '10 Three column Ad Section','shopline'),
1919
+ ) ) ) );
1920
+ /****************************************************************/
1921
+ /************ WOO CATEGORY SLIDER ************/
1922
+ /****************************************************************/
1923
+ $wp_customize->add_section('woo_cate_slider_setting', array(
1924
+ 'title' => __('Category Slider (WooCommerce)', 'shopline'),
1925
+ 'priority' => 1,
1926
+ 'panel' =>'front_page_section'
1927
+ ));
1928
+ $wp_customize->add_setting(
1929
+ 'woo_cate_slider_tabs', array(
1930
+ 'sanitize_callback' => 'sanitize_text_field',
1931
+ )
1932
+ );
1933
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
1934
+ $wp_customize->add_control(
1935
+ new Themehunk_Customize_Control_Tabs(
1936
+ $wp_customize, 'woo_cate_slider_tabs', array(
1937
+ 'section' => 'woo_cate_slider_setting',
1938
+ 'tabs' => array(
1939
+ 'woo_cat_setting' => array(
1940
+ 'nicename' => esc_html__( 'Setting', 'hestia' ),
1941
+ 'controls' => array(
1942
+ 'cat_doc',
1943
+ 'woo_cate_section_hide',
1944
+ 'woo_cate_heading_hide',
1945
+ 'woo_cate_subheading_hide',
1946
+ 'woo_cate_slider_heading',
1947
+ 'woo_cate_slider_subheading',
1948
+ 'woo_cate_slider_list',
1949
+ 'cat_play',
1950
+ 'woo_cate_slider_speed',
1951
+ 'woo_cate_slider_speed_desc',
1952
+
1953
+
1954
+ ),
1955
+ ),
1956
+ 'woo_cat_style' => array(
1957
+ 'nicename' => esc_html__( 'Style', 'hestia' ),
1958
+ 'controls' => array(
1959
+ 'woo_cate_image_bg',
1960
+ 'woo_cat_svg_style',
1961
+ 'woo_cate_slider_bg_image',
1962
+ 'woo_cate_slider_overly',
1963
+ 'woo_cate_heading_color',
1964
+ 'woo_cate_subheading_color',
1965
+ 'woo_cate_line_color',
1966
+ 'woocat_section_padding',
1967
+ 'woocat_top_padding',
1968
+ 'woocat_bottom_padding',
1969
+ ),
1970
+ ),
1971
+ ),
1972
+ )
1973
+ )
1974
+ );
1975
+ }
1976
+ $wp_customize->add_setting('cat_doc', array(
1977
+ 'sanitize_callback' => 'themehunk_sanitize_text',
1978
+ ));
1979
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'cat_doc',
1980
+ array(
1981
+ 'section' => 'woo_cate_slider_setting',
1982
+ 'type' => 'custom_message',
1983
+ 'description' => wp_kses_post( 'Please check this <a target="_blank" href="//themehunk.com/docs/shopline-theme/#create-category"> doc </a> to create a category','shopline' )
1984
+ )));
1985
+ $wp_customize->add_setting( 'woo_cate_section_hide',
1986
+ array(
1987
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
1988
+ 'default' => '',
1989
+ )
1990
+ );
1991
+ $wp_customize->add_control( 'woo_cate_section_hide',
1992
+ array(
1993
+ 'type' => 'checkbox',
1994
+ 'label' => esc_html__('Disable section', 'shopline'),
1995
+ 'section' => 'woo_cate_slider_setting',
1996
+ )
1997
+ );
1998
+
1999
+ $wp_customize->add_setting( 'woo_cate_heading_hide',
2000
+ array(
2001
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
2002
+ 'default' => '',
2003
+ )
2004
+ );
2005
+ $wp_customize->add_control( 'woo_cate_heading_hide',
2006
+ array(
2007
+ 'type' => 'checkbox',
2008
+ 'label' => esc_html__('Disable Heading', 'shopline'),
2009
+ 'section' => 'woo_cate_slider_setting',
2010
+ )
2011
+ );
2012
+ $wp_customize->add_setting( 'woo_cate_subheading_hide',
2013
+ array(
2014
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
2015
+ 'default' => '',
2016
+ )
2017
+ );
2018
+ $wp_customize->add_control( 'woo_cate_subheading_hide',
2019
+ array(
2020
+ 'type' => 'checkbox',
2021
+ 'label' => esc_html__('Disable Sub Heading', 'shopline'),
2022
+ 'section' => 'woo_cate_slider_setting',
2023
+ )
2024
+ );
2025
+
2026
+ $wp_customize->add_setting('woo_cate_slider_heading', array(
2027
+ 'default' => '',
2028
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
2029
+ ));
2030
+ $wp_customize->add_control('woo_cate_slider_heading', array(
2031
+ 'label' => __('Heading', 'shopline'),
2032
+ 'section' => 'woo_cate_slider_setting',
2033
+ 'settings' => 'woo_cate_slider_heading',
2034
+ 'type' => 'text',
2035
+ ));
2036
+ $wp_customize->add_setting('woo_cate_slider_subheading', array(
2037
+ 'default' => '',
2038
+ 'capability' => 'edit_theme_options',
2039
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
2040
+
2041
+ ));
2042
+ $wp_customize->add_control('woo_cate_slider_subheading', array(
2043
+ 'label' => __('Sub Heading', 'shopline'),
2044
+ 'section' => 'woo_cate_slider_setting',
2045
+ 'settings' => 'woo_cate_slider_subheading',
2046
+ 'type' => 'textarea',
2047
+ ));
2048
+ $wp_customize->add_setting('woo_cate_slider_list', array(
2049
+ 'default' => array(0),
2050
+ 'capability' => 'edit_theme_options',
2051
+ 'sanitize_callback' => 'themehunk_checkbox_explode',
2052
+ ));
2053
+ $wp_customize->add_control(new themehunk_Customize_Control_Checkbox_Multiple(
2054
+ $wp_customize,'woo_cate_slider_list', array(
2055
+ 'settings' => 'woo_cate_slider_list',
2056
+ 'label' => __('Product Category','shopline'),
2057
+ 'description' => __('Choose categories which you want to display. By default all categories will display. ','shopline'),
2058
+ 'section' => 'woo_cate_slider_setting',
2059
+ 'choices' => shopline_get_category_list(array('taxonomy' =>'product_cat'),false),
2060
+ )));
2061
+ // autoplay on/off
2062
+ $wp_customize->add_setting('cat_play', array(
2063
+ 'default' =>'on',
2064
+ 'capability' => 'edit_theme_options',
2065
+ 'sanitize_callback' => 'sanitize_text_field'
2066
+ ));
2067
+ $wp_customize->add_control('cat_play', array(
2068
+ 'settings' => 'cat_play',
2069
+ 'label' => __('Slider Autoplay','shopline'),
2070
+ 'section' => 'woo_cate_slider_setting',
2071
+ 'type' => 'radio',
2072
+ 'choices' => array(
2073
+ 'on' => 'On',
2074
+ 'off' => 'Off',
2075
+ ),
2076
+ ));
2077
+ $wp_customize->add_setting('woo_cate_slider_speed_desc', array(
2078
+ 'sanitize_callback' => 'themehunk_sanitize_text',
2079
+ ));
2080
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'woo_cate_slider_speed_desc',
2081
+ array(
2082
+ 'section' => 'woo_cate_slider_setting',
2083
+ 'type' => 'custom_message',
2084
+ 'description' => wp_kses_post( '(Increase or decrease the value in multiple of thousand to change slide speed. For example 3000 equals to 3 second. )','shopline' )
2085
+ )));
2086
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
2087
+ $wp_customize->add_setting(
2088
+ 'woo_cate_slider_speed', array(
2089
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2090
+ 'default' => 3000,
2091
+
2092
+ )
2093
+ );
2094
+ $wp_customize->add_control(
2095
+ new Themehunk_Customizer_Range_Value_Control(
2096
+ $wp_customize, 'woo_cate_slider_speed', array(
2097
+ 'label' => esc_html__( 'Slider Speed', 'shopline' ),
2098
+ 'description'=> __('(Increase or decrease the value in multiple of thousand to change slide speed. For example 3000 equals to 3 second. )', 'shopline'),
2099
+ 'section' => 'woo_cate_slider_setting',
2100
+ 'type' => 'range-value',
2101
+ 'input_attr' => array(
2102
+ 'min' => 100,
2103
+ 'max' => 5000,
2104
+ 'step' => 100,
2105
+ ),
2106
+ )
2107
+ )
2108
+ );
2109
+ }
2110
+
2111
+
2112
+ //= Choose Post Meta =
2113
+ $wp_customize->add_setting('woo_cate_image_bg', array(
2114
+ 'default' =>'color',
2115
+ 'capability' => 'edit_theme_options',
2116
+ 'sanitize_callback' => 'sanitize_text_field'
2117
+ ));
2118
+
2119
+ $wp_customize->add_control( 'woo_cate_image_bg', array(
2120
+ 'settings' => 'woo_cate_image_bg',
2121
+ 'label' => __('Choose Background','shopline'),
2122
+ 'section' => 'woo_cate_slider_setting',
2123
+ 'type' => 'radio',
2124
+ 'choices' => array(
2125
+ 'color' => 'Color',
2126
+ 'svg' => 'Color With SVG',
2127
+ 'image' => 'Image',
2128
+ ),
2129
+ ));
2130
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
2131
+ $wp_customize->add_setting(
2132
+ 'woo_cat_svg_style', array(
2133
+ 'default' => 'svg-one',
2134
+ 'sanitize_callback' => 'sanitize_text_field',
2135
+ )
2136
+ );
2137
+ $wp_customize->add_control(
2138
+ new Themehunk_Customize_Control_Radio_Image(
2139
+ $wp_customize, 'woo_cat_svg_style', array(
2140
+ 'label' => esc_html__( 'Choose SVG Style', 'shopline' ),
2141
+ 'section' => 'woo_cate_slider_setting',
2142
+ 'choices' => array(
2143
+ 'svg-one' => array(
2144
+ 'url' => SHOPLINE_SVG_IMG1,
2145
+ ),
2146
+ 'svg-two' => array(
2147
+ 'url' => SHOPLINE_SVG_IMG2,
2148
+ ),
2149
+
2150
+ ),
2151
+ )
2152
+ )
2153
+ );
2154
+ }
2155
+ $wp_customize->add_setting('woo_cate_slider_bg_image', array(
2156
+ 'capability' => 'edit_theme_options',
2157
+ 'sanitize_callback' => 'sanitize_text_field'
2158
+ ));
2159
+ $wp_customize->add_control( new WP_Customize_Image_Control(
2160
+ $wp_customize, 'woo_cate_slider_bg_image', array(
2161
+ 'label' => __('Upload Background Image', 'shopline'),
2162
+ 'section' => 'woo_cate_slider_setting',
2163
+ 'settings' => 'woo_cate_slider_bg_image',
2164
+ )));
2165
+
2166
+ // overlay-color
2167
+ $wp_customize->add_setting(
2168
+ 'woo_cate_slider_overly',
2169
+ array(
2170
+ 'default' => '#fff',
2171
+ 'type' => 'theme_mod',
2172
+ 'capability' => 'edit_theme_options',
2173
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
2174
+ )
2175
+ );
2176
+ $wp_customize->add_control(
2177
+ new Customize_themehunk_Color_Control(
2178
+ $wp_customize,
2179
+ 'woo_cate_slider_overly',
2180
+ array(
2181
+ 'label' => __( 'Background Color ', 'shopline' ),
2182
+ 'description'=> __( '(Set background color for section or set color with transparency for section overlay)', 'shopline' ),
2183
+ 'section' => 'woo_cate_slider_setting',
2184
+ 'settings' => 'woo_cate_slider_overly',
2185
+ 'show_opacity' => true, // Optional.
2186
+ 'palette' => $palette
2187
+ )));
2188
+
2189
+ $wp_customize->add_setting('woo_cate_heading_color', array(
2190
+ 'default' => '#080808',
2191
+ 'sanitize_callback' => 'sanitize_hex_color'
2192
+ ));
2193
+ $wp_customize->add_control(
2194
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_heading_color', array(
2195
+ 'label' => __('Heading Color','shopline' ),
2196
+ 'section' => 'woo_cate_slider_setting',
2197
+ 'settings' => 'woo_cate_heading_color',
2198
+ ) ) );
2199
+ $wp_customize->add_setting('woo_cate_subheading_color', array(
2200
+ 'default' => '#666666',
2201
+ 'sanitize_callback' => 'sanitize_hex_color'
2202
+ ));
2203
+ $wp_customize->add_control(
2204
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_subheading_color', array(
2205
+ 'label' => __('Sub Heading Color','shopline' ),
2206
+ 'section' => 'woo_cate_slider_setting',
2207
+ 'settings' => 'woo_cate_subheading_color',
2208
+ ) ) );
2209
+ $wp_customize->add_setting('woo_cate_line_color', array(
2210
+ 'default' => '#e7c09c',
2211
+ 'sanitize_callback' => 'sanitize_hex_color'
2212
+ ));
2213
+ $wp_customize->add_control(
2214
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_line_color', array(
2215
+ 'label' => __('Title Underline Color','shopline' ),
2216
+ 'section' => 'woo_cate_slider_setting',
2217
+ 'settings' => 'woo_cate_line_color',
2218
+ ) ) );
2219
+ // top-bottom padding ribbon
2220
+ $wp_customize->add_setting('woocat_section_padding', array(
2221
+ 'sanitize_callback' => 'themehunk_sanitize_text',
2222
+ ));
2223
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'woocat_section_padding',
2224
+ array(
2225
+ 'section' => 'woo_cate_slider_setting',
2226
+ 'type' => 'custom_message',
2227
+ 'description' => wp_kses_post('Section Padding','shopline' )
2228
+ )));
2229
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
2230
+ $wp_customize->add_setting(
2231
+ 'woocat_top_padding', array(
2232
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2233
+ 'default' => 65,
2234
+
2235
+ )
2236
+ );
2237
+
2238
+ $wp_customize->add_control(
2239
+ new Themehunk_Customizer_Range_Value_Control(
2240
+ $wp_customize, 'woocat_top_padding', array(
2241
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
2242
+ 'section' => 'woo_cate_slider_setting',
2243
+ 'type' => 'range-value',
2244
+ 'input_attr' => array(
2245
+ 'min' => 10,
2246
+ 'max' => 200,
2247
+ 'step' => 5,
2248
+ )
2249
+ )
2250
+ )
2251
+ );
2252
+ $wp_customize->add_setting(
2253
+ 'woocat_bottom_padding', array(
2254
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2255
+ 'default' => 65,
2256
+
2257
+ )
2258
+ );
2259
+
2260
+ $wp_customize->add_control(
2261
+ new Themehunk_Customizer_Range_Value_Control(
2262
+ $wp_customize, 'woocat_bottom_padding', array(
2263
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
2264
+ 'section' => 'woo_cate_slider_setting',
2265
+ 'type' => 'range-value',
2266
+ 'input_attr' => array(
2267
+ 'min' => 10,
2268
+ 'max' => 200,
2269
+ 'step' => 5,
2270
+ )
2271
+ )
2272
+ )
2273
+ );
2274
+ }
2275
+ // end woo_cat section
2276
+ /****************************************************************/
2277
+ /************ RIBBON SECTION ************/
2278
+ /****************************************************************/
2279
+ $wp_customize->add_section('ribbon_panel', array(
2280
+ 'title' => __('Ribbon', 'shopline'),
2281
+ 'priority' => 2,
2282
+ 'panel' =>'front_page_section'
2283
+ ));
2284
+ $wp_customize->add_setting(
2285
+ 'ribbon_tabs', array(
2286
+ 'sanitize_callback' => 'sanitize_text_field',
2287
+ )
2288
+ );
2289
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
2290
+ $wp_customize->add_control(
2291
+ new Themehunk_Customize_Control_Tabs(
2292
+ $wp_customize, 'ribbon_tabs', array(
2293
+ 'section' => 'ribbon_panel',
2294
+ 'tabs' => array(
2295
+ 'general' => array(
2296
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
2297
+ 'controls' => array(
2298
+ 'ribbon_section_hide',
2299
+ 'ribbon_heading_hide',
2300
+ 'ribbon_subheading_hide',
2301
+ 'ribbon_heading',
2302
+ 'ribbon_subheading',
2303
+
2304
+ ),
2305
+ ),
2306
+ 'appearance' => array(
2307
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
2308
+ 'controls' => array(
2309
+ 'ribbon_bg_options',
2310
+ 'ribbon_svg_style',
2311
+ 'ribbon_bg_image',
2312
+ 'ribbon_bg_video',
2313
+ 'ribbon_video_bg_image',
2314
+ 'video_muted',
2315
+ 'ribbn_img_overly_color',
2316
+ 'ribbon_heading_color',
2317
+ 'ribbon_subheading_color',
2318
+ 'ribbon_line_color',
2319
+ 'ribbon_section_padding',
2320
+ 'ribbon_top_padding',
2321
+ 'ribbon_bottom_padding',
2322
+ ),
2323
+ ),
2324
+ ),
2325
+ )
2326
+ )
2327
+ );
2328
+ }
2329
+ $wp_customize->add_setting( 'ribbon_section_hide',
2330
+ array(
2331
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
2332
+ 'default' => '',
2333
+ )
2334
+ );
2335
+ $wp_customize->add_control( 'ribbon_section_hide',
2336
+ array(
2337
+ 'type' => 'checkbox',
2338
+ 'label' => esc_html__('Disable section', 'shopline'),
2339
+ 'section' => 'ribbon_panel',
2340
+ )
2341
+ );
2342
+ $wp_customize->add_setting( 'ribbon_heading_hide',
2343
+ array(
2344
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
2345
+ 'default' => '',
2346
+ )
2347
+ );
2348
+ $wp_customize->add_control( 'ribbon_heading_hide',
2349
+ array(
2350
+ 'type' => 'checkbox',
2351
+ 'label' => esc_html__('Disable Heading', 'shopline'),
2352
+ 'section' => 'ribbon_panel',
2353
+ )
2354
+ );
2355
+
2356
+ $wp_customize->add_setting( 'ribbon_subheading_hide',
2357
+ array(
2358
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
2359
+ 'default' => '',
2360
+ )
2361
+ );
2362
+ $wp_customize->add_control( 'ribbon_subheading_hide',
2363
+ array(
2364
+ 'type' => 'checkbox',
2365
+ 'label' => esc_html__('Disable Sub Heading', 'shopline'),
2366
+ 'section' => 'ribbon_panel',
2367
+ )
2368
+ );
2369
+ $wp_customize->add_setting('ribbon_heading', array(
2370
+ 'default' => '',
2371
+ 'sanitize_callback' => 'sanitize_text_field'
2372
+ ));
2373
+ $wp_customize->add_control('ribbon_heading', array(
2374
+ 'label' => __('Heading', 'shopline'),
2375
+ 'section' => 'ribbon_panel',
2376
+ 'settings' => 'ribbon_heading',
2377
+ 'type' => 'text',
2378
+ ));
2379
+ $wp_customize->add_setting('ribbon_subheading', array(
2380
+ 'default' => '',
2381
+ 'capability' => 'edit_theme_options',
2382
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea',
2383
+ ));
2384
+ $wp_customize->add_control('ribbon_subheading', array(
2385
+ 'label' => __('Sub Heading', 'shopline'),
2386
+ 'section' => 'ribbon_panel',
2387
+ 'settings' => 'ribbon_subheading',
2388
+ 'type' => 'textarea',
2389
+ ));
2390
+
2391
+ // Color
2392
+ //background option
2393
+ $wp_customize->add_setting('ribbon_bg_options', array(
2394
+ 'default' =>'color',
2395
+ 'capability' => 'edit_theme_options',
2396
+ 'sanitize_callback' => 'sanitize_text_field'
2397
+ ));
2398
+
2399
+ $wp_customize->add_control('ribbon_bg_options', array(
2400
+ 'settings' => 'ribbon_bg_options',
2401
+ 'label' => __('Choose Background','shopline'),
2402
+ 'section' => 'ribbon_panel',
2403
+ 'type' => 'radio',
2404
+ 'choices' => array(
2405
+ 'color' => 'Color',
2406
+ 'svg' => 'Color With SVG',
2407
+ 'image' => 'Image',
2408
+ 'video' => 'Video'
2409
+ ),
2410
+ ));
2411
+
2412
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ){
2413
+ $wp_customize->add_setting(
2414
+ 'ribbon_svg_style', array(
2415
+ 'default' => 'svg-one',
2416
+ 'sanitize_callback' => 'sanitize_text_field',
2417
+ )
2418
+ );
2419
+ $wp_customize->add_control(
2420
+ new Themehunk_Customize_Control_Radio_Image(
2421
+ $wp_customize, 'ribbon_svg_style', array(
2422
+ 'label' => esc_html__( 'Choose SVG Style', 'shopline' ),
2423
+ 'section' => 'ribbon_panel',
2424
+ 'choices' => array(
2425
+ 'svg-one' => array(
2426
+ 'url' => SHOPLINE_SVG_IMG1,
2427
+ ),
2428
+ 'svg-two' => array(
2429
+ 'url' => SHOPLINE_SVG_IMG2,
2430
+ ),
2431
+
2432
+ ),
2433
+ )
2434
+ )
2435
+ );
2436
+ }
2437
+ $wp_customize->add_setting('ribbon_bg_image', array(
2438
+ 'default' => '',
2439
+ 'sanitize_callback' => 'sanitize_text_field'
2440
+ ));
2441
+ $wp_customize->add_control( new WP_Customize_Image_Control(
2442
+ $wp_customize, 'ribbon_bg_image', array(
2443
+ 'label' => __('Upload Background Image', 'shopline'),
2444
+ 'section' => 'ribbon_panel',
2445
+ 'settings' => 'ribbon_bg_image',
2446
+ )));
2447
+ $wp_customize->add_setting('ribbon_bg_video', array(
2448
+ 'default' => '',
2449
+ 'sanitize_callback' => 'sanitize_text_field'
2450
+ ));
2451
+ $wp_customize->add_control( new WP_Customize_Upload_Control(
2452
+ $wp_customize, 'ribbon_bg_video', array(
2453
+ 'label' => __('Upload Background Video', 'shopline'),
2454
+ 'section' => 'ribbon_panel',
2455
+ 'settings' => 'ribbon_bg_video',
2456
+ )));
2457
+ $wp_customize->add_setting('ribbon_video_bg_image', array(
2458
+ 'default' => '',
2459
+ 'sanitize_callback' => 'sanitize_text_field'
2460
+ ));
2461
+ $wp_customize->add_control( new WP_Customize_Image_Control(
2462
+ $wp_customize, 'ribbon_video_bg_image', array(
2463
+ 'label' => __('Upload Background Image', 'shopline'),
2464
+ 'description' => __('Display Mobile view BG Image','shopline'),
2465
+ 'section' => 'ribbon_panel',
2466
+ 'settings' => 'ribbon_video_bg_image',
2467
+ )));
2468
+ // muted
2469
+ $wp_customize->add_setting('video_muted', array(
2470
+ 'default' => '',
2471
+ 'capability' => 'edit_theme_options',
2472
+ 'sanitize_callback' => 'sanitize_text_field'
2473
+ ));
2474
+ $wp_customize->add_control( 'video_muted', array(
2475
+ 'settings' => 'video_muted',
2476
+ 'label' => __('Mute Audio','shopline'),
2477
+ 'section' => 'ribbon_panel',
2478
+ 'type' => 'checkbox',
2479
+ 'choices' => array(
2480
+ 'muted' => 'Video Mute Audio',
2481
+ ),
2482
+ ));
2483
+ // overlay-color
2484
+ $wp_customize->add_setting(
2485
+ 'ribbn_img_overly_color',
2486
+ array(
2487
+ 'default' => '#7D7D7D',
2488
+ 'type' => 'theme_mod',
2489
+ 'capability' => 'edit_theme_options',
2490
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
2491
+ )
2492
+ );
2493
+ $wp_customize->add_control(
2494
+ new Customize_themehunk_Color_Control(
2495
+ $wp_customize,
2496
+ 'ribbn_img_overly_color',
2497
+ array(
2498
+ 'label' => __( 'Background Color', 'shopline' ),
2499
+ 'description'=> __( '(Set background color for section or set color with transparency for section overlay)', 'shopline' ),
2500
+ 'section' => 'ribbon_panel',
2501
+ 'settings' => 'ribbn_img_overly_color',
2502
+ 'show_opacity' => true, // Optional.
2503
+ 'palette' => $palette
2504
+ )));
2505
+
2506
+ $wp_customize->add_setting('ribbon_heading_color', array(
2507
+ 'default' => '#fff',
2508
+ 'sanitize_callback' => 'sanitize_hex_color'
2509
+ ));
2510
+ $wp_customize->add_control(
2511
+ new WP_Customize_Color_Control($wp_customize,'ribbon_heading_color', array(
2512
+ 'label' => __('Heading Color', 'shopline' ),
2513
+ 'section' => 'ribbon_panel',
2514
+ 'settings' => 'ribbon_heading_color',
2515
+ ) ) );
2516
+ $wp_customize->add_setting('ribbon_subheading_color', array(
2517
+ 'default' => '#fff',
2518
+ 'sanitize_callback' => 'sanitize_hex_color'
2519
+ ));
2520
+ $wp_customize->add_control(
2521
+ new WP_Customize_Color_Control($wp_customize,'ribbon_subheading_color', array(
2522
+ 'label' => __('Sub Heading Color', 'shopline' ),
2523
+ 'section' => 'ribbon_panel',
2524
+ 'settings' => 'ribbon_subheading_color',
2525
+ ) ) );
2526
+ $wp_customize->add_setting('ribbon_line_color', array(
2527
+ 'default' => '#e7c09c',
2528
+ 'sanitize_callback' => 'sanitize_hex_color'
2529
+ ));
2530
+ $wp_customize->add_control(
2531
+ new WP_Customize_Color_Control($wp_customize,'ribbon_line_color', array(
2532
+ 'label' => __('Title Underline Color', 'shopline' ),
2533
+ 'section' => 'ribbon_panel',
2534
+ 'settings' => 'ribbon_line_color',
2535
+ ) ) );
2536
+
2537
+ // top-bottom padding ribbon
2538
+ $wp_customize->add_setting('ribbon_section_padding', array(
2539
+ 'sanitize_callback' => 'themehunk_sanitize_text',
2540
+ ));
2541
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'ribbon_section_padding',
2542
+ array(
2543
+ 'section' => 'ribbon_panel',
2544
+ 'type' => 'custom_message',
2545
+ 'description' => wp_kses_post('Section Padding','shopline' )
2546
+ )));
2547
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
2548
+ $wp_customize->add_setting(
2549
+ 'ribbon_top_padding', array(
2550
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2551
+ 'default' => 65,
2552
+
2553
+ )
2554
+ );
2555
+
2556
+ $wp_customize->add_control(
2557
+ new Themehunk_Customizer_Range_Value_Control(
2558
+ $wp_customize, 'ribbon_top_padding', array(
2559
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
2560
+ 'section' => 'ribbon_panel',
2561
+ 'type' => 'range-value',
2562
+ 'input_attr' => array(
2563
+ 'min' => 10,
2564
+ 'max' => 200,
2565
+ 'step' => 5,
2566
+ )
2567
+ )
2568
+ )
2569
+ );
2570
+ $wp_customize->add_setting(
2571
+ 'ribbon_bottom_padding', array(
2572
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2573
+ 'default' => 65,
2574
+
2575
+ )
2576
+ );
2577
+
2578
+ $wp_customize->add_control(
2579
+ new Themehunk_Customizer_Range_Value_Control(
2580
+ $wp_customize, 'ribbon_bottom_padding', array(
2581
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
2582
+ 'section' => 'ribbon_panel',
2583
+ 'type' => 'range-value',
2584
+ 'input_attr' => array(
2585
+ 'min' => 10,
2586
+ 'max' => 200,
2587
+ 'step' => 5,
2588
+ )
2589
+ )
2590
+ )
2591
+ );
2592
+ }
2593
+ // end ribbon
2594
+
2595
+ /****************************************************************/
2596
+ /************ WOO PRODUCT ************/
2597
+ /****************************************************************/
2598
+ $wp_customize->add_section('woo_cate_product_filter', array(
2599
+ 'title' => __('Product (WooCommerce)', 'shopline'),
2600
+ 'priority' => 3,
2601
+ 'panel' => 'front_page_section'
2602
+ ));
2603
+ $wp_customize->add_setting(
2604
+ 'woo_cate_product_tabs', array(
2605
+ 'sanitize_callback' => 'sanitize_text_field',
2606
+ )
2607
+ );
2608
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
2609
+ $wp_customize->add_control(
2610
+ new Themehunk_Customize_Control_Tabs(
2611
+ $wp_customize, 'woo_cate_product_tabs', array(
2612
+ 'section' => 'woo_cate_product_filter',
2613
+ 'tabs' => array(
2614
+ 'general' => array(
2615
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
2616
+ 'controls' => array(
2617
+ 'woo_cate_product_hide',
2618
+ 'woo_cate_product_heading',
2619
+ 'woo_cate_product_heading_hide',
2620
+ 'woo_cate_product_filter_type',
2621
+ 'woo_cate_product_layout',
2622
+ 'woo_cate_product_count',
2623
+ 'woo_cate_product_list',
2624
+ 'section_order',
2625
+
2626
+ ),
2627
+ ),
2628
+ 'appearance' => array(
2629
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
2630
+ 'controls' => array(
2631
+ 'woo_cate_product_options',
2632
+ 'woo_prd_svg_style',
2633
+ 'woo_cate_product_bg_image',
2634
+ 'woo_cate_product_overly',
2635
+ 'woo_cate_product_heading_color',
2636
+ 'woo_cate_product_line_color',
2637
+ 'ribbn_img_overly_color',
2638
+ 'ribbon_heading_color',
2639
+ 'ribbon_subheading_color',
2640
+ 'woo_cate_product_cate_text_hover_color',
2641
+ 'woo_cate_product_border_color',
2642
+ 'woo_cate_product_line_break_color',
2643
+ 'woo_cate_product_text_color',
2644
+ 'woo_cate_product_price_color',
2645
+ 'woo_cate_product_cart_btn_color',
2646
+ 'woo_cate_product_cart_text_color',
2647
+ 'woo_cate_product_sale_btn_color',
2648
+ 'woo_cate_product_sale_text_color',
2649
+ 'woo_cate_product_section_padding',
2650
+ 'woo_cate_product_top_padding',
2651
+ 'woo_cate_product_bottom_padding',
2652
+
2653
+ ),
2654
+ ),
2655
+ ),
2656
+ )
2657
+ )
2658
+ );
2659
+ }
2660
+ $wp_customize->add_setting( 'woo_cate_product_hide',
2661
+ array(
2662
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
2663
+ 'default' => '',
2664
+ )
2665
+ );
2666
+ $wp_customize->add_control( 'woo_cate_product_hide',
2667
+ array(
2668
+ 'type' => 'checkbox',
2669
+ 'label' => esc_html__('Disable section', 'shopline'),
2670
+ 'section' => 'woo_cate_product_filter',
2671
+ )
2672
+ );
2673
+
2674
+ $wp_customize->add_setting( 'woo_cate_product_heading_hide',
2675
+ array(
2676
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
2677
+ 'default' => '',
2678
+ )
2679
+ );
2680
+ $wp_customize->add_control( 'woo_cate_product_heading_hide',
2681
+ array(
2682
+ 'type' => 'checkbox',
2683
+ 'label' => esc_html__('Disable Heading', 'shopline'),
2684
+ 'section' => 'woo_cate_product_filter',
2685
+ )
2686
+ );
2687
+
2688
+
2689
+
2690
+ $wp_customize->add_setting('woo_cate_product_heading', array(
2691
+ 'default' => '',
2692
+ 'sanitize_callback' => 'sanitize_text_field'
2693
+ ));
2694
+ $wp_customize->add_control('woo_cate_product_heading', array(
2695
+ 'label' => __('Main Heading', 'shopline'),
2696
+ 'section' => 'woo_cate_product_filter',
2697
+ 'settings' => 'woo_cate_product_heading',
2698
+ 'type' => 'text',
2699
+ ));
2700
+ $wp_customize->add_setting('woo_cate_product_filter_type', array(
2701
+ 'default' =>'cate',
2702
+ 'capability' => 'edit_theme_options',
2703
+ 'sanitize_callback' => 'sanitize_text_field',
2704
+ ));
2705
+
2706
+ $wp_customize->add_control( 'woo_cate_product_filter_type', array(
2707
+ 'settings' => 'woo_cate_product_filter_type',
2708
+ 'label' => __('Product Type','shopline'),
2709
+ 'section' => 'woo_cate_product_filter',
2710
+ 'type' => 'radio',
2711
+ 'choices' => array(
2712
+ 'cate' => 'Category Product',
2713
+ 'recent' => 'Recent Product',
2714
+ ),
2715
+ ));
2716
+ $wp_customize->add_setting('woo_cate_product_layout', array(
2717
+ 'default' =>'grid',
2718
+ 'capability' => 'edit_theme_options',
2719
+ 'sanitize_callback' => 'sanitize_text_field'
2720
+ ));
2721
+
2722
+ $wp_customize->add_control( 'woo_cate_product_layout', array(
2723
+ 'settings' => 'woo_cate_product_layout',
2724
+ 'label' => __('Product Layout','shopline'),
2725
+ 'section' => 'woo_cate_product_filter',
2726
+ 'type' => 'radio',
2727
+ 'choices' => array(
2728
+ 'grid' => 'Grid Layout',
2729
+ ),
2730
+ ));
2731
+ $wp_customize->add_setting('woo_cate_product_count', array(
2732
+ 'default' => 8,
2733
+ 'capability' => 'edit_theme_options',
2734
+ 'sanitize_callback' => 'esc_attr',
2735
+ ));
2736
+ $wp_customize->add_control('woo_cate_product_count', array(
2737
+ 'settings' => 'woo_cate_product_count',
2738
+ 'label' => __('Number of Product','shopline'),
2739
+ 'section' => 'woo_cate_product_filter',
2740
+ 'type' => 'number',
2741
+ 'input_attrs' => array('min' => 1,'max' => 100) ));
2742
+ $wp_customize->add_setting('woo_cate_product_list', array(
2743
+ 'default' => array(0),
2744
+ 'capability' => 'edit_theme_options',
2745
+ 'sanitize_callback' => 'themehunk_checkbox_explode',
2746
+ ));
2747
+ $wp_customize->add_control(new themehunk_Customize_Control_Checkbox_Multiple(
2748
+ $wp_customize,'woo_cate_product_list', array(
2749
+ 'settings' => 'woo_cate_product_list',
2750
+ 'label' => __('Product Category','shopline'),
2751
+ 'description' => __('Choose Category Display Product. (By Default All Categories Product Will Display)','shopline'),
2752
+ 'section' => 'woo_cate_product_filter',
2753
+ 'choices' => shopline_get_category_list(array('taxonomy' =>'product_cat'),false),
2754
+ )));
2755
+ $wp_customize->add_setting('section_order', array(
2756
+ 'sanitize_callback' => 'themehunk_sanitize_text',
2757
+ ));
2758
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'section_order',
2759
+ array(
2760
+ 'section' => 'woo_cate_product_filter',
2761
+ 'type' => 'custom_message',
2762
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//themehunk.com/product/shopline-pro-multipurpose-shopping-theme/">ShoplinePro</a> for advance <strong>Product layout</strong>!','shopline' )
2763
+ )));
2764
+ //color
2765
+
2766
+ $wp_customize->add_setting('woo_cate_product_options', array(
2767
+ 'default' =>'color',
2768
+ 'capability' => 'edit_theme_options',
2769
+ 'sanitize_callback' => 'sanitize_text_field'
2770
+ ));
2771
+
2772
+ $wp_customize->add_control( 'woo_cate_product_options', array(
2773
+ 'settings' => 'woo_cate_product_options',
2774
+ 'label' => __('Choose Background','shopline'),
2775
+ 'section' => 'woo_cate_product_filter',
2776
+ 'type' => 'radio',
2777
+ 'choices' => array(
2778
+ 'color' => 'Color',
2779
+ 'svg' => 'Color With SVG',
2780
+ 'image' => 'Image',
2781
+ ),
2782
+ ));
2783
+
2784
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
2785
+ $wp_customize->add_setting(
2786
+ 'woo_prd_svg_style', array(
2787
+ 'default' => 'svg-one',
2788
+ 'sanitize_callback' => 'sanitize_text_field',
2789
+ )
2790
+ );
2791
+ $wp_customize->add_control(
2792
+ new Themehunk_Customize_Control_Radio_Image(
2793
+ $wp_customize, 'woo_prd_svg_style', array(
2794
+ 'label' => esc_html__( 'Choose SVG Style', 'shopline' ),
2795
+ 'section' => 'woo_cate_product_filter',
2796
+ 'choices' => array(
2797
+ 'svg-one' => array(
2798
+ 'url' => SHOPLINE_SVG_IMG1,
2799
+ ),
2800
+ 'svg-two' => array(
2801
+ 'url' => SHOPLINE_SVG_IMG2,
2802
+ ),
2803
+
2804
+ ),
2805
+ )
2806
+ )
2807
+ );
2808
+ }
2809
+ $wp_customize->add_setting('woo_cate_product_bg_image', array(
2810
+ 'default' => '',
2811
+ 'capability' => 'edit_theme_options',
2812
+ 'sanitize_callback' => 'sanitize_text_field'
2813
+ ));
2814
+ $wp_customize->add_control( new WP_Customize_Image_Control(
2815
+ $wp_customize, 'woo_cate_product_bg_image', array(
2816
+ 'label' => __('Upload Background Image', 'shopline'),
2817
+ 'section' => 'woo_cate_product_filter',
2818
+ 'settings' => 'woo_cate_product_bg_image',
2819
+ )));
2820
+
2821
+ // overlay-color
2822
+ $wp_customize->add_setting(
2823
+ 'woo_cate_product_overly',
2824
+ array(
2825
+ 'default' => '#fff',
2826
+ 'type' => 'theme_mod',
2827
+ 'capability' => 'edit_theme_options',
2828
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
2829
+ )
2830
+ );
2831
+ $wp_customize->add_control(
2832
+ new Customize_themehunk_Color_Control(
2833
+ $wp_customize,
2834
+ 'woo_cate_product_overly',
2835
+ array(
2836
+ 'label' => __( 'Background Color', 'shopline' ),
2837
+ 'description'=> __( '(Set background color for section or set color with transparency for section overlay)', 'shopline' ),
2838
+ 'section' => 'woo_cate_product_filter',
2839
+ 'settings' => 'woo_cate_product_overly',
2840
+ 'show_opacity' => true, // Optional.
2841
+ 'palette' => $palette
2842
+ )
2843
+ )
2844
+ );
2845
+
2846
+ $wp_customize->add_setting('woo_cate_product_heading_color', array(
2847
+ 'default' => '#080808',
2848
+ 'sanitize_callback' => 'sanitize_hex_color'
2849
+ ));
2850
+ $wp_customize->add_control(
2851
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_heading_color', array(
2852
+ 'label' => __('Heading Color', 'shopline' ),
2853
+ 'section' => 'woo_cate_product_filter',
2854
+ 'settings' => 'woo_cate_product_heading_color',
2855
+ ) ) );
2856
+ $wp_customize->add_setting('woo_cate_product_line_color', array(
2857
+ 'default' => '#e7c09c',
2858
+ 'sanitize_callback' => 'sanitize_hex_color'
2859
+ ));
2860
+ $wp_customize->add_control(
2861
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_line_color', array(
2862
+ 'label' => __('Title Underline Color', 'shopline' ),
2863
+ 'section' => 'woo_cate_product_filter',
2864
+ 'settings' => 'woo_cate_product_line_color',
2865
+ ) ) );
2866
+
2867
+
2868
+
2869
+ $wp_customize->add_setting('woo_cate_product_cate_text_hover_color', array(
2870
+ 'default' => '#7c7c80',
2871
+ 'sanitize_callback' => 'sanitize_hex_color'
2872
+ ));
2873
+ $wp_customize->add_control(
2874
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_cate_text_hover_color', array(
2875
+ 'label' => __('Category Text Color', 'shopline' ),
2876
+ 'section' => 'woo_cate_product_filter',
2877
+ 'settings' => 'woo_cate_product_cate_text_hover_color',
2878
+ ) ) );
2879
+ $wp_customize->add_setting('woo_cate_product_border_color', array(
2880
+ 'default' => '#e7c09c',
2881
+ 'sanitize_callback' => 'sanitize_hex_color'
2882
+ ));
2883
+ $wp_customize->add_control(
2884
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_border_color', array(
2885
+ 'label' => __('Category Border & hover Color', 'shopline' ),
2886
+ 'section' => 'woo_cate_product_filter',
2887
+ 'settings' => 'woo_cate_product_border_color',
2888
+ ) ) );
2889
+ $wp_customize->add_setting('woo_cate_product_line_break_color', array(
2890
+ 'sanitize_callback' => 'sanitize_text_field'
2891
+ ));
2892
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
2893
+ $wp_customize,'woo_cate_product_line_break_color',array(
2894
+ 'section' => 'woo_cate_product_filter',
2895
+ 'description' => __( 'Product Color Option', 'shopline' ),
2896
+ 'type' => 'content',
2897
+ 'input_attrs' => array('divider' => true),
2898
+ )));
2899
+
2900
+ $wp_customize->add_setting('woo_cate_product_text_color', array(
2901
+ 'default' => '#666666',
2902
+ 'sanitize_callback' => 'sanitize_hex_color'
2903
+ ));
2904
+ $wp_customize->add_control(
2905
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_text_color', array(
2906
+ 'label' => __('Title color', 'shopline' ),
2907
+ 'section' => 'woo_cate_product_filter',
2908
+ 'settings' => 'woo_cate_product_text_color',
2909
+ ) ) );
2910
+
2911
+ $wp_customize->add_setting('woo_cate_product_price_color', array(
2912
+ 'default' => '#1e1e23',
2913
+ 'sanitize_callback' => 'sanitize_hex_color'
2914
+ ));
2915
+ $wp_customize->add_control(
2916
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_price_color', array(
2917
+ 'label' => __('Pricing Text Color', 'shopline' ),
2918
+ 'section' => 'woo_cate_product_filter',
2919
+ 'settings' => 'woo_cate_product_price_color',
2920
+ ) ) );
2921
+
2922
+ $wp_customize->add_setting('woo_cate_product_cart_btn_color', array(
2923
+ 'default' => '#232531',
2924
+ 'sanitize_callback' => 'sanitize_hex_color'
2925
+ ));
2926
+ $wp_customize->add_control(
2927
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_cart_btn_color', array(
2928
+ 'label' => __('Icon Background Color', 'shopline' ),
2929
+ 'section' => 'woo_cate_product_filter',
2930
+ 'settings' => 'woo_cate_product_cart_btn_color',
2931
+ ) ) );
2932
+
2933
+ $wp_customize->add_setting('woo_cate_product_cart_text_color', array(
2934
+ 'default' => '#fff',
2935
+ 'sanitize_callback' => 'sanitize_hex_color'
2936
+ ));
2937
+ $wp_customize->add_control(
2938
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_cart_text_color', array(
2939
+ 'label' => __('Icon Color', 'shopline' ),
2940
+ 'section' => 'woo_cate_product_filter',
2941
+ 'settings' => 'woo_cate_product_cart_text_color',
2942
+ ) ) );
2943
+
2944
+ $wp_customize->add_setting('woo_cate_product_sale_btn_color', array(
2945
+ 'default' => '#232531',
2946
+ 'sanitize_callback' => 'sanitize_hex_color'
2947
+ ));
2948
+ $wp_customize->add_control(
2949
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_sale_btn_color', array(
2950
+ 'label' => __('Sale Tag background', 'shopline' ),
2951
+ 'section' => 'woo_cate_product_filter',
2952
+ 'settings' => 'woo_cate_product_sale_btn_color',
2953
+ ) ) );
2954
+
2955
+ $wp_customize->add_setting('woo_cate_product_sale_text_color', array(
2956
+ 'default' => '#fff',
2957
+ 'sanitize_callback' => 'sanitize_hex_color'
2958
+ ));
2959
+ $wp_customize->add_control(
2960
+ new WP_Customize_Color_Control($wp_customize,'woo_cate_product_sale_text_color', array(
2961
+ 'label' => __('Sale Tag Text Color', 'shopline' ),
2962
+ 'section' => 'woo_cate_product_filter',
2963
+ 'settings' => 'woo_cate_product_sale_text_color',
2964
+ ) ) );
2965
+ // top-bottom padding slide-product
2966
+ $wp_customize->add_setting('woo_cate_product_section_padding', array(
2967
+ 'sanitize_callback' => 'themehunk_sanitize_text',
2968
+ ));
2969
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'woo_cate_product_section_padding',
2970
+ array(
2971
+ 'section' => 'woo_cate_product_filter',
2972
+ 'type' => 'custom_message',
2973
+ 'description' => wp_kses_post('Section Padding','shopline' )
2974
+ )));
2975
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
2976
+ $wp_customize->add_setting(
2977
+ 'woo_cate_product_top_padding', array(
2978
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
2979
+ 'default' => 65,
2980
+
2981
+ )
2982
+ );
2983
+
2984
+ $wp_customize->add_control(
2985
+ new Themehunk_Customizer_Range_Value_Control(
2986
+ $wp_customize, 'woo_cate_product_top_padding', array(
2987
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
2988
+ 'section' => 'woo_cate_product_filter',
2989
+ 'type' => 'range-value',
2990
+ 'input_attr' => array(
2991
+ 'min' => 10,
2992
+ 'max' => 200,
2993
+ 'step' => 5,
2994
+ )
2995
+ )
2996
+ )
2997
+ );
2998
+ $wp_customize->add_setting(
2999
+ 'woo_cate_product_bottom_padding', array(
3000
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
3001
+ 'default' => 65,
3002
+
3003
+ )
3004
+ );
3005
+
3006
+ $wp_customize->add_control(
3007
+ new Themehunk_Customizer_Range_Value_Control(
3008
+ $wp_customize, 'woo_cate_product_bottom_padding', array(
3009
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
3010
+ 'section' => 'woo_cate_product_filter',
3011
+ 'type' => 'range-value',
3012
+ 'input_attr' => array(
3013
+ 'min' => 10,
3014
+ 'max' => 200,
3015
+ 'step' => 5,
3016
+ )
3017
+ )
3018
+ )
3019
+ );
3020
+ }
3021
+ /****************************************************************/
3022
+ /************ WOO SLIDER PRODUCT ************/
3023
+ /****************************************************************/
3024
+ $wp_customize->add_section('woo_slide_product', array(
3025
+ 'title' => __('Product Slider(WooCommerce)', 'shopline'),
3026
+ 'priority' => 3,
3027
+ 'panel' => 'front_page_section'
3028
+ ));
3029
+ $wp_customize->add_setting(
3030
+ 'woo_slide_product_tabs', array(
3031
+ 'sanitize_callback' => 'sanitize_text_field',
3032
+ )
3033
+ );
3034
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
3035
+ $wp_customize->add_control(
3036
+ new Themehunk_Customize_Control_Tabs(
3037
+ $wp_customize, 'woo_slide_product_tabs', array(
3038
+ 'section' => 'woo_slide_product',
3039
+ 'tabs' => array(
3040
+ 'general' => array(
3041
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
3042
+ 'controls' => array(
3043
+ 'woo_slide_product_hide',
3044
+ 'woo_slide_product_heading_hide',
3045
+ 'woo_slide_product_subheading_hide',
3046
+ '_woo_slide_heading',
3047
+ '_woo_slide_subheading',
3048
+ 'slide_woo_product',
3049
+ 'slide_woo_category',
3050
+ 'woo_slide_product_count',
3051
+ 'slide_product_play',
3052
+ 'product_slider_speed',
3053
+
3054
+ ),
3055
+ ),
3056
+ 'appearance' => array(
3057
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
3058
+ 'controls' => array(
3059
+ 'product_slider_options',
3060
+ 'woo_slide_svg_style',
3061
+ 'product_slider_bg_image',
3062
+ 'product_slider_img_overly_color',
3063
+ 'product_slider_heading_color',
3064
+ 'product_slider_sbheading_color',
3065
+ 'product_slider_line_color',
3066
+ 'woo_slide_product_line_break_color',
3067
+ 'woo_slide_product_text_color',
3068
+ 'woo_slide_product_price_color',
3069
+ 'woo_slide_product_cart_btn_color',
3070
+ 'woo_slide_product_cart_text_color',
3071
+ 'woo_slide_product_sale_btn_color',
3072
+ 'woo_slide_product_sale_text_color',
3073
+ 'woo_slide_section_padding',
3074
+ 'woo_slide_top_padding',
3075
+ 'woo_slide_bottom_padding',
3076
+ ),
3077
+ ),
3078
+ ),
3079
+ )
3080
+ )
3081
+ );
3082
+ }
3083
+ $wp_customize->add_setting( 'woo_slide_product_hide',
3084
+ array(
3085
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
3086
+ 'default' => '',
3087
+ )
3088
+ );
3089
+ $wp_customize->add_control( 'woo_slide_product_hide',
3090
+ array(
3091
+ 'type' => 'checkbox',
3092
+ 'label' => esc_html__('Disable section', 'shopline'),
3093
+ 'section' => 'woo_slide_product',
3094
+ )
3095
+ );
3096
+
3097
+ $wp_customize->add_setting( 'woo_slide_product_heading_hide',
3098
+ array(
3099
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
3100
+ 'default' => '',
3101
+ )
3102
+ );
3103
+ $wp_customize->add_control( 'woo_slide_product_heading_hide',
3104
+ array(
3105
+ 'type' => 'checkbox',
3106
+ 'label' => esc_html__('Disable Heading', 'shopline'),
3107
+ 'section' => 'woo_slide_product',
3108
+ )
3109
+ );
3110
+
3111
+ $wp_customize->add_setting( 'woo_slide_product_subheading_hide',
3112
+ array(
3113
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
3114
+ 'default' => '',
3115
+ )
3116
+ );
3117
+ $wp_customize->add_control( 'woo_slide_product_subheading_hide',
3118
+ array(
3119
+ 'type' => 'checkbox',
3120
+ 'label' => esc_html__('Disable Sub Heading', 'shopline'),
3121
+ 'section' => 'woo_slide_product',
3122
+ )
3123
+ );
3124
+ $wp_customize->add_setting('_woo_slide_heading', array(
3125
+ 'default' => '',
3126
+ 'capability' => 'edit_theme_options',
3127
+ 'sanitize_callback' => 'sanitize_text_field'
3128
+ ));
3129
+ $wp_customize->add_control('_woo_slide_heading', array(
3130
+ 'label' => __('Heading', 'shopline'),
3131
+ 'section' => 'woo_slide_product',
3132
+ 'settings' => '_woo_slide_heading',
3133
+ 'type' => 'text',
3134
+ ));
3135
+ $wp_customize->add_setting('_woo_slide_subheading', array(
3136
+ 'default' => '',
3137
+ 'capability' => 'edit_theme_options',
3138
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
3139
+
3140
+ ));
3141
+ $wp_customize->add_control('_woo_slide_subheading', array(
3142
+ 'label' => __('Sub Heading', 'shopline'),
3143
+ 'section' => 'woo_slide_product',
3144
+ 'settings' => '_woo_slide_subheading',
3145
+ 'type' => 'textarea',
3146
+ ));
3147
+
3148
+ // Select featured/random/recent
3149
+ $wp_customize->add_setting( 'slide_woo_product',
3150
+ array(
3151
+ 'sanitize_callback' => 'sanitize_text_field',
3152
+ 'default' => 'featured',
3153
+ )
3154
+ );
3155
+ $wp_customize->add_control( 'slide_woo_product',
3156
+ array(
3157
+ 'type' => 'select',
3158
+ 'label' => esc_html__('Choose Product Type', 'shopline'),
3159
+ 'section' => 'woo_slide_product',
3160
+ 'choices' => array(
3161
+ 'recent' => esc_html__('Recent', 'shopline'),
3162
+ 'featured' => esc_html__('Featured', 'shopline'),
3163
+ 'random' => esc_html__('Random', 'shopline'),
3164
+ 'sale' => esc_html__('Sale', 'shopline'),
3165
+ )
3166
+ )
3167
+ );
3168
+ $wp_customize->add_setting('slide_woo_category', array(
3169
+ 'default' => 'all',
3170
+ 'sanitize_callback' => 'sanitize_text_field',
3171
+ ) );
3172
+ //control setting for select options
3173
+ $wp_customize->add_control( 'slide_woo_category', array(
3174
+ 'label' => __('Product Category','shopline'),
3175
+ 'description' => __('Choose Category to Display Product. (By Default All Categories Product Will Display)','shopline'),
3176
+ 'section' => 'woo_slide_product',
3177
+ 'type' => 'select',
3178
+ 'choices' => shopline_get_categories_select(),
3179
+ ) );
3180
+ $wp_customize->add_setting('woo_slide_product_count', array(
3181
+ 'default' => 8,
3182
+ 'capability' => 'edit_theme_options',
3183
+ 'sanitize_callback' => 'esc_attr',
3184
+ ));
3185
+ $wp_customize->add_control('woo_slide_product_count', array(
3186
+ 'settings' => 'woo_slide_product_count',
3187
+ 'label' => __('Number of Product','shopline'),
3188
+ 'section' => 'woo_slide_product',
3189
+ 'type' => 'number',
3190
+ 'input_attrs' => array('min' => 1,'max' => 100) ));
3191
+ //autoplay on/off
3192
+ $wp_customize->add_setting('slide_product_play', array(
3193
+ 'default' =>'on',
3194
+ 'capability' => 'edit_theme_options',
3195
+ 'sanitize_callback' => 'sanitize_text_field'
3196
+ ));
3197
+ $wp_customize->add_control('slide_product_play', array(
3198
+ 'settings' => 'slide_product_play',
3199
+ 'label' => __('Autoplay','shopline'),
3200
+ 'section' => 'woo_slide_product',
3201
+ 'type' => 'radio',
3202
+ 'choices' => array(
3203
+ 'on' => 'On',
3204
+ 'off' => 'Off',
3205
+ ),
3206
+ ));
3207
+ // slider-speed
3208
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
3209
+ $wp_customize->add_setting(
3210
+ 'product_slider_speed', array(
3211
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
3212
+ 'default' => 3000,
3213
+
3214
+ )
3215
+ );
3216
+ $wp_customize->add_control(
3217
+ new Themehunk_Customizer_Range_Value_Control(
3218
+ $wp_customize, 'product_slider_speed', array(
3219
+ 'label' => esc_html__( 'Slider Speed', 'shopline' ),
3220
+ 'description'=> __('(Increase or decrease the value in multiple of thousand to change slide speed. For example 3000 equals to 3 second. )', 'shopline'),
3221
+ 'section' => 'woo_slide_product',
3222
+ 'type' => 'range-value',
3223
+ 'input_attr' => array(
3224
+ 'min' => 100,
3225
+ 'max' => 5000,
3226
+ 'step' => 100,
3227
+ ),
3228
+ )
3229
+ )
3230
+ );
3231
+ }
3232
+
3233
+ $wp_customize->add_setting('product_slider_options', array(
3234
+ 'default' =>'color',
3235
+ 'capability' => 'edit_theme_options',
3236
+ 'sanitize_callback' => 'sanitize_text_field'
3237
+ ));
3238
+ $wp_customize->add_control( 'product_slider_options', array(
3239
+ 'settings' => 'product_slider_options',
3240
+ 'label' => __('Choose Background','shopline'),
3241
+ 'section' => 'woo_slide_product',
3242
+ 'type' => 'radio',
3243
+ 'choices' => array(
3244
+ 'color' => 'Color',
3245
+ 'svg' => 'Color With SVG',
3246
+ 'image' => 'Image',
3247
+ ),
3248
+ ));
3249
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ){
3250
+ $wp_customize->add_setting(
3251
+ 'woo_slide_svg_style', array(
3252
+ 'default' => 'svg-one',
3253
+ 'sanitize_callback' => 'sanitize_text_field',
3254
+ )
3255
+ );
3256
+ $wp_customize->add_control(
3257
+ new Themehunk_Customize_Control_Radio_Image(
3258
+ $wp_customize, 'woo_slide_svg_style', array(
3259
+ 'label' => esc_html__( 'Choose SVG Style', 'shopline' ),
3260
+ 'section' => 'woo_slide_product',
3261
+ 'choices' => array(
3262
+ 'svg-one' => array(
3263
+ 'url' => SHOPLINE_SVG_IMG1,
3264
+ ),
3265
+ 'svg-two' => array(
3266
+ 'url' => SHOPLINE_SVG_IMG2,
3267
+ ),
3268
+
3269
+ ),
3270
+ )
3271
+ )
3272
+ );
3273
+ }
3274
+ $wp_customize->add_setting('product_slider_bg_image', array(
3275
+ 'default' => '',
3276
+ 'capability' => 'edit_theme_options',
3277
+ 'sanitize_callback' => 'esc_url_raw'
3278
+ ));
3279
+ $wp_customize->add_control( new WP_Customize_Image_Control(
3280
+ $wp_customize, 'product_slider_bg_image', array(
3281
+ 'label' => __('Upload Background Image', 'shopline'),
3282
+ 'section' => 'woo_slide_product',
3283
+ 'settings' => 'product_slider_bg_image',
3284
+ )));
3285
+
3286
+ // overlay-color
3287
+ $wp_customize->add_setting(
3288
+ 'product_slider_img_overly_color',
3289
+ array(
3290
+ 'default' => '#fff',
3291
+ 'type' => 'theme_mod',
3292
+ 'capability' => 'edit_theme_options',
3293
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
3294
+ )
3295
+ );
3296
+ $wp_customize->add_control(
3297
+ new Customize_themehunk_Color_Control(
3298
+ $wp_customize,
3299
+ 'product_slider_img_overly_color',
3300
+ array(
3301
+ 'label' => __( 'Background Color', 'shopline' ),
3302
+ 'description'=> __( '(Set background color for section or set color with transparency for section overlay)', 'shopline' ),
3303
+ 'section' => 'woo_slide_product',
3304
+ 'settings' => 'product_slider_img_overly_color',
3305
+ 'show_opacity' => true, // Optional.
3306
+ 'palette' => $palette
3307
+ )));
3308
+
3309
+ $wp_customize->add_setting('product_slider_heading_color', array(
3310
+ 'default' => '#080808',
3311
+ 'sanitize_callback' => 'sanitize_hex_color'
3312
+ ));
3313
+ $wp_customize->add_control(
3314
+ new WP_Customize_Color_Control($wp_customize,'product_slider_heading_color', array(
3315
+ 'label' => __('Heading Color', 'shopline' ),
3316
+ 'section' => 'woo_slide_product',
3317
+ 'settings' => 'product_slider_heading_color',
3318
+ ) ) );
3319
+ $wp_customize->add_setting('product_slider_sbheading_color', array(
3320
+ 'default' => '#666666',
3321
+ 'sanitize_callback' => 'sanitize_hex_color'
3322
+ ));
3323
+ $wp_customize->add_control(
3324
+ new WP_Customize_Color_Control($wp_customize,'product_slider_sbheading_color', array(
3325
+ 'label' => __('Sub Heading Color', 'shopline' ),
3326
+ 'section' => 'woo_slide_product',
3327
+ 'settings' => 'product_slider_sbheading_color',
3328
+ ) ) );
3329
+ $wp_customize->add_setting('product_slider_line_color', array(
3330
+ 'default' => '#e7c09c',
3331
+ 'sanitize_callback' => 'sanitize_hex_color'
3332
+ ));
3333
+ $wp_customize->add_control(
3334
+ new WP_Customize_Color_Control($wp_customize,'product_slider_line_color', array(
3335
+ 'label' => __('Title Underline Color', 'shopline' ),
3336
+ 'section' => 'woo_slide_product',
3337
+ 'settings' => 'product_slider_line_color',
3338
+ ) ) );
3339
+
3340
+ // product-color
3341
+ $wp_customize->add_setting('woo_slide_product_line_break_color', array(
3342
+ 'sanitize_callback' => 'sanitize_text_field'
3343
+ ));
3344
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
3345
+ $wp_customize,'woo_slide_product_line_break_color',array(
3346
+ 'section' => 'woo_slide_product',
3347
+ 'description' => __( 'Product Color Option', 'shopline' ),
3348
+ 'type' => 'content',
3349
+ 'input_attrs' => array('divider' => true),
3350
+ )));
3351
+
3352
+ $wp_customize->add_setting('woo_slide_product_text_color', array(
3353
+ 'default' => '#666666',
3354
+ 'sanitize_callback' => 'sanitize_hex_color'
3355
+ ));
3356
+ $wp_customize->add_control(
3357
+ new WP_Customize_Color_Control($wp_customize,'woo_slide_product_text_color', array(
3358
+ 'label' => __('Text Color', 'shopline' ),
3359
+ 'section' => 'woo_slide_product',
3360
+ 'settings' => 'woo_slide_product_text_color',
3361
+ ) ) );
3362
+
3363
+
3364
+ $wp_customize->add_setting('woo_slide_product_price_color', array(
3365
+ 'default' => '#1e1e23',
3366
+ 'sanitize_callback' => 'sanitize_hex_color'
3367
+ ));
3368
+ $wp_customize->add_control(
3369
+ new WP_Customize_Color_Control($wp_customize,'woo_slide_product_price_color', array(
3370
+ 'label' => __('Pricing Text Color', 'shopline' ),
3371
+ 'section' => 'woo_slide_product',
3372
+ 'settings' => 'woo_slide_product_price_color',
3373
+ ) ) );
3374
+
3375
+ $wp_customize->add_setting('woo_slide_product_cart_btn_color', array(
3376
+ 'default' => '#232531',
3377
+ 'sanitize_callback' => 'sanitize_hex_color'
3378
+ ));
3379
+ $wp_customize->add_control(
3380
+ new WP_Customize_Color_Control($wp_customize,'woo_slide_product_cart_btn_color', array(
3381
+ 'label' => __('Icon Background Color', 'shopline' ),
3382
+ 'section' => 'woo_slide_product',
3383
+ 'settings' => 'woo_slide_product_cart_btn_color',
3384
+ ) ) );
3385
+
3386
+ $wp_customize->add_setting('woo_slide_product_cart_text_color', array(
3387
+ 'default' => '#fff',
3388
+ 'sanitize_callback' => 'sanitize_hex_color'
3389
+ ));
3390
+ $wp_customize->add_control(
3391
+ new WP_Customize_Color_Control($wp_customize,'woo_slide_product_cart_text_color', array(
3392
+ 'label' => __('Icon Color', 'shopline' ),
3393
+ 'section' => 'woo_slide_product',
3394
+ 'settings' => 'woo_slide_product_cart_text_color',
3395
+ ) ) );
3396
+
3397
+ $wp_customize->add_setting('woo_slide_product_sale_btn_color', array(
3398
+ 'default' => '#232531',
3399
+ 'sanitize_callback' => 'sanitize_hex_color'
3400
+ ));
3401
+ $wp_customize->add_control(
3402
+ new WP_Customize_Color_Control($wp_customize,'woo_slide_product_sale_btn_color', array(
3403
+ 'label' => __('Sale Tag Background', 'shopline' ),
3404
+ 'section' => 'woo_slide_product',
3405
+ 'settings' => 'woo_slide_product_sale_btn_color',
3406
+ ) ) );
3407
+
3408
+ $wp_customize->add_setting('woo_slide_product_sale_text_color', array(
3409
+ 'default' => '#fff',
3410
+ 'sanitize_callback' => 'sanitize_hex_color'
3411
+ ));
3412
+ $wp_customize->add_control(
3413
+ new WP_Customize_Color_Control($wp_customize,'woo_slide_product_sale_text_color', array(
3414
+ 'label' => __('Sale Tag Text Color', 'shopline' ),
3415
+ 'section' => 'woo_slide_product',
3416
+ 'settings' => 'woo_slide_product_sale_text_color',
3417
+ ) ) );
3418
+
3419
+
3420
+ // top-bottom padding slide-product
3421
+ $wp_customize->add_setting('woo_slide_section_padding', array(
3422
+ 'sanitize_callback' => 'themehunk_sanitize_text',
3423
+ ));
3424
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'woo_slide_section_padding',
3425
+ array(
3426
+ 'section' => 'woo_slide_product',
3427
+ 'type' => 'custom_message',
3428
+ 'description' => wp_kses_post('Section Padding','shopline' )
3429
+ )));
3430
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
3431
+ $wp_customize->add_setting(
3432
+ 'woo_slide_top_padding', array(
3433
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
3434
+ 'default' => 65,
3435
+
3436
+ )
3437
+ );
3438
+
3439
+ $wp_customize->add_control(
3440
+ new Themehunk_Customizer_Range_Value_Control(
3441
+ $wp_customize, 'woo_slide_top_padding', array(
3442
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
3443
+ 'section' => 'woo_slide_product',
3444
+ 'type' => 'range-value',
3445
+ 'input_attr' => array(
3446
+ 'min' => 10,
3447
+ 'max' => 200,
3448
+ 'step' => 5,
3449
+ )
3450
+ )
3451
+ )
3452
+ );
3453
+ $wp_customize->add_setting(
3454
+ 'woo_slide_bottom_padding', array(
3455
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
3456
+ 'default' => 65,
3457
+
3458
+ )
3459
+ );
3460
+
3461
+ $wp_customize->add_control(
3462
+ new Themehunk_Customizer_Range_Value_Control(
3463
+ $wp_customize, 'woo_slide_bottom_padding', array(
3464
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
3465
+ 'section' => 'woo_slide_product',
3466
+ 'type' => 'range-value',
3467
+ 'input_attr' => array(
3468
+ 'min' => 10,
3469
+ 'max' => 200,
3470
+ 'step' => 5,
3471
+ )
3472
+ )
3473
+ )
3474
+ );
3475
+ }
3476
+ /****************************************************************/
3477
+ /************ TESTIMONIAL ************/
3478
+ /****************************************************************/
3479
+ $wp_customize->add_section('testim_setting', array(
3480
+ 'title' => __('Testimonial', 'shopline'),
3481
+ 'priority' => 4,
3482
+ 'panel' => 'front_page_section'
3483
+ ));
3484
+ $wp_customize->add_setting(
3485
+ 'testim_tabs', array(
3486
+ 'sanitize_callback' => 'sanitize_text_field',
3487
+ )
3488
+ );
3489
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
3490
+ $wp_customize->add_control(
3491
+ new Themehunk_Customize_Control_Tabs(
3492
+ $wp_customize, 'testim_tabs', array(
3493
+ 'section' => 'testim_setting',
3494
+ 'tabs' => array(
3495
+ 'general' => array(
3496
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
3497
+ 'controls' => array(
3498
+ 'testimonial_hide',
3499
+ 'testimonial_heading_hide',
3500
+ 'testimonial_subheading_hide',
3501
+ 'our_testm_heading',
3502
+ 'our_testm_subheading',
3503
+ 'testm_play',
3504
+ 'testm_slider_speed',
3505
+ 'widgets',
3506
+
3507
+ ),
3508
+ ),
3509
+ 'appearance' => array(
3510
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
3511
+ 'controls' => array(
3512
+ 'testimonial_options',
3513
+ 'testim_svg_style',
3514
+ 'testimonial_bg_image',
3515
+ 'tst_img_overly_color',
3516
+ 'testimonial_heading_color',
3517
+ 'testimonial_subheading_color',
3518
+ 'testimonial_line_color',
3519
+ 'testimonial_section_padding',
3520
+ 'testimonial_top_padding',
3521
+ 'testimonial_bottom_padding',
3522
+
3523
+
3524
+ ),
3525
+ ),
3526
+ ),
3527
+ )
3528
+ )
3529
+ );
3530
+ }
3531
+
3532
+
3533
+ $wp_customize->add_setting( 'testimonial_hide',
3534
+ array(
3535
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
3536
+ 'default' => '',
3537
+ )
3538
+ );
3539
+ $wp_customize->add_control( 'testimonial_hide',
3540
+ array(
3541
+ 'type' => 'checkbox',
3542
+ 'label' => esc_html__('Disable section', 'shopline'),
3543
+ 'section' => 'testim_setting',
3544
+ )
3545
+ );
3546
+ $wp_customize->add_setting( 'testimonial_heading_hide',
3547
+ array(
3548
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
3549
+ 'default' => '',
3550
+ )
3551
+ );
3552
+ $wp_customize->add_control( 'testimonial_heading_hide',
3553
+ array(
3554
+ 'type' => 'checkbox',
3555
+ 'label' => esc_html__('Disable Heading', 'shopline'),
3556
+ 'section' => 'testim_setting',
3557
+ )
3558
+ );
3559
+ $wp_customize->add_setting( 'testimonial_subheading_hide',
3560
+ array(
3561
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
3562
+ 'default' => '',
3563
+ )
3564
+ );
3565
+ $wp_customize->add_control( 'testimonial_subheading_hide',
3566
+ array(
3567
+ 'type' => 'checkbox',
3568
+ 'label' => esc_html__('Disable Sub Heading', 'shopline'),
3569
+ 'section' => 'testim_setting',
3570
+ )
3571
+ );
3572
+ $wp_customize->add_setting('our_testm_heading', array(
3573
+ 'default' => '',
3574
+ 'capability' => 'edit_theme_options',
3575
+ 'sanitize_callback' => 'sanitize_text_field'
3576
+ ));
3577
+ $wp_customize->add_control('our_testm_heading', array(
3578
+ 'label' => __('Heading', 'shopline'),
3579
+ 'section' => 'testim_setting',
3580
+ 'settings' => 'our_testm_heading',
3581
+ 'type' => 'text',
3582
+ ));
3583
+ $wp_customize->add_setting('our_testm_subheading', array(
3584
+ 'default' => '',
3585
+ 'capability' => 'edit_theme_options',
3586
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
3587
+
3588
+ ));
3589
+ $wp_customize->add_control('our_testm_subheading', array(
3590
+ 'label' => __('Sub Heading', 'shopline'),
3591
+ 'section' => 'testim_setting',
3592
+ 'settings' => 'our_testm_subheading',
3593
+ 'type' => 'textarea',
3594
+ ));
3595
+
3596
+ // autoplay on/off
3597
+ $wp_customize->add_setting('testm_play', array(
3598
+ 'default' =>'on',
3599
+ 'capability' => 'edit_theme_options',
3600
+ 'sanitize_callback' => 'sanitize_text_field'
3601
+ ));
3602
+ $wp_customize->add_control('testm_play', array(
3603
+ 'settings' => 'testm_play',
3604
+ 'label' => __('Autoplay','shopline'),
3605
+ 'section' => 'testim_setting',
3606
+ 'type' => 'radio',
3607
+ 'choices' => array(
3608
+ 'on' => 'On',
3609
+ 'off' => 'Off',
3610
+ ),
3611
+ ));
3612
+
3613
+
3614
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
3615
+ $wp_customize->add_setting(
3616
+ 'testm_slider_speed', array(
3617
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
3618
+ 'default' => 3000,
3619
+
3620
+ )
3621
+ );
3622
+ $wp_customize->add_control(
3623
+ new Themehunk_Customizer_Range_Value_Control(
3624
+ $wp_customize, 'testm_slider_speed', array(
3625
+ 'label' => esc_html__( 'Slider Speed', 'shopline' ),
3626
+ 'description'=> __('(Increase or decrease the value in multiple of thousand to change slide speed. For example 3000 equals to 3 second. )', 'shopline'),
3627
+ 'section' => 'testim_setting',
3628
+ 'type' => 'range-value',
3629
+ 'input_attr' => array(
3630
+ 'min' => 100,
3631
+ 'max' => 5000,
3632
+ 'step' => 100,
3633
+ ),
3634
+ )
3635
+ )
3636
+ );
3637
+ }
3638
+ $wp_customize->add_setting('testimonial_options', array(
3639
+ 'default' =>'color',
3640
+ 'capability' => 'edit_theme_options',
3641
+ 'sanitize_callback' => 'sanitize_text_field'
3642
+ ));
3643
+ $wp_customize->add_control( 'testimonial_options', array(
3644
+ 'settings' => 'testimonial_options',
3645
+ 'label' => __('Choose Background','shopline'),
3646
+ 'section' => 'testim_setting',
3647
+ 'type' => 'radio',
3648
+ 'choices' => array(
3649
+ 'color' => 'Color',
3650
+ 'svg' => 'Color With SVG',
3651
+ 'image' => 'Image',
3652
+ ),
3653
+ ));
3654
+
3655
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
3656
+ $wp_customize->add_setting(
3657
+ 'testim_svg_style', array(
3658
+ 'default' => 'svg-one',
3659
+ 'sanitize_callback' => 'sanitize_text_field',
3660
+ )
3661
+ );
3662
+ $wp_customize->add_control(
3663
+ new Themehunk_Customize_Control_Radio_Image(
3664
+ $wp_customize, 'testim_svg_style', array(
3665
+ 'label' => esc_html__( 'Choose SVG Style', 'shopline' ),
3666
+ 'section' => 'testim_setting',
3667
+ 'choices' => array(
3668
+ 'svg-one' => array(
3669
+ 'url' => SHOPLINE_SVG_IMG1,
3670
+ ),
3671
+ 'svg-two' => array(
3672
+ 'url' => SHOPLINE_SVG_IMG2,
3673
+ ),
3674
+
3675
+ ),
3676
+ )
3677
+ )
3678
+ );
3679
+ }
3680
+ $wp_customize->add_setting('testimonial_bg_image', array(
3681
+ 'default' => '',
3682
+ 'capability' => 'edit_theme_options',
3683
+ 'sanitize_callback' => 'esc_url_raw'
3684
+ ));
3685
+ $wp_customize->add_control( new WP_Customize_Image_Control(
3686
+ $wp_customize, 'testimonial_bg_image', array(
3687
+ 'label' => __('Upload Background Image', 'shopline'),
3688
+ 'section' => 'testim_setting',
3689
+ 'settings' => 'testimonial_bg_image',
3690
+ )));
3691
+
3692
+ // overlay-color
3693
+ $wp_customize->add_setting(
3694
+ 'tst_img_overly_color',
3695
+ array(
3696
+ 'default' => '#e7e8e9',
3697
+ 'type' => 'theme_mod',
3698
+ 'capability' => 'edit_theme_options',
3699
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
3700
+ )
3701
+ );
3702
+ $wp_customize->add_control(
3703
+ new Customize_themehunk_Color_Control(
3704
+ $wp_customize,
3705
+ 'tst_img_overly_color',
3706
+ array(
3707
+ 'label' => __( 'Background Color', 'shopline' ),
3708
+ 'description'=> __( '(Set background color for section or set color with transparency for section overlay)', 'shopline' ),
3709
+ 'section' => 'testim_setting',
3710
+ 'settings' => 'tst_img_overly_color',
3711
+ 'show_opacity' => true, // Optional.
3712
+ 'palette' => $palette
3713
+ )));
3714
+
3715
+ $wp_customize->add_setting('testimonial_heading_color', array(
3716
+ 'default' => '#080808',
3717
+ 'sanitize_callback' => 'sanitize_hex_color'
3718
+ ));
3719
+ $wp_customize->add_control(
3720
+ new WP_Customize_Color_Control($wp_customize,'testimonial_heading_color', array(
3721
+ 'label' => __('Heading Color', 'shopline' ),
3722
+ 'section' => 'testim_setting',
3723
+ 'settings' => 'testimonial_heading_color',
3724
+ ) ) );
3725
+
3726
+ $wp_customize->add_setting('testimonial_subheading_color', array(
3727
+ 'default' => '#666666',
3728
+ 'sanitize_callback' => 'sanitize_hex_color'
3729
+ ));
3730
+ $wp_customize->add_control(
3731
+ new WP_Customize_Color_Control($wp_customize,'testimonial_subheading_color', array(
3732
+ 'label' => __('Sub Heading Color', 'shopline' ),
3733
+ 'section' => 'testim_setting',
3734
+ 'settings' => 'testimonial_subheading_color',
3735
+ ) ) );
3736
+
3737
+ $wp_customize->add_setting('testimonial_line_color', array(
3738
+ 'default' => '#e7c09c',
3739
+ 'sanitize_callback' => 'sanitize_hex_color'
3740
+ ));
3741
+ $wp_customize->add_control(
3742
+ new WP_Customize_Color_Control($wp_customize,'testimonial_line_color', array(
3743
+ 'label' => __('Title Underline Color', 'shopline' ),
3744
+ 'section' => 'testim_setting',
3745
+ 'settings' => 'testimonial_line_color',
3746
+ ) ) );
3747
+
3748
+ // top-bottom padding testimonial
3749
+ $wp_customize->add_setting('testimonial_section_padding', array(
3750
+ 'sanitize_callback' => 'themehunk_sanitize_text',
3751
+ ));
3752
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'testimonial_section_padding',
3753
+ array(
3754
+ 'section' => 'testim_setting',
3755
+ 'type' => 'custom_message',
3756
+ 'description' => wp_kses_post('Section Padding','shopline' )
3757
+ )));
3758
+
3759
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
3760
+ $wp_customize->add_setting(
3761
+ 'testimonial_top_padding', array(
3762
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
3763
+ 'default' => 65,
3764
+
3765
+ )
3766
+ );
3767
+
3768
+ $wp_customize->add_control(
3769
+ new Themehunk_Customizer_Range_Value_Control(
3770
+ $wp_customize, 'testimonial_top_padding', array(
3771
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
3772
+ 'section' => 'testim_setting',
3773
+ 'type' => 'range-value',
3774
+ 'input_attr' => array(
3775
+ 'min' => 10,
3776
+ 'max' => 200,
3777
+ 'step' => 5,
3778
+ )
3779
+ )
3780
+ )
3781
+ );
3782
+ $wp_customize->add_setting(
3783
+ 'testimonial_bottom_padding', array(
3784
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
3785
+ 'default' => 65,
3786
+
3787
+ )
3788
+ );
3789
+ $wp_customize->add_control(
3790
+ new Themehunk_Customizer_Range_Value_Control(
3791
+ $wp_customize, 'testimonial_bottom_padding', array(
3792
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
3793
+ 'section' => 'testim_setting',
3794
+ 'type' => 'range-value',
3795
+ 'input_attr' => array(
3796
+ 'min' => 10,
3797
+ 'max' => 200,
3798
+ 'step' => 5,
3799
+ )
3800
+ )
3801
+ )
3802
+ );
3803
+ }
3804
+
3805
+ $control_handle = $wp_customize->get_control( 'testim_tabs' );
3806
+ if ( ! empty( $control_handle ) ) {
3807
+ $control_handle->section = 'sidebar-widgets-testimonial-widget';
3808
+ $control_handle->priority = -100;
3809
+ }
3810
+
3811
+ $subscribe_widgets = $wp_customize->get_section( 'sidebar-widgets-testimonial-widget' );
3812
+ if ( ! empty( $subscribe_widgets ) ) {
3813
+ $subscribe_widgets->panel = 'front_page_section';
3814
+ $subscribe_widgets->priority = 0;
3815
+ $controls_to_move = array(
3816
+ 'testimonial_hide',
3817
+ 'testimonial_heading_hide',
3818
+ 'testimonial_subheading_hide',
3819
+ 'our_testm_heading',
3820
+ 'our_testm_subheading',
3821
+ 'testm_play',
3822
+ 'testm_slider_speed',
3823
+ 'testimonial_options',
3824
+ 'testim_svg_style',
3825
+ 'testimonial_bg_image',
3826
+ 'tst_img_overly_color',
3827
+ 'testimonial_heading_color',
3828
+ 'testimonial_subheading_color',
3829
+ 'testimonial_line_color',
3830
+ 'testimonial_section_padding',
3831
+ 'testimonial_top_padding',
3832
+ 'testimonial_bottom_padding',
3833
+
3834
+ );
3835
+ foreach ( $controls_to_move as $control_id ) {
3836
+ $control = $wp_customize->get_control( $control_id );
3837
+ if ( ! empty( $control ) ) {
3838
+ $control->section = 'sidebar-widgets-testimonial-widget';
3839
+ $control->priority = -1;
3840
+ }
3841
+ }
3842
+ }
3843
+
3844
+ /****************************************************************/
3845
+ /************ SERVICE SECTION ************/
3846
+ /****************************************************************/
3847
+ $wp_customize->add_section('service_setting', array(
3848
+ 'title' => __('Service', 'shopline'),
3849
+ 'priority' => 5,
3850
+ 'panel' => 'front_page_section',
3851
+ ));
3852
+ $wp_customize->add_setting(
3853
+ 'services_tabs', array(
3854
+ 'sanitize_callback' => 'sanitize_text_field',
3855
+ )
3856
+ );
3857
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
3858
+ $wp_customize->add_control(
3859
+ new Themehunk_Customize_Control_Tabs(
3860
+ $wp_customize, 'services_tabs', array(
3861
+ 'section' => 'service_setting',
3862
+ 'tabs' => array(
3863
+ 'general' => array(
3864
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
3865
+ 'controls' => array(
3866
+ 'service_hide','widgets',
3867
+
3868
+ ),
3869
+ ),
3870
+ 'appearance' => array(
3871
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
3872
+ 'controls' => array(
3873
+ 'service_bg_color',
3874
+ 'service_section_padding',
3875
+ 'service_top_padding',
3876
+ 'service_bottom_padding'
3877
+
3878
+ ),
3879
+ ),
3880
+ ),
3881
+ )
3882
+ )
3883
+ );
3884
+ }
3885
+
3886
+ $wp_customize->add_setting( 'service_hide',
3887
+ array(
3888
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
3889
+ 'default' => '',
3890
+ )
3891
+ );
3892
+ $wp_customize->add_control( 'service_hide',
3893
+ array(
3894
+ 'type' => 'checkbox',
3895
+ 'label' => esc_html__('Disable section', 'shopline'),
3896
+ 'section' => 'service_setting',
3897
+ )
3898
+ );
3899
+ $wp_customize->add_setting(
3900
+ 'service_bg_color',
3901
+ array(
3902
+ 'default' => '#fff',
3903
+ 'type' => 'theme_mod',
3904
+ 'capability' => 'edit_theme_options',
3905
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
3906
+ )
3907
+ );
3908
+ $wp_customize->add_control(
3909
+ new Customize_themehunk_Color_Control(
3910
+ $wp_customize,
3911
+ 'service_bg_color',
3912
+ array(
3913
+ 'label' => __( 'Background Color', 'shopline' ),
3914
+ 'section' => 'service_setting',
3915
+ 'settings' => 'service_bg_color',
3916
+ 'show_opacity' => true, // Optional.
3917
+ 'palette' => $palette
3918
+ )));
3919
+ // top-bottom padding service
3920
+ $wp_customize->add_setting('service_section_padding', array(
3921
+ 'sanitize_callback' => 'themehunk_sanitize_text',
3922
+ ));
3923
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'service_section_padding',
3924
+ array(
3925
+ 'section' => 'service_setting',
3926
+ 'type' => 'custom_message',
3927
+ 'description' => wp_kses_post('Section Padding','shopline' )
3928
+ )));
3929
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
3930
+ $wp_customize->add_setting(
3931
+ 'service_top_padding', array(
3932
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
3933
+ 'default' => 25,
3934
+
3935
+ )
3936
+ );
3937
+
3938
+ $wp_customize->add_control(
3939
+ new Themehunk_Customizer_Range_Value_Control(
3940
+ $wp_customize, 'service_top_padding', array(
3941
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
3942
+ 'section' => 'service_setting',
3943
+ 'type' => 'range-value',
3944
+ 'input_attr' => array(
3945
+ 'min' => 10,
3946
+ 'max' => 200,
3947
+ 'step' => 5,
3948
+ )
3949
+ )
3950
+ )
3951
+ );
3952
+ $wp_customize->add_setting(
3953
+ 'service_bottom_padding', array(
3954
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
3955
+ 'default' => 25,
3956
+
3957
+ )
3958
+ );
3959
+
3960
+ $wp_customize->add_control(
3961
+ new Themehunk_Customizer_Range_Value_Control(
3962
+ $wp_customize, 'service_bottom_padding', array(
3963
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
3964
+ 'section' => 'service_setting',
3965
+ 'type' => 'range-value',
3966
+ 'input_attr' => array(
3967
+ 'min' => 10,
3968
+ 'max' => 200,
3969
+ 'step' => 5,
3970
+ )
3971
+ )
3972
+ )
3973
+ );
3974
+ }
3975
+ $control_handle = $wp_customize->get_control( 'services_tabs' );
3976
+ if ( ! empty( $control_handle ) ) {
3977
+ $control_handle->section = 'sidebar-widgets-shopservice-widget';
3978
+ $control_handle->priority = -100;
3979
+ }
3980
+
3981
+ $subscribe_widgets = $wp_customize->get_section( 'sidebar-widgets-shopservice-widget' );
3982
+ if ( ! empty( $subscribe_widgets ) ) {
3983
+ $subscribe_widgets->panel = 'front_page_section';
3984
+ $subscribe_widgets->priority = 0;
3985
+ $controls_to_move = array(
3986
+ 'service_hide',
3987
+ 'service_bg_color',
3988
+ 'service_section_padding',
3989
+ 'service_top_padding',
3990
+ 'service_bottom_padding'
3991
+ );
3992
+ foreach ( $controls_to_move as $control_id ) {
3993
+ $control = $wp_customize->get_control( $control_id );
3994
+ if ( ! empty( $control ) ) {
3995
+ $control->section = 'sidebar-widgets-shopservice-widget';
3996
+ $control->priority = -1;
3997
+ }
3998
+ }
3999
+ }
4000
+ /****************************************************************/
4001
+ /************ ABOUT US SECTION ************/
4002
+ /****************************************************************/
4003
+ $wp_customize->add_section('aboutus_setting', array(
4004
+ 'title' => __('AboutUs', 'shopline'),
4005
+ 'priority' => 5,
4006
+ 'panel' => 'front_page_section'
4007
+ ));
4008
+ $wp_customize->add_setting(
4009
+ 'aboutus_tabs', array(
4010
+ 'sanitize_callback' => 'sanitize_text_field',
4011
+ )
4012
+ );
4013
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
4014
+ $wp_customize->add_control(
4015
+ new Themehunk_Customize_Control_Tabs(
4016
+ $wp_customize, 'aboutus_tabs', array(
4017
+ 'section' => 'aboutus_setting',
4018
+ 'tabs' => array(
4019
+ 'general' => array(
4020
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
4021
+ 'controls' => array(
4022
+ 'aboutus_hide',
4023
+ 'about_rgt_line_break_color',
4024
+ 'aboutus_image',
4025
+ 'about_line_break_color',
4026
+ 'aboutus_heading',
4027
+ 'aboutus_shortdesc',
4028
+ 'aboutus_longdesc',
4029
+ 'aboutus_btn_text',
4030
+ 'aboutus_btn_link',
4031
+
4032
+
4033
+ ),
4034
+ ),
4035
+ 'appearance' => array(
4036
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
4037
+ 'controls' => array(
4038
+ 'aboutus_options',
4039
+ 'about_svg_style',
4040
+ 'aboutus_bg_image',
4041
+ 'aboutus_overly',
4042
+ 'headingq_line_break_color',
4043
+ 'aboutus_heading_color',
4044
+ 'aboutus_shortdesc_color',
4045
+ 'aboutus_longdesc_color',
4046
+ 'button_line_break_color',
4047
+ 'aboutus_btn_color',
4048
+ 'aboutus_btn_text_color',
4049
+ 'aboutus_btn_shadow_color',
4050
+ 'about_section_padding',
4051
+ 'about_top_padding',
4052
+ 'about_bottom_padding'
4053
+
4054
+
4055
+ ),
4056
+ ),
4057
+ ),
4058
+ )
4059
+ )
4060
+ );
4061
+ }
4062
+ $wp_customize->add_setting( 'aboutus_hide',
4063
+ array(
4064
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
4065
+ 'default' => '',
4066
+ )
4067
+ );
4068
+ $wp_customize->add_control( 'aboutus_hide',
4069
+ array(
4070
+ 'type' => 'checkbox',
4071
+ 'label' => esc_html__('Disable section', 'shopline'),
4072
+ 'section' => 'aboutus_setting',
4073
+ )
4074
+ );
4075
+
4076
+
4077
+
4078
+ $wp_customize->add_setting('about_rgt_line_break_color', array(
4079
+ 'sanitize_callback' => 'sanitize_text_field'
4080
+ ));
4081
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
4082
+ $wp_customize,'about_rgt_line_break_color',array(
4083
+ 'section' => 'aboutus_setting',
4084
+ 'description' => __( 'Right Column', 'shopline' ),
4085
+ 'type' => 'content',
4086
+ 'input_attrs' => array('divider' => true),
4087
+ )));
4088
+
4089
+ $wp_customize->add_setting('aboutus_image', array(
4090
+ 'capability' => 'edit_theme_options',
4091
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
4092
+ ));
4093
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'aboutus_image', array(
4094
+ 'label' => __('Image Upload', 'shopline'),
4095
+ 'section' => 'aboutus_setting',
4096
+ 'settings' => 'aboutus_image',
4097
+ )));
4098
+
4099
+ $wp_customize->add_setting('about_line_break_color', array(
4100
+ 'sanitize_callback' => 'sanitize_text_field'
4101
+ ));
4102
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
4103
+ $wp_customize,'about_line_break_color',array(
4104
+ 'section' => 'aboutus_setting',
4105
+ 'description' => __( 'Left Column', 'shopline' ),
4106
+ 'type' => 'content',
4107
+ 'input_attrs' => array('divider' => true),
4108
+ )));
4109
+ $wp_customize->add_setting('aboutus_heading', array(
4110
+ 'default' => '',
4111
+ 'capability' => 'edit_theme_options',
4112
+ 'sanitize_callback' => 'sanitize_text_field'
4113
+ ));
4114
+ $wp_customize->add_control('aboutus_heading', array(
4115
+ 'label' => __('Main Heading', 'shopline'),
4116
+ 'section' => 'aboutus_setting',
4117
+ 'settings' => 'aboutus_heading',
4118
+ 'type' => 'text',
4119
+ ));
4120
+
4121
+ $wp_customize->add_setting('aboutus_shortdesc', array(
4122
+ 'default' => '',
4123
+ 'capability' => 'edit_theme_options',
4124
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
4125
+ ));
4126
+ $wp_customize->add_control('aboutus_shortdesc', array(
4127
+ 'label' => __('Short Description', 'shopline'),
4128
+ 'section' => 'aboutus_setting',
4129
+ 'settings' => 'aboutus_shortdesc',
4130
+ 'type' => 'textarea',
4131
+ ));
4132
+ $wp_customize->add_setting('aboutus_longdesc', array(
4133
+ 'default' => '',
4134
+ 'capability' => 'edit_theme_options',
4135
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
4136
+ ));
4137
+ $wp_customize->add_control('aboutus_longdesc', array(
4138
+ 'label' => __('Description', 'shopline'),
4139
+ 'section' => 'aboutus_setting',
4140
+ 'settings' => 'aboutus_longdesc',
4141
+ 'type' => 'textarea',
4142
+ ));
4143
+ $wp_customize->add_setting('aboutus_btn_text', array(
4144
+ 'default' => '',
4145
+ 'capability' => 'edit_theme_options',
4146
+ 'sanitize_callback' => 'sanitize_text_field',
4147
+ ));
4148
+ $wp_customize->add_control('aboutus_btn_text', array(
4149
+ 'label' => __('Button Text', 'shopline'),
4150
+ 'section' => 'aboutus_setting',
4151
+ 'settings' => 'aboutus_btn_text',
4152
+ 'type' => 'text',
4153
+ ));
4154
+
4155
+ $wp_customize->add_setting('aboutus_btn_link', array(
4156
+ 'default' => '#',
4157
+ 'sanitize_callback' => 'esc_url_raw',
4158
+ ));
4159
+ $wp_customize->add_control('aboutus_btn_link', array(
4160
+ 'label' => __('Button Link', 'shopline'),
4161
+ 'section' => 'aboutus_setting',
4162
+ 'settings' => 'aboutus_btn_link',
4163
+ 'type' => 'text',
4164
+ ));
4165
+
4166
+ //color
4167
+ $wp_customize->add_setting('aboutus_options', array(
4168
+ 'default' =>'color',
4169
+ 'capability' => 'edit_theme_options',
4170
+ 'sanitize_callback' => 'sanitize_text_field'
4171
+ ));
4172
+
4173
+ $wp_customize->add_control( 'aboutus_options', array(
4174
+ 'settings' => 'aboutus_options',
4175
+ 'label' => __('Choose Background','shopline'),
4176
+ 'section' => 'aboutus_setting',
4177
+ 'type' => 'radio',
4178
+ 'choices' => array(
4179
+ 'color' => 'Color',
4180
+ 'svg' => 'Color With SVG',
4181
+ 'image' => 'Image',
4182
+ ),
4183
+ ));
4184
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
4185
+ $wp_customize->add_setting(
4186
+ 'about_svg_style', array(
4187
+ 'default' => 'svg-one',
4188
+ 'sanitize_callback' => 'sanitize_text_field',
4189
+ )
4190
+ );
4191
+ $wp_customize->add_control(
4192
+ new Themehunk_Customize_Control_Radio_Image(
4193
+ $wp_customize, 'about_svg_style', array(
4194
+ 'label' => esc_html__( 'Choose SVG Style', 'shopline' ),
4195
+ 'section' => 'aboutus_setting',
4196
+ 'choices' => array(
4197
+ 'svg-one' => array(
4198
+ 'url' => SHOPLINE_SVG_IMG1,
4199
+ ),
4200
+ 'svg-two' => array(
4201
+ 'url' => SHOPLINE_SVG_IMG2,
4202
+ ),
4203
+
4204
+ ),
4205
+ )
4206
+ )
4207
+ );
4208
+ }
4209
+ $wp_customize->add_setting('aboutus_bg_image', array(
4210
+ 'capability' => 'edit_theme_options',
4211
+ 'sanitize_callback' => 'sanitize_text_field'
4212
+ ));
4213
+ $wp_customize->add_control( new WP_Customize_Image_Control(
4214
+ $wp_customize, 'aboutus_bg_image', array(
4215
+ 'label' => __('Upload Background Image', 'shopline'),
4216
+ 'section' => 'aboutus_setting',
4217
+ 'settings' => 'aboutus_bg_image',
4218
+ )));
4219
+
4220
+ // overlay-color
4221
+ $wp_customize->add_setting(
4222
+ 'aboutus_overly',
4223
+ array(
4224
+ 'default' => '#fff',
4225
+ 'type' => 'theme_mod',
4226
+ 'capability' => 'edit_theme_options',
4227
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
4228
+ )
4229
+ );
4230
+ $wp_customize->add_control(
4231
+ new Customize_themehunk_Color_Control(
4232
+ $wp_customize,
4233
+ 'aboutus_overly',
4234
+ array(
4235
+ 'label' => __( 'Background Color', 'shopline' ),
4236
+ 'description'=> __( '(Set background color for section or set color with transparency for section overlay)', 'shopline' ),
4237
+ 'section' => 'aboutus_setting',
4238
+ 'settings' => 'aboutus_overly',
4239
+ 'show_opacity' => true, // Optional.
4240
+ 'palette' => $palette
4241
+ )));
4242
+
4243
+ $wp_customize->add_setting('headingq_line_break_color', array(
4244
+ 'sanitize_callback' => 'sanitize_text_field'
4245
+ ));
4246
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
4247
+ $wp_customize,'headingq_line_break_color',array(
4248
+ 'section' => 'aboutus_setting',
4249
+ 'description' => __( 'Color', 'shopline' ),
4250
+ 'type' => 'content',
4251
+ 'input_attrs' => array('divider' => true),
4252
+ )));
4253
+ $wp_customize->add_setting('aboutus_heading_color', array(
4254
+ 'default' => '#080808',
4255
+ 'sanitize_callback' => 'sanitize_hex_color'
4256
+ ));
4257
+ $wp_customize->add_control(
4258
+ new WP_Customize_Color_Control($wp_customize,'aboutus_heading_color', array(
4259
+ 'label' => __('Heading Color', 'shopline' ),
4260
+ 'section' => 'aboutus_setting',
4261
+ 'settings' => 'aboutus_heading_color',
4262
+ ) ) );
4263
+
4264
+ $wp_customize->add_setting('aboutus_shortdesc_color', array(
4265
+ 'default' => '#666666',
4266
+ 'sanitize_callback' => 'sanitize_hex_color'
4267
+ ));
4268
+ $wp_customize->add_control(
4269
+ new WP_Customize_Color_Control($wp_customize,'aboutus_shortdesc_color', array(
4270
+ 'label' => __('Short Description Color', 'shopline' ),
4271
+ 'section' => 'aboutus_setting',
4272
+ 'settings' => 'aboutus_shortdesc_color',
4273
+ ) ) );
4274
+
4275
+ $wp_customize->add_setting('aboutus_longdesc_color', array(
4276
+ 'default' => '#666666',
4277
+ 'sanitize_callback' => 'sanitize_hex_color'
4278
+ ));
4279
+ $wp_customize->add_control(
4280
+ new WP_Customize_Color_Control($wp_customize,'aboutus_longdesc_color', array(
4281
+ 'label' => __('Long Description Color', 'shopline' ),
4282
+ 'section' => 'aboutus_setting',
4283
+ 'settings' => 'aboutus_longdesc_color',
4284
+ ) ) );
4285
+
4286
+ $wp_customize->add_setting('button_line_break_color', array(
4287
+ 'sanitize_callback' => 'sanitize_text_field'
4288
+ ));
4289
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
4290
+ $wp_customize,'button_line_break_color',array(
4291
+ 'section' => 'aboutus_setting',
4292
+ 'description' => __( 'Button Color', 'shopline' ),
4293
+ 'type' => 'content',
4294
+ 'input_attrs' => array('divider' => true),
4295
+ )));
4296
+
4297
+ $wp_customize->add_setting('aboutus_btn_color', array(
4298
+ 'default' => '#e7c09c',
4299
+ 'sanitize_callback' => 'sanitize_hex_color'
4300
+ ));
4301
+ $wp_customize->add_control(
4302
+ new WP_Customize_Color_Control($wp_customize,'aboutus_btn_color', array(
4303
+ 'label' => __('Button Border and Hover Color', 'shopline' ),
4304
+ 'section' => 'aboutus_setting',
4305
+ 'settings' => 'aboutus_btn_color',
4306
+ ) ) );
4307
+
4308
+ $wp_customize->add_setting('aboutus_btn_text_color', array(
4309
+ 'default' => '#e7c09c',
4310
+ 'sanitize_callback' => 'sanitize_hex_color'
4311
+ ));
4312
+ $wp_customize->add_control(
4313
+ new WP_Customize_Color_Control($wp_customize,'aboutus_btn_text_color', array(
4314
+ 'label' => __('Button Text Color', 'shopline' ),
4315
+ 'section' => 'aboutus_setting',
4316
+ 'settings' => 'aboutus_btn_text_color',
4317
+ ) ) );
4318
+ $wp_customize->add_setting('aboutus_btn_shadow_color', array(
4319
+ 'default' => '#fff',
4320
+ 'sanitize_callback' => 'sanitize_hex_color'
4321
+ ));
4322
+ $wp_customize->add_control(
4323
+ new WP_Customize_Color_Control($wp_customize,'aboutus_btn_shadow_color', array(
4324
+ 'label' => __('Button Text Hover Color', 'shopline' ),
4325
+ 'section' => 'aboutus_setting',
4326
+ 'settings' => 'aboutus_btn_shadow_color',
4327
+ ) ) );
4328
+ // top-bottom padding about setcion
4329
+ $wp_customize->add_setting('about_section_padding', array(
4330
+ 'sanitize_callback' => 'themehunk_sanitize_text',
4331
+ ));
4332
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'about_section_padding',
4333
+ array(
4334
+ 'section' => 'aboutus_setting',
4335
+ 'type' => 'custom_message',
4336
+ 'description' => wp_kses_post('Section Padding','shopline' )
4337
+ )));
4338
+
4339
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
4340
+ $wp_customize->add_setting(
4341
+ 'about_top_padding', array(
4342
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
4343
+ 'default' => 65,
4344
+
4345
+ )
4346
+ );
4347
+
4348
+ $wp_customize->add_control(
4349
+ new Themehunk_Customizer_Range_Value_Control(
4350
+ $wp_customize, 'about_top_padding', array(
4351
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
4352
+ 'section' => 'aboutus_setting',
4353
+ 'type' => 'range-value',
4354
+ 'input_attr' => array(
4355
+ 'min' => 10,
4356
+ 'max' => 200,
4357
+ 'step' => 5,
4358
+ )
4359
+ )
4360
+ )
4361
+ );
4362
+ $wp_customize->add_setting(
4363
+ 'about_bottom_padding', array(
4364
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
4365
+ 'default' => 65,
4366
+
4367
+ )
4368
+ );
4369
+ $wp_customize->add_control(
4370
+ new Themehunk_Customizer_Range_Value_Control(
4371
+ $wp_customize, 'about_bottom_padding', array(
4372
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
4373
+ 'section' => 'aboutus_setting',
4374
+ 'type' => 'range-value',
4375
+ 'input_attr' => array(
4376
+ 'min' => 10,
4377
+ 'max' => 200,
4378
+ 'step' => 5,
4379
+ )
4380
+ )
4381
+ )
4382
+ );
4383
+ }
4384
+
4385
+ /****************************************************************/
4386
+ /************ LATEST POST SECTION ************/
4387
+ /****************************************************************/
4388
+
4389
+ $wp_customize->add_section('blog_setting', array(
4390
+ 'title' => __('Latest Blog', 'shopline'),
4391
+ 'priority' => 6,
4392
+ 'panel' => 'front_page_section'
4393
+ ));
4394
+ $wp_customize->add_setting(
4395
+ 'blog_tabs', array(
4396
+ 'sanitize_callback' => 'sanitize_text_field',
4397
+ )
4398
+ );
4399
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
4400
+ $wp_customize->add_control(
4401
+ new Themehunk_Customize_Control_Tabs(
4402
+ $wp_customize, 'blog_tabs', array(
4403
+ 'section' => 'blog_setting',
4404
+ 'tabs' => array(
4405
+ 'general' => array(
4406
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
4407
+ 'controls' => array(
4408
+ 'blog_hide',
4409
+ 'blog_heading_hide',
4410
+ 'blog_subheading_hide',
4411
+ 'blog_heading',
4412
+ 'blog_subheading',
4413
+ 'slider_cate',
4414
+ 'slider_cate_count',
4415
+ 'read_more_txt',
4416
+ 'blog_play',
4417
+ 'blog_slider_speed',
4418
+
4419
+
4420
+ ),
4421
+ ),
4422
+ 'appearance' => array(
4423
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
4424
+ 'controls' => array(
4425
+ 'blog_options',
4426
+ 'blog_svg_style',
4427
+ 'blog_bg_image',
4428
+ 'blog_overly',
4429
+ 'blog_heading_color',
4430
+ 'blog_subheading_color',
4431
+ 'blog_line_color',
4432
+ 'blog_line_break_color',
4433
+ 'blog_datetxt_color',
4434
+ 'blog_text_heading_color',
4435
+ 'blog_text_desc_color',
4436
+ 'blog_section_padding',
4437
+ 'blog_top_padding',
4438
+ 'blog_bottom_padding',
4439
+ ),
4440
+ ),
4441
+ ),
4442
+ )
4443
+ )
4444
+ );
4445
+ }
4446
+ $wp_customize->add_setting( 'blog_hide',
4447
+ array(
4448
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
4449
+ 'default' => '',
4450
+ )
4451
+ );
4452
+ $wp_customize->add_control( 'blog_hide',
4453
+ array(
4454
+ 'type' => 'checkbox',
4455
+ 'label' => esc_html__('Disable section', 'shopline'),
4456
+ 'section' => 'blog_setting',
4457
+ )
4458
+ );
4459
+
4460
+ $wp_customize->add_setting( 'blog_heading_hide',
4461
+ array(
4462
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
4463
+ 'default' => '',
4464
+ )
4465
+ );
4466
+ $wp_customize->add_control( 'blog_heading_hide',
4467
+ array(
4468
+ 'type' => 'checkbox',
4469
+ 'label' => esc_html__('Disable Heading', 'shopline'),
4470
+ 'section' => 'blog_setting',
4471
+ )
4472
+ );
4473
+ $wp_customize->add_setting( 'blog_subheading_hide',
4474
+ array(
4475
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
4476
+ 'default' => '',
4477
+ )
4478
+ );
4479
+ $wp_customize->add_control( 'blog_subheading_hide',
4480
+ array(
4481
+ 'type' => 'checkbox',
4482
+ 'label' => esc_html__('Disable Sub Heading', 'shopline'),
4483
+ 'section' => 'blog_setting',
4484
+ )
4485
+ );
4486
+
4487
+
4488
+ $wp_customize->add_setting('blog_heading', array(
4489
+ 'default' => '',
4490
+ 'capability' => 'edit_theme_options',
4491
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
4492
+ ));
4493
+ $wp_customize->add_control('blog_heading', array(
4494
+ 'label' => __('Main Heading', 'shopline'),
4495
+ 'section' => 'blog_setting',
4496
+ 'settings' => 'blog_heading',
4497
+ 'type' => 'text',
4498
+ ));
4499
+ $wp_customize->add_setting('blog_subheading', array(
4500
+ 'default' => '',
4501
+ 'capability' => 'edit_theme_options',
4502
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'
4503
+ ));
4504
+ $wp_customize->add_control('blog_subheading', array(
4505
+ 'label' => __('Sub Heading', 'shopline'),
4506
+ 'section' => 'blog_setting',
4507
+ 'settings' => 'blog_subheading',
4508
+ 'type' => 'textarea',
4509
+ ));
4510
+ // blog-setting
4511
+ //= Choose All Category =
4512
+ $wp_customize->add_setting('slider_cate', array(
4513
+ 'default' => 0,
4514
+ 'capability' => 'edit_theme_options',
4515
+ 'sanitize_callback' => 'esc_attr',
4516
+ ));
4517
+ $wp_customize->add_control('slider_cate', array(
4518
+ 'settings' => 'slider_cate',
4519
+ 'label' => __('Latest Post Category','shopline'),
4520
+ 'section' => 'blog_setting',
4521
+ 'type' => 'select',
4522
+ 'choices' => shopline_get_category_list(),
4523
+ ) );
4524
+ $wp_customize->add_setting('slider_cate_count', array(
4525
+ 'default' => 4,
4526
+ 'capability' => 'edit_theme_options',
4527
+ 'sanitize_callback' => 'esc_attr',
4528
+ ));
4529
+ $wp_customize->add_control('slider_cate_count', array(
4530
+ 'settings' => 'slider_cate_count',
4531
+ 'label' => __('Number of Post','shopline'),
4532
+ 'section' => 'blog_setting',
4533
+ 'type' => 'number',
4534
+ 'input_attrs' => array('min' => 1,'max' => 10)
4535
+ ) );
4536
+ $wp_customize->add_setting('read_more_txt', array(
4537
+ 'default' => 'Read More',
4538
+ 'capability' => 'edit_theme_options',
4539
+ 'sanitize_callback' => 'esc_attr',
4540
+ ));
4541
+ $wp_customize->add_control('read_more_txt', array(
4542
+ 'settings' => 'read_more_txt',
4543
+ 'label' => __('Change Read More Text','shopline'),
4544
+ 'description'=> __('Enter a text below that you want to show instead of Read More','shopline'),
4545
+ 'section' => 'blog_setting',
4546
+ 'type' => 'text',
4547
+
4548
+ ) );
4549
+
4550
+ //color
4551
+ // autoplay on/off
4552
+ $wp_customize->add_setting('blog_play', array(
4553
+ 'default' =>'on',
4554
+ 'capability' => 'edit_theme_options',
4555
+ 'sanitize_callback' => 'sanitize_text_field'
4556
+ ));
4557
+ $wp_customize->add_control('blog_play', array(
4558
+ 'settings' => 'blog_play',
4559
+ 'label' => __('Autoplay','shopline'),
4560
+ 'section' => 'blog_setting',
4561
+ 'type' => 'radio',
4562
+ 'choices' => array(
4563
+ 'on' => 'On',
4564
+ 'off' => 'Off',
4565
+ ),
4566
+ ));
4567
+
4568
+ $wp_customize->add_setting('blog_slider_speed', array(
4569
+ 'default' => __('3000','shopline'),
4570
+ 'capability' => 'edit_theme_options',
4571
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_textarea'));
4572
+ $wp_customize->add_control('blog_slider_speed', array(
4573
+ 'label' => __('Speed', 'shopline'),
4574
+ 'section' => 'blog_setting',
4575
+ 'settings' => 'blog_slider_speed',
4576
+ 'type' => 'text',
4577
+ ));
4578
+
4579
+ $wp_customize->add_setting('blog_options', array(
4580
+ 'default' =>'color',
4581
+ 'capability' => 'edit_theme_options',
4582
+ 'sanitize_callback' => 'sanitize_text_field'
4583
+ ));
4584
+
4585
+ $wp_customize->add_control( 'blog_options', array(
4586
+ 'settings' => 'blog_options',
4587
+ 'label' => __('Choose Background','shopline'),
4588
+ 'section' => 'blog_setting',
4589
+ 'type' => 'radio',
4590
+ 'choices' => array(
4591
+ 'color' => 'Color',
4592
+ 'svg' => 'Color With SVG',
4593
+ 'image' => 'Image',
4594
+ ),
4595
+ ));
4596
+
4597
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
4598
+ $wp_customize->add_setting(
4599
+ 'blog_svg_style', array(
4600
+ 'default' => 'svg-one',
4601
+ 'sanitize_callback' => 'sanitize_text_field',
4602
+ )
4603
+ );
4604
+ $wp_customize->add_control(
4605
+ new Themehunk_Customize_Control_Radio_Image(
4606
+ $wp_customize, 'blog_svg_style', array(
4607
+ 'label' => esc_html__( 'Choose SVG Style', 'shopline' ),
4608
+ 'section' => 'blog_setting',
4609
+ 'choices' => array(
4610
+ 'svg-one' => array(
4611
+ 'url' => SHOPLINE_SVG_IMG1,
4612
+ ),
4613
+ 'svg-two' => array(
4614
+ 'url' => SHOPLINE_SVG_IMG2,
4615
+ ),
4616
+
4617
+ ),
4618
+ )
4619
+ )
4620
+ );
4621
+ }
4622
+ $wp_customize->add_setting('blog_bg_image', array(
4623
+ 'default' => '',
4624
+ 'capability' => 'edit_theme_options',
4625
+ 'sanitize_callback' => 'sanitize_text_field'
4626
+ ));
4627
+ $wp_customize->add_control( new WP_Customize_Image_Control(
4628
+ $wp_customize, 'blog_bg_image', array(
4629
+ 'label' => __('Upload Background Image', 'shopline'),
4630
+ 'section' => 'blog_setting',
4631
+ 'settings' => 'blog_bg_image',
4632
+ )));
4633
+
4634
+ // overlay-color
4635
+ $wp_customize->add_setting(
4636
+ 'blog_overly',
4637
+ array(
4638
+ 'default' => '#e7e8e9',
4639
+ 'type' => 'theme_mod',
4640
+ 'capability' => 'edit_theme_options',
4641
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
4642
+ )
4643
+ );
4644
+ $wp_customize->add_control(new Customize_themehunk_Color_Control(
4645
+ $wp_customize,
4646
+ 'blog_overly',
4647
+ array(
4648
+ 'label' => __( 'Background Color', 'shopline' ),
4649
+ 'description'=> __( '(Set background color for section or set color with transparency for section overlay)', 'shopline' ),
4650
+ 'section' => 'blog_setting',
4651
+ 'settings' => 'blog_overly',
4652
+ 'show_opacity' => true, // Optional.
4653
+ 'palette' => $palette
4654
+ ) ) );
4655
+
4656
+
4657
+ $wp_customize->add_setting('blog_heading_color', array(
4658
+ 'default' => '#080808',
4659
+ 'sanitize_callback' => 'sanitize_hex_color'
4660
+ ));
4661
+ $wp_customize->add_control(
4662
+ new WP_Customize_Color_Control($wp_customize,'blog_heading_color', array(
4663
+ 'label' => __('Heading Color', 'shopline' ),
4664
+ 'section' => 'blog_setting',
4665
+ 'settings' => 'blog_heading_color',
4666
+ ) ) );
4667
+ $wp_customize->add_setting('blog_subheading_color', array(
4668
+ 'default' => '#666666',
4669
+ 'sanitize_callback' => 'sanitize_hex_color'
4670
+ ));
4671
+ $wp_customize->add_control(
4672
+ new WP_Customize_Color_Control($wp_customize,'blog_subheading_color', array(
4673
+ 'label' => __('Sub Heading Color', 'shopline' ),
4674
+ 'section' => 'blog_setting',
4675
+ 'settings' => 'blog_subheading_color',
4676
+ ) ) );
4677
+ $wp_customize->add_setting('blog_line_color', array(
4678
+ 'default' => '#e7c09c',
4679
+ 'sanitize_callback' => 'sanitize_hex_color'
4680
+ ));
4681
+ $wp_customize->add_control(
4682
+ new WP_Customize_Color_Control($wp_customize,'blog_line_color', array(
4683
+ 'label' => __('Title Underline Color', 'shopline' ),
4684
+ 'section' => 'blog_setting',
4685
+ 'settings' => 'blog_line_color',
4686
+ ) ) );
4687
+
4688
+ $wp_customize->add_setting('blog_line_break_color', array(
4689
+ 'sanitize_callback' => 'sanitize_text_field'
4690
+ ));
4691
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
4692
+ $wp_customize,'blog_line_break_color',array(
4693
+ 'section' => 'blog_setting',
4694
+ 'description' => __( 'Post Color Options', 'shopline' ),
4695
+ 'type' => 'content',
4696
+ 'input_attrs' => array('divider' => true),
4697
+ )));
4698
+
4699
+ $wp_customize->add_setting('blog_datetxt_color', array(
4700
+ 'default' => '#bbb',
4701
+ 'sanitize_callback' => 'sanitize_hex_color'
4702
+ ));
4703
+ $wp_customize->add_control(
4704
+ new WP_Customize_Color_Control($wp_customize,'blog_datetxt_color', array(
4705
+ 'label' => __('Date Text Color', 'shopline' ),
4706
+ 'section' => 'blog_setting',
4707
+ 'settings' => 'blog_datetxt_color',
4708
+ ) ) );
4709
+
4710
+ $wp_customize->add_setting('blog_text_heading_color', array(
4711
+ 'default' => '#111',
4712
+ 'sanitize_callback' => 'sanitize_hex_color'
4713
+ ));
4714
+ $wp_customize->add_control(
4715
+ new WP_Customize_Color_Control($wp_customize,'blog_text_heading_color', array(
4716
+ 'label' => __('Title Color', 'shopline' ),
4717
+ 'section' => 'blog_setting',
4718
+ 'settings' => 'blog_text_heading_color',
4719
+ ) ) );
4720
+
4721
+ $wp_customize->add_setting('blog_text_desc_color', array(
4722
+ 'default' => '#666',
4723
+ 'sanitize_callback' => 'sanitize_hex_color'
4724
+ ));
4725
+ $wp_customize->add_control(
4726
+ new WP_Customize_Color_Control($wp_customize,'blog_text_desc_color', array(
4727
+ 'label' => __('Description Color', 'shopline' ),
4728
+ 'section' => 'blog_setting',
4729
+ 'settings' => 'blog_text_desc_color',
4730
+ ) ) );
4731
+
4732
+ // top-bottom padding blog setcion
4733
+ $wp_customize->add_setting('blog_section_padding', array(
4734
+ 'sanitize_callback' => 'themehunk_sanitize_text',
4735
+ ));
4736
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'blog_section_padding',
4737
+ array(
4738
+ 'section' => 'blog_setting',
4739
+ 'type' => 'custom_message',
4740
+ 'description' => wp_kses_post('Section Padding','shopline' )
4741
+ )));
4742
+
4743
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
4744
+ $wp_customize->add_setting(
4745
+ 'blog_top_padding', array(
4746
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
4747
+ 'default' => 65,
4748
+
4749
+ )
4750
+ );
4751
+
4752
+ $wp_customize->add_control(
4753
+ new Themehunk_Customizer_Range_Value_Control(
4754
+ $wp_customize, 'blog_top_padding', array(
4755
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
4756
+ 'section' => 'blog_setting',
4757
+ 'type' => 'range-value',
4758
+ 'input_attr' => array(
4759
+ 'min' => 10,
4760
+ 'max' => 200,
4761
+ 'step' => 5,
4762
+ )
4763
+ )
4764
+ )
4765
+ );
4766
+ $wp_customize->add_setting(
4767
+ 'blog_bottom_padding', array(
4768
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
4769
+ 'default' => 65,
4770
+
4771
+ )
4772
+ );
4773
+ $wp_customize->add_control(
4774
+ new Themehunk_Customizer_Range_Value_Control(
4775
+ $wp_customize, 'blog_bottom_padding', array(
4776
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
4777
+ 'section' => 'blog_setting',
4778
+ 'type' => 'range-value',
4779
+ 'input_attr' => array(
4780
+ 'min' => 10,
4781
+ 'max' => 200,
4782
+ 'step' => 5,
4783
+ )
4784
+ )
4785
+ )
4786
+ );
4787
+ }
4788
+ /****************************************************************/
4789
+ /************ THREE COLUMN ADS ************/
4790
+ /****************************************************************/
4791
+ $wp_customize->add_section('three_column_ftr_first_column', array(
4792
+ 'title' => __('Three Column Featured', 'shopline'),
4793
+ 'priority' => 7,
4794
+ 'panel' => 'front_page_section'
4795
+ ));
4796
+ $wp_customize->add_setting(
4797
+ 'three_column_tabs', array(
4798
+ 'sanitize_callback' => 'sanitize_text_field',
4799
+ )
4800
+ );
4801
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
4802
+ $wp_customize->add_control(
4803
+ new Themehunk_Customize_Control_Tabs(
4804
+ $wp_customize, 'three_column_tabs', array(
4805
+ 'section' => 'three_column_ftr_first_column',
4806
+ 'tabs' => array(
4807
+ 'general' => array(
4808
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
4809
+ 'controls' => array(
4810
+ 'three_column_hide',
4811
+ 'three_column_one_line_break_color',
4812
+ 'three_column_adds_first_image',
4813
+ 'three_column_adds_first_url',
4814
+ 'three_column_two_line_break_color',
4815
+ 'three_column_adds_second_image',
4816
+ 'three_column_adds_second_url',
4817
+ 'three_column_three_line_break_color',
4818
+ 'three_column_adds_third_image',
4819
+ 'three_column_adds_third_url',
4820
+ ),
4821
+ ),
4822
+ 'appearance' => array(
4823
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
4824
+ 'controls' => array(
4825
+ 'ad_options',
4826
+ 'ad_svg_style',
4827
+ 'three_column_ads_bg_color',
4828
+ 'three_column_img_fst_color',
4829
+ 'three_column_img_scnd_color',
4830
+ 'three_column_img_thr_color',
4831
+ 'three_column_ads_section_padding',
4832
+ 'ad_top_padding',
4833
+ 'ad_bottom_padding'
4834
+ ),
4835
+ ),
4836
+ ),
4837
+ )
4838
+ )
4839
+ );
4840
+ }
4841
+ $wp_customize->add_setting( 'three_column_hide',
4842
+ array(
4843
+ 'sanitize_callback' => 'themehunk_sanitize_checkbox',
4844
+ 'default' => '',
4845
+ )
4846
+ );
4847
+ $wp_customize->add_control( 'three_column_hide',
4848
+ array(
4849
+ 'type' => 'checkbox',
4850
+ 'label' => esc_html__('Disable section', 'shopline'),
4851
+ 'section' => 'three_column_ftr_first_column',
4852
+ )
4853
+ );
4854
+ $wp_customize->add_setting('three_column_one_line_break_color', array(
4855
+ 'sanitize_callback' => 'sanitize_text_field'
4856
+ ));
4857
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
4858
+ $wp_customize,'three_column_one_line_break_color',array(
4859
+ 'section' => 'three_column_ftr_first_column',
4860
+ 'description' => __( 'First', 'shopline' ),
4861
+ 'type' => 'content',
4862
+ 'input_attrs' => array('divider' => true),
4863
+ )));
4864
+ $wp_customize->add_setting('three_column_adds_first_image', array(
4865
+ 'capability' => 'edit_theme_options',
4866
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
4867
+ ));
4868
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'three_column_adds_first_image', array(
4869
+ 'label' => __('Upload Image', 'shopline'),
4870
+ 'section' => 'three_column_ftr_first_column',
4871
+ 'settings' => 'three_column_adds_first_image',
4872
+ )));
4873
+ $wp_customize->add_setting('three_column_adds_first_url', array(
4874
+ 'default' => '#',
4875
+ 'capability' => 'edit_theme_options',
4876
+ 'sanitize_callback' => 'esc_url_raw'
4877
+ ));
4878
+ $wp_customize->add_control('three_column_adds_first_url', array(
4879
+ 'label' => __('Image Link', 'shopline'),
4880
+ 'section' => 'three_column_ftr_first_column',
4881
+ 'settings' => 'three_column_adds_first_url',
4882
+ 'type' => 'text',
4883
+ ));
4884
+
4885
+ $wp_customize->add_setting('three_column_two_line_break_color', array(
4886
+ 'sanitize_callback' => 'sanitize_text_field'
4887
+ ));
4888
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
4889
+ $wp_customize,'three_column_two_line_break_color',array(
4890
+ 'section' => 'three_column_ftr_first_column',
4891
+ 'description' => __( 'Second', 'shopline' ),
4892
+ 'type' => 'content',
4893
+ 'input_attrs' => array('divider' => true),
4894
+ )));
4895
+ $wp_customize->add_setting('three_column_adds_second_image', array(
4896
+ 'capability' => 'edit_theme_options',
4897
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
4898
+ ));
4899
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'three_column_adds_second_image', array(
4900
+ 'label' => __('Upload Image', 'shopline'),
4901
+ 'section' => 'three_column_ftr_first_column',
4902
+ 'settings' => 'three_column_adds_second_image',
4903
+ )));
4904
+ $wp_customize->add_setting('three_column_adds_second_url', array(
4905
+ 'default' => '#',
4906
+ 'capability' => 'edit_theme_options',
4907
+ 'sanitize_callback' => 'esc_url_raw'
4908
+ ));
4909
+ $wp_customize->add_control('three_column_adds_second_url', array(
4910
+ 'label' => __('Image Link', 'shopline'),
4911
+ 'section' => 'three_column_ftr_first_column',
4912
+ 'settings' => 'three_column_adds_second_url',
4913
+ 'type' => 'text',
4914
+ ));
4915
+
4916
+
4917
+ // Third ads
4918
+ $wp_customize->add_setting('three_column_three_line_break_color', array(
4919
+ 'sanitize_callback' => 'sanitize_text_field'
4920
+ ));
4921
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
4922
+ $wp_customize,'three_column_three_line_break_color',array(
4923
+ 'section' => 'three_column_ftr_first_column',
4924
+ 'description' => __( 'Third', 'shopline' ),
4925
+ 'type' => 'content',
4926
+ 'input_attrs' => array('divider' => true),
4927
+ )));
4928
+ $wp_customize->add_setting('three_column_adds_third_image', array(
4929
+ 'capability' => 'edit_theme_options',
4930
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
4931
+ ));
4932
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'three_column_adds_third_image', array(
4933
+ 'label' => __('Upload Image', 'shopline'),
4934
+ 'section' => 'three_column_ftr_first_column',
4935
+ 'settings' => 'three_column_adds_third_image',
4936
+ )));
4937
+ $wp_customize->add_setting('three_column_adds_third_url', array(
4938
+ 'default' => '#',
4939
+ 'capability' => 'edit_theme_options',
4940
+ 'sanitize_callback' => 'esc_url_raw'
4941
+ ));
4942
+ $wp_customize->add_control('three_column_adds_third_url', array(
4943
+ 'label' => __('Image Link', 'shopline'),
4944
+ 'section' => 'three_column_ftr_first_column',
4945
+ 'settings' => 'three_column_adds_third_url',
4946
+ 'type' => 'text',
4947
+ ));
4948
+
4949
+ $wp_customize->add_setting('ad_options', array(
4950
+ 'default' =>'color',
4951
+ 'capability' => 'edit_theme_options',
4952
+ 'sanitize_callback' => 'sanitize_text_field'
4953
+ ));
4954
+
4955
+ $wp_customize->add_control( 'ad_options', array(
4956
+ 'settings' => 'ad_options',
4957
+ 'label' => __('Choose Background','shopline'),
4958
+ 'section' => 'three_column_ftr_first_column',
4959
+ 'type' => 'radio',
4960
+ 'choices' => array(
4961
+ 'color' => 'Color',
4962
+ 'svg' => 'Color With SVG',
4963
+ ),
4964
+ ));
4965
+
4966
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
4967
+ $wp_customize->add_setting(
4968
+ 'ad_svg_style', array(
4969
+ 'default' => 'svg-one',
4970
+ 'sanitize_callback' => 'sanitize_text_field',
4971
+ )
4972
+ );
4973
+ $wp_customize->add_control(
4974
+ new Themehunk_Customize_Control_Radio_Image(
4975
+ $wp_customize, 'ad_svg_style', array(
4976
+ 'label' => esc_html__( 'Choose SVG Style', 'shopline' ),
4977
+ 'section' => 'three_column_ftr_first_column',
4978
+ 'choices' => array(
4979
+ 'svg-one' => array(
4980
+ 'url' => SHOPLINE_SVG_IMG1,
4981
+ ),
4982
+ 'svg-two' => array(
4983
+ 'url' => SHOPLINE_SVG_IMG2,
4984
+ ),
4985
+
4986
+ ),
4987
+ )
4988
+ )
4989
+ );
4990
+ }
4991
+ //colors
4992
+ $wp_customize->add_setting('three_column_ads_bg_color', array(
4993
+ 'default' => '#fff',
4994
+ 'sanitize_callback' => 'sanitize_hex_color'
4995
+ ));
4996
+ $wp_customize->add_control(
4997
+ new WP_Customize_Color_Control($wp_customize,'three_column_ads_bg_color', array(
4998
+ 'label' => __('Background Color', 'shopline' ),
4999
+ 'section' => 'three_column_ftr_first_column',
5000
+ 'settings' => 'three_column_ads_bg_color',
5001
+ ) ) );
5002
+ // first overlay-color
5003
+ $wp_customize->add_setting(
5004
+ 'three_column_img_fst_color',
5005
+ array(
5006
+ 'default' => 'rgba(0, 0, 0, 0)',
5007
+ 'type' => 'theme_mod',
5008
+ 'capability' => 'edit_theme_options',
5009
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
5010
+ )
5011
+ );
5012
+ $wp_customize->add_control(
5013
+ new Customize_themehunk_Color_Control(
5014
+ $wp_customize,
5015
+ 'three_column_img_fst_color',
5016
+ array(
5017
+ 'label' => __( 'First Image Overlay Color', 'shopline' ),
5018
+ 'section' => 'three_column_ftr_first_column',
5019
+ 'settings' => 'three_column_img_fst_color',
5020
+ 'show_opacity' => true, // Optional.
5021
+ 'palette' => $palette
5022
+ )));
5023
+ // second overlay-color
5024
+ $wp_customize->add_setting(
5025
+ 'three_column_img_scnd_color',
5026
+ array(
5027
+ 'default' => 'rgba(0, 0, 0, 0)',
5028
+ 'type' => 'theme_mod',
5029
+ 'capability' => 'edit_theme_options',
5030
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
5031
+ )
5032
+ );
5033
+ $wp_customize->add_control(
5034
+ new Customize_themehunk_Color_Control(
5035
+ $wp_customize,
5036
+ 'three_column_img_scnd_color',
5037
+ array(
5038
+ 'label' => __( 'Second Image Overlay Color', 'shopline' ),
5039
+ 'section' => 'three_column_ftr_first_column',
5040
+ 'settings' => 'three_column_img_scnd_color',
5041
+ 'show_opacity' => true, // Optional.
5042
+ 'palette' => $palette
5043
+ )));
5044
+ //third overlay-color
5045
+ $wp_customize->add_setting(
5046
+ 'three_column_img_thr_color',
5047
+ array(
5048
+ 'default' => 'rgba(0, 0, 0, 0)',
5049
+ 'type' => 'theme_mod',
5050
+ 'capability' => 'edit_theme_options',
5051
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
5052
+ )
5053
+ );
5054
+ $wp_customize->add_control(
5055
+ new Customize_themehunk_Color_Control(
5056
+ $wp_customize,
5057
+ 'three_column_img_thr_color',
5058
+ array(
5059
+ 'label' => __( 'Third Image Overlay Color', 'shopline' ),
5060
+ 'section' => 'three_column_ftr_first_column',
5061
+ 'settings' => 'three_column_img_thr_color',
5062
+ 'show_opacity' => true, // Optional.
5063
+ 'palette' => $palette
5064
+ )));
5065
+ // top-bottom padding ad setcion
5066
+ $wp_customize->add_setting('three_column_ads_section_padding', array(
5067
+ 'sanitize_callback' => 'themehunk_sanitize_text',
5068
+ ));
5069
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'three_column_ads_section_padding',
5070
+ array(
5071
+ 'section' => 'three_column_ftr_first_column',
5072
+ 'type' => 'custom_message',
5073
+ 'description' => wp_kses_post('Section Padding','shopline' )
5074
+ )));
5075
+
5076
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
5077
+ $wp_customize->add_setting(
5078
+ 'ad_top_padding', array(
5079
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
5080
+ 'default' => 65,
5081
+
5082
+ )
5083
+ );
5084
+
5085
+ $wp_customize->add_control(
5086
+ new Themehunk_Customizer_Range_Value_Control(
5087
+ $wp_customize, 'ad_top_padding', array(
5088
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
5089
+ 'section' => 'three_column_ftr_first_column',
5090
+ 'type' => 'range-value',
5091
+ 'input_attr' => array(
5092
+ 'min' => 10,
5093
+ 'max' => 200,
5094
+ 'step' => 5,
5095
+ )
5096
+ )
5097
+ )
5098
+ );
5099
+ $wp_customize->add_setting(
5100
+ 'ad_bottom_padding', array(
5101
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
5102
+ 'default' => 65,
5103
+
5104
+ )
5105
+ );
5106
+ $wp_customize->add_control(
5107
+ new Themehunk_Customizer_Range_Value_Control(
5108
+ $wp_customize, 'ad_bottom_padding', array(
5109
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
5110
+ 'section' => 'three_column_ftr_first_column',
5111
+ 'type' => 'range-value',
5112
+ 'input_attr' => array(
5113
+ 'min' => 10,
5114
+ 'max' => 200,
5115
+ 'step' => 5,
5116
+ )
5117
+ )
5118
+ )
5119
+ );
5120
+ }
5121
+ /****************************************************************/
5122
+ /************ SHOP-PAGES SETTING ************/
5123
+ /****************************************************************/
5124
+ $wp_customize->add_section('shop_setting', array(
5125
+ 'title' => __('Shop page settings (WooCommerce)', 'shopline'),
5126
+ 'priority' => 8,
5127
+ ));
5128
+ $wp_customize->add_setting(
5129
+ 'shop_tabs', array(
5130
+ 'sanitize_callback' => 'sanitize_text_field',
5131
+ )
5132
+ );
5133
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
5134
+ $wp_customize->add_control(
5135
+ new Themehunk_Customize_Control_Tabs(
5136
+ $wp_customize, 'shop_tabs', array(
5137
+ 'section' => 'shop_setting',
5138
+ 'tabs' => array(
5139
+ 'general' => array(
5140
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
5141
+ 'controls' => array(
5142
+ 'shop_page_doc_link',
5143
+ 'sngle_sidebar_set',
5144
+ 'shop_sidebar',
5145
+ 'woo_grid',
5146
+ 'shop_product_show',
5147
+ 'more_grd_lyt',
5148
+ ),
5149
+ ),
5150
+ 'appearance' => array(
5151
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
5152
+ 'controls' => array(
5153
+ 'shop_title_color',
5154
+ 'shop_rating_color',
5155
+ 'shop_price_color',
5156
+ 'shop_txt_color',
5157
+ 'shop_btn_color',
5158
+ 'shop_rating_color',
5159
+ 'shop_whslst_color',
5160
+ 'shop_sale_color',
5161
+ 'shop_sale_bg_color',
5162
+ 'shop_zoomicn_color',
5163
+ 'shop_zoomicn_bg_color'
5164
+ ),
5165
+ ),
5166
+ ),
5167
+ )
5168
+ )
5169
+ );
5170
+ }
5171
+ $wp_customize->add_setting('shop_page_doc_link', array(
5172
+ 'sanitize_callback' => 'themehunk_sanitize_text',
5173
+ ));
5174
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'shop_page_doc_link',
5175
+ array(
5176
+ 'section' => 'shop_setting',
5177
+ 'type' => 'custom_message',
5178
+ 'description' => wp_kses_post( 'Check <a target="_blank" href="//themehunk.com/docs/shopline-theme/#shop-page"> Doc </a> for Shop page setting.','shopline' )
5179
+ )));
5180
+ // single-sidebar choose option
5181
+ $wp_customize->add_setting('sngle_sidebar_set', array(
5182
+ 'default' =>'no-sidebar',
5183
+ 'capability' =>'edit_theme_options',
5184
+ 'sanitize_callback' =>'sanitize_text_field'
5185
+ ));
5186
+ $wp_customize->add_control('sngle_sidebar_set', array(
5187
+ 'settings' => 'sngle_sidebar_set',
5188
+ 'label' => __('Product Single Page','shopline'),
5189
+ 'section' => 'shop_setting',
5190
+ 'type' => 'radio',
5191
+ 'choices' => array(
5192
+ 'left' => 'Left',
5193
+ 'right' => 'Right',
5194
+ 'no-sidebar' => 'No-Sidebar',
5195
+ ),
5196
+ ));
5197
+ // shop-sidebar choose option
5198
+ $wp_customize->add_setting('shop_sidebar', array(
5199
+ 'default' =>'no-sidebar',
5200
+ 'capability' =>'edit_theme_options',
5201
+ 'sanitize_callback' =>'sanitize_text_field'
5202
+ ));
5203
+ $wp_customize->add_control('shop_sidebar', array(
5204
+ 'settings' => 'shop_sidebar',
5205
+ 'label' => __('Shop / Category / Archive Page','shopline'),
5206
+ 'section' => 'shop_setting',
5207
+ 'type' => 'radio',
5208
+ 'choices' => array(
5209
+ 'left' => 'Left',
5210
+ 'right' => 'Right',
5211
+ 'no-sidebar' => 'No-Sidebar',
5212
+ ),
5213
+ ));
5214
+ $wp_customize->add_setting('woo_grid', array(
5215
+ 'default' => 'columns-4',
5216
+ 'capability' => 'edit_theme_options',
5217
+ 'sanitize_callback' => 'esc_attr',
5218
+ ));
5219
+ $wp_customize->add_control( 'woo_grid', array(
5220
+ 'settings' => 'woo_grid',
5221
+ 'label' => __('Choose Product Layout','shopline'),
5222
+ 'section' => 'shop_setting',
5223
+ 'type' => 'select',
5224
+ 'choices' => array(
5225
+
5226
+ 'columns-2' => __('Two Grid','shopline'),
5227
+ 'columns-3' => __('Three Grid','shopline'),
5228
+ 'columns-4' => __('Four Grid','shopline'),
5229
+ 'columns-5' => __('Five Grid','shopline'),
5230
+
5231
+ ),
5232
+ ));
5233
+ // product show shop page
5234
+ $wp_customize->add_setting('shop_product_show', array(
5235
+ 'default' => 10,
5236
+ 'capability' => 'edit_theme_options',
5237
+ 'sanitize_callback' => 'esc_attr',
5238
+ ));
5239
+ $wp_customize->add_control('shop_product_show', array(
5240
+ 'settings' => 'shop_product_show',
5241
+ 'label' => __('Number of Product','shopline'),
5242
+ 'section' => 'shop_setting',
5243
+ 'type' => 'number',
5244
+ ) );
5245
+ // add-more-layout-pro
5246
+ $wp_customize->add_setting('more_grd_lyt', array(
5247
+ 'sanitize_callback' => 'themehunk_sanitize_text',
5248
+ ));
5249
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'more_grd_lyt',
5250
+ array(
5251
+ 'section' => 'shop_setting',
5252
+ 'type' => 'custom_message',
5253
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//themehunk.com/product/shopline-pro-multipurpose-shopping-theme/">ShoplinePro</a> for multiple product layout','shopline' )
5254
+ )));
5255
+ // title
5256
+ $wp_customize->add_setting('shop_title_color', array(
5257
+ 'default' => '#080808',
5258
+ 'sanitize_callback' => 'sanitize_hex_color'
5259
+ ));
5260
+ $wp_customize->add_control(
5261
+ new WP_Customize_Color_Control($wp_customize,'shop_title_color', array(
5262
+ 'label' => __('Title Color', 'shopline' ),
5263
+ 'section' => 'shop_setting',
5264
+ 'settings' => 'shop_title_color',
5265
+ ) ) );
5266
+ // rating
5267
+ $wp_customize->add_setting('shop_rating_color', array(
5268
+ 'default' => '#f2c618',
5269
+ 'sanitize_callback' => 'sanitize_hex_color'
5270
+ ));
5271
+ $wp_customize->add_control(
5272
+ new WP_Customize_Color_Control($wp_customize,'shop_rating_color', array(
5273
+ 'label' => __('Rating Color', 'shopline' ),
5274
+ 'section' => 'shop_setting',
5275
+ 'settings' => 'shop_rating_color',
5276
+ ) ) );
5277
+ // price
5278
+ $wp_customize->add_setting('shop_price_color', array(
5279
+ 'default' => '#e7c09c',
5280
+ 'sanitize_callback' => 'sanitize_hex_color'
5281
+ ));
5282
+ $wp_customize->add_control(
5283
+ new WP_Customize_Color_Control($wp_customize,'shop_price_color', array(
5284
+ 'label' => __('Price Color', 'shopline' ),
5285
+ 'section' => 'shop_setting',
5286
+ 'settings' => 'shop_price_color',
5287
+ ) ) );
5288
+ // text
5289
+ $wp_customize->add_setting('shop_txt_color', array(
5290
+ 'default' => '#666666',
5291
+ 'sanitize_callback' => 'sanitize_hex_color'
5292
+ ));
5293
+ $wp_customize->add_control(
5294
+ new WP_Customize_Color_Control($wp_customize,'shop_txt_color', array(
5295
+ 'label' => __('Text Color', 'shopline' ),
5296
+ 'section' => 'shop_setting',
5297
+ 'settings' => 'shop_txt_color',
5298
+ ) ) );
5299
+ // button
5300
+ $wp_customize->add_setting('shop_btn_color', array(
5301
+ 'default' => '#e7c09c',
5302
+ 'sanitize_callback' => 'sanitize_hex_color'
5303
+ ));
5304
+ $wp_customize->add_control(
5305
+ new WP_Customize_Color_Control($wp_customize,'shop_btn_color', array(
5306
+ 'label' => __('Button Color', 'shopline' ),
5307
+ 'section' => 'shop_setting',
5308
+ 'settings' => 'shop_btn_color',
5309
+ ) ) );
5310
+ // wishlist
5311
+ $wp_customize->add_setting('shop_whslst_color', array(
5312
+ 'default' => '#bbb',
5313
+ 'sanitize_callback' => 'sanitize_hex_color'
5314
+ ));
5315
+ $wp_customize->add_control(
5316
+ new WP_Customize_Color_Control($wp_customize,'shop_whslst_color', array(
5317
+ 'label' => __('Wishlist Icon Color', 'shopline' ),
5318
+ 'section' => 'shop_setting',
5319
+ 'settings' => 'shop_whslst_color',
5320
+ ) ) );
5321
+ // sale
5322
+ $wp_customize->add_setting('shop_sale_color', array(
5323
+ 'default' => '#fff',
5324
+ 'sanitize_callback' => 'sanitize_hex_color'
5325
+ ));
5326
+ $wp_customize->add_control(
5327
+ new WP_Customize_Color_Control($wp_customize,'shop_sale_color', array(
5328
+ 'label' => __('Sale Text Color', 'shopline' ),
5329
+ 'section' => 'shop_setting',
5330
+ 'settings' => 'shop_sale_color',
5331
+ ) ) );
5332
+ $wp_customize->add_setting('shop_sale_bg_color', array(
5333
+ 'default' => '#232531',
5334
+ 'sanitize_callback' => 'sanitize_hex_color'
5335
+ ));
5336
+ $wp_customize->add_control(
5337
+ new WP_Customize_Color_Control($wp_customize,'shop_sale_bg_color', array(
5338
+ 'label' => __('Sale Background Color', 'shopline' ),
5339
+ 'section' => 'shop_setting',
5340
+ 'settings' => 'shop_sale_bg_color',
5341
+ ) ) );
5342
+ // zoom-icon
5343
+ $wp_customize->add_setting('shop_zoomicn_color', array(
5344
+ 'default' => '#080808',
5345
+ 'sanitize_callback' => 'sanitize_hex_color'
5346
+ ));
5347
+ $wp_customize->add_control(
5348
+ new WP_Customize_Color_Control($wp_customize,'shop_zoomicn_color', array(
5349
+ 'label' => __('Zoom Icon Color', 'shopline' ),
5350
+ 'section' => 'shop_setting',
5351
+ 'settings' => 'shop_zoomicn_color',
5352
+ ) ) );
5353
+ $wp_customize->add_setting('shop_zoomicn_bg_color', array(
5354
+ 'default' => '#fff',
5355
+ 'sanitize_callback' => 'sanitize_hex_color'
5356
+ ));
5357
+ $wp_customize->add_control(
5358
+ new WP_Customize_Color_Control($wp_customize,'shop_zoomicn_bg_color', array(
5359
+ 'label' => __('Zoom Icon Background Color', 'shopline' ),
5360
+ 'section' => 'shop_setting',
5361
+ 'settings' => 'shop_zoomicn_bg_color',
5362
+ ) ) );
5363
+ /****************************************************************/
5364
+ /************ FOOTER SECTION ************/
5365
+ /****************************************************************/
5366
+ $wp_customize->add_section('footer_setting', array(
5367
+ 'title' => __('Footer Setting', 'shopline'),
5368
+ 'priority' => 8,
5369
+ ));
5370
+ $wp_customize->add_setting(
5371
+ 'footer_tabs', array(
5372
+ 'sanitize_callback' => 'sanitize_text_field',
5373
+ )
5374
+ );
5375
+ if ( class_exists( 'Themehunk_Customize_Control_Tabs' ) ) {
5376
+ $wp_customize->add_control(
5377
+ new Themehunk_Customize_Control_Tabs(
5378
+ $wp_customize, 'footer_tabs', array(
5379
+ 'section' => 'footer_setting',
5380
+ 'tabs' => array(
5381
+ 'general' => array(
5382
+ 'nicename' => esc_html__( 'Setting', 'shopline' ),
5383
+ 'controls' => array(
5384
+ 'footer_logo_line_break_color',
5385
+ 'copyright_upload',
5386
+
5387
+ 'footer_social_line_break_color',
5388
+ 'social_link_facebook',
5389
+ 'social_link_youtube',
5390
+ 'social_link_linkedin',
5391
+ 'social_link_pintrest',
5392
+ 'social_link_twitter',
5393
+ 'redirect_widget_desc',
5394
+ 'widget_redirect',
5395
+ 'redirect_menu_desc',
5396
+ 'menu_redirect'
5397
+ ),
5398
+ ),
5399
+ 'appearance' => array(
5400
+ 'nicename' => esc_html__( 'Style', 'shopline' ),
5401
+ 'controls' => array(
5402
+ 'footer_options',
5403
+ 'footer_svg_style',
5404
+ 'footer_image_upload',
5405
+ 'footer_imager_overly',
5406
+ 'footer_widget_menu_color',
5407
+ 'footer_widget_title_color',
5408
+ 'footer_widget_text_color',
5409
+ 'footer_copyright_text_color',
5410
+ 'footer_followus_color',
5411
+ 'footer_hr_line_color',
5412
+ 'footer_section_padding',
5413
+ 'footer_top_padding',
5414
+ 'footer_bottom_padding',
5415
+ 'more_news_1'
5416
+
5417
+ ),
5418
+ ),
5419
+ ),
5420
+ )
5421
+ )
5422
+ );
5423
+ }
5424
+
5425
+ $wp_customize->add_setting('footer_logo_line_break_color', array(
5426
+ 'sanitize_callback' => 'sanitize_text_field'
5427
+ ));
5428
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
5429
+ $wp_customize,'footer_logo_line_break_color',array(
5430
+ 'section' => 'footer_setting',
5431
+ 'description' => __( 'Footer Logo', 'shopline' ),
5432
+ 'type' => 'content',
5433
+ 'input_attrs' => array('divider' => true),
5434
+ )));
5435
+
5436
+ $wp_customize->add_setting('copyright_upload', array(
5437
+ 'capability' => 'edit_theme_options',
5438
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
5439
+ ));
5440
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'copyright_upload', array(
5441
+ 'label' => __('Footer Top Section Image Upload', 'shopline'),
5442
+ 'section' => 'footer_setting',
5443
+ 'settings' => 'copyright_upload',
5444
+ )));
5445
+
5446
+ $wp_customize->add_setting('footer_social_line_break_color', array(
5447
+ 'sanitize_callback' => 'sanitize_text_field'
5448
+ ));
5449
+ $wp_customize->add_control(new themehunk_break_Misc_Control(
5450
+ $wp_customize,'footer_social_line_break_color',array(
5451
+ 'section' => 'footer_setting',
5452
+ 'description' => __( 'Social Icon', 'shopline' ),
5453
+ 'type' => 'content',
5454
+ 'input_attrs' => array('divider' => true),
5455
+ )));
5456
+ //social icon
5457
+ $wp_customize->add_setting('social_link_facebook', array(
5458
+ 'default' => '#',
5459
+ 'capability' => 'edit_theme_options',
5460
+ 'sanitize_callback' => 'esc_url_raw'
5461
+ ));
5462
+ $wp_customize->add_control('social_link_facebook', array(
5463
+ 'label' => __('Facebook URL', 'shopline'),
5464
+ 'section' => 'footer_setting',
5465
+ 'settings' => 'social_link_facebook',
5466
+ 'type' => 'text',
5467
+ ));
5468
+
5469
+ $wp_customize->add_setting('social_link_youtube', array(
5470
+ 'default' => '#',
5471
+ 'capability' => 'edit_theme_options',
5472
+ 'sanitize_callback' => 'esc_url_raw'
5473
+ ));
5474
+ $wp_customize->add_control('social_link_youtube', array(
5475
+ 'label' => __('Youtube URL', 'shopline'),
5476
+ 'section' => 'footer_setting',
5477
+ 'settings' => 'social_link_youtube',
5478
+ 'type' => 'text',
5479
+ ));
5480
+ $wp_customize->add_setting('social_link_linkedin', array(
5481
+ 'default' => '#',
5482
+ 'capability' => 'edit_theme_options',
5483
+ 'sanitize_callback' => 'esc_url_raw'
5484
+ ));
5485
+ $wp_customize->add_control('social_link_linkedin', array(
5486
+ 'label' => __('Linkedin URL', 'shopline'),
5487
+ 'section' => 'footer_setting',
5488
+ 'settings' => 'social_link_linkedin',
5489
+ 'type' => 'text',
5490
+ ));
5491
+ $wp_customize->add_setting('social_link_pintrest', array(
5492
+ 'default' => '#',
5493
+ 'capability' => 'edit_theme_options',
5494
+ 'sanitize_callback' => 'esc_url_raw'
5495
+ ));
5496
+ $wp_customize->add_control('social_link_pintrest', array(
5497
+ 'label' => __(' Pinterest URL', 'shopline'),
5498
+ 'section' => 'footer_setting',
5499
+ 'settings' => 'social_link_pintrest',
5500
+ 'type' => 'text',
5501
+ ));
5502
+ $wp_customize->add_setting('social_link_twitter', array(
5503
+ 'default' => '#',
5504
+ 'capability' => 'edit_theme_options',
5505
+ 'sanitize_callback' => 'esc_url_raw',
5506
+ 'transport' => 'postMessage'
5507
+ ));
5508
+ $wp_customize->add_control('social_link_twitter', array(
5509
+ 'label' => __('Twitter URL', 'shopline'),
5510
+ 'section' => 'footer_setting',
5511
+ 'settings' => 'social_link_twitter',
5512
+ 'type' => 'text',
5513
+ ));
5514
+
5515
+ $wp_customize->add_setting('redirect_widget_desc', array(
5516
+ 'sanitize_callback' => 'themehunk_sanitize_text',
5517
+ ));
5518
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'redirect_widget_desc',
5519
+ array(
5520
+ 'section' => 'footer_setting',
5521
+ 'type' => 'custom_message',
5522
+ 'description' => wp_kses_post( 'Click here to set your widget','shopline' )
5523
+ )));
5524
+
5525
+
5526
+ // widget-redirect
5527
+ if ( class_exists( 'Themehunk_Display_Widget' ) ) {
5528
+ $wp_customize->add_setting(
5529
+ 'widget_redirect', array(
5530
+ 'sanitize_callback' => 'sanitize_text_field',
5531
+ )
5532
+ );
5533
+ $wp_customize->add_control(
5534
+ new Themehunk_Display_Widget(
5535
+ $wp_customize, 'widget_redirect', array(
5536
+ 'priority' => 25,
5537
+ 'section' => 'footer_setting',
5538
+ 'button_text' => esc_html__( 'Go to widget', 'hestia' ),
5539
+ 'button_class' => 'focus-customizer-widget-redirect',
5540
+
5541
+ )
5542
+ )
5543
+ );
5544
+ }
5545
+
5546
+ $wp_customize->add_setting('redirect_menu_desc', array(
5547
+ 'sanitize_callback' => 'themehunk_sanitize_text',
5548
+ ));
5549
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'redirect_menu_desc',
5550
+ array(
5551
+ 'priority' => 26,
5552
+ 'section' => 'footer_setting',
5553
+ 'type' => 'custom_message',
5554
+ 'description' => wp_kses_post( 'If you want to show a menu in your footer click here and create a menu','shopline' )
5555
+ )));
5556
+ // widget-redirect
5557
+ if ( class_exists( 'Themehunk_Display_Widget' ) ) {
5558
+ $wp_customize->add_setting(
5559
+ 'menu_redirect', array(
5560
+ 'sanitize_callback' => 'sanitize_text_field',
5561
+ )
5562
+ );
5563
+ $wp_customize->add_control(
5564
+ new Themehunk_Display_Widget(
5565
+ $wp_customize, 'menu_redirect', array(
5566
+ 'priority' => 27,
5567
+ 'section' => 'footer_setting',
5568
+ 'button_text' => esc_html__( 'Go to Menu', 'hestia' ),
5569
+ 'button_class' => 'focus-customizer-menu-redirect',
5570
+
5571
+ )
5572
+ )
5573
+ );
5574
+ }
5575
+ //color
5576
+ $wp_customize->add_setting('footer_options', array(
5577
+ 'default' =>'color',
5578
+ 'capability' => 'edit_theme_options',
5579
+ 'sanitize_callback' => 'sanitize_text_field'
5580
+ ));
5581
+ $wp_customize->add_control( 'footer_options', array(
5582
+ 'settings' => 'footer_options',
5583
+ 'label' => __('Choose Background','shopline'),
5584
+ 'section' => 'footer_setting',
5585
+ 'type' => 'radio',
5586
+ 'choices' => array(
5587
+ 'color' => 'Color',
5588
+ 'svg' => 'Color With SVG',
5589
+ 'image' => 'Image',
5590
+ ),
5591
+ ));
5592
+ if ( class_exists( 'Themehunk_Customize_Control_Radio_Image' ) ) {
5593
+ $wp_customize->add_setting(
5594
+ 'footer_svg_style', array(
5595
+ 'default' => 'svg-one',
5596
+ 'sanitize_callback' => 'sanitize_text_field',
5597
+ )
5598
+ );
5599
+ $wp_customize->add_control(
5600
+ new Themehunk_Customize_Control_Radio_Image(
5601
+ $wp_customize, 'footer_svg_style', array(
5602
+ 'label' => esc_html__( 'Choose SVG Style', 'shopline' ),
5603
+ 'section' => 'footer_setting',
5604
+ 'choices' => array(
5605
+ 'svg-one' => array(
5606
+ 'url' => SHOPLINE_SVG_IMG1,
5607
+ ),
5608
+ 'svg-two' => array(
5609
+ 'url' => SHOPLINE_SVG_IMG2,
5610
+ ),
5611
+
5612
+ ),
5613
+ )
5614
+ )
5615
+ );
5616
+ }
5617
+ $wp_customize->add_setting('footer_image_upload', array(
5618
+ 'capability' => 'edit_theme_options',
5619
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_upload'
5620
+ ));
5621
+ $wp_customize->add_control( new WP_Customize_Image_Control($wp_customize, 'footer_image_upload', array(
5622
+ 'label' => __('Footer Background Image', 'shopline'),
5623
+ 'section' => 'footer_setting',
5624
+ 'settings' => 'footer_image_upload',
5625
+ )));
5626
+
5627
+ // overlay-color
5628
+ $wp_customize->add_setting(
5629
+ 'footer_imager_overly',
5630
+ array(
5631
+ 'default' => '#232531',
5632
+ 'type' => 'theme_mod',
5633
+ 'capability' => 'edit_theme_options',
5634
+ 'sanitize_callback' => 'themehunk_customizer_sanitize_hex_rgba_color'
5635
+ )
5636
+ );
5637
+ $wp_customize->add_control(
5638
+ new Customize_themehunk_Color_Control(
5639
+ $wp_customize,
5640
+ 'footer_imager_overly',
5641
+ array(
5642
+ 'label' => __( 'Background Color', 'shopline' ),
5643
+ 'description'=> __( '(Set background color for section or set color with transparency for section overlay)', 'shopline' ),
5644
+ 'section' => 'footer_setting',
5645
+ 'settings' => 'footer_imager_overly',
5646
+ 'show_opacity' => true, // Optional.
5647
+ 'palette' => $palette
5648
+ )));
5649
+
5650
+ $wp_customize->add_setting('footer_widget_menu_color', array(
5651
+ 'default' => '#fff',
5652
+ 'sanitize_callback' => 'sanitize_hex_color'
5653
+ ));
5654
+ $wp_customize->add_control(
5655
+ new WP_Customize_Color_Control($wp_customize,'footer_widget_menu_color', array(
5656
+ 'label' => __('Footer Menu Color', 'shopline' ),
5657
+ 'section' => 'footer_setting',
5658
+ 'settings' => 'footer_widget_menu_color',
5659
+ ) ) );
5660
+
5661
+ $wp_customize->add_setting('footer_widget_title_color', array(
5662
+ 'default' => '#fff',
5663
+ 'sanitize_callback' => 'sanitize_hex_color'
5664
+ ));
5665
+ $wp_customize->add_control(
5666
+ new WP_Customize_Color_Control($wp_customize,'footer_widget_title_color', array(
5667
+ 'label' => __('Widget Title Color', 'shopline' ),
5668
+ 'section' => 'footer_setting',
5669
+ 'settings' => 'footer_widget_title_color',
5670
+ ) ) );
5671
+ $wp_customize->add_setting('footer_widget_text_color', array(
5672
+ 'default' => '#bbb',
5673
+ 'sanitize_callback' => 'sanitize_hex_color'
5674
+ ));
5675
+ $wp_customize->add_control(
5676
+ new WP_Customize_Color_Control($wp_customize,'footer_widget_text_color', array(
5677
+ 'label' => __('Widget Text Color', 'shopline' ),
5678
+ 'section' => 'footer_setting',
5679
+ 'settings' => 'footer_widget_text_color',
5680
+ ) ) );
5681
+
5682
+ $wp_customize->add_setting('footer_copyright_text_color', array(
5683
+ 'default' => '#bbb',
5684
+ 'sanitize_callback' => 'sanitize_hex_color'
5685
+ ));
5686
+ $wp_customize->add_control(
5687
+ new WP_Customize_Color_Control($wp_customize,'footer_copyright_text_color', array(
5688
+ 'label' => __('Copyright Text Color', 'shopline' ),
5689
+ 'section' => 'footer_setting',
5690
+ 'settings' => 'footer_copyright_text_color',
5691
+ ) ) );
5692
+ $wp_customize->add_setting('footer_followus_color', array(
5693
+ 'default' => '#fff',
5694
+ 'sanitize_callback' => 'sanitize_hex_color'
5695
+ ));
5696
+ $wp_customize->add_control(
5697
+ new WP_Customize_Color_Control($wp_customize,'footer_followus_color', array(
5698
+ 'label' => __('Follow Us Color', 'shopline' ),
5699
+ 'section' => 'footer_setting',
5700
+ 'settings' => 'footer_followus_color',
5701
+ ) ) );
5702
+ $wp_customize->add_setting('footer_hr_line_color', array(
5703
+ 'default' => '#1b1c26',
5704
+ 'sanitize_callback' => 'sanitize_hex_color'
5705
+ ));
5706
+ $wp_customize->add_control(
5707
+ new WP_Customize_Color_Control($wp_customize,'footer_hr_line_color', array(
5708
+ 'label' => __('Top & Bottom Horizontal Line Color', 'shopline' ),
5709
+ 'section' => 'footer_setting',
5710
+ 'settings' => 'footer_hr_line_color',
5711
+ ) ) );
5712
+
5713
+ // top-bottom padding ribbon
5714
+ $wp_customize->add_setting('footer_section_padding', array(
5715
+ 'sanitize_callback' => 'themehunk_sanitize_text',
5716
+ ));
5717
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'footer_section_padding',
5718
+ array(
5719
+ 'section' => 'footer_setting',
5720
+ 'type' => 'custom_message',
5721
+ 'description' => wp_kses_post('Section Padding','shopline' )
5722
+ )));
5723
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
5724
+ $wp_customize->add_setting(
5725
+ 'footer_top_padding', array(
5726
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
5727
+ 'default' => 40,
5728
+
5729
+ )
5730
+ );
5731
+
5732
+ $wp_customize->add_control(
5733
+ new Themehunk_Customizer_Range_Value_Control(
5734
+ $wp_customize, 'footer_top_padding', array(
5735
+ 'label' => esc_html__( 'Top Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
5736
+ 'section' => 'footer_setting',
5737
+ 'type' => 'range-value',
5738
+ 'input_attr' => array(
5739
+ 'min' => 10,
5740
+ 'max' => 200,
5741
+ 'step' => 5,
5742
+ )
5743
+ )
5744
+ )
5745
+ );
5746
+ $wp_customize->add_setting(
5747
+ 'footer_bottom_padding', array(
5748
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
5749
+ 'default' => 40,
5750
+
5751
+ )
5752
+ );
5753
+
5754
+ $wp_customize->add_control(
5755
+ new Themehunk_Customizer_Range_Value_Control(
5756
+ $wp_customize, 'footer_bottom_padding', array(
5757
+ 'label' => esc_html__( 'Bottom Padding', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
5758
+ 'section' => 'footer_setting',
5759
+ 'type' => 'range-value',
5760
+ 'input_attr' => array(
5761
+ 'min' => 10,
5762
+ 'max' => 200,
5763
+ 'step' => 5,
5764
+ )
5765
+ )
5766
+ )
5767
+ );
5768
+ }
5769
+ $wp_customize->add_setting('more_news_1', array(
5770
+ 'sanitize_callback' => 'themehunk_sanitize_text',
5771
+ ));
5772
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'more_news_1',
5773
+ array(
5774
+ 'section' => 'footer_setting',
5775
+ 'type' => 'custom_message',
5776
+ 'description' => wp_kses_post( 'Check out <a target="_blank" href="//themehunk.com/product/shopline-pro-multipurpose-shopping-theme/">ShoplinePro</a> for <strong>News Letter!</strong>','shopline' )
5777
+ )));
5778
+
5779
+ /****************************************************************/
5780
+ /************ Theme Color ************/
5781
+ /****************************************************************/
5782
+ $wp_customize->add_setting('theme_color', array(
5783
+ 'default' => '#e7c09c',
5784
+ 'capability' => 'edit_theme_options',
5785
+ 'sanitize_callback' => 'sanitize_hex_color'
5786
+ ));
5787
+ $wp_customize->add_control( new WP_Customize_Color_Control(
5788
+ $wp_customize, 'theme_color', array(
5789
+ 'label' => __( 'Theme Color', 'shopline' ),
5790
+ 'section' => 'colors',
5791
+ 'settings' => 'theme_color',
5792
+ 'priority' => 1,
5793
+ ) ) );
5794
+
5795
+ $wp_customize->get_section('colors')->title = esc_html__('Theme Color', 'shopline');
5796
+ $wp_customize->get_section('colors')->priority = 59;
5797
+ $wp_customize->get_section('colors')->panel = 'settings_theme_options';
5798
+ // background
5799
+ $wp_customize->add_section( 'background_image', array(
5800
+ 'title' => __( 'Body Background Image', 'shopline' ),
5801
+ 'theme_supports' => 'custom-background',
5802
+ 'priority' => 80,
5803
+ 'panel' =>'settings_theme_options',
5804
+ ) );
5805
+
5806
+ $wp_customize->get_section('custom_css')->priority = 17;
5807
+
5808
+ /************************************************************************/
5809
+ //Gloabal-typograpgy//
5810
+ /**************************************************************************/
5811
+ $wp_customize->register_control_type( 'Themehunk_Customizer_Range_Value_Control' );
5812
+ // normal slider
5813
+ $theme_tygrphy = new PE_WP_Customize_Panel( $wp_customize, 'theme_tygrphy', array(
5814
+ 'title' => __('Typography', 'shopline'),
5815
+ 'panel' => 'settings_theme_options',
5816
+ 'priority' => 1,
5817
+ ));
5818
+ $wp_customize->add_panel( $theme_tygrphy );
5819
+ $wp_customize->add_section(
5820
+ 'shopline_fontsubset_typography', array(
5821
+ 'title' => esc_html__( 'Font Subsets', 'shopline' ),
5822
+ 'priority' => 25,
5823
+ 'panel' => 'theme_tygrphy',
5824
+ )
5825
+ );
5826
+ if ( class_exists( 'themehunk_Customize_Control_Checkbox_Multiple' ) ) {
5827
+
5828
+ $wp_customize->add_setting(
5829
+ 'shopline_font_subsets', array(
5830
+ 'default' => array( 'latin' ),
5831
+ 'sanitize_callback' => 'themehunk_checkbox_explode',
5832
+ )
5833
+ );
5834
+
5835
+ $wp_customize->add_control(
5836
+ new themehunk_Customize_Control_Checkbox_Multiple(
5837
+ $wp_customize, 'shopline_font_subsets', array(
5838
+ 'section' => 'shopline_fontsubset_typography',
5839
+ 'label' => esc_html__( 'Font Subsets', 'shopline' ),
5840
+ 'choices' => array(
5841
+ 'latin' => 'latin',
5842
+ 'latin-ext' => 'latin-ext',
5843
+ 'cyrillic' => 'cyrillic',
5844
+ 'cyrillic-ext' => 'cyrillic-ext',
5845
+ 'greek' => 'greek',
5846
+ 'greek-ext' => 'greek-ext',
5847
+ 'vietnamese' => 'vietnamese',
5848
+ 'arabic' => 'arabic',
5849
+ ),
5850
+ 'priority' => 10,
5851
+ )
5852
+ )
5853
+ );
5854
+ }
5855
+ $wp_customize->add_section(
5856
+ 'shopline_typography', array(
5857
+ 'title' => esc_html__( 'Body', 'shopline' ),
5858
+ 'priority' => 25,
5859
+ 'panel' => 'theme_tygrphy',
5860
+ )
5861
+ );
5862
+
5863
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
5864
+ $wp_customize->add_setting(
5865
+ 'shopline_body_font', array(
5866
+ 'type' => 'theme_mod',
5867
+ 'sanitize_callback' => 'sanitize_text_field',
5868
+ )
5869
+ );
5870
+
5871
+ $wp_customize->add_control(
5872
+ new Themehunk_Font_Selector(
5873
+ $wp_customize, 'shopline_body_font', array(
5874
+ 'label' => esc_html__( 'Font family', 'shopline' ),
5875
+ 'section' => 'shopline_typography',
5876
+ 'priority' => 2,
5877
+ 'type' => 'select',
5878
+ )
5879
+ )
5880
+ );
5881
+ }
5882
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ) {
5883
+
5884
+ $wp_customize->add_setting(
5885
+ 'shopline_body_font_size', array(
5886
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
5887
+ 'default' => 14,
5888
+
5889
+ )
5890
+ );
5891
+
5892
+ $wp_customize->add_control(
5893
+ new Themehunk_Customizer_Range_Value_Control(
5894
+ $wp_customize, 'shopline_body_font_size', array(
5895
+ 'label' => esc_html__( 'Font size', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
5896
+ 'section' => 'shopline_typography',
5897
+ 'type' => 'range-value',
5898
+ 'input_attr' => array(
5899
+ 'min' => 10,
5900
+ 'max' => 20,
5901
+ 'step' => 0.1,
5902
+ ),
5903
+ 'priority' => 3,
5904
+ )
5905
+ )
5906
+ );
5907
+ // tab
5908
+ $wp_customize->add_setting(
5909
+ 'shopline_body_font_size_tb', array(
5910
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
5911
+ 'default' => 14,
5912
+
5913
+ )
5914
+ );
5915
+
5916
+ $wp_customize->add_control(
5917
+ new Themehunk_Customizer_Range_Value_Control(
5918
+ $wp_customize, 'shopline_body_font_size_tb', array(
5919
+ 'label' => esc_html__( 'Font size', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
5920
+ 'section' => 'shopline_typography',
5921
+ 'type' => 'range-value',
5922
+ 'input_attr' => array(
5923
+ 'min' => 10,
5924
+ 'max' => 20,
5925
+ 'step' => 0.1,
5926
+ ),
5927
+ 'priority' => 3,
5928
+ )
5929
+ )
5930
+ );
5931
+ // mob
5932
+ $wp_customize->add_setting(
5933
+ 'shopline_body_font_size_mb', array(
5934
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
5935
+ 'default' => 14,
5936
+
5937
+ )
5938
+ );
5939
+
5940
+ $wp_customize->add_control(
5941
+ new Themehunk_Customizer_Range_Value_Control(
5942
+ $wp_customize, 'shopline_body_font_size_mb', array(
5943
+ 'label' => esc_html__( 'Font size', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
5944
+ 'section' => 'shopline_typography',
5945
+ 'type' => 'range-value',
5946
+ 'input_attr' => array(
5947
+ 'min' => 10,
5948
+ 'max' => 20,
5949
+ 'step' => 0.1,
5950
+ ),
5951
+ 'priority' => 3,
5952
+ )
5953
+ )
5954
+ );
5955
+ // line-height
5956
+ $wp_customize->add_setting(
5957
+ 'shopline_body_line_height', array(
5958
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
5959
+ 'default' => 22,
5960
+
5961
+ )
5962
+ );
5963
+
5964
+ $wp_customize->add_control(
5965
+ new Themehunk_Customizer_Range_Value_Control(
5966
+ $wp_customize, 'shopline_body_line_height', array(
5967
+ 'label' => esc_html__( 'Line height', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
5968
+ 'section' => 'shopline_typography',
5969
+ 'type' => 'range-value',
5970
+ 'input_attr' => array(
5971
+ 'min' => 1,
5972
+ 'max' => 50,
5973
+ 'step' => 0.1,
5974
+ ),
5975
+ 'priority' => 4,
5976
+ )
5977
+ )
5978
+ );
5979
+
5980
+ // tab
5981
+ $wp_customize->add_setting(
5982
+ 'shopline_body_line_height_tb', array(
5983
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
5984
+ 'default' => 22,
5985
+
5986
+ )
5987
+ );
5988
+
5989
+ $wp_customize->add_control(
5990
+ new Themehunk_Customizer_Range_Value_Control(
5991
+ $wp_customize, 'shopline_body_line_height_tb', array(
5992
+ 'label' => esc_html__( 'Line height', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
5993
+ 'section' => 'shopline_typography',
5994
+ 'type' => 'range-value',
5995
+ 'input_attr' => array(
5996
+ 'min' => 1,
5997
+ 'max' => 50,
5998
+ 'step' => 0.1,
5999
+ ),
6000
+ 'priority' => 4,
6001
+ )
6002
+ )
6003
+ );
6004
+ // mob
6005
+ $wp_customize->add_setting(
6006
+ 'shopline_body_line_height_mb', array(
6007
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
6008
+ 'default' => 22,
6009
+
6010
+ )
6011
+ );
6012
+
6013
+ $wp_customize->add_control(
6014
+ new Themehunk_Customizer_Range_Value_Control(
6015
+ $wp_customize, 'shopline_body_line_height_mb', array(
6016
+ 'label' => esc_html__( 'Line height', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
6017
+ 'section' => 'shopline_typography',
6018
+ 'type' => 'range-value',
6019
+ 'input_attr' => array(
6020
+ 'min' => 1,
6021
+ 'max' => 50,
6022
+ 'step' => 0.1,
6023
+ ),
6024
+ 'priority' => 4,
6025
+ )
6026
+ )
6027
+ );
6028
+ // letter-spacing
6029
+ $wp_customize->add_setting(
6030
+ 'shopline_body_letter_spacing', array(
6031
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
6032
+ 'default' => 0.4,
6033
+
6034
+ )
6035
+ );
6036
+
6037
+ $wp_customize->add_control(
6038
+ new Themehunk_Customizer_Range_Value_Control(
6039
+ $wp_customize, 'shopline_body_letter_spacing', array(
6040
+ 'label' => esc_html__( 'Letter-spacing ', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
6041
+ 'section' => 'shopline_typography',
6042
+ 'type' => 'range-value',
6043
+ 'input_attr' => array(
6044
+ 'min' => 0,
6045
+ 'max' => 3,
6046
+ 'step' => 0.1,
6047
+ ),
6048
+ 'priority' => 25,
6049
+ )
6050
+ )
6051
+ );
6052
+ // tab
6053
+ $wp_customize->add_setting(
6054
+ 'shopline_body_letter_spacing_tb', array(
6055
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
6056
+ 'default' => 0.4,
6057
+
6058
+ )
6059
+ );
6060
+
6061
+ $wp_customize->add_control(
6062
+ new Themehunk_Customizer_Range_Value_Control(
6063
+ $wp_customize, 'shopline_body_letter_spacing_tb', array(
6064
+ 'label' => esc_html__( 'Letter-spacing ', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
6065
+ 'section' => 'shopline_typography',
6066
+ 'type' => 'range-value',
6067
+ 'input_attr' => array(
6068
+ 'min' => 0,
6069
+ 'max' => 3,
6070
+ 'step' => 0.1,
6071
+ ),
6072
+ 'priority' => 25,
6073
+ )
6074
+ )
6075
+ );
6076
+ // mob
6077
+ $wp_customize->add_setting(
6078
+ 'shopline_body_letter_spacing_mb', array(
6079
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
6080
+ 'default' => 0.4,
6081
+
6082
+ )
6083
+ );
6084
+
6085
+ $wp_customize->add_control(
6086
+ new Themehunk_Customizer_Range_Value_Control(
6087
+ $wp_customize, 'shopline_body_letter_spacing_mb', array(
6088
+ 'label' => esc_html__( 'Letter-spacing ', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
6089
+ 'section' => 'shopline_typography',
6090
+ 'type' => 'range-value',
6091
+ 'input_attr' => array(
6092
+ 'min' => 0,
6093
+ 'max' => 3,
6094
+ 'step' => 0.1,
6095
+ ),
6096
+ 'priority' => 25,
6097
+ )
6098
+ )
6099
+ );
6100
+ } // body(end)
6101
+
6102
+ //***********************************************//
6103
+ // heading-h1
6104
+ //***********************************************//
6105
+ $wp_customize->add_section(
6106
+ 'shopline_h1_typography', array(
6107
+ 'title' => esc_html__( 'Heading 1 (H1)', 'shopline' ),
6108
+ 'priority' => 25,
6109
+ 'panel' => 'theme_tygrphy',
6110
+ )
6111
+ );
6112
+
6113
+ if ( class_exists( 'Themehunk_Font_Selector' ) ) {
6114
+ $wp_customize->add_setting(
6115
+ 'shopline_h1_font', array(
6116
+ 'type' => 'theme_mod',
6117
+ 'sanitize_callback' => 'sanitize_text_field',
6118
+ )
6119
+ );
6120
+
6121
+ $wp_customize->add_control(
6122
+ new Themehunk_Font_Selector(
6123
+ $wp_customize, 'shopline_h1_font', array(
6124
+ 'label' => esc_html__( 'Font family', 'shopline' ),
6125
+
6126
+ 'section' => 'shopline_h1_typography',
6127
+ 'priority' => 1,
6128
+ 'type' => 'select',
6129
+ )
6130
+ )
6131
+ );
6132
+ }// End if().
6133
+
6134
+ $wp_customize->add_setting('h1_typo_detail', array(
6135
+ 'sanitize_callback' => 'themehunk_sanitize_text',
6136
+ ));
6137
+ $wp_customize->add_control( new themehunk_Misc_Control( $wp_customize, 'h1_typo_detail',
6138
+ array(
6139
+ 'section' => 'shopline_h1_typography',
6140
+ 'type' => 'custom_message',
6141
+ 'description' => wp_kses_post('(Applicable for all h1 heading like page title, product title in single page.)','shopline' ),
6142
+ 'priority' => 0,
6143
+
6144
+ )));
6145
+
6146
+ if ( class_exists( 'Themehunk_Customizer_Range_Value_Control' ) ){
6147
+ $wp_customize->add_setting(
6148
+ 'shopline_h1_font_size', array(
6149
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
6150
+ 'default' => 26,
6151
+
6152
+ )
6153
+ );
6154
+
6155
+ $wp_customize->add_control(
6156
+ new Themehunk_Customizer_Range_Value_Control(
6157
+ $wp_customize, 'shopline_h1_font_size', array(
6158
+ 'label' => esc_html__( 'Font size', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
6159
+ 'section' => 'shopline_h1_typography',
6160
+ 'type' => 'range-value',
6161
+ 'input_attr' => array(
6162
+ 'min' => 10,
6163
+ 'max' => 100,
6164
+ 'step' => 1,
6165
+ ),
6166
+ 'priority' => 2,
6167
+ )
6168
+ )
6169
+ );
6170
+ // tab
6171
+ $wp_customize->add_setting(
6172
+ 'shopline_h1_font_size_tb', array(
6173
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
6174
+ 'default' => 26,
6175
+
6176
+ )
6177
+ );
6178
+
6179
+ $wp_customize->add_control(
6180
+ new Themehunk_Customizer_Range_Value_Control(
6181
+ $wp_customize, 'shopline_h1_font_size_tb', array(
6182
+ 'label' => esc_html__( 'Font size', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
6183
+ 'section' => 'shopline_h1_typography',
6184
+ 'type' => 'range-value',
6185
+ 'input_attr' => array(
6186
+ 'min' => 10,
6187
+ 'max' => 100,
6188
+ 'step' => 1,
6189
+ ),
6190
+ 'priority' => 2,
6191
+ )
6192
+ )
6193
+ );
6194
+ // mob
6195
+ $wp_customize->add_setting(
6196
+ 'shopline_h1_font_size_mb', array(
6197
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
6198
+ 'default' => 26,
6199
+
6200
+ )
6201
+ );
6202
+
6203
+ $wp_customize->add_control(
6204
+ new Themehunk_Customizer_Range_Value_Control(
6205
+ $wp_customize, 'shopline_h1_font_size_mb', array(
6206
+ 'label' => esc_html__( 'Font size', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
6207
+ 'section' => 'shopline_h1_typography',
6208
+ 'type' => 'range-value',
6209
+ 'input_attr' => array(
6210
+ 'min' => 10,
6211
+ 'max' => 100,
6212
+ 'step' => 1,
6213
+ ),
6214
+ 'priority' => 2,
6215
+ )
6216
+ )
6217
+ );
6218
+ // line-height
6219
+ $wp_customize->add_setting(
6220
+ 'shopline_h1_line_height', array(
6221
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
6222
+ 'default' => 35,
6223
+
6224
+ )
6225
+ );
6226
+
6227
+ $wp_customize->add_control(
6228
+ new Themehunk_Customizer_Range_Value_Control(
6229
+ $wp_customize, 'shopline_h1_line_height', array(
6230
+ 'label' => esc_html__( 'Line height', 'shopline' ) . ' ( ' . esc_html__( 'px','shopline' ) . ' )',
6231
+ 'section' => 'shopline_h1_typography',
6232
+ 'type' => 'range-value',
6233
+ 'input_attr' => array(
6234
+ 'min' => 1,
6235
+ 'max' => 100,
6236
+ 'step' => 1,
6237
+ ),
6238
+ 'priority' => 3,
6239
+ )
6240
+ )
6241
+ );
6242
+ // tab
6243
+ $wp_customize->add_setting(
6244
+ 'shopline_h1_line_height_tb', array(
6245
+ 'sanitize_callback' => 'themehunk_sanitize_range_value',
6246
+ 'default' => 35,
6247
+
6248
+ )
6249
+