| Server IP : 188.114.97.2 / Your IP : 104.23.243.201 Web Server : Apache/2.4.59 (Debian) System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64 User : edlftp ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/nicolasj/www/blog.ecoledelangues.be/wp-content/themes/metro/tinymce/ |
Upload File : |
<?php
$tmp = explode( 'wp-content', __FILE__ );
$wp_path = $tmp[0];
require_once( $wp_path . '/wp-load.php' );
require_once( 'options.php' );
$shortcode = trim( $_GET['shortcode'] );
?>
<!DOCTYPE html>
<html>
<head></head>
<body>
<div class="om-tmce-sortcode-container" id="om-tmce-sortcode-container">
<input type="hidden" name="om-tmce-shortcode-type" id="om-tmce-shortcode-type" value="<?php echo $shortcode?>">
<br/>
<table class="form-table">
<?php echo om_tmce_shortcode_options_machine($shortcode); ?>
</table>
<br/><br/>
<a href="#" class="button-primary" id="om_tmce_insert_button"><?php _e('Insert Shortcode','om_theme') ?></a>
</div>
<script>om_tmce_popup_init();</script>
<script>
function initPickers()
{
jQuery('#om-tmce-sortcode-container .om-option-color').each(function(){
var option_id=this.id;
jQuery('#'+option_id+'_picker').children('div').css('backgroundColor', this.value);
jQuery('#'+option_id+'_picker').ColorPicker({
color: this.value,
onShow: function (colpkr) {
jQuery(colpkr).fadeIn(500);
return false;
},
onHide: function (colpkr) {
jQuery(colpkr).fadeOut(500);
return false;
},
onChange: function (hsb, hex, rgb) {
jQuery('#'+option_id+'_picker').children('div').css('backgroundColor', '#' + hex);
jQuery('#'+option_id+'_picker').next('input').attr('value','#' + hex);
}
});
});
}
initPickers();
</script>
</body>
</html>