Version Description
- Fixed XSS vulnerability (thanks to https://www.threatpress.com)
Download this release
Release Info
Developer | MyThemeShop |
Plugin | WP Shortcode by MyThemeShop |
Version | 1.4.4 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.4
- css/tipsy.css +0 -20
- css/wp-shortcode.css +295 -48
- images/code.png +0 -0
- images/cross.png +0 -0
- images/speaker.png +0 -0
- images/thumb.png +0 -0
- images/tick.png +0 -0
- images/toggle-down.png +0 -0
- images/toggle-up.png +0 -0
- js/jquery.tipsy.js +0 -258
- js/wp-shortcode.js +27 -37
- languages/default.mo +0 -0
- languages/default.po +0 -355
- readme.txt +86 -77
- tinymce/editor_plugin.css +26 -7
- tinymce/editor_plugin.js +18 -20
- tinymce/editor_plugin.php +7 -7
- tinymce/langs.php +4 -4
- tinymce/shortcode.png +0 -0
- tinymce/shortcodes.php +0 -362
- tinymce/tinymce.js +312 -7
- wp-shortcode.php +30 -21
css/tipsy.css
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
.tipsy { font-size: 10px; position: absolute; padding: 5px; z-index: 100000; }
|
2 |
-
.tipsy-inner { background-color: #000; color: #FFF; max-width: 200px; padding: 5px 8px 4px 8px; text-align: center; }
|
3 |
-
/* Rounded corners */
|
4 |
-
.tipsy-inner { border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
|
5 |
-
/* Uncomment for shadow */
|
6 |
-
/*.tipsy-inner { box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; -moz-box-shadow: 0 0 5px #000000; }_NO__DOTCOMMA__AFTER__*/
|
7 |
-
.tipsy-arrow { position: absolute; width: 0; height: 0; line-height: 0; border: 5px dashed #000; }
|
8 |
-
/* Rules to colour arrows */
|
9 |
-
.tipsy-arrow-n { border-bottom-color: #000 }
|
10 |
-
.tipsy-arrow-s { border-top-color: #000 }
|
11 |
-
.tipsy-arrow-e { border-left-color: #000 }
|
12 |
-
.tipsy-arrow-w { border-right-color: #000 }
|
13 |
-
.tipsy-n .tipsy-arrow { top: 0px; left: 50%; margin-left: -5px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
|
14 |
-
.tipsy-nw .tipsy-arrow { top: 0; left: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
|
15 |
-
.tipsy-ne .tipsy-arrow { top: 0; right: 10px; border-bottom-style: solid; border-top: none; border-left-color: transparent; border-right-color: transparent; }
|
16 |
-
.tipsy-s .tipsy-arrow { bottom: 0; left: 50%; margin-left: -5px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
|
17 |
-
.tipsy-sw .tipsy-arrow { bottom: 0; left: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
|
18 |
-
.tipsy-se .tipsy-arrow { bottom: 0; right: 10px; border-top-style: solid; border-bottom: none; border-left-color: transparent; border-right-color: transparent; }
|
19 |
-
.tipsy-e .tipsy-arrow { right: 0; top: 50%; margin-top: -5px; border-left-style: solid; border-right: none; border-top-color: transparent; border-bottom-color: transparent; }
|
20 |
-
.tipsy-w .tipsy-arrow { left: 0; top: 50%; margin-top: -5px; border-right-style: solid; border-left: none; border-top-color: transparent; border-bottom-color: transparent; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/wp-shortcode.css
CHANGED
@@ -1,83 +1,83 @@
|
|
1 |
/*-----------------------------------------------
|
2 |
-
/*
|
3 |
-
/* Author: MyThemeShop
|
4 |
-
/* Version: 1.4
|
5 |
/*---------------------------------------------*/
|
|
|
6 |
/*-[ Notifications ]---------------------------*/
|
7 |
-
.message_box {
|
8 |
-
margin: 15px 0;
|
9 |
-
padding: 1em 1em;
|
10 |
-
}
|
11 |
-
.message_box p { margin-bottom: 0 }
|
12 |
pre {
|
13 |
overflow: auto;
|
14 |
-
|
|
|
|
|
15 |
margin: 15px 0;
|
16 |
-
position: relative;
|
17 |
-
background: #777;
|
18 |
-
font-family: monospace;
|
19 |
-
color: #FFF;
|
20 |
-
box-sizing: border-box;
|
21 |
}
|
22 |
.note {
|
23 |
-
background: #
|
24 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
}
|
26 |
.announce {
|
27 |
-
background: #
|
28 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
}
|
30 |
.success {
|
|
|
|
|
31 |
border: 1px solid #DEF1BF;
|
32 |
-
|
33 |
-
|
|
|
|
|
|
|
34 |
}
|
35 |
.warning {
|
|
|
|
|
36 |
border: 1px solid #FFDBDB;
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
39 |
}
|
40 |
/*-[ Buttons ]---------------------------------*/
|
41 |
-
.buttons {
|
42 |
font-size: 12px;
|
43 |
text-decoration: none;
|
|
|
44 |
border-radius: 5px;
|
45 |
-webkit-border-radius: 5px;
|
46 |
-moz-border-radius: 5px;
|
47 |
-
margin:
|
48 |
padding: 12px 10px;
|
49 |
overflow: hidden;
|
50 |
display: inline-block;
|
51 |
width: auto;
|
52 |
}
|
53 |
-
.buttons span {
|
54 |
-
|
55 |
-
overflow: hidden;
|
56 |
-
}
|
57 |
-
a.buttons {
|
58 |
-
color: #fff!important;
|
59 |
-
text-decoration: none;
|
60 |
-
padding: 10px 20px;
|
61 |
-
border-radius: 3px;
|
62 |
-
border: 1px solid rgba(0, 0, 0, 0.1);
|
63 |
-
text-transform: uppercase;
|
64 |
-
font-weight: bold;
|
65 |
-
}
|
66 |
a.buttons.left {
|
67 |
margin-right: 15px;
|
68 |
margin-bottom: 15px;
|
69 |
float: left;
|
|
|
70 |
}
|
71 |
a.buttons.right {
|
72 |
margin-left: 15px;
|
73 |
margin-bottom: 15px;
|
74 |
-
margin-right: 0;
|
75 |
float: right;
|
76 |
}
|
77 |
-
div.button-center {
|
78 |
-
width: 100%;
|
79 |
-
text-align: center;
|
80 |
-
}
|
81 |
a.buttons.center {
|
82 |
clear: both;
|
83 |
display: inline-block;
|
@@ -86,63 +86,308 @@ a.buttons.center {
|
|
86 |
}
|
87 |
a.btn_white { color: #4F4F4F!important }
|
88 |
.btn_brown {
|
89 |
-
background-color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
color: white;
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
}
|
92 |
.btn_brown:hover {
|
93 |
background-color: #D1B593;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
color: white!important;
|
95 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
.btn_blue {
|
97 |
background-color: #A5B8DA;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
color: white;
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
}
|
100 |
.btn_blue:hover {
|
101 |
background-color: #9badcc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
color: white!important;
|
103 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
.btn_green {
|
105 |
background-color: #6CB24C;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
color: white;
|
|
|
|
|
|
|
|
|
|
|
107 |
}
|
108 |
.btn_green:hover {
|
109 |
background-color: #5F9D43;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
color: white!important;
|
111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
.btn_yellow {
|
113 |
background-color: #FFDA6B;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
color: #fff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
116 |
.btn_yellow:hover {
|
117 |
background-color: #FFD351;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
color: #fff!important;
|
119 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
.btn_red {
|
121 |
background-color: #E83030;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
color: white;
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
}
|
124 |
.btn_red:hover {
|
125 |
background-color: #E63131;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
color: white!important;
|
127 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
.btn_white {
|
129 |
background-color: #F7F7F7;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
color: #4F4F4F;
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
.btn_white:hover {
|
133 |
background-color: #F4F4F4;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
color: #4F4F4F!important;
|
135 |
}
|
136 |
.btn_white:active {
|
137 |
border: 1px solid #C1C1C1;
|
|
|
|
|
138 |
box-shadow: inset 0 0 8px 2px #C1C1C1;
|
139 |
}
|
140 |
/*-[ Video Shortcode ]-------------------------*/
|
141 |
.textwidget .youtube-video, .textwidget .vimeo-video, .textwidget .googlemaps { margin: 0 }
|
142 |
-
.youtube-video, .vimeo-video {
|
143 |
-
margin: 10px 0 10px 0;
|
144 |
-
width: 100%;
|
145 |
-
}
|
146 |
/*-[ Google Maps ]-----------------------------*/
|
147 |
.googlemaps { margin: 5px 15px 10px 0 }
|
148 |
/*-[ Columns ]---------------------------------*/
|
@@ -180,7 +425,6 @@ a.btn_white { color: #4F4F4F!important }
|
|
180 |
height: 40px;
|
181 |
border-bottom: 1px solid #DDD;
|
182 |
margin: 0;
|
183 |
-
padding: 0;
|
184 |
}
|
185 |
.tab_widget ul.wps_tabs li {
|
186 |
float: left;
|
@@ -194,6 +438,9 @@ a.btn_white { color: #4F4F4F!important }
|
|
194 |
overflow: hidden;
|
195 |
position: relative;
|
196 |
background-image: linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
|
|
|
|
|
|
|
197 |
background-image: -ms-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
|
198 |
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.09, rgb(230,230,230)), color-stop(0.55, rgb(238,238,238)) );
|
199 |
}
|
1 |
/*-----------------------------------------------
|
2 |
+
/* Shortcodes
|
|
|
|
|
3 |
/*---------------------------------------------*/
|
4 |
+
|
5 |
/*-[ Notifications ]---------------------------*/
|
6 |
+
.message_box { margin: 15px 0 }
|
|
|
|
|
|
|
|
|
7 |
pre {
|
8 |
overflow: auto;
|
9 |
+
background: #F7F7F7 url('../images/code.png') 10px 2px no-repeat;
|
10 |
+
padding: 2em 1em 1em 1em;
|
11 |
+
border: 1px solid #DDD;
|
12 |
margin: 15px 0;
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
.note {
|
15 |
+
background: #FEF4C8;
|
16 |
+
color: #666;
|
17 |
+
border: 1px solid #FDEBA5;
|
18 |
+
}
|
19 |
+
.note p {
|
20 |
+
padding: 0.5em 1em 0.5em 2.5em;
|
21 |
+
background: url('../images/thumb.png') left no-repeat;
|
22 |
+
margin: 0.3em 0.8em;
|
23 |
}
|
24 |
.announce {
|
25 |
+
background: #D7EFFB;
|
26 |
+
color: #666;
|
27 |
+
border: 1px solid #BEE5F8;
|
28 |
+
}
|
29 |
+
.announce p {
|
30 |
+
padding: 0.5em 1em 0.5em 2.5em;
|
31 |
+
background: url('../images/speaker.png') left no-repeat;
|
32 |
+
margin: 0.3em 0.8em;
|
33 |
}
|
34 |
.success {
|
35 |
+
background: #E8F6D2;
|
36 |
+
color: #666;
|
37 |
border: 1px solid #DEF1BF;
|
38 |
+
}
|
39 |
+
.success p {
|
40 |
+
padding: 0.5em 1em 0.5em 2.5em;
|
41 |
+
background: url('../images/tick.png') left no-repeat;
|
42 |
+
margin: 0.3em 0.8em;
|
43 |
}
|
44 |
.warning {
|
45 |
+
background: #FFE7E7;
|
46 |
+
color: #666;
|
47 |
border: 1px solid #FFDBDB;
|
48 |
+
}
|
49 |
+
.warning p {
|
50 |
+
padding: 0.5em 1em 0.5em 2.5em;
|
51 |
+
background: url('../images/cross.png') left no-repeat;
|
52 |
+
margin: 0.3em 0.8em;
|
53 |
}
|
54 |
/*-[ Buttons ]---------------------------------*/
|
55 |
+
.article .buttons {
|
56 |
font-size: 12px;
|
57 |
text-decoration: none;
|
58 |
+
position: relative;
|
59 |
border-radius: 5px;
|
60 |
-webkit-border-radius: 5px;
|
61 |
-moz-border-radius: 5px;
|
62 |
+
margin: 15px 15px 15px 0;
|
63 |
padding: 12px 10px;
|
64 |
overflow: hidden;
|
65 |
display: inline-block;
|
66 |
width: auto;
|
67 |
}
|
68 |
+
.buttons span { float: none; overflow: hidden;}
|
69 |
+
a.buttons { color: #fff!important; text-decoration: none; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
a.buttons.left {
|
71 |
margin-right: 15px;
|
72 |
margin-bottom: 15px;
|
73 |
float: left;
|
74 |
+
|
75 |
}
|
76 |
a.buttons.right {
|
77 |
margin-left: 15px;
|
78 |
margin-bottom: 15px;
|
|
|
79 |
float: right;
|
80 |
}
|
|
|
|
|
|
|
|
|
81 |
a.buttons.center {
|
82 |
clear: both;
|
83 |
display: inline-block;
|
86 |
}
|
87 |
a.btn_white { color: #4F4F4F!important }
|
88 |
.btn_brown {
|
89 |
+
background-color: #D9C2A5;
|
90 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #D9C2A5), color-stop(100%, #C3A178));
|
91 |
+
background-image: -webkit-linear-gradient(top, #D9C2A5, #C3A178);
|
92 |
+
background-image: -moz-linear-gradient(top, #D9C2A5, #C3A178);
|
93 |
+
background-image: -ms-linear-gradient(top, #D9C2A5, #C3A178);
|
94 |
+
background-image: -o-linear-gradient(top, #D9C2A5, #C3A178);
|
95 |
+
background-image: linear-gradient(top, #D9C2A5, #C3A178);
|
96 |
+
border-top: 1px solid #BD986A;
|
97 |
+
border-right: 1px solid #BD986A;
|
98 |
+
border-bottom: 1px solid #9A7445;
|
99 |
+
border-left: 1px solid #BD986A;
|
100 |
+
-webkit-border-radius: 4px;
|
101 |
+
-moz-border-radius: 4px;
|
102 |
+
border-radius: 4px;
|
103 |
+
-webkit-box-shadow: inset 0 1px 0 0 #DFCC9F;
|
104 |
+
-moz-box-shadow: inset 0 1px 0 0 #DFCC9F;
|
105 |
+
box-shadow: inset 0 1px 0 0 #DFCC9F;
|
106 |
color: white;
|
107 |
+
font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
108 |
+
line-height: 1;
|
109 |
+
padding: 8px 25px;
|
110 |
+
text-shadow: 0 -1px 1px #BA905E;
|
111 |
+
text-transform: uppercase;
|
112 |
+
padding: 12px 10px;
|
113 |
}
|
114 |
.btn_brown:hover {
|
115 |
background-color: #D1B593;
|
116 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #D1B593), color-stop(100%, #BC966B));
|
117 |
+
background-image: -webkit-linear-gradient(top, #D1B593, #BC966B);
|
118 |
+
background-image: -moz-linear-gradient(top, #D1B593, #BC966B);
|
119 |
+
background-image: -ms-linear-gradient(top, #D1B593, #BC966B);
|
120 |
+
background-image: -o-linear-gradient(top, #D1B593, #BC966B);
|
121 |
+
background-image: linear-gradient(top, #D1B593, #BC966B);
|
122 |
+
border-top: 1px solid #BD986A;
|
123 |
+
border-right: 1px solid #BD986A;
|
124 |
+
border-bottom: 1px solid #9A7445;
|
125 |
+
border-left: 1px solid #BD986A;
|
126 |
+
-webkit-box-shadow: inset 0 1px 0 0 #DFCC9F;
|
127 |
+
-moz-box-shadow: inset 0 1px 0 0 #DFCC9F;
|
128 |
+
box-shadow: inset 0 1px 0 0 #DFCC9F;
|
129 |
+
cursor: pointer;
|
130 |
color: white!important;
|
131 |
}
|
132 |
+
.btn_brown:active {
|
133 |
+
border: 1px solid #B2824C;
|
134 |
+
-webkit-box-shadow: inset 0 0 8px 2px #C19B70;
|
135 |
+
-moz-box-shadow: inset 0 0 8px 2px #C19B70;
|
136 |
+
box-shadow: inset 0 0 8px 2px #C19B70;
|
137 |
+
}
|
138 |
.btn_blue {
|
139 |
background-color: #A5B8DA;
|
140 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #A5B8DA), color-stop(100%, #7089B3));
|
141 |
+
background-image: -webkit-linear-gradient(top, #A5B8DA, #7089B3);
|
142 |
+
background-image: -moz-linear-gradient(top, #A5B8DA, #7089B3);
|
143 |
+
background-image: -ms-linear-gradient(top, #A5B8DA, #7089B3);
|
144 |
+
background-image: -o-linear-gradient(top, #A5B8DA, #7089B3);
|
145 |
+
background-image: linear-gradient(top, #A5B8DA, #7089B3);
|
146 |
+
border-top: 1px solid #758FBA;
|
147 |
+
border-right: 1px solid #6C84AB;
|
148 |
+
border-bottom: 1px solid #5C6F91;
|
149 |
+
border-left: 1px solid #6C84AB;
|
150 |
+
-webkit-border-radius: 4px;
|
151 |
+
-moz-border-radius: 4px;
|
152 |
+
border-radius: 4px;
|
153 |
+
-webkit-box-shadow: inset 0 1px 0 0 #aec3e5;
|
154 |
+
-moz-box-shadow: inset 0 1px 0 0 #aec3e5;
|
155 |
+
box-shadow: inset 0 1px 0 0 #aec3e5;
|
156 |
color: white;
|
157 |
+
font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
158 |
+
line-height: 1;
|
159 |
+
padding: 8px 25px;
|
160 |
+
text-shadow: 0 -1px 1px #64799E;
|
161 |
+
text-transform: uppercase;
|
162 |
+
padding: 12px 10px;
|
163 |
}
|
164 |
.btn_blue:hover {
|
165 |
background-color: #9badcc;
|
166 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #9badcc), color-stop(100%, #687fa6));
|
167 |
+
background-image: -webkit-linear-gradient(top, #9badcc, #687fa6);
|
168 |
+
background-image: -moz-linear-gradient(top, #9badcc, #687fa6);
|
169 |
+
background-image: -ms-linear-gradient(top, #9badcc, #687fa6);
|
170 |
+
background-image: -o-linear-gradient(top, #9badcc, #687fa6);
|
171 |
+
background-image: linear-gradient(top, #9badcc, #687fa6);
|
172 |
+
border-top: 1px solid #6d86ad;
|
173 |
+
border-right: 1px solid #647a9e;
|
174 |
+
border-bottom: 1px solid #546685;
|
175 |
+
border-left: 1px solid #647a9e;
|
176 |
+
-webkit-box-shadow: inset 0 1px 0 0 #a5b9d9;
|
177 |
+
-moz-box-shadow: inset 0 1px 0 0 #a5b9d9;
|
178 |
+
box-shadow: inset 0 1px 0 0 #a5b9d9;
|
179 |
+
cursor: pointer;
|
180 |
color: white!important;
|
181 |
}
|
182 |
+
.btn_blue:active {
|
183 |
+
border: 1px solid #546685;
|
184 |
+
-webkit-box-shadow: inset 0 0 8px 2px #7e8da6;
|
185 |
+
-moz-box-shadow: inset 0 0 8px 2px #7e8da6;
|
186 |
+
box-shadow: inset 0 0 8px 2px #7e8da6;
|
187 |
+
}
|
188 |
.btn_green {
|
189 |
background-color: #6CB24C;
|
190 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #6CB24C), color-stop(100%, #52873A));
|
191 |
+
background-image: -webkit-linear-gradient(top, #6CB24C, #52873A);
|
192 |
+
background-image: -moz-linear-gradient(top, #6CB24C, #52873A);
|
193 |
+
background-image: -ms-linear-gradient(top, #6CB24C, #52873A);
|
194 |
+
background-image: -o-linear-gradient(top, #6CB24C, #52873A);
|
195 |
+
background-image: linear-gradient(top, #6CB24C, #52873A);
|
196 |
+
border-top: 1px solid #477532;
|
197 |
+
border-right: 1px solid #477532;
|
198 |
+
border-bottom: 1px solid #3A6029;
|
199 |
+
border-left: 1px solid #477532;
|
200 |
+
-webkit-border-radius: 4px;
|
201 |
+
-moz-border-radius: 4px;
|
202 |
+
border-radius: 4px;
|
203 |
+
-webkit-box-shadow: inset 0 1px 0 0 #8FC477;
|
204 |
+
-moz-box-shadow: inset 0 1px 0 0 #8FC477;
|
205 |
+
box-shadow: inset 0 1px 0 0 #8FC477;
|
206 |
color: white;
|
207 |
+
font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
208 |
+
line-height: 1;
|
209 |
+
padding: 12px 10px;
|
210 |
+
text-shadow: 0 -1px 1px #416B2D;
|
211 |
+
text-transform: uppercase;
|
212 |
}
|
213 |
.btn_green:hover {
|
214 |
background-color: #5F9D43;
|
215 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #68AB49), color-stop(100%, #4A7834));
|
216 |
+
background-image: -webkit-linear-gradient(top, #68AB49, #4A7834);
|
217 |
+
background-image: -moz-linear-gradient(top, #68AB49, #4A7834);
|
218 |
+
background-image: -ms-linear-gradient(top, #68AB49, #4A7834);
|
219 |
+
background-image: -o-linear-gradient(top, #68AB49, #4A7834);
|
220 |
+
background-image: linear-gradient(top, #68AB49, #4A7834);
|
221 |
+
border-top: 1px solid #4E8037;
|
222 |
+
border-right: 1px solid #4E8037;
|
223 |
+
border-bottom: 1px solid #3A6029;
|
224 |
+
border-left: 1px solid #4E8037;
|
225 |
+
-webkit-box-shadow: inset 0 1px 0 0 #8FC477;
|
226 |
+
-moz-box-shadow: inset 0 1px 0 0 #8FC477;
|
227 |
+
box-shadow: inset 0 1px 0 0 #8FC477;
|
228 |
+
cursor: pointer;
|
229 |
color: white!important;
|
230 |
}
|
231 |
+
.btn_green:active {
|
232 |
+
border: 1px solid #436D30;
|
233 |
+
-webkit-box-shadow: inset 0 0 8px 2px #467131;
|
234 |
+
-moz-box-shadow: inset 0 0 8px 2px #467131;
|
235 |
+
box-shadow: inset 0 0 8px 2px #467131;
|
236 |
+
}
|
237 |
.btn_yellow {
|
238 |
background-color: #FFDA6B;
|
239 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FFDA6B), color-stop(100%, #FEAE2D));
|
240 |
+
background-image: -webkit-linear-gradient(top, #FFDA6B, #FEAE2D);
|
241 |
+
background-image: -moz-linear-gradient(top, #FFDA6B, #FEAE2D);
|
242 |
+
background-image: -ms-linear-gradient(top, #FFDA6B, #FEAE2D);
|
243 |
+
background-image: -o-linear-gradient(top, #FFDA6B, #FEAE2D);
|
244 |
+
background-image: linear-gradient(top, #FFDA6B, #FEAE2D);
|
245 |
+
border-top: 1px solid #D6AB00;
|
246 |
+
border-right: 1px solid #D6AB00;
|
247 |
+
border-bottom: 1px solid #BC9600;
|
248 |
+
border-left: 1px solid #D6AB00;
|
249 |
+
-webkit-border-radius: 4px;
|
250 |
+
-moz-border-radius: 4px;
|
251 |
+
border-radius: 4px;
|
252 |
+
-webkit-box-shadow: inset 0 1px 0 0 #FFE599;
|
253 |
+
-moz-box-shadow: inset 0 1px 0 0 #FFE599;
|
254 |
+
box-shadow: inset 0 1px 0 0 #FFE599;
|
255 |
color: #fff;
|
256 |
+
line-height: 1;
|
257 |
+
padding: 8px 25px;
|
258 |
+
text-shadow: 0 1px 1px #BC9600;
|
259 |
+
text-transform: uppercase;
|
260 |
+
font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
261 |
+
line-height: 1;
|
262 |
+
padding: 12px 10px;
|
263 |
}
|
264 |
.btn_yellow:hover {
|
265 |
background-color: #FFD351;
|
266 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #FFD351), color-stop(100%, #FDA00B));
|
267 |
+
background-image: -webkit-linear-gradient(top, #FFD351, #FDA00B);
|
268 |
+
background-image: -moz-linear-gradient(top, #FFD351, #FDA00B);
|
269 |
+
background-image: -ms-linear-gradient(top, #FFD351, #FDA00B);
|
270 |
+
background-image: -o-linear-gradient(top, #FFD351, #FDA00B);
|
271 |
+
background-image: linear-gradient(top, #FFD351, #FDA00B);
|
272 |
+
border-top: 1px solid #D6AB00;
|
273 |
+
border-right: 1px solid #D6AB00;
|
274 |
+
border-bottom: 1px solid #BC9600;
|
275 |
+
border-left: 1px solid #D6AB00;
|
276 |
+
-webkit-box-shadow: inset 0 1px 0 0 #FFE599;
|
277 |
+
-moz-box-shadow: inset 0 1px 0 0 #FFE599;
|
278 |
+
box-shadow: inset 0 1px 0 0 #FFE599;
|
279 |
+
cursor: pointer;
|
280 |
color: #fff!important;
|
281 |
}
|
282 |
+
.btn_yellow:active {
|
283 |
+
border: 1px solid #F29202;
|
284 |
+
-webkit-box-shadow: inset 0 0 8px 2px #F29202;
|
285 |
+
-moz-box-shadow: inset 0 0 8px 2px #F29202;
|
286 |
+
box-shadow: inset 0 0 8px 2px #F29202;
|
287 |
+
}
|
288 |
.btn_red {
|
289 |
background-color: #E83030;
|
290 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #E83030), color-stop(100%, #B71414));
|
291 |
+
background-image: -webkit-linear-gradient(top, #E83030, #B71414);
|
292 |
+
background-image: -moz-linear-gradient(top, #E83030, #B71414);
|
293 |
+
background-image: -ms-linear-gradient(top, #E83030, #B71414);
|
294 |
+
background-image: -o-linear-gradient(top, #E83030, #B71414);
|
295 |
+
background-image: linear-gradient(top, #E83030, #B71414);
|
296 |
+
border-top: 1px solid #9C1111;
|
297 |
+
border-right: 1px solid #9C1111;
|
298 |
+
border-bottom: 1px solid #890F0F;
|
299 |
+
border-left: 1px solid #9C1111;
|
300 |
+
-webkit-border-radius: 4px;
|
301 |
+
-moz-border-radius: 4px;
|
302 |
+
border-radius: 4px;
|
303 |
+
-webkit-box-shadow: inset 0 1px 0 0 #FF6B6B;
|
304 |
+
-moz-box-shadow: inset 0 1px 0 0 #FF6B6B;
|
305 |
+
box-shadow: inset 0 1px 0 0 #FF6B6B;
|
306 |
color: white;
|
307 |
+
font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
308 |
+
line-height: 1;
|
309 |
+
padding: 8px 25px;
|
310 |
+
text-shadow: 0 -1px 1px #A01111;
|
311 |
+
text-transform: uppercase;
|
312 |
+
padding: 12px 10px;
|
313 |
}
|
314 |
.btn_red:hover {
|
315 |
background-color: #E63131;
|
316 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #E63131), color-stop(100%, #9C1111));
|
317 |
+
background-image: -webkit-linear-gradient(top, #E63131, #9C1111);
|
318 |
+
background-image: -moz-linear-gradient(top, #E63131, #9C1111);
|
319 |
+
background-image: -ms-linear-gradient(top, #E63131, #9C1111);
|
320 |
+
background-image: -o-linear-gradient(top, #E63131, #9C1111);
|
321 |
+
background-image: linear-gradient(top, #E63131, #9C1111);
|
322 |
+
border-top: 1px solid #9C1111;
|
323 |
+
border-right: 1px solid #9C1111;
|
324 |
+
border-bottom: 1px solid #890F0F;
|
325 |
+
border-left: 1px solid #9C1111;
|
326 |
+
-webkit-box-shadow: inset 0 1px 0 0 #FE4C4C;
|
327 |
+
-moz-box-shadow: inset 0 1px 0 0 #FE4C4C;
|
328 |
+
box-shadow: inset 0 1px 0 0 #FE4C4C;
|
329 |
+
cursor: pointer;
|
330 |
color: white!important;
|
331 |
}
|
332 |
+
.btn_red:active {
|
333 |
+
border: 1px solid #890F0F;
|
334 |
+
-webkit-box-shadow: inset 0 0 8px 2px #890F0F;
|
335 |
+
-moz-box-shadow: inset 0 0 8px 2px #890F0F;
|
336 |
+
box-shadow: inset 0 0 8px 2px #890F0F;
|
337 |
+
}
|
338 |
.btn_white {
|
339 |
background-color: #F7F7F7;
|
340 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #F7F7F7), color-stop(100%, #E0E0E0));
|
341 |
+
background-image: -webkit-linear-gradient(top, #F7F7F7, #E0E0E0);
|
342 |
+
background-image: -moz-linear-gradient(top, #F7F7F7, #E0E0E0);
|
343 |
+
background-image: -ms-linear-gradient(top, #F7F7F7, #E0E0E0);
|
344 |
+
background-image: -o-linear-gradient(top, #F7F7F7, #E0E0E0);
|
345 |
+
background-image: linear-gradient(top, #F7F7F7, #E0E0E0);
|
346 |
+
border-top: 1px solid #CECECE;
|
347 |
+
border-right: 1px solid #CECECE;
|
348 |
+
border-bottom: 1px solid #C4C4C4;
|
349 |
+
border-left: 1px solid #CECECE;
|
350 |
+
-webkit-border-radius: 4px;
|
351 |
+
-moz-border-radius: 4px;
|
352 |
+
border-radius: 4px;
|
353 |
+
-webkit-box-shadow: inset 0 1px 0 0 #FFFFFF;
|
354 |
+
-moz-box-shadow: inset 0 1px 0 0 #FFFFFF;
|
355 |
+
box-shadow: inset 0 1px 0 0 #FFFFFF;
|
356 |
color: #4F4F4F;
|
357 |
+
font: bold 11px "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
358 |
+
line-height: 1;
|
359 |
+
padding: 8px 25px;
|
360 |
+
text-shadow: 0 -1px 1px #fff;
|
361 |
+
text-transform: uppercase;
|
362 |
+
padding: 12px 10px;
|
363 |
}
|
364 |
.btn_white:hover {
|
365 |
background-color: #F4F4F4;
|
366 |
+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #F4F4F4), color-stop(100%, #D3D3D3));
|
367 |
+
background-image: -webkit-linear-gradient(top, #F4F4F4, #D3D3D3);
|
368 |
+
background-image: -moz-linear-gradient(top, #F4F4F4, #D3D3D3);
|
369 |
+
background-image: -ms-linear-gradient(top, #F4F4F4, #D3D3D3);
|
370 |
+
background-image: -o-linear-gradient(top, #F4F4F4, #D3D3D3);
|
371 |
+
background-image: linear-gradient(top, #F4F4F4, #D3D3D3);
|
372 |
+
border-top: 1px solid #CECECE;
|
373 |
+
border-right: 1px solid #CECECE;
|
374 |
+
border-bottom: 1px solid #C4C4C4;
|
375 |
+
border-left: 1px solid #CECECE;
|
376 |
+
-webkit-box-shadow: inset 0 1px 0 0 #fff;
|
377 |
+
-moz-box-shadow: inset 0 1px 0 0 #fff;
|
378 |
+
box-shadow: inset 0 1px 0 0 #fff;
|
379 |
+
cursor: pointer;
|
380 |
color: #4F4F4F!important;
|
381 |
}
|
382 |
.btn_white:active {
|
383 |
border: 1px solid #C1C1C1;
|
384 |
+
-webkit-box-shadow: inset 0 0 8px 2px #C1C1C1;
|
385 |
+
-moz-box-shadow: inset 0 0 8px 2px #C1C1C1;
|
386 |
box-shadow: inset 0 0 8px 2px #C1C1C1;
|
387 |
}
|
388 |
/*-[ Video Shortcode ]-------------------------*/
|
389 |
.textwidget .youtube-video, .textwidget .vimeo-video, .textwidget .googlemaps { margin: 0 }
|
390 |
+
.youtube-video, .vimeo-video { margin: 10px 0 10px 0 }
|
|
|
|
|
|
|
391 |
/*-[ Google Maps ]-----------------------------*/
|
392 |
.googlemaps { margin: 5px 15px 10px 0 }
|
393 |
/*-[ Columns ]---------------------------------*/
|
425 |
height: 40px;
|
426 |
border-bottom: 1px solid #DDD;
|
427 |
margin: 0;
|
|
|
428 |
}
|
429 |
.tab_widget ul.wps_tabs li {
|
430 |
float: left;
|
438 |
overflow: hidden;
|
439 |
position: relative;
|
440 |
background-image: linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
|
441 |
+
background-image: -o-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
|
442 |
+
background-image: -moz-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
|
443 |
+
background-image: -webkit-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
|
444 |
background-image: -ms-linear-gradient(bottom, rgb(230,230,230) 9%, rgb(238,238,238) 55%);
|
445 |
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.09, rgb(230,230,230)), color-stop(0.55, rgb(238,238,238)) );
|
446 |
}
|
images/code.png
ADDED
Binary file
|
images/cross.png
ADDED
Binary file
|
images/speaker.png
ADDED
Binary file
|
images/thumb.png
ADDED
Binary file
|
images/tick.png
ADDED
Binary file
|
images/toggle-down.png
CHANGED
Binary file
|
images/toggle-up.png
CHANGED
Binary file
|
js/jquery.tipsy.js
DELETED
@@ -1,258 +0,0 @@
|
|
1 |
-
// tipsy, facebook style tooltips for jquery
|
2 |
-
// version 1.0.0a
|
3 |
-
// (c) 2008-2010 jason frame [jason@onehackoranother.com]
|
4 |
-
// released under the MIT license
|
5 |
-
|
6 |
-
(function($) {
|
7 |
-
|
8 |
-
function maybeCall(thing, ctx) {
|
9 |
-
return (typeof thing == 'function') ? (thing.call(ctx)) : thing;
|
10 |
-
};
|
11 |
-
|
12 |
-
function isElementInDOM(ele) {
|
13 |
-
while (ele = ele.parentNode) {
|
14 |
-
if (ele == document) return true;
|
15 |
-
}
|
16 |
-
return false;
|
17 |
-
};
|
18 |
-
|
19 |
-
function Tipsy(element, options) {
|
20 |
-
this.$element = $(element);
|
21 |
-
this.options = options;
|
22 |
-
this.enabled = true;
|
23 |
-
this.fixTitle();
|
24 |
-
};
|
25 |
-
|
26 |
-
Tipsy.prototype = {
|
27 |
-
show: function() {
|
28 |
-
var title = this.getTitle();
|
29 |
-
if (title && this.enabled) {
|
30 |
-
var $tip = this.tip();
|
31 |
-
|
32 |
-
$tip.find('.tipsy-inner')[this.options.html ? 'html' : 'text'](title);
|
33 |
-
$tip[0].className = 'tipsy'; // reset classname in case of dynamic gravity
|
34 |
-
$tip.remove().css({top: 0, left: 0, visibility: 'hidden', display: 'block'}).prependTo(document.body);
|
35 |
-
|
36 |
-
var pos = $.extend({}, this.$element.offset(), {
|
37 |
-
width: this.$element[0].offsetWidth,
|
38 |
-
height: this.$element[0].offsetHeight
|
39 |
-
});
|
40 |
-
|
41 |
-
var actualWidth = $tip[0].offsetWidth,
|
42 |
-
actualHeight = $tip[0].offsetHeight,
|
43 |
-
gravity = maybeCall(this.options.gravity, this.$element[0]);
|
44 |
-
|
45 |
-
var tp;
|
46 |
-
switch (gravity.charAt(0)) {
|
47 |
-
case 'n':
|
48 |
-
tp = {top: pos.top + pos.height + this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
|
49 |
-
break;
|
50 |
-
case 's':
|
51 |
-
tp = {top: pos.top - actualHeight - this.options.offset, left: pos.left + pos.width / 2 - actualWidth / 2};
|
52 |
-
break;
|
53 |
-
case 'e':
|
54 |
-
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth - this.options.offset};
|
55 |
-
break;
|
56 |
-
case 'w':
|
57 |
-
tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width + this.options.offset};
|
58 |
-
break;
|
59 |
-
}
|
60 |
-
|
61 |
-
if (gravity.length == 2) {
|
62 |
-
if (gravity.charAt(1) == 'w') {
|
63 |
-
tp.left = pos.left + pos.width / 2 - 15;
|
64 |
-
} else {
|
65 |
-
tp.left = pos.left + pos.width / 2 - actualWidth + 15;
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
$tip.css(tp).addClass('tipsy-' + gravity);
|
70 |
-
$tip.find('.tipsy-arrow')[0].className = 'tipsy-arrow tipsy-arrow-' + gravity.charAt(0);
|
71 |
-
if (this.options.className) {
|
72 |
-
$tip.addClass(maybeCall(this.options.className, this.$element[0]));
|
73 |
-
}
|
74 |
-
|
75 |
-
if (this.options.fade) {
|
76 |
-
$tip.stop().css({opacity: 0, display: 'block', visibility: 'visible'}).animate({opacity: this.options.opacity});
|
77 |
-
} else {
|
78 |
-
$tip.css({visibility: 'visible', opacity: this.options.opacity});
|
79 |
-
}
|
80 |
-
}
|
81 |
-
},
|
82 |
-
|
83 |
-
hide: function() {
|
84 |
-
if (this.options.fade) {
|
85 |
-
this.tip().stop().fadeOut(function() { $(this).remove(); });
|
86 |
-
} else {
|
87 |
-
this.tip().remove();
|
88 |
-
}
|
89 |
-
},
|
90 |
-
|
91 |
-
fixTitle: function() {
|
92 |
-
var $e = this.$element;
|
93 |
-
if ($e.attr('title') || typeof($e.attr('original-title')) != 'string') {
|
94 |
-
$e.attr('original-title', $e.attr('title') || '').removeAttr('title');
|
95 |
-
}
|
96 |
-
},
|
97 |
-
|
98 |
-
getTitle: function() {
|
99 |
-
var title, $e = this.$element, o = this.options;
|
100 |
-
this.fixTitle();
|
101 |
-
var title, o = this.options;
|
102 |
-
if (typeof o.title == 'string') {
|
103 |
-
title = $e.attr(o.title == 'title' ? 'original-title' : o.title);
|
104 |
-
} else if (typeof o.title == 'function') {
|
105 |
-
title = o.title.call($e[0]);
|
106 |
-
}
|
107 |
-
title = ('' + title).replace(/(^\s*|\s*$)/, "");
|
108 |
-
return title || o.fallback;
|
109 |
-
},
|
110 |
-
|
111 |
-
tip: function() {
|
112 |
-
if (!this.$tip) {
|
113 |
-
this.$tip = $('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');
|
114 |
-
this.$tip.data('tipsy-pointee', this.$element[0]);
|
115 |
-
}
|
116 |
-
return this.$tip;
|
117 |
-
},
|
118 |
-
|
119 |
-
validate: function() {
|
120 |
-
if (!this.$element[0].parentNode) {
|
121 |
-
this.hide();
|
122 |
-
this.$element = null;
|
123 |
-
this.options = null;
|
124 |
-
}
|
125 |
-
},
|
126 |
-
|
127 |
-
enable: function() { this.enabled = true; },
|
128 |
-
disable: function() { this.enabled = false; },
|
129 |
-
toggleEnabled: function() { this.enabled = !this.enabled; }
|
130 |
-
};
|
131 |
-
|
132 |
-
$.fn.tipsy = function(options) {
|
133 |
-
|
134 |
-
if (options === true) {
|
135 |
-
return this.data('tipsy');
|
136 |
-
} else if (typeof options == 'string') {
|
137 |
-
var tipsy = this.data('tipsy');
|
138 |
-
if (tipsy) tipsy[options]();
|
139 |
-
return this;
|
140 |
-
}
|
141 |
-
|
142 |
-
options = $.extend({}, $.fn.tipsy.defaults, options);
|
143 |
-
|
144 |
-
function get(ele) {
|
145 |
-
var tipsy = $.data(ele, 'tipsy');
|
146 |
-
if (!tipsy) {
|
147 |
-
tipsy = new Tipsy(ele, $.fn.tipsy.elementOptions(ele, options));
|
148 |
-
$.data(ele, 'tipsy', tipsy);
|
149 |
-
}
|
150 |
-
return tipsy;
|
151 |
-
}
|
152 |
-
|
153 |
-
function enter() {
|
154 |
-
var tipsy = get(this);
|
155 |
-
tipsy.hoverState = 'in';
|
156 |
-
if (options.delayIn == 0) {
|
157 |
-
tipsy.show();
|
158 |
-
} else {
|
159 |
-
tipsy.fixTitle();
|
160 |
-
setTimeout(function() { if (tipsy.hoverState == 'in') tipsy.show(); }, options.delayIn);
|
161 |
-
}
|
162 |
-
};
|
163 |
-
|
164 |
-
function leave() {
|
165 |
-
var tipsy = get(this);
|
166 |
-
tipsy.hoverState = 'out';
|
167 |
-
if (options.delayOut == 0) {
|
168 |
-
tipsy.hide();
|
169 |
-
} else {
|
170 |
-
setTimeout(function() { if (tipsy.hoverState == 'out') tipsy.hide(); }, options.delayOut);
|
171 |
-
}
|
172 |
-
};
|
173 |
-
|
174 |
-
if (!options.live) this.each(function() { get(this); });
|
175 |
-
|
176 |
-
if (options.trigger != 'manual') {
|
177 |
-
var binder = options.live ? 'live' : 'bind',
|
178 |
-
eventIn = options.trigger == 'hover' ? 'mouseenter' : 'focus',
|
179 |
-
eventOut = options.trigger == 'hover' ? 'mouseleave' : 'blur';
|
180 |
-
this[binder](eventIn, enter)[binder](eventOut, leave);
|
181 |
-
}
|
182 |
-
|
183 |
-
return this;
|
184 |
-
|
185 |
-
};
|
186 |
-
|
187 |
-
$.fn.tipsy.defaults = {
|
188 |
-
className: null,
|
189 |
-
delayIn: 0,
|
190 |
-
delayOut: 0,
|
191 |
-
fade: false,
|
192 |
-
fallback: '',
|
193 |
-
gravity: 'n',
|
194 |
-
html: false,
|
195 |
-
live: false,
|
196 |
-
offset: 0,
|
197 |
-
opacity: 0.8,
|
198 |
-
title: 'title',
|
199 |
-
trigger: 'hover'
|
200 |
-
};
|
201 |
-
|
202 |
-
$.fn.tipsy.revalidate = function() {
|
203 |
-
$('.tipsy').each(function() {
|
204 |
-
var pointee = $.data(this, 'tipsy-pointee');
|
205 |
-
if (!pointee || !isElementInDOM(pointee)) {
|
206 |
-
$(this).remove();
|
207 |
-
}
|
208 |
-
});
|
209 |
-
};
|
210 |
-
|
211 |
-
// Overwrite this method to provide options on a per-element basis.
|
212 |
-
// For example, you could store the gravity in a 'tipsy-gravity' attribute:
|
213 |
-
// return $.extend({}, options, {gravity: $(ele).attr('tipsy-gravity') || 'n' });
|
214 |
-
// (remember - do not modify 'options' in place!)
|
215 |
-
$.fn.tipsy.elementOptions = function(ele, options) {
|
216 |
-
return $.metadata ? $.extend({}, options, $(ele).metadata()) : options;
|
217 |
-
};
|
218 |
-
|
219 |
-
$.fn.tipsy.autoNS = function() {
|
220 |
-
return $(this).offset().top > ($(document).scrollTop() + $(window).height() / 2) ? 's' : 'n';
|
221 |
-
};
|
222 |
-
|
223 |
-
$.fn.tipsy.autoWE = function() {
|
224 |
-
return $(this).offset().left > ($(document).scrollLeft() + $(window).width() / 2) ? 'e' : 'w';
|
225 |
-
};
|
226 |
-
|
227 |
-
/**
|
228 |
-
* yields a closure of the supplied parameters, producing a function that takes
|
229 |
-
* no arguments and is suitable for use as an autogravity function like so:
|
230 |
-
*
|
231 |
-
* @param margin (int) - distance from the viewable region edge that an
|
232 |
-
* element should be before setting its tooltip's gravity to be away
|
233 |
-
* from that edge.
|
234 |
-
* @param prefer (string, e.g. 'n', 'sw', 'w') - the direction to prefer
|
235 |
-
* if there are no viewable region edges effecting the tooltip's
|
236 |
-
* gravity. It will try to vary from this minimally, for example,
|
237 |
-
* if 'sw' is preferred and an element is near the right viewable
|
238 |
-
* region edge, but not the top edge, it will set the gravity for
|
239 |
-
* that element's tooltip to be 'se', preserving the southern
|
240 |
-
* component.
|
241 |
-
*/
|
242 |
-
$.fn.tipsy.autoBounds = function(margin, prefer) {
|
243 |
-
return function() {
|
244 |
-
var dir = {ns: prefer[0], ew: (prefer.length > 1 ? prefer[1] : false)},
|
245 |
-
boundTop = $(document).scrollTop() + margin,
|
246 |
-
boundLeft = $(document).scrollLeft() + margin,
|
247 |
-
$this = $(this);
|
248 |
-
|
249 |
-
if ($this.offset().top < boundTop) dir.ns = 'n';
|
250 |
-
if ($this.offset().left < boundLeft) dir.ew = 'w';
|
251 |
-
if ($(window).width() + $(document).scrollLeft() - $this.offset().left < margin) dir.ew = 'e';
|
252 |
-
if ($(window).height() + $(document).scrollTop() - $this.offset().top < margin) dir.ns = 's';
|
253 |
-
|
254 |
-
return dir.ns + (dir.ew ? dir.ew : '');
|
255 |
-
}
|
256 |
-
};
|
257 |
-
|
258 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/wp-shortcode.js
CHANGED
@@ -1,38 +1,28 @@
|
|
1 |
-
jQuery(document).ready(function($){
|
2 |
-
// Toggles
|
3 |
-
if ($('.wp_shortcodes_toggle').length) {
|
4 |
-
$(".togglec").hide();
|
5 |
-
$(".wps_togglet").click(function(){
|
6 |
-
$(this).toggleClass("toggleta").next(".togglec").slideToggle("normal");
|
7 |
-
});
|
8 |
-
}
|
9 |
-
|
10 |
-
// Tabs
|
11 |
-
if ($('.wp_shortcodes_tabs').length) {
|
12 |
-
$('.wp_shortcodes_tabs').each(function() {
|
13 |
-
var $this = $(this);
|
14 |
-
$this.find('.tab_content').slice(1).hide();
|
15 |
-
$this.find('ul.wps_tabs li:first').addClass('active');
|
16 |
-
$this.find('ul.wps_tabs li a').click(function(e) {
|
17 |
-
e.preventDefault();
|
18 |
-
var $this_a = $(this);
|
19 |
-
var $tab = $this.find('#'+$this_a.data('tab'));
|
20 |
-
if (! $tab.is(':visible')) {
|
21 |
-
$this.find('.tab_content').hide();
|
22 |
-
$this_a.parent().addClass('active').siblings().removeClass('active');
|
23 |
-
$tab.fadeIn(600);
|
24 |
-
}
|
25 |
-
});
|
26 |
-
});
|
27 |
-
}
|
28 |
-
|
29 |
-
if ($('.wp_shortcodes_tooltip').length) {
|
30 |
-
$('.wp_shortcodes_tooltip').each(function(index, el) {
|
31 |
-
var $this = $(this),
|
32 |
-
ttgravity = $this.data('gravity'),
|
33 |
-
ttfade = Boolean($this.data('fade'));
|
34 |
-
$this.tipsy({gravity: ttgravity, fade: ttfade});
|
35 |
-
});
|
36 |
-
}
|
37 |
-
|
38 |
});
|
1 |
+
jQuery(document).ready(function($){
|
2 |
+
// Toggles
|
3 |
+
if ($('.wp_shortcodes_toggle').length) {
|
4 |
+
$(".togglec").hide();
|
5 |
+
$(".wps_togglet").click(function(){
|
6 |
+
$(this).toggleClass("toggleta").next(".togglec").slideToggle("normal");
|
7 |
+
});
|
8 |
+
}
|
9 |
+
|
10 |
+
// Tabs
|
11 |
+
if ($('.wp_shortcodes_tabs').length) {
|
12 |
+
$('.wp_shortcodes_tabs').each(function() {
|
13 |
+
var $this = $(this);
|
14 |
+
$this.find('.tab_content').slice(1).hide();
|
15 |
+
$this.find('ul.wps_tabs li:first').addClass('active');
|
16 |
+
$this.find('ul.wps_tabs li a').click(function(e) {
|
17 |
+
e.preventDefault();
|
18 |
+
var $this_a = $(this);
|
19 |
+
var $tab = $this.find('#'+$this_a.data('tab'));
|
20 |
+
if (! $tab.is(':visible')) {
|
21 |
+
$this.find('.tab_content').hide();
|
22 |
+
$this_a.parent().addClass('active').siblings().removeClass('active');
|
23 |
+
$tab.fadeIn(600);
|
24 |
+
}
|
25 |
+
});
|
26 |
+
});
|
27 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
});
|
languages/default.mo
DELETED
Binary file
|
languages/default.po
DELETED
@@ -1,355 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: WP Subscribe by MyThemeShop\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2015-09-27 00:01+0530\n"
|
6 |
-
"PO-Revision-Date: 2015-09-27 00:01+0530\n"
|
7 |
-
"Last-Translator: MyThemeShop <support-team@mythemeshop.com>\n"
|
8 |
-
"Language-Team: MyThemeShop <support-team@mythemeshop.com>\n"
|
9 |
-
"Language: en_US\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
-
"X-Poedit-Basepath: .\n"
|
15 |
-
"X-Generator: Poedit 1.6.2\n"
|
16 |
-
"X-Poedit-SearchPath-0: ..\n"
|
17 |
-
|
18 |
-
#: ../wp-shortcode.php:383
|
19 |
-
msgid "Toggle Title"
|
20 |
-
msgstr ""
|
21 |
-
|
22 |
-
#: ../wp-shortcode.php:399
|
23 |
-
msgid "Back to Top"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: ../tinymce/editor_plugin.php:6
|
27 |
-
msgid "You are not allowed to be here"
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: ../tinymce/editor_plugin.php:31
|
31 |
-
msgid "Select Shortcode"
|
32 |
-
msgstr ""
|
33 |
-
|
34 |
-
#: ../tinymce/editor_plugin.php:68
|
35 |
-
msgid "Cancel"
|
36 |
-
msgstr ""
|
37 |
-
|
38 |
-
#: ../tinymce/editor_plugin.php:72
|
39 |
-
msgid "Insert"
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: ../tinymce/shortcodes.php:10
|
43 |
-
msgid "Brown Button"
|
44 |
-
msgstr ""
|
45 |
-
|
46 |
-
#: ../tinymce/shortcodes.php:11 ../tinymce/shortcodes.php:22
|
47 |
-
#: ../tinymce/shortcodes.php:33 ../tinymce/shortcodes.php:44
|
48 |
-
#: ../tinymce/shortcodes.php:55 ../tinymce/shortcodes.php:66
|
49 |
-
msgid "Button text"
|
50 |
-
msgstr ""
|
51 |
-
|
52 |
-
#: ../tinymce/shortcodes.php:12
|
53 |
-
msgid ""
|
54 |
-
"Inserts a brown button. Set target to <strong>_blank</strong> to open link "
|
55 |
-
"in a new window."
|
56 |
-
msgstr ""
|
57 |
-
|
58 |
-
#: ../tinymce/shortcodes.php:21
|
59 |
-
msgid "Blue Button"
|
60 |
-
msgstr ""
|
61 |
-
|
62 |
-
#: ../tinymce/shortcodes.php:23
|
63 |
-
msgid ""
|
64 |
-
"Inserts a blue button. Set target to <strong>_blank</strong> to open link in "
|
65 |
-
"a new window."
|
66 |
-
msgstr ""
|
67 |
-
|
68 |
-
#: ../tinymce/shortcodes.php:32
|
69 |
-
msgid "Green Button"
|
70 |
-
msgstr ""
|
71 |
-
|
72 |
-
#: ../tinymce/shortcodes.php:34
|
73 |
-
msgid ""
|
74 |
-
"Inserts a green button. Set target to <strong>_blank</strong> to open link "
|
75 |
-
"in a new window."
|
76 |
-
msgstr ""
|
77 |
-
|
78 |
-
#: ../tinymce/shortcodes.php:43
|
79 |
-
msgid "Yellow Button"
|
80 |
-
msgstr ""
|
81 |
-
|
82 |
-
#: ../tinymce/shortcodes.php:45
|
83 |
-
msgid ""
|
84 |
-
"Inserts a yellow button. Set target to <strong>_blank</strong> to open link "
|
85 |
-
"in a new window."
|
86 |
-
msgstr ""
|
87 |
-
|
88 |
-
#: ../tinymce/shortcodes.php:54
|
89 |
-
msgid "Red Button"
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: ../tinymce/shortcodes.php:56
|
93 |
-
msgid ""
|
94 |
-
"Inserts a red button. Set target to <strong>_blank</strong> to open link in "
|
95 |
-
"a new window."
|
96 |
-
msgstr ""
|
97 |
-
|
98 |
-
#: ../tinymce/shortcodes.php:65
|
99 |
-
msgid "White Button"
|
100 |
-
msgstr ""
|
101 |
-
|
102 |
-
#: ../tinymce/shortcodes.php:67
|
103 |
-
msgid ""
|
104 |
-
"Inserts a white button. Set target to <strong>_blank</strong> to open link "
|
105 |
-
"in a new window."
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: ../tinymce/shortcodes.php:72
|
109 |
-
msgid "Alert Note"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: ../tinymce/shortcodes.php:73
|
113 |
-
msgid "Note text"
|
114 |
-
msgstr ""
|
115 |
-
|
116 |
-
#: ../tinymce/shortcodes.php:74
|
117 |
-
msgid "Display a note."
|
118 |
-
msgstr ""
|
119 |
-
|
120 |
-
#: ../tinymce/shortcodes.php:79
|
121 |
-
msgid "Alert Announce"
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#: ../tinymce/shortcodes.php:80
|
125 |
-
msgid "Announce text"
|
126 |
-
msgstr ""
|
127 |
-
|
128 |
-
#: ../tinymce/shortcodes.php:81
|
129 |
-
msgid "Display an announcement."
|
130 |
-
msgstr ""
|
131 |
-
|
132 |
-
#: ../tinymce/shortcodes.php:86
|
133 |
-
msgid "Alert Success"
|
134 |
-
msgstr ""
|
135 |
-
|
136 |
-
#: ../tinymce/shortcodes.php:87
|
137 |
-
msgid "Success text"
|
138 |
-
msgstr ""
|
139 |
-
|
140 |
-
#: ../tinymce/shortcodes.php:88
|
141 |
-
msgid "Display a success message."
|
142 |
-
msgstr ""
|
143 |
-
|
144 |
-
#: ../tinymce/shortcodes.php:93
|
145 |
-
msgid "Alert Warning"
|
146 |
-
msgstr ""
|
147 |
-
|
148 |
-
#: ../tinymce/shortcodes.php:94
|
149 |
-
msgid "Warning text"
|
150 |
-
msgstr ""
|
151 |
-
|
152 |
-
#: ../tinymce/shortcodes.php:95
|
153 |
-
msgid "Display warning or error message."
|
154 |
-
msgstr ""
|
155 |
-
|
156 |
-
#: ../tinymce/shortcodes.php:105
|
157 |
-
msgid "YouTube Video"
|
158 |
-
msgstr ""
|
159 |
-
|
160 |
-
#: ../tinymce/shortcodes.php:107
|
161 |
-
msgid "Embed a Youtube Video"
|
162 |
-
msgstr ""
|
163 |
-
|
164 |
-
#: ../tinymce/shortcodes.php:117
|
165 |
-
msgid "Vimeo Video"
|
166 |
-
msgstr ""
|
167 |
-
|
168 |
-
#: ../tinymce/shortcodes.php:119
|
169 |
-
msgid "Embed a Vimeo Video."
|
170 |
-
msgstr ""
|
171 |
-
|
172 |
-
#: ../tinymce/shortcodes.php:129
|
173 |
-
msgid "Google Map"
|
174 |
-
msgstr ""
|
175 |
-
|
176 |
-
#: ../tinymce/shortcodes.php:131
|
177 |
-
msgid "Embed a Google Map. Insert address or GPS location."
|
178 |
-
msgstr ""
|
179 |
-
|
180 |
-
#: ../tinymce/shortcodes.php:138
|
181 |
-
msgid "Toggle"
|
182 |
-
msgstr ""
|
183 |
-
|
184 |
-
#: ../tinymce/shortcodes.php:139
|
185 |
-
msgid "Insert Content Here"
|
186 |
-
msgstr ""
|
187 |
-
|
188 |
-
#: ../tinymce/shortcodes.php:141
|
189 |
-
msgid "Content will be shown after clicking on the toggle title."
|
190 |
-
msgstr ""
|
191 |
-
|
192 |
-
#: ../tinymce/shortcodes.php:146
|
193 |
-
msgid "Tabs"
|
194 |
-
msgstr ""
|
195 |
-
|
196 |
-
#: ../tinymce/shortcodes.php:147
|
197 |
-
msgid ""
|
198 |
-
"[tab title="Tab 1 Title"]Insert tab 1 content here[/tab]\n"
|
199 |
-
"[tab title="Tab 2 Title"]Insert tab 2 content here[/tab]\n"
|
200 |
-
"[tab title="Tab 3 Title"]Insert tab 3 content here[/tab]"
|
201 |
-
msgstr ""
|
202 |
-
|
203 |
-
#: ../tinymce/shortcodes.php:149
|
204 |
-
msgid "Display content in tabbed form."
|
205 |
-
msgstr ""
|
206 |
-
|
207 |
-
#: ../tinymce/shortcodes.php:155
|
208 |
-
msgid "Simple horizontal divider."
|
209 |
-
msgstr ""
|
210 |
-
|
211 |
-
#: ../tinymce/shortcodes.php:161
|
212 |
-
msgid "Divider with an anchor link to top of page."
|
213 |
-
msgstr ""
|
214 |
-
|
215 |
-
#: ../tinymce/shortcodes.php:166
|
216 |
-
msgid "Clear"
|
217 |
-
msgstr ""
|
218 |
-
|
219 |
-
#: ../tinymce/shortcodes.php:168
|
220 |
-
msgid ""
|
221 |
-
"Clear shortcode can be used to clear an element of its neighbors, no "
|
222 |
-
"floating elements are allowed on the left or the right side."
|
223 |
-
msgstr ""
|
224 |
-
|
225 |
-
#: ../tinymce/shortcodes.php:176
|
226 |
-
msgid "One Third"
|
227 |
-
msgstr ""
|
228 |
-
|
229 |
-
#: ../tinymce/shortcodes.php:177 ../tinymce/shortcodes.php:185
|
230 |
-
#: ../tinymce/shortcodes.php:193 ../tinymce/shortcodes.php:201
|
231 |
-
#: ../tinymce/shortcodes.php:209 ../tinymce/shortcodes.php:217
|
232 |
-
#: ../tinymce/shortcodes.php:225 ../tinymce/shortcodes.php:233
|
233 |
-
#: ../tinymce/shortcodes.php:241 ../tinymce/shortcodes.php:249
|
234 |
-
#: ../tinymce/shortcodes.php:257 ../tinymce/shortcodes.php:265
|
235 |
-
#: ../tinymce/shortcodes.php:273 ../tinymce/shortcodes.php:281
|
236 |
-
#: ../tinymce/shortcodes.php:289 ../tinymce/shortcodes.php:297
|
237 |
-
#: ../tinymce/shortcodes.php:305 ../tinymce/shortcodes.php:313
|
238 |
-
#: ../tinymce/shortcodes.php:321 ../tinymce/shortcodes.php:329
|
239 |
-
#: ../tinymce/shortcodes.php:337 ../tinymce/shortcodes.php:345
|
240 |
-
msgid "Column content"
|
241 |
-
msgstr ""
|
242 |
-
|
243 |
-
#: ../tinymce/shortcodes.php:179 ../tinymce/shortcodes.php:187
|
244 |
-
#: ../tinymce/shortcodes.php:195 ../tinymce/shortcodes.php:203
|
245 |
-
#: ../tinymce/shortcodes.php:211 ../tinymce/shortcodes.php:219
|
246 |
-
#: ../tinymce/shortcodes.php:227 ../tinymce/shortcodes.php:235
|
247 |
-
#: ../tinymce/shortcodes.php:243 ../tinymce/shortcodes.php:251
|
248 |
-
#: ../tinymce/shortcodes.php:259 ../tinymce/shortcodes.php:267
|
249 |
-
#: ../tinymce/shortcodes.php:275 ../tinymce/shortcodes.php:283
|
250 |
-
#: ../tinymce/shortcodes.php:291 ../tinymce/shortcodes.php:299
|
251 |
-
#: ../tinymce/shortcodes.php:307 ../tinymce/shortcodes.php:315
|
252 |
-
#: ../tinymce/shortcodes.php:323 ../tinymce/shortcodes.php:331
|
253 |
-
#: ../tinymce/shortcodes.php:339 ../tinymce/shortcodes.php:347
|
254 |
-
msgid ""
|
255 |
-
"Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. "
|
256 |
-
"<br /><strong>One Third + One Third + One Third (Last)</strong>"
|
257 |
-
msgstr ""
|
258 |
-
|
259 |
-
#: ../tinymce/shortcodes.php:184
|
260 |
-
msgid "One Third (Last)"
|
261 |
-
msgstr ""
|
262 |
-
|
263 |
-
#: ../tinymce/shortcodes.php:192
|
264 |
-
msgid "Two Third"
|
265 |
-
msgstr ""
|
266 |
-
|
267 |
-
#: ../tinymce/shortcodes.php:200
|
268 |
-
msgid "Two Third (Last)"
|
269 |
-
msgstr ""
|
270 |
-
|
271 |
-
#: ../tinymce/shortcodes.php:208
|
272 |
-
msgid "One Half"
|
273 |
-
msgstr ""
|
274 |
-
|
275 |
-
#: ../tinymce/shortcodes.php:216
|
276 |
-
msgid "One Half (Last)"
|
277 |
-
msgstr ""
|
278 |
-
|
279 |
-
#: ../tinymce/shortcodes.php:224
|
280 |
-
msgid "One Fourth"
|
281 |
-
msgstr ""
|
282 |
-
|
283 |
-
#: ../tinymce/shortcodes.php:232
|
284 |
-
msgid "One Fourth (Last)"
|
285 |
-
msgstr ""
|
286 |
-
|
287 |
-
#: ../tinymce/shortcodes.php:240
|
288 |
-
msgid "Three Fourth"
|
289 |
-
msgstr ""
|
290 |
-
|
291 |
-
#: ../tinymce/shortcodes.php:248
|
292 |
-
msgid "Three Fourth (Last)"
|
293 |
-
msgstr ""
|
294 |
-
|
295 |
-
#: ../tinymce/shortcodes.php:256
|
296 |
-
msgid "One Fifth"
|
297 |
-
msgstr ""
|
298 |
-
|
299 |
-
#: ../tinymce/shortcodes.php:264
|
300 |
-
msgid "One Fifth (Last)"
|
301 |
-
msgstr ""
|
302 |
-
|
303 |
-
#: ../tinymce/shortcodes.php:272
|
304 |
-
msgid "Two Fifth"
|
305 |
-
msgstr ""
|
306 |
-
|
307 |
-
#: ../tinymce/shortcodes.php:280
|
308 |
-
msgid "Two Fifth (Last)"
|
309 |
-
msgstr ""
|
310 |
-
|
311 |
-
#: ../tinymce/shortcodes.php:288
|
312 |
-
msgid "Three Fifth"
|
313 |
-
msgstr ""
|
314 |
-
|
315 |
-
#: ../tinymce/shortcodes.php:296
|
316 |
-
msgid "Three Fifth (Last)"
|
317 |
-
msgstr ""
|
318 |
-
|
319 |
-
#: ../tinymce/shortcodes.php:304
|
320 |
-
msgid "Four Fifth"
|
321 |
-
msgstr ""
|
322 |
-
|
323 |
-
#: ../tinymce/shortcodes.php:312
|
324 |
-
msgid "Four Fifth (Last)"
|
325 |
-
msgstr ""
|
326 |
-
|
327 |
-
#: ../tinymce/shortcodes.php:320
|
328 |
-
msgid "One Sixth"
|
329 |
-
msgstr ""
|
330 |
-
|
331 |
-
#: ../tinymce/shortcodes.php:328
|
332 |
-
msgid "One Sixth (Last)"
|
333 |
-
msgstr ""
|
334 |
-
|
335 |
-
#: ../tinymce/shortcodes.php:336
|
336 |
-
msgid "Five Sixth"
|
337 |
-
msgstr ""
|
338 |
-
|
339 |
-
#: ../tinymce/shortcodes.php:344
|
340 |
-
msgid "Five Sixth (Last)"
|
341 |
-
msgstr ""
|
342 |
-
|
343 |
-
#: ../tinymce/shortcodes.php:356
|
344 |
-
msgid "Tooltip"
|
345 |
-
msgstr ""
|
346 |
-
|
347 |
-
#: ../tinymce/shortcodes.php:357
|
348 |
-
msgid "Trigger text"
|
349 |
-
msgstr ""
|
350 |
-
|
351 |
-
#: ../tinymce/shortcodes.php:358
|
352 |
-
msgid ""
|
353 |
-
"Add a tooltip that appears on hover. Possible values for direction(Cardinal) "
|
354 |
-
"of bubble: nw | n | ne | w | e | sw | s | se"
|
355 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -1,26 +1,26 @@
|
|
1 |
-
=== WP Shortcode by MyThemeShop ===
|
2 |
-
Contributors: mythemeshop
|
3 |
-
Creator's website link: http://mythemeshop.com/
|
4 |
-
Tags: shortcodes, shortcode, shortcodes list, toggle shortcode, buttons, google map shortcode, youtube shortcode, vimeo shortcode, alert shortcode, notification shortcode, column shortcodes
|
5 |
-
Requires at least: 3.0.1
|
6 |
-
Tested up to: 4.7
|
7 |
-
Stable tag: 1.4.
|
8 |
-
License: GPLv2 or later
|
9 |
-
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
-
|
11 |
-
WP Shortcode is a premium WP plugin for free, that provides easy to use over 24 shortcodes. You can easily add buttons, alerts, videos and more.
|
12 |
-
|
13 |
-
== Description ==
|
14 |
-
|
15 |
-
Add sexy-buttons, spoiler warnings, column layouts and much more to WordPress. WP Shortcode makes it happen with a click of a button. Until now, this premium plugin was available to premium members of <a href="http://mythemeshop.com/">MyThemeShop</a>, but now everyone can use this premium plugin.
|
16 |
-
|
17 |
-
Why use WP Shortcode plugin? Tired of using a theme with built-in shortcodes, switching themes and then losing all your awesome styles? WP Shortcode offers over 24 useful shortcodes, so you'll never lose anything when changing your theme. Now you can add buttons, highlights, boxes, toggles, tabs, pricing tables, among other awesomeness, and take them with you no matter what theme you decide to use.
|
18 |
-
|
19 |
-
We at MyThemeShop realise there are already some free shortcode plugins out, but they either only include a very few amount of shortcodes, they are way too complex, not well-coded, not styled to our liking or they weren’t free. We wanted to create something that was 100% GPL so you can use it and abuse it on all of your websites and client projects – and of course that’s very easy to use and minimally styled, so it can fit most sites right out of the box or be easily customized.
|
20 |
-
|
21 |
-
To see a full list of options available with this powerful plugin, try this page: <a href="http://demo.mythemeshop.com/spike/shortcodes-examples/">http://demo.mythemeshop.com/spike/shortcodes-examples/</a>
|
22 |
-
|
23 |
-
= Shortcodes Included =
|
24 |
Buttons, Videos, Alerts, Google Maps, Toggle, Tabs, dividers, Columns And much more! Easily add nice looking elements to your WordPress website without any knowledge of coding!
|
25 |
|
26 |
= Support =
|
@@ -37,57 +37,66 @@ you are still stuck, please feel free to open a new thread, and a member of our
|
|
37 |
|
38 |
Support link:<br>
|
39 |
<a href=“https://community.mythemeshop.com/forum/11-free-plugin-support/”>https://community.mythemeshop.com/forum/11-free-plugin-support/</a><br>
|
40 |
-
<br>
|
41 |
-
|
42 |
-
== Installation ==
|
43 |
-
|
44 |
-
This section describes how to install the plugin and get it working.
|
45 |
-
|
46 |
-
1. Upload the `wp-shortcode` folder to the to the `/wp-content/plugins/` directory
|
47 |
-
2. Activate the plugin through the 'Plugins' menu in WordPress
|
48 |
-
3. You can see '+' button on post editor, using this button, you can add shortcodes in your posts.
|
49 |
-
|
50 |
-
== Frequently Asked Questions ==
|
51 |
-
|
52 |
-
= Shortcodes + button is not working =
|
53 |
-
|
54 |
-
Please disable all plugins and check if shortcode plugin is working properly. Then you can enable all plugins one by one to find out which plugin is conflicting with WP Shortcode plugin.
|
55 |
-
|
56 |
-
== Screenshots ==
|
57 |
-
|
58 |
-
1. Single Shortcode Configuration
|
59 |
-
2. List of all plugins.
|
60 |
-
3. Alerts and Buttons
|
61 |
-
4. Tabs and Toggles
|
62 |
-
5. Videos and Dividers
|
63 |
-
6. Columns Shortcodes
|
64 |
-
7. Google Maps Shortcode
|
65 |
-
|
66 |
-
== Changelog ==
|
67 |
-
|
68 |
-
= 1.4.
|
69 |
-
*
|
70 |
-
|
71 |
-
= 1.4.
|
72 |
-
*
|
73 |
-
|
74 |
-
|
75 |
-
*
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
* Fixed
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
*
|
86 |
-
*
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
* Fixed
|
91 |
-
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
=== WP Shortcode by MyThemeShop ===
|
2 |
+
Contributors: mythemeshop
|
3 |
+
Creator's website link: http://mythemeshop.com/
|
4 |
+
Tags: shortcodes, shortcode, shortcodes list, toggle shortcode, buttons, google map shortcode, youtube shortcode, vimeo shortcode, alert shortcode, notification shortcode, column shortcodes
|
5 |
+
Requires at least: 3.0.1
|
6 |
+
Tested up to: 4.7.2
|
7 |
+
Stable tag: 1.4.4
|
8 |
+
License: GPLv2 or later
|
9 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
+
|
11 |
+
WP Shortcode is a premium WP plugin for free, that provides easy to use over 24 shortcodes. You can easily add buttons, alerts, videos and more.
|
12 |
+
|
13 |
+
== Description ==
|
14 |
+
|
15 |
+
Add sexy-buttons, spoiler warnings, column layouts and much more to WordPress. WP Shortcode makes it happen with a click of a button. Until now, this premium plugin was available to premium members of <a href="http://mythemeshop.com/">MyThemeShop</a>, but now everyone can use this premium plugin.
|
16 |
+
|
17 |
+
Why use WP Shortcode plugin? Tired of using a theme with built-in shortcodes, switching themes and then losing all your awesome styles? WP Shortcode offers over 24 useful shortcodes, so you'll never lose anything when changing your theme. Now you can add buttons, highlights, boxes, toggles, tabs, pricing tables, among other awesomeness, and take them with you no matter what theme you decide to use.
|
18 |
+
|
19 |
+
We at MyThemeShop realise there are already some free shortcode plugins out, but they either only include a very few amount of shortcodes, they are way too complex, not well-coded, not styled to our liking or they weren’t free. We wanted to create something that was 100% GPL so you can use it and abuse it on all of your websites and client projects – and of course that’s very easy to use and minimally styled, so it can fit most sites right out of the box or be easily customized.
|
20 |
+
|
21 |
+
To see a full list of options available with this powerful plugin, try this page: <a href="http://demo.mythemeshop.com/spike/shortcodes-examples/">http://demo.mythemeshop.com/spike/shortcodes-examples/</a>
|
22 |
+
|
23 |
+
= Shortcodes Included =
|
24 |
Buttons, Videos, Alerts, Google Maps, Toggle, Tabs, dividers, Columns And much more! Easily add nice looking elements to your WordPress website without any knowledge of coding!
|
25 |
|
26 |
= Support =
|
37 |
|
38 |
Support link:<br>
|
39 |
<a href=“https://community.mythemeshop.com/forum/11-free-plugin-support/”>https://community.mythemeshop.com/forum/11-free-plugin-support/</a><br>
|
40 |
+
<br>
|
41 |
+
|
42 |
+
== Installation ==
|
43 |
+
|
44 |
+
This section describes how to install the plugin and get it working.
|
45 |
+
|
46 |
+
1. Upload the `wp-shortcode` folder to the to the `/wp-content/plugins/` directory
|
47 |
+
2. Activate the plugin through the 'Plugins' menu in WordPress
|
48 |
+
3. You can see '+' button on post editor, using this button, you can add shortcodes in your posts.
|
49 |
+
|
50 |
+
== Frequently Asked Questions ==
|
51 |
+
|
52 |
+
= Shortcodes + button is not working =
|
53 |
+
|
54 |
+
Please disable all plugins and check if shortcode plugin is working properly. Then you can enable all plugins one by one to find out which plugin is conflicting with WP Shortcode plugin.
|
55 |
+
|
56 |
+
== Screenshots ==
|
57 |
+
|
58 |
+
1. Single Shortcode Configuration
|
59 |
+
2. List of all plugins.
|
60 |
+
3. Alerts and Buttons
|
61 |
+
4. Tabs and Toggles
|
62 |
+
5. Videos and Dividers
|
63 |
+
6. Columns Shortcodes
|
64 |
+
7. Google Maps Shortcode
|
65 |
+
|
66 |
+
== Changelog ==
|
67 |
+
|
68 |
+
= 1.4.4 =
|
69 |
+
* Fixed XSS vulnerability (thanks to https://www.threatpress.com)
|
70 |
+
|
71 |
+
= 1.4.3 =
|
72 |
+
* Added shortcode attribute "rel" to buttons
|
73 |
+
* Updated tabs shortcode to support more characters like emojis!
|
74 |
+
* Fixed toggle shortcode styling bug on smaller screens
|
75 |
+
* Fixed notices when no title is provided in tabs shortcode
|
76 |
+
|
77 |
+
= 1.4.2 =
|
78 |
+
* Changed text domain to 'wp-shortcode'
|
79 |
+
|
80 |
+
= 1.4.1 =
|
81 |
+
* Fixed embed video issue in half column
|
82 |
+
|
83 |
+
= 1.4 =
|
84 |
+
* Complete revamp of notification and button shortcode design.
|
85 |
+
* Removed unnecessary images.
|
86 |
+
* Optimized CSS code.
|
87 |
+
|
88 |
+
= 1.3 =
|
89 |
+
* Added Tooltip shortcode
|
90 |
+
* Fixed tab titles issue
|
91 |
+
* Made embed URLs protocol-relative
|
92 |
+
|
93 |
+
= 1.2 =
|
94 |
+
* Made compatible with (with TinyMCE 3 & 4).
|
95 |
+
* Made translation-ready
|
96 |
+
* Added "centre" position for buttons.
|
97 |
+
|
98 |
+
= 1.1 =
|
99 |
+
* Fixed small issue in button shortcode CSS.
|
100 |
+
|
101 |
+
= 1.0 =
|
102 |
+
* Official plugin release.
|
tinymce/editor_plugin.css
CHANGED
@@ -1,7 +1,26 @@
|
|
1 |
-
#mnmshortcode_tag {
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
#mnmshortcode_panel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#mnmshortcode_tag {
|
2 |
+
width: 200px;
|
3 |
+
}
|
4 |
+
#mnmshortcode_panel {
|
5 |
+
margin-bottom: 8px;
|
6 |
+
}
|
7 |
+
#mnmshortcode_panel table {
|
8 |
+
width: 100%;
|
9 |
+
font-size: 12px;
|
10 |
+
}
|
11 |
+
.mnmshortcode_description {
|
12 |
+
color: #666;
|
13 |
+
font-size: 12px;
|
14 |
+
}
|
15 |
+
.mnmshortcode_att_name {
|
16 |
+
text-transform: capitalize;
|
17 |
+
}
|
18 |
+
#mnmshortcode_panel input, #mnmshortcode_panel select, #mnmshortcode_panel textarea {
|
19 |
+
width: 100%;
|
20 |
+
padding: 4px 4px;
|
21 |
+
font-size: 12px;
|
22 |
+
font-family: 'Open Sans', sans-serif;
|
23 |
+
}
|
24 |
+
#mnmshortcode_panel textarea {
|
25 |
+
height: 120px;
|
26 |
+
}
|
tinymce/editor_plugin.js
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
file : url + '/editor_plugin.php',
|
18 |
inline : 1,
|
19 |
width : 450 + ed.getLang('wpspanel.delta_width', 0),
|
20 |
-
|
21 |
}, {
|
22 |
plugin_url : url, // Plugin absolute URL
|
23 |
some_custom_arg : 'custom arg' // Custom argument
|
@@ -25,16 +25,8 @@
|
|
25 |
});
|
26 |
// Resize function
|
27 |
ed.addCommand( 'mcewpspanel_resize', function( ui, v ) {
|
28 |
-
|
29 |
-
|
30 |
-
var windowID = ed.windowManager.windows[0]._id;
|
31 |
-
var elem = window.top.document.getElementById(windowID+'-body');
|
32 |
-
jQuery(elem).height(v.height + 52);
|
33 |
-
} else {
|
34 |
-
// TinyMCE 3
|
35 |
-
ed.windowManager.params.mce_height = v.height + 52;
|
36 |
-
}
|
37 |
-
|
38 |
} );
|
39 |
// Register example button
|
40 |
ed.addButton('wpspanel', {
|
@@ -64,15 +56,21 @@
|
|
64 |
return null;
|
65 |
},
|
66 |
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
});
|
77 |
|
78 |
// Register plugin
|
17 |
file : url + '/editor_plugin.php',
|
18 |
inline : 1,
|
19 |
width : 450 + ed.getLang('wpspanel.delta_width', 0),
|
20 |
+
height : 200 + ed.getLang('wpspanel.delta_height', 0),
|
21 |
}, {
|
22 |
plugin_url : url, // Plugin absolute URL
|
23 |
some_custom_arg : 'custom arg' // Custom argument
|
25 |
});
|
26 |
// Resize function
|
27 |
ed.addCommand( 'mcewpspanel_resize', function( ui, v ) {
|
28 |
+
//console.log(v);
|
29 |
+
ed.windowManager.params.mce_height = v.height + 52;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
} );
|
31 |
// Register example button
|
32 |
ed.addButton('wpspanel', {
|
56 |
return null;
|
57 |
},
|
58 |
|
59 |
+
/**
|
60 |
+
* Returns information about the plugin as a name/value array.
|
61 |
+
* The current keys are longname, author, authorurl, infourl and version.
|
62 |
+
*
|
63 |
+
* @return {Object} Name/value array containing information about the plugin.
|
64 |
+
*/
|
65 |
+
getInfo : function() {
|
66 |
+
return {
|
67 |
+
longname : 'wpspanel',
|
68 |
+
author : 'Smashing WP Themes',
|
69 |
+
authorurl : 'http://tinymce.moxiecode.com',
|
70 |
+
infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example',
|
71 |
+
version : "1.0"
|
72 |
+
};
|
73 |
+
}
|
74 |
});
|
75 |
|
76 |
// Register plugin
|
tinymce/editor_plugin.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
require_once('mnm_config.php');
|
4 |
// check for rights
|
5 |
if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
|
6 |
-
wp_die(__("You are not allowed to be here", "
|
7 |
global $wpdb;
|
8 |
?>
|
9 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
@@ -15,7 +15,6 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
|
|
15 |
<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
16 |
|
17 |
<script language="javascript" type="text/javascript" src="<?php echo includes_url(); ?>js/jquery/jquery.js"></script>
|
18 |
-
<?php include('shortcodes.php'); ?>
|
19 |
<script language="javascript" type="text/javascript" src="<?php echo plugin_dir_url(__FILE__); ?>tinymce.js"></script>
|
20 |
<base target="_self" />
|
21 |
<link rel="stylesheet" type="text/css" href="<?php echo plugin_dir_url(__FILE__); ?>editor_plugin.css" media="all" />
|
@@ -23,12 +22,13 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
|
|
23 |
<body id="link">
|
24 |
<!-- <form onsubmit="insertLink();return false;" action="#"> -->
|
25 |
<form name="mnm_tabs" action="#" id="mnmshortcode_form">
|
|
|
26 |
<div>
|
27 |
<!-- gallery panel -->
|
28 |
<div id="mnmshortcode_panel" class="panel">
|
29 |
<table border="0" cellpadding="4" cellspacing="0">
|
30 |
<tr>
|
31 |
-
<td><label for="mnmshortcode_tag"><?php _e("Select Shortcode", '
|
32 |
<td><select id="mnmshortcode_tag" name="mnmshortcode_tag">
|
33 |
<option value="0">Select Shortcode</option>
|
34 |
<?php
|
@@ -43,8 +43,8 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
|
|
43 |
$mnm_shortcode_name = str_replace('mts_', '' ,$short_code_value);
|
44 |
$mnm_shortcode_names = str_replace('_', ' ' ,$mnm_shortcode_name);
|
45 |
$mnm_shortcodenames = ucwords($mnm_shortcode_names);
|
46 |
-
|
47 |
-
echo '<option value="' . $mnm_shortcodekey . '" >' . $
|
48 |
echo '</optgroup>';
|
49 |
|
50 |
$i++;
|
@@ -65,11 +65,11 @@ if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
|
|
65 |
|
66 |
<div class="mceActionPanel">
|
67 |
<div style="float: left">
|
68 |
-
<input type="button" id="cancel" name="cancel" value="
|
69 |
</div>
|
70 |
|
71 |
<div style="float: right">
|
72 |
-
<input type="submit" id="insert" name="insert" value="
|
73 |
</div>
|
74 |
</div>
|
75 |
</form>
|
3 |
require_once('mnm_config.php');
|
4 |
// check for rights
|
5 |
if ( !current_user_can('edit_pages') && !current_user_can('edit_posts') )
|
6 |
+
wp_die(__("You are not allowed to be here", "mythemeshop"));
|
7 |
global $wpdb;
|
8 |
?>
|
9 |
<html xmlns="http://www.w3.org/1999/xhtml">
|
15 |
<script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
|
16 |
|
17 |
<script language="javascript" type="text/javascript" src="<?php echo includes_url(); ?>js/jquery/jquery.js"></script>
|
|
|
18 |
<script language="javascript" type="text/javascript" src="<?php echo plugin_dir_url(__FILE__); ?>tinymce.js"></script>
|
19 |
<base target="_self" />
|
20 |
<link rel="stylesheet" type="text/css" href="<?php echo plugin_dir_url(__FILE__); ?>editor_plugin.css" media="all" />
|
22 |
<body id="link">
|
23 |
<!-- <form onsubmit="insertLink();return false;" action="#"> -->
|
24 |
<form name="mnm_tabs" action="#" id="mnmshortcode_form">
|
25 |
+
|
26 |
<div>
|
27 |
<!-- gallery panel -->
|
28 |
<div id="mnmshortcode_panel" class="panel">
|
29 |
<table border="0" cellpadding="4" cellspacing="0">
|
30 |
<tr>
|
31 |
+
<td><label for="mnmshortcode_tag"><?php _e("Select Shortcode", 'mythemeshop'); ?></label></td>
|
32 |
<td><select id="mnmshortcode_tag" name="mnmshortcode_tag">
|
33 |
<option value="0">Select Shortcode</option>
|
34 |
<?php
|
43 |
$mnm_shortcode_name = str_replace('mts_', '' ,$short_code_value);
|
44 |
$mnm_shortcode_names = str_replace('_', ' ' ,$mnm_shortcode_name);
|
45 |
$mnm_shortcodenames = ucwords($mnm_shortcode_names);
|
46 |
+
|
47 |
+
echo '<option value="' . $mnm_shortcodekey . '" >' . $mnm_shortcodenames.'</option>' . "\n";
|
48 |
echo '</optgroup>';
|
49 |
|
50 |
$i++;
|
65 |
|
66 |
<div class="mceActionPanel">
|
67 |
<div style="float: left">
|
68 |
+
<input type="button" id="cancel" name="cancel" value="Cancel" onClick="tinyMCEPopup.close();" />
|
69 |
</div>
|
70 |
|
71 |
<div style="float: right">
|
72 |
+
<input type="submit" id="insert" name="insert" value="Insert" onClick="mnmshortcodesubmit();" />
|
73 |
</div>
|
74 |
</div>
|
75 |
</form>
|
tinymce/langs.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<script type="text/javascript">
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
</script>
|
1 |
<script type="text/javascript">
|
2 |
+
tinyMCE.addI18n({en:{
|
3 |
+
systempanel:{
|
4 |
+
desc : 'System shortcodes'
|
5 |
+
}}});
|
6 |
</script>
|
tinymce/shortcode.png
CHANGED
Binary file
|
tinymce/shortcodes.php
DELETED
@@ -1,362 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$shortcodes = array(
|
3 |
-
"button-brown" => array(
|
4 |
-
"self-closing" => false,
|
5 |
-
"atts" => array(
|
6 |
-
"url" => "#",
|
7 |
-
"target" => "_self",
|
8 |
-
"position" => "left"
|
9 |
-
),
|
10 |
-
"label" => __("Brown Button", "wp-shortcode"),
|
11 |
-
"content" => __("Button text", "wp-shortcode"),
|
12 |
-
"description" => __("Inserts a brown button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
13 |
-
),
|
14 |
-
"button-blue" => array(
|
15 |
-
"self-closing" => false,
|
16 |
-
"atts" => array(
|
17 |
-
"url" => "#",
|
18 |
-
"target" => "_self",
|
19 |
-
"position" => "left"
|
20 |
-
),
|
21 |
-
"label" => __("Blue Button", "wp-shortcode"),
|
22 |
-
"content" => __("Button text", "wp-shortcode") ,
|
23 |
-
"description" => __("Inserts a blue button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
24 |
-
),
|
25 |
-
"button-green" => array(
|
26 |
-
"self-closing" => false,
|
27 |
-
"atts" => array(
|
28 |
-
"url" => "#",
|
29 |
-
"target" => "_self",
|
30 |
-
"position" => "left"
|
31 |
-
),
|
32 |
-
"label" => __("Green Button", "wp-shortcode"),
|
33 |
-
"content" => __("Button text", "wp-shortcode") ,
|
34 |
-
"description" => __("Inserts a green button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
35 |
-
),
|
36 |
-
"button-yellow" => array(
|
37 |
-
"self-closing" => false,
|
38 |
-
"atts" => array(
|
39 |
-
"url" => "#",
|
40 |
-
"target" => "_self",
|
41 |
-
"position" => "left"
|
42 |
-
),
|
43 |
-
"label" => __("Yellow Button", "wp-shortcode"),
|
44 |
-
"content" => __("Button text", "wp-shortcode") ,
|
45 |
-
"description" => __("Inserts a yellow button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
46 |
-
),
|
47 |
-
"button-red" => array(
|
48 |
-
"self-closing" => false,
|
49 |
-
"atts" => array(
|
50 |
-
"url" => "#",
|
51 |
-
"target" => "_self",
|
52 |
-
"position" => "left"
|
53 |
-
),
|
54 |
-
"label" => __("Red Button", "wp-shortcode"),
|
55 |
-
"content" => __("Button text", "wp-shortcode") ,
|
56 |
-
"description" => __("Inserts a red button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
57 |
-
),
|
58 |
-
"button-white" => array(
|
59 |
-
"self-closing" => false,
|
60 |
-
"atts" => array(
|
61 |
-
"url" => "#",
|
62 |
-
"target" => "_self",
|
63 |
-
"position" => "left"
|
64 |
-
),
|
65 |
-
"label" => __("White Button", "wp-shortcode"),
|
66 |
-
"content" => __("Button text", "wp-shortcode") ,
|
67 |
-
"description" => __("Inserts a white button. Set target to <strong>_blank</strong> to open link in a new window.", "wp-shortcode")
|
68 |
-
),
|
69 |
-
"alert-note" => array(
|
70 |
-
"self-closing" => false,
|
71 |
-
"atts" => array(),
|
72 |
-
"label" => __("Alert Note", "wp-shortcode"),
|
73 |
-
"content" => __("Note text", "wp-shortcode"),
|
74 |
-
"description" => __("Display a note.", "wp-shortcode")
|
75 |
-
),
|
76 |
-
"alert-announce" => array(
|
77 |
-
"self-closing" => false,
|
78 |
-
"atts" => array(),
|
79 |
-
"label" => __("Alert Announce", "wp-shortcode"),
|
80 |
-
"content" => __("Announce text", "wp-shortcode"),
|
81 |
-
"description" => __("Display an announcement.", "wp-shortcode")
|
82 |
-
),
|
83 |
-
"alert-success" => array(
|
84 |
-
"self-closing" => false,
|
85 |
-
"atts" => array(),
|
86 |
-
"label" => __("Alert Success", "wp-shortcode"),
|
87 |
-
"content" => __("Success text", "wp-shortcode"),
|
88 |
-
"description" => __("Display a success message.", "wp-shortcode")
|
89 |
-
),
|
90 |
-
"alert-warning" => array(
|
91 |
-
"self-closing" => false,
|
92 |
-
"atts" => array(),
|
93 |
-
"label" => __("Alert Warning", "wp-shortcode"),
|
94 |
-
"content" => __("Warning text", "wp-shortcode"),
|
95 |
-
"description" => __("Display warning or error message.", "wp-shortcode")
|
96 |
-
),
|
97 |
-
"youtube" => array(
|
98 |
-
"self-closing" => true,
|
99 |
-
"atts" => array(
|
100 |
-
"id" => "#",
|
101 |
-
"width" => "600",
|
102 |
-
"height" => "340",
|
103 |
-
"position" => "left"
|
104 |
-
),
|
105 |
-
"label" => __("YouTube Video", "wp-shortcode"),
|
106 |
-
"content" => "",
|
107 |
-
"description" => __("Embed a Youtube Video", "wp-shortcode")
|
108 |
-
),
|
109 |
-
"vimeo" => array(
|
110 |
-
"self-closing" => true,
|
111 |
-
"atts" => array(
|
112 |
-
"id" => "#",
|
113 |
-
"width" => "600",
|
114 |
-
"height" => "340",
|
115 |
-
"position" => "left"
|
116 |
-
),
|
117 |
-
"label" => __("Vimeo Video", "wp-shortcode"),
|
118 |
-
"content" => "",
|
119 |
-
"description" => __("Embed a Vimeo Video.", "wp-shortcode")
|
120 |
-
),
|
121 |
-
"googlemap" => array(
|
122 |
-
"self-closing" => true,
|
123 |
-
"atts" => array(
|
124 |
-
"address" => "Libertyville, Illinois, USA",
|
125 |
-
"width" => "600",
|
126 |
-
"height" => "340",
|
127 |
-
"position" => "left"
|
128 |
-
),
|
129 |
-
"label" => __("Google Map", "wp-shortcode"),
|
130 |
-
"content" => "",
|
131 |
-
"description" => __("Embed a Google Map. Insert address or GPS location.", "wp-shortcode")
|
132 |
-
),
|
133 |
-
"toggle" => array(
|
134 |
-
"self-closing" => false,
|
135 |
-
"atts" => array(
|
136 |
-
"title" => "Toggle Title"
|
137 |
-
),
|
138 |
-
"label" => __("Toggle", "wp-shortcode"),
|
139 |
-
"content" => __("Insert Content Here", "wp-shortcode"),
|
140 |
-
"content_field" => "textarea",
|
141 |
-
"description" => __("Content will be shown after clicking on the toggle title.", "wp-shortcode")
|
142 |
-
),
|
143 |
-
"tabs" => array(
|
144 |
-
"self-closing" => false,
|
145 |
-
"atts" => array(),
|
146 |
-
"label" => __("Tabs", "wp-shortcode"),
|
147 |
-
"content" => __("[tab title="Tab 1 Title"]Insert tab 1 content here[/tab]\n[tab title="Tab 2 Title"]Insert tab 2 content here[/tab]\n[tab title="Tab 3 Title"]Insert tab 3 content here[/tab]", "wp-shortcode"),
|
148 |
-
"content_field" => "textarea",
|
149 |
-
"description" => __("Display content in tabbed form.", "wp-shortcode")
|
150 |
-
),
|
151 |
-
"divider" => array(
|
152 |
-
"self-closing" => true,
|
153 |
-
"atts" => array(),
|
154 |
-
"content" => "Divider",
|
155 |
-
"description" => __("Simple horizontal divider.", "wp-shortcode")
|
156 |
-
),
|
157 |
-
"divider_top" => array(
|
158 |
-
"self-closing" => true,
|
159 |
-
"atts" => array(),
|
160 |
-
"content" => "Divider with link",
|
161 |
-
"description" => __("Divider with an anchor link to top of page.", "wp-shortcode")
|
162 |
-
),
|
163 |
-
"clear" => array(
|
164 |
-
"self-closing" => true,
|
165 |
-
"atts" => array(),
|
166 |
-
"label" => __("Clear", "wp-shortcode"),
|
167 |
-
"content" => "",
|
168 |
-
"description" => __("Clear shortcode can be used to clear an element of its neighbors, no floating elements are allowed on the left or the right side.", "wp-shortcode")
|
169 |
-
),
|
170 |
-
|
171 |
-
// Column Shortcodes
|
172 |
-
|
173 |
-
"one_third" => array(
|
174 |
-
"self-closing" => false,
|
175 |
-
"atts" => array(),
|
176 |
-
"label" => __("One Third", "wp-shortcode"),
|
177 |
-
"content" => __("Column content", "wp-shortcode"),
|
178 |
-
"content_field" => "textarea",
|
179 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
180 |
-
),
|
181 |
-
"one_third_last" => array(
|
182 |
-
"self-closing" => false,
|
183 |
-
"atts" => array(),
|
184 |
-
"label" => __("One Third (Last)", "wp-shortcode"),
|
185 |
-
"content" => __("Column content", "wp-shortcode"),
|
186 |
-
"content_field" => "textarea",
|
187 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
188 |
-
),
|
189 |
-
"two_third" => array(
|
190 |
-
"self-closing" => false,
|
191 |
-
"atts" => array(),
|
192 |
-
"label" => __("Two Third", "wp-shortcode"),
|
193 |
-
"content" => __("Column content", "wp-shortcode"),
|
194 |
-
"content_field" => "textarea",
|
195 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
196 |
-
),
|
197 |
-
"two_third_last" => array(
|
198 |
-
"self-closing" => false,
|
199 |
-
"atts" => array(),
|
200 |
-
"label" => __("Two Third (Last)", "wp-shortcode"),
|
201 |
-
"content" => __("Column content", "wp-shortcode"),
|
202 |
-
"content_field" => "textarea",
|
203 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
204 |
-
),
|
205 |
-
"one_half" => array(
|
206 |
-
"self-closing" => false,
|
207 |
-
"atts" => array(),
|
208 |
-
"label" => __("One Half", "wp-shortcode"),
|
209 |
-
"content" => __("Column content", "wp-shortcode"),
|
210 |
-
"content_field" => "textarea",
|
211 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
212 |
-
),
|
213 |
-
"one_half_last" => array(
|
214 |
-
"self-closing" => false,
|
215 |
-
"atts" => array(),
|
216 |
-
"label" => __("One Half (Last)", "wp-shortcode"),
|
217 |
-
"content" => __("Column content", "wp-shortcode"),
|
218 |
-
"content_field" => "textarea",
|
219 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
220 |
-
),
|
221 |
-
"one_fourth" => array(
|
222 |
-
"self-closing" => false,
|
223 |
-
"atts" => array(),
|
224 |
-
"label" => __("One Fourth", "wp-shortcode"),
|
225 |
-
"content" => __("Column content", "wp-shortcode"),
|
226 |
-
"content_field" => "textarea",
|
227 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
228 |
-
),
|
229 |
-
"one_fourth_last" => array(
|
230 |
-
"self-closing" => false,
|
231 |
-
"atts" => array(),
|
232 |
-
"label" => __("One Fourth (Last)", "wp-shortcode"),
|
233 |
-
"content" => __("Column content", "wp-shortcode"),
|
234 |
-
"content_field" => "textarea",
|
235 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
236 |
-
),
|
237 |
-
"three_fourth" => array(
|
238 |
-
"self-closing" => false,
|
239 |
-
"atts" => array(),
|
240 |
-
"label" => __("Three Fourth", "wp-shortcode"),
|
241 |
-
"content" => __("Column content", "wp-shortcode"),
|
242 |
-
"content_field" => "textarea",
|
243 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
244 |
-
),
|
245 |
-
"three_fourth_last" => array(
|
246 |
-
"self-closing" => false,
|
247 |
-
"atts" => array(),
|
248 |
-
"label" => __("Three Fourth (Last)", "wp-shortcode"),
|
249 |
-
"content" => __("Column content", "wp-shortcode"),
|
250 |
-
"content_field" => "textarea",
|
251 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
252 |
-
),
|
253 |
-
"one_fifth" => array(
|
254 |
-
"self-closing" => false,
|
255 |
-
"atts" => array(),
|
256 |
-
"label" => __("One Fifth", "wp-shortcode"),
|
257 |
-
"content" => __("Column content", "wp-shortcode"),
|
258 |
-
"content_field" => "textarea",
|
259 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
260 |
-
),
|
261 |
-
"one_fifth_last" => array(
|
262 |
-
"self-closing" => false,
|
263 |
-
"atts" => array(),
|
264 |
-
"label" => __("One Fifth (Last)", "wp-shortcode"),
|
265 |
-
"content" => __("Column content", "wp-shortcode"),
|
266 |
-
"content_field" => "textarea",
|
267 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
268 |
-
),
|
269 |
-
"two_fifth" => array(
|
270 |
-
"self-closing" => false,
|
271 |
-
"atts" => array(),
|
272 |
-
"label" => __("Two Fifth", "wp-shortcode"),
|
273 |
-
"content" => __("Column content", "wp-shortcode"),
|
274 |
-
"content_field" => "textarea",
|
275 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
276 |
-
),
|
277 |
-
"two_fifth_last" => array(
|
278 |
-
"self-closing" => false,
|
279 |
-
"atts" => array(),
|
280 |
-
"label" => __("Two Fifth (Last)", "wp-shortcode"),
|
281 |
-
"content" => __("Column content", "wp-shortcode"),
|
282 |
-
"content_field" => "textarea",
|
283 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
284 |
-
),
|
285 |
-
"three_fifth" => array(
|
286 |
-
"self-closing" => false,
|
287 |
-
"atts" => array(),
|
288 |
-
"label" => __("Three Fifth", "wp-shortcode"),
|
289 |
-
"content" => __("Column content", "wp-shortcode"),
|
290 |
-
"content_field" => "textarea",
|
291 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
292 |
-
),
|
293 |
-
"three_fifth_last" => array(
|
294 |
-
"self-closing" => false,
|
295 |
-
"atts" => array(),
|
296 |
-
"label" => __("Three Fifth (Last)", "wp-shortcode"),
|
297 |
-
"content" => __("Column content", "wp-shortcode"),
|
298 |
-
"content_field" => "textarea",
|
299 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
300 |
-
),
|
301 |
-
"four_fifth" => array(
|
302 |
-
"self-closing" => false,
|
303 |
-
"atts" => array(),
|
304 |
-
"label" => __("Four Fifth", "wp-shortcode"),
|
305 |
-
"content" => __("Column content", "wp-shortcode"),
|
306 |
-
"content_field" => "textarea",
|
307 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
308 |
-
),
|
309 |
-
"four_fifth_last" => array(
|
310 |
-
"self-closing" => false,
|
311 |
-
"atts" => array(),
|
312 |
-
"label" => __("Four Fifth (Last)", "wp-shortcode"),
|
313 |
-
"content" => __("Column content", "wp-shortcode"),
|
314 |
-
"content_field" => "textarea",
|
315 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
316 |
-
),
|
317 |
-
"one_sixth" => array(
|
318 |
-
"self-closing" => false,
|
319 |
-
"atts" => array(),
|
320 |
-
"label" => __("One Sixth", "wp-shortcode"),
|
321 |
-
"content" => __("Column content", "wp-shortcode"),
|
322 |
-
"content_field" => "textarea",
|
323 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
324 |
-
),
|
325 |
-
"one_sixth_last" => array(
|
326 |
-
"self-closing" => false,
|
327 |
-
"atts" => array(),
|
328 |
-
"label" => __("One Sixth (Last)", "wp-shortcode"),
|
329 |
-
"content" => __("Column content", "wp-shortcode"),
|
330 |
-
"content_field" => "textarea",
|
331 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
332 |
-
),
|
333 |
-
"five_sixth" => array(
|
334 |
-
"self-closing" => false,
|
335 |
-
"atts" => array(),
|
336 |
-
"label" => __("Five Sixth", "wp-shortcode"),
|
337 |
-
"content" => __("Column content", "wp-shortcode"),
|
338 |
-
"content_field" => "textarea",
|
339 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
340 |
-
),
|
341 |
-
"five_sixth_last" => array(
|
342 |
-
"self-closing" => false,
|
343 |
-
"atts" => array(),
|
344 |
-
"label" => __("Five Sixth (Last)", "wp-shortcode"),
|
345 |
-
"content" => __("Column content", "wp-shortcode"),
|
346 |
-
"content_field" => "textarea",
|
347 |
-
"description" => __("Use column shortcodes in conjunction with their <em>(Last)</em> version, eg. <br /><strong>One Third + One Third + One Third (Last)</strong>", "wp-shortcode")
|
348 |
-
),
|
349 |
-
"tooltip" => array(
|
350 |
-
"self-closing" => false,
|
351 |
-
"atts" => array(
|
352 |
-
"content" => "Tooltip content",
|
353 |
-
"gravity" => "n",
|
354 |
-
"fade" => "0"
|
355 |
-
),
|
356 |
-
"label" => __("Tooltip", "wp-shortcode"),
|
357 |
-
"content" => __("Trigger text", "wp-shortcode"),
|
358 |
-
"description" => __("Add a tooltip that appears on hover. Possible values for direction(Cardinal) of bubble: nw | n | ne | w | e | sw | s | se", "wp-shortcode")
|
359 |
-
)
|
360 |
-
);
|
361 |
-
echo "<script type=\"text/javascript\">var shortcodes = ".json_encode($shortcodes).";</script>";
|
362 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tinymce/tinymce.js
CHANGED
@@ -1,3 +1,314 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
function mnmshortcodesubmit() {
|
2 |
var tagtext;
|
3 |
var mnm_shortcodeid = document.getElementById('mnmshortcode_tag').value;
|
@@ -20,13 +331,7 @@ function mnmshortcodesubmit() {
|
|
20 |
}
|
21 |
|
22 |
if(window.tinyMCE) {
|
23 |
-
|
24 |
-
// tinyMCE 4
|
25 |
-
tinyMCEPopup.editor.insertContent(tagtext);
|
26 |
-
} else {
|
27 |
-
// tinyMCE 3
|
28 |
-
window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
|
29 |
-
}
|
30 |
tinyMCEPopup.editor.execCommand('mceRepaint');
|
31 |
tinyMCEPopup.close();
|
32 |
}
|
1 |
+
var shortcodes = {
|
2 |
+
"button-brown" : {
|
3 |
+
"self-closing" : false, // for shortcodes that don't need [/closing] tag
|
4 |
+
"atts" : {
|
5 |
+
"url" : "#",
|
6 |
+
"target" : "_self",
|
7 |
+
"position" : "left"
|
8 |
+
},
|
9 |
+
"content" : "Button text" ,
|
10 |
+
"description" : "Inserts a brown button. Set target to <strong>_blank</strong> to open link in a new window."
|
11 |
+
},
|
12 |
+
"button-blue" : {
|
13 |
+
"self-closing" : false,
|
14 |
+
"atts" : {
|
15 |
+
"url" : "#",
|
16 |
+
"target" : "_self",
|
17 |
+
"position" : "left"
|
18 |
+
},
|
19 |
+
"content" : "Button text" ,
|
20 |
+
"description" : "Inserts a blue button. Set target to <strong>_blank</strong> to open link in a new window."
|
21 |
+
},
|
22 |
+
"button-green" : {
|
23 |
+
"self-closing" : false,
|
24 |
+
"atts" : {
|
25 |
+
"url" : "#",
|
26 |
+
"target" : "_self",
|
27 |
+
"position" : "left"
|
28 |
+
},
|
29 |
+
"content" : "Button text" ,
|
30 |
+
"description" : "Inserts a green button. Set target to <strong>_blank</strong> to open link in a new window."
|
31 |
+
},
|
32 |
+
"button-yellow" : {
|
33 |
+
"self-closing" : false,
|
34 |
+
"atts" : {
|
35 |
+
"url" : "#",
|
36 |
+
"target" : "_self",
|
37 |
+
"position" : "left"
|
38 |
+
},
|
39 |
+
"content" : "Button text" ,
|
40 |
+
"description" : "Inserts a yellow button. Set target to <strong>_blank</strong> to open link in a new window."
|
41 |
+
},
|
42 |
+
"button-red" : {
|
43 |
+
"self-closing" : false,
|
44 |
+
"atts" : {
|
45 |
+
"url" : "#",
|
46 |
+
"target" : "_self",
|
47 |
+
"position" : "left"
|
48 |
+
},
|
49 |
+
"content" : "Button text" ,
|
50 |
+
"description" : "Inserts a red button. Set target to <strong>_blank</strong> to open link in a new window."
|
51 |
+
},
|
52 |
+
"button-white" : {
|
53 |
+
"self-closing" : false,
|
54 |
+
"atts" : {
|
55 |
+
"url" : "#",
|
56 |
+
"target" : "_self",
|
57 |
+
"position" : "left"
|
58 |
+
},
|
59 |
+
"content" : "Button text" ,
|
60 |
+
"description" : "Inserts a white button. Set target to <strong>_blank</strong> to open link in a new window."
|
61 |
+
},
|
62 |
+
"alert-note" : {
|
63 |
+
"self-closing" : false,
|
64 |
+
"atts" : {},
|
65 |
+
"content" : "Note text",
|
66 |
+
"description" : "Display a note."
|
67 |
+
},
|
68 |
+
"alert-announce" : {
|
69 |
+
"self-closing" : false,
|
70 |
+
"atts" : {},
|
71 |
+
"content" : "Announce text",
|
72 |
+
"description" : "Display an announcement."
|
73 |
+
},
|
74 |
+
"alert-success" : {
|
75 |
+
"self-closing" : false,
|
76 |
+
"atts" : {},
|
77 |
+
"content" : "Success text",
|
78 |
+
"description" : "Display a success message."
|
79 |
+
},
|
80 |
+
"alert-warning" : {
|
81 |
+
"self-closing" : false,
|
82 |
+
"atts" : {},
|
83 |
+
"content" : "Warning text",
|
84 |
+
"description" : "Display warning or error message."
|
85 |
+
},
|
86 |
+
"youtube" : {
|
87 |
+
"self-closing" : true,
|
88 |
+
"atts" : {
|
89 |
+
"id" : "#",
|
90 |
+
"width" : "600",
|
91 |
+
"height" : "340",
|
92 |
+
"position" : "left"
|
93 |
+
},
|
94 |
+
"content" : "",
|
95 |
+
"description" : "Embed a Youtube Video"
|
96 |
+
},
|
97 |
+
"vimeo" : {
|
98 |
+
"self-closing" : true,
|
99 |
+
"atts" : {
|
100 |
+
"id" : "#",
|
101 |
+
"width" : "600",
|
102 |
+
"height" : "340",
|
103 |
+
"position" : "left"
|
104 |
+
},
|
105 |
+
"content" : "",
|
106 |
+
"description" : "Embed a Vimeo Video."
|
107 |
+
},
|
108 |
+
"googlemap" : {
|
109 |
+
"self-closing" : true,
|
110 |
+
"atts" : {
|
111 |
+
"address" : "Libertyville, Illinois, USA",
|
112 |
+
"width" : "600",
|
113 |
+
"height" : "340",
|
114 |
+
"position" : "left"
|
115 |
+
},
|
116 |
+
"content" : "",
|
117 |
+
"description" : "Embed a Google Map. Insert address or GPS location."
|
118 |
+
},
|
119 |
+
"toggle" : {
|
120 |
+
"self-closing" : false,
|
121 |
+
"atts" : {
|
122 |
+
"title" : "Toggle Title"
|
123 |
+
},
|
124 |
+
"content" : "Insert Content Here",
|
125 |
+
"content_field" : "textarea",
|
126 |
+
"description" : "Content will be shown after clicking on the toggle title."
|
127 |
+
},
|
128 |
+
"tabs" : {
|
129 |
+
"self-closing" : false,
|
130 |
+
"atts" : {},
|
131 |
+
"content" : "[tab title="Tab 1 Title"]Insert tab 1 content here[/tab]\n[tab title="Tab 2 Title"]Insert tab 2 content here[/tab]\n[tab title="Tab 3 Title"]Insert tab 3 content here[/tab]",
|
132 |
+
"content_field" : "textarea",
|
133 |
+
"description" : "Display content in tabbed form."
|
134 |
+
},
|
135 |
+
"divider" : {
|
136 |
+
"self-closing" : true,
|
137 |
+
"atts" : {},
|
138 |
+
"content" : "",
|
139 |
+
"description" : "Simple horizontal divider."
|
140 |
+
},
|
141 |
+
"divider_top" : {
|
142 |
+
"self-closing" : true,
|
143 |
+
"atts" : {},
|
144 |
+
"content" : "",
|
145 |
+
"description" : "Divider with an anchor link to top of page."
|
146 |
+
},
|
147 |
+
"clear" : {
|
148 |
+
"self-closing" : true,
|
149 |
+
"atts" : {},
|
150 |
+
"content" : "",
|
151 |
+
"description" : "Clear shortcode can be used to clear an element of its neighbors, no floating elements are allowed on the left or the right side."
|
152 |
+
},
|
153 |
+
|
154 |
+
// Column Shortcodes
|
155 |
+
|
156 |
+
"one_third" : {
|
157 |
+
"self-closing" : false,
|
158 |
+
"atts" : {},
|
159 |
+
"content" : "Column content",
|
160 |
+
"content_field" : "textarea",
|
161 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
162 |
+
},
|
163 |
+
"one_third_last" : {
|
164 |
+
"self-closing" : false,
|
165 |
+
"atts" : {},
|
166 |
+
"content" : "Column content",
|
167 |
+
"content_field" : "textarea",
|
168 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
169 |
+
},
|
170 |
+
"two_third" : {
|
171 |
+
"self-closing" : false,
|
172 |
+
"atts" : {},
|
173 |
+
"content" : "Column content",
|
174 |
+
"content_field" : "textarea",
|
175 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
176 |
+
},
|
177 |
+
"two_third_last" : {
|
178 |
+
"self-closing" : false,
|
179 |
+
"atts" : {},
|
180 |
+
"content" : "Column content",
|
181 |
+
"content_field" : "textarea",
|
182 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
183 |
+
},
|
184 |
+
"one_half" : {
|
185 |
+
"self-closing" : false,
|
186 |
+
"atts" : {},
|
187 |
+
"content" : "Column content",
|
188 |
+
"content_field" : "textarea",
|
189 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
190 |
+
},
|
191 |
+
"one_half_last" : {
|
192 |
+
"self-closing" : false,
|
193 |
+
"atts" : {},
|
194 |
+
"content" : "Column content",
|
195 |
+
"content_field" : "textarea",
|
196 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
197 |
+
},
|
198 |
+
"one_fourth" : {
|
199 |
+
"self-closing" : false,
|
200 |
+
"atts" : {},
|
201 |
+
"content" : "Column content",
|
202 |
+
"content_field" : "textarea",
|
203 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
204 |
+
},
|
205 |
+
"one_fourth_last" : {
|
206 |
+
"self-closing" : false,
|
207 |
+
"atts" : {},
|
208 |
+
"content" : "Column content",
|
209 |
+
"content_field" : "textarea",
|
210 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
211 |
+
},
|
212 |
+
"three_fourth" : {
|
213 |
+
"self-closing" : false,
|
214 |
+
"atts" : {},
|
215 |
+
"content" : "Column content",
|
216 |
+
"content_field" : "textarea",
|
217 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
218 |
+
},
|
219 |
+
"three_fourth_last" : {
|
220 |
+
"self-closing" : false,
|
221 |
+
"atts" : {},
|
222 |
+
"content" : "Column content",
|
223 |
+
"content_field" : "textarea",
|
224 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
225 |
+
},
|
226 |
+
"one_fifth" : {
|
227 |
+
"self-closing" : false,
|
228 |
+
"atts" : {},
|
229 |
+
"content" : "Column content",
|
230 |
+
"content_field" : "textarea",
|
231 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
232 |
+
},
|
233 |
+
"one_fifth_last" : {
|
234 |
+
"self-closing" : false,
|
235 |
+
"atts" : {},
|
236 |
+
"content" : "Column content",
|
237 |
+
"content_field" : "textarea",
|
238 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
239 |
+
},
|
240 |
+
"two_fifth" : {
|
241 |
+
"self-closing" : false,
|
242 |
+
"atts" : {},
|
243 |
+
"content" : "Column content",
|
244 |
+
"content_field" : "textarea",
|
245 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
246 |
+
},
|
247 |
+
"two_fifth_last" : {
|
248 |
+
"self-closing" : false,
|
249 |
+
"atts" : {},
|
250 |
+
"content" : "Column content",
|
251 |
+
"content_field" : "textarea",
|
252 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
253 |
+
},
|
254 |
+
"three_fifth" : {
|
255 |
+
"self-closing" : false,
|
256 |
+
"atts" : {},
|
257 |
+
"content" : "Column content",
|
258 |
+
"content_field" : "textarea",
|
259 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
260 |
+
},
|
261 |
+
"three_fifth_last" : {
|
262 |
+
"self-closing" : false,
|
263 |
+
"atts" : {},
|
264 |
+
"content" : "Column content",
|
265 |
+
"content_field" : "textarea",
|
266 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
267 |
+
},
|
268 |
+
"four_fifth" : {
|
269 |
+
"self-closing" : false,
|
270 |
+
"atts" : {},
|
271 |
+
"content" : "Column content",
|
272 |
+
"content_field" : "textarea",
|
273 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
274 |
+
},
|
275 |
+
"four_fifth_last" : {
|
276 |
+
"self-closing" : false,
|
277 |
+
"atts" : {},
|
278 |
+
"content" : "Column content",
|
279 |
+
"content_field" : "textarea",
|
280 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
281 |
+
},
|
282 |
+
"one_sixth" : {
|
283 |
+
"self-closing" : false,
|
284 |
+
"atts" : {},
|
285 |
+
"content" : "Column content",
|
286 |
+
"content_field" : "textarea",
|
287 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
288 |
+
},
|
289 |
+
"one_sixth_last" : {
|
290 |
+
"self-closing" : false,
|
291 |
+
"atts" : {},
|
292 |
+
"content" : "Column content",
|
293 |
+
"content_field" : "textarea",
|
294 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
295 |
+
},
|
296 |
+
"five_sixth" : {
|
297 |
+
"self-closing" : false,
|
298 |
+
"atts" : {},
|
299 |
+
"content" : "Column content",
|
300 |
+
"content_field" : "textarea",
|
301 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
302 |
+
},
|
303 |
+
"five_sixth_last" : {
|
304 |
+
"self-closing" : false,
|
305 |
+
"atts" : {},
|
306 |
+
"content" : "Column content",
|
307 |
+
"content_field" : "textarea",
|
308 |
+
"description" : "Use column shortcodes in conjunction with their <em>Last</em> version, eg. <br /><strong>One Third + One Third + One Third Last</strong>"
|
309 |
+
},
|
310 |
+
};
|
311 |
+
|
312 |
function mnmshortcodesubmit() {
|
313 |
var tagtext;
|
314 |
var mnm_shortcodeid = document.getElementById('mnmshortcode_tag').value;
|
331 |
}
|
332 |
|
333 |
if(window.tinyMCE) {
|
334 |
+
window.tinyMCE.execInstanceCommand('content', 'mceInsertContent', false, tagtext);
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
tinyMCEPopup.editor.execCommand('mceRepaint');
|
336 |
tinyMCEPopup.close();
|
337 |
}
|
wp-shortcode.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Shortcode by MyThemeShop
|
|
4 |
Plugin URI: http://mythemeshop.com/
|
5 |
Description: With the vast array of shortcodes, you can quickly and easily build content for your posts and pages and turbocharge your blogging experience.
|
6 |
Author: MyThemeShop
|
7 |
-
Version: 1.4.
|
8 |
Author URI: http://mythemeshop.com/
|
9 |
*/
|
10 |
|
@@ -93,9 +93,10 @@ function mts_button_brown( $atts, $content = null ) {
|
|
93 |
extract(shortcode_atts(array(
|
94 |
'url' => '#',
|
95 |
'target' => '_self',
|
96 |
-
'position' => 'left'
|
|
|
97 |
), $atts));
|
98 |
-
$out = "<a href=\""
|
99 |
if ($position == 'center') {
|
100 |
$out = '<div class="button-center">'.$out.'</div>';
|
101 |
}
|
@@ -106,9 +107,10 @@ function mts_button_blue( $atts, $content = null ) {
|
|
106 |
extract(shortcode_atts(array(
|
107 |
'url' => '#',
|
108 |
'target' => '_self',
|
109 |
-
'position' => 'left'
|
|
|
110 |
), $atts));
|
111 |
-
$out = "<a href=\""
|
112 |
if ($position == 'center') {
|
113 |
$out = '<div class="button-center">'.$out.'</div>';
|
114 |
}
|
@@ -119,9 +121,10 @@ function mts_button_green( $atts, $content = null ) {
|
|
119 |
extract(shortcode_atts(array(
|
120 |
'url' => '#',
|
121 |
'target' => '_self',
|
122 |
-
'position' => 'left'
|
|
|
123 |
), $atts));
|
124 |
-
$out = "<a href=\""
|
125 |
if ($position == 'center') {
|
126 |
$out = '<div class="button-center">'.$out.'</div>';
|
127 |
}
|
@@ -132,9 +135,10 @@ function mts_button_red( $atts, $content = null ) {
|
|
132 |
extract(shortcode_atts(array(
|
133 |
'url' => '#',
|
134 |
'target' => '_self',
|
135 |
-
'position' => 'left'
|
|
|
136 |
), $atts));
|
137 |
-
$out = "<a href=\""
|
138 |
if ($position == 'center') {
|
139 |
$out = '<div class="button-center">'.$out.'</div>';
|
140 |
}
|
@@ -145,9 +149,10 @@ function mts_button_white( $atts, $content = null ) {
|
|
145 |
extract(shortcode_atts(array(
|
146 |
'url' => '#',
|
147 |
'target' => '_self',
|
148 |
-
'position' => 'left'
|
|
|
149 |
), $atts));
|
150 |
-
$out = "<a href=\""
|
151 |
if ($position == 'center') {
|
152 |
$out = '<div class="button-center">'.$out.'</div>';
|
153 |
}
|
@@ -158,9 +163,10 @@ function mts_button_yellow( $atts, $content = null ) {
|
|
158 |
extract(shortcode_atts(array(
|
159 |
'url' => '#',
|
160 |
'target' => '_self',
|
161 |
-
'position' => 'left'
|
|
|
162 |
), $atts));
|
163 |
-
$out = "<a href=\""
|
164 |
if ($position == 'center') {
|
165 |
$out = '<div class="button-center">'.$out.'</div>';
|
166 |
}
|
@@ -305,7 +311,7 @@ function mts_youtube_video( $atts, $content = null ) {
|
|
305 |
'height' => '340',
|
306 |
'position' => 'left'
|
307 |
), $atts));
|
308 |
-
$out = "<div class=\"youtube-video "
|
309 |
return $out;
|
310 |
}
|
311 |
|
@@ -316,7 +322,7 @@ function mts_vimeo_video( $atts, $content = null ) {
|
|
316 |
'height' => '340',
|
317 |
'position' => 'left'
|
318 |
), $atts));
|
319 |
-
$out = "<div class=\"vimeo-video "
|
320 |
return $out;
|
321 |
}
|
322 |
|
@@ -332,9 +338,9 @@ function mts_googleMaps($atts, $content = null) {
|
|
332 |
'position' => 'left'
|
333 |
), $atts));
|
334 |
if (!empty($src)) {
|
335 |
-
$out = "<div class=\"googlemaps "
|
336 |
} else {
|
337 |
-
$out = "<div class=\"googlemaps "
|
338 |
}
|
339 |
return $out;
|
340 |
}
|
@@ -348,8 +354,11 @@ function mts_tabs( $atts, $content = null ) {
|
|
348 |
return do_shortcode($content);
|
349 |
} else {
|
350 |
for($i = 0; $i < count($matches[0]); $i++) {
|
351 |
-
$matches[3][$i] =
|
352 |
-
|
|
|
|
|
|
|
353 |
}
|
354 |
$tabnav = '<ul class="wps_tabs">';
|
355 |
|
@@ -383,7 +392,7 @@ function mts_toggle( $atts, $content = null ) {
|
|
383 |
'title' => __('Toggle Title', 'wp-shortcode')
|
384 |
), $atts));
|
385 |
|
386 |
-
return '<div class="toggle clearfix wp_shortcodes_toggle"><div class="wps_togglet"><span>' . $title . '</span></div><div class="togglec clearfix">' . do_shortcode(trim($content)) . '</div></div><div class="clear"></div>';
|
387 |
}
|
388 |
|
389 |
/*-----------------------------------------------------------------------------------*/
|
@@ -417,4 +426,4 @@ function mts_tooltip( $atts, $content ) {
|
|
417 |
), $atts);
|
418 |
return '<span class="wp_shortcodes_tooltip" title="'.esc_attr( $atts['content'] ).'" data-gravity="'.esc_attr( $atts['gravity'] ).'" data-fade="'.esc_attr( $atts['fade'] ).'">'.$content.'</span>';
|
419 |
}
|
420 |
-
?>
|
4 |
Plugin URI: http://mythemeshop.com/
|
5 |
Description: With the vast array of shortcodes, you can quickly and easily build content for your posts and pages and turbocharge your blogging experience.
|
6 |
Author: MyThemeShop
|
7 |
+
Version: 1.4.4
|
8 |
Author URI: http://mythemeshop.com/
|
9 |
*/
|
10 |
|
93 |
extract(shortcode_atts(array(
|
94 |
'url' => '#',
|
95 |
'target' => '_self',
|
96 |
+
'position' => 'left',
|
97 |
+
'rel' => '',
|
98 |
), $atts));
|
99 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_brown " .santize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
100 |
if ($position == 'center') {
|
101 |
$out = '<div class="button-center">'.$out.'</div>';
|
102 |
}
|
107 |
extract(shortcode_atts(array(
|
108 |
'url' => '#',
|
109 |
'target' => '_self',
|
110 |
+
'position' => 'left',
|
111 |
+
'rel' => '',
|
112 |
), $atts));
|
113 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_blue " .santize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
114 |
if ($position == 'center') {
|
115 |
$out = '<div class="button-center">'.$out.'</div>';
|
116 |
}
|
121 |
extract(shortcode_atts(array(
|
122 |
'url' => '#',
|
123 |
'target' => '_self',
|
124 |
+
'position' => 'left',
|
125 |
+
'rel' => '',
|
126 |
), $atts));
|
127 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_green " .santize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
128 |
if ($position == 'center') {
|
129 |
$out = '<div class="button-center">'.$out.'</div>';
|
130 |
}
|
135 |
extract(shortcode_atts(array(
|
136 |
'url' => '#',
|
137 |
'target' => '_self',
|
138 |
+
'position' => 'left',
|
139 |
+
'rel' => '',
|
140 |
), $atts));
|
141 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_red " .santize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
142 |
if ($position == 'center') {
|
143 |
$out = '<div class="button-center">'.$out.'</div>';
|
144 |
}
|
149 |
extract(shortcode_atts(array(
|
150 |
'url' => '#',
|
151 |
'target' => '_self',
|
152 |
+
'position' => 'left',
|
153 |
+
'rel' => '',
|
154 |
), $atts));
|
155 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_white " .santize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
156 |
if ($position == 'center') {
|
157 |
$out = '<div class="button-center">'.$out.'</div>';
|
158 |
}
|
163 |
extract(shortcode_atts(array(
|
164 |
'url' => '#',
|
165 |
'target' => '_self',
|
166 |
+
'position' => 'left',
|
167 |
+
'rel' => '',
|
168 |
), $atts));
|
169 |
+
$out = "<a href=\"" . esc_url( $url ) . "\" target=\"" . esc_attr( $target ) . "\" class=\"buttons btn_yellow " .santize_html_class( $position ). "\"" .($rel? " rel=\"" . esc_attr( $rel ) . "\"" : "")."><span class=\"left\">".do_shortcode($content)."</span></a>";
|
170 |
if ($position == 'center') {
|
171 |
$out = '<div class="button-center">'.$out.'</div>';
|
172 |
}
|
311 |
'height' => '340',
|
312 |
'position' => 'left'
|
313 |
), $atts));
|
314 |
+
$out = "<div class=\"youtube-video " .santize_html_class( $position ) . "\"><iframe width=\"" .absint( $width ) . "\" height=\"" .absint( $height ) ."\" src=\"//www.youtube.com/embed/" . esc_attr( $id ) . "?rel=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
|
315 |
return $out;
|
316 |
}
|
317 |
|
322 |
'height' => '340',
|
323 |
'position' => 'left'
|
324 |
), $atts));
|
325 |
+
$out = "<div class=\"vimeo-video " . santize_html_class( $position ) . "\"><iframe width=\"" .absint( $width ) . "\" height=\"" .absint( $height ) ."\" src=\"//player.vimeo.com/video/" . esc_attr( $id ) . "?title=0&byline=0&portrait=0\" frameborder=\"0\" allowfullscreen></iframe></div>";
|
326 |
return $out;
|
327 |
}
|
328 |
|
338 |
'position' => 'left'
|
339 |
), $atts));
|
340 |
if (!empty($src)) {
|
341 |
+
$out = "<div class=\"googlemaps " .santize_html_class( $position ) . "\"><iframe width=\"".absint( $width )."\" height=\"".absint( $height )."\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"".esc_url( $src )."&output=embed\"></iframe></div>";
|
342 |
} else {
|
343 |
+
$out = "<div class=\"googlemaps " .santize_html_class( $position ) . "\"><iframe width=\"".absint( $width )."\" height=\"".absint( $height )."\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\" src=\"//maps.google.com/maps?q=".urlencode( $address )."&output=embed\"></iframe></div>";
|
344 |
}
|
345 |
return $out;
|
346 |
}
|
354 |
return do_shortcode($content);
|
355 |
} else {
|
356 |
for($i = 0; $i < count($matches[0]); $i++) {
|
357 |
+
$matches[3][$i] = shortcode_atts(
|
358 |
+
array('title' => __('Untitled', 'wp-shortcode')),
|
359 |
+
shortcode_parse_atts($matches[3][$i])
|
360 |
+
);
|
361 |
+
$tabid[$i] = 'tab-'.$i.'-'.str_replace('%','',strtolower(sanitize_title($matches[3][$i]['title'])));
|
362 |
}
|
363 |
$tabnav = '<ul class="wps_tabs">';
|
364 |
|
392 |
'title' => __('Toggle Title', 'wp-shortcode')
|
393 |
), $atts));
|
394 |
|
395 |
+
return '<div class="toggle clearfix wp_shortcodes_toggle"><div class="wps_togglet"><span>' . wp_kses_post( $title ) . '</span></div><div class="togglec clearfix">' . do_shortcode(trim($content)) . '</div></div><div class="clear"></div>';
|
396 |
}
|
397 |
|
398 |
/*-----------------------------------------------------------------------------------*/
|
426 |
), $atts);
|
427 |
return '<span class="wp_shortcodes_tooltip" title="'.esc_attr( $atts['content'] ).'" data-gravity="'.esc_attr( $atts['gravity'] ).'" data-fade="'.esc_attr( $atts['fade'] ).'">'.$content.'</span>';
|
428 |
}
|
429 |
+
?>
|