403Webshell
Server IP : 89.248.107.232  /  Your IP : 216.73.217.70
Web Server : Apache
System : Linux host2.kasilh.com 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
User : seg ( 10005)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/seg-sa.es/gessing.es/wp-content/plugins/jds-portfolio/BUENO/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/seg-sa.es/gessing.es/wp-content/plugins/jds-portfolio/BUENO/js/wp-jds-buttons.js
// JavaScript Document

jQuery(document).ready(function($) {



	// Start Shortcodes Click

	(function() {

	    tinymce.create('tinymce.plugins.wpjdsshortcodes', {

	        init : function(ed, url) {

	        	

	            ed.addButton('wpjdsshortcodes', {

	                title : 'JDs Portfolio Shortcodes',

	                image : url+'/jds-icon.png',

	                onclick : function() {



	                	// Hide errors

	                	jQuery('.wp-jds-popup-error').hide();



	                	// Fade in popups

						jQuery('.wp-jds-popup-overlay').fadeIn();

	                    jQuery('.wp-jds-popup-content').fadeIn();

	 				}

	            });

	        },

	        createControl : function(n, cm) {

	            return null;

	        },

	    });

	 

	    tinymce.PluginManager.add('wpjdsshortcodes', tinymce.plugins.wpjdsshortcodes);

	})();



	jQuery( document ).on('click', '#wp_jds_insert_shortcode', function () {

		

		var shortcode = jQuery('#wp_jds_shortcode_select').val();

		var shortcodestr = '';



		if(shortcode == '') {

			jQuery('.wp-jds-popup-error').fadeIn();

			return false;

		} else {



			jQuery('.wp-jds-popup-error').hide();

				

			switch(shortcode) {

				case 'jds_portfolio' :

					

					var orderby = jQuery('#jds_port_orderby').val();

					var order 	= jQuery('#jds_port_order').val();



					shortcodestr += '[JDs_portfolio';



					if( orderby != '' ) {

						shortcodestr += ' orderby="'+orderby+'"';						

					}



					if( orderby != '' ) {

						shortcodestr += ' order="'+order+'"';						

					}



					shortcodestr += '][/JDs_portfolio]';

					break;



				default:

					break;

			}

		}

			 	

	 	//send_to_editor(str);

        tinymce.get('content').execCommand('mceInsertContent',false, shortcodestr);



  		jQuery('.wp-jds-popup-overlay').fadeOut();

		jQuery('.wp-jds-popup-content').fadeOut();

	});



	// Hide adn show shortcode options on selects shortcode

	jQuery('#wp_jds_shortcode_select').change(function() {

		

		var shortcode = jQuery(this).val();

		

		// Hide all the boxes

		jQuery('.wp-jds-shortcodes-options').hide();



		switch(shortcode) {

			case 'jds_portfolio' 	:

				jQuery('#wp_jds_portfolio_short').show();

				break;

								

			default:

				break;

		}

	});



	// Close popup

	jQuery( document ).on('click', '.wp-jds-popup-close-button, .wp-jds-popup-overlay', function () {

		jQuery('.wp-jds-popup-overlay').fadeOut();

		jQuery('.wp-jds-popup-content').fadeOut();

	});

	

});

Youez - 2016 - github.com/yon3zu
LinuXploit