| @@ -6,9 +6,9 @@ | ||
| 6 | 6 | global $wp_scripts; |
| 7 | 7 | ?> |
| 8 | 8 | <!DOCTYPE html> |
| 9 | 9 | <head> |
| 10 | -<title><?php _e("Insert Columns", "virtue"); ?></title> | |
| 10 | +<title><?php _e("Insert Columns", 'virtue-toolkit'); ?></title> | |
| 11 | 11 | <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> |
| 12 | 12 | <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/wp-includes/js/tinymce/tiny_mce_popup.js"></script> |
| 13 | 13 | <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script> |
| 14 | 14 | <base target="_self" /> |
| @@ -13,9 +13,9 @@ | ||
| 13 | 13 | <script language="javascript" type="text/javascript" src="<?php echo site_url(); ?>/wp-includes/js/tinymce/utils/form_utils.js"></script> |
| 14 | 14 | <base target="_self" /> |
| 15 | 15 | <?php wp_print_scripts(); ?> |
| 16 | 16 | <script type="text/javascript"> |
| 17 | - | |
| 17 | + var url = '<?php echo plugins_url(); ?>'; | |
| 18 | 18 | var ButtonDialog = { |
| 19 | 19 | local_ed : 'ed', |
| 20 | 20 | init : function(ed) { |
| 21 | 21 | ButtonDialog.local_ed = ed; |
| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | // Try and remove existing style / blockquote |
| 27 | 27 | tinyMCEPopup.execCommand('mceRemoveNode', false, null); |
| 28 | 28 | |
| 29 | 29 | // set up variables to contain our input values |
| 30 | - var coutput = jQuery('#icon-dialog select#columnoutput').val(); | |
| 30 | + var coutput = 2; | |
| 31 | 31 | |
| 32 | 32 | var output = ''; |
| 33 | 33 | |
| 34 | 34 | // setup the output of our shortcode |
| @@ -34,55 +34,55 @@ | ||
| 34 | 34 | // setup the output of our shortcode |
| 35 | 35 | switch (coutput) |
| 36 | 36 | { |
| 37 | 37 | case '1': |
| 38 | - output = '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnstart mceItem" title="hcolumns" />'; | |
| 38 | + output = '<img src="'+url+'/virtue-toolkit/images/t.gif" class="columnstart mceItem" title="hcolumns" />'; | |
| 39 | 39 | if(document.getElementById('2column').checked) { |
| 40 | - output += '<div class="span6"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span6 mceItem" title="columnhelper span6" />'; | |
| 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 | 41 | output += '<p>add content here</p>'; |
| 42 | 42 | output += '</div> '; |
| 43 | - output += '<div class="span6"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span6 mceItem" title="columnhelper span6" />'; | |
| 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 | 44 | output += '<p>add content here</p>'; |
| 45 | 45 | output += '</div> '; |
| 46 | 46 | }else if(document.getElementById('2columnright').checked) { |
| 47 | - output += '<div class="span4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span4 mceItem" title="columnhelper span4" />'; | |
| 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 | 48 | output += '<p>add content here</p>'; |
| 49 | 49 | output += '</div> '; |
| 50 | - output += '<div class="span8"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span8 mceItem" title="columnhelper span8" />'; | |
| 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 | 51 | output += '<p>add content here</p>'; |
| 52 | 52 | output += '</div> '; |
| 53 | 53 | }else if(document.getElementById('2columnleft').checked) { |
| 54 | - output += '<div class="span8"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span8 mceItem" title="columnhelper span8" />'; | |
| 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 | 55 | output += '<p>add content here</p>'; |
| 56 | 56 | output += '</div> '; |
| 57 | - output += '<div class="span4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span4 mceItem" title="columnhelper span4" />'; | |
| 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 | 58 | output += '<p>add content here</p>'; |
| 59 | 59 | output += '</div> '; |
| 60 | 60 | }else if(document.getElementById('3column').checked) { |
| 61 | - output += '<div class="span4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span4 mceItem" title="columnhelper span4" />'; | |
| 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 | 62 | output += '<p>add content here</p>'; |
| 63 | 63 | output += '</div> '; |
| 64 | - output += '<div class="span4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span4 mceItem" title="columnhelper span4" />'; | |
| 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 | 65 | output += '<p>add content here</p>'; |
| 66 | 66 | output += '</div> '; |
| 67 | - output += '<div class="span4"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span4 mceItem" title="columnhelper span4" />'; | |
| 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 | 68 | output += '<p>add content here</p>'; |
| 69 | 69 | output += '</div> '; |
| 70 | 70 | }else if(document.getElementById('4column').checked) { |
| 71 | - output += '<div class="span3"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span3 mceItem" title="columnhelper span3" />'; | |
| 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 | 72 | output += '<p>add content here</p>'; |
| 73 | 73 | output += '</div> '; |
| 74 | - output += '<div class="span3"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span3 mceItem" title="columnhelper span3" />'; | |
| 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 | 75 | output += '<p>add content here</p>'; |
| 76 | 76 | output += '</div> '; |
| 77 | - output += '<div class="span3"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span3 mceItem" title="columnhelper span3" />'; | |
| 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 | 78 | output += '<p>add content here</p>'; |
| 79 | 79 | output += '</div> '; |
| 80 | - output += '<div class="span3"><img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnhelper span3 mceItem" title="columnhelper span3" />'; | |
| 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 | 81 | output += '<p>add content here</p>'; |
| 82 | 82 | output += '</div> '; |
| 83 | 83 | } |
| 84 | - output += '<img src="'+tinymce.baseURL+'/plugins/wpgallery/img/t.gif" class="columnend mceItem" title="/hcolumns" />'; | |
| 84 | + output += '<img src="'+url+'/virtue-toolkit/images/t.gif" class="columnend mceItem" title="/hcolumns" />'; | |
| 85 | 85 | |
| 86 | 86 | break; |
| 87 | 87 | default: |
| 88 | 88 | output = '[columns] '; |
| @@ -143,24 +143,17 @@ | ||
| 143 | 143 | }; |
| 144 | 144 | tinyMCEPopup.onInit.add(ButtonDialog.init, ButtonDialog); |
| 145 | 145 | |
| 146 | 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> | |
| 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 | 148 | |
| 149 | 149 | </head> |
| 150 | -<body> | |
| 150 | +<body class="kad-popup"> | |
| 151 | 151 | <div id="icon-dialog"> |
| 152 | 152 | <form action="/" method="get" id="columnform" accept-charset="utf-8"> |
| 153 | 153 | <div> |
| 154 | 154 | <p>Choose a Column Layout:</p> |
| 155 | 155 | </div> |
| 156 | - <div class="option-row"> | |
| 157 | - <label for="column-option">Choose Column Output:</label> | |
| 158 | - <select name="column-one" id="columnoutput"> | |
| 159 | - <option value="2">Shortcodes</option> | |
| 160 | - <option value="1">Visual Aid</option> | |
| 161 | - </select> | |
| 162 | - </div> | |
| 163 | 156 | <div class="option-row"> |
| 164 | 157 | <label for="2column">Two Column</label> |
| 165 | 158 | <input type="radio" name="column" value="2column" id="2column"> |
| 166 | 159 | <label class="imglabel" for="2column"><img src="<?php echo get_template_directory_uri()?>/assets/img/twocolumn.jpg" /></label> |