Kadence Themes Toolkit - Version 1.6

Version Description

  • Updates for wordpress 3.9
  • Add Youtube and Vimeo Buttons
  • Add Even/Odd for accordion.
Download this release

Release Info

Developer britner
Plugin Icon wp plugin Kadence Themes Toolkit
Version 1.6
Comparing to
See all releases

Code changes from version 1.5 to 1.6

readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: britner
3
  Tags:
4
  Requires at least: 3.2
5
- Tested up to: 3.8
6
- Stable tag: 1.5
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -22,6 +22,11 @@ Install the plugin into the `/wp-content/plugins/` folder, and activate it.
22
 
23
  == Changelog ==
24
 
 
 
 
 
 
25
  = 1.5 =
26
  * Update for virtue 2.0
27
 
2
  Contributors: britner
3
  Tags:
4
  Requires at least: 3.2
5
+ Tested up to: 3.9
6
+ Stable tag: 1.6
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
22
 
23
  == Changelog ==
24
 
25
+ = 1.6 =
26
+ * Updates for wordpress 3.9
27
+ * Add Youtube and Vimeo Buttons
28
+ * Add Even/Odd for accordion.
29
+
30
  = 1.5 =
31
  * Update for virtue 2.0
32
 
shortcode_ajax.php CHANGED
@@ -31,6 +31,22 @@ function virtue_video_ajax_tinymce() {
31
  }
32
  add_action('wp_ajax_kadvideo_tinymce', 'virtue_video_ajax_tinymce');
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  function virtue_btns_ajax_tinymce() {
35
  if (!current_user_can('edit_pages') && !current_user_can('edit_posts'))
36
  die(__("You are not allowed to be here"));
31
  }
32
  add_action('wp_ajax_kadvideo_tinymce', 'virtue_video_ajax_tinymce');
33
 
34
+ function virtue_youtube_ajax_tinymce() {
35
+ if (!current_user_can('edit_pages') && !current_user_can('edit_posts'))
36
+ die(__("You are not allowed to be here"));
37
+
38
+ include_once( dirname(dirname(__FILE__)) . '/virtue-toolkit/shortcodes/youtube/youtube_popup.php');
39
+ }
40
+ add_action('wp_ajax_kadyoutube_tinymce', 'virtue_youtube_ajax_tinymce');
41
+
42
+ function virtue_vimeo_ajax_tinymce() {
43
+ if (!current_user_can('edit_pages') && !current_user_can('edit_posts'))
44
+ die(__("You are not allowed to be here"));
45
+
46
+ include_once( dirname(dirname(__FILE__)) . '/virtue-toolkit/shortcodes/vimeo/vimeo_popup.php');
47
+ }
48
+ add_action('wp_ajax_kadvimeo_tinymce', 'virtue_vimeo_ajax_tinymce');
49
+
50
  function virtue_btns_ajax_tinymce() {
51
  if (!current_user_can('edit_pages') && !current_user_can('edit_posts'))
52
  die(__("You are not allowed to be here"));
shortcodes.php CHANGED
@@ -5,10 +5,11 @@ function kad_accordion_shortcode_function($atts, $content ) {
5
  do_shortcode( $content );
6
  $random = rand(1, 99);
7
  if( is_array( $GLOBALS['panes'] ) ){
8
-
9
  foreach( $GLOBALS['panes'] as $tab ){
10
- $tabs[] = '<div class="panel panel-default"><div class="panel-heading"><a class="accordion-toggle '.$tab['open'].'" data-toggle="collapse" data-parent="#accordionname'.$random.'" href="#collapse'.$random.$tab['link'].'"><h5><i class="icon-minus primary-color"></i><i class="icon-plus"></i>'.$tab['title'].'</h5></a></div><div id="collapse'.$random.$tab['link'].'" class="panel-collapse collapse '.$tab['in'].'"><div class="panel-body postclass">'.$tab['content'].'</div></div></div>';
11
-
 
12
  }
13
  $return = "\n".'<div class="panel-group" id="accordionname'.$random.'">'.implode( "\n", $tabs ).'</div>'."\n";
14
  }
@@ -120,6 +121,66 @@ function kad_video_shortcode_function( $atts, $content) {
120
  else { $output = '<div class="videofit">'.$content.'</div>'; }
121
  return $output;
122
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  //Button
124
  function kad_button_shortcode_function( $atts) {
125
  extract(shortcode_atts(array(
@@ -218,6 +279,8 @@ function virtuetoolkit_register_shortcodes(){
218
  add_shortcode('space_20', 'kad_hrpadding10_function');
219
  add_shortcode('space_40', 'kad_hrpadding20_function');
220
  add_shortcode('space_80', 'kad_hrpadding40_function');
 
 
221
  add_shortcode('clear', 'kad_clearfix_function');
222
  }
223
  add_action( 'init', 'virtuetoolkit_register_shortcodes');
@@ -230,7 +293,8 @@ function virtue_register_button( $buttons ) {
230
  array_push( $buttons, "|", "kadquote" );
231
  array_push( $buttons, "|", "kadbtn" );
232
  array_push( $buttons, "|", "kadicon" );
233
- array_push( $buttons, "|", "kadvideo" );
 
234
  return $buttons;
235
  }
236
  function virtue_add_plugin( $plugin_array ) {
@@ -238,6 +302,8 @@ function virtue_add_plugin( $plugin_array ) {
238
  $plugin_array['kadicon'] = VIRTUE_TOOLKIT_URL . '/shortcodes/icons/icon_shortgen.js';
239
  $plugin_array['kadaccordion'] = VIRTUE_TOOLKIT_URL . '/shortcodes/accordion/accordion_shortgen.js';
240
  $plugin_array['kadvideo'] = VIRTUE_TOOLKIT_URL . '/shortcodes/video/video_shortgen.js';
 
 
241
  $plugin_array['kadquote'] = VIRTUE_TOOLKIT_URL . '/shortcodes/pullquote/quote_shortgen.js';
242
  $plugin_array['kadbtn'] = VIRTUE_TOOLKIT_URL . '/shortcodes/btns/btns_shortgen.js';
243
  $plugin_array['kaddivider'] = VIRTUE_TOOLKIT_URL . '/shortcodes/divider/divider_shortgen.js';
5
  do_shortcode( $content );
6
  $random = rand(1, 99);
7
  if( is_array( $GLOBALS['panes'] ) ){
8
+ $i = 0;
9
  foreach( $GLOBALS['panes'] as $tab ){
10
+ if ($i % 2 == 0) {$eo = "even";} else {$eo = "odd";}
11
+ $tabs[] = '<div class="panel panel-default panel-'.$eo.'"><div class="panel-heading"><a class="accordion-toggle '.$tab['open'].'" data-toggle="collapse" data-parent="#accordionname'.$random.'" href="#collapse'.$random.$tab['link'].'"><h5><i class="icon-minus primary-color"></i><i class="icon-plus"></i>'.$tab['title'].'</h5></a></div><div id="collapse'.$random.$tab['link'].'" class="panel-collapse collapse '.$tab['in'].'"><div class="panel-body postclass">'.$tab['content'].'</div></div></div>';
12
+ $i++;
13
  }
14
  $return = "\n".'<div class="panel-group" id="accordionname'.$random.'">'.implode( "\n", $tabs ).'</div>'."\n";
15
  }
121
  else { $output = '<div class="videofit">'.$content.'</div>'; }
122
  return $output;
123
  }
124
+ // Based on Ultimate Shortcodes youtube and vimeo shortcodes
125
+ function kad_youtube_shortcode_function( $atts, $content) {
126
+ // Prepare data
127
+ $return = array();
128
+ $params = array();
129
+ $atts = shortcode_atts(array(
130
+ 'url' => false,
131
+ 'width' => 600,
132
+ 'height' => 400,
133
+ 'maxwidth' => '',
134
+ 'autoplay' => 'false',
135
+ 'controls' => 'true',
136
+ 'hidecontrols' => 'false',
137
+ 'fs' => 'true',
138
+ 'modestbranding' => 'false',
139
+ 'theme' => 'dark'
140
+ ), $atts, 'kad_youtube' );
141
+
142
+ if ( !$atts['url'] ) return '<p class="error">YouTube: ' . __( 'please specify correct url', 'virtue' ) . '</p>';
143
+ $id = ( preg_match( '%(?:youtube(?:-nocookie)?\.com/(?:[^/]+/.+/|(?:v|e(?:mbed)?)/|.*[?&]v=)|youtu\.be/)([^"&?/ ]{11})%i', $atts['url'], $match ) ) ? $match[1] : false;
144
+ // Check that url is specified
145
+ if ( !$id ) return '<p class="error">YouTube: ' . __( 'please specify correct url', 'virtue' ) . '</p>';
146
+ // Prepare params
147
+ if($atts['hidecontrols'] == 'true') {$atts['controls'] = 'false';}
148
+ foreach ( array('autoplay', 'controls', 'fs', 'modestbranding', 'theme' ) as $param ) $params[$param] = str_replace( array( 'false', 'true', 'alt' ), array( '0', '1', '2' ), $atts[$param] );
149
+ // Prepare player parameters
150
+ $params = http_build_query( $params );
151
+ if($atts['maxwidth']) {$maxwidth = 'style="max-width:'.$atts['maxwidth'].'px;"';} else{ $maxwidth = '';}
152
+ // Create player
153
+ $return[] = '<div class="kad-youtube-shortcode videofit" '.$maxwidth.' >';
154
+ $return[] = '<iframe width="' . $atts['width'] . '" height="' . $atts['height'] . '" src="http://www.youtube.com/embed/' . $id . '?' . $params . '" frameborder="0" allowfullscreen="true"></iframe>';
155
+ $return[] = '</div>';
156
+ // Return result
157
+ return implode( '', $return );
158
+ }
159
+ function kad_vimeo_shortcode_function( $atts, $content) {
160
+ $return = array();
161
+ $atts = shortcode_atts( array(
162
+ 'url' => false,
163
+ 'width' => 600,
164
+ 'height' => 400,
165
+ 'maxwidth' => '',
166
+ 'autoplay' => 'no'
167
+ ), $atts, 'vimeo' );
168
+ if ( !$atts['url'] ) return '<p class="error">Vimeo: ' . __( 'please specify correct url', 'virtue' ) . '</p>';
169
+ $id = ( preg_match( '~(?:<iframe [^>]*src=")?(?:https?:\/\/(?:[\w]+\.)*vimeo\.com(?:[\/\w]*\/videos?)?\/([0-9]+)[^\s]*)"?(?:[^>]*></iframe>)?(?:<p>.*</p>)?~ix', $atts['url'], $match ) ) ? $match[1] : false;
170
+ // Check that url is specified
171
+ if ( !$id ) return '<p class="error">Vimeo: ' . __( 'please specify correct url', 'virtue' ) . '</p>';
172
+
173
+ if($atts['maxwidth']) {$maxwidth = 'style="max-width:'.$atts['maxwidth'].'px;"';} else{ $maxwidth = '';}
174
+ $autoplay = ( $atts['autoplay'] === 'yes' ) ? '&amp;autoplay=1' : '';
175
+ // Create player
176
+ $return[] = '<div class="kad-vimeo-shortcode videofit '.$maxwidth.'">';
177
+ $return[] = '<iframe width="' . $atts['width'] . '" height="' . $atts['height'] .
178
+ '" src="http://player.vimeo.com/video/' . $id . '?title=0&amp;byline=0&amp;portrait=0&amp;color=ffffff' .
179
+ $autoplay . '" frameborder="0" allowfullscreen="true"></iframe>';
180
+ $return[] = '</div>';
181
+ // Return result
182
+ return implode( '', $return );
183
+ }
184
  //Button
185
  function kad_button_shortcode_function( $atts) {
186
  extract(shortcode_atts(array(
279
  add_shortcode('space_20', 'kad_hrpadding10_function');
280
  add_shortcode('space_40', 'kad_hrpadding20_function');
281
  add_shortcode('space_80', 'kad_hrpadding40_function');
282
+ add_shortcode('kad_youtube', 'kad_youtube_shortcode_function');
283
+ add_shortcode('kad_vimeo', 'kad_vimeo_shortcode_function');
284
  add_shortcode('clear', 'kad_clearfix_function');
285
  }
286
  add_action( 'init', 'virtuetoolkit_register_shortcodes');
293
  array_push( $buttons, "|", "kadquote" );
294
  array_push( $buttons, "|", "kadbtn" );
295
  array_push( $buttons, "|", "kadicon" );
296
+ array_push( $buttons, "|", "kadyoutube" );
297
+ array_push( $buttons, "|", "kadvimeo" );
298
  return $buttons;
299
  }
300
  function virtue_add_plugin( $plugin_array ) {
302
  $plugin_array['kadicon'] = VIRTUE_TOOLKIT_URL . '/shortcodes/icons/icon_shortgen.js';
303
  $plugin_array['kadaccordion'] = VIRTUE_TOOLKIT_URL . '/shortcodes/accordion/accordion_shortgen.js';
304
  $plugin_array['kadvideo'] = VIRTUE_TOOLKIT_URL . '/shortcodes/video/video_shortgen.js';
305
+ $plugin_array['kadyoutube'] = VIRTUE_TOOLKIT_URL . '/shortcodes/youtube/youtube_shortgen.js';
306
+ $plugin_array['kadvimeo'] = VIRTUE_TOOLKIT_URL . '/shortcodes/vimeo/vimeo_shortgen.js';
307
  $plugin_array['kadquote'] = VIRTUE_TOOLKIT_URL . '/shortcodes/pullquote/quote_shortgen.js';
308
  $plugin_array['kadbtn'] = VIRTUE_TOOLKIT_URL . '/shortcodes/btns/btns_shortgen.js';
309
  $plugin_array['kaddivider'] = VIRTUE_TOOLKIT_URL . '/shortcodes/divider/divider_shortgen.js';
shortcodes/accordion/accordion_popup.php CHANGED
@@ -47,12 +47,12 @@ var ButtonDialog = {
47
  tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
48
 
49
  </script>
50
- <style type="text/css" media="screen"> #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog select {display:block; height:28px; width:200px; font-size:12px;} #icon-dialog a#insert {margin-top:10px;}
51
 
52
  </style>
53
 
54
  </head>
55
- <body>
56
  <div id="icon-dialog">
57
  <form action="/" method="get" accept-charset="utf-8">
58
  <div>
47
  tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
48
 
49
  </script>
50
+ <style type="text/css" media="screen"> .kad-popup {padding: 0 8px; font-size: 0;} #icon-dialog {font-size: 12px;} #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog select {display:block; height:28px; width:200px; font-size:12px;} #icon-dialog a#insert {margin-top:10px;}
51
 
52
  </style>
53
 
54
  </head>
55
+ <body class="kad-popup">
56
  <div id="icon-dialog">
57
  <form action="/" method="get" accept-charset="utf-8">
58
  <div>
shortcodes/btns/btns_popup.php CHANGED
@@ -66,12 +66,12 @@ tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
66
 
67
  </script>
68
 
69
- <style type="text/css" media="screen"> #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog label.hex {font-size:12px; line-height:24px; display:inline-block; padding:6px 4px 6px 12px;} #icon-dialog select {display:block; height:28px; width:300px; font-size:12px;} #icon-dialog input {display:block; width:300px; height:24px;} #icon-dialog input.btn-hex {display:inline-block; width:120px; height:24px;} #icon-dialog a#insert {margin-top:15px;} .linebreak {margin-bottom:6px; border-bottom: solid 1px #d7d7d7; padding-bottom:6px}
70
 
71
  </style>
72
 
73
  </head>
74
- <body>
75
  <div id="icon-dialog">
76
  <form action="/" method="get" accept-charset="utf-8">
77
  <div class="linebreak">
66
 
67
  </script>
68
 
69
+ <style type="text/css" media="screen"> .kad-popup {padding: 0 8px; font-size: 0;} #icon-dialog {font-size: 12px;} #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog label.hex {font-size:12px; line-height:24px; display:inline-block; padding:6px 4px 6px 12px;} #icon-dialog select {display:block; height:28px; width:300px; font-size:12px;} #icon-dialog input {display:block; width:300px; height:24px;} #icon-dialog input.btn-hex {display:inline-block; width:120px; height:24px;} #icon-dialog a#insert {margin-top:15px;} .linebreak {margin-bottom:6px; border-bottom: solid 1px #d7d7d7; padding-bottom:6px}
70
 
71
  </style>
72
 
73
  </head>
74
+ <body class="kad-popup">
75
  <div id="icon-dialog">
76
  <form action="/" method="get" accept-charset="utf-8">
77
  <div class="linebreak">
shortcodes/columns/columns_popup.php CHANGED
@@ -10,11 +10,11 @@ global $wp_scripts;
10
  <title><?php _e("Insert Columns", "virtue"); ?></title>
11
  <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
12
  <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
13
- <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
14
  <base target="_self" />
15
  <?php wp_print_scripts(); ?>
16
  <script type="text/javascript">
17
-
18
  var ButtonDialog = {
19
  local_ed : 'ed',
20
  init : function(ed) {
@@ -35,53 +35,53 @@ var ButtonDialog = {
35
  switch (coutput)
36
  {
37
  case '1':
38
- output = '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnstart mceItem" title="hcolumns" />';
39
  if(document.getElementById('2column').checked) {
40
- output += '<div class="col-md-6"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-6 mceItem" title="columnhelper col-md-6" />';
41
  output += '<p>add content here</p>';
42
  output += '</div> ';
43
- output += '<div class="col-md-6"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-6 mceItem" title="columnhelper col-md-6" />';
44
  output += '<p>add content here</p>';
45
  output += '</div> ';
46
  }else if(document.getElementById('2columnright').checked) {
47
- output += '<div class="col-md-4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
48
  output += '<p>add content here</p>';
49
  output += '</div> ';
50
- output += '<div class="col-md-8"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-8 mceItem" title="columnhelper col-md-8" />';
51
  output += '<p>add content here</p>';
52
  output += '</div> ';
53
  }else if(document.getElementById('2columnleft').checked) {
54
- output += '<div class="col-md-8"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-8 mceItem" title="columnhelper col-md-8" />';
55
  output += '<p>add content here</p>';
56
  output += '</div> ';
57
- output += '<div class="col-md-4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
58
  output += '<p>add content here</p>';
59
  output += '</div> ';
60
  }else if(document.getElementById('3column').checked) {
61
- output += '<div class="col-md-4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
62
  output += '<p>add content here</p>';
63
  output += '</div> ';
64
- output += '<div class="col-md-4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
65
  output += '<p>add content here</p>';
66
  output += '</div> ';
67
- output += '<div class="col-md-4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
68
  output += '<p>add content here</p>';
69
  output += '</div> ';
70
  }else if(document.getElementById('4column').checked) {
71
- output += '<div class="col-md-3"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-3 mceItem" title="columnhelper col-md-3" />';
72
  output += '<p>add content here</p>';
73
  output += '</div> ';
74
- output += '<div class="col-md-3"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-3 mceItem" title="columnhelper col-md-3" />';
75
  output += '<p>add content here</p>';
76
  output += '</div> ';
77
- output += '<div class="col-md-3"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-3 mceItem" title="columnhelper col-md-3" />';
78
  output += '<p>add content here</p>';
79
  output += '</div> ';
80
- output += '<div class="col-md-3"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper col-md-3 mceItem" title="columnhelper col-md-3" />';
81
  output += '<p>add content here</p>';
82
  output += '</div> ';
83
  }
84
- output += '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnend mceItem" title="/hcolumns" />';
85
 
86
  break;
87
  default:
@@ -144,10 +144,10 @@ var ButtonDialog = {
144
  tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
145
 
146
  </script>
147
- <style type="text/css" media="screen"> #icon-dialog label {font-size:12px; line-height:24px; width:150px; display:inline-block; text-align:right;} #icon-dialog label.imglabel {width: auto; text-align: left; padding-left: 10px;} #icon-dialog a#insert {margin-top:2px;} #icon-dialog p {font-size:12px;} #icon-dialog .option-row {padding-bottom:6px; border-bottom: solid 1px #d7d7d7; margin-bottom:8px;} #icon-dialog select {width:159px; height:24px;} </style>
148
 
149
  </head>
150
- <body>
151
  <div id="icon-dialog">
152
  <form action="/" method="get" id="columnform" accept-charset="utf-8">
153
  <div>
10
  <title><?php _e("Insert Columns", "virtue"); ?></title>
11
  <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
12
  <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script>
13
+ <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl'); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script>
14
  <base target="_self" />
15
  <?php wp_print_scripts(); ?>
16
  <script type="text/javascript">
17
+ var url = '<?php echo plugins_url(); ?>';
18
  var ButtonDialog = {
19
  local_ed : 'ed',
20
  init : function(ed) {
35
  switch (coutput)
36
  {
37
  case '1':
38
+ output = '<img src="'+url+'/virtue-toolkit/images/t.gif" class="columnstart mceItem" title="hcolumns" />';
39
  if(document.getElementById('2column').checked) {
40
+ output += '<div class="col-md-6"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-6 mceItem" title="columnhelper col-md-6" />';
41
  output += '<p>add content here</p>';
42
  output += '</div> ';
43
+ output += '<div class="col-md-6"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-6 mceItem" title="columnhelper col-md-6" />';
44
  output += '<p>add content here</p>';
45
  output += '</div> ';
46
  }else if(document.getElementById('2columnright').checked) {
47
+ output += '<div class="col-md-4"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
48
  output += '<p>add content here</p>';
49
  output += '</div> ';
50
+ output += '<div class="col-md-8"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-8 mceItem" title="columnhelper col-md-8" />';
51
  output += '<p>add content here</p>';
52
  output += '</div> ';
53
  }else if(document.getElementById('2columnleft').checked) {
54
+ output += '<div class="col-md-8"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-8 mceItem" title="columnhelper col-md-8" />';
55
  output += '<p>add content here</p>';
56
  output += '</div> ';
57
+ output += '<div class="col-md-4"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
58
  output += '<p>add content here</p>';
59
  output += '</div> ';
60
  }else if(document.getElementById('3column').checked) {
61
+ output += '<div class="col-md-4"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
62
  output += '<p>add content here</p>';
63
  output += '</div> ';
64
+ output += '<div class="col-md-4"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
65
  output += '<p>add content here</p>';
66
  output += '</div> ';
67
+ output += '<div class="col-md-4"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-4 mceItem" title="columnhelper col-md-4" />';
68
  output += '<p>add content here</p>';
69
  output += '</div> ';
70
  }else if(document.getElementById('4column').checked) {
71
+ output += '<div class="col-md-3"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-3 mceItem" title="columnhelper col-md-3" />';
72
  output += '<p>add content here</p>';
73
  output += '</div> ';
74
+ output += '<div class="col-md-3"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-3 mceItem" title="columnhelper col-md-3" />';
75
  output += '<p>add content here</p>';
76
  output += '</div> ';
77
+ output += '<div class="col-md-3"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-3 mceItem" title="columnhelper col-md-3" />';
78
  output += '<p>add content here</p>';
79
  output += '</div> ';
80
+ output += '<div class="col-md-3"><img src="'+url+'/virtue-toolkit/images/t.gif" class="columnhelper col-md-3 mceItem" title="columnhelper col-md-3" />';
81
  output += '<p>add content here</p>';
82
  output += '</div> ';
83
  }
84
+ output += '<img src="'+url+'/virtue-toolkit/images/t.gif" class="columnend mceItem" title="/hcolumns" />';
85
 
86
  break;
87
  default:
144
  tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
145
 
146
  </script>
147
+ <style type="text/css" media="screen"> .kad-popup {padding: 0 8px; font-size: 0;} #icon-dialog {font-size: 12px;} #icon-dialog label {font-size:12px; line-height:24px; width:150px; display:inline-block; text-align:right;} #icon-dialog label.imglabel {width: auto; text-align: left; padding-left: 10px;} #icon-dialog a#insert {margin-top:2px;} #icon-dialog p {font-size:12px;} #icon-dialog .option-row {padding-bottom:6px; border-bottom: solid 1px #d7d7d7; margin-bottom:8px;} #icon-dialog select {width:159px; height:24px;} </style>
148
 
149
  </head>
150
+ <body class="kad-popup">
151
  <div id="icon-dialog">
152
  <form action="/" method="get" id="columnform" accept-charset="utf-8">
153
  <div>
shortcodes/columns/columns_shortgen.js CHANGED
@@ -7,7 +7,7 @@
7
  ed.windowManager.open({
8
  file: ajaxurl + '?action=kadcolumns_tinymce',
9
  width : 350 + parseInt(ed.getLang('button.delta_width', 0)), // size of our window
10
- height : 420 + parseInt(ed.getLang('button.delta_height', 0)), // size of our window
11
  inline : 1
12
  }, {
13
  plugin_url : url
@@ -17,13 +17,13 @@
17
  // Register buttons
18
  ed.addButton('kadcolumns', {title : 'Insert Columns', cmd : 'mcekadcolumns', image: url + '/img/columns.png' });
19
  ed.onBeforeSetContent.add(function(ed, o) {
20
- o.content = t._do_column(o.content);
21
  });
22
  ed.onBeforeSetContent.add(function(ed, o) {
23
- o.content = t._do_columnstart(o.content);
24
  });
25
  ed.onBeforeSetContent.add(function(ed, o) {
26
- o.content = t._do_columnend(o.content);
27
  });
28
 
29
  ed.onPostProcess.add(function(ed, o) {
@@ -39,19 +39,19 @@
39
  o.content = t._get_columnend(o.content);
40
  });
41
  },
42
- _do_column : function(co) {
43
  return co.replace(/\[columnhelper([^\]]*)\]/g, function(a,b){
44
- return '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper '+tinymce.DOM.encode(b)+' mceItem" title="columnhelper'+tinymce.DOM.encode(b)+'" />';
45
  });
46
  },
47
- _do_columnstart : function(co) {
48
  return co.replace(/\[hcolumns([^\]]*)\]/g, function(a,b){
49
- return '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnstart mceItem" title="hcolumns" />';
50
  });
51
  },
52
- _do_columnend : function(co) {
53
  return co.replace(/\[\/hcolumns([^\]]*)\]/g, function(a,b){
54
- return '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnend mceItem" title="/hcolumns" />';
55
  });
56
  },
57
 
7
  ed.windowManager.open({
8
  file: ajaxurl + '?action=kadcolumns_tinymce',
9
  width : 350 + parseInt(ed.getLang('button.delta_width', 0)), // size of our window
10
+ height : 380 + parseInt(ed.getLang('button.delta_height', 0)), // size of our window
11
  inline : 1
12
  }, {
13
  plugin_url : url
17
  // Register buttons
18
  ed.addButton('kadcolumns', {title : 'Insert Columns', cmd : 'mcekadcolumns', image: url + '/img/columns.png' });
19
  ed.onBeforeSetContent.add(function(ed, o) {
20
+ o.content = t._do_column(o.content, url);
21
  });
22
  ed.onBeforeSetContent.add(function(ed, o) {
23
+ o.content = t._do_columnstart(o.content, url);
24
  });
25
  ed.onBeforeSetContent.add(function(ed, o) {
26
+ o.content = t._do_columnend(o.content, url);
27
  });
28
 
29
  ed.onPostProcess.add(function(ed, o) {
39
  o.content = t._get_columnend(o.content);
40
  });
41
  },
42
+ _do_column : function(co, url) {
43
  return co.replace(/\[columnhelper([^\]]*)\]/g, function(a,b){
44
+ return '<img src="'+url+'/img/t.gif" class="columnhelper '+tinymce.DOM.encode(b)+' mceItem" title="columnhelper'+tinymce.DOM.encode(b)+'" />';
45
  });
46
  },
47
+ _do_columnstart : function(co, url) {
48
  return co.replace(/\[hcolumns([^\]]*)\]/g, function(a,b){
49
+ return '<img src="'+url+'/img/t.gif" class="columnstart mceItem" title="hcolumns" />';
50
  });
51
  },
52
+ _do_columnend : function(co, url) {
53
  return co.replace(/\[\/hcolumns([^\]]*)\]/g, function(a,b){
54
+ return '<img src="'+url+'/img/t.gif" class="columnend mceItem" title="/hcolumns" />';
55
  });
56
  },
57
 
shortcodes/divider/divider_popup.php CHANGED
@@ -58,12 +58,12 @@ var ButtonDialog = {
58
  tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
59
 
60
  </script>
61
- <style type="text/css" media="screen"> #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog select {display:block; height:28px; width:200px; font-size:12px;} #icon-dialog a#insert {margin-top:10px;}
62
 
63
  </style>
64
 
65
  </head>
66
- <body>
67
  <div id="icon-dialog">
68
  <form action="/" method="get" accept-charset="utf-8">
69
  <div>
58
  tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
59
 
60
  </script>
61
+ <style type="text/css" media="screen">.kad-popup {padding: 0 8px; font-size: 0;} #icon-dialog {font-size: 12px;} #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog select {display:block; height:28px; width:200px; font-size:12px;} #icon-dialog a#insert {margin-top:10px;}
62
 
63
  </style>
64
 
65
  </head>
66
+ <body class="kad-popup">
67
  <div id="icon-dialog">
68
  <form action="/" method="get" accept-charset="utf-8">
69
  <div>
shortcodes/icons/icon_popup.php CHANGED
@@ -68,12 +68,12 @@ tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
68
  <?php $icons = array( 'icon-glass', 'icon-music', 'icon-search', 'icon-envelope-alt', 'icon-heart', 'icon-star', 'icon-star-empty', 'icon-user', 'icon-film', 'icon-th-large', 'icon-th', 'icon-th-list', 'icon-ok', 'icon-remove', 'icon-zoom-in', 'icon-zoom-out', 'icon-power-off', 'icon-off', 'icon-signal', 'icon-gear', 'icon-cog', 'icon-trash', 'icon-home', 'icon-file-alt', 'icon-time', 'icon-road', 'icon-download-alt', 'icon-download', 'icon-upload', 'icon-inbox', 'icon-play-circle', 'icon-rotate-right', 'icon-repeat', 'icon-refresh', 'icon-list-alt', 'icon-lock', 'icon-flag', 'icon-headphones', 'icon-volume-off', 'icon-volume-down', 'icon-volume-up', 'icon-qrcode', 'icon-barcode', 'icon-tag', 'icon-tags', 'icon-book', 'icon-bookmark', 'icon-print', 'icon-camera', 'icon-font', 'icon-bold', 'icon-italic', 'icon-text-height', 'icon-text-width', 'icon-align-left', 'icon-align-center', 'icon-align-right', 'icon-align-justify', 'icon-list', 'icon-indent-left', 'icon-indent-right', 'icon-facetime-video', 'icon-picture', 'icon-pencil', 'icon-map-marker', 'icon-adjust', 'icon-tint', 'icon-edit', 'icon-share', 'icon-check', 'icon-move', 'icon-step-backward', 'icon-fast-backward', 'icon-backward', 'icon-play', 'icon-pause', 'icon-stop', 'icon-forward', 'icon-fast-forward', 'icon-step-forward', 'icon-eject', 'icon-chevron-left', 'icon-chevron-right', 'icon-plus-sign', 'icon-minus-sign', 'icon-remove-sign', 'icon-ok-sign', 'icon-question-sign', 'icon-info-sign', 'icon-screenshot', 'icon-remove-circle', 'icon-ok-circle', 'icon-ban-circle', 'icon-arrow-left', 'icon-arrow-right', 'icon-arrow-up', 'icon-arrow-down', 'icon-mail-forward', 'icon-share-alt', 'icon-resize-full', 'icon-resize-small', 'icon-plus', 'icon-minus', 'icon-asterisk', 'icon-exclamation-sign', 'icon-gift', 'icon-leaf', 'icon-fire', 'icon-eye-open', 'icon-eye-close', 'icon-warning-sign', 'icon-plane', 'icon-calendar', 'icon-random', 'icon-comment', 'icon-magnet', 'icon-chevron-up', 'icon-chevron-down', 'icon-retweet', 'icon-shopping-cart', 'icon-folder-close', 'icon-folder-open', 'icon-resize-vertical', 'icon-resize-horizontal', 'icon-bar-chart', 'icon-twitter-sign', 'icon-facebook-sign', 'icon-camera-retro', 'icon-key', 'icon-gears', 'icon-cogs', 'icon-comments', 'icon-thumbs-up-alt', 'icon-thumbs-down-alt', 'icon-star-half', 'icon-heart-empty', 'icon-signout', 'icon-linkedin-sign', 'icon-pushpin', 'icon-external-link', 'icon-signin', 'icon-trophy', 'icon-github-sign', 'icon-upload-alt', 'icon-lemon', 'icon-phone', 'icon-unchecked', 'icon-check-empty', 'icon-bookmark-empty', 'icon-phone-sign', 'icon-twitter', 'icon-facebook', 'icon-github', 'icon-unlock', 'icon-credit-card', 'icon-rss', 'icon-hdd', 'icon-bullhorn', 'icon-bell', 'icon-certificate', 'icon-hand-right', 'icon-hand-left', 'icon-hand-up', 'icon-hand-down', 'icon-circle-arrow-left', 'icon-circle-arrow-right', 'icon-circle-arrow-up', 'icon-circle-arrow-down', 'icon-globe', 'icon-wrench', 'icon-tasks', 'icon-filter', 'icon-briefcase', 'icon-fullscreen', 'icon-group', 'icon-link', 'icon-cloud', 'icon-beaker', 'icon-cut', 'icon-copy', 'icon-paperclip', 'icon-paper-clip', 'icon-save', 'icon-sign-blank', 'icon-reorder', 'icon-list-ul', 'icon-list-ol', 'icon-strikethrough', 'icon-underline', 'icon-table', 'icon-magic', 'icon-truck', 'icon-pinterest', 'icon-pinterest-sign', 'icon-google-plus-sign', 'icon-google-plus', 'icon-money', 'icon-caret-down', 'icon-caret-up', 'icon-caret-left', 'icon-caret-right', 'icon-columns', 'icon-sort', 'icon-sort-down', 'icon-sort-up', 'icon-envelope', 'icon-linkedin', 'icon-rotate-left', 'icon-undo', 'icon-legal', 'icon-dashboard', 'icon-comment-alt', 'icon-comments-alt', 'icon-bolt', 'icon-sitemap', 'icon-umbrella', 'icon-paste', 'icon-lightbulb', 'icon-exchange', 'icon-cloud-download', 'icon-cloud-upload', 'icon-user-md', 'icon-stethoscope', 'icon-suitcase', 'icon-bell-alt', 'icon-coffee', 'icon-food', 'icon-file-text-alt', 'icon-building', 'icon-hospital', 'icon-ambulance', 'icon-medkit', 'icon-fighter-jet', 'icon-beer', 'icon-h-sign', 'icon-plus-sign-alt', 'icon-double-angle-left', 'icon-double-angle-right', 'icon-double-angle-up', 'icon-double-angle-down', 'icon-angle-left', 'icon-angle-right', 'icon-angle-up', 'icon-angle-down', 'icon-desktop', 'icon-laptop', 'icon-tablet', 'icon-mobile-phone', 'icon-circle-blank', 'icon-quote-left', 'icon-quote-right', 'icon-spinner', 'icon-circle', 'icon-mail-reply', 'icon-reply', 'icon-github-alt', 'icon-folder-close-alt', 'icon-folder-open-alt', 'icon-expand-alt', 'icon-collapse-alt', 'icon-smile', 'icon-frown', 'icon-meh', 'icon-gamepad', 'icon-keyboard', 'icon-flag-alt', 'icon-flag-checkered', 'icon-terminal', 'icon-code', 'icon-reply-all', 'icon-mail-reply-all', 'icon-star-half-full', 'icon-star-half-empty', 'icon-location-arrow', 'icon-crop', 'icon-code-fork', 'icon-unlink', 'icon-question', 'icon-info', 'icon-exclamation', 'icon-superscript', 'icon-subscript', 'icon-eraser', 'icon-puzzle-piece', 'icon-microphone', 'icon-microphone-off', 'icon-shield', 'icon-calendar-empty', 'icon-fire-extinguisher', 'icon-rocket', 'icon-maxcdn', 'icon-chevron-sign-left', 'icon-chevron-sign-right', 'icon-chevron-sign-up', 'icon-chevron-sign-down', 'icon-html5', 'icon-css3', 'icon-anchor', 'icon-unlock-alt', 'icon-bullseye', 'icon-ellipsis-horizontal', 'icon-ellipsis-vertical', 'icon-rss-sign', 'icon-play-sign', 'icon-ticket', 'icon-minus-sign-alt', 'icon-check-minus', 'icon-level-up', 'icon-level-down', 'icon-check-sign', 'icon-edit-sign', 'icon-external-link-sign', 'icon-share-sign', 'icon-compass', 'icon-collapse', 'icon-collapse-top', 'icon-expand', 'icon-euro', 'icon-eur', 'icon-gbp', 'icon-dollar', 'icon-usd', 'icon-rupee', 'icon-inr', 'icon-yen', 'icon-jpy', 'icon-renminbi', 'icon-cny', 'icon-won', 'icon-krw', 'icon-bitcoin', 'icon-btc', 'icon-file', 'icon-file-text', 'icon-sort-by-alphabet', 'icon-sort-by-alphabet-alt', 'icon-sort-by-attributes', 'icon-sort-by-attributes-alt', 'icon-sort-by-order', 'icon-sort-by-order-alt', 'icon-thumbs-up', 'icon-thumbs-down', 'icon-youtube-sign', 'icon-youtube', 'icon-xing', 'icon-xing-sign', 'icon-youtube-play', 'icon-dropbox', 'icon-stackexchange', 'icon-instagram', 'icon-flickr', 'icon-adn', 'icon-bitbucket', 'icon-bitbucket-sign', 'icon-tumblr', 'icon-tumblr-sign', 'icon-long-arrow-down', 'icon-long-arrow-up', 'icon-long-arrow-left', 'icon-long-arrow-right', 'icon-apple', 'icon-windows', 'icon-android', 'icon-linux', 'icon-dribbble', 'icon-skype', 'icon-foursquare', 'icon-trello', 'icon-female', 'icon-male', 'icon-gittip', 'icon-sun', 'icon-moon', 'icon-archive', 'icon-bug', 'icon-vk', 'icon-weibo', 'icon-renren');
69
 
70
  ?>
71
- <style type="text/css" media="screen"> #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog label.hex {font-size:12px; line-height:24px; display:inline-block; padding:6px 4px 6px 12px;} .linebreak {margin-bottom:6px; border-bottom: solid 1px #d7d7d7; padding-bottom:6px} #icon-dialog input#icon-color-hex {display:inline-block; height:24px;} #icon-dialog a#insert {margin-top:15px;}
72
 
73
  </style>
74
 
75
  </head>
76
- <body>
77
  <div id="icon-dialog">
78
  <form action="/" method="get" accept-charset="utf-8">
79
  <div class="linebreak">
68
  <?php $icons = array( 'icon-glass', 'icon-music', 'icon-search', 'icon-envelope-alt', 'icon-heart', 'icon-star', 'icon-star-empty', 'icon-user', 'icon-film', 'icon-th-large', 'icon-th', 'icon-th-list', 'icon-ok', 'icon-remove', 'icon-zoom-in', 'icon-zoom-out', 'icon-power-off', 'icon-off', 'icon-signal', 'icon-gear', 'icon-cog', 'icon-trash', 'icon-home', 'icon-file-alt', 'icon-time', 'icon-road', 'icon-download-alt', 'icon-download', 'icon-upload', 'icon-inbox', 'icon-play-circle', 'icon-rotate-right', 'icon-repeat', 'icon-refresh', 'icon-list-alt', 'icon-lock', 'icon-flag', 'icon-headphones', 'icon-volume-off', 'icon-volume-down', 'icon-volume-up', 'icon-qrcode', 'icon-barcode', 'icon-tag', 'icon-tags', 'icon-book', 'icon-bookmark', 'icon-print', 'icon-camera', 'icon-font', 'icon-bold', 'icon-italic', 'icon-text-height', 'icon-text-width', 'icon-align-left', 'icon-align-center', 'icon-align-right', 'icon-align-justify', 'icon-list', 'icon-indent-left', 'icon-indent-right', 'icon-facetime-video', 'icon-picture', 'icon-pencil', 'icon-map-marker', 'icon-adjust', 'icon-tint', 'icon-edit', 'icon-share', 'icon-check', 'icon-move', 'icon-step-backward', 'icon-fast-backward', 'icon-backward', 'icon-play', 'icon-pause', 'icon-stop', 'icon-forward', 'icon-fast-forward', 'icon-step-forward', 'icon-eject', 'icon-chevron-left', 'icon-chevron-right', 'icon-plus-sign', 'icon-minus-sign', 'icon-remove-sign', 'icon-ok-sign', 'icon-question-sign', 'icon-info-sign', 'icon-screenshot', 'icon-remove-circle', 'icon-ok-circle', 'icon-ban-circle', 'icon-arrow-left', 'icon-arrow-right', 'icon-arrow-up', 'icon-arrow-down', 'icon-mail-forward', 'icon-share-alt', 'icon-resize-full', 'icon-resize-small', 'icon-plus', 'icon-minus', 'icon-asterisk', 'icon-exclamation-sign', 'icon-gift', 'icon-leaf', 'icon-fire', 'icon-eye-open', 'icon-eye-close', 'icon-warning-sign', 'icon-plane', 'icon-calendar', 'icon-random', 'icon-comment', 'icon-magnet', 'icon-chevron-up', 'icon-chevron-down', 'icon-retweet', 'icon-shopping-cart', 'icon-folder-close', 'icon-folder-open', 'icon-resize-vertical', 'icon-resize-horizontal', 'icon-bar-chart', 'icon-twitter-sign', 'icon-facebook-sign', 'icon-camera-retro', 'icon-key', 'icon-gears', 'icon-cogs', 'icon-comments', 'icon-thumbs-up-alt', 'icon-thumbs-down-alt', 'icon-star-half', 'icon-heart-empty', 'icon-signout', 'icon-linkedin-sign', 'icon-pushpin', 'icon-external-link', 'icon-signin', 'icon-trophy', 'icon-github-sign', 'icon-upload-alt', 'icon-lemon', 'icon-phone', 'icon-unchecked', 'icon-check-empty', 'icon-bookmark-empty', 'icon-phone-sign', 'icon-twitter', 'icon-facebook', 'icon-github', 'icon-unlock', 'icon-credit-card', 'icon-rss', 'icon-hdd', 'icon-bullhorn', 'icon-bell', 'icon-certificate', 'icon-hand-right', 'icon-hand-left', 'icon-hand-up', 'icon-hand-down', 'icon-circle-arrow-left', 'icon-circle-arrow-right', 'icon-circle-arrow-up', 'icon-circle-arrow-down', 'icon-globe', 'icon-wrench', 'icon-tasks', 'icon-filter', 'icon-briefcase', 'icon-fullscreen', 'icon-group', 'icon-link', 'icon-cloud', 'icon-beaker', 'icon-cut', 'icon-copy', 'icon-paperclip', 'icon-paper-clip', 'icon-save', 'icon-sign-blank', 'icon-reorder', 'icon-list-ul', 'icon-list-ol', 'icon-strikethrough', 'icon-underline', 'icon-table', 'icon-magic', 'icon-truck', 'icon-pinterest', 'icon-pinterest-sign', 'icon-google-plus-sign', 'icon-google-plus', 'icon-money', 'icon-caret-down', 'icon-caret-up', 'icon-caret-left', 'icon-caret-right', 'icon-columns', 'icon-sort', 'icon-sort-down', 'icon-sort-up', 'icon-envelope', 'icon-linkedin', 'icon-rotate-left', 'icon-undo', 'icon-legal', 'icon-dashboard', 'icon-comment-alt', 'icon-comments-alt', 'icon-bolt', 'icon-sitemap', 'icon-umbrella', 'icon-paste', 'icon-lightbulb', 'icon-exchange', 'icon-cloud-download', 'icon-cloud-upload', 'icon-user-md', 'icon-stethoscope', 'icon-suitcase', 'icon-bell-alt', 'icon-coffee', 'icon-food', 'icon-file-text-alt', 'icon-building', 'icon-hospital', 'icon-ambulance', 'icon-medkit', 'icon-fighter-jet', 'icon-beer', 'icon-h-sign', 'icon-plus-sign-alt', 'icon-double-angle-left', 'icon-double-angle-right', 'icon-double-angle-up', 'icon-double-angle-down', 'icon-angle-left', 'icon-angle-right', 'icon-angle-up', 'icon-angle-down', 'icon-desktop', 'icon-laptop', 'icon-tablet', 'icon-mobile-phone', 'icon-circle-blank', 'icon-quote-left', 'icon-quote-right', 'icon-spinner', 'icon-circle', 'icon-mail-reply', 'icon-reply', 'icon-github-alt', 'icon-folder-close-alt', 'icon-folder-open-alt', 'icon-expand-alt', 'icon-collapse-alt', 'icon-smile', 'icon-frown', 'icon-meh', 'icon-gamepad', 'icon-keyboard', 'icon-flag-alt', 'icon-flag-checkered', 'icon-terminal', 'icon-code', 'icon-reply-all', 'icon-mail-reply-all', 'icon-star-half-full', 'icon-star-half-empty', 'icon-location-arrow', 'icon-crop', 'icon-code-fork', 'icon-unlink', 'icon-question', 'icon-info', 'icon-exclamation', 'icon-superscript', 'icon-subscript', 'icon-eraser', 'icon-puzzle-piece', 'icon-microphone', 'icon-microphone-off', 'icon-shield', 'icon-calendar-empty', 'icon-fire-extinguisher', 'icon-rocket', 'icon-maxcdn', 'icon-chevron-sign-left', 'icon-chevron-sign-right', 'icon-chevron-sign-up', 'icon-chevron-sign-down', 'icon-html5', 'icon-css3', 'icon-anchor', 'icon-unlock-alt', 'icon-bullseye', 'icon-ellipsis-horizontal', 'icon-ellipsis-vertical', 'icon-rss-sign', 'icon-play-sign', 'icon-ticket', 'icon-minus-sign-alt', 'icon-check-minus', 'icon-level-up', 'icon-level-down', 'icon-check-sign', 'icon-edit-sign', 'icon-external-link-sign', 'icon-share-sign', 'icon-compass', 'icon-collapse', 'icon-collapse-top', 'icon-expand', 'icon-euro', 'icon-eur', 'icon-gbp', 'icon-dollar', 'icon-usd', 'icon-rupee', 'icon-inr', 'icon-yen', 'icon-jpy', 'icon-renminbi', 'icon-cny', 'icon-won', 'icon-krw', 'icon-bitcoin', 'icon-btc', 'icon-file', 'icon-file-text', 'icon-sort-by-alphabet', 'icon-sort-by-alphabet-alt', 'icon-sort-by-attributes', 'icon-sort-by-attributes-alt', 'icon-sort-by-order', 'icon-sort-by-order-alt', 'icon-thumbs-up', 'icon-thumbs-down', 'icon-youtube-sign', 'icon-youtube', 'icon-xing', 'icon-xing-sign', 'icon-youtube-play', 'icon-dropbox', 'icon-stackexchange', 'icon-instagram', 'icon-flickr', 'icon-adn', 'icon-bitbucket', 'icon-bitbucket-sign', 'icon-tumblr', 'icon-tumblr-sign', 'icon-long-arrow-down', 'icon-long-arrow-up', 'icon-long-arrow-left', 'icon-long-arrow-right', 'icon-apple', 'icon-windows', 'icon-android', 'icon-linux', 'icon-dribbble', 'icon-skype', 'icon-foursquare', 'icon-trello', 'icon-female', 'icon-male', 'icon-gittip', 'icon-sun', 'icon-moon', 'icon-archive', 'icon-bug', 'icon-vk', 'icon-weibo', 'icon-renren');
69
 
70
  ?>
71
+ <style type="text/css" media="screen"> .kad-popup {padding: 0 8px; font-size: 0;} #icon-dialog {font-size: 12px;} #icon-dialog label {font-size:14px; display:block; padding:4px;} #icon-dialog label.hex {font-size:12px; line-height:24px; display:inline-block; padding:6px 4px 6px 12px;} .linebreak {margin-bottom:6px; border-bottom: solid 1px #d7d7d7; padding-bottom:6px} #icon-dialog input#icon-color-hex {display:inline-block; height:24px;} #icon-dialog a#insert {margin-top:15px;}
72
 
73
  </style>
74
 
75
  </head>
76
+ <body class="kad-popup">
77
  <div id="icon-dialog">
78
  <form action="/" method="get" accept-charset="utf-8">
79
  <div class="linebreak">
shortcodes/pullquote/quote_popup.php CHANGED
@@ -46,12 +46,12 @@ var ButtonDialog = {
46
  tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
47
 
48
  </script>
49
- <style type="text/css" media="screen"> #icon-dialog label {font-size:14px; display:inline-block; padding:4px;} #icon-dialog select {display:block; height:28px; width:200px; font-size:12px;} .linebreak {margin-bottom:6px; border-bottom: solid 1px #d7d7d7; padding-bottom:6px} #icon-dialog a#insert {margin-top:10px;}
50
 
51
  </style>
52
 
53
  </head>
54
- <body>
55
  <div id="icon-dialog">
56
  <form action="/" method="get" accept-charset="utf-8">
57
  <div class="linebreak">
46
  tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog);
47
 
48
  </script>
49
+ <style type="text/css" media="screen"> .kad-popup {padding: 0 8px; font-size: 0;} #icon-dialog {font-size: 12px;} #icon-dialog label {font-size:14px; display:inline-block; padding:4px;} #icon-dialog select {display:block; height:28px; width:200px; font-size:12px;} .linebreak {margin-bottom:6px; border-bottom: solid 1px #d7d7d7; padding-bottom:6px} #icon-dialog a#insert {margin-top:10px;}
50
 
51
  </style>
52
 
53
  </head>
54
+ <body class="kad-popup">
55
  <div id="icon-dialog">
56
  <form action="/" method="get" accept-charset="utf-8">
57
  <div class="linebreak">
shortcodes/video/video_popup.php CHANGED
@@ -14,7 +14,7 @@ global $wp_scripts;
14
  <base target="_self" />
15
  <?php wp_print_scripts(); ?>
16
  <script type="text/javascript">
17
-
18
  var ButtonDialog = {
19
  local_ed : 'ed',
20
  init : function(ed) {
@@ -32,12 +32,12 @@ var ButtonDialog = {
32
 
33
  var output = '';
34
  if(width)
35
- output += '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="kadvideo mceItem" title="video width='+width+'" />';
36
  else {
37
- output += '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="kadvideo mceItem" title="video" />';
38
  }
39
  output += video;
40
- output += '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="kadvideoend mceItem" title="/video" />';
41
 
42
  tinyMCEPopup.execCommand('mceInsertContent', false, output);
43
 
14
  <base target="_self" />
15
  <?php wp_print_scripts(); ?>
16
  <script type="text/javascript">
17
+ var url = '<?php echo plugins_url(); ?>';
18
  var ButtonDialog = {
19
  local_ed : 'ed',
20
  init : function(ed) {
32
 
33
  var output = '';
34
  if(width)
35
+ output += '<img src="'+url+'/virtue-toolkit/images/t.gif" class="kadvideo mceItem" title="video width='+width+'" />';
36
  else {
37
+ output += '<img src="'+url+'/virtue-toolkit/images/t.gif" class="kadvideo mceItem" title="video" />';
38
  }
39
  output += video;
40
+ output += '<img src="'+url+'/virtue-toolkit/images/t.gif" class="kadvideoend mceItem" title="/video" />';
41
 
42
  tinyMCEPopup.execCommand('mceInsertContent', false, output);
43
 
shortcodes/video/video_shortgen.js CHANGED
@@ -20,30 +20,30 @@
20
  // Register buttons
21
  ed.addButton('kadvideo', {title : 'Insert video', cmd : 'mcekadvideo', image: url + '/img/video.png' });
22
  ed.onBeforeSetContent.add(function(ed, o) {
23
- o.content = t._do_video(o.content);
24
  });
25
  ed.onBeforeSetContent.add(function(ed, o) {
26
- o.content = t._do_videoend(o.content);
27
  });
28
 
29
  ed.onPostProcess.add(function(ed, o) {
30
  if (o.get)
31
- o.content = t._get_video(o.content);
32
  });
33
  ed.onPostProcess.add(function(ed, o) {
34
  if (o.get)
35
- o.content = t._get_videoend(o.content);
36
  });
37
  },
38
 
39
  _do_video : function(co) {
40
  return co.replace(/\[video([^\]]*)\]/g, function(a,b){
41
- return '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="kadvideo mceItem" title="video'+tinymce.DOM.encode(b)+'" />';
42
  });
43
  },
44
  _do_videoend : function(co) {
45
  return co.replace(/\[\/video([^\]]*)\]/g, function(a,b){
46
- return '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="kadvideoend mceItem" title="/video" />';
47
  });
48
  },
49
 
20
  // Register buttons
21
  ed.addButton('kadvideo', {title : 'Insert video', cmd : 'mcekadvideo', image: url + '/img/video.png' });
22
  ed.onBeforeSetContent.add(function(ed, o) {
23
+ o.content = t._do_video(o.content, url);
24
  });
25
  ed.onBeforeSetContent.add(function(ed, o) {
26
+ o.content = t._do_videoend(o.content, url);
27
  });
28
 
29
  ed.onPostProcess.add(function(ed, o) {
30
  if (o.get)
31
+ o.content = t._get_video(o.content, url);
32
  });
33
  ed.onPostProcess.add(function(ed, o) {
34
  if (o.get)
35
+ o.content = t._get_videoend(o.content, url);
36
  });
37
  },
38
 
39
  _do_video : function(co) {
40
  return co.replace(/\[video([^\]]*)\]/g, function(a,b){
41
+ return '<img src="'+url+'/img/t.gif" class="kadvideo mceItem" title="video'+tinymce.DOM.encode(b)+'" />';
42
  });
43
  },
44
  _do_videoend : function(co) {
45
  return co.replace(/\[\/video([^\]]*)\]/g, function(a,b){
46
+ return '<img src="'+url+'/img/t.gif" class="kadvideoend mceItem" title="/video" />';
47
  });
48
  },
49
 
virtue_toolkit.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Virtue ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for Virtue Theme
6
- Version: 1.5
7
  Author: Kadence Themes
8
  Author URI: http://kadencethemes.com/
9
  License: GPLv2 or later
3
  /*
4
  Plugin Name: Virtue ToolKit
5
  Description: Custom Portfolio and Shortcode functionality for Virtue Theme
6
+ Version: 1.6
7
  Author: Kadence Themes
8
  Author URI: http://kadencethemes.com/
9
  License: GPLv2 or later