PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
themes
/
rehub
/
shortcodes
/
tinyMCE
/
includes
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> <script data-cfasync="false"> jQuery(document).ready(function() { // handles the click event of the submit box jQuery('#submit').click(function(){ //var offerlinkid = jQuery('#offerlinkid').val(); var reviewBoxtitle = jQuery('#reviewBoxtitle').val(); var reviewBoxcontent = jQuery('#reviewBoxcontent').val(); var reviewBoxcriterias = jQuery('#reviewBoxcriterias').val(); var reviewBoxcons = jQuery('#reviewBoxcons').val(); var reviewBoxpros = jQuery('#reviewBoxpros').val(); var reviewBoxscore = jQuery('#reviewBoxscore').val(); var shortcode = '[wpsm_reviewbox '; if(reviewBoxtitle !== '') { shortcode += 'title="'+reviewBoxtitle+'" '; } if ( reviewBoxcontent !== '' ){ shortcode += 'description="'+reviewBoxcontent+'" '; } if(reviewBoxcriterias !== '') { shortcode += 'criterias="'; jQuery.each(reviewBoxcriterias.split('\n'), function(index, value) { shortcode += value +';'; }); shortcode += '" '; } if(reviewBoxpros !== '') { shortcode += 'pros="'; jQuery.each(reviewBoxpros.split('\n'), function(index, value) { shortcode += value +';'; }); shortcode += '" '; } if(reviewBoxcons !== '') { shortcode += 'cons="'; jQuery.each(reviewBoxcons.split('\n'), function(index, value) { shortcode += value +';'; }); shortcode += '" '; } if(reviewBoxscore !== '') { shortcode += 'score="'+reviewBoxscore+'" '; } 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 for="reviewBoxtitle"><?php _e('Review heading', 'rehub_framework') ;?></label> <input id="reviewBoxtitle" name="reviewBoxtitle" type="text" value="" /> </p> <p> <label for="reviewBoxcontent"><?php _e('Review short description', 'rehub_framework') ;?></label> <textarea id="reviewBoxcontent" name="reviewBoxcontent" rows="6"></textarea> </p> <p> <label for="reviewBoxcriterias"><?php _e('Review criterias', 'rehub_framework') ;?></label> <textarea id="reviewBoxcriterias" name="reviewBoxcriterias" rows="6"></textarea> <small>Only 1-10 points are supported. Divider between criteria and score is ":", set each criteria from next line> Example:</small> <small>Design:8</small> <small>Price:9</small> <small>Usability:6</small> </p> <p> <label for="reviewBoxscore"><?php _e('Review manual score', 'rehub_framework') ;?></label> <input id="reviewBoxscore" name="reviewBoxscore" type="number" value="" step="1" min="0" max="10" /> <small>By default, score is average between score criterias, but you can add own</small><br/> </p> <p> <label for="reviewBoxpros"><?php _e('Review pros', 'rehub_framework') ;?></label> <textarea id="reviewBoxpros" name="reviewBoxpros" rows="6"></textarea> <small>Set each pros from next line</small> </p> <p> <label for="reviewBoxcons"><?php _e('Review cons', 'rehub_framework') ;?></label> <textarea id="reviewBoxcons" name="reviewBoxcons" rows="6"></textarea> <small>Set each cons from next line</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]