| Server IP : 5.129.245.98 / Your IP : 216.73.217.19 Web Server : Apache/2.4.66 (Debian) System : Linux 1b8c17c336b9 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/rehub-theme/shortcodes/tinyMCE/includes/ |
Upload File : |
<?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 shortcode = '[wpsm_top postid="'+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 esc_html_e('Type post name', 'rehub-theme') ;?></label>
<input id="offerid" name="offerid" type="text" value="" />
<small>You can choose several for reviews list</small>
</p>
<p>
<label> </label>
<input type="button" id="submit" class="button" value="<?php esc_html_e('Insert', 'rehub-theme') ;?>" 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",
onSend: function(params) {
params.data.posttype = 'any';
params.data.postnum = 6;
}
});
});
</script>
END;
?>