403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/themes/rehub-theme/shortcodes/tinyMCE/includes/list.php
<?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 list
	jQuery('#submit').click(function(){

		var shortcode = '[wpsm_list';
		
			var value = jQuery('#form').find('#list-type').val();
			shortcode += ' type="' + value + '"';

			if(jQuery('#list-hover').is(":checked")) {
				shortcode += ' hover="1"';
			}

			if(jQuery('#list-dark').is(":checked")) {
				shortcode += ' darklink="1"';
			}	

			if(jQuery('#list-gap').is(":checked")) {
				shortcode += ' gap="small"';
			}									
		
		shortcode += ']<ul>';
		
		if ( jQuery('#list-text').val() !== '' ){
			jQuery.each(jQuery('#list-text').val().split('\n'), function(index, value) { 
			  shortcode += '<li>' + value +'</li>';
			});
		}else{
			shortcode += '<li>Sample Item #1</li><li>Sample Item #2</li><li>Sample Item #3</li>';
		}
		
		shortcode += '</ul>[/wpsm_list]';
		
		// 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 esc_html_e('Type', 'rehub-theme') ;?></label>
		<select name="list-type" id="list-type" size="1">
            <option value="arrow" selected="selected"><?php esc_html_e('Arrow', 'rehub-theme') ;?></option>
            <option value="check"><?php esc_html_e('Check', 'rehub-theme') ;?></option>
			<option value="star"><?php esc_html_e('Star', 'rehub-theme') ;?></option>
			<option value="bullet"><?php esc_html_e('Bullet', 'rehub-theme') ;?></option>			
        </select>
	</p>
    <p>
        <label><?php esc_html_e('List Text', 'rehub-theme') ;?></label>
        <textarea name="list-text" id="list-text" rows="6"></textarea><br /><small><?php esc_html_e('Separated by a new-line (by Enter)', 'rehub-theme') ;?></small>
    </p>
	<p class="half_left">
		<label><?php esc_html_e('Pretty hover?', 'rehub-theme') ;?></label>
        <input id="list-hover" name="list-hover" type="checkbox" class="checks" value="false" />
	</p> 
	<p class="half_left second_half">
		<label><?php esc_html_e('Make links dark?', 'rehub-theme') ;?></label>
        <input id="list-dark" name="list-dark" type="checkbox" class="checks" value="false" />
	</p> 
	<p>
		<label><?php esc_html_e('Make small gap between items?', 'rehub-theme') ;?></label>
        <input id="list-gap" name="list-gap" type="checkbox" class="checks" value="false" />
	</p> 
	 <p>
        <label>&nbsp;</label>
        <input type="button" id="submit" class="button" value="<?php esc_html_e('Insert', 'rehub-theme') ;?>" name="submit" />
    </p>
</form>

Youez - 2016 - github.com/yon3zu
LinuXploit