PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
shortcodes
/
tinyMCE
/
includes
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <script data-cfasync="false"> // executes this when the DOM is ready jQuery(document).ready(function() { // handles the click event of the submit pos jQuery('#submit').click(function(){ var max = parseInt(jQuery('#form #max').val()); var color = jQuery('#form #color').val(); var marktype = jQuery('#form #marktype').val(); var markcolor = jQuery('#form #markcolor').val(); var unit = jQuery('#form #unit').val(); var lines = jQuery('#form #lines').val(); shortcode = '[wpsm_compare_bar'; shortcode += ' max="'+max+'"'; shortcode += ' color="'+color+'"'; shortcode += ' marktype="'+marktype+'"'; shortcode += ' markcolor="'+markcolor+'"'; shortcode += ' unit="'+unit+'"'; shortcode += ' lines="'; jQuery.each(jQuery('#lines').val().split('\n'), function(index, value) { shortcode += value +'@@'; }); shortcode += '"'; shortcode += ']'; // inserts the shortcode into the active editor window.send_to_editor(shortcode); // closes Thickbox tb_remove(); }); }); </script> <form action="/" method="get" id="form" name="form" accept-charset="utf-8"> <p> <label><?php _e('Maximum', 'rehub_framework') ;?></label> <input type="number" name="max" id="max"><br /><small><?php _e('Set value which will be equal to 100%', 'rehub_framework') ;?></small> </p> <p> <label><?php _e('Color', 'rehub_framework') ;?></label> <input id="color" name="color" type="text" value="" /><small><?php _e('Set default color or leave empty to leave default color as grey', 'rehub_framework') ;?></small> </p> <p> <label>How to choose highlighted bar</label> <select name="marktype" id="marktype" size="1"> <option value="max" selected="selected"><?php _e('With maximum value', 'rehub_framework') ;?></option> <option value="min"><?php _e('With minimum value', 'rehub_framework') ;?></option> </select> </p> <p> <label><?php _e('Highlight Color', 'rehub_framework') ;?></label> <input id="markcolor" name="markcolor" type="text" value="" /><small><?php _e('Set highlighted color or leave empty to leave default color as orange', 'rehub_framework') ;?></small> </p> <p> <label><?php _e('Unit', 'rehub_framework') ;?></label> <input id="unit" name="unit" type="text" value="" /><small><?php _e('Set unit, will be added to value', 'rehub_framework') ;?></small> </p> <p> <label><?php _e('Set bars (Title::Value::Link', 'rehub_framework') ;?></label> <textarea name="lines" id="lines" rows="4"></textarea><br /><small>Set bars, each bar from new line (by Enter).<br /> Example: Samsung A5::3::http://yourlink.com. <br />Link is optional. <br />Value must be without any words, just number!!!! <br />Value must be less than maximum number</small> </p> <p> <label> </label> <input type="button" id="submit" class="button" value="<?php _e('Insert', 'rehub_framework') ;?>" name="submit" /> </p> </form>
[+]
..
[-] quote.php
[edit]
[-] numberbox.php
[edit]
[-] toggle.php
[edit]
[-] postimagesslider.php
[edit]
[-] countdown.php
[edit]
[-] column.php
[edit]
[-] woobox.php
[edit]
[-] gallerycarousel.php
[edit]
[-] promobox.php
[edit]
[-] offerbox.php
[edit]
[-] rss.php
[edit]
[-] tooltip.php
[edit]
[-] titlebox.php
[edit]
[-] divider.php
[edit]
[-] cartbox.php
[edit]
[-] compare-bars.php
[edit]
[-] recentpostcarousel.php
[edit]
[-] reviewbox.php
[edit]
[-] button.php
[edit]
[-] taxarchive.php
[edit]
[-] customget.php
[edit]
[-] highlight.php
[edit]
[-] categorizator.php
[edit]
[-] dropcap.php
[edit]
[-] offerscorebox.php
[edit]
[-] numberheading.php
[edit]
[-] tabs.php
[edit]
[-] box.php
[edit]
[-] accordion.php
[edit]
[-] codebox.php
[edit]
[-] itinerary.php
[edit]
[-] lightbox.php
[edit]
[-] membercontent.php
[edit]
[-] map.php
[edit]
[-] woocompare.php
[edit]
[-] colortable.php
[edit]
[-] woolist.php
[edit]
[-] affbutton.php
[edit]
[-] reviewlistbox.php
[edit]
[-] recentpostlist.php
[edit]
[-] testimonial.php
[edit]
[-] proscons.php
[edit]
[-] bars.php
[edit]
[-] video.php
[edit]
[-] slider.php
[edit]
[-] list.php
[edit]
[-] price.php
[edit]