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 offerid = jQuery('#offerid').val(); var offertype = jQuery('#offertype').val(); if(offertype == 'ceoffer'){ var shortcode = '[wpsm_bigoffer post_id="'+offerid+'" offset="" limit=""] '; } else if(offertype == 'cemerchant'){ var shortcode = '[content-egg-block template=custom/all_merchant_widget post_id="'+offerid+'"] '; } else if(offertype == 'cewidget'){ var shortcode = '[content-egg-block template=custom/all_logolist_widget post_id="'+offerid+'"] '; } else if(offertype == 'cegrid'){ var shortcode = '[content-egg-block template=custom/all_offers_grid post_id="'+offerid+'"] '; } else if(offertype == 'celist'){ var shortcode = '[content-egg-block template=custom/all_offers_list post_id="'+offerid+'"] '; } else if(offertype == 'celistlogo'){ var shortcode = '[content-egg-block template=custom/all_offers_logo post_id="'+offerid+'"] '; } else if(offertype == 'celistdef'){ var shortcode = '[content-egg-block template=offers_list post_id="'+offerid+'"] '; } else if(offertype == 'celistdeflogo'){ var shortcode = '[content-egg-block template=offers_logo post_id="'+offerid+'"] '; } else if(offertype == 'cestat'){ var shortcode = '[content-egg-block template=price_statistics post_id="'+offerid+'"] '; } else if(offertype == 'cehistory'){ var shortcode = '[content-egg-block template=custom/all_pricehistory_full post_id="'+offerid+'"] '; } else if(offertype == 'cealert'){ var shortcode = '[content-egg-block template=custom/all_pricealert_full post_id="'+offerid+'"] '; } // 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="offerid"><?php _e('Type post name', 'rehub_framework') ;?></label> <input id="offerid" name="offerid" type="text" value="" /> <small>You can choose several for reviews list</small> </p> <p> <label><?php _e('Type', 'rehub_framework') ;?></label> <select name="offertype" id="offertype" size="1"> <option value="ceoffer" selected="selected"><?php _e('Post box with comparison widget', 'rehub_framework') ;?></option> <option value="cemerchant"><?php _e('Content Egg merchants widget', 'rehub_framework') ;?></option> <option value="cewidget"><?php _e('Content Egg price widget', 'rehub_framework') ;?></option> <option value="cegrid"><?php _e('Content Egg grid', 'rehub_framework') ;?></option> <option value="celist"><?php _e('Content Egg list with offer images', 'rehub_framework') ;?></option> <option value="celistlogo"><?php _e('Content Egg list with logo images', 'rehub_framework') ;?></option> <option value="celistdef"><?php _e('Content Egg list with offer images (default style)', 'rehub_framework') ;?></option> <option value="celistdeflogo"><?php _e('Content Egg list with logo images (default style)', 'rehub_framework') ;?></option> <option value="cestat"><?php _e('Content Egg Price statistic', 'rehub_framework') ;?></option> <option value="cehistory"><?php _e('Content Egg price history', 'rehub_framework') ;?></option> <option value="cealert"><?php _e('Content Egg price alert', 'rehub_framework') ;?></option> </select> </p> <p> <label> </label> <input type="button" id="submit" class="button" value="<?php _e('Insert', 'rehub_framework') ;?>" name="submit" /> </p> </form> <?php $path_script = get_template_directory_uri() . '/jsonids/json-ids.php'; print <<<END <script data-cfasync="false"> jQuery(document).ready(function () { jQuery("#offerid").tokenInput("$path_script", { minChars: 3, preventDuplicates: true, theme: "rehub", tokenLimit: 1, onSend: function(params) { params.data.posttype = 'any'; params.data.postnum = 5; } }); }); </script> END; ?>
[+]
..
[-] 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]