TemplatesNext ToolKit - Version 1.0.1

Version Description

Download this release

Release Info

Developer marsian
Plugin Icon 128x128 TemplatesNext ToolKit
Version 1.0.1
Comparing to
See all releases

Version 1.0.1

tx-toolkit/css/colorbox.css ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Colorbox Core Style:
3
+ The following CSS is consistent between example themes and should not be altered.
4
+ */
5
+ #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
6
+ #cboxWrapper {max-width:none;}
7
+ #cboxOverlay{position:fixed; width:100%; height:100%;}
8
+ #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
9
+ #cboxContent{position:relative;}
10
+ #cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
11
+ #cboxTitle{margin:0;}
12
+ #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
13
+ #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
14
+ .cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none; -ms-interpolation-mode:bicubic;}
15
+ .cboxIframe{width:100%; height:100%; display:block; border:0; padding:0; margin:0;}
16
+ #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
17
+
18
+ /*
19
+ User Style:
20
+ Change the following styles to modify the appearance of Colorbox. They are
21
+ ordered & tabbed in a way that represents the nesting of the generated HTML.
22
+ */
23
+ #cboxOverlay{background:url(images/overlay.png) repeat 0 0; opacity: 0.9; filter: alpha(opacity = 90);}
24
+ #colorbox{outline:0;}
25
+ #cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px 0;}
26
+ #cboxTopRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px 0;}
27
+ #cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) no-repeat -101px -29px;}
28
+ #cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) no-repeat -130px -29px;}
29
+ #cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
30
+ #cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
31
+ #cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
32
+ #cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
33
+ #cboxContent{background:#fff; overflow:hidden;}
34
+ .cboxIframe{background:#fff;}
35
+ #cboxError{padding:50px; border:1px solid #ccc;}
36
+ #cboxLoadedContent{margin-bottom:28px;}
37
+ #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
38
+ #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
39
+ #cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
40
+ #cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
41
+
42
+ /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
43
+ #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
44
+
45
+ /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
46
+ #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
47
+
48
+ #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
49
+ #cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
50
+ #cboxPrevious:hover{background-position:-75px -25px;}
51
+ #cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
52
+ #cboxNext:hover{background-position:-50px -25px;}
53
+ #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
54
+ #cboxClose:hover{background-position:-25px -25px;}
55
+
56
+ /*
57
+ The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
58
+ when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
59
+ See: http://jacklmoore.com/notes/ie-transparency-problems/
60
+ */
61
+ .cboxIE #cboxTopLeft,
62
+ .cboxIE #cboxTopCenter,
63
+ .cboxIE #cboxTopRight,
64
+ .cboxIE #cboxBottomLeft,
65
+ .cboxIE #cboxBottomCenter,
66
+ .cboxIE #cboxBottomRight,
67
+ .cboxIE #cboxMiddleLeft,
68
+ .cboxIE #cboxMiddleRight {
69
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
70
+ }
tx-toolkit/css/images/border.png ADDED
Binary file
tx-toolkit/css/images/controls.png ADDED
Binary file
tx-toolkit/css/images/loading.gif ADDED
Binary file
tx-toolkit/css/images/loading_background.png ADDED
Binary file
tx-toolkit/css/images/overlay.png ADDED
Binary file
tx-toolkit/css/owl.carousel.css ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Core Owl Carousel CSS File
3
+ * v1.3.3
4
+ */
5
+
6
+ /* clearfix */
7
+ .owl-carousel .owl-wrapper:after {
8
+ content: ".";
9
+ display: block;
10
+ clear: both;
11
+ visibility: hidden;
12
+ line-height: 0;
13
+ height: 0;
14
+ }
15
+ /* display none until init */
16
+ .owl-carousel{
17
+ display: none;
18
+ position: relative;
19
+ width: 100%;
20
+ -ms-touch-action: pan-y;
21
+ }
22
+ .owl-carousel .owl-wrapper{
23
+ display: none;
24
+ position: relative;
25
+ -webkit-transform: translate3d(0px, 0px, 0px);
26
+ }
27
+ .owl-carousel .owl-wrapper-outer{
28
+ overflow: hidden;
29
+ position: relative;
30
+ width: 100%;
31
+ }
32
+ .owl-carousel .owl-wrapper-outer.autoHeight{
33
+ -webkit-transition: height 500ms ease-in-out;
34
+ -moz-transition: height 500ms ease-in-out;
35
+ -ms-transition: height 500ms ease-in-out;
36
+ -o-transition: height 500ms ease-in-out;
37
+ transition: height 500ms ease-in-out;
38
+ }
39
+
40
+ .owl-carousel .owl-item{
41
+ float: left;
42
+ }
43
+ .owl-controls .owl-page,
44
+ .owl-controls .owl-buttons div{
45
+ cursor: pointer;
46
+ }
47
+ .owl-controls {
48
+ -webkit-user-select: none;
49
+ -khtml-user-select: none;
50
+ -moz-user-select: none;
51
+ -ms-user-select: none;
52
+ user-select: none;
53
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
54
+ }
55
+
56
+ /* mouse grab icon */
57
+ .grabbing {
58
+ cursor:url(grabbing.png) 8 8, move;
59
+ }
60
+
61
+ /* fix */
62
+ .owl-carousel .owl-wrapper,
63
+ .owl-carousel .owl-item{
64
+ -webkit-backface-visibility: hidden;
65
+ -moz-backface-visibility: hidden;
66
+ -ms-backface-visibility: hidden;
67
+ -webkit-transform: translate3d(0,0,0);
68
+ -moz-transform: translate3d(0,0,0);
69
+ -ms-transform: translate3d(0,0,0);
70
+ }
71
+
tx-toolkit/css/owl.theme.css ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Owl Carousel Owl Demo Theme
3
+ * v1.3.3
4
+ */
5
+
6
+ .owl-theme .owl-controls{
7
+ margin-top: 10px;
8
+ text-align: center;
9
+ }
10
+
11
+ /* Styling Next and Prev buttons */
12
+
13
+ .owl-theme .owl-controls .owl-buttons div{
14
+ color: #FFF;
15
+ display: inline-block;
16
+ zoom: 1;
17
+ *display: inline;/*IE7 life-saver */
18
+ margin: 5px;
19
+ padding: 3px 10px;
20
+ font-size: 12px;
21
+ -webkit-border-radius: 30px;
22
+ -moz-border-radius: 30px;
23
+ border-radius: 30px;
24
+ background: #869791;
25
+ filter: Alpha(Opacity=50);/*IE7 fix*/
26
+ opacity: 0.5;
27
+ }
28
+ /* Clickable class fix problem with hover on touch devices */
29
+ /* Use it for non-touch hover action */
30
+ .owl-theme .owl-controls.clickable .owl-buttons div:hover{
31
+ filter: Alpha(Opacity=100);/*IE7 fix*/
32
+ opacity: 1;
33
+ text-decoration: none;
34
+ }
35
+
36
+ /* Styling Pagination*/
37
+
38
+ .owl-theme .owl-controls .owl-page{
39
+ display: inline-block;
40
+ zoom: 1;
41
+ *display: inline;/*IE7 life-saver */
42
+ }
43
+ .owl-theme .owl-controls .owl-page span{
44
+ display: block;
45
+ width: 12px;
46
+ height: 12px;
47
+ margin: 5px 7px;
48
+ filter: Alpha(Opacity=50);/*IE7 fix*/
49
+ opacity: 0.5;
50
+ -webkit-border-radius: 20px;
51
+ -moz-border-radius: 20px;
52
+ border-radius: 20px;
53
+ background: #869791;
54
+ }
55
+
56
+ .owl-theme .owl-controls .owl-page.active span,
57
+ .owl-theme .owl-controls.clickable .owl-page:hover span{
58
+ filter: Alpha(Opacity=100);/*IE7 fix*/
59
+ opacity: 1;
60
+ }
61
+
62
+ /* If PaginationNumbers is true */
63
+
64
+ .owl-theme .owl-controls .owl-page span.owl-numbers{
65
+ height: auto;
66
+ width: auto;
67
+ color: #FFF;
68
+ padding: 2px 10px;
69
+ font-size: 12px;
70
+ -webkit-border-radius: 30px;
71
+ -moz-border-radius: 30px;
72
+ border-radius: 30px;
73
+ }
74
+
75
+ /* preloading images */
76
+ .owl-item.loading{
77
+ min-height: 150px;
78
+ background: url(AjaxLoader.gif) no-repeat center center
79
+ }
tx-toolkit/css/owl.transitions.css ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Owl Carousel CSS3 Transitions
3
+ * v1.3.2
4
+ */
5
+
6
+ .owl-origin {
7
+ -webkit-perspective: 1200px;
8
+ -webkit-perspective-origin-x : 50%;
9
+ -webkit-perspective-origin-y : 50%;
10
+ -moz-perspective : 1200px;
11
+ -moz-perspective-origin-x : 50%;
12
+ -moz-perspective-origin-y : 50%;
13
+ perspective : 1200px;
14
+ }
15
+ /* fade */
16
+ .owl-fade-out {
17
+ z-index: 10;
18
+ -webkit-animation: fadeOut .7s both ease;
19
+ -moz-animation: fadeOut .7s both ease;
20
+ animation: fadeOut .7s both ease;
21
+ }
22
+ .owl-fade-in {
23
+ -webkit-animation: fadeIn .7s both ease;
24
+ -moz-animation: fadeIn .7s both ease;
25
+ animation: fadeIn .7s both ease;
26
+ }
27
+ /* backSlide */
28
+ .owl-backSlide-out {
29
+ -webkit-animation: backSlideOut 1s both ease;
30
+ -moz-animation: backSlideOut 1s both ease;
31
+ animation: backSlideOut 1s both ease;
32
+ }
33
+ .owl-backSlide-in {
34
+ -webkit-animation: backSlideIn 1s both ease;
35
+ -moz-animation: backSlideIn 1s both ease;
36
+ animation: backSlideIn 1s both ease;
37
+ }
38
+ /* goDown */
39
+ .owl-goDown-out {
40
+ -webkit-animation: scaleToFade .7s ease both;
41
+ -moz-animation: scaleToFade .7s ease both;
42
+ animation: scaleToFade .7s ease both;
43
+ }
44
+ .owl-goDown-in {
45
+ -webkit-animation: goDown .6s ease both;
46
+ -moz-animation: goDown .6s ease both;
47
+ animation: goDown .6s ease both;
48
+ }
49
+ /* scaleUp */
50
+ .owl-fadeUp-in {
51
+ -webkit-animation: scaleUpFrom .5s ease both;
52
+ -moz-animation: scaleUpFrom .5s ease both;
53
+ animation: scaleUpFrom .5s ease both;
54
+ }
55
+
56
+ .owl-fadeUp-out {
57
+ -webkit-animation: scaleUpTo .5s ease both;
58
+ -moz-animation: scaleUpTo .5s ease both;
59
+ animation: scaleUpTo .5s ease both;
60
+ }
61
+ /* Keyframes */
62
+ /*empty*/
63
+ @-webkit-keyframes empty {
64
+ 0% {opacity: 1}
65
+ }
66
+ @-moz-keyframes empty {
67
+ 0% {opacity: 1}
68
+ }
69
+ @keyframes empty {
70
+ 0% {opacity: 1}
71
+ }
72
+ @-webkit-keyframes fadeIn {
73
+ 0% { opacity:0; }
74
+ 100% { opacity:1; }
75
+ }
76
+ @-moz-keyframes fadeIn {
77
+ 0% { opacity:0; }
78
+ 100% { opacity:1; }
79
+ }
80
+ @keyframes fadeIn {
81
+ 0% { opacity:0; }
82
+ 100% { opacity:1; }
83
+ }
84
+ @-webkit-keyframes fadeOut {
85
+ 0% { opacity:1; }
86
+ 100% { opacity:0; }
87
+ }
88
+ @-moz-keyframes fadeOut {
89
+ 0% { opacity:1; }
90
+ 100% { opacity:0; }
91
+ }
92
+ @keyframes fadeOut {
93
+ 0% { opacity:1; }
94
+ 100% { opacity:0; }
95
+ }
96
+ @-webkit-keyframes backSlideOut {
97
+ 25% { opacity: .5; -webkit-transform: translateZ(-500px); }
98
+ 75% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(-200%); }
99
+ 100% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(-200%); }
100
+ }
101
+ @-moz-keyframes backSlideOut {
102
+ 25% { opacity: .5; -moz-transform: translateZ(-500px); }
103
+ 75% { opacity: .5; -moz-transform: translateZ(-500px) translateX(-200%); }
104
+ 100% { opacity: .5; -moz-transform: translateZ(-500px) translateX(-200%); }
105
+ }
106
+ @keyframes backSlideOut {
107
+ 25% { opacity: .5; transform: translateZ(-500px); }
108
+ 75% { opacity: .5; transform: translateZ(-500px) translateX(-200%); }
109
+ 100% { opacity: .5; transform: translateZ(-500px) translateX(-200%); }
110
+ }
111
+ @-webkit-keyframes backSlideIn {
112
+ 0%, 25% { opacity: .5; -webkit-transform: translateZ(-500px) translateX(200%); }
113
+ 75% { opacity: .5; -webkit-transform: translateZ(-500px); }
114
+ 100% { opacity: 1; -webkit-transform: translateZ(0) translateX(0); }
115
+ }
116
+ @-moz-keyframes backSlideIn {
117
+ 0%, 25% { opacity: .5; -moz-transform: translateZ(-500px) translateX(200%); }
118
+ 75% { opacity: .5; -moz-transform: translateZ(-500px); }
119
+ 100% { opacity: 1; -moz-transform: translateZ(0) translateX(0); }
120
+ }
121
+ @keyframes backSlideIn {
122
+ 0%, 25% { opacity: .5; transform: translateZ(-500px) translateX(200%); }
123
+ 75% { opacity: .5; transform: translateZ(-500px); }
124
+ 100% { opacity: 1; transform: translateZ(0) translateX(0); }
125
+ }
126
+ @-webkit-keyframes scaleToFade {
127
+ to { opacity: 0; -webkit-transform: scale(.8); }
128
+ }
129
+ @-moz-keyframes scaleToFade {
130
+ to { opacity: 0; -moz-transform: scale(.8); }
131
+ }
132
+ @keyframes scaleToFade {
133
+ to { opacity: 0; transform: scale(.8); }
134
+ }
135
+ @-webkit-keyframes goDown {
136
+ from { -webkit-transform: translateY(-100%); }
137
+ }
138
+ @-moz-keyframes goDown {
139
+ from { -moz-transform: translateY(-100%); }
140
+ }
141
+ @keyframes goDown {
142
+ from { transform: translateY(-100%); }
143
+ }
144
+
145
+ @-webkit-keyframes scaleUpFrom {
146
+ from { opacity: 0; -webkit-transform: scale(1.5); }
147
+ }
148
+ @-moz-keyframes scaleUpFrom {
149
+ from { opacity: 0; -moz-transform: scale(1.5); }
150
+ }
151
+ @keyframes scaleUpFrom {
152
+ from { opacity: 0; transform: scale(1.5); }
153
+ }
154
+
155
+ @-webkit-keyframes scaleUpTo {
156
+ to { opacity: 0; -webkit-transform: scale(1.5); }
157
+ }
158
+ @-moz-keyframes scaleUpTo {
159
+ to { opacity: 0; -moz-transform: scale(1.5); }
160
+ }
161
+ @keyframes scaleUpTo {
162
+ to { opacity: 0; transform: scale(1.5); }
163
+ }
tx-toolkit/css/tx-admin-style.css ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+
3
+ .form-table .tx-heading {
4
+ margin: 0px;
5
+ padding: 0px;
6
+ }
7
+
8
+ .form-table .tx-heading h2 {
9
+ margin: 0px;
10
+ padding: 0px;
11
+ padding-bottom: 4px;
12
+ border-bottom: 1px solid #CCC;
13
+ margin-bottom: 12px;
14
+ }
15
+
16
+
17
+ .wp_themeSkin span.mceIcon,
18
+ .wp_themeSkin img.mceIcon,
19
+ .wp_themeSkin .mce_txshortcodes.mceButton,
20
+ .wp_themeSkin .mce_txshortcodes span.mceIcon,
21
+ .wp_themeSkin .mce_txshortcodes img.mceIcon {
22
+ width: 96px;
23
+ }
24
+
25
+ button .mce-i-tx-mce-icon {
26
+ display: block;
27
+ background-image: URL(../tx-shortcode.png);
28
+ }
29
+
30
+ /**/
31
+ #txshortcodes-table td.shortcode-list {
32
+ border: 1px solid #CCC;
33
+ padding-bottom: 8px;
34
+ padding-top: 8px;
35
+ margin-bottom: 1px;
36
+ }
37
+
38
+ #txshortcodes-table td.shortcode-list span {
39
+ cursor: pointer;
40
+ color: #676767;
41
+ }
42
+
43
+ #txshortcodes-table td.shortcode-list span:hover {
44
+ color: #373737;
45
+ }
46
+
47
+ .tx-sh-form small {
48
+ color: #777;
49
+ }
50
+
51
+ ul.tx-fa-icons > li {
52
+ display: block;
53
+ float: left;
54
+ margin-right: 1px;
55
+ margin-bottom: 1px;
56
+ padding: 4px;
57
+ border: 1px solid #e7e7e7;
58
+ width: 20px;
59
+ height: 20px;
60
+ line-height: 20px;
61
+ text-align: center;
62
+ color: #676767;
63
+ cursor: pointer;
64
+ }
65
+
66
+ ul.tx-fa-icons > li:hover {
67
+ color: #373737;
68
+ }
69
+
70
+ ul.tx-fa-icons > li.active {
71
+ border: 1px solid #069;
72
+ }
73
+
74
+ .tnext-bottom-lebel {
75
+ text-align: right;
76
+ font-size: 12px;
77
+ color: #999;
78
+ }
79
+
80
+ .form-table select,
81
+ .form-table input[type="text"],
82
+ .form-table input[type="number"],
83
+ .form-table textarea {
84
+ width: 96%;
85
+ }
86
+
87
+ .form-table textarea,
88
+ .form-table input[type="text"],
89
+ .form-table input[type="number"] {
90
+ padding: 8px 4px;
91
+ }
92
+
93
+ .form-table select {
94
+ height: 32px;
95
+ line-height: 32px;
96
+ }
97
+
98
+ .form-table {
99
+ }
100
+
101
+ .awedrop {
102
+ max-height: 320px;
103
+ overflow-y: scroll;
104
+ max-width: 400px;
105
+ }
106
+
107
+ .tx-sh-form {
108
+ margin-bottom: 32px;
109
+ overflow: hidden;
110
+ }
111
+
112
+ #menu-posts-portfolio .wp-menu-image {}
113
+
114
+ .tx-form-wrap {
115
+ min-width: 600px;
116
+ }
117
+
118
+ #tx-shortcode-form {
119
+ padding: 12px 16px;
120
+ min-width: 480px;
121
+ }
122
+
123
+ #tx-column-form,
124
+ #tx-devider-form,
125
+ #tx-testimonial-form,
126
+ #tx-button-form,
127
+ #tx-calltoact-form,
128
+ #tx-service-form,
129
+ #tx-portfolio-form,
130
+ #tx-blog-form,
131
+ #tx-spacer-form {
132
+ padding: 12px 16px;
133
+ min-width: 480px;
134
+ }
tx-toolkit/css/tx-style.css ADDED
@@ -0,0 +1,784 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*** templatesnext toolkit Shortcode - content elements ***/
2
+
3
+ /* Heading
4
+ ---------------------------------------------------------------*/
5
+
6
+ .tx-heading-style-default {
7
+ padding: 2px 0;
8
+ }
9
+ .tx-heading-style-default .tx-heading-inner {
10
+ padding: 0px;
11
+ }
12
+ .tx-heading.tx-heading-align-left { text-align: left; }
13
+ .tx-heading.tx-heading-align-left .tx-heading-inner { padding-left: 0px; }
14
+ .tx-heading.tx-heading-align-right { text-align: right; }
15
+ .tx-heading.tx-heading-align-right .tx-heading-inner { padding-right: 0px; }
16
+ .tx-heading.tx-heading-align-center { text-align: center; }
17
+
18
+ /* Divider
19
+ ---------------------------------------------------------------*/
20
+
21
+ .tx-divider {
22
+ clear: both;
23
+ position: relative;
24
+ height: 1px;
25
+ margin: 2.5em 0 1.5em 0;
26
+ background: #999;
27
+ background-color: #e7e7e7;
28
+ }
29
+ .tx-divider a {
30
+ position: absolute;
31
+ right: 0;
32
+ bottom: 5px;
33
+ display: inline-block;
34
+ color: #777;
35
+ font-size: 12px;
36
+ text-decoration: none;
37
+ }
38
+
39
+ /* Spacer
40
+ ---------------------------------------------------------------*/
41
+
42
+ .tx-spacer {
43
+ display: block;
44
+ height: 0;
45
+ clear: both;
46
+ overflow: hidden;
47
+ }
48
+ .tx-spacer-5 { height: 5px }
49
+ .tx-spacer-10 { height: 10px }
50
+ .tx-spacer-20 { height: 20px }
51
+ .tx-spacer-30 { height: 30px }
52
+ .tx-spacer-40 { height: 40px }
53
+
54
+ /* Highlight
55
+ ---------------------------------------------------------------*/
56
+
57
+ .tx-highlight {
58
+ display: inline;
59
+ padding: 1px 0;
60
+ }
61
+
62
+
63
+ /* List
64
+ ---------------------------------------------------------------*/
65
+
66
+ .tx-list ul {
67
+ list-style: none !important;
68
+ margin: 0 0 1.5em 0 !important;
69
+ padding: 0 !important;
70
+ }
71
+ .tx-list ul li {
72
+ position: relative;
73
+ list-style-type: none !important;
74
+ display: block !important;
75
+ line-height: 1.3em;
76
+ margin: 0 !important;
77
+ padding: 4px 0 4px 2em !important;
78
+ }
79
+ .tx-list ul li > img {
80
+ position: absolute;
81
+ left: 0;
82
+ top: 4px;
83
+ width: 1.3em;
84
+ height: 1.3em;
85
+ padding: 0;
86
+ margin: 0;
87
+ border: none;
88
+ }
89
+ .tx-list ul li i {
90
+ position: absolute;
91
+ left: 0;
92
+ top: 4px;
93
+ width: 1.3em;
94
+ height: 1.3em;
95
+ line-height: 1.3em;
96
+ text-align: center;
97
+ }
98
+
99
+ /* Button
100
+ ---------------------------------------------------------------*/
101
+
102
+ .tx-button {
103
+ display: inline-block !important;
104
+ text-align: center;
105
+ text-decoration: none !important;
106
+ box-sizing: content-box !important;
107
+ -moz-box-sizing: content-box !important;
108
+ -webkit-box-sizing: content-box !important;
109
+ transition: all .2s;
110
+ -o-transition: all .2s;
111
+ -ie-transition: all .2s;
112
+ -moz-transition: all .2s;
113
+ -webkit-transition: all .2s;
114
+ }
115
+ .tx-button-wide {
116
+ display: block !important;
117
+ margin: 1em 0;
118
+ }
119
+ .tx-button-center { text-align: center; }
120
+ .tx-button span {
121
+ display: block !important;
122
+ text-decoration: none !important;
123
+ box-sizing: content-box !important;
124
+ -moz-box-sizing: content-box !important;
125
+ -webkit-box-sizing: content-box !important;
126
+ transition: all .2s;
127
+ -o-transition: all .2s;
128
+ -ie-transition: all .2s;
129
+ -moz-transition: all .2s;
130
+ -webkit-transition: all .2s;
131
+ }
132
+ .tx-button img {
133
+ border: none !important;
134
+ vertical-align: middle !important;
135
+ margin: -0.2em 0.4em 0 -0.3em !important;
136
+ box-shadow: none !important;
137
+ -moz-box-shadow: none !important;
138
+ -webkit-box-shadow: none !important;
139
+ }
140
+ .tx-button i {
141
+ display: inline-block;
142
+ width: 1em;
143
+ height: 1em;
144
+ margin: 0 0.5em 0 0 !important;
145
+ text-align: center;
146
+ line-height: 1em;
147
+ }
148
+ .tx-button.tx-button-float-icon img { margin: 0 0.5em !important }
149
+ .tx-button small {
150
+ display: block;
151
+ margin: -0.2em 0 0 0;
152
+ color: inherit;
153
+ text-align: center;
154
+ font-style: normal;
155
+ font-size: 0.8em;
156
+ line-height: 1;
157
+ opacity: 0.7;
158
+ filter: alpha(opacity=70);
159
+ }
160
+ .tx-button-style-default {
161
+ border-width: 0px;
162
+ border-style: solid;
163
+ }
164
+
165
+ .tx-button-style-default:hover {
166
+ background-color: #333333!important;
167
+ color: #FFFFFF!important;
168
+ }
169
+
170
+
171
+ .tx-button-style-default span {
172
+ border-top-width: 0px;
173
+ border-bottom-width: 0px;
174
+ border-top-style: solid;
175
+ border-bottom-style: solid;
176
+ }
177
+
178
+ .tx-button-style-stroked span {
179
+ margin: 1px;
180
+ border: 1px dashed #fff !important;
181
+ }
182
+ .tx-button-style-stroked:hover span {
183
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
184
+ filter: alpha(opacity=70);
185
+ -moz-opacity: 0.7;
186
+ -khtml-opacity: 0.7;
187
+ opacity: 0.7;
188
+ }
189
+ .tx-button-style-3d {
190
+ border-bottom-style: solid;
191
+ border-bottom-width: 6px;
192
+ }
193
+ .tx-button-style-3d span {
194
+ border-bottom-style: solid;
195
+ border-bottom-width: 1px;
196
+ }
197
+ .tx-button-style-3d:hover {
198
+ position: relative;
199
+ top: 3px;
200
+ border-bottom-width: 3px;
201
+ }
202
+
203
+ .tx-button a:hover {
204
+ background-color: #373737;
205
+ color: #ffffff;
206
+ }
207
+
208
+ /* Row + Column
209
+ ---------------------------------------------------------------*/
210
+
211
+ .tx-row {
212
+ clear: both;
213
+ zoom: 1;
214
+ margin-bottom: 24px;
215
+ }
216
+ .tx-row:before,
217
+ .tx-row:after {
218
+ display: table;
219
+ content: "";
220
+ }
221
+ .tx-row:after { clear: both; }
222
+ .tx-column {
223
+ display: block;
224
+ margin: 0 4% 0 0;
225
+ float: left;
226
+ -webkit-box-sizing: border-box;
227
+ -moz-box-sizing: border-box;
228
+ box-sizing: border-box;
229
+ }
230
+ .tx-column-last { margin-right: 0; }
231
+ .tx-row .tx-column { margin: 0 0 0 4%; }
232
+ .tx-row .tx-column .tx-column { margin: 0px!important; display: inline-block; width: 49%; }
233
+ .tx-row .tx-column.tx-column-size-1-1 { margin-left: 0; margin-right: 0; }
234
+ .tx-row .tx-column:first-child { margin-left: 0; }
235
+ .tx-column-centered {
236
+ margin-right: auto !important;
237
+ margin-left: auto !important;
238
+ float: none !important;
239
+ }
240
+ .tx-column img,
241
+ .tx-column iframe,
242
+ .tx-column object,
243
+ .tx-column embed { max-width: 100%; }
244
+ @media only screen {
245
+ [class*="nx-column"] + [class*="nx-column"]:last-child { float: right; }
246
+ }
247
+
248
+ .tx-column {
249
+ display: block;
250
+ margin: 0 0 0 0;
251
+ padding: 0px 16px;
252
+ }
253
+ .tx-column-last { padding-right: 0px; }
254
+ .tx-row .tx-column { margin: 0%; }
255
+ .tx-row .tx-column.tx-column-size-1-1 { padding-left: 0; padding-right: 0; }
256
+ .tx-row .tx-column:first-child { padding-left: 0px; }
257
+ .tx-row .tx-column:last-child { padding-right: 0px; }
258
+
259
+ .tx-column-size-1-1 { width: 100%; }
260
+ .tx-column-size-1-2 { width: 50%; }
261
+ .tx-column-size-1-3 { width: 33.33%; }
262
+ .tx-column-size-2-3 { width: 66.66%; }
263
+ .tx-column-size-1-4 { width: 25%; }
264
+ .tx-column-size-3-4 { width: 75%; }
265
+ .tx-column-size-1-5 { width: 20%; }
266
+ .tx-column-size-2-5 { width: 40%; }
267
+ .tx-column-size-3-5 { width: 60%; }
268
+ .tx-column-size-4-5 { width: 80%; }
269
+ .tx-column-size-1-6 { width: 16.66%; }
270
+ .tx-column-size-5-6 { width: 83.33%; }
271
+
272
+ /* Styles for screens that are less than 768px */
273
+ @media only screen and (max-width: 768px) {
274
+ .tx-column {
275
+ width: 100% !important;
276
+ margin: 0 0 24px 0 !important;
277
+ float: none !important;
278
+ }
279
+
280
+ .tx-row .tx-column:last-child,
281
+ .fancy-inner .tx-column:last-child {
282
+ margin-bottom: 0 !important;
283
+ }
284
+ }
285
+
286
+ .site-content .tx-row.lined div.tx-column {
287
+ border: 1px solid #999;
288
+ }
289
+
290
+
291
+
292
+ /* portfolio Shortcode css Starts */
293
+
294
+
295
+ .tx-col-1-2 {
296
+ width: 50%;
297
+ display: block;
298
+ float: left;
299
+ }
300
+ .tx-col-1-3 {
301
+ width: 33.3%;
302
+ }
303
+ .tx-col-2-3 {
304
+ width: 66.6%;
305
+ }
306
+ .tx-col-1-4 {
307
+ width: 25%;
308
+ }
309
+
310
+ .tx-post-row {
311
+ display: block;
312
+ position: relative;
313
+ clear: both;
314
+ width : 100%;
315
+ width: calc(100% + 32px);
316
+ margin-left: -16px;
317
+ margin-right: -16px;
318
+ }
319
+
320
+ .tx-post-row:after {
321
+ content: " ";
322
+ display: block;
323
+ clear: both;
324
+ height: 0px;
325
+ }
326
+
327
+ .tx-post-col-1 {
328
+ display: block;
329
+ float: none;
330
+ padding-right: 16px;
331
+ padding-left: 16px;
332
+ width: 100%;
333
+ }
334
+ .tx-post-col-2 {
335
+ display: block;
336
+ float: left;
337
+ padding-left: 16px;
338
+ padding-right: 16px;
339
+ width: 50%;
340
+ }
341
+ .tx-post-col-3 {
342
+ display: block;
343
+ float: left;
344
+ padding-left: 16px;
345
+ padding-right: 16px;
346
+ width: 33.33%;
347
+ }
348
+ .tx-post-col-4 {
349
+ display: block;
350
+ float: left;
351
+ padding-left: 16px;
352
+ padding-right: 16px;
353
+ width: 25%;
354
+ }
355
+
356
+ .tx-carousel .tx-post-col-1,
357
+ .tx-carousel .tx-post-col-2,
358
+ .tx-carousel .tx-post-col-3,
359
+ .tx-carousel .tx-post-col-4 {
360
+ width: auto;
361
+ }
362
+
363
+ .tx-post-row .tx-portfolio-item .tx-border-box {
364
+ padding-bottom: 32px;
365
+ }
366
+
367
+ .tx-post-row .tx-folio-title {
368
+ font-size: 24px;
369
+ font-weight: 500;
370
+ margin: 12px 0px;
371
+ margin-bottom: 2px;
372
+ }
373
+
374
+ .tx-post-row .tx-folio-title a,
375
+ .tx-post-row .tx-folio-title a:visited {
376
+ color: #565656;
377
+ text-decoration: none;
378
+ }
379
+
380
+ .tx-folio-category {
381
+ display: block;
382
+ color: #999;
383
+ font-size: 12px;
384
+ margin-bottom: 16px;
385
+ }
386
+
387
+ .tx-post-row a.moretag,
388
+ .tx-post-row a.moretag:visited {
389
+ display: block;
390
+ clear: both;
391
+ text-align: right;
392
+ text-decoration: none;
393
+ padding-top: 6px;
394
+ }
395
+
396
+ .tx-post-row a.moretag:hover {
397
+ text-decoration: underline;
398
+ }
399
+
400
+ .tx-post-row .tx-border-box .tx-folio-img {
401
+ overflow: hidden;
402
+ }
403
+
404
+ .tx-post-row .tx-portfolio-item img.folio-img {
405
+ width: 100%;
406
+ transition-property: all;
407
+ transition-duration: 0.4s;
408
+ transition-timing-function: ease-in-out;
409
+ transition-delay: 0.0s;
410
+ }
411
+
412
+ .tx-post-row .tx-portfolio-item:hover img.folio-img {
413
+ transform: scale(1.1);
414
+ }
415
+
416
+ .tx-subtitle {
417
+ font-size: 20px;
418
+ font-weight: 500;
419
+ }
420
+
421
+ .tx-blog-img {
422
+ margin-bottom: 16px;
423
+ }
424
+
425
+ .tx-blog .tx-blog-item .tx-border-box h3.tx-folio-title a {}
426
+
427
+ .tx-blog .tx-blog-item {
428
+ margin-bottom: 32px;
429
+ }
430
+
431
+ .tx-blog-item .blog-image {
432
+ width: 100%;
433
+ }
434
+
435
+ .tx-blog .tx-blog-item .tx-post-title {
436
+ padding: 0px;
437
+ margin: 0px;
438
+ padding-bottom: 4px;
439
+ }
440
+
441
+ .tx-blog .tx-blog-item h3.tx-post-title a {
442
+ color: #565656;
443
+ font-weight: 500;
444
+ text-decoration: none;
445
+ }
446
+ .tx-category {
447
+ margin-bottom: 16px;
448
+ font-size: 12px;
449
+ color: #999;
450
+ }
451
+
452
+ .tx-category a {
453
+ text-decoration: none;
454
+ }
455
+
456
+ .tx-meta {
457
+ padding-top: 8px;
458
+ font-size: 11px;
459
+ color: #999;
460
+ }
461
+
462
+ .tx-post-content {
463
+ padding: 0px 32px 32px 32px;
464
+ }
465
+
466
+ .tx-blog .tx-blog-item .tx-border-box {
467
+ border: 1px solid #e7e7e7;
468
+ }
469
+
470
+ /* testimonials */
471
+ .entry-content .owl-theme .owl-controls .owl-page span {
472
+ background-color: rgba(0,0,0,0.5);
473
+ }
474
+
475
+ .tx-testimonials {
476
+ display: block;
477
+ padding: 32px;
478
+ background-color: #CCC;
479
+ }
480
+
481
+ .tx-testimonials {
482
+ display: block;
483
+ padding: 32px;
484
+ padding-top: 56px;
485
+ background-color: #f7f7f7;
486
+ }
487
+
488
+ .tx-testimonials:after {
489
+ position: absolute;
490
+ left: calc(50% - 15px);
491
+ top: 16px;
492
+ content: "\f10d";
493
+ display: inline-block;
494
+ font-family: FontAwesome;
495
+ font-style: normal;
496
+ font-weight: normal;
497
+ line-height: 1;
498
+ -webkit-font-smoothing: antialiased;
499
+ -moz-osx-font-smoothing: grayscale;
500
+ font-size: 32px;
501
+ width: 32px;
502
+ text-align: center;
503
+ color: #999;
504
+ }
505
+
506
+ .tx-testimonials .tx-testi-item {
507
+ text-align: center;
508
+ }
509
+
510
+ .tx-testimonials .tx-testi-name {
511
+ display: block;
512
+ font-weight: 700;
513
+ color: #666;
514
+ padding-top: 16px;
515
+ }
516
+ .tx-testimonials .tx-testi-desig {
517
+ display: inline-block;
518
+ font-size: 12px;
519
+ color: #999;
520
+ padding-right: 6px;
521
+ }
522
+ .tx-testimonials .tx-testi-org {
523
+ display: inline-block;
524
+ font-size: 12px;
525
+ color: #999;
526
+ }
527
+
528
+ .tx-button {
529
+ display: inline-block;
530
+ padding: 10px 16px;
531
+ border-radius: 3px;
532
+ }
533
+
534
+ .tx-button:hover {
535
+ background-color: #373737!important;
536
+ color: #FFFFFF!important;
537
+ }
538
+
539
+ .tx-cta {
540
+ display: block;
541
+ clear: both;
542
+ padding: 32px;
543
+ margin-bottom: 32px;
544
+ background-color: #f7f7f7;
545
+ border-left: 6px solid #06C;
546
+ color: #474747;
547
+ }
548
+
549
+ .tx-cta .tx-cta-text {
550
+ display: inline-block;
551
+ font-size: 24px;
552
+ line-height: 40px;
553
+ font-weight: 500;
554
+ }
555
+
556
+ .tx-cta a.cta-button,
557
+ .tx-cta a.cta-button:visited {
558
+ display: block;
559
+ float: right;
560
+ line-height: 40px;
561
+ color: #FFF;
562
+ padding-left: 16px;
563
+ padding-right: 16px;
564
+ border-radius: 3px;
565
+ text-decoration: none;
566
+ transition-property: all;
567
+ transition-duration: 0.4s;
568
+ transition-timing-function: ease-in-out;
569
+ transition-delay: 0.0s;
570
+ }
571
+
572
+ .tx-cta a.cta-button:hover {
573
+ background-color: #373737;
574
+ color: #ffffff;
575
+ }
576
+
577
+ .tx-service {}
578
+ .tx-service-icon {
579
+ display: block;
580
+ text-align: center;
581
+ }
582
+
583
+
584
+
585
+ .tx-animate,
586
+ .tx-service-icon span,
587
+ .tx-service-icon span i,
588
+ .tx-service-icon span i:before,
589
+ .tx-service-icon span i:after,
590
+ .tx-carousel .owl-controls .owl-buttons .owl-prev,
591
+ .tx-carousel .owl-controls .owl-buttons .owl-next {
592
+ transition-property: all;
593
+ transition-duration: 0.4s;
594
+ transition-timing-function: ease-in-out;
595
+ transition-delay: 0.0s;
596
+ }
597
+
598
+ .tx-service-icon span {
599
+ display: inline-block;
600
+ width: 88px;
601
+ height: 88px;
602
+ border: 2px solid #069;
603
+ border-radius: 50%;
604
+ text-align: center;
605
+ font-size: 48px;
606
+ line-height: 88px;
607
+ color: #069;
608
+ }
609
+
610
+ .tx-service-icon span {
611
+ border: 2px solid #069;
612
+ }
613
+ .tx-service-icon span i {
614
+ color: #069;
615
+ line-height: 88px;
616
+ }
617
+
618
+ .tx-service-icon span i:before {
619
+ line-height: 88px;
620
+ }
621
+
622
+ .tx-service:hover .tx-service-icon span {
623
+ background-color: #069;
624
+ }
625
+ .tx-service:hover .tx-service-icon span i {
626
+ color: #FFF;
627
+ }
628
+
629
+ .tx-service-title {
630
+ text-align: center;
631
+ font-size: 24px;
632
+ padding: 6px 0px 16px 0px;
633
+ }
634
+ .tx-service-text {
635
+ text-align: center;
636
+ padding-bottom: 32px;
637
+ }
638
+
639
+
640
+ /* owl carousel */
641
+ .tx-carousel .owl-controls .owl-buttons .owl-prev {}
642
+
643
+ .tx-carousel .owl-controls .owl-buttons {
644
+ position: absolute;
645
+ width: 100%;
646
+ top: 50%;
647
+ top: calc(50% - 40px);
648
+ left: 0px;
649
+ }
650
+ .tx-carousel .owl-controls .owl-buttons .owl-prev {
651
+ position: absolute;
652
+ left: 48px;
653
+ display: block;
654
+ width: 40px;
655
+ height: 40px;
656
+ line-height: 40px;
657
+ text-align: center;
658
+ color: #fff;
659
+ background-color: rgba(0,0,0,0.5);
660
+ border-radius: 0px 3px 3px 0px;
661
+ opacity: 0;
662
+ }
663
+ .tx-carousel .owl-controls .owl-buttons .owl-next {
664
+ position: absolute;
665
+ right: 48px;
666
+ display: block;
667
+ width: 40px;
668
+ height: 40px;
669
+ line-height: 40px;
670
+ text-align: center;
671
+ color: #fff;
672
+ background-color: rgba(0,0,0,0.5);
673
+ border-radius: 3px 0px 0px 3px;
674
+ opacity: 0;
675
+ }
676
+
677
+
678
+ .tx-carousel:hover .owl-controls .owl-buttons .owl-prev {
679
+ left: 16px;
680
+ opacity: 1;
681
+ }
682
+ .tx-carousel:hover .owl-controls .owl-buttons .owl-next {
683
+ right: 16px;
684
+ opacity: 1;
685
+ }
686
+
687
+
688
+ .tx-carousel .owl-controls .owl-buttons .owl-prev span {
689
+ display: block;
690
+ width: 40px;
691
+ height: 40px;
692
+ line-height: 40px;
693
+ text-align: center;
694
+ color: #fff;
695
+ }
696
+ .tx-carousel .owl-controls .owl-buttons .owl-next span {
697
+ display: block;
698
+ width: 40px;
699
+ height: 40px;
700
+ line-height: 40px;
701
+ text-align: center;
702
+ color: #fff;
703
+ }
704
+
705
+
706
+ @media (max-width: 999px) {
707
+ .folio-col-1 {
708
+ display: block;
709
+ float: none;
710
+ padding-right: 0px;
711
+ width: 100%;
712
+ }
713
+ .folio-col-2 {
714
+ display: block;
715
+ float: none;
716
+ padding-left: 0px;
717
+ width: 100%;
718
+ }
719
+ .tx-col-1-2 {
720
+ width: 50%;
721
+ display: block;
722
+ float: left;
723
+ }
724
+ .tx-col-1-3 {
725
+ width: 50%;
726
+ }
727
+ .tx-col-1-4 {
728
+ width: 50%;
729
+ }
730
+ .tx-posts.tx-posts-col-2.tx-posts-layout-masonry .post {
731
+ }
732
+
733
+ .tx-posts.tx-posts-col-3.tx-posts-layout-masonry .post {
734
+ width: 50%;
735
+ }
736
+ .tx-posts.tx-posts-col-4.tx-posts-layout-masonry .post {
737
+ width: 33.3%;
738
+ }
739
+
740
+ .tx-post-col-1 {
741
+ float: none;
742
+ width: 100%;
743
+ }
744
+ .tx-post-col-2 {
745
+ float: none;
746
+ width: 100%;
747
+ }
748
+ .tx-post-col-3 {
749
+ float: none;
750
+ width: 100%;
751
+ }
752
+ .tx-post-col-4 {
753
+ float: none;
754
+ width: 100%;
755
+ }
756
+
757
+
758
+ }
759
+
760
+ @media (min-width: 768px) {
761
+
762
+ }
763
+
764
+ @media (max-width: 767px) {
765
+
766
+ }
767
+
768
+ @media (max-width: 999px) {
769
+
770
+ }
771
+
772
+ /* Mobile devices */
773
+ @media (max-width: 359px) {
774
+ .tx-col-1-2 {
775
+ width: 100%;
776
+ }
777
+ .tx-col-1-3 {
778
+ width: 100%;
779
+ }
780
+ .tx-col-1-4 {
781
+ width: 100%;
782
+ }
783
+ }
784
+
tx-toolkit/custom-post-types/portfolio-type.php ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* ************************************************ */
4
+ /* Portfolio Post Type Functions */
5
+ /* ************************************************ */
6
+ //$portfolio_permalinks = get_option( 'nx_portfolio_permalinks' );
7
+
8
+
9
+ add_action('init', 'tx_portfolio_register');
10
+
11
+ function tx_portfolio_register() {
12
+
13
+ //$portfolio_permalinks = get_option( 'nx_portfolio_permalinks' );
14
+ //$portfolio_permalink = empty( $portfolio_permalinks['portfolio_base'] ) ? _x( 'portfolio', 'slug', 'nx-admin' ) : $portfolio_permalinks['portfolio_base'];
15
+ $portfolio_permalink = _x( 'portfolio', 'slug', 'nx-admin' );
16
+
17
+ $labels = array(
18
+ 'name' => _x('Portfolio', 'post type general name', "nx-admin"),
19
+ 'singular_name' => _x('Portfolio Item', 'post type singular name', "nx-admin"),
20
+ 'add_new' => _x('Add New', 'portfolio item', "nx-admin"),
21
+ 'add_new_item' => __('Add New Portfolio Item', "nx-admin"),
22
+ 'edit_item' => __('Edit Portfolio Item', "nx-admin"),
23
+ 'new_item' => __('New Portfolio Item', "nx-admin"),
24
+ 'view_item' => __('View Portfolio Item', "nx-admin"),
25
+ 'search_items' => __('Search Portfolio', "nx-admin"),
26
+ 'not_found' => __('No portfolio items have been added yet', "nx-admin"),
27
+ 'not_found_in_trash' => __('Nothing found in Trash', "nx-admin"),
28
+ 'parent_item_colon' => ''
29
+ );
30
+
31
+ $args = array(
32
+ 'labels' => $labels,
33
+ 'public' => true,
34
+ 'show_ui' => true,
35
+ 'show_in_menu' => true,
36
+ 'show_in_nav_menus' => false,
37
+ 'hierarchical' => false,
38
+ 'rewrite' => $portfolio_permalink != "portfolio" ? array(
39
+ 'slug' => untrailingslashit( $portfolio_permalink ),
40
+ 'with_front' => false,
41
+ 'feeds' => true )
42
+ : false,
43
+ 'supports' => array('title', 'editor', 'thumbnail'),
44
+ 'has_archive' => true,
45
+ 'taxonomies' => array('portfolio-category')
46
+ );
47
+
48
+ register_post_type( 'portfolio' , $args );
49
+
50
+ }
51
+
52
+
53
+ function tx_create_portfolio_taxonomy() {
54
+
55
+ $atts = array(
56
+ "label" => _x('Portfolio Categories', 'category label', "nx-admin"),
57
+ "singular_label" => _x('Portfolio Category', 'category singular label', "nx-admin"),
58
+ 'public' => true,
59
+ 'hierarchical' => true,
60
+ 'show_ui' => true,
61
+ 'show_in_nav_menus' => false,
62
+ 'args' => array( 'orderby' => 'term_order' ),
63
+ 'rewrite' => array(
64
+ //'slug' => empty( $portfolio_permalinks['category_base'] ) ? _x( 'portfolio-category', 'slug', 'nx-admin' ) : $portfolio_permalinks['category_base'],
65
+ 'slug' => _x( 'portfolio-category', 'slug', 'nx-admin' ),
66
+ 'with_front' => false,
67
+ 'hierarchical' => true,
68
+ ),
69
+ 'query_var' => true
70
+ );
71
+
72
+ register_taxonomy( 'portfolio-category', 'portfolio', $atts );
73
+ }
74
+
75
+ add_action( 'init', 'tx_create_portfolio_taxonomy', 0 );
76
+
77
+
78
+
79
+ add_filter("manage_edit-portfolio_columns", "portfolio_edit_columns");
80
+
81
+ function portfolio_edit_columns($columns){
82
+ $columns = array(
83
+ "cb" => "<input type=\"checkbox\" />",
84
+ "thumbnail" => "",
85
+ "title" => __("Portfolio Item", "nx-admin"),
86
+ "description" => __("Description", "nx-admin"),
87
+ "portfolio-category" => __("Categories", "nx-admin")
88
+ );
89
+
90
+ return $columns;
91
+ }
tx-toolkit/custom-post-types/testimonials-type.php ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /* ************************************************ */
4
+ /* Testimonials Post Type Functions */
5
+ /* ************************************************ */
6
+
7
+
8
+ add_action('init', 'tx_testimonials_register');
9
+
10
+ function tx_testimonials_register() {
11
+
12
+ $labels = array(
13
+ 'name' => _x('Testimonials', 'post type general name', "nx-admin"),
14
+ 'singular_name' => _x('Testimonial', 'post type singular name', "nx-admin"),
15
+ 'add_new' => _x('Add New', 'Testimonial', "nx-admin"),
16
+ 'add_new_item' => __('Add New Testimonial', "nx-admin"),
17
+ 'edit_item' => __('Edit Testimonial', "nx-admin"),
18
+ 'new_item' => __('New Testimonial', "nx-admin"),
19
+ 'view_item' => __('View Testimonial', "nx-admin"),
20
+ 'search_items' => __('Search Testimonials', "nx-admin"),
21
+ 'not_found' => __('No testimonials have been added yet', "nx-admin"),
22
+ 'not_found_in_trash' => __('Nothing found in Trash', "nx-admin"),
23
+ 'parent_item_colon' => ''
24
+ );
25
+
26
+ $args = array(
27
+ 'labels' => $labels,
28
+ 'public' => true,
29
+ 'show_ui' => true,
30
+ 'show_in_menu' => true,
31
+ 'show_in_nav_menus' => false,
32
+ 'rewrite' => false,
33
+ 'supports' => array('title', 'editor', 'thumbnail'),
34
+ 'has_archive' => true,
35
+ 'taxonomies' => array('testimonials-category')
36
+ );
37
+
38
+ register_post_type( 'testimonials' , $args );
39
+ }
40
+
41
+
42
+ function tx_create_testimonials_taxonomy() {
43
+
44
+ $atts = array(
45
+ "label" => _x('Testimonial Categories', 'category label', "nx-admin"),
46
+ "singular_label" => _x('Testimonial Category', 'category singular label', "nx-admin"),
47
+ 'public' => true,
48
+ 'hierarchical' => true,
49
+ 'show_ui' => true,
50
+ 'show_in_nav_menus' => false,
51
+ 'args' => array( 'orderby' => 'term_order' ),
52
+ 'rewrite' => false,
53
+ 'query_var' => true
54
+ );
55
+
56
+ register_taxonomy( 'testimonials-category', 'testimonials', $atts );
57
+
58
+ }
59
+ add_action( 'init', 'tx_create_testimonials_taxonomy', 0 );
60
+
61
+
62
+ add_filter("manage_edit-testimonials_columns", "testimonials_edit_columns");
63
+
64
+ function testimonials_edit_columns($columns){
65
+ $columns = array(
66
+ "cb" => "<input type=\"checkbox\" />",
67
+ "thumbnail" => "",
68
+ "title" => __("Testimonial", "nx-admin"),
69
+ "description" => __("Description", "nx-admin"),
70
+ "testimonials-category" => __("Categories", "nx-admin")
71
+ );
72
+
73
+ return $columns;
74
+ }
tx-toolkit/js/jquery.colorbox-min.js ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ /*!
2
+ Colorbox 1.5.14
3
+ license: MIT
4
+ http://www.jacklmoore.com/colorbox
5
+ */
6
+ (function(t,e,i){function n(i,n,o){var r=e.createElement(i);return n&&(r.id=Z+n),o&&(r.style.cssText=o),t(r)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function r(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(n=t(this.el).attr("data-cbox-"+e),void 0!==n?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==X[e]&&(this.cache[e]=X[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function h(t){var e=W.length,i=(z+t)%e;return 0>i?e+i:i}function a(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():o())/100:1)*parseInt(t,10))}function s(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function l(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function d(t){"contains"in y[0]&&!y[0].contains(t.target)&&t.target!==v[0]&&(t.stopPropagation(),y.focus())}function c(t){c.str!==t&&(y.add(v).removeClass(c.str).addClass(t),c.str=t)}function g(e){z=0,e&&e!==!1&&"nofollow"!==e?(W=t("."+te).filter(function(){var i=t.data(this,Y),n=new r(this,i);return n.get("rel")===e}),z=W.index(_.el),-1===z&&(W=W.add(_.el),z=W.length-1)):W=t(_.el)}function u(i){t(e).trigger(i),ae.triggerHandler(i)}function f(i){var o;if(!G){if(o=t(i).data(Y),_=new r(i,o),g(_.get("rel")),!$){$=q=!0,c(_.get("className")),y.css({visibility:"hidden",display:"block",opacity:""}),L=n(se,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),b.css({width:"",height:""}).append(L),D=T.height()+k.height()+b.outerHeight(!0)-b.height(),j=C.width()+H.width()+b.outerWidth(!0)-b.width(),A=L.outerHeight(!0),N=L.outerWidth(!0);var h=a(_.get("initialWidth"),"x"),s=a(_.get("initialHeight"),"y"),l=_.get("maxWidth"),f=_.get("maxHeight");_.w=(l!==!1?Math.min(h,a(l,"x")):h)-N-j,_.h=(f!==!1?Math.min(s,a(f,"y")):s)-A-D,L.css({width:"",height:_.h}),J.position(),u(ee),_.get("onOpen"),O.add(F).hide(),y.focus(),_.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",d,!0),ae.one(re,function(){e.removeEventListener("focus",d,!0)})),_.get("returnFocus")&&ae.one(re,function(){t(_.el).focus()})}var p=parseFloat(_.get("opacity"));v.css({opacity:p===p?p:"",cursor:_.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),_.get("closeButton")?B.html(_.get("close")).appendTo(b):B.appendTo("<div/>"),w()}}function p(){y||(V=!1,E=t(i),y=n(se).attr({id:Y,"class":t.support.opacity===!1?Z+"IE":"",role:"dialog",tabindex:"-1"}).hide(),v=n(se,"Overlay").hide(),S=t([n(se,"LoadingOverlay")[0],n(se,"LoadingGraphic")[0]]),x=n(se,"Wrapper"),b=n(se,"Content").append(F=n(se,"Title"),I=n(se,"Current"),P=t('<button type="button"/>').attr({id:Z+"Previous"}),K=t('<button type="button"/>').attr({id:Z+"Next"}),R=n("button","Slideshow"),S),B=t('<button type="button"/>').attr({id:Z+"Close"}),x.append(n(se).append(n(se,"TopLeft"),T=n(se,"TopCenter"),n(se,"TopRight")),n(se,!1,"clear:left").append(C=n(se,"MiddleLeft"),b,H=n(se,"MiddleRight")),n(se,!1,"clear:left").append(n(se,"BottomLeft"),k=n(se,"BottomCenter"),n(se,"BottomRight"))).find("div div").css({"float":"left"}),M=n(se,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),O=K.add(P).add(I).add(R)),e.body&&!y.parent().length&&t(e.body).append(v,y.append(x,M))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),f(this))}return y?(V||(V=!0,K.click(function(){J.next()}),P.click(function(){J.prev()}),B.click(function(){J.close()}),v.click(function(){_.get("overlayClose")&&J.close()}),t(e).bind("keydown."+Z,function(t){var e=t.keyCode;$&&_.get("escKey")&&27===e&&(t.preventDefault(),J.close()),$&&_.get("arrowKey")&&W[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),K.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+Z,"."+te,i):t("."+te).live("click."+Z,i)),!0):!1}function w(){var e,o,r,h=J.prep,d=++le;if(q=!0,U=!1,u(he),u(ie),_.get("onLoad"),_.h=_.get("height")?a(_.get("height"),"y")-A-D:_.get("innerHeight")&&a(_.get("innerHeight"),"y"),_.w=_.get("width")?a(_.get("width"),"x")-N-j:_.get("innerWidth")&&a(_.get("innerWidth"),"x"),_.mw=_.w,_.mh=_.h,_.get("maxWidth")&&(_.mw=a(_.get("maxWidth"),"x")-N-j,_.mw=_.w&&_.w<_.mw?_.w:_.mw),_.get("maxHeight")&&(_.mh=a(_.get("maxHeight"),"y")-A-D,_.mh=_.h&&_.h<_.mh?_.h:_.mh),e=_.get("href"),Q=setTimeout(function(){S.show()},100),_.get("inline")){var c=t(e);r=t("<div>").hide().insertBefore(c),ae.one(he,function(){r.replaceWith(c)}),h(c)}else _.get("iframe")?h(" "):_.get("html")?h(_.get("html")):s(_,e)?(e=l(_,e),U=new Image,t(U).addClass(Z+"Photo").bind("error",function(){h(n(se,"Error").html(_.get("imgError")))}).one("load",function(){d===le&&setTimeout(function(){var e;t.each(["alt","longdesc","aria-describedby"],function(e,i){var n=t(_.el).attr(i)||t(_.el).attr("data-"+i);n&&U.setAttribute(i,n)}),_.get("retinaImage")&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),_.get("scalePhotos")&&(o=function(){U.height-=U.height*e,U.width-=U.width*e},_.mw&&U.width>_.mw&&(e=(U.width-_.mw)/U.width,o()),_.mh&&U.height>_.mh&&(e=(U.height-_.mh)/U.height,o())),_.h&&(U.style.marginTop=Math.max(_.mh-U.height,0)/2+"px"),W[1]&&(_.get("loop")||W[z+1])&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),U.style.width=U.width+"px",U.style.height=U.height+"px",h(U)},1)}),U.src=e):e&&M.load(e,_.get("data"),function(e,i){d===le&&h("error"===i?n(se,"Error").html(_.get("xhrError")):t(this).contents())})}var v,y,x,b,T,C,H,k,W,E,L,M,S,F,I,R,K,P,B,O,_,D,j,A,N,z,U,$,q,G,Q,J,V,X={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title}},Y="colorbox",Z="cbox",te=Z+"Element",ee=Z+"_open",ie=Z+"_load",ne=Z+"_complete",oe=Z+"_cleanup",re=Z+"_closed",he=Z+"_purge",ae=t("<a/>"),se="div",le=0,de={},ce=function(){function t(){clearTimeout(h)}function e(){(_.get("loop")||W[z+1])&&(t(),h=setTimeout(J.next,_.get("slideshowSpeed")))}function i(){R.html(_.get("slideshowStop")).unbind(s).one(s,n),ae.bind(ne,e).bind(ie,t),y.removeClass(a+"off").addClass(a+"on")}function n(){t(),ae.unbind(ne,e).unbind(ie,t),R.html(_.get("slideshowStart")).unbind(s).one(s,function(){J.next(),i()}),y.removeClass(a+"on").addClass(a+"off")}function o(){r=!1,R.hide(),t(),ae.unbind(ne,e).unbind(ie,t),y.removeClass(a+"off "+a+"on")}var r,h,a=Z+"Slideshow_",s="click."+Z;return function(){r?_.get("slideshow")||(ae.unbind(oe,o),o()):_.get("slideshow")&&W[1]&&(r=!0,ae.one(oe,o),_.get("slideshowAuto")?i():n(),R.show())}}();t[Y]||(t(p),J=t.fn[Y]=t[Y]=function(e,i){var n,o=this;if(e=e||{},t.isFunction(o))o=t("<a/>"),e.open=!0;else if(!o[0])return o;return o[0]?(p(),m()&&(i&&(e.onComplete=i),o.each(function(){var i=t.data(this,Y)||{};t.data(this,Y,t.extend(i,e))}).addClass(te),n=new r(o[0],e),n.get("open")&&f(o[0])),o):o},J.position=function(e,i){function n(){T[0].style.width=k[0].style.width=b[0].style.width=parseInt(y[0].style.width,10)-j+"px",b[0].style.height=C[0].style.height=H[0].style.height=parseInt(y[0].style.height,10)-D+"px"}var r,h,s,l=0,d=0,c=y.offset();if(E.unbind("resize."+Z),y.css({top:-9e4,left:-9e4}),h=E.scrollTop(),s=E.scrollLeft(),_.get("fixed")?(c.top-=h,c.left-=s,y.css({position:"fixed"})):(l=h,d=s,y.css({position:"absolute"})),d+=_.get("right")!==!1?Math.max(E.width()-_.w-N-j-a(_.get("right"),"x"),0):_.get("left")!==!1?a(_.get("left"),"x"):Math.round(Math.max(E.width()-_.w-N-j,0)/2),l+=_.get("bottom")!==!1?Math.max(o()-_.h-A-D-a(_.get("bottom"),"y"),0):_.get("top")!==!1?a(_.get("top"),"y"):Math.round(Math.max(o()-_.h-A-D,0)/2),y.css({top:c.top,left:c.left,visibility:"visible"}),x[0].style.width=x[0].style.height="9999px",r={width:_.w+N+j,height:_.h+A+D,top:l,left:d},e){var g=0;t.each(r,function(t){return r[t]!==de[t]?(g=e,void 0):void 0}),e=g}de=r,e||y.css(r),y.dequeue().animate(r,{duration:e||0,complete:function(){n(),q=!1,x[0].style.width=_.w+N+j+"px",x[0].style.height=_.h+A+D+"px",_.get("reposition")&&setTimeout(function(){E.bind("resize."+Z,J.position)},1),t.isFunction(i)&&i()},step:n})},J.resize=function(t){var e;$&&(t=t||{},t.width&&(_.w=a(t.width,"x")-N-j),t.innerWidth&&(_.w=a(t.innerWidth,"x")),L.css({width:_.w}),t.height&&(_.h=a(t.height,"y")-A-D),t.innerHeight&&(_.h=a(t.innerHeight,"y")),t.innerHeight||t.height||(e=L.scrollTop(),L.css({height:"auto"}),_.h=L.height()),L.css({height:_.h}),e&&L.scrollTop(e),J.position("none"===_.get("transition")?0:_.get("speed")))},J.prep=function(i){function o(){return _.w=_.w||L.width(),_.w=_.mw&&_.mw<_.w?_.mw:_.w,_.w}function a(){return _.h=_.h||L.height(),_.h=_.mh&&_.mh<_.h?_.mh:_.h,_.h}if($){var d,g="none"===_.get("transition")?0:_.get("speed");L.remove(),L=n(se,"LoadedContent").append(i),L.hide().appendTo(M.show()).css({width:o(),overflow:_.get("scrolling")?"auto":"hidden"}).css({height:a()}).prependTo(b),M.hide(),t(U).css({"float":"none"}),c(_.get("className")),d=function(){function i(){t.support.opacity===!1&&y[0].style.removeAttribute("filter")}var n,o,a=W.length;$&&(o=function(){clearTimeout(Q),S.hide(),u(ne),_.get("onComplete")},F.html(_.get("title")).show(),L.show(),a>1?("string"==typeof _.get("current")&&I.html(_.get("current").replace("{current}",z+1).replace("{total}",a)).show(),K[_.get("loop")||a-1>z?"show":"hide"]().html(_.get("next")),P[_.get("loop")||z?"show":"hide"]().html(_.get("previous")),ce(),_.get("preloading")&&t.each([h(-1),h(1)],function(){var i,n=W[this],o=new r(n,t.data(n,Y)),h=o.get("href");h&&s(o,h)&&(h=l(o,h),i=e.createElement("img"),i.src=h)})):O.hide(),_.get("iframe")?(n=e.createElement("iframe"),"frameBorder"in n&&(n.frameBorder=0),"allowTransparency"in n&&(n.allowTransparency="true"),_.get("scrolling")||(n.scrolling="no"),t(n).attr({src:_.get("href"),name:(new Date).getTime(),"class":Z+"Iframe",allowFullScreen:!0}).one("load",o).appendTo(L),ae.one(he,function(){n.src="//about:blank"}),_.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===_.get("transition")?y.fadeTo(g,1,i):i())},"fade"===_.get("transition")?y.fadeTo(g,0,function(){J.position(0,d)}):J.position(g,d)}},J.next=function(){!q&&W[1]&&(_.get("loop")||W[z+1])&&(z=h(1),f(W[z]))},J.prev=function(){!q&&W[1]&&(_.get("loop")||z)&&(z=h(-1),f(W[z]))},J.close=function(){$&&!G&&(G=!0,$=!1,u(oe),_.get("onCleanup"),E.unbind("."+Z),v.fadeTo(_.get("fadeOut")||0,0),y.stop().fadeTo(_.get("fadeOut")||0,0,function(){y.hide(),v.hide(),u(he),L.remove(),setTimeout(function(){G=!1,u(re),_.get("onClosed")},1)}))},J.remove=function(){y&&(y.stop(),t[Y].close(),y.stop(!1,!0).remove(),v.remove(),G=!1,y=null,t("."+te).removeData(Y).removeClass(te),t(e).unbind("click."+Z).unbind("keydown."+Z))},J.element=function(){return t(_.el)},J.settings=X)})(jQuery,document,window);
tx-toolkit/js/owl.carousel.js ADDED
@@ -0,0 +1,1512 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * jQuery OwlCarousel v1.3.3
3
+ *
4
+ * Copyright (c) 2013 Bartosz Wojciechowski
5
+ * http://www.owlgraphic.com/owlcarousel/
6
+ *
7
+ * Licensed under MIT
8
+ *
9
+ */
10
+
11
+ /*JS Lint helpers: */
12
+ /*global dragMove: false, dragEnd: false, $, jQuery, alert, window, document */
13
+ /*jslint nomen: true, continue:true */
14
+
15
+ if (typeof Object.create !== "function") {
16
+ Object.create = function (obj) {
17
+ function F() {}
18
+ F.prototype = obj;
19
+ return new F();
20
+ };
21
+ }
22
+ (function ($, window, document) {
23
+
24
+ var Carousel = {
25
+ init : function (options, el) {
26
+ var base = this;
27
+
28
+ base.$elem = $(el);
29
+ base.options = $.extend({}, $.fn.owlCarousel.options, base.$elem.data(), options);
30
+
31
+ base.userOptions = options;
32
+ base.loadContent();
33
+ },
34
+
35
+ loadContent : function () {
36
+ var base = this, url;
37
+
38
+ function getData(data) {
39
+ var i, content = "";
40
+ if (typeof base.options.jsonSuccess === "function") {
41
+ base.options.jsonSuccess.apply(this, [data]);
42
+ } else {
43
+ for (i in data.owl) {
44
+ if (data.owl.hasOwnProperty(i)) {
45
+ content += data.owl[i].item;
46
+ }
47
+ }
48
+ base.$elem.html(content);
49
+ }
50
+ base.logIn();
51
+ }
52
+
53
+ if (typeof base.options.beforeInit === "function") {
54
+ base.options.beforeInit.apply(this, [base.$elem]);
55
+ }
56
+
57
+ if (typeof base.options.jsonPath === "string") {
58
+ url = base.options.jsonPath;
59
+ $.getJSON(url, getData);
60
+ } else {
61
+ base.logIn();
62
+ }
63
+ },
64
+
65
+ logIn : function () {
66
+ var base = this;
67
+
68
+ base.$elem.data("owl-originalStyles", base.$elem.attr("style"));
69
+ base.$elem.data("owl-originalClasses", base.$elem.attr("class"));
70
+
71
+ base.$elem.css({opacity: 0});
72
+ base.orignalItems = base.options.items;
73
+ base.checkBrowser();
74
+ base.wrapperWidth = 0;
75
+ base.checkVisible = null;
76
+ base.setVars();
77
+ },
78
+
79
+ setVars : function () {
80
+ var base = this;
81
+ if (base.$elem.children().length === 0) {return false; }
82
+ base.baseClass();
83
+ base.eventTypes();
84
+ base.$userItems = base.$elem.children();
85
+ base.itemsAmount = base.$userItems.length;
86
+ base.wrapItems();
87
+ base.$owlItems = base.$elem.find(".owl-item");
88
+ base.$owlWrapper = base.$elem.find(".owl-wrapper");
89
+ base.playDirection = "next";
90
+ base.prevItem = 0;
91
+ base.prevArr = [0];
92
+ base.currentItem = 0;
93
+ base.customEvents();
94
+ base.onStartup();
95
+ },
96
+
97
+ onStartup : function () {
98
+ var base = this;
99
+ base.updateItems();
100
+ base.calculateAll();
101
+ base.buildControls();
102
+ base.updateControls();
103
+ base.response();
104
+ base.moveEvents();
105
+ base.stopOnHover();
106
+ base.owlStatus();
107
+
108
+ if (base.options.transitionStyle !== false) {
109
+ base.transitionTypes(base.options.transitionStyle);
110
+ }
111
+ if (base.options.autoPlay === true) {
112
+ base.options.autoPlay = 5000;
113
+ }
114
+ base.play();
115
+
116
+ base.$elem.find(".owl-wrapper").css("display", "block");
117
+
118
+ if (!base.$elem.is(":visible")) {
119
+ base.watchVisibility();
120
+ } else {
121
+ base.$elem.css("opacity", 1);
122
+ }
123
+ base.onstartup = false;
124
+ base.eachMoveUpdate();
125
+ if (typeof base.options.afterInit === "function") {
126
+ base.options.afterInit.apply(this, [base.$elem]);
127
+ }
128
+ },
129
+
130
+ eachMoveUpdate : function () {
131
+ var base = this;
132
+
133
+ if (base.options.lazyLoad === true) {
134
+ base.lazyLoad();
135
+ }
136
+ if (base.options.autoHeight === true) {
137
+ base.autoHeight();
138
+ }
139
+ base.onVisibleItems();
140
+
141
+ if (typeof base.options.afterAction === "function") {
142
+ base.options.afterAction.apply(this, [base.$elem]);
143
+ }
144
+ },
145
+
146
+ updateVars : function () {
147
+ var base = this;
148
+ if (typeof base.options.beforeUpdate === "function") {
149
+ base.options.beforeUpdate.apply(this, [base.$elem]);
150
+ }
151
+ base.watchVisibility();
152
+ base.updateItems();
153
+ base.calculateAll();
154
+ base.updatePosition();
155
+ base.updateControls();
156
+ base.eachMoveUpdate();
157
+ if (typeof base.options.afterUpdate === "function") {
158
+ base.options.afterUpdate.apply(this, [base.$elem]);
159
+ }
160
+ },
161
+
162
+ reload : function () {
163
+ var base = this;
164
+ window.setTimeout(function () {
165
+ base.updateVars();
166
+ }, 0);
167
+ },
168
+
169
+ watchVisibility : function () {
170
+ var base = this;
171
+
172
+ if (base.$elem.is(":visible") === false) {
173
+ base.$elem.css({opacity: 0});
174
+ window.clearInterval(base.autoPlayInterval);
175
+ window.clearInterval(base.checkVisible);
176
+ } else {
177
+ return false;
178
+ }
179
+ base.checkVisible = window.setInterval(function () {
180
+ if (base.$elem.is(":visible")) {
181
+ base.reload();
182
+ base.$elem.animate({opacity: 1}, 200);
183
+ window.clearInterval(base.checkVisible);
184
+ }
185
+ }, 500);
186
+ },
187
+
188
+ wrapItems : function () {
189
+ var base = this;
190
+ base.$userItems.wrapAll("<div class=\"owl-wrapper\">").wrap("<div class=\"owl-item\"></div>");
191
+ base.$elem.find(".owl-wrapper").wrap("<div class=\"owl-wrapper-outer\">");
192
+ base.wrapperOuter = base.$elem.find(".owl-wrapper-outer");
193
+ base.$elem.css("display", "block");
194
+ },
195
+
196
+ baseClass : function () {
197
+ var base = this,
198
+ hasBaseClass = base.$elem.hasClass(base.options.baseClass),
199
+ hasThemeClass = base.$elem.hasClass(base.options.theme);
200
+
201
+ if (!hasBaseClass) {
202
+ base.$elem.addClass(base.options.baseClass);
203
+ }
204
+
205
+ if (!hasThemeClass) {
206
+ base.$elem.addClass(base.options.theme);
207
+ }
208
+ },
209
+
210
+ updateItems : function () {
211
+ var base = this, width, i;
212
+
213
+ if (base.options.responsive === false) {
214
+ return false;
215
+ }
216
+ if (base.options.singleItem === true) {
217
+ base.options.items = base.orignalItems = 1;
218
+ base.options.itemsCustom = false;
219
+ base.options.itemsDesktop = false;
220
+ base.options.itemsDesktopSmall = false;
221
+ base.options.itemsTablet = false;
222
+ base.options.itemsTabletSmall = false;
223
+ base.options.itemsMobile = false;
224
+ return false;
225
+ }
226
+
227
+ width = $(base.options.responsiveBaseWidth).width();
228
+
229
+ if (width > (base.options.itemsDesktop[0] || base.orignalItems)) {
230
+ base.options.items = base.orignalItems;
231
+ }
232
+ if (base.options.itemsCustom !== false) {
233
+ //Reorder array by screen size
234
+ base.options.itemsCustom.sort(function (a, b) {return a[0] - b[0]; });
235
+
236
+ for (i = 0; i < base.options.itemsCustom.length; i += 1) {
237
+ if (base.options.itemsCustom[i][0] <= width) {
238
+ base.options.items = base.options.itemsCustom[i][1];
239
+ }
240
+ }
241
+
242
+ } else {
243
+
244
+ if (width <= base.options.itemsDesktop[0] && base.options.itemsDesktop !== false) {
245
+ base.options.items = base.options.itemsDesktop[1];
246
+ }
247
+
248
+ if (width <= base.options.itemsDesktopSmall[0] && base.options.itemsDesktopSmall !== false) {
249
+ base.options.items = base.options.itemsDesktopSmall[1];
250
+ }
251
+
252
+ if (width <= base.options.itemsTablet[0] && base.options.itemsTablet !== false) {
253
+ base.options.items = base.options.itemsTablet[1];
254
+ }
255
+
256
+ if (width <= base.options.itemsTabletSmall[0] && base.options.itemsTabletSmall !== false) {
257
+ base.options.items = base.options.itemsTabletSmall[1];
258
+ }
259
+
260
+ if (width <= base.options.itemsMobile[0] && base.options.itemsMobile !== false) {
261
+ base.options.items = base.options.itemsMobile[1];
262
+ }
263
+ }
264
+
265
+ //if number of items is less than declared
266
+ if (base.options.items > base.itemsAmount && base.options.itemsScaleUp === true) {
267
+ base.options.items = base.itemsAmount;
268
+ }
269
+ },
270
+
271
+ response : function () {
272
+ var base = this,
273
+ smallDelay,
274
+ lastWindowWidth;
275
+
276
+ if (base.options.responsive !== true) {
277
+ return false;
278
+ }
279
+ lastWindowWidth = $(window).width();
280
+
281
+ base.resizer = function () {
282
+ if ($(window).width() !== lastWindowWidth) {
283
+ if (base.options.autoPlay !== false) {
284
+ window.clearInterval(base.autoPlayInterval);
285
+ }
286
+ window.clearTimeout(smallDelay);
287
+ smallDelay = window.setTimeout(function () {
288
+ lastWindowWidth = $(window).width();
289
+ base.updateVars();
290
+ }, base.options.responsiveRefreshRate);
291
+ }
292
+ };
293
+ $(window).resize(base.resizer);
294
+ },
295
+
296
+ updatePosition : function () {
297
+ var base = this;
298
+ base.jumpTo(base.currentItem);
299
+ if (base.options.autoPlay !== false) {
300
+ base.checkAp();
301
+ }
302
+ },
303
+
304
+ appendItemsSizes : function () {
305
+ var base = this,
306
+ roundPages = 0,
307
+ lastItem = base.itemsAmount - base.options.items;
308
+
309
+ base.$owlItems.each(function (index) {
310
+ var $this = $(this);
311
+ $this
312
+ .css({"width": base.itemWidth})
313
+ .data("owl-item", Number(index));
314
+
315
+ if (index % base.options.items === 0 || index === lastItem) {
316
+ if (!(index > lastItem)) {
317
+ roundPages += 1;
318
+ }
319
+ }
320
+ $this.data("owl-roundPages", roundPages);
321
+ });
322
+ },
323
+
324
+ appendWrapperSizes : function () {
325
+ var base = this,
326
+ width = base.$owlItems.length * base.itemWidth;
327
+
328
+ base.$owlWrapper.css({
329
+ "width": width * 2,
330
+ "left": 0
331
+ });
332
+ base.appendItemsSizes();
333
+ },
334
+
335
+ calculateAll : function () {
336
+ var base = this;
337
+ base.calculateWidth();
338
+ base.appendWrapperSizes();
339
+ base.loops();
340
+ base.max();
341
+ },
342
+
343
+ calculateWidth : function () {
344
+ var base = this;
345
+ base.itemWidth = Math.round(base.$elem.width() / base.options.items);
346
+ },
347
+
348
+ max : function () {
349
+ var base = this,
350
+ maximum = ((base.itemsAmount * base.itemWidth) - base.options.items * base.itemWidth) * -1;
351
+ if (base.options.items > base.itemsAmount) {
352
+ base.maximumItem = 0;
353
+ maximum = 0;
354
+ base.maximumPixels = 0;
355
+ } else {
356
+ base.maximumItem = base.itemsAmount - base.options.items;
357
+ base.maximumPixels = maximum;
358
+ }
359
+ return maximum;
360
+ },
361
+
362
+ min : function () {
363
+ return 0;
364
+ },
365
+
366
+ loops : function () {
367
+ var base = this,
368
+ prev = 0,
369
+ elWidth = 0,
370
+ i,
371
+ item,
372
+ roundPageNum;
373
+
374
+ base.positionsInArray = [0];
375
+ base.pagesInArray = [];
376
+
377
+ for (i = 0; i < base.itemsAmount; i += 1) {
378
+ elWidth += base.itemWidth;
379
+ base.positionsInArray.push(-elWidth);
380
+
381
+ if (base.options.scrollPerPage === true) {
382
+ item = $(base.$owlItems[i]);
383
+ roundPageNum = item.data("owl-roundPages");
384
+ if (roundPageNum !== prev) {
385
+ base.pagesInArray[prev] = base.positionsInArray[i];
386
+ prev = roundPageNum;
387
+ }
388
+ }
389
+ }
390
+ },
391
+
392
+ buildControls : function () {
393
+ var base = this;
394
+ if (base.options.navigation === true || base.options.pagination === true) {
395
+ base.owlControls = $("<div class=\"owl-controls\"/>").toggleClass("clickable", !base.browser.isTouch).appendTo(base.$elem);
396
+ }
397
+ if (base.options.pagination === true) {
398
+ base.buildPagination();
399
+ }
400
+ if (base.options.navigation === true) {
401
+ base.buildButtons();
402
+ }
403
+ },
404
+
405
+ buildButtons : function () {
406
+ var base = this,
407
+ buttonsWrapper = $("<div class=\"owl-buttons\"/>");
408
+ base.owlControls.append(buttonsWrapper);
409
+
410
+ base.buttonPrev = $("<div/>", {
411
+ "class" : "owl-prev",
412
+ "html" : base.options.navigationText[0] || ""
413
+ });
414
+
415
+ base.buttonNext = $("<div/>", {
416
+ "class" : "owl-next",
417
+ "html" : base.options.navigationText[1] || ""
418
+ });
419
+
420
+ buttonsWrapper
421
+ .append(base.buttonPrev)
422
+ .append(base.buttonNext);
423
+
424
+ buttonsWrapper.on("touchstart.owlControls mousedown.owlControls", "div[class^=\"owl\"]", function (event) {
425
+ event.preventDefault();
426
+ });
427
+
428
+ buttonsWrapper.on("touchend.owlControls mouseup.owlControls", "div[class^=\"owl\"]", function (event) {
429
+ event.preventDefault();
430
+ if ($(this).hasClass("owl-next")) {
431
+ base.next();
432
+ } else {
433
+ base.prev();
434
+ }
435
+ });
436
+ },
437
+
438
+ buildPagination : function () {
439
+ var base = this;
440
+
441
+ base.paginationWrapper = $("<div class=\"owl-pagination\"/>");
442
+ base.owlControls.append(base.paginationWrapper);
443
+
444
+ base.paginationWrapper.on("touchend.owlControls mouseup.owlControls", ".owl-page", function (event) {
445
+ event.preventDefault();
446
+ if (Number($(this).data("owl-page")) !== base.currentItem) {
447
+ base.goTo(Number($(this).data("owl-page")), true);
448
+ }
449
+ });
450
+ },
451
+
452
+ updatePagination : function () {
453
+ var base = this,
454
+ counter,
455
+ lastPage,
456
+ lastItem,
457
+ i,
458
+ paginationButton,
459
+ paginationButtonInner;
460
+
461
+ if (base.options.pagination === false) {
462
+ return false;
463
+ }
464
+
465
+ base.paginationWrapper.html("");
466
+
467
+ counter = 0;
468
+ lastPage = base.itemsAmount - base.itemsAmount % base.options.items;
469
+
470
+ for (i = 0; i < base.itemsAmount; i += 1) {
471
+ if (i % base.options.items === 0) {
472
+ counter += 1;
473
+ if (lastPage === i) {
474
+ lastItem = base.itemsAmount - base.options.items;
475
+ }
476
+ paginationButton = $("<div/>", {
477
+ "class" : "owl-page"
478
+ });
479
+ paginationButtonInner = $("<span></span>", {
480
+ "text": base.options.paginationNumbers === true ? counter : "",
481
+ "class": base.options.paginationNumbers === true ? "owl-numbers" : ""
482
+ });
483
+ paginationButton.append(paginationButtonInner);
484
+
485
+ paginationButton.data("owl-page", lastPage === i ? lastItem : i);
486
+ paginationButton.data("owl-roundPages", counter);
487
+
488
+ base.paginationWrapper.append(paginationButton);
489
+ }
490
+ }
491
+ base.checkPagination();
492
+ },
493
+ checkPagination : function () {
494
+ var base = this;
495
+ if (base.options.pagination === false) {
496
+ return false;
497
+ }
498
+ base.paginationWrapper.find(".owl-page").each(function () {
499
+ if ($(this).data("owl-roundPages") === $(base.$owlItems[base.currentItem]).data("owl-roundPages")) {
500
+ base.paginationWrapper
501
+ .find(".owl-page")
502
+ .removeClass("active");
503
+ $(this).addClass("active");
504
+ }
505
+ });
506
+ },
507
+
508
+ checkNavigation : function () {
509
+ var base = this;
510
+
511
+ if (base.options.navigation === false) {
512
+ return false;
513
+ }
514
+ if (base.options.rewindNav === false) {
515
+ if (base.currentItem === 0 && base.maximumItem === 0) {
516
+ base.buttonPrev.addClass("disabled");
517
+ base.buttonNext.addClass("disabled");
518
+ } else if (base.currentItem === 0 && base.maximumItem !== 0) {
519
+ base.buttonPrev.addClass("disabled");
520
+ base.buttonNext.removeClass("disabled");
521
+ } else if (base.currentItem === base.maximumItem) {
522
+ base.buttonPrev.removeClass("disabled");
523
+ base.buttonNext.addClass("disabled");
524
+ } else if (base.currentItem !== 0 && base.currentItem !== base.maximumItem) {
525
+ base.buttonPrev.removeClass("disabled");
526
+ base.buttonNext.removeClass("disabled");
527
+ }
528
+ }
529
+ },
530
+
531
+ updateControls : function () {
532
+ var base = this;
533
+ base.updatePagination();
534
+ base.checkNavigation();
535
+ if (base.owlControls) {
536
+ if (base.options.items >= base.itemsAmount) {
537
+ base.owlControls.hide();
538
+ } else {
539
+ base.owlControls.show();
540
+ }
541
+ }
542
+ },
543
+
544
+ destroyControls : function () {
545
+ var base = this;
546
+ if (base.owlControls) {
547
+ base.owlControls.remove();
548
+ }
549
+ },
550
+
551
+ next : function (speed) {
552
+ var base = this;
553
+
554
+ if (base.isTransition) {
555
+ return false;
556
+ }
557
+
558
+ base.currentItem += base.options.scrollPerPage === true ? base.options.items : 1;
559
+ if (base.currentItem > base.maximumItem + (base.options.scrollPerPage === true ? (base.options.items - 1) : 0)) {
560
+ if (base.options.rewindNav === true) {
561
+ base.currentItem = 0;
562
+ speed = "rewind";
563
+ } else {
564
+ base.currentItem = base.maximumItem;
565
+ return false;
566
+ }
567
+ }
568
+ base.goTo(base.currentItem, speed);
569
+ },
570
+
571
+ prev : function (speed) {
572
+ var base = this;
573
+
574
+ if (base.isTransition) {
575
+ return false;
576
+ }
577
+
578
+ if (base.options.scrollPerPage === true && base.currentItem > 0 && base.currentItem < base.options.items) {
579
+ base.currentItem = 0;
580
+ } else {
581
+ base.currentItem -= base.options.scrollPerPage === true ? base.options.items : 1;
582
+ }
583
+ if (base.currentItem < 0) {
584
+ if (base.options.rewindNav === true) {
585
+ base.currentItem = base.maximumItem;
586
+ speed = "rewind";
587
+ } else {
588
+ base.currentItem = 0;
589
+ return false;
590
+ }
591
+ }
592
+ base.goTo(base.currentItem, speed);
593
+ },
594
+
595
+ goTo : function (position, speed, drag) {
596
+ var base = this,
597
+ goToPixel;
598
+
599
+ if (base.isTransition) {
600
+ return false;
601
+ }
602
+ if (typeof base.options.beforeMove === "function") {
603
+ base.options.beforeMove.apply(this, [base.$elem]);
604
+ }
605
+ if (position >= base.maximumItem) {
606
+ position = base.maximumItem;
607
+ } else if (position <= 0) {
608
+ position = 0;
609
+ }
610
+
611
+ base.currentItem = base.owl.currentItem = position;
612
+ if (base.options.transitionStyle !== false && drag !== "drag" && base.options.items === 1 && base.browser.support3d === true) {
613
+ base.swapSpeed(0);
614
+ if (base.browser.support3d === true) {
615
+ base.transition3d(base.positionsInArray[position]);
616
+ } else {
617
+ base.css2slide(base.positionsInArray[position], 1);
618
+ }
619
+ base.afterGo();
620
+ base.singleItemTransition();
621
+ return false;
622
+ }
623
+ goToPixel = base.positionsInArray[position];
624
+
625
+ if (base.browser.support3d === true) {
626
+ base.isCss3Finish = false;
627
+
628
+ if (speed === true) {
629
+ base.swapSpeed("paginationSpeed");
630
+ window.setTimeout(function () {
631
+ base.isCss3Finish = true;
632
+ }, base.options.paginationSpeed);
633
+
634
+ } else if (speed === "rewind") {
635
+ base.swapSpeed(base.options.rewindSpeed);
636
+ window.setTimeout(function () {
637
+ base.isCss3Finish = true;
638
+ }, base.options.rewindSpeed);
639
+
640
+ } else {
641
+ base.swapSpeed("slideSpeed");
642
+ window.setTimeout(function () {
643
+ base.isCss3Finish = true;
644
+ }, base.options.slideSpeed);
645
+ }
646
+ base.transition3d(goToPixel);
647
+ } else {
648
+ if (speed === true) {
649
+ base.css2slide(goToPixel, base.options.paginationSpeed);
650
+ } else if (speed === "rewind") {
651
+ base.css2slide(goToPixel, base.options.rewindSpeed);
652
+ } else {
653
+ base.css2slide(goToPixel, base.options.slideSpeed);
654
+ }
655
+ }
656
+ base.afterGo();
657
+ },
658
+
659
+ jumpTo : function (position) {
660
+ var base = this;
661
+ if (typeof base.options.beforeMove === "function") {
662
+ base.options.beforeMove.apply(this, [base.$elem]);
663
+ }
664
+ if (position >= base.maximumItem || position === -1) {
665
+ position = base.maximumItem;
666
+ } else if (position <= 0) {
667
+ position = 0;
668
+ }
669
+ base.swapSpeed(0);
670
+ if (base.browser.support3d === true) {
671
+ base.transition3d(base.positionsInArray[position]);
672
+ } else {
673
+ base.css2slide(base.positionsInArray[position], 1);
674
+ }
675
+ base.currentItem = base.owl.currentItem = position;
676
+ base.afterGo();
677
+ },
678
+
679
+ afterGo : function () {
680
+ var base = this;
681
+
682
+ base.prevArr.push(base.currentItem);
683
+ base.prevItem = base.owl.prevItem = base.prevArr[base.prevArr.length - 2];
684
+ base.prevArr.shift(0);
685
+
686
+ if (base.prevItem !== base.currentItem) {
687
+ base.checkPagination();
688
+ base.checkNavigation();
689
+ base.eachMoveUpdate();
690
+
691
+ if (base.options.autoPlay !== false) {
692
+ base.checkAp();
693
+ }
694
+ }
695
+ if (typeof base.options.afterMove === "function" && base.prevItem !== base.currentItem) {
696
+ base.options.afterMove.apply(this, [base.$elem]);
697
+ }
698
+ },
699
+
700
+ stop : function () {
701
+ var base = this;
702
+ base.apStatus = "stop";
703
+ window.clearInterval(base.autoPlayInterval);
704
+ },
705
+
706
+ checkAp : function () {
707
+ var base = this;
708
+ if (base.apStatus !== "stop") {
709
+ base.play();
710
+ }
711
+ },
712
+
713
+ play : function () {
714
+ var base = this;
715
+ base.apStatus = "play";
716
+ if (base.options.autoPlay === false) {
717
+ return false;
718
+ }
719
+ window.clearInterval(base.autoPlayInterval);
720
+ base.autoPlayInterval = window.setInterval(function () {
721
+ base.next(true);
722
+ }, base.options.autoPlay);
723
+ },
724
+
725
+ swapSpeed : function (action) {
726
+ var base = this;
727
+ if (action === "slideSpeed") {
728
+ base.$owlWrapper.css(base.addCssSpeed(base.options.slideSpeed));
729
+ } else if (action === "paginationSpeed") {
730
+ base.$owlWrapper.css(base.addCssSpeed(base.options.paginationSpeed));
731
+ } else if (typeof action !== "string") {
732
+ base.$owlWrapper.css(base.addCssSpeed(action));
733
+ }
734
+ },
735
+
736
+ addCssSpeed : function (speed) {
737
+ return {
738
+ "-webkit-transition": "all " + speed + "ms ease",
739
+ "-moz-transition": "all " + speed + "ms ease",
740
+ "-o-transition": "all " + speed + "ms ease",
741
+ "transition": "all " + speed + "ms ease"
742
+ };
743
+ },
744
+
745
+ removeTransition : function () {
746
+ return {
747
+ "-webkit-transition": "",
748
+ "-moz-transition": "",
749
+ "-o-transition": "",
750
+ "transition": ""
751
+ };
752
+ },
753
+
754
+ doTranslate : function (pixels) {
755
+ return {
756
+ "-webkit-transform": "translate3d(" + pixels + "px, 0px, 0px)",
757
+ "-moz-transform": "translate3d(" + pixels + "px, 0px, 0px)",
758
+ "-o-transform": "translate3d(" + pixels + "px, 0px, 0px)",
759
+ "-ms-transform": "translate3d(" + pixels + "px, 0px, 0px)",
760
+ "transform": "translate3d(" + pixels + "px, 0px,0px)"
761
+ };
762
+ },
763
+
764
+ transition3d : function (value) {
765
+ var base = this;
766
+ base.$owlWrapper.css(base.doTranslate(value));
767
+ },
768
+
769
+ css2move : function (value) {
770
+ var base = this;
771
+ base.$owlWrapper.css({"left" : value});
772
+ },
773
+
774
+ css2slide : function (value, speed) {
775
+ var base = this;
776
+
777
+ base.isCssFinish = false;
778
+ base.$owlWrapper.stop(true, true).animate({
779
+ "left" : value
780
+ }, {
781
+ duration : speed || base.options.slideSpeed,
782
+ complete : function () {
783
+ base.isCssFinish = true;
784
+ }
785
+ });
786
+ },
787
+
788
+ checkBrowser : function () {
789
+ var base = this,
790
+ translate3D = "translate3d(0px, 0px, 0px)",
791
+ tempElem = document.createElement("div"),
792
+ regex,
793
+ asSupport,
794
+ support3d,
795
+ isTouch;
796
+
797
+ tempElem.style.cssText = " -moz-transform:" + translate3D +
798
+ "; -ms-transform:" + translate3D +
799
+ "; -o-transform:" + translate3D +
800
+ "; -webkit-transform:" + translate3D +
801
+ "; transform:" + translate3D;
802
+ regex = /translate3d\(0px, 0px, 0px\)/g;
803
+ asSupport = tempElem.style.cssText.match(regex);
804
+ support3d = (asSupport !== null && asSupport.length === 1);
805
+
806
+ isTouch = "ontouchstart" in window || window.navigator.msMaxTouchPoints;
807
+
808
+ base.browser = {
809
+ "support3d" : support3d,
810
+ "isTouch" : isTouch
811
+ };
812
+ },
813
+
814
+ moveEvents : function () {
815
+ var base = this;
816
+ if (base.options.mouseDrag !== false || base.options.touchDrag !== false) {
817
+ base.gestures();
818
+ base.disabledEvents();
819
+ }
820
+ },
821
+
822
+ eventTypes : function () {
823
+ var base = this,
824
+ types = ["s", "e", "x"];
825
+
826
+ base.ev_types = {};
827
+
828
+ if (base.options.mouseDrag === true && base.options.touchDrag === true) {
829
+ types = [
830
+ "touchstart.owl mousedown.owl",
831
+ "touchmove.owl mousemove.owl",
832
+ "touchend.owl touchcancel.owl mouseup.owl"
833
+ ];
834
+ } else if (base.options.mouseDrag === false && base.options.touchDrag === true) {
835
+ types = [
836
+ "touchstart.owl",
837
+ "touchmove.owl",
838
+ "touchend.owl touchcancel.owl"
839
+ ];
840
+ } else if (base.options.mouseDrag === true && base.options.touchDrag === false) {
841
+ types = [
842
+ "mousedown.owl",
843
+ "mousemove.owl",
844
+ "mouseup.owl"
845
+ ];
846
+ }
847
+
848
+ base.ev_types.start = types[0];
849
+ base.ev_types.move = types[1];
850
+ base.ev_types.end = types[2];
851
+ },
852
+
853
+ disabledEvents : function () {
854
+ var base = this;
855
+ base.$elem.on("dragstart.owl", function (event) { event.preventDefault(); });
856
+ base.$elem.on("mousedown.disableTextSelect", function (e) {
857
+ return $(e.target).is('input, textarea, select, option');
858
+ });
859
+ },
860
+
861
+ gestures : function () {
862
+ /*jslint unparam: true*/
863
+ var base = this,
864
+ locals = {
865
+ offsetX : 0,
866
+ offsetY : 0,
867
+ baseElWidth : 0,
868
+ relativePos : 0,
869
+ position: null,
870
+ minSwipe : null,
871
+ maxSwipe: null,
872
+ sliding : null,
873
+ dargging: null,
874
+ targetElement : null
875
+ };
876
+
877
+ base.isCssFinish = true;
878
+
879
+ function getTouches(event) {
880
+ if (event.touches !== undefined) {
881
+ return {
882
+ x : event.touches[0].pageX,
883
+ y : event.touches[0].pageY
884
+ };
885
+ }
886
+
887
+ if (event.touches === undefined) {
888
+ if (event.pageX !== undefined) {
889
+ return {
890
+ x : event.pageX,
891
+ y : event.pageY
892
+ };
893
+ }
894
+ if (event.pageX === undefined) {
895
+ return {
896
+ x : event.clientX,
897
+ y : event.clientY
898
+ };
899
+ }
900
+ }
901
+ }
902
+
903
+ function swapEvents(type) {
904
+ if (type === "on") {
905
+ $(document).on(base.ev_types.move, dragMove);
906
+ $(document).on(base.ev_types.end, dragEnd);
907
+ } else if (type === "off") {
908
+ $(document).off(base.ev_types.move);
909
+ $(document).off(base.ev_types.end);
910
+ }
911
+ }
912
+
913
+ function dragStart(event) {
914
+ var ev = event.originalEvent || event || window.event,
915
+ position;
916
+
917
+ if (ev.which === 3) {
918
+ return false;
919
+ }
920
+ if (base.itemsAmount <= base.options.items) {
921
+ return;
922
+ }
923
+ if (base.isCssFinish === false && !base.options.dragBeforeAnimFinish) {
924
+ return false;
925
+ }
926
+ if (base.isCss3Finish === false && !base.options.dragBeforeAnimFinish) {
927
+ return false;
928
+ }
929
+
930
+ if (base.options.autoPlay !== false) {
931
+ window.clearInterval(base.autoPlayInterval);
932
+ }
933
+
934
+ if (base.browser.isTouch !== true && !base.$owlWrapper.hasClass("grabbing")) {
935
+ base.$owlWrapper.addClass("grabbing");
936
+ }
937
+
938
+ base.newPosX = 0;
939
+ base.newRelativeX = 0;
940
+
941
+ $(this).css(base.removeTransition());
942
+
943
+ position = $(this).position();
944
+ locals.relativePos = position.left;
945
+
946
+ locals.offsetX = getTouches(ev).x - position.left;
947
+ locals.offsetY = getTouches(ev).y - position.top;
948
+
949
+ swapEvents("on");
950
+
951
+ locals.sliding = false;
952
+ locals.targetElement = ev.target || ev.srcElement;
953
+ }
954
+
955
+ function dragMove(event) {
956
+ var ev = event.originalEvent || event || window.event,
957
+ minSwipe,
958
+ maxSwipe;
959
+
960
+ base.newPosX = getTouches(ev).x - locals.offsetX;
961
+ base.newPosY = getTouches(ev).y - locals.offsetY;
962
+ base.newRelativeX = base.newPosX - locals.relativePos;
963
+
964
+ if (typeof base.options.startDragging === "function" && locals.dragging !== true && base.newRelativeX !== 0) {
965
+ locals.dragging = true;
966
+ base.options.startDragging.apply(base, [base.$elem]);
967
+ }
968
+
969
+ if ((base.newRelativeX > 8 || base.newRelativeX < -8) && (base.browser.isTouch === true)) {
970
+ if (ev.preventDefault !== undefined) {
971
+ ev.preventDefault();
972
+ } else {
973
+ ev.returnValue = false;
974
+ }
975
+ locals.sliding = true;
976
+ }
977
+
978
+ if ((base.newPosY > 10 || base.newPosY < -10) && locals.sliding === false) {
979
+ $(document).off("touchmove.owl");
980
+ }
981
+
982
+ minSwipe = function () {
983
+ return base.newRelativeX / 5;
984
+ };
985
+
986
+ maxSwipe = function () {
987
+ return base.maximumPixels + base.newRelativeX / 5;
988
+ };
989
+
990
+ base.newPosX = Math.max(Math.min(base.newPosX, minSwipe()), maxSwipe());
991
+ if (base.browser.support3d === true) {
992
+ base.transition3d(base.newPosX);
993
+ } else {
994
+ base.css2move(base.newPosX);
995
+ }
996
+ }
997
+
998
+ function dragEnd(event) {
999
+ var ev = event.originalEvent || event || window.event,
1000
+ newPosition,
1001
+ handlers,
1002
+ owlStopEvent;
1003
+
1004
+ ev.target = ev.target || ev.srcElement;
1005
+
1006
+ locals.dragging = false;
1007
+
1008
+ if (base.browser.isTouch !== true) {
1009
+ base.$owlWrapper.removeClass("grabbing");
1010
+ }
1011
+
1012
+ if (base.newRelativeX < 0) {
1013
+ base.dragDirection = base.owl.dragDirection = "left";
1014
+ } else {
1015
+ base.dragDirection = base.owl.dragDirection = "right";
1016
+ }
1017
+
1018
+ if (base.newRelativeX !== 0) {
1019
+ newPosition = base.getNewPosition();
1020
+ base.goTo(newPosition, false, "drag");
1021
+ if (locals.targetElement === ev.target && base.browser.isTouch !== true) {
1022
+ $(ev.target).on("click.disable", function (ev) {
1023
+ ev.stopImmediatePropagation();
1024
+ ev.stopPropagation();
1025
+ ev.preventDefault();
1026
+ $(ev.target).off("click.disable");
1027
+ });
1028
+ handlers = $._data(ev.target, "events").click;
1029
+ owlStopEvent = handlers.pop();
1030
+ handlers.splice(0, 0, owlStopEvent);
1031
+ }
1032
+ }
1033
+ swapEvents("off");
1034
+ }
1035
+ base.$elem.on(base.ev_types.start, ".owl-wrapper", dragStart);
1036
+ },
1037
+
1038
+ getNewPosition : function () {
1039
+ var base = this,
1040
+ newPosition = base.closestItem();
1041
+
1042
+ if (newPosition > base.maximumItem) {
1043
+ base.currentItem = base.maximumItem;
1044
+ newPosition = base.maximumItem;
1045
+ } else if (base.newPosX >= 0) {
1046
+ newPosition = 0;
1047
+ base.currentItem = 0;
1048
+ }
1049
+ return newPosition;
1050
+ },
1051
+ closestItem : function () {
1052
+ var base = this,
1053
+ array = base.options.scrollPerPage === true ? base.pagesInArray : base.positionsInArray,
1054
+ goal = base.newPosX,
1055
+ closest = null;
1056
+
1057
+ $.each(array, function (i, v) {
1058
+ if (goal - (base.itemWidth / 20) > array[i + 1] && goal - (base.itemWidth / 20) < v && base.moveDirection() === "left") {
1059
+ closest = v;
1060
+ if (base.options.scrollPerPage === true) {
1061
+ base.currentItem = $.inArray(closest, base.positionsInArray);
1062
+ } else {
1063
+ base.currentItem = i;
1064
+ }
1065
+ } else if (goal + (base.itemWidth / 20) < v && goal + (base.itemWidth / 20) > (array[i + 1] || array[i] - base.itemWidth) && base.moveDirection() === "right") {
1066
+ if (base.options.scrollPerPage === true) {
1067
+ closest = array[i + 1] || array[array.length - 1];
1068
+ base.currentItem = $.inArray(closest, base.positionsInArray);
1069
+ } else {
1070
+ closest = array[i + 1];
1071
+ base.currentItem = i + 1;
1072
+ }
1073
+ }
1074
+ });
1075
+ return base.currentItem;
1076
+ },
1077
+
1078
+ moveDirection : function () {
1079
+ var base = this,
1080
+ direction;
1081
+ if (base.newRelativeX < 0) {
1082
+ direction = "right";
1083
+ base.playDirection = "next";
1084
+ } else {
1085
+ direction = "left";
1086
+ base.playDirection = "prev";
1087
+ }
1088
+ return direction;
1089
+ },
1090
+
1091
+ customEvents : function () {
1092
+ /*jslint unparam: true*/
1093
+ var base = this;
1094
+ base.$elem.on("owl.next", function () {
1095
+ base.next();
1096
+ });
1097
+ base.$elem.on("owl.prev", function () {
1098
+ base.prev();
1099
+ });
1100
+ base.$elem.on("owl.play", function (event, speed) {
1101
+ base.options.autoPlay = speed;
1102
+ base.play();
1103
+ base.hoverStatus = "play";
1104
+ });
1105
+ base.$elem.on("owl.stop", function () {
1106
+ base.stop();
1107
+ base.hoverStatus = "stop";
1108
+ });
1109
+ base.$elem.on("owl.goTo", function (event, item) {
1110
+ base.goTo(item);
1111
+ });
1112
+ base.$elem.on("owl.jumpTo", function (event, item) {
1113
+ base.jumpTo(item);
1114
+ });
1115
+ },
1116
+
1117
+ stopOnHover : function () {
1118
+ var base = this;
1119
+ if (base.options.stopOnHover === true && base.browser.isTouch !== true && base.options.autoPlay !== false) {
1120
+ base.$elem.on("mouseover", function () {
1121
+ base.stop();
1122
+ });
1123
+ base.$elem.on("mouseout", function () {
1124
+ if (base.hoverStatus !== "stop") {
1125
+ base.play();
1126
+ }
1127
+ });
1128
+ }
1129
+ },
1130
+
1131
+ lazyLoad : function () {
1132
+ var base = this,
1133
+ i,
1134
+ $item,
1135
+ itemNumber,
1136
+ $lazyImg,
1137
+ follow;
1138
+
1139
+ if (base.options.lazyLoad === false) {
1140
+ return false;
1141
+ }
1142
+ for (i = 0; i < base.itemsAmount; i += 1) {
1143
+ $item = $(base.$owlItems[i]);
1144
+
1145
+ if ($item.data("owl-loaded") === "loaded") {
1146
+ continue;
1147
+ }
1148
+
1149
+ itemNumber = $item.data("owl-item");
1150
+ $lazyImg = $item.find(".lazyOwl");
1151
+
1152
+ if (typeof $lazyImg.data("src") !== "string") {
1153
+ $item.data("owl-loaded", "loaded");
1154
+ continue;
1155
+ }
1156
+ if ($item.data("owl-loaded") === undefined) {
1157
+ $lazyImg.hide();
1158
+ $item.addClass("loading").data("owl-loaded", "checked");
1159
+ }
1160
+ if (base.options.lazyFollow === true) {
1161
+ follow = itemNumber >= base.currentItem;
1162
+ } else {
1163
+ follow = true;
1164
+ }
1165
+ if (follow && itemNumber < base.currentItem + base.options.items && $lazyImg.length) {
1166
+ base.lazyPreload($item, $lazyImg);
1167
+ }
1168
+ }
1169
+ },
1170
+
1171
+ lazyPreload : function ($item, $lazyImg) {
1172
+ var base = this,
1173
+ iterations = 0,
1174
+ isBackgroundImg;
1175
+
1176
+ if ($lazyImg.prop("tagName") === "DIV") {
1177
+ $lazyImg.css("background-image", "url(" + $lazyImg.data("src") + ")");
1178
+ isBackgroundImg = true;
1179
+ } else {
1180
+ $lazyImg[0].src = $lazyImg.data("src");
1181
+ }
1182
+
1183
+ function showImage() {
1184
+ $item.data("owl-loaded", "loaded").removeClass("loading");
1185
+ $lazyImg.removeAttr("data-src");
1186
+ if (base.options.lazyEffect === "fade") {
1187
+ $lazyImg.fadeIn(400);
1188
+ } else {
1189
+ $lazyImg.show();
1190
+ }
1191
+ if (typeof base.options.afterLazyLoad === "function") {
1192
+ base.options.afterLazyLoad.apply(this, [base.$elem]);
1193
+ }
1194
+ }
1195
+
1196
+ function checkLazyImage() {
1197
+ iterations += 1;
1198
+ if (base.completeImg($lazyImg.get(0)) || isBackgroundImg === true) {
1199
+ showImage();
1200
+ } else if (iterations <= 100) {//if image loads in less than 10 seconds
1201
+ window.setTimeout(checkLazyImage, 100);
1202
+ } else {
1203
+ showImage();
1204
+ }
1205
+ }
1206
+
1207
+ checkLazyImage();
1208
+ },
1209
+
1210
+ autoHeight : function () {
1211
+ var base = this,
1212
+ $currentimg = $(base.$owlItems[base.currentItem]).find("img"),
1213
+ iterations;
1214
+
1215
+ function addHeight() {
1216
+ var $currentItem = $(base.$owlItems[base.currentItem]).height();
1217
+ base.wrapperOuter.css("height", $currentItem + "px");
1218
+ if (!base.wrapperOuter.hasClass("autoHeight")) {
1219
+ window.setTimeout(function () {
1220
+ base.wrapperOuter.addClass("autoHeight");
1221
+ }, 0);
1222
+ }
1223
+ }
1224
+
1225
+ function checkImage() {
1226
+ iterations += 1;
1227
+ if (base.completeImg($currentimg.get(0))) {
1228
+ addHeight();
1229
+ } else if (iterations <= 100) { //if image loads in less than 10 seconds
1230
+ window.setTimeout(checkImage, 100);
1231
+ } else {
1232
+ base.wrapperOuter.css("height", ""); //Else remove height attribute
1233
+ }
1234
+ }
1235
+
1236
+ if ($currentimg.get(0) !== undefined) {
1237
+ iterations = 0;
1238
+ checkImage();
1239
+ } else {
1240
+ addHeight();
1241
+ }
1242
+ },
1243
+
1244
+ completeImg : function (img) {
1245
+ var naturalWidthType;
1246
+
1247
+ if (!img.complete) {
1248
+ return false;
1249
+ }
1250
+ naturalWidthType = typeof img.naturalWidth;
1251
+ if (naturalWidthType !== "undefined" && img.naturalWidth === 0) {
1252
+ return false;
1253
+ }
1254
+ return true;
1255
+ },
1256
+
1257
+ onVisibleItems : function () {
1258
+ var base = this,
1259
+ i;
1260
+
1261
+ if (base.options.addClassActive === true) {
1262
+ base.$owlItems.removeClass("active");
1263
+ }
1264
+ base.visibleItems = [];
1265
+ for (i = base.currentItem; i < base.currentItem + base.options.items; i += 1) {
1266
+ base.visibleItems.push(i);
1267
+
1268
+ if (base.options.addClassActive === true) {
1269
+ $(base.$owlItems[i]).addClass("active");
1270
+ }
1271
+ }
1272
+ base.owl.visibleItems = base.visibleItems;
1273
+ },
1274
+
1275
+ transitionTypes : function (className) {
1276
+ var base = this;
1277
+ //Currently available: "fade", "backSlide", "goDown", "fadeUp"
1278
+ base.outClass = "owl-" + className + "-out";
1279
+ base.inClass = "owl-" + className + "-in";
1280
+ },
1281
+
1282
+ singleItemTransition : function () {
1283
+ var base = this,
1284
+ outClass = base.outClass,
1285
+ inClass = base.inClass,
1286
+ $currentItem = base.$owlItems.eq(base.currentItem),
1287
+ $prevItem = base.$owlItems.eq(base.prevItem),
1288
+ prevPos = Math.abs(base.positionsInArray[base.currentItem]) + base.positionsInArray[base.prevItem],
1289
+ origin = Math.abs(base.positionsInArray[base.currentItem]) + base.itemWidth / 2,
1290
+ animEnd = 'webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend';
1291
+
1292
+ base.isTransition = true;
1293
+
1294
+ base.$owlWrapper
1295
+ .addClass('owl-origin')
1296
+ .css({
1297
+ "-webkit-transform-origin" : origin + "px",
1298
+ "-moz-perspective-origin" : origin + "px",
1299
+ "perspective-origin" : origin + "px"
1300
+ });
1301
+ function transStyles(prevPos) {
1302
+ return {
1303
+ "position" : "relative",
1304
+ "left" : prevPos + "px"
1305
+ };
1306
+ }
1307
+
1308
+ $prevItem
1309
+ .css(transStyles(prevPos, 10))
1310
+ .addClass(outClass)
1311
+ .on(animEnd, function () {
1312
+ base.endPrev = true;
1313
+ $prevItem.off(animEnd);
1314
+ base.clearTransStyle($prevItem, outClass);
1315
+ });
1316
+
1317
+ $currentItem
1318
+ .addClass(inClass)
1319
+ .on(animEnd, function () {
1320
+ base.endCurrent = true;
1321
+ $currentItem.off(animEnd);
1322
+ base.clearTransStyle($currentItem, inClass);
1323
+ });
1324
+ },
1325
+
1326
+ clearTransStyle : function (item, classToRemove) {
1327
+ var base = this;
1328
+ item.css({
1329
+ "position" : "",
1330
+ "left" : ""
1331
+ }).removeClass(classToRemove);
1332
+
1333
+ if (base.endPrev && base.endCurrent) {
1334
+ base.$owlWrapper.removeClass('owl-origin');
1335
+ base.endPrev = false;
1336
+ base.endCurrent = false;
1337
+ base.isTransition = false;
1338
+ }
1339
+ },
1340
+
1341
+ owlStatus : function () {
1342
+ var base = this;
1343
+ base.owl = {
1344
+ "userOptions" : base.userOptions,
1345
+ "baseElement" : base.$elem,
1346
+ "userItems" : base.$userItems,
1347
+ "owlItems" : base.$owlItems,
1348
+ "currentItem" : base.currentItem,
1349
+ "prevItem" : base.prevItem,
1350
+ "visibleItems" : base.visibleItems,
1351
+ "isTouch" : base.browser.isTouch,
1352
+ "browser" : base.browser,
1353
+ "dragDirection" : base.dragDirection
1354
+ };
1355
+ },
1356
+
1357
+ clearEvents : function () {
1358
+ var base = this;
1359
+ base.$elem.off(".owl owl mousedown.disableTextSelect");
1360
+ $(document).off(".owl owl");
1361
+ $(window).off("resize", base.resizer);
1362
+ },
1363
+
1364
+ unWrap : function () {
1365
+ var base = this;
1366
+ if (base.$elem.children().length !== 0) {
1367
+ base.$owlWrapper.unwrap();
1368
+ base.$userItems.unwrap().unwrap();
1369
+ if (base.owlControls) {
1370
+ base.owlControls.remove();
1371
+ }
1372
+ }
1373
+ base.clearEvents();
1374
+ base.$elem
1375
+ .attr("style", base.$elem.data("owl-originalStyles") || "")
1376
+ .attr("class", base.$elem.data("owl-originalClasses"));
1377
+ },
1378
+
1379
+ destroy : function () {
1380
+ var base = this;
1381
+ base.stop();
1382
+ window.clearInterval(base.checkVisible);
1383
+ base.unWrap();
1384
+ base.$elem.removeData();
1385
+ },
1386
+
1387
+ reinit : function (newOptions) {
1388
+ var base = this,
1389
+ options = $.extend({}, base.userOptions, newOptions);
1390
+ base.unWrap();
1391
+ base.init(options, base.$elem);
1392
+ },
1393
+
1394
+ addItem : function (htmlString, targetPosition) {
1395
+ var base = this,
1396
+ position;
1397
+
1398
+ if (!htmlString) {return false; }
1399
+
1400
+ if (base.$elem.children().length === 0) {
1401
+ base.$elem.append(htmlString);
1402
+ base.setVars();
1403
+ return false;
1404
+ }
1405
+ base.unWrap();
1406
+ if (targetPosition === undefined || targetPosition === -1) {
1407
+ position = -1;
1408
+ } else {
1409
+ position = targetPosition;
1410
+ }
1411
+ if (position >= base.$userItems.length || position === -1) {
1412
+ base.$userItems.eq(-1).after(htmlString);
1413
+ } else {
1414
+ base.$userItems.eq(position).before(htmlString);
1415
+ }
1416
+
1417
+ base.setVars();
1418
+ },
1419
+
1420
+ removeItem : function (targetPosition) {
1421
+ var base = this,
1422
+ position;
1423
+
1424
+ if (base.$elem.children().length === 0) {
1425
+ return false;
1426
+ }
1427
+ if (targetPosition === undefined || targetPosition === -1) {
1428
+ position = -1;
1429
+ } else {
1430
+ position = targetPosition;
1431
+ }
1432
+
1433
+ base.unWrap();
1434
+ base.$userItems.eq(position).remove();
1435
+ base.setVars();
1436
+ }
1437
+
1438
+ };
1439
+
1440
+ $.fn.owlCarousel = function (options) {
1441
+ return this.each(function () {
1442
+ if ($(this).data("owl-init") === true) {
1443
+ return false;
1444
+ }
1445
+ $(this).data("owl-init", true);
1446
+ var carousel = Object.create(Carousel);
1447
+ carousel.init(options, this);
1448
+ $.data(this, "owlCarousel", carousel);
1449
+ });
1450
+ };
1451
+
1452
+ $.fn.owlCarousel.options = {
1453
+
1454
+ items : 5,
1455
+ itemsCustom : false,
1456
+ itemsDesktop : [1199, 4],
1457
+ itemsDesktopSmall : [979, 3],
1458
+ itemsTablet : [768, 2],
1459
+ itemsTabletSmall : false,
1460
+ itemsMobile : [479, 1],
1461
+ singleItem : false,
1462
+ itemsScaleUp : false,
1463
+
1464
+ slideSpeed : 200,
1465
+ paginationSpeed : 800,
1466
+ rewindSpeed : 1000,
1467
+
1468
+ autoPlay : false,
1469
+ stopOnHover : false,
1470
+
1471
+ navigation : false,
1472
+ navigationText : ["prev", "next"],
1473
+ rewindNav : true,
1474
+ scrollPerPage : false,
1475
+
1476
+ pagination : true,
1477
+ paginationNumbers : false,
1478
+
1479
+ responsive : true,
1480
+ responsiveRefreshRate : 200,
1481
+ responsiveBaseWidth : window,
1482
+
1483
+ baseClass : "owl-carousel",
1484
+ theme : "owl-theme",
1485
+
1486
+ lazyLoad : false,
1487
+ lazyFollow : true,
1488
+ lazyEffect : "fade",
1489
+
1490
+ autoHeight : false,
1491
+
1492
+ jsonPath : false,
1493
+ jsonSuccess : false,
1494
+
1495
+ dragBeforeAnimFinish : true,
1496
+ mouseDrag : true,
1497
+ touchDrag : true,
1498
+
1499
+ addClassActive : false,
1500
+ transitionStyle : false,
1501
+
1502
+ beforeUpdate : false,
1503
+ afterUpdate : false,
1504
+ beforeInit : false,
1505
+ afterInit : false,
1506
+ beforeMove : false,
1507
+ afterMove : false,
1508
+ afterAction : false,
1509
+ startDragging : false,
1510
+ afterLazyLoad: false
1511
+ };
1512
+ }(jQuery, window, document));
tx-toolkit/js/owl.carousel.min.js ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "function"!==typeof Object.create&&(Object.create=function(f){function g(){}g.prototype=f;return new g});
2
+ (function(f,g,k){var l={init:function(a,b){this.$elem=f(b);this.options=f.extend({},f.fn.owlCarousel.options,this.$elem.data(),a);this.userOptions=a;this.loadContent()},loadContent:function(){function a(a){var d,e="";if("function"===typeof b.options.jsonSuccess)b.options.jsonSuccess.apply(this,[a]);else{for(d in a.owl)a.owl.hasOwnProperty(d)&&(e+=a.owl[d].item);b.$elem.html(e)}b.logIn()}var b=this,e;"function"===typeof b.options.beforeInit&&b.options.beforeInit.apply(this,[b.$elem]);"string"===typeof b.options.jsonPath?
3
+ (e=b.options.jsonPath,f.getJSON(e,a)):b.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style"));this.$elem.data("owl-originalClasses",this.$elem.attr("class"));this.$elem.css({opacity:0});this.orignalItems=this.options.items;this.checkBrowser();this.wrapperWidth=0;this.checkVisible=null;this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass();this.eventTypes();this.$userItems=this.$elem.children();this.itemsAmount=this.$userItems.length;
4
+ this.wrapItems();this.$owlItems=this.$elem.find(".owl-item");this.$owlWrapper=this.$elem.find(".owl-wrapper");this.playDirection="next";this.prevItem=0;this.prevArr=[0];this.currentItem=0;this.customEvents();this.onStartup()},onStartup:function(){this.updateItems();this.calculateAll();this.buildControls();this.updateControls();this.response();this.moveEvents();this.stopOnHover();this.owlStatus();!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle);!0===this.options.autoPlay&&
5
+ (this.options.autoPlay=5E3);this.play();this.$elem.find(".owl-wrapper").css("display","block");this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility();this.onstartup=!1;this.eachMoveUpdate();"function"===typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad();!0===this.options.autoHeight&&this.autoHeight();this.onVisibleItems();"function"===typeof this.options.afterAction&&this.options.afterAction.apply(this,
6
+ [this.$elem])},updateVars:function(){"function"===typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]);this.watchVisibility();this.updateItems();this.calculateAll();this.updatePosition();this.updateControls();this.eachMoveUpdate();"function"===typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var a=this;g.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;if(!1===a.$elem.is(":visible"))a.$elem.css({opacity:0}),
7
+ g.clearInterval(a.autoPlayInterval),g.clearInterval(a.checkVisible);else return!1;a.checkVisible=g.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),g.clearInterval(a.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>');this.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">');this.wrapperOuter=this.$elem.find(".owl-wrapper-outer");this.$elem.css("display","block")},
8
+ baseClass:function(){var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme);a||this.$elem.addClass(this.options.baseClass);b||this.$elem.addClass(this.options.theme)},updateItems:function(){var a,b;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall=
9
+ !1,this.options.itemsMobile=!1;a=f(this.options.responsiveBaseWidth).width();a>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems);if(!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),b=0;b<this.options.itemsCustom.length;b+=1)this.options.itemsCustom[b][0]<=a&&(this.options.items=this.options.itemsCustom[b][1]);else a<=this.options.itemsDesktop[0]&&!1!==this.options.itemsDesktop&&(this.options.items=this.options.itemsDesktop[1]),
10
+ a<=this.options.itemsDesktopSmall[0]&&!1!==this.options.itemsDesktopSmall&&(this.options.items=this.options.itemsDesktopSmall[1]),a<=this.options.itemsTablet[0]&&!1!==this.options.itemsTablet&&(this.options.items=this.options.itemsTablet[1]),a<=this.options.itemsTabletSmall[0]&&!1!==this.options.itemsTabletSmall&&(this.options.items=this.options.itemsTabletSmall[1]),a<=this.options.itemsMobile[0]&&!1!==this.options.itemsMobile&&(this.options.items=this.options.itemsMobile[1]);this.options.items>this.itemsAmount&&
11
+ !0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var a=this,b,e;if(!0!==a.options.responsive)return!1;e=f(g).width();a.resizer=function(){f(g).width()!==e&&(!1!==a.options.autoPlay&&g.clearInterval(a.autoPlayInterval),g.clearTimeout(b),b=g.setTimeout(function(){e=f(g).width();a.updateVars()},a.options.responsiveRefreshRate))};f(g).resize(a.resizer)},updatePosition:function(){this.jumpTo(this.currentItem);!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var a=
12
+ this,b=0,e=a.itemsAmount-a.options.items;a.$owlItems.each(function(c){var d=f(this);d.css({width:a.itemWidth}).data("owl-item",Number(c));if(0===c%a.options.items||c===e)c>e||(b+=1);d.data("owl-roundPages",b)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0});this.appendItemsSizes()},calculateAll:function(){this.calculateWidth();this.appendWrapperSizes();this.loops();this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/
13
+ this.options.items)},max:function(){var a=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a);return a},min:function(){return 0},loops:function(){var a=0,b=0,e,c;this.positionsInArray=[0];this.pagesInArray=[];for(e=0;e<this.itemsAmount;e+=1)b+=this.itemWidth,this.positionsInArray.push(-b),!0===this.options.scrollPerPage&&(c=f(this.$owlItems[e]),
14
+ c=c.data("owl-roundPages"),c!==a&&(this.pagesInArray[a]=this.positionsInArray[e],a=c))},buildControls:function(){if(!0===this.options.navigation||!0===this.options.pagination)this.owlControls=f('<div class="owl-controls"/>').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem);!0===this.options.pagination&&this.buildPagination();!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var a=this,b=f('<div class="owl-buttons"/>');a.owlControls.append(b);a.buttonPrev=
15
+ f("<div/>",{"class":"owl-prev",html:a.options.navigationText[0]||""});a.buttonNext=f("<div/>",{"class":"owl-next",html:a.options.navigationText[1]||""});b.append(a.buttonPrev).append(a.buttonNext);b.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()});b.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(b){b.preventDefault();f(this).hasClass("owl-next")?a.next():a.prev()})},buildPagination:function(){var a=this;a.paginationWrapper=
16
+ f('<div class="owl-pagination"/>');a.owlControls.append(a.paginationWrapper);a.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(b){b.preventDefault();Number(f(this).data("owl-page"))!==a.currentItem&&a.goTo(Number(f(this).data("owl-page")),!0)})},updatePagination:function(){var a,b,e,c,d,g;if(!1===this.options.pagination)return!1;this.paginationWrapper.html("");a=0;b=this.itemsAmount-this.itemsAmount%this.options.items;for(c=0;c<this.itemsAmount;c+=1)0===c%this.options.items&&
17
+ (a+=1,b===c&&(e=this.itemsAmount-this.options.items),d=f("<div/>",{"class":"owl-page"}),g=f("<span></span>",{text:!0===this.options.paginationNumbers?a:"","class":!0===this.options.paginationNumbers?"owl-numbers":""}),d.append(g),d.data("owl-page",b===c?e:c),d.data("owl-roundPages",a),this.paginationWrapper.append(d));this.checkPagination()},checkPagination:function(){var a=this;if(!1===a.options.pagination)return!1;a.paginationWrapper.find(".owl-page").each(function(){f(this).data("owl-roundPages")===
18
+ f(a.$owlItems[a.currentItem]).data("owl-roundPages")&&(a.paginationWrapper.find(".owl-page").removeClass("active"),f(this).addClass("active"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem===
19
+ this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled")))},updateControls:function(){this.updatePagination();this.checkNavigation();this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(a){if(this.isTransition)return!1;
20
+ this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1;if(this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0))if(!0===this.options.rewindNav)this.currentItem=0,a="rewind";else return this.currentItem=this.maximumItem,!1;this.goTo(this.currentItem,a)},prev:function(a){if(this.isTransition)return!1;this.currentItem=!0===this.options.scrollPerPage&&0<this.currentItem&&this.currentItem<this.options.items?0:this.currentItem-(!0===this.options.scrollPerPage?
21
+ this.options.items:1);if(0>this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,a="rewind";else return this.currentItem=0,!1;this.goTo(this.currentItem,a)},goTo:function(a,b,e){var c=this;if(c.isTransition)return!1;"function"===typeof c.options.beforeMove&&c.options.beforeMove.apply(this,[c.$elem]);a>=c.maximumItem?a=c.maximumItem:0>=a&&(a=0);c.currentItem=c.owl.currentItem=a;if(!1!==c.options.transitionStyle&&"drag"!==e&&1===c.options.items&&!0===c.browser.support3d)return c.swapSpeed(0),
22
+ !0===c.browser.support3d?c.transition3d(c.positionsInArray[a]):c.css2slide(c.positionsInArray[a],1),c.afterGo(),c.singleItemTransition(),!1;a=c.positionsInArray[a];!0===c.browser.support3d?(c.isCss3Finish=!1,!0===b?(c.swapSpeed("paginationSpeed"),g.setTimeout(function(){c.isCss3Finish=!0},c.options.paginationSpeed)):"rewind"===b?(c.swapSpeed(c.options.rewindSpeed),g.setTimeout(function(){c.isCss3Finish=!0},c.options.rewindSpeed)):(c.swapSpeed("slideSpeed"),g.setTimeout(function(){c.isCss3Finish=!0},
23
+ c.options.slideSpeed)),c.transition3d(a)):!0===b?c.css2slide(a,c.options.paginationSpeed):"rewind"===b?c.css2slide(a,c.options.rewindSpeed):c.css2slide(a,c.options.slideSpeed);c.afterGo()},jumpTo:function(a){"function"===typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]);a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0);this.swapSpeed(0);!0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1);this.currentItem=
24
+ this.owl.currentItem=a;this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem);this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2];this.prevArr.shift(0);this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp());"function"===typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus="stop";g.clearInterval(this.autoPlayInterval)},
25
+ checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var a=this;a.apStatus="play";if(!1===a.options.autoPlay)return!1;g.clearInterval(a.autoPlayInterval);a.autoPlayInterval=g.setInterval(function(){a.next(!0)},a.options.autoPlay)},swapSpeed:function(a){"slideSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!==typeof a&&this.$owlWrapper.css(this.addCssSpeed(a))},
26
+ addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+
27
+ a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){this.$owlWrapper.css(this.doTranslate(a))},css2move:function(a){this.$owlWrapper.css({left:a})},css2slide:function(a,b){var e=this;e.isCssFinish=!1;e.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||e.options.slideSpeed,complete:function(){e.isCssFinish=!0}})},checkBrowser:function(){var a=k.createElement("div");a.style.cssText=" -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)";
28
+ a=a.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g);this.browser={support3d:null!==a&&1===a.length,isTouch:"ontouchstart"in g||g.navigator.msMaxTouchPoints}},moveEvents:function(){if(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)this.gestures(),this.disabledEvents()},eventTypes:function(){var a=["s","e","x"];this.ev_types={};!0===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:
29
+ !1===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]);this.ev_types.start=a[0];this.ev_types.move=a[1];this.ev_types.end=a[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(a){a.preventDefault()});this.$elem.on("mousedown.disableTextSelect",function(a){return f(a.target).is("input, textarea, select, option")})},
30
+ gestures:function(){function a(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function b(a){"on"===a?(f(k).on(d.ev_types.move,e),f(k).on(d.ev_types.end,c)):"off"===a&&(f(k).off(d.ev_types.move),f(k).off(d.ev_types.end))}function e(b){b=b.originalEvent||b||g.event;d.newPosX=a(b).x-h.offsetX;d.newPosY=a(b).y-h.offsetY;d.newRelativeX=d.newPosX-h.relativePos;
31
+ "function"===typeof d.options.startDragging&&!0!==h.dragging&&0!==d.newRelativeX&&(h.dragging=!0,d.options.startDragging.apply(d,[d.$elem]));(8<d.newRelativeX||-8>d.newRelativeX)&&!0===d.browser.isTouch&&(void 0!==b.preventDefault?b.preventDefault():b.returnValue=!1,h.sliding=!0);(10<d.newPosY||-10>d.newPosY)&&!1===h.sliding&&f(k).off("touchmove.owl");d.newPosX=Math.max(Math.min(d.newPosX,d.newRelativeX/5),d.maximumPixels+d.newRelativeX/5);!0===d.browser.support3d?d.transition3d(d.newPosX):d.css2move(d.newPosX)}
32
+ function c(a){a=a.originalEvent||a||g.event;var c;a.target=a.target||a.srcElement;h.dragging=!1;!0!==d.browser.isTouch&&d.$owlWrapper.removeClass("grabbing");d.dragDirection=0>d.newRelativeX?d.owl.dragDirection="left":d.owl.dragDirection="right";0!==d.newRelativeX&&(c=d.getNewPosition(),d.goTo(c,!1,"drag"),h.targetElement===a.target&&!0!==d.browser.isTouch&&(f(a.target).on("click.disable",function(a){a.stopImmediatePropagation();a.stopPropagation();a.preventDefault();f(a.target).off("click.disable")}),
33
+ a=f._data(a.target,"events").click,c=a.pop(),a.splice(0,0,c)));b("off")}var d=this,h={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};d.isCssFinish=!0;d.$elem.on(d.ev_types.start,".owl-wrapper",function(c){c=c.originalEvent||c||g.event;var e;if(3===c.which)return!1;if(!(d.itemsAmount<=d.options.items)){if(!1===d.isCssFinish&&!d.options.dragBeforeAnimFinish||!1===d.isCss3Finish&&!d.options.dragBeforeAnimFinish)return!1;
34
+ !1!==d.options.autoPlay&&g.clearInterval(d.autoPlayInterval);!0===d.browser.isTouch||d.$owlWrapper.hasClass("grabbing")||d.$owlWrapper.addClass("grabbing");d.newPosX=0;d.newRelativeX=0;f(this).css(d.removeTransition());e=f(this).position();h.relativePos=e.left;h.offsetX=a(c).x-e.left;h.offsetY=a(c).y-e.top;b("on");h.sliding=!1;h.targetElement=c.target||c.srcElement}})},getNewPosition:function(){var a=this.closestItem();a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem=
35
+ a=0);return a},closestItem:function(){var a=this,b=!0===a.options.scrollPerPage?a.pagesInArray:a.positionsInArray,e=a.newPosX,c=null;f.each(b,function(d,g){e-a.itemWidth/20>b[d+1]&&e-a.itemWidth/20<g&&"left"===a.moveDirection()?(c=g,a.currentItem=!0===a.options.scrollPerPage?f.inArray(c,a.positionsInArray):d):e+a.itemWidth/20<g&&e+a.itemWidth/20>(b[d+1]||b[d]-a.itemWidth)&&"right"===a.moveDirection()&&(!0===a.options.scrollPerPage?(c=b[d+1]||b[b.length-1],a.currentItem=f.inArray(c,a.positionsInArray)):
36
+ (c=b[d+1],a.currentItem=d+1))});return a.currentItem},moveDirection:function(){var a;0>this.newRelativeX?(a="right",this.playDirection="next"):(a="left",this.playDirection="prev");return a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()});a.$elem.on("owl.prev",function(){a.prev()});a.$elem.on("owl.play",function(b,e){a.options.autoPlay=e;a.play();a.hoverStatus="play"});a.$elem.on("owl.stop",function(){a.stop();a.hoverStatus="stop"});a.$elem.on("owl.goTo",function(b,e){a.goTo(e)});
37
+ a.$elem.on("owl.jumpTo",function(b,e){a.jumpTo(e)})},stopOnHover:function(){var a=this;!0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var a,b,e,c,d;if(!1===this.options.lazyLoad)return!1;for(a=0;a<this.itemsAmount;a+=1)b=f(this.$owlItems[a]),"loaded"!==b.data("owl-loaded")&&(e=b.data("owl-item"),c=b.find(".lazyOwl"),"string"!==typeof c.data("src")?
38
+ b.data("owl-loaded","loaded"):(void 0===b.data("owl-loaded")&&(c.hide(),b.addClass("loading").data("owl-loaded","checked")),(d=!0===this.options.lazyFollow?e>=this.currentItem:!0)&&e<this.currentItem+this.options.items&&c.length&&this.lazyPreload(b,c)))},lazyPreload:function(a,b){function e(){a.data("owl-loaded","loaded").removeClass("loading");b.removeAttr("data-src");"fade"===d.options.lazyEffect?b.fadeIn(400):b.show();"function"===typeof d.options.afterLazyLoad&&d.options.afterLazyLoad.apply(this,
39
+ [d.$elem])}function c(){f+=1;d.completeImg(b.get(0))||!0===k?e():100>=f?g.setTimeout(c,100):e()}var d=this,f=0,k;"DIV"===b.prop("tagName")?(b.css("background-image","url("+b.data("src")+")"),k=!0):b[0].src=b.data("src");c()},autoHeight:function(){function a(){var a=f(e.$owlItems[e.currentItem]).height();e.wrapperOuter.css("height",a+"px");e.wrapperOuter.hasClass("autoHeight")||g.setTimeout(function(){e.wrapperOuter.addClass("autoHeight")},0)}function b(){d+=1;e.completeImg(c.get(0))?a():100>=d?g.setTimeout(b,
40
+ 100):e.wrapperOuter.css("height","")}var e=this,c=f(e.$owlItems[e.currentItem]).find("img"),d;void 0!==c.get(0)?(d=0,b()):a()},completeImg:function(a){return!a.complete||"undefined"!==typeof a.naturalWidth&&0===a.naturalWidth?!1:!0},onVisibleItems:function(){var a;!0===this.options.addClassActive&&this.$owlItems.removeClass("active");this.visibleItems=[];for(a=this.currentItem;a<this.currentItem+this.options.items;a+=1)this.visibleItems.push(a),!0===this.options.addClassActive&&f(this.$owlItems[a]).addClass("active");
41
+ this.owl.visibleItems=this.visibleItems},transitionTypes:function(a){this.outClass="owl-"+a+"-out";this.inClass="owl-"+a+"-in"},singleItemTransition:function(){var a=this,b=a.outClass,e=a.inClass,c=a.$owlItems.eq(a.currentItem),d=a.$owlItems.eq(a.prevItem),f=Math.abs(a.positionsInArray[a.currentItem])+a.positionsInArray[a.prevItem],g=Math.abs(a.positionsInArray[a.currentItem])+a.itemWidth/2;a.isTransition=!0;a.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":g+"px","-moz-perspective-origin":g+
42
+ "px","perspective-origin":g+"px"});d.css({position:"relative",left:f+"px"}).addClass(b).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){a.endPrev=!0;d.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend");a.clearTransStyle(d,b)});c.addClass(e).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){a.endCurrent=!0;c.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend");a.clearTransStyle(c,e)})},clearTransStyle:function(a,
43
+ b){a.css({position:"",left:""}).removeClass(b);this.endPrev&&this.endCurrent&&(this.$owlWrapper.removeClass("owl-origin"),this.isTransition=this.endCurrent=this.endPrev=!1)},owlStatus:function(){this.owl={userOptions:this.userOptions,baseElement:this.$elem,userItems:this.$userItems,owlItems:this.$owlItems,currentItem:this.currentItem,prevItem:this.prevItem,visibleItems:this.visibleItems,isTouch:this.browser.isTouch,browser:this.browser,dragDirection:this.dragDirection}},clearEvents:function(){this.$elem.off(".owl owl mousedown.disableTextSelect");
44
+ f(k).off(".owl owl");f(g).off("resize",this.resizer)},unWrap:function(){0!==this.$elem.children().length&&(this.$owlWrapper.unwrap(),this.$userItems.unwrap().unwrap(),this.owlControls&&this.owlControls.remove());this.clearEvents();this.$elem.attr("style",this.$elem.data("owl-originalStyles")||"").attr("class",this.$elem.data("owl-originalClasses"))},destroy:function(){this.stop();g.clearInterval(this.checkVisible);this.unWrap();this.$elem.removeData()},reinit:function(a){a=f.extend({},this.userOptions,
45
+ a);this.unWrap();this.init(a,this.$elem)},addItem:function(a,b){var e;if(!a)return!1;if(0===this.$elem.children().length)return this.$elem.append(a),this.setVars(),!1;this.unWrap();e=void 0===b||-1===b?-1:b;e>=this.$userItems.length||-1===e?this.$userItems.eq(-1).after(a):this.$userItems.eq(e).before(a);this.setVars()},removeItem:function(a){if(0===this.$elem.children().length)return!1;a=void 0===a||-1===a?-1:a;this.unWrap();this.$userItems.eq(a).remove();this.setVars()}};f.fn.owlCarousel=function(a){return this.each(function(){if(!0===
46
+ f(this).data("owl-init"))return!1;f(this).data("owl-init",!0);var b=Object.create(l);b.init(a,this);f.data(this,"owlCarousel",b)})};f.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1E3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,
47
+ responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:g,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}})(jQuery,window,document);
tx-toolkit/js/tx-script.js ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function ($) {
2
+
3
+ "use strict";
4
+
5
+
6
+
7
+ //client carousel
8
+ $('.tx-testimonials').each(function () {
9
+ $(this).owlCarousel({
10
+ autoPlay : 8000,
11
+ stopOnHover : true,
12
+ //navigation:true,
13
+ paginationSpeed : 1000,
14
+ goToFirstSpeed : 2000,
15
+ singleItem : true,
16
+ autoHeight : true,
17
+ //navigationText: ["<i class=\"fa fa-angle-left\"></i>","<i class=\"fa fa-angle-right\"></i>"],
18
+ //theme: "tx-custom-slider",
19
+ addClassActive: true
20
+ });
21
+ });
22
+
23
+
24
+ //blog and portfolio carousel
25
+ $('.tx-carousel').each(function () {
26
+
27
+ var _this = $('.tx-carousel');
28
+ var car_columns = _this.data('columns');
29
+
30
+ $(this).owlCarousel({
31
+ items : car_columns,
32
+ stopOnHover : true,
33
+ //navigation:true,
34
+ paginationSpeed : 1000,
35
+ navigation : true,
36
+ goToFirstSpeed : 2000,
37
+ singleItem : false,
38
+ autoHeight : true,
39
+ //navigationText: ["<i class=\"fa fa-angle-left\"></i>","<i class=\"fa fa-angle-right\"></i>"],
40
+ //theme: "tx-custom-slider",
41
+ navigationText: ['<span class="genericon genericon-leftarrow"></span>','<span class="genericon genericon-rightarrow"></span>'],
42
+ addClassActive: true,
43
+ theme : "tx-owl-theme"
44
+ });
45
+ });
46
+
47
+
48
+ // colorboxpopup
49
+ $('.tx-colorbox').each(function () {
50
+ $(this).colorbox();
51
+ });
52
+
53
+ // blog area masonry
54
+ //if ( $('.tx-post-row').length > 0 )
55
+
56
+ $(window).load(function(){
57
+ $('.tx-masonry').each(function () {
58
+ $(this).masonry({});
59
+ });
60
+ });
61
+
62
+ /*
63
+ $('.tx-blog').each(function () {
64
+
65
+ console.log ('maso');
66
+
67
+ var _this = $(this);
68
+ var container_3 = document.querySelector('.tx-blog');
69
+ var msnry_3 = new Masonry( container_3, {
70
+ //itemSelector: '.widget'
71
+ });
72
+ });
73
+ */
74
+
75
+
76
+
77
+
78
+ });
79
+
tx-toolkit/js/tx-shortcode.png ADDED
Binary file
tx-toolkit/js/tx_main.js ADDED
@@ -0,0 +1,577 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /*
3
+ Create icon list
4
+ */
5
+
6
+ var faicons=jQuery('<li type="fa" data-value="fa-glass" class="fa fa-glass"> </li>\
7
+ <li type="fa" data-value="fa-music" class="fa fa-music"> </li>\
8
+ <li type="fa" data-value="fa-search" class="fa fa-search"> </li>\
9
+ <li type="fa" data-value="fa-envelope-o" class="fa fa-envelope-o"> </li>\
10
+ <li type="fa" data-value="fa-heart" class="fa fa-heart"> </li>\
11
+ <li type="fa" data-value="fa-star" class="fa fa-star"> </li>\
12
+ <li type="fa" data-value="fa-star-o" class="fa fa-star-o"> </li>\
13
+ <li type="fa" data-value="fa-user" class="fa fa-user"> </li>\
14
+ <li type="fa" data-value="fa-film" class="fa fa-film"> </li>\
15
+ <li type="fa" data-value="fa-th-large" class="fa fa-th-large"> </li>\
16
+ <li type="fa" data-value="fa-th" class="fa fa-th"> </li>\
17
+ <li type="fa" data-value="fa-th-list" class="fa fa-th-list"> </li>\
18
+ <li type="fa" data-value="fa-check" class="fa fa-check"> </li>\
19
+ <li type="fa" data-value="fa-times" class="fa fa-times"> </li>\
20
+ <li type="fa" data-value="fa-search-plus" class="fa fa-search-plus"> </li>\
21
+ <li type="fa" data-value="fa-search-minus" class="fa fa-search-minus"> </li>\
22
+ <li type="fa" data-value="fa-power-off" class="fa fa-power-off"> </li>\
23
+ <li type="fa" data-value="fa-signal" class="fa fa-signal"> </li>\
24
+ <li type="fa" data-value="fa-gear" class="fa fa-gear"> </li>\
25
+ <li type="fa" data-value="fa-cog" class="fa fa-cog"> </li>\
26
+ <li type="fa" data-value="fa-trash-o" class="fa fa-trash-o"> </li>\
27
+ <li type="fa" data-value="fa-home" class="fa fa-home"> </li>\
28
+ <li type="fa" data-value="fa-file-o" class="fa fa-file-o"> </li>\
29
+ <li type="fa" data-value="fa-clock-o" class="fa fa-clock-o"> </li>\
30
+ <li type="fa" data-value="fa-road" class="fa fa-road"> </li>\
31
+ <li type="fa" data-value="fa-download" class="fa fa-download"> </li>\
32
+ <li type="fa" data-value="fa-arrow-circle-o-down" class="fa fa-arrow-circle-o-down"> </li>\
33
+ <li type="fa" data-value="fa-arrow-circle-o-up" class="fa fa-arrow-circle-o-up"> </li>\
34
+ <li type="fa" data-value="fa-inbox" class="fa fa-inbox"> </li>\
35
+ <li type="fa" data-value="fa-play-circle-o" class="fa fa-play-circle-o"> </li>\
36
+ <li type="fa" data-value="fa-rotate-right" class="fa fa-rotate-right"> </li>\
37
+ <li type="fa" data-value="fa-repeat" class="fa fa-repeat"> </li>\
38
+ <li type="fa" data-value="fa-refresh" class="fa fa-refresh"> </li>\
39
+ <li type="fa" data-value="fa-list-alt" class="fa fa-list-alt"> </li>\
40
+ <li type="fa" data-value="fa-lock" class="fa fa-lock"> </li>\
41
+ <li type="fa" data-value="fa-flag" class="fa fa-flag"> </li>\
42
+ <li type="fa" data-value="fa-headphones" class="fa fa-headphones"> </li>\
43
+ <li type="fa" data-value="fa-volume-off" class="fa fa-volume-off"> </li>\
44
+ <li type="fa" data-value="fa-volume-down" class="fa fa-volume-down"> </li>\
45
+ <li type="fa" data-value="fa-volume-up" class="fa fa-volume-up"> </li>\
46
+ <li type="fa" data-value="fa-qrcode" class="fa fa-qrcode"> </li>\
47
+ <li type="fa" data-value="fa-barcode" class="fa fa-barcode"> </li>\
48
+ <li type="fa" data-value="fa-tag" class="fa fa-tag"> </li>\
49
+ <li type="fa" data-value="fa-tags" class="fa fa-tags"> </li>\
50
+ <li type="fa" data-value="fa-book" class="fa fa-book"> </li>\
51
+ <li type="fa" data-value="fa-bookmark" class="fa fa-bookmark"> </li>\
52
+ <li type="fa" data-value="fa-print" class="fa fa-print"> </li>\
53
+ <li type="fa" data-value="fa-camera" class="fa fa-camera"> </li>\
54
+ <li type="fa" data-value="fa-font" class="fa fa-font"> </li>\
55
+ <li type="fa" data-value="fa-bold" class="fa fa-bold"> </li>\
56
+ <li type="fa" data-value="fa-italic" class="fa fa-italic"> </li>\
57
+ <li type="fa" data-value="fa-text-height" class="fa fa-text-height"> </li>\
58
+ <li type="fa" data-value="fa-text-width" class="fa fa-text-width"> </li>\
59
+ <li type="fa" data-value="fa-align-left" class="fa fa-align-left"> </li>\
60
+ <li type="fa" data-value="fa-align-center" class="fa fa-align-center"> </li>\
61
+ <li type="fa" data-value="fa-align-right" class="fa fa-align-right"> </li>\
62
+ <li type="fa" data-value="fa-align-justify" class="fa fa-align-justify"> </li>\
63
+ <li type="fa" data-value="fa-list" class="fa fa-list"> </li>\
64
+ <li type="fa" data-value="fa-dedent" class="fa fa-dedent"> </li>\
65
+ <li type="fa" data-value="fa-outdent" class="fa fa-outdent"> </li>\
66
+ <li type="fa" data-value="fa-indent" class="fa fa-indent"> </li>\
67
+ <li type="fa" data-value="fa-video-camera" class="fa fa-video-camera"> </li>\
68
+ <li type="fa" data-value="fa-photo" class="fa fa-photo"> </li>\
69
+ <li type="fa" data-value="fa-image" class="fa fa-image"> </li>\
70
+ <li type="fa" data-value="fa-picture-o" class="fa fa-picture-o"> </li>\
71
+ <li type="fa" data-value="fa-pencil" class="fa fa-pencil"> </li>\
72
+ <li type="fa" data-value="fa-map-marker" class="fa fa-map-marker"> </li>\
73
+ <li type="fa" data-value="fa-adjust" class="fa fa-adjust"> </li>\
74
+ <li type="fa" data-value="fa-tint" class="fa fa-tint"> </li>\
75
+ <li type="fa" data-value="fa-edit" class="fa fa-edit"> </li>\
76
+ <li type="fa" data-value="fa-pencil-square-o" class="fa fa-pencil-square-o"> </li>\
77
+ <li type="fa" data-value="fa-share-square-o" class="fa fa-share-square-o"> </li>\
78
+ <li type="fa" data-value="fa-check-square-o" class="fa fa-check-square-o"> </li>\
79
+ <li type="fa" data-value="fa-arrows" class="fa fa-arrows"> </li>\
80
+ <li type="fa" data-value="fa-step-backward" class="fa fa-step-backward"> </li>\
81
+ <li type="fa" data-value="fa-fast-backward" class="fa fa-fast-backward"> </li>\
82
+ <li type="fa" data-value="fa-backward" class="fa fa-backward"> </li>\
83
+ <li type="fa" data-value="fa-play" class="fa fa-play"> </li>\
84
+ <li type="fa" data-value="fa-pause" class="fa fa-pause"> </li>\
85
+ <li type="fa" data-value="fa-stop" class="fa fa-stop"> </li>\
86
+ <li type="fa" data-value="fa-forward" class="fa fa-forward"> </li>\
87
+ <li type="fa" data-value="fa-fast-forward" class="fa fa-fast-forward"> </li>\
88
+ <li type="fa" data-value="fa-step-forward" class="fa fa-step-forward"> </li>\
89
+ <li type="fa" data-value="fa-eject" class="fa fa-eject"> </li>\
90
+ <li type="fa" data-value="fa-chevron-left" class="fa fa-chevron-left"> </li>\
91
+ <li type="fa" data-value="fa-chevron-right" class="fa fa-chevron-right"> </li>\
92
+ <li type="fa" data-value="fa-plus-circle" class="fa fa-plus-circle"> </li>\
93
+ <li type="fa" data-value="fa-minus-circle" class="fa fa-minus-circle"> </li>\
94
+ <li type="fa" data-value="fa-times-circle" class="fa fa-times-circle"> </li>\
95
+ <li type="fa" data-value="fa-check-circle" class="fa fa-check-circle"> </li>\
96
+ <li type="fa" data-value="fa-question-circle" class="fa fa-question-circle"> </li>\
97
+ <li type="fa" data-value="fa-info-circle" class="fa fa-info-circle"> </li>\
98
+ <li type="fa" data-value="fa-crosshairs" class="fa fa-crosshairs"> </li>\
99
+ <li type="fa" data-value="fa-times-circle-o" class="fa fa-times-circle-o"> </li>\
100
+ <li type="fa" data-value="fa-check-circle-o" class="fa fa-check-circle-o"> </li>\
101
+ <li type="fa" data-value="fa-ban" class="fa fa-ban"> </li>\
102
+ <li type="fa" data-value="fa-arrow-left" class="fa fa-arrow-left"> </li>\
103
+ <li type="fa" data-value="fa-arrow-right" class="fa fa-arrow-right"> </li>\
104
+ <li type="fa" data-value="fa-arrow-up" class="fa fa-arrow-up"> </li>\
105
+ <li type="fa" data-value="fa-arrow-down" class="fa fa-arrow-down"> </li>\
106
+ <li type="fa" data-value="fa-mail-forward" class="fa fa-mail-forward"> </li>\
107
+ <li type="fa" data-value="fa-share" class="fa fa-share"> </li>\
108
+ <li type="fa" data-value="fa-expand" class="fa fa-expand"> </li>\
109
+ <li type="fa" data-value="fa-compress" class="fa fa-compress"> </li>\
110
+ <li type="fa" data-value="fa-plus" class="fa fa-plus"> </li>\
111
+ <li type="fa" data-value="fa-minus" class="fa fa-minus"> </li>\
112
+ <li type="fa" data-value="fa-asterisk" class="fa fa-asterisk"> </li>\
113
+ <li type="fa" data-value="fa-exclamation-circle" class="fa fa-exclamation-circle"> </li>\
114
+ <li type="fa" data-value="fa-gift" class="fa fa-gift"> </li>\
115
+ <li type="fa" data-value="fa-leaf" class="fa fa-leaf"> </li>\
116
+ <li type="fa" data-value="fa-fire" class="fa fa-fire"> </li>\
117
+ <li type="fa" data-value="fa-eye" class="fa fa-eye"> </li>\
118
+ <li type="fa" data-value="fa-eye-slash" class="fa fa-eye-slash"> </li>\
119
+ <li type="fa" data-value="fa-warning" class="fa fa-warning"> </li>\
120
+ <li type="fa" data-value="fa-exclamation-triangle" class="fa fa-exclamation-triangle"> </li>\
121
+ <li type="fa" data-value="fa-plane" class="fa fa-plane"> </li>\
122
+ <li type="fa" data-value="fa-calendar" class="fa fa-calendar"> </li>\
123
+ <li type="fa" data-value="fa-random" class="fa fa-random"> </li>\
124
+ <li type="fa" data-value="fa-comment" class="fa fa-comment"> </li>\
125
+ <li type="fa" data-value="fa-magnet" class="fa fa-magnet"> </li>\
126
+ <li type="fa" data-value="fa-chevron-up" class="fa fa-chevron-up"> </li>\
127
+ <li type="fa" data-value="fa-chevron-down" class="fa fa-chevron-down"> </li>\
128
+ <li type="fa" data-value="fa-retweet" class="fa fa-retweet"> </li>\
129
+ <li type="fa" data-value="fa-shopping-cart" class="fa fa-shopping-cart"> </li>\
130
+ <li type="fa" data-value="fa-folder" class="fa fa-folder"> </li>\
131
+ <li type="fa" data-value="fa-folder-open" class="fa fa-folder-open"> </li>\
132
+ <li type="fa" data-value="fa-arrows-v" class="fa fa-arrows-v"> </li>\
133
+ <li type="fa" data-value="fa-arrows-h" class="fa fa-arrows-h"> </li>\
134
+ <li type="fa" data-value="fa-bar-chart-o" class="fa fa-bar-chart-o"> </li>\
135
+ <li type="fa" data-value="fa-bar-chart" class="fa fa-bar-chart"> </li>\
136
+ <li type="fa" data-value="fa-twitter-square" class="fa fa-twitter-square"> </li>\
137
+ <li type="fa" data-value="fa-facebook-square" class="fa fa-facebook-square"> </li>\
138
+ <li type="fa" data-value="fa-camera-retro" class="fa fa-camera-retro"> </li>\
139
+ <li type="fa" data-value="fa-key" class="fa fa-key"> </li>\
140
+ <li type="fa" data-value="fa-gears" class="fa fa-gears"> </li>\
141
+ <li type="fa" data-value="fa-cogs" class="fa fa-cogs"> </li>\
142
+ <li type="fa" data-value="fa-comments" class="fa fa-comments"> </li>\
143
+ <li type="fa" data-value="fa-thumbs-o-up" class="fa fa-thumbs-o-up"> </li>\
144
+ <li type="fa" data-value="fa-thumbs-o-down" class="fa fa-thumbs-o-down"> </li>\
145
+ <li type="fa" data-value="fa-star-half" class="fa fa-star-half"> </li>\
146
+ <li type="fa" data-value="fa-heart-o" class="fa fa-heart-o"> </li>\
147
+ <li type="fa" data-value="fa-sign-out" class="fa fa-sign-out"> </li>\
148
+ <li type="fa" data-value="fa-linkedin-square" class="fa fa-linkedin-square"> </li>\
149
+ <li type="fa" data-value="fa-thumb-tack" class="fa fa-thumb-tack"> </li>\
150
+ <li type="fa" data-value="fa-external-link" class="fa fa-external-link"> </li>\
151
+ <li type="fa" data-value="fa-sign-in" class="fa fa-sign-in"> </li>\
152
+ <li type="fa" data-value="fa-trophy" class="fa fa-trophy"> </li>\
153
+ <li type="fa" data-value="fa-github-square" class="fa fa-github-square"> </li>\
154
+ <li type="fa" data-value="fa-upload" class="fa fa-upload"> </li>\
155
+ <li type="fa" data-value="fa-lemon-o" class="fa fa-lemon-o"> </li>\
156
+ <li type="fa" data-value="fa-phone" class="fa fa-phone"> </li>\
157
+ <li type="fa" data-value="fa-square-o" class="fa fa-square-o"> </li>\
158
+ <li type="fa" data-value="fa-bookmark-o" class="fa fa-bookmark-o"> </li>\
159
+ <li type="fa" data-value="fa-phone-square" class="fa fa-phone-square"> </li>\
160
+ <li type="fa" data-value="fa-twitter" class="fa fa-twitter"> </li>\
161
+ <li type="fa" data-value="fa-facebook" class="fa fa-facebook"> </li>\
162
+ <li type="fa" data-value="fa-github" class="fa fa-github"> </li>\
163
+ <li type="fa" data-value="fa-unlock" class="fa fa-unlock"> </li>\
164
+ <li type="fa" data-value="fa-credit-card" class="fa fa-credit-card"> </li>\
165
+ <li type="fa" data-value="fa-rss" class="fa fa-rss"> </li>\
166
+ <li type="fa" data-value="fa-hdd-o" class="fa fa-hdd-o"> </li>\
167
+ <li type="fa" data-value="fa-bullhorn" class="fa fa-bullhorn"> </li>\
168
+ <li type="fa" data-value="fa-bell" class="fa fa-bell"> </li>\
169
+ <li type="fa" data-value="fa-certificate" class="fa fa-certificate"> </li>\
170
+ <li type="fa" data-value="fa-hand-o-right" class="fa fa-hand-o-right"> </li>\
171
+ <li type="fa" data-value="fa-hand-o-left" class="fa fa-hand-o-left"> </li>\
172
+ <li type="fa" data-value="fa-hand-o-up" class="fa fa-hand-o-up"> </li>\
173
+ <li type="fa" data-value="fa-hand-o-down" class="fa fa-hand-o-down"> </li>\
174
+ <li type="fa" data-value="fa-arrow-circle-left" class="fa fa-arrow-circle-left"> </li>\
175
+ <li type="fa" data-value="fa-arrow-circle-right" class="fa fa-arrow-circle-right"> </li>\
176
+ <li type="fa" data-value="fa-arrow-circle-up" class="fa fa-arrow-circle-up"> </li>\
177
+ <li type="fa" data-value="fa-arrow-circle-down" class="fa fa-arrow-circle-down"> </li>\
178
+ <li type="fa" data-value="fa-globe" class="fa fa-globe"> </li>\
179
+ <li type="fa" data-value="fa-wrench" class="fa fa-wrench"> </li>\
180
+ <li type="fa" data-value="fa-tasks" class="fa fa-tasks"> </li>\
181
+ <li type="fa" data-value="fa-filter" class="fa fa-filter"> </li>\
182
+ <li type="fa" data-value="fa-briefcase" class="fa fa-briefcase"> </li>\
183
+ <li type="fa" data-value="fa-arrows-alt" class="fa fa-arrows-alt"> </li>\
184
+ <li type="fa" data-value="fa-group" class="fa fa-group"> </li>\
185
+ <li type="fa" data-value="fa-users" class="fa fa-users"> </li>\
186
+ <li type="fa" data-value="fa-chain" class="fa fa-chain"> </li>\
187
+ <li type="fa" data-value="fa-link" class="fa fa-link"> </li>\
188
+ <li type="fa" data-value="fa-cloud" class="fa fa-cloud"> </li>\
189
+ <li type="fa" data-value="fa-flask" class="fa fa-flask"> </li>\
190
+ <li type="fa" data-value="fa-cut" class="fa fa-cut"> </li>\
191
+ <li type="fa" data-value="fa-scissors" class="fa fa-scissors"> </li>\
192
+ <li type="fa" data-value="fa-copy" class="fa fa-copy"> </li>\
193
+ <li type="fa" data-value="fa-files-o" class="fa fa-files-o"> </li>\
194
+ <li type="fa" data-value="fa-paperclip" class="fa fa-paperclip"> </li>\
195
+ <li type="fa" data-value="fa-save" class="fa fa-save"> </li>\
196
+ <li type="fa" data-value="fa-floppy-o" class="fa fa-floppy-o"> </li>\
197
+ <li type="fa" data-value="fa-square" class="fa fa-square"> </li>\
198
+ <li type="fa" data-value="fa-navicon" class="fa fa-navicon"> </li>\
199
+ <li type="fa" data-value="fa-reorder" class="fa fa-reorder"> </li>\
200
+ <li type="fa" data-value="fa-bars" class="fa fa-bars"> </li>\
201
+ <li type="fa" data-value="fa-list-ul" class="fa fa-list-ul"> </li>\
202
+ <li type="fa" data-value="fa-list-ol" class="fa fa-list-ol"> </li>\
203
+ <li type="fa" data-value="fa-strikethrough" class="fa fa-strikethrough"> </li>\
204
+ <li type="fa" data-value="fa-underline" class="fa fa-underline"> </li>\
205
+ <li type="fa" data-value="fa-table" class="fa fa-table"> </li>\
206
+ <li type="fa" data-value="fa-magic" class="fa fa-magic"> </li>\
207
+ <li type="fa" data-value="fa-truck" class="fa fa-truck"> </li>\
208
+ <li type="fa" data-value="fa-pinterest" class="fa fa-pinterest"> </li>\
209
+ <li type="fa" data-value="fa-pinterest-square" class="fa fa-pinterest-square"> </li>\
210
+ <li type="fa" data-value="fa-google-plus-square" class="fa fa-google-plus-square"> </li>\
211
+ <li type="fa" data-value="fa-google-plus" class="fa fa-google-plus"> </li>\
212
+ <li type="fa" data-value="fa-money" class="fa fa-money"> </li>\
213
+ <li type="fa" data-value="fa-caret-down" class="fa fa-caret-down"> </li>\
214
+ <li type="fa" data-value="fa-caret-up" class="fa fa-caret-up"> </li>\
215
+ <li type="fa" data-value="fa-caret-left" class="fa fa-caret-left"> </li>\
216
+ <li type="fa" data-value="fa-caret-right" class="fa fa-caret-right"> </li>\
217
+ <li type="fa" data-value="fa-columns" class="fa fa-columns"> </li>\
218
+ <li type="fa" data-value="fa-unsorted" class="fa fa-unsorted"> </li>\
219
+ <li type="fa" data-value="fa-sort" class="fa fa-sort"> </li>\
220
+ <li type="fa" data-value="fa-sort-down" class="fa fa-sort-down"> </li>\
221
+ <li type="fa" data-value="fa-sort-desc" class="fa fa-sort-desc"> </li>\
222
+ <li type="fa" data-value="fa-sort-up" class="fa fa-sort-up"> </li>\
223
+ <li type="fa" data-value="fa-sort-asc" class="fa fa-sort-asc"> </li>\
224
+ <li type="fa" data-value="fa-envelope" class="fa fa-envelope"> </li>\
225
+ <li type="fa" data-value="fa-linkedin" class="fa fa-linkedin"> </li>\
226
+ <li type="fa" data-value="fa-rotate-left" class="fa fa-rotate-left"> </li>\
227
+ <li type="fa" data-value="fa-undo" class="fa fa-undo"> </li>\
228
+ <li type="fa" data-value="fa-legal" class="fa fa-legal"> </li>\
229
+ <li type="fa" data-value="fa-gavel" class="fa fa-gavel"> </li>\
230
+ <li type="fa" data-value="fa-dashboard" class="fa fa-dashboard"> </li>\
231
+ <li type="fa" data-value="fa-tachometer" class="fa fa-tachometer"> </li>\
232
+ <li type="fa" data-value="fa-comment-o" class="fa fa-comment-o"> </li>\
233
+ <li type="fa" data-value="fa-comments-o" class="fa fa-comments-o"> </li>\
234
+ <li type="fa" data-value="fa-flash" class="fa fa-flash"> </li>\
235
+ <li type="fa" data-value="fa-bolt" class="fa fa-bolt"> </li>\
236
+ <li type="fa" data-value="fa-sitemap" class="fa fa-sitemap"> </li>\
237
+ <li type="fa" data-value="fa-umbrella" class="fa fa-umbrella"> </li>\
238
+ <li type="fa" data-value="fa-paste" class="fa fa-paste"> </li>\
239
+ <li type="fa" data-value="fa-clipboard" class="fa fa-clipboard"> </li>\
240
+ <li type="fa" data-value="fa-lightbulb-o" class="fa fa-lightbulb-o"> </li>\
241
+ <li type="fa" data-value="fa-exchange" class="fa fa-exchange"> </li>\
242
+ <li type="fa" data-value="fa-cloud-download" class="fa fa-cloud-download"> </li>\
243
+ <li type="fa" data-value="fa-cloud-upload" class="fa fa-cloud-upload"> </li>\
244
+ <li type="fa" data-value="fa-user-md" class="fa fa-user-md"> </li>\
245
+ <li type="fa" data-value="fa-stethoscope" class="fa fa-stethoscope"> </li>\
246
+ <li type="fa" data-value="fa-suitcase" class="fa fa-suitcase"> </li>\
247
+ <li type="fa" data-value="fa-bell-o" class="fa fa-bell-o"> </li>\
248
+ <li type="fa" data-value="fa-coffee" class="fa fa-coffee"> </li>\
249
+ <li type="fa" data-value="fa-cutlery" class="fa fa-cutlery"> </li>\
250
+ <li type="fa" data-value="fa-file-text-o" class="fa fa-file-text-o"> </li>\
251
+ <li type="fa" data-value="fa-building-o" class="fa fa-building-o"> </li>\
252
+ <li type="fa" data-value="fa-hospital-o" class="fa fa-hospital-o"> </li>\
253
+ <li type="fa" data-value="fa-ambulance" class="fa fa-ambulance"> </li>\
254
+ <li type="fa" data-value="fa-medkit" class="fa fa-medkit"> </li>\
255
+ <li type="fa" data-value="fa-fighter-jet" class="fa fa-fighter-jet"> </li>\
256
+ <li type="fa" data-value="fa-beer" class="fa fa-beer"> </li>\
257
+ <li type="fa" data-value="fa-h-square" class="fa fa-h-square"> </li>\
258
+ <li type="fa" data-value="fa-plus-square" class="fa fa-plus-square"> </li>\
259
+ <li type="fa" data-value="fa-angle-double-left" class="fa fa-angle-double-left"> </li>\
260
+ <li type="fa" data-value="fa-angle-double-right" class="fa fa-angle-double-right"> </li>\
261
+ <li type="fa" data-value="fa-angle-double-up" class="fa fa-angle-double-up"> </li>\
262
+ <li type="fa" data-value="fa-angle-double-down" class="fa fa-angle-double-down"> </li>\
263
+ <li type="fa" data-value="fa-angle-left" class="fa fa-angle-left"> </li>\
264
+ <li type="fa" data-value="fa-angle-right" class="fa fa-angle-right"> </li>\
265
+ <li type="fa" data-value="fa-angle-up" class="fa fa-angle-up"> </li>\
266
+ <li type="fa" data-value="fa-angle-down" class="fa fa-angle-down"> </li>\
267
+ <li type="fa" data-value="fa-desktop" class="fa fa-desktop"> </li>\
268
+ <li type="fa" data-value="fa-laptop" class="fa fa-laptop"> </li>\
269
+ <li type="fa" data-value="fa-tablet" class="fa fa-tablet"> </li>\
270
+ <li type="fa" data-value="fa-mobile-phone" class="fa fa-mobile-phone"> </li>\
271
+ <li type="fa" data-value="fa-mobile" class="fa fa-mobile"> </li>\
272
+ <li type="fa" data-value="fa-circle-o" class="fa fa-circle-o"> </li>\
273
+ <li type="fa" data-value="fa-quote-left" class="fa fa-quote-left"> </li>\
274
+ <li type="fa" data-value="fa-quote-right" class="fa fa-quote-right"> </li>\
275
+ <li type="fa" data-value="fa-spinner" class="fa fa-spinner"> </li>\
276
+ <li type="fa" data-value="fa-circle" class="fa fa-circle"> </li>\
277
+ <li type="fa" data-value="fa-mail-reply" class="fa fa-mail-reply"> </li>\
278
+ <li type="fa" data-value="fa-reply" class="fa fa-reply"> </li>\
279
+ <li type="fa" data-value="fa-github-alt" class="fa fa-github-alt"> </li>\
280
+ <li type="fa" data-value="fa-folder-o" class="fa fa-folder-o"> </li>\
281
+ <li type="fa" data-value="fa-folder-open-o" class="fa fa-folder-open-o"> </li>\
282
+ <li type="fa" data-value="fa-smile-o" class="fa fa-smile-o"> </li>\
283
+ <li type="fa" data-value="fa-frown-o" class="fa fa-frown-o"> </li>\
284
+ <li type="fa" data-value="fa-meh-o" class="fa fa-meh-o"> </li>\
285
+ <li type="fa" data-value="fa-gamepad" class="fa fa-gamepad"> </li>\
286
+ <li type="fa" data-value="fa-keyboard-o" class="fa fa-keyboard-o"> </li>\
287
+ <li type="fa" data-value="fa-flag-o" class="fa fa-flag-o"> </li>\
288
+ <li type="fa" data-value="fa-flag-checkered" class="fa fa-flag-checkered"> </li>\
289
+ <li type="fa" data-value="fa-terminal" class="fa fa-terminal"> </li>\
290
+ <li type="fa" data-value="fa-code" class="fa fa-code"> </li>\
291
+ <li type="fa" data-value="fa-mail-reply-all" class="fa fa-mail-reply-all"> </li>\
292
+ <li type="fa" data-value="fa-reply-all" class="fa fa-reply-all"> </li>\
293
+ <li type="fa" data-value="fa-star-half-empty" class="fa fa-star-half-empty"> </li>\
294
+ <li type="fa" data-value="fa-star-half-full" class="fa fa-star-half-full"> </li>\
295
+ <li type="fa" data-value="fa-star-half-o" class="fa fa-star-half-o"> </li>\
296
+ <li type="fa" data-value="fa-location-arrow" class="fa fa-location-arrow"> </li>\
297
+ <li type="fa" data-value="fa-crop" class="fa fa-crop"> </li>\
298
+ <li type="fa" data-value="fa-code-fork" class="fa fa-code-fork"> </li>\
299
+ <li type="fa" data-value="fa-unlink" class="fa fa-unlink"> </li>\
300
+ <li type="fa" data-value="fa-chain-broken" class="fa fa-chain-broken"> </li>\
301
+ <li type="fa" data-value="fa-question" class="fa fa-question"> </li>\
302
+ <li type="fa" data-value="fa-info" class="fa fa-info"> </li>\
303
+ <li type="fa" data-value="fa-exclamation" class="fa fa-exclamation"> </li>\
304
+ <li type="fa" data-value="fa-superscript" class="fa fa-superscript"> </li>\
305
+ <li type="fa" data-value="fa-subscript" class="fa fa-subscript"> </li>\
306
+ <li type="fa" data-value="fa-eraser" class="fa fa-eraser"> </li>\
307
+ <li type="fa" data-value="fa-puzzle-piece" class="fa fa-puzzle-piece"> </li>\
308
+ <li type="fa" data-value="fa-microphone" class="fa fa-microphone"> </li>\
309
+ <li type="fa" data-value="fa-microphone-slash" class="fa fa-microphone-slash"> </li>\
310
+ <li type="fa" data-value="fa-shield" class="fa fa-shield"> </li>\
311
+ <li type="fa" data-value="fa-calendar-o" class="fa fa-calendar-o"> </li>\
312
+ <li type="fa" data-value="fa-fire-extinguisher" class="fa fa-fire-extinguisher"> </li>\
313
+ <li type="fa" data-value="fa-rocket" class="fa fa-rocket"> </li>\
314
+ <li type="fa" data-value="fa-maxcdn" class="fa fa-maxcdn"> </li>\
315
+ <li type="fa" data-value="fa-chevron-circle-left" class="fa fa-chevron-circle-left"> </li>\
316
+ <li type="fa" data-value="fa-chevron-circle-right" class="fa fa-chevron-circle-right"> </li>\
317
+ <li type="fa" data-value="fa-chevron-circle-up" class="fa fa-chevron-circle-up"> </li>\
318
+ <li type="fa" data-value="fa-chevron-circle-down" class="fa fa-chevron-circle-down"> </li>\
319
+ <li type="fa" data-value="fa-anchor" class="fa fa-anchor"> </li>\
320
+ <li type="fa" data-value="fa-unlock-alt" class="fa fa-unlock-alt"> </li>\
321
+ <li type="fa" data-value="fa-bullseye" class="fa fa-bullseye"> </li>\
322
+ <li type="fa" data-value="fa-ellipsis-h" class="fa fa-ellipsis-h"> </li>\
323
+ <li type="fa" data-value="fa-ellipsis-v" class="fa fa-ellipsis-v"> </li>\
324
+ <li type="fa" data-value="fa-rss-square" class="fa fa-rss-square"> </li>\
325
+ <li type="fa" data-value="fa-play-circle" class="fa fa-play-circle"> </li>\
326
+ <li type="fa" data-value="fa-ticket" class="fa fa-ticket"> </li>\
327
+ <li type="fa" data-value="fa-minus-square" class="fa fa-minus-square"> </li>\
328
+ <li type="fa" data-value="fa-minus-square-o" class="fa fa-minus-square-o"> </li>\
329
+ <li type="fa" data-value="fa-level-up" class="fa fa-level-up"> </li>\
330
+ <li type="fa" data-value="fa-level-down" class="fa fa-level-down"> </li>\
331
+ <li type="fa" data-value="fa-check-square" class="fa fa-check-square"> </li>\
332
+ <li type="fa" data-value="fa-pencil-square" class="fa fa-pencil-square"> </li>\
333
+ <li type="fa" data-value="fa-external-link-square" class="fa fa-external-link-square"> </li>\
334
+ <li type="fa" data-value="fa-share-square" class="fa fa-share-square"> </li>\
335
+ <li type="fa" data-value="fa-compass" class="fa fa-compass"> </li>\
336
+ <li type="fa" data-value="fa-toggle-down" class="fa fa-toggle-down"> </li>\
337
+ <li type="fa" data-value="fa-caret-square-o-down" class="fa fa-caret-square-o-down"> </li>\
338
+ <li type="fa" data-value="fa-toggle-up" class="fa fa-toggle-up"> </li>\
339
+ <li type="fa" data-value="fa-caret-square-o-up" class="fa fa-caret-square-o-up"> </li>\
340
+ <li type="fa" data-value="fa-toggle-right" class="fa fa-toggle-right"> </li>\
341
+ <li type="fa" data-value="fa-caret-square-o-right" class="fa fa-caret-square-o-right"> </li>\
342
+ <li type="fa" data-value="fa-euro" class="fa fa-euro"> </li>\
343
+ <li type="fa" data-value="fa-eur" class="fa fa-eur"> </li>\
344
+ <li type="fa" data-value="fa-gbp" class="fa fa-gbp"> </li>\
345
+ <li type="fa" data-value="fa-dollar" class="fa fa-dollar"> </li>\
346
+ <li type="fa" data-value="fa-usd" class="fa fa-usd"> </li>\
347
+ <li type="fa" data-value="fa-rupee" class="fa fa-rupee"> </li>\
348
+ <li type="fa" data-value="fa-inr" class="fa fa-inr"> </li>\
349
+ <li type="fa" data-value="fa-cny" class="fa fa-cny"> </li>\
350
+ <li type="fa" data-value="fa-rmb" class="fa fa-rmb"> </li>\
351
+ <li type="fa" data-value="fa-yen" class="fa fa-yen"> </li>\
352
+ <li type="fa" data-value="fa-jpy" class="fa fa-jpy"> </li>\
353
+ <li type="fa" data-value="fa-ruble" class="fa fa-ruble"> </li>\
354
+ <li type="fa" data-value="fa-rouble" class="fa fa-rouble"> </li>\
355
+ <li type="fa" data-value="fa-rub" class="fa fa-rub"> </li>\
356
+ <li type="fa" data-value="fa-won" class="fa fa-won"> </li>\
357
+ <li type="fa" data-value="fa-krw" class="fa fa-krw"> </li>\
358
+ <li type="fa" data-value="fa-bitcoin" class="fa fa-bitcoin"> </li>\
359
+ <li type="fa" data-value="fa-btc" class="fa fa-btc"> </li>\
360
+ <li type="fa" data-value="fa-file" class="fa fa-file"> </li>\
361
+ <li type="fa" data-value="fa-file-text" class="fa fa-file-text"> </li>\
362
+ <li type="fa" data-value="fa-sort-alpha-asc" class="fa fa-sort-alpha-asc"> </li>\
363
+ <li type="fa" data-value="fa-sort-alpha-desc" class="fa fa-sort-alpha-desc"> </li>\
364
+ <li type="fa" data-value="fa-sort-amount-asc" class="fa fa-sort-amount-asc"> </li>\
365
+ <li type="fa" data-value="fa-sort-amount-desc" class="fa fa-sort-amount-desc"> </li>\
366
+ <li type="fa" data-value="fa-sort-numeric-asc" class="fa fa-sort-numeric-asc"> </li>\
367
+ <li type="fa" data-value="fa-sort-numeric-desc" class="fa fa-sort-numeric-desc"> </li>\
368
+ <li type="fa" data-value="fa-thumbs-up" class="fa fa-thumbs-up"> </li>\
369
+ <li type="fa" data-value="fa-thumbs-down" class="fa fa-thumbs-down"> </li>\
370
+ <li type="fa" data-value="fa-youtube-square" class="fa fa-youtube-square"> </li>\
371
+ <li type="fa" data-value="fa-youtube" class="fa fa-youtube"> </li>\
372
+ <li type="fa" data-value="fa-xing" class="fa fa-xing"> </li>\
373
+ <li type="fa" data-value="fa-xing-square" class="fa fa-xing-square"> </li>\
374
+ <li type="fa" data-value="fa-youtube-play" class="fa fa-youtube-play"> </li>\
375
+ <li type="fa" data-value="fa-dropbox" class="fa fa-dropbox"> </li>\
376
+ <li type="fa" data-value="fa-stack-overflow" class="fa fa-stack-overflow"> </li>\
377
+ <li type="fa" data-value="fa-instagram" class="fa fa-instagram"> </li>\
378
+ <li type="fa" data-value="fa-flickr" class="fa fa-flickr"> </li>\
379
+ <li type="fa" data-value="fa-adn" class="fa fa-adn"> </li>\
380
+ <li type="fa" data-value="fa-bitbucket" class="fa fa-bitbucket"> </li>\
381
+ <li type="fa" data-value="fa-bitbucket-square" class="fa fa-bitbucket-square"> </li>\
382
+ <li type="fa" data-value="fa-tumblr" class="fa fa-tumblr"> </li>\
383
+ <li type="fa" data-value="fa-tumblr-square" class="fa fa-tumblr-square"> </li>\
384
+ <li type="fa" data-value="fa-long-arrow-down" class="fa fa-long-arrow-down"> </li>\
385
+ <li type="fa" data-value="fa-long-arrow-up" class="fa fa-long-arrow-up"> </li>\
386
+ <li type="fa" data-value="fa-long-arrow-left" class="fa fa-long-arrow-left"> </li>\
387
+ <li type="fa" data-value="fa-long-arrow-right" class="fa fa-long-arrow-right"> </li>\
388
+ <li type="fa" data-value="fa-apple" class="fa fa-apple"> </li>\
389
+ <li type="fa" data-value="fa-windows" class="fa fa-windows"> </li>\
390
+ <li type="fa" data-value="fa-android" class="fa fa-android"> </li>\
391
+ <li type="fa" data-value="fa-linux" class="fa fa-linux"> </li>\
392
+ <li type="fa" data-value="fa-dribbble" class="fa fa-dribbble"> </li>\
393
+ <li type="fa" data-value="fa-skype" class="fa fa-skype"> </li>\
394
+ <li type="fa" data-value="fa-foursquare" class="fa fa-foursquare"> </li>\
395
+ <li type="fa" data-value="fa-trello" class="fa fa-trello"> </li>\
396
+ <li type="fa" data-value="fa-female" class="fa fa-female"> </li>\
397
+ <li type="fa" data-value="fa-male" class="fa fa-male"> </li>\
398
+ <li type="fa" data-value="fa-gittip" class="fa fa-gittip"> </li>\
399
+ <li type="fa" data-value="fa-sun-o" class="fa fa-sun-o"> </li>\
400
+ <li type="fa" data-value="fa-moon-o" class="fa fa-moon-o"> </li>\
401
+ <li type="fa" data-value="fa-archive" class="fa fa-archive"> </li>\
402
+ <li type="fa" data-value="fa-bug" class="fa fa-bug"> </li>\
403
+ <li type="fa" data-value="fa-vk" class="fa fa-vk"> </li>\
404
+ <li type="fa" data-value="fa-weibo" class="fa fa-weibo"> </li>\
405
+ <li type="fa" data-value="fa-renren" class="fa fa-renren"> </li>\
406
+ <li type="fa" data-value="fa-pagelines" class="fa fa-pagelines"> </li>\
407
+ <li type="fa" data-value="fa-stack-exchange" class="fa fa-stack-exchange"> </li>\
408
+ <li type="fa" data-value="fa-arrow-circle-o-right" class="fa fa-arrow-circle-o-right"> </li>\
409
+ <li type="fa" data-value="fa-arrow-circle-o-left" class="fa fa-arrow-circle-o-left"> </li>\
410
+ <li type="fa" data-value="fa-toggle-left" class="fa fa-toggle-left"> </li>\
411
+ <li type="fa" data-value="fa-caret-square-o-left" class="fa fa-caret-square-o-left"> </li>\
412
+ <li type="fa" data-value="fa-dot-circle-o" class="fa fa-dot-circle-o"> </li>\
413
+ <li type="fa" data-value="fa-wheelchair" class="fa fa-wheelchair"> </li>\
414
+ <li type="fa" data-value="fa-vimeo-square" class="fa fa-vimeo-square"> </li>\
415
+ <li type="fa" data-value="fa-turkish-lira" class="fa fa-turkish-lira"> </li>\
416
+ <li type="fa" data-value="fa-try" class="fa fa-try"> </li>\
417
+ <li type="fa" data-value="fa-plus-square-o" class="fa fa-plus-square-o"> </li>\
418
+ <li type="fa" data-value="fa-space-shuttle" class="fa fa-space-shuttle"> </li>\
419
+ <li type="fa" data-value="fa-slack" class="fa fa-slack"> </li>\
420
+ <li type="fa" data-value="fa-envelope-square" class="fa fa-envelope-square"> </li>\
421
+ <li type="fa" data-value="fa-wordpress" class="fa fa-wordpress"> </li>\
422
+ <li type="fa" data-value="fa-openid" class="fa fa-openid"> </li>\
423
+ <li type="fa" data-value="fa-institution" class="fa fa-institution"> </li>\
424
+ <li type="fa" data-value="fa-bank" class="fa fa-bank"> </li>\
425
+ <li type="fa" data-value="fa-university" class="fa fa-university"> </li>\
426
+ <li type="fa" data-value="fa-mortar-board" class="fa fa-mortar-board"> </li>\
427
+ <li type="fa" data-value="fa-graduation-cap" class="fa fa-graduation-cap"> </li>\
428
+ <li type="fa" data-value="fa-yahoo" class="fa fa-yahoo"> </li>\
429
+ <li type="fa" data-value="fa-google" class="fa fa-google"> </li>\
430
+ <li type="fa" data-value="fa-reddit" class="fa fa-reddit"> </li>\
431
+ <li type="fa" data-value="fa-reddit-square" class="fa fa-reddit-square"> </li>\
432
+ <li type="fa" data-value="fa-stumbleupon-circle" class="fa fa-stumbleupon-circle"> </li>\
433
+ <li type="fa" data-value="fa-stumbleupon" class="fa fa-stumbleupon"> </li>\
434
+ <li type="fa" data-value="fa-delicious" class="fa fa-delicious"> </li>\
435
+ <li type="fa" data-value="fa-digg" class="fa fa-digg"> </li>\
436
+ <li type="fa" data-value="fa-pied-piper" class="fa fa-pied-piper"> </li>\
437
+ <li type="fa" data-value="fa-pied-piper-alt" class="fa fa-pied-piper-alt"> </li>\
438
+ <li type="fa" data-value="fa-drupal" class="fa fa-drupal"> </li>\
439
+ <li type="fa" data-value="fa-joomla" class="fa fa-joomla"> </li>\
440
+ <li type="fa" data-value="fa-language" class="fa fa-language"> </li>\
441
+ <li type="fa" data-value="fa-fax" class="fa fa-fax"> </li>\
442
+ <li type="fa" data-value="fa-building" class="fa fa-building"> </li>\
443
+ <li type="fa" data-value="fa-child" class="fa fa-child"> </li>\
444
+ <li type="fa" data-value="fa-paw" class="fa fa-paw"> </li>\
445
+ <li type="fa" data-value="fa-spoon" class="fa fa-spoon"> </li>\
446
+ <li type="fa" data-value="fa-cube" class="fa fa-cube"> </li>\
447
+ <li type="fa" data-value="fa-cubes" class="fa fa-cubes"> </li>\
448
+ <li type="fa" data-value="fa-behance" class="fa fa-behance"> </li>\
449
+ <li type="fa" data-value="fa-behance-square" class="fa fa-behance-square"> </li>\
450
+ <li type="fa" data-value="fa-steam" class="fa fa-steam"> </li>\
451
+ <li type="fa" data-value="fa-steam-square" class="fa fa-steam-square"> </li>\
452
+ <li type="fa" data-value="fa-recycle" class="fa fa-recycle"> </li>\
453
+ <li type="fa" data-value="fa-automobile" class="fa fa-automobile"> </li>\
454
+ <li type="fa" data-value="fa-car" class="fa fa-car"> </li>\
455
+ <li type="fa" data-value="fa-cab" class="fa fa-cab"> </li>\
456
+ <li type="fa" data-value="fa-taxi" class="fa fa-taxi"> </li>\
457
+ <li type="fa" data-value="fa-tree" class="fa fa-tree"> </li>\
458
+ <li type="fa" data-value="fa-spotify" class="fa fa-spotify"> </li>\
459
+ <li type="fa" data-value="fa-deviantart" class="fa fa-deviantart"> </li>\
460
+ <li type="fa" data-value="fa-soundcloud" class="fa fa-soundcloud"> </li>\
461
+ <li type="fa" data-value="fa-database" class="fa fa-database"> </li>\
462
+ <li type="fa" data-value="fa-file-pdf-o" class="fa fa-file-pdf-o"> </li>\
463
+ <li type="fa" data-value="fa-file-word-o" class="fa fa-file-word-o"> </li>\
464
+ <li type="fa" data-value="fa-file-excel-o" class="fa fa-file-excel-o"> </li>\
465
+ <li type="fa" data-value="fa-file-powerpoint-o" class="fa fa-file-powerpoint-o"> </li>\
466
+ <li type="fa" data-value="fa-file-photo-o" class="fa fa-file-photo-o"> </li>\
467
+ <li type="fa" data-value="fa-file-picture-o" class="fa fa-file-picture-o"> </li>\
468
+ <li type="fa" data-value="fa-file-image-o" class="fa fa-file-image-o"> </li>\
469
+ <li type="fa" data-value="fa-file-zip-o" class="fa fa-file-zip-o"> </li>\
470
+ <li type="fa" data-value="fa-file-archive-o" class="fa fa-file-archive-o"> </li>\
471
+ <li type="fa" data-value="fa-file-sound-o" class="fa fa-file-sound-o"> </li>\
472
+ <li type="fa" data-value="fa-file-audio-o" class="fa fa-file-audio-o"> </li>\
473
+ <li type="fa" data-value="fa-file-movie-o" class="fa fa-file-movie-o"> </li>\
474
+ <li type="fa" data-value="fa-file-video-o" class="fa fa-file-video-o"> </li>\
475
+ <li type="fa" data-value="fa-file-code-o" class="fa fa-file-code-o"> </li>\
476
+ <li type="fa" data-value="fa-vine" class="fa fa-vine"> </li>\
477
+ <li type="fa" data-value="fa-codepen" class="fa fa-codepen"> </li>\
478
+ <li type="fa" data-value="fa-jsfiddle" class="fa fa-jsfiddle"> </li>\
479
+ <li type="fa" data-value="fa-life-bouy" class="fa fa-life-bouy"> </li>\
480
+ <li type="fa" data-value="fa-life-buoy" class="fa fa-life-buoy"> </li>\
481
+ <li type="fa" data-value="fa-life-saver" class="fa fa-life-saver"> </li>\
482
+ <li type="fa" data-value="fa-support" class="fa fa-support"> </li>\
483
+ <li type="fa" data-value="fa-life-ring" class="fa fa-life-ring"> </li>\
484
+ <li type="fa" data-value="fa-circle-o-notch" class="fa fa-circle-o-notch"> </li>\
485
+ <li type="fa" data-value="fa-ra" class="fa fa-ra"> </li>\
486
+ <li type="fa" data-value="fa-rebel" class="fa fa-rebel"> </li>\
487
+ <li type="fa" data-value="fa-ge" class="fa fa-ge"> </li>\
488
+ <li type="fa" data-value="fa-empire" class="fa fa-empire"> </li>\
489
+ <li type="fa" data-value="fa-git-square" class="fa fa-git-square"> </li>\
490
+ <li type="fa" data-value="fa-git" class="fa fa-git"> </li>\
491
+ <li type="fa" data-value="fa-hacker-news" class="fa fa-hacker-news"> </li>\
492
+ <li type="fa" data-value="fa-tencent-weibo" class="fa fa-tencent-weibo"> </li>\
493
+ <li type="fa" data-value="fa-qq" class="fa fa-qq"> </li>\
494
+ <li type="fa" data-value="fa-wechat" class="fa fa-wechat"> </li>\
495
+ <li type="fa" data-value="fa-weixin" class="fa fa-weixin"> </li>\
496
+ <li type="fa" data-value="fa-send" class="fa fa-send"> </li>\
497
+ <li type="fa" data-value="fa-paper-plane" class="fa fa-paper-plane"> </li>\
498
+ <li type="fa" data-value="fa-send-o" class="fa fa-send-o"> </li>\
499
+ <li type="fa" data-value="fa-paper-plane-o" class="fa fa-paper-plane-o"> </li>\
500
+ <li type="fa" data-value="fa-history" class="fa fa-history"> </li>\
501
+ <li type="fa" data-value="fa-circle-thin" class="fa fa-circle-thin"> </li>\
502
+ <li type="fa" data-value="fa-header" class="fa fa-header"> </li>\
503
+ <li type="fa" data-value="fa-paragraph" class="fa fa-paragraph"> </li>\
504
+ <li type="fa" data-value="fa-sliders" class="fa fa-sliders"> </li>\
505
+ <li type="fa" data-value="fa-share-alt" class="fa fa-share-alt"> </li>\
506
+ <li type="fa" data-value="fa-share-alt-square" class="fa fa-share-alt-square"> </li>\
507
+ <li type="fa" data-value="fa-bomb" class="fa fa-bomb"> </li>\
508
+ <li type="fa" data-value="fa-soccer-ball-o" class="fa fa-soccer-ball-o"> </li>\
509
+ <li type="fa" data-value="fa-futbol-o" class="fa fa-futbol-o"> </li>\
510
+ <li type="fa" data-value="fa-tty" class="fa fa-tty"> </li>\
511
+ <li type="fa" data-value="fa-binoculars" class="fa fa-binoculars"> </li>\
512
+ <li type="fa" data-value="fa-plug" class="fa fa-plug"> </li>\
513
+ <li type="fa" data-value="fa-slideshare" class="fa fa-slideshare"> </li>\
514
+ <li type="fa" data-value="fa-twitch" class="fa fa-twitch"> </li>\
515
+ <li type="fa" data-value="fa-yelp" class="fa fa-yelp"> </li>\
516
+ <li type="fa" data-value="fa-newspaper-o" class="fa fa-newspaper-o"> </li>\
517
+ <li type="fa" data-value="fa-wifi" class="fa fa-wifi"> </li>\
518
+ <li type="fa" data-value="fa-calculator" class="fa fa-calculator"> </li>\
519
+ <li type="fa" data-value="fa-paypal" class="fa fa-paypal"> </li>\
520
+ <li type="fa" data-value="fa-google-wallet" class="fa fa-google-wallet"> </li>\
521
+ <li type="fa" data-value="fa-cc-visa" class="fa fa-cc-visa"> </li>\
522
+ <li type="fa" data-value="fa-cc-mastercard" class="fa fa-cc-mastercard"> </li>\
523
+ <li type="fa" data-value="fa-cc-discover" class="fa fa-cc-discover"> </li>\
524
+ <li type="fa" data-value="fa-cc-amex" class="fa fa-cc-amex"> </li>\
525
+ <li type="fa" data-value="fa-cc-paypal" class="fa fa-cc-paypal"> </li>\
526
+ <li type="fa" data-value="fa-cc-stripe" class="fa fa-cc-stripe"> </li>\
527
+ <li type="fa" data-value="fa-bell-slash" class="fa fa-bell-slash"> </li>\
528
+ <li type="fa" data-value="fa-bell-slash-o" class="fa fa-bell-slash-o"> </li>\
529
+ <li type="fa" data-value="fa-trash" class="fa fa-trash"> </li>\
530
+ <li type="fa" data-value="fa-copyright" class="fa fa-copyright"> </li>\
531
+ <li type="fa" data-value="fa-at" class="fa fa-at"> </li>\
532
+ <li type="fa" data-value="fa-eyedropper" class="fa fa-eyedropper"> </li>\
533
+ <li type="fa" data-value="fa-paint-brush" class="fa fa-paint-brush"> </li>\
534
+ <li type="fa" data-value="fa-birthday-cake" class="fa fa-birthday-cake"> </li>\
535
+ <li type="fa" data-value="fa-area-chart" class="fa fa-area-chart"> </li>\
536
+ <li type="fa" data-value="fa-pie-chart" class="fa fa-pie-chart"> </li>\
537
+ <li type="fa" data-value="fa-line-chart" class="fa fa-line-chart"> </li>\
538
+ <li type="fa" data-value="fa-lastfm" class="fa fa-lastfm"> </li>\
539
+ <li type="fa" data-value="fa-lastfm-square" class="fa fa-lastfm-square"> </li>\
540
+ <li type="fa" data-value="fa-toggle-off" class="fa fa-toggle-off"> </li>\
541
+ <li type="fa" data-value="fa-toggle-on" class="fa fa-toggle-on"> </li>\
542
+ <li type="fa" data-value="fa-bicycle" class="fa fa-bicycle"> </li>\
543
+ <li type="fa" data-value="fa-bus" class="fa fa-bus"> </li>\
544
+ <li type="fa" data-value="fa-ioxhost" class="fa fa-ioxhost"> </li>\
545
+ <li type="fa" data-value="fa-angellist" class="fa fa-angellist"> </li>\
546
+ <li type="fa" data-value="fa-cc" class="fa fa-cc"> </li>\
547
+ <li type="fa" data-value="fa-shekel" class="fa fa-shekel"> </li>\
548
+ <li type="fa" data-value="fa-ils" class="fa fa-ils"> </li>\
549
+ <li type="fa" data-value="fa-meanpath" class="fa fa-meanpath"> </li>');
550
+ var ebsfaicons='';
551
+ jQuery(faicons).each(function(ind,val){
552
+ ebsfaicons+=val.outerHTML;
553
+ });
554
+
555
+ function tx_font_awesome_include($class){
556
+ var icons='';
557
+ icons+='<ul name="oscitas-heading-icon_data" class="'+$class+'">'+ebsfaicons+'</ul>';
558
+ return icons;
559
+ }
560
+
561
+ /*
562
+ Add Color picker
563
+ */
564
+
565
+ function tx_color_picker($ele){
566
+ jQuery($ele).wpColorPicker({
567
+ clear: function(){
568
+ jQuery(this).parents('.wp-picker-container').find('.wp-color-result').addClass('ebs-picked-cleared');
569
+ },
570
+ change: function(){
571
+ jQuery(this).parents('.wp-picker-container').find('.wp-color-result').removeClass('ebs-picked-cleared');
572
+ }
573
+ }).each(function(){
574
+ if(jQuery(this).wpColorPicker('color') == '')
575
+ jQuery(this).parents('.wp-picker-container').find('.wp-color-result').addClass('ebs-picked-cleared');
576
+ });
577
+ }
tx-toolkit/readme.txt ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ TemplatesNext ToolKit
2
+ Tags:
3
+ Requires at least: 3.6
4
+ Tested up to: 4.1
5
+ Stable tag: 2.1
6
+ License: GPLv2 or later
7
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
8
+
9
+ Custom Portfolio, Testimonial and Shortcode functionality for TemplatesNext Wordpress Themes
10
+
11
+ == Description ==
12
+
13
+ Custom Portfolio, Testimonial and Shortcode functionality for TemplatesNext Wordpress Themes
14
+
15
+ Not intended to work with any other themes.
16
+
17
+ == Installation ==
18
+
19
+ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
20
+
21
+
22
+ == Changelog ==
23
+
24
+
25
+ = 1.0.1 =
26
+ * Initial Version.
tx-toolkit/shortcodes.php ADDED
@@ -0,0 +1,415 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ function tx_shortcodes_button() {
5
+
6
+ if ( ! current_user_can('edit_posts') && ! current_user_can('edit_pages') ) {
7
+ return;
8
+ }
9
+
10
+ if ( get_user_option('rich_editing') == 'true' ) {
11
+ add_filter( 'mce_external_plugins', 'tx_add_plugin' );
12
+ add_filter( 'mce_buttons', 'tx_register_button' );
13
+ }
14
+
15
+ }
16
+ //add_action('init', 'tx_shortcodes_button');
17
+ add_action('admin_head', 'tx_shortcodes_button');
18
+
19
+ function tx_add_plugin( $plugin_array ) {
20
+ $plugin_array['txshortcodes'] = plugin_dir_url( __FILE__ ) . 'tx-shortcodes.js';
21
+ return $plugin_array;
22
+ }
23
+
24
+ function tx_register_button( $buttons ) {
25
+ array_push( $buttons, "|", "txshortcodes" );
26
+ return $buttons;
27
+ }
28
+
29
+ // recent posts [tx_blog items="3" colums="6" showcat="show" category_id="8,9"]
30
+
31
+ function tx_blog_function($atts, $content = null) {
32
+
33
+ $atts = shortcode_atts(array(
34
+ 'items' => 4,
35
+ 'columns' => 4,
36
+ 'showcat' => 'show',
37
+ 'category_id' => '',
38
+ 'carousel' => 'no',
39
+ ), $atts);
40
+
41
+ $post_in_cat = tx_shortcodes_comma_delim_to_array( $atts['category_id'] );
42
+
43
+ $posts_per_page = intval( $atts['items'] );
44
+ $total_column = intval( $atts['columns'] );
45
+ $tx_category = $atts['showcat'];
46
+ $tx_carousel = $atts['carousel'];
47
+
48
+ $return_string = '';
49
+
50
+ if( $tx_carousel == 'no' ) {
51
+ $return_string .= '<div class="tx-blog tx-post-row tx-masonry">';
52
+ } else
53
+ {
54
+ $return_string .= '<div class="tx-blog tx-post-row tx-carousel" data-columns="'.$total_column.'">';
55
+ }
56
+
57
+ wp_reset_query();
58
+ global $post;
59
+
60
+ $args = array(
61
+ 'posts_per_page' => $posts_per_page,
62
+ 'orderby' => 'date',
63
+ 'order' => 'DESC',
64
+ 'ignore_sticky_posts' => 1,
65
+ //'post__in' => 2//$post_in_cat, //use post ids
66
+ );
67
+ //$args['paging'] = true;
68
+ /**/
69
+ query_posts( $args );
70
+
71
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
72
+
73
+ $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'tx-medium' );
74
+ $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
75
+
76
+ $return_string .= '<div class="tx-blog-item tx-post-col-'.$total_column.'"><div class="tx-border-box">';
77
+
78
+ if ( has_post_thumbnail() ) {
79
+ $return_string .= '<div class="tx-blog-img"><a href="'.esc_url($full_image_url[0]).'" class="tx-colorbox">';
80
+ $return_string .= '<img src="'.esc_url($large_image_url[0]).'" alt="" class="blog-image" /></a></div>';
81
+ }
82
+ $return_string .= '<div class="tx-post-content"><h3 class="tx-post-title"><a href="'.get_permalink().'">'.get_the_title().'</a></h3>';
83
+ if ( $tx_category == "show" )
84
+ {
85
+ $return_string .= '<div class="tx-category">'.get_the_category_list( ', ' ).'</div>';
86
+ } else
87
+ {
88
+ $return_string .= '<div style="height: 16px;"></div>';
89
+ }
90
+
91
+ $return_string .= '<div class="tx-blog-content">'.get_the_excerpt().'</div>';
92
+
93
+ $return_string .= '<div class="tx-meta">';
94
+ $return_string .= '<span class="tx-author">By : <a href="'.esc_url( get_author_posts_url( get_the_author_meta("ID") ) ).'">'.get_the_author().'</a></span>';
95
+ $return_string .= '<span class="tx-date"> | '.get_the_date('M j, Y').'</span>';
96
+ $return_string .= '</div>';
97
+
98
+
99
+ $return_string .= '</div></div></div>';
100
+
101
+
102
+ endwhile; else :
103
+ $return_string .= '<p>Sorry, no posts matched your criteria.</p>';
104
+ endif;
105
+
106
+ $return_string .= '</div>';
107
+
108
+ wp_reset_query();
109
+
110
+ return $return_string;
111
+ }
112
+
113
+ // row
114
+
115
+ function tx_row_function($atts, $content = null) {
116
+
117
+ $atts = shortcode_atts(array(
118
+ 'class' => '',
119
+ ), $atts);
120
+
121
+ $return_string ='';
122
+
123
+ $return_string .= '<div class="tx-row">';
124
+ $return_string .= do_shortcode($content);
125
+ $return_string .= '</div>';
126
+
127
+ return $return_string;
128
+ }
129
+
130
+ // columns
131
+ function tx_column_function($atts, $content = null) {
132
+
133
+ $atts = shortcode_atts(array(
134
+ 'size' => '1/4',
135
+ 'class' => '',
136
+ ), $atts);
137
+
138
+ $return_string ='';
139
+ $column_class = 'tx-column-size-';
140
+
141
+ if ( $atts['size'] == '1/1' )
142
+ {
143
+ $column_class .= '1-1';
144
+ } elseif ( $atts['size'] == '1/2' )
145
+ {
146
+ $column_class .= '1-2';
147
+ } elseif ( $atts['size'] == '1/3' )
148
+ {
149
+ $column_class .= '1-3';
150
+ } elseif ($atts['size'] == '1/4' )
151
+ {
152
+ $column_class .= '1-4';
153
+ } elseif ($atts['size'] == '2/3' )
154
+ {
155
+ $column_class .= '2-3';
156
+ } elseif ($atts['size'] == '3/4' )
157
+ {
158
+ $column_class .= '3-4';
159
+ }
160
+
161
+ $return_string .= '<div class="tx-column ' .$column_class. '">';
162
+ $return_string .= do_shortcode($content);
163
+ $return_string .= '</div>';
164
+
165
+ return $return_string;
166
+ }
167
+
168
+ // spacer
169
+
170
+ function tx_spacer_function($atts, $content = null) {
171
+
172
+ $atts = shortcode_atts(array(
173
+ 'class' => '',
174
+ 'size' => '16',
175
+ ), $atts);
176
+
177
+ $return_string ='';
178
+
179
+ $return_string .= '<div class="tx-spacer clearfix" style="height: '.esc_attr($atts['size']).'px"></div>';
180
+
181
+ return $return_string;
182
+ }
183
+
184
+ // devider [tx_devider size="24"]
185
+ function tx_divider_function($atts, $content = null) {
186
+
187
+ $atts = shortcode_atts(array(
188
+ 'class' => '',
189
+ 'size' => '16',
190
+ ), $atts);
191
+
192
+ $return_string ='';
193
+
194
+ $return_string .= '<div class="tx-divider clearfix" style="margin-top: '.esc_attr($atts['size']).'px;margin-bottom: '.esc_attr($atts['size']).'px"></div>';
195
+
196
+ return $return_string;
197
+ }
198
+
199
+
200
+ // recent posts
201
+
202
+ function tx_testimonial_function($atts, $content = null) {
203
+
204
+ $atts = shortcode_atts(array(
205
+ 'posts' => 6,
206
+ ), $atts);
207
+
208
+
209
+ $posts_per_page = $atts['posts'];
210
+ $posts_per_page = intval( $posts_per_page );
211
+
212
+ $return_string = '';
213
+
214
+ $return_string .= '<div class="tx-testimonials">';
215
+
216
+
217
+ wp_reset_query();
218
+ global $post;
219
+
220
+ $args = array(
221
+ 'posts_per_page' => $posts_per_page,
222
+ 'post_type' => 'testimonials',
223
+ 'orderby' => 'date',
224
+ 'order' => 'DESC'
225
+ );
226
+ //$args['paging'] = true;
227
+ /**/
228
+ query_posts( $args );
229
+
230
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
231
+
232
+ $testi_name = esc_attr(rwmb_meta('icreate_testi_name'));
233
+ $testi_desig = esc_attr(rwmb_meta('icreate_testi_desig'));
234
+ $testi_organ = esc_attr(rwmb_meta('icreate_testi_company'));
235
+
236
+
237
+ $return_string .= '<div class="tx-testi-item">';
238
+ $return_string .= '<span class="tx-testi-text">'.get_the_content().'</span>';
239
+ $return_string .= '<span class="tx-testi-name">'.$testi_name.'</span>';
240
+ $return_string .= '<span class="tx-testi-desig">'.$testi_desig.', </span>';
241
+ $return_string .= '<span class="tx-testi-org">'.$testi_organ.'</span>';
242
+ $return_string .= '</div>';
243
+ endwhile; else :
244
+ $return_string .= '<p>Sorry, no posts matched your criteria.</p>';
245
+ endif;
246
+
247
+ $return_string .= '</div>';
248
+
249
+ wp_reset_query();
250
+ return $return_string;
251
+ }
252
+
253
+
254
+ // button
255
+
256
+ function tx_button_function($atts, $content = null) {
257
+
258
+ $atts = shortcode_atts(array(
259
+ 'style' => '',
260
+ 'text' => '',
261
+ 'url' => '',
262
+ 'color' => '',
263
+ 'textcolor' => '',
264
+ 'class' => '',
265
+ ), $atts);
266
+
267
+ $return_string ='';
268
+
269
+ $return_string .= '<a class="tx-button" href="'.esc_url($atts['url']).'" style="color: '.esc_attr($atts['textcolor']).'; background-color: '.esc_attr($atts['color']).'">'.esc_attr($atts['text']).'</a>';
270
+
271
+ return $return_string;
272
+ }
273
+
274
+ // Call to act
275
+
276
+ function tx_calltoact_function($atts, $content = null) {
277
+
278
+ $atts = shortcode_atts(array(
279
+ 'button_text' => '',
280
+ 'url' => '',
281
+ 'class' => '',
282
+ ), $atts);
283
+
284
+ $cta_text = esc_attr($content);
285
+
286
+ $return_string ='';
287
+
288
+ $return_string .= '<div class="tx-cta" style=""><div class="tx-cta-text">'.$content.'</div><a href="'.esc_url($atts['url']).'" class="cta-button">'.esc_attr($atts['button_text']).'</a></div>';
289
+
290
+ return $return_string;
291
+ }
292
+
293
+
294
+
295
+ // Call to act [tx_services title="Services Title" icon="fa-heart"]Services content[/tx_services]
296
+
297
+ function tx_services_function($atts, $content = null) {
298
+
299
+ $atts = shortcode_atts(array(
300
+ 'title' => '',
301
+ 'icon' => '',
302
+ 'class' => '',
303
+ ), $atts);
304
+
305
+ $service_text = do_shortcode($content);
306
+ $service_icon = esc_attr($atts['icon']);
307
+ $service_title = esc_attr($atts['title']);
308
+
309
+ $return_string ='';
310
+
311
+ $return_string .= '<div class="tx-service" style="">';
312
+ $return_string .= '<div class="tx-service-icon"><span><i class="fa '.$service_icon.'"></i></span></div>';
313
+ $return_string .= '<div class="tx-service-title">'.$service_title.'</div>';
314
+ $return_string .= '<div class="tx-service-text">'.$service_text.'</div>';
315
+ $return_string .= '</div>';
316
+
317
+ return $return_string;
318
+ }
319
+
320
+ // portfolio [tx_portfolio items="6" columns="3"]
321
+
322
+ function tx_portfolio_function($atts, $content = null) {
323
+
324
+ $atts = shortcode_atts(array(
325
+ 'items' => 4,
326
+ 'columns' => 4,
327
+ 'hide_cat' => 'no',
328
+ 'hide_excerpt' => 'no',
329
+ 'carousel' => 'no',
330
+ ), $atts);
331
+
332
+
333
+ $posts_per_page = intval( $atts['items'] );
334
+ $total_column = intval( $atts['columns'] );
335
+ $tx_carousel = $atts['carousel'];
336
+
337
+
338
+ $return_string = '';
339
+
340
+ if( $tx_carousel == 'no' ) {
341
+ $return_string .= '<div class="tx-portfolio tx-post-row tx-masonry">';
342
+ } else
343
+ {
344
+ $return_string .= '<div class="tx-portfolio tx-post-row tx-carousel" data-columns="'.$total_column.'">';
345
+ }
346
+
347
+
348
+ wp_reset_query();
349
+ global $post;
350
+
351
+ $args = array(
352
+ 'posts_per_page' => $posts_per_page,
353
+ 'post_type' => 'portfolio',
354
+ 'orderby' => 'date',
355
+ 'order' => 'DESC'
356
+ );
357
+ //$args['paging'] = true;
358
+ /**/
359
+ query_posts( $args );
360
+
361
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
362
+
363
+ $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'tx-medium' );
364
+ $full_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
365
+
366
+
367
+ $return_string .= '<div class="tx-portfolio-item tx-post-col-'.$total_column.'"><div class="tx-border-box">';
368
+
369
+
370
+ if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
371
+ $return_string .= '<div class="tx-folio-img"><a href="'.esc_url($full_image_url[0]).'" class="tx-colorbox"><img src="'.esc_url($large_image_url[0]).'" alt="" class="folio-img" /></a></div>';
372
+ }
373
+
374
+ $return_string .= '<h3 class="tx-folio-title"><a href="'.get_permalink().'">'.get_the_title().'</a></h3>';
375
+ if ( $atts['hide_cat'] == 'no' ) { // check if the post has a Post Thumbnail assigned to it.
376
+ $return_string .= '<div class="tx-folio-category">'.tx_folio_term( 'portfolio-category' ).'</div>';
377
+ } else
378
+ {
379
+ $return_string .= '<div style="display: block; clear: both; height: 16px;"></div>';
380
+ }
381
+ if ( $atts['hide_excerpt'] == 'no' ) { // check if the post has a Post Thumbnail assigned to it.
382
+ $return_string .= '<div class="tx-folio-content">'.get_the_excerpt().'</div>';
383
+ }
384
+
385
+ $return_string .= '</div></div>';
386
+ endwhile; else :
387
+ $return_string .= '<p>Sorry, no posts matched your criteria.</p>';
388
+ endif;
389
+
390
+ $return_string .= '</div>';
391
+
392
+ wp_reset_query();
393
+ return $return_string;
394
+ }
395
+
396
+
397
+
398
+ function register_shortcodes(){
399
+ add_shortcode('tx_recentposts', 'tx_recentposts_function');
400
+ add_shortcode('tx_row', 'tx_row_function');
401
+ add_shortcode('tx_column', 'tx_column_function');
402
+ add_shortcode('tx_spacer', 'tx_spacer_function');
403
+ add_shortcode('tx_testimonial', 'tx_testimonial_function');
404
+ add_shortcode('tx_button', 'tx_button_function');
405
+ add_shortcode('tx_calltoact', 'tx_calltoact_function');
406
+ add_shortcode('tx_services', 'tx_services_function');
407
+ add_shortcode('tx_portfolio', 'tx_portfolio_function');
408
+ add_shortcode('tx_blog', 'tx_blog_function');
409
+ add_shortcode('tx_divider', 'tx_divider_function');
410
+ }
411
+
412
+ add_action( 'init', 'register_shortcodes');
413
+
414
+
415
+
tx-toolkit/tx-functions.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ //wp_list_categories('orderby=name');
4
+ /**/
5
+ function tx_fix_shortcodes($content){
6
+ $array = array (
7
+ '<p>[' => '[',
8
+ ']</p>' => ']',
9
+ ']<br />' => ']'
10
+ );
11
+
12
+ $content = strtr($content, $array);
13
+ return $content;
14
+ }
15
+ add_filter('the_content', 'tx_fix_shortcodes');
16
+
17
+ if ( ! function_exists( 'tx_folio_term' ) ) {
18
+ function tx_folio_term( $taxonomy ) {
19
+ global $post;
20
+
21
+ $folio_categories = array();
22
+ $folio_cats = "";
23
+ $tax_seperator = "";
24
+
25
+ if ( is_object_in_taxonomy( $post->post_type, $taxonomy ) ) {
26
+ foreach ( (array) wp_get_post_terms( $post->ID, $taxonomy ) as $term ) {
27
+ if ( empty( $term->name ) )
28
+ continue;
29
+ $folio_cats .= $tax_seperator.$term->name;
30
+ $tax_seperator = ', ';
31
+ }
32
+ }
33
+
34
+ return $folio_cats;
35
+ }
36
+ }
37
+
38
+ if ( ! function_exists( 'tx_shortcodes_comma_delim_to_array' ) ) {
39
+ function tx_shortcodes_comma_delim_to_array( $string ) {
40
+ $a = explode( ',', $string );
41
+
42
+ foreach ( $a as $key => $value ) {
43
+ $value = trim( $value );
44
+
45
+ if ( empty( $value ) )
46
+ unset( $a[ $key ] );
47
+ else
48
+ $a[ $key ] = $value;
49
+ }
50
+
51
+ if ( empty( $a ) )
52
+ return '';
53
+ else
54
+ return $a;
55
+ }
56
+ }
tx-toolkit/tx-shortcode.png ADDED
Binary file
tx-toolkit/tx-shortcodes.js ADDED
@@ -0,0 +1,717 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function(){
2
+
3
+ tinymce.PluginManager.add('txshortcodes', function( editor, url ) {
4
+ editor.addButton('txshortcodes', {
5
+ title : 'TX Shortcodes', // title of the button
6
+ //image : '../wp-content/plugins/tx-toolkit/tx-shortcode.png', // path to the button's image
7
+ icon : 'tx-mce-icon', // path to the button's image
8
+ onclick: function() {
9
+
10
+ var $form = jQuery("#txshortcodes-form");
11
+ jQuery.colorbox({inline:true, href:"#tx-shortcode-form"});
12
+
13
+ }
14
+ });
15
+ });
16
+
17
+
18
+ // executes this when the DOM is ready
19
+ jQuery(function(){
20
+ // creates a form to be displayed everytime the button is clicked
21
+ // you should achieve this using AJAX instead of direct html code like this
22
+ var form_tx = jQuery('<div id="txshortcodes-form"><div id="tx-shortcode-form"><table id="txshortcodes-table" class="form-table">\
23
+ <tr>\
24
+ <td class="tx-heading"><h2>TX Shortcodes</h2></td>\
25
+ </tr>\
26
+ <tr>\
27
+ <td class="shortcode-list"><span id="columns">Columns</span></td>\
28
+ </tr>\
29
+ <tr>\
30
+ <td class="shortcode-list"><span id="deviders">Divider</span></td>\
31
+ </tr>\
32
+ <tr>\
33
+ <td class="shortcode-list"><span id="spacer">Spacer</span></td>\
34
+ </tr>\
35
+ <tr>\
36
+ <td class="shortcode-list"><span id="testimonials">Testimonials</span></td>\
37
+ </tr>\
38
+ <tr>\
39
+ <td class="shortcode-list"><span id="buttons">Butons</span></td>\
40
+ </tr>\
41
+ <tr>\
42
+ <td class="shortcode-list"><span id="calltoact">Call To Act</span></td>\
43
+ </tr>\
44
+ <tr>\
45
+ <td class="shortcode-list"><span id="services">Services</span></td>\
46
+ </tr>\
47
+ <tr>\
48
+ <td class="shortcode-list"><span id="portfolios">Portfolios</span></td>\
49
+ </tr>\
50
+ <tr>\
51
+ <td class="shortcode-list"><span id="recentposts">Recent Posts</span></td>\
52
+ </tr>\
53
+ </table>\
54
+ <p class="submit">\
55
+ <input type="button" class="modal-close button-primary" value="Cancel" name="Cancel" />\
56
+ </p>\
57
+ </div></div>');
58
+
59
+ var width = jQuery(window).width(), H = jQuery(window).height(), W = ( 720 < width ) ? 720 : width;
60
+ W = W - 80;
61
+ H = H - 84;
62
+
63
+ var table = form_tx.find('#txshortcodes-table');
64
+ form_tx.appendTo('body').hide();
65
+ //form_tx.appendTo('body');
66
+
67
+ //call columns
68
+ form_tx.find('#columns').click(function(){
69
+ setTimeout(function() {
70
+ jQuery.colorbox({inline:true, href:"#tx-column-form"});
71
+ }, 500);
72
+ });
73
+
74
+ //call deviders
75
+ form_tx.find('#deviders').click(function(){
76
+ setTimeout(function() {
77
+ jQuery.colorbox({inline:true, href:"#tx-devider-form"});
78
+ }, 500);
79
+ });
80
+
81
+ //call deviders
82
+ form_tx.find('#testimonials').click(function(){
83
+ setTimeout(function() {
84
+ jQuery.colorbox({inline:true, href:"#tx-testimonial-form"});
85
+ }, 500);
86
+ });
87
+
88
+ //call buttons
89
+ form_tx.find('#buttons').click(function(){
90
+ setTimeout(function() {
91
+ jQuery.colorbox({inline:true, href:"#tx-button-form"});
92
+ }, 500);
93
+ });
94
+
95
+ //call calltoact
96
+ form_tx.find('#calltoact').click(function(){
97
+ setTimeout(function() {
98
+ jQuery.colorbox({inline:true, href:"#tx-calltoact-form"});
99
+ }, 500);
100
+ });
101
+
102
+ //call Services
103
+ form_tx.find('#services').click(function(){
104
+ setTimeout(function() {
105
+ jQuery.colorbox({inline:true, href:"#tx-service-form"});
106
+ }, 500);
107
+ });
108
+
109
+ //call portfolio
110
+ form_tx.find('#portfolios').click(function(){
111
+ setTimeout(function() {
112
+ jQuery.colorbox({inline:true, href:"#tx-portfolio-form"});
113
+ }, 500);
114
+ });
115
+
116
+ //call blog
117
+ form_tx.find('#recentposts').click(function(){
118
+ setTimeout(function() {
119
+ jQuery.colorbox({inline:true, href:"#tx-blog-form"});
120
+ }, 500);
121
+ });
122
+
123
+ //call spacer
124
+ form_tx.find('#spacer').click(function(){
125
+ setTimeout(function() {
126
+ jQuery.colorbox({inline:true, href:"#tx-spacer-form"});
127
+ }, 500);
128
+ });
129
+
130
+ form_tx.find('.modal-close').click(function(){
131
+ jQuery.colorbox.close();
132
+ });
133
+
134
+ });
135
+
136
+
137
+ jQuery(function(){
138
+ // creates a form to be displayed everytime the button is clicked
139
+ // you should achieve this using AJAX instead of direct html code like this
140
+ var form_portfolio = jQuery('<div id="portfolio-form"><div id="tx-portfolio-form"><table id="portfolio-table" class="form-table">\
141
+ <tr>\
142
+ <td class="tx-heading" colspan="2"><h2>Portfolio</h2></td>\
143
+ </tr>\
144
+ <tr>\
145
+ <th><label for="portfolio-items">Number of item</label></th>\
146
+ <td><input type="number" max="12" min="0" id="portfolio-items" name="items" value="4" /><br />\
147
+ <small>Specify the number of portfolio items to show.</small></td>\
148
+ </tr>\
149
+ <tr>\
150
+ <th><label for="portfolio-columns">Number of columns</label></th>\
151
+ <td><input type="number" min="1" max="4" name="columns" id="portfolio-columns" value="4" /><br />\
152
+ <small>Specify number of portfolio columns.</small>\
153
+ </tr>\
154
+ <tr>\
155
+ <th><label for="portfolio-hidecat">Show/hide item category labels</label></th>\
156
+ <td><select name="hidecat" id="portfolio-hidecat">\
157
+ <option value="no">Show category labels</option>\
158
+ <option value="yes">Hide category labels</option>\
159
+ </select>\
160
+ </td>\
161
+ </tr>\
162
+ <tr>\
163
+ <th><label for="portfolio-hideexcerpt">Show/hide item excerpt</label></th>\
164
+ <td><select name="hideexcerpt" id="portfolio-hideexcerpt">\
165
+ <option value="no">Show excerpt</option>\
166
+ <option value="yes">Hide excerpt</option>\
167
+ </select>\
168
+ </td>\
169
+ </tr>\
170
+ <tr>\
171
+ <th><label for="portfolio-carusel">Show as carousel</label></th>\
172
+ <td><select name="carusel" id="portfolio-carusel">\
173
+ <option value="no">No</option>\
174
+ <option value="yes">Yes</option>\
175
+ </select><br />\
176
+ <small>Number of items must be greater then number of column</small>\
177
+ </td>\
178
+ </tr>\
179
+ </table>\
180
+ <p class="submit">\
181
+ <input type="button" id="portfolio-submit" class="button-primary" value="Insert Portfolio" name="submit" />\
182
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
183
+ </p>\
184
+ </div></div>');
185
+
186
+
187
+
188
+ var table = form_portfolio.find('#portfolio-table');
189
+ form_portfolio.appendTo('body').hide();
190
+
191
+
192
+ // handles the click event of the submit button
193
+ form_portfolio.find('#portfolio-submit').click(function(){
194
+
195
+ var number_of_item = table.find('#portfolio-items').val();
196
+ var number_of_column = table.find('#portfolio-columns').val();
197
+ var hide_cat = table.find('#portfolio-hidecat').val();
198
+ var hide_excerpt = table.find('#portfolio-hideexcerpt').val();
199
+ var show_carusel = table.find('#portfolio-carusel').val();
200
+
201
+
202
+ var shortcode = '[tx_portfolio items="'+number_of_item+'" columns="'+number_of_column+'" hide_cat="'+hide_cat+'" hide_excerpt="'+hide_excerpt+'" carousel="'+show_carusel+'"]<br/>';
203
+
204
+ // inserts the shortcode into the active editor
205
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
206
+
207
+ // closes Thickbox
208
+ jQuery.colorbox.close();
209
+ });
210
+
211
+
212
+
213
+ form_portfolio.find('#modal-close').click(function(){
214
+ jQuery.colorbox.close();
215
+ });
216
+
217
+ });
218
+
219
+
220
+ /*
221
+ * Blog Posts
222
+ */
223
+
224
+ jQuery(function(){
225
+ // creates a form to be displayed everytime the button is clicked
226
+ // you should achieve this using AJAX instead of direct html code like this
227
+ var form_blog = jQuery('<div id="blog-form" class="tx-sh-form"><div id="tx-blog-form"><table id="blog-table" class="form-table">\
228
+ <tr>\
229
+ <td class="tx-heading" colspan="2"><h2>Recent Posts</h2></td>\
230
+ </tr>\
231
+ <tr>\
232
+ <th><label for="blog-ids">Category Id (optional)</label></th>\
233
+ <td><input type="text" name="ids" id="blog-ids" value="" /><br />\
234
+ <small>Add ids of categories to filter, keep it blank for all categories</small>\
235
+ </tr>\
236
+ <tr>\
237
+ <th><label for="blog-items">Number of item</label></th>\
238
+ <td><input type="number" max="12" min="0" id="blog-items" name="items" value="4" /><br />\
239
+ <small>Specify the number of recent posts to show.</small></td>\
240
+ </tr>\
241
+ <tr>\
242
+ <th><label for="blog-columns">Number of columns</label></th>\
243
+ <td><input type="number" min="1" max="4" name="columns" id="blog-columns" value="4" /><br />\
244
+ <small>Specify number of columns.</small>\
245
+ </tr>\
246
+ <tr>\
247
+ <th><label for="blog-hidecat">Show/hide item category labels</label></th>\
248
+ <td><select name="hidecat" id="blog-hidecat">\
249
+ <option value="show">Show category labels</option>\
250
+ <option value="hide">Hide category labels</option>\
251
+ </select><br />\
252
+ </td>\
253
+ </tr>\
254
+ <tr>\
255
+ <th><label for="blog-carusel">Show as carousel</label></th>\
256
+ <td><select name="carusel" id="blog-carusel">\
257
+ <option value="no">No</option>\
258
+ <option value="yes">Yes</option>\
259
+ </select><br />\
260
+ <small>Number of items must be greater then number of column</small>\
261
+ </td>\
262
+ </tr>\
263
+ </table>\
264
+ <p class="submit">\
265
+ <input type="button" id="blog-submit" class="button-primary" value="Insert Posts" name="submit" />\
266
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
267
+ </p>\
268
+ </div></div>');
269
+
270
+
271
+
272
+ var table = form_blog.find('#blog-table');
273
+ form_blog.appendTo('body').hide();
274
+
275
+
276
+ // handles the click event of the submit button
277
+ form_blog.find('#blog-submit').click(function(){
278
+
279
+ var number_of_item = table.find('#blog-items').val();
280
+ var number_of_column = table.find('#blog-columns').val();
281
+ var show_hide_cat = table.find('#blog-hidecat').val();
282
+ var category_id = table.find('#blog-ids').val();
283
+ var show_carusel = table.find('#blog-carusel').val();
284
+
285
+ var shortcode = '[tx_blog items="'+number_of_item+'" columns="'+number_of_column+'" showcat="'+show_hide_cat+'" category_id="'+category_id+'" carousel="'+show_carusel+'"]<br/>';
286
+
287
+ // inserts the shortcode into the active editor
288
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
289
+
290
+ // closes Thickbox
291
+ jQuery.colorbox.close();
292
+ });
293
+
294
+ form_blog.find('#modal-close').click(function(){
295
+ jQuery.colorbox.close();
296
+ });
297
+
298
+ });
299
+
300
+
301
+ /*
302
+ * Columns form
303
+ */
304
+ jQuery(function(){
305
+ // creates a form to be displayed everytime the button is clicked
306
+ // you should achieve this using AJAX instead of direct html code like this
307
+ var form_column = jQuery('<div id="column-form" class="tx-sh-form"><div id="tx-column-form"><table id="column-table" class="form-table">\
308
+ <tr>\
309
+ <td class="tx-heading" colspan="2"><h2>Columns</h2></td>\
310
+ </tr>\
311
+ <tr>\
312
+ <th><label for="column-size">Column Size</label></th>\
313
+ <td><select name="size" id="column-size">\
314
+ <option value="1/2">2 columns in a row</option>\
315
+ <option value="1/3">3 columns in a row</option>\
316
+ <option value="1/4">4 columns in a row</option>\
317
+ </select><br />\
318
+ <small>specify the column size, you can fruther manually edit them, 2/3 and 3/4 also can be used.</small></td>\
319
+ </tr>\
320
+ </table>\
321
+ <p class="submit">\
322
+ <input type="button" id="column-submit" class="button-primary" value="Insert Columns" name="submit" />\
323
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
324
+ </p>\
325
+ <div class="tnext-bottom-lebel">TemplatesNext Shortcodes</div>\
326
+ </div></div>');
327
+
328
+ var table = form_column.find('#column-table');
329
+ form_column.appendTo('body').hide();
330
+
331
+ // handles the click event of the submit button
332
+ form_column.find('#column-submit').click(function(){
333
+
334
+ var columns = table.find('#column-size').val();
335
+ var shortcode = '[tx_row]<br/>';
336
+
337
+ if(columns=='1/2')
338
+ {
339
+ shortcode += '[tx_column size="1/2"]Content[/tx_column]<br/>[tx_column size="1/2"]Content[/tx_column]';
340
+ }else if(columns=='1/3')
341
+ {
342
+ shortcode += '[tx_column size="1/3"]Content[/tx_column]<br/>[tx_column size="1/3"]Content[/tx_column]<br/>[tx_column size="1/3"]Content[/tx_column]';
343
+ } else if(columns=='1/4')
344
+ {
345
+ shortcode += '[tx_column size="1/4"]Content[/tx_column]<br/>[tx_column size="1/4"]Content[/tx_column]<br/>[tx_column size="1/4"]Content[/tx_column]<br/>[tx_column size="1/4"]Content[/tx_column]';
346
+ }
347
+
348
+ shortcode += '<br/>[/tx_row]';
349
+
350
+ // inserts the shortcode into the active editor
351
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
352
+
353
+ // closes Thickbox
354
+ jQuery.colorbox.close();
355
+ });
356
+
357
+ form_column.find('#modal-close').click(function(){
358
+ jQuery.colorbox.close();
359
+ });
360
+
361
+ });
362
+
363
+
364
+ /*
365
+ * deviders form
366
+ */
367
+ jQuery(function(){
368
+ var form_devider = jQuery('<div id="devider-form" class="tx-sh-form"><div id="tx-devider-form"><table id="devider-table" class="form-table">\
369
+ <tr>\
370
+ <td class="tx-heading" colspan="2"><h2>Dividers</h2></td>\
371
+ </tr>\
372
+ <tr>\
373
+ <th><label for="devider-style">Divider Style</label></th>\
374
+ <td><select name="style" id="devider-style">\
375
+ <option value="default">Default</option>\
376
+ </select><br />\
377
+ <small>specify the divider style</small></td>\
378
+ </tr>\
379
+ <tr>\
380
+ <th><label for="devider-padding">Divider Margin</label></th>\
381
+ <td><input type="number" name="padding" id="devider-padding" min="0" max="120" value="24" /><br />\
382
+ <small>Top and bottom margin in px</small>\
383
+ </tr>\
384
+ </table>\
385
+ <p class="submit">\
386
+ <input type="button" id="devider-submit" class="button-primary" value="Insert Devider" name="submit" />\
387
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
388
+ </p>\
389
+ <div class="tnext-bottom-lebel">TemplatesNext Shortcodes</div>\
390
+ </div></div>');
391
+
392
+ var table = form_devider.find('#devider-table');
393
+ form_devider.appendTo('body').hide();
394
+
395
+ // handles the click event of the submit button
396
+ form_devider.find('#devider-submit').click(function(){
397
+
398
+ var deviderpadding = table.find('#devider-padding').val();
399
+ var shortcode = '[tx_divider size="'+deviderpadding+'"]<br/>';
400
+
401
+ // inserts the shortcode into the active editor
402
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
403
+
404
+ // closes Thickbox
405
+ jQuery.colorbox.close();
406
+ });
407
+
408
+ form_devider.find('#modal-close').click(function(){
409
+ jQuery.colorbox.close();
410
+ });
411
+
412
+ });
413
+
414
+
415
+ /*
416
+ * testimonials form
417
+ */
418
+ jQuery(function(){
419
+ var form_testimonial = jQuery('<div id="testimonial-form" class="tx-sh-form"><div id="tx-testimonial-form"><table id="testimonial-table" class="form-table">\
420
+ <tr>\
421
+ <td class="tx-heading" colspan="2"><h2>Testimonials</h2></td>\
422
+ </tr>\
423
+ <tr>\
424
+ <th><label for="testimonial-style">Testimonial Style</label></th>\
425
+ <td><select name="style" id="testimonial-style">\
426
+ <option value="default">Default</option>\
427
+ </select><br />\
428
+ <small>specify the testimonial style</small></td>\
429
+ </tr>\
430
+ </table>\
431
+ <p class="submit">\
432
+ <input type="button" id="testimonial-submit" class="button-primary" value="Insert Testimonials" name="submit" />\
433
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
434
+ </p>\
435
+ <div class="tnext-bottom-lebel">TemplatesNext Shortcodes</div>\
436
+ </div></div>');
437
+
438
+ var table = form_testimonial.find('#testimonial-table');
439
+ form_testimonial.appendTo('body').hide();
440
+
441
+ // handles the click event of the submit button
442
+ form_testimonial.find('#testimonial-submit').click(function(){
443
+
444
+ var testimonial_style = table.find('#testimonial-style').val();
445
+ var shortcode = '[tx_testimonial style="'+testimonial_style+'"]<br/>';
446
+
447
+ // inserts the shortcode into the active editor
448
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
449
+
450
+ // closes Thickbox
451
+ jQuery.colorbox.close();
452
+ });
453
+
454
+ form_testimonial.find('#modal-close').click(function(){
455
+ jQuery.colorbox.close();
456
+ });
457
+
458
+ });
459
+
460
+
461
+ /*
462
+ * buttons form
463
+ */
464
+ jQuery(function(){
465
+ var form_button = jQuery('<div id="button-form" class="tx-sh-form"><div id="tx-button-form"><table id="button-table" class="form-table">\
466
+ <tr>\
467
+ <td class="tx-heading" colspan="2"><h2>Buttons</h2></td>\
468
+ </tr>\
469
+ <tr>\
470
+ <th><label for="button-style">Button Style</label></th>\
471
+ <td><select name="style" id="button-style">\
472
+ <option value="default">Default</option>\
473
+ </select><br />\
474
+ <small>specify the button style</small></td>\
475
+ </tr>\
476
+ <tr>\
477
+ <th><label for="button-text">Button text</label></th>\
478
+ <td><input type="text" name="text" id="button-text" value="Know More.." /><br />\
479
+ <small>specify the button text.</small>\
480
+ </tr>\
481
+ <tr>\
482
+ <th><label for="button-url">Button url</label></th>\
483
+ <td><input type="text" name="url" id="button-url" value="" /><br />\
484
+ <small>specify the button url.</small>\
485
+ </tr>\
486
+ <tr>\
487
+ <th><label for="button-color">Button Color</label></th>\
488
+ <td><input type="text" class="color" name="color" id="button-color" value="">\<br />\
489
+ <small>Select button background color</small></td>\
490
+ </tr>\
491
+ <tr>\
492
+ <th><label for="button-textcolor">Button Text Color</label></th>\
493
+ <td><input type="text" class="color" name="textcolor" id="button-textcolor" value="">\<br />\
494
+ <small>Select button text color</small></td>\
495
+ </tr>\
496
+ </table>\
497
+ <p class="submit">\
498
+ <input type="button" id="button-submit" class="button-primary" value="Insert Button" name="submit" />\
499
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
500
+ </p>\
501
+ <div class="tnext-bottom-lebel">TemplatesNext Shortcodes</div>\
502
+ </div></div>');
503
+
504
+ var table = form_button.find('#button-table');
505
+
506
+ tx_color_picker(form_button.find('.color'));
507
+
508
+ form_button.appendTo('body').hide();
509
+
510
+ // handles the click event of the submit button
511
+ form_button.find('#button-submit').click(function(){
512
+
513
+ var button_style = table.find('#button-style').val();
514
+ var button_text = table.find('#button-text').val();
515
+ var button_url = table.find('#button-url').val();
516
+ var button_color = table.find('#button-color').val();
517
+ var button_textcolor = table.find('#button-textcolor').val();
518
+
519
+
520
+ var shortcode = '[tx_button style="'+button_style+'" text="'+button_text+'" url="'+button_url+'" color="'+button_color+'" textcolor="'+button_textcolor+'"]';
521
+
522
+ // inserts the shortcode into the active editor
523
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
524
+
525
+ // closes Thickbox
526
+ jQuery.colorbox.close();
527
+ });
528
+
529
+ form_button.find('#modal-close').click(function(){
530
+ jQuery.colorbox.close();
531
+ });
532
+
533
+ });
534
+
535
+
536
+ /*
537
+ * calltoact form
538
+ */
539
+ jQuery(function(){
540
+ var form_calltoact = jQuery('<div id="calltoact-form" class="tx-sh-form"><div id="tx-calltoact-form"><table id="calltoact-table" class="form-table">\
541
+ <tr>\
542
+ <td class="tx-heading" colspan="2"><h2>Call To Act</h2></td>\
543
+ </tr>\
544
+ <tr>\
545
+ <th><label for="calltoact-text">Call to act text</label></th>\
546
+ <td><input type="text" name="text" id="calltoact-text" value="Call To Act Text" /><br />\
547
+ <small>Specify the Call toa ct text.</small>\
548
+ </tr>\
549
+ <tr>\
550
+ <th><label for="calltoact-button-text">Button text</label></th>\
551
+ <td><input type="text" name="button-text" id="calltoact-button-text" value="Know More.." /><br />\
552
+ <small>Specify the calltoact text.</small>\
553
+ </tr>\
554
+ <tr>\
555
+ <th><label for="calltoact-url">Call to act url</label></th>\
556
+ <td><input type="text" name="url" id="calltoact-url" value="" /><br />\
557
+ <small>specify the calltoact button url.</small>\
558
+ </tr>\
559
+ </table>\
560
+ <p class="submit">\
561
+ <input type="button" id="button-submit" class="button-primary" value="Insert Call to act" name="submit" />\
562
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
563
+ </p>\
564
+ <div class="tnext-bottom-lebel">TemplatesNext Shortcodes</div>\
565
+ </div></div>');
566
+
567
+ var table = form_calltoact.find('#calltoact-table');
568
+
569
+ //tx_color_picker(form_calltoact.find('.color'));
570
+
571
+ form_calltoact.appendTo('body').hide();
572
+
573
+ // handles the click event of the submit button
574
+ form_calltoact.find('#button-submit').click(function(){
575
+
576
+ var calltoact_text = table.find('#calltoact-text').val();
577
+ var calltoact_button_text = table.find('#calltoact-button-text').val();
578
+ var calltoact_url = table.find('#calltoact-url').val();
579
+
580
+ var shortcode = '[tx_calltoact button_text="'+calltoact_button_text+'" url="'+calltoact_url+'"]'+calltoact_text+'[/tx_calltoact]';
581
+
582
+ // inserts the shortcode into the active editor
583
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
584
+
585
+ // closes Thickbox
586
+ jQuery.colorbox.close();
587
+ });
588
+ form_calltoact.find('#modal-close').click(function(){
589
+ jQuery.colorbox.close();
590
+ });
591
+
592
+ });
593
+
594
+
595
+ /*
596
+ * Services form
597
+ */
598
+ jQuery(function(){
599
+ var form_services = jQuery('<div id="services-form" class="tx-sh-form"><div id="tx-service-form"><table id="services-table" class="form-table">\
600
+ <tr>\
601
+ <td class="tx-heading" colspan="2"><h2>Services</h2></td>\
602
+ </tr>\
603
+ <tr>\
604
+ <th><label for="services-title">Services Title</label></th>\
605
+ <td><input type="text" name="title" id="services-title" value="Services Title" /><br />\
606
+ <small>Specify the Call toa ct text.</small>\
607
+ </tr>\
608
+ <tr>\
609
+ <th><label for="services-icon">Services Icons</label></th>\
610
+ <td><div class="awedrop">'+tx_font_awesome_include('tx-fa-icons')+'</div><br /><input type="text" name="icon" id="services-icon" value="" /></td>\
611
+ </tr>\
612
+ <tr>\
613
+ <th><label for="services-content">Services Text</label></th>\
614
+ <td><textarea name="content" id="services-content">Services content</textarea><br />\
615
+ <small>Services content</small>\
616
+ </tr>\
617
+ </table>\
618
+ <p class="submit">\
619
+ <input type="button" id="button-submit" class="button-primary" value="Insert Call to act" name="submit" />\
620
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
621
+ </p>\
622
+ <div class="tnext-bottom-lebel">TemplatesNext Shortcodes</div>\
623
+ </div></div>');
624
+
625
+ var table = form_services.find('#services-table');
626
+
627
+ form_services.appendTo('body').hide();
628
+
629
+ // handles the click event of the submit button
630
+ form_services.find('#button-submit').click(function(){
631
+
632
+ var services_title = table.find('#services-title').val();
633
+ var services_icon = table.find('#services-icon').val();
634
+ var services_content = table.find('#services-content').val();
635
+
636
+ var shortcode = '[tx_services title="'+services_title+'" icon="'+services_icon+'"]'+services_content+'[/tx_services]';
637
+
638
+ // inserts the shortcode into the active editor
639
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
640
+
641
+ // closes Thickbox
642
+ jQuery.colorbox.close();
643
+ });
644
+
645
+ form_services.find('.tx-fa-icons .fa').click(function(){
646
+ jQuery('.tx-fa-icons .active').removeClass('active');
647
+ jQuery(this).addClass('active');
648
+ //console.log( jQuery(this).data('value') );
649
+ var tx_icon = jQuery(this).data('value');
650
+ jQuery('#services-icon').val(tx_icon);
651
+ });
652
+
653
+ form_services.find('#modal-close').click(function(){
654
+ jQuery.colorbox.close();
655
+ });
656
+
657
+ });
658
+
659
+
660
+ /*
661
+ * spacer form
662
+ */
663
+ jQuery(function(){
664
+ var form_spacer = jQuery('<div id="spacer-form" class="tx-sh-form"><div id="tx-spacer-form"><table id="spacer-table" class="form-table">\
665
+ <tr>\
666
+ <td class="tx-heading" colspan="2"><h2>Spacer</h2></td>\
667
+ </tr>\
668
+ <tr>\
669
+ <th><label for="spacer-size">Spacer Size (height in px)</label></th>\
670
+ <td><input type="number" min="0" max="120" name="size" id="spacer-size" value="16" /><br />\
671
+ <small>Use spacer to manage vertical gaps</small>\
672
+ </tr>\
673
+ </table>\
674
+ <p class="submit">\
675
+ <input type="button" id="spacer-submit" class="button-primary" value="Insert Spacer" name="submit" />\
676
+ <input type="button" id="modal-close" class="modal-close button-primary" value="Cancel" name="Cancel" />\
677
+ </p>\
678
+ <div class="tnext-bottom-lebel">TemplatesNext Shortcodes</div>\
679
+ </div></div>');
680
+
681
+ var table = form_spacer.find('#spacer-table');
682
+ form_spacer.appendTo('body').hide();
683
+
684
+ // handles the click event of the submit button
685
+ form_spacer.find('#spacer-submit').click(function(){
686
+
687
+ var spacer_size = table.find('#spacer-size').val();
688
+ var shortcode = '[tx_spacer size="'+spacer_size+'"]<br/>';
689
+
690
+ // inserts the shortcode into the active editor
691
+ tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
692
+
693
+ // closes Thickbox
694
+ jQuery.colorbox.close();
695
+ });
696
+
697
+ form_spacer.find('#modal-close').click(function(){
698
+ jQuery.colorbox.close();
699
+ });
700
+
701
+ });
702
+
703
+
704
+
705
+ })()
706
+
707
+
708
+ jQuery(window).resize( function() {
709
+ tx_resize_thickbox();
710
+ });
711
+
712
+ function tx_resize_thickbox() {
713
+ var TB_WIDTH;
714
+ var TB_HEIGHT;
715
+ jQuery(document).find('#TB_window').width( TB_WIDTH ).height( TB_HEIGHT ).css( 'margin-left', - TB_WIDTH / 2 );
716
+ }
717
+
tx-toolkit/tx-toolkit.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ Plugin Name: TemplatesNext ToolKit
5
+ Description: Custom Portfolio and Shortcode functionality for TemplatesNext Wordpress Themes
6
+ Version: 1.0.1
7
+ Author: TemplatesNext
8
+ Author URI: http://templatesnext.org/
9
+ License: GPLv2 or later
10
+ */
11
+ function tx_toolkit_activation() {
12
+ }
13
+ register_activation_hook(__FILE__, 'tx_toolkit_activation');
14
+
15
+ function tx_toolkit_deactivation() {
16
+ }
17
+ register_deactivation_hook(__FILE__, 'tx_toolkit_deactivation');
18
+
19
+
20
+ add_action( 'admin_enqueue_scripts', 'tx_toolkit_admin_style' );
21
+ function tx_toolkit_admin_style() {
22
+ wp_enqueue_style( 'colorbox', plugins_url( 'css/colorbox.css', __FILE__ ), false, '1.5.14', 'all' );
23
+ wp_enqueue_style( 'tx-toolkit-admin-style', plugins_url('css/tx-admin-style.css', __FILE__) );
24
+ wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css', false, '4.1.0', 'all' );
25
+
26
+ wp_enqueue_script( 'colorbox', plugins_url( 'js/jquery.colorbox-min.js', __FILE__ ), array( 'jquery' ), '1.5.14', true );
27
+ wp_enqueue_script('tx-main', plugins_url('/js/tx_main.js', __FILE__));
28
+ }
29
+
30
+
31
+ function tx_scripts_styles() {
32
+
33
+ wp_enqueue_style( 'font-awesome', '//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css', false, '4.1.0', 'all' );
34
+ wp_enqueue_style( 'owl-carousel', plugins_url( 'css/owl.carousel.css', __FILE__ ), false, '1.3.2', 'all' );
35
+ wp_enqueue_style( 'owl-carousel-transitions', plugins_url( 'css/owl.transitions.css', __FILE__ ), false, '1.3.2', 'all' );
36
+ wp_enqueue_style( 'colorbox', plugins_url( 'css/colorbox.css', __FILE__ ), false, '1.5.14', 'all' );
37
+ wp_enqueue_style( 'tx-style', plugins_url('css/tx-style.css', __FILE__), array(), '1.01' );
38
+
39
+ wp_enqueue_script( 'jquery-masonry' );
40
+ wp_enqueue_script( 'owl-carousel', plugins_url( 'js/owl.carousel.min.js', __FILE__ ), array( 'jquery' ), '1.3.2', true );
41
+ wp_enqueue_script( 'colorbox', plugins_url( 'js/jquery.colorbox-min.js', __FILE__ ), array( 'jquery' ), '1.5.14', true );
42
+ wp_enqueue_script( 'tx-script', plugins_url('js/tx-script.js', __FILE__), array(), '2013-07-18', true );
43
+ }
44
+ add_action( 'wp_enqueue_scripts', 'tx_scripts_styles' );
45
+
46
+ add_action( 'admin_enqueue_scripts', 'tx_enqueue_color_picker' );
47
+ function tx_enqueue_color_picker( $hook_suffix ) {
48
+ // first check that $hook_suffix is appropriate for your admin page
49
+ wp_enqueue_style( 'wp-color-picker' );
50
+ wp_enqueue_script( 'my-script-handle', plugins_url('my-script.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
51
+ }
52
+
53
+
54
+
55
+ //require_once('post-types.php');
56
+ require_once('tx-functions.php');
57
+ require_once('shortcodes.php');
58
+ require_once('custom-post-types/testimonials-type.php');
59
+ require_once('custom-post-types/portfolio-type.php');
60
+
61
+
62
+
63
+ if(!defined('TX_TOOLKIT_PATH')){
64
+ define('TX_TOOLKIT_PATH', realpath(plugin_dir_path(__FILE__)) . DIRECTORY_SEPARATOR );
65
+ }
66
+ if(!defined('TX_TOOLKIT_URL')){
67
+ define('TX_TOOLKIT_URL', plugin_dir_url(__FILE__) );
68
+ }