Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/gg.corals.io/wp-content/plugins/strong-testimonials/assets/src/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/gg.corals.io/wp-content/plugins/strong-testimonials/assets/src/js/blocks.js
import Edit from './components/edit';

/**
 * Import wp deps
 */

const { __ } = wp.i18n;
const { registerBlockType } = wp.blocks;

class StrongTestimonialView {

    constructor() {
        this.registerBlock();
    }

    registerBlock() {

        this.blockName = 'strongtestimonials/view';

        this.blockAttributes = {               
                id: {
                    type: 'number',
                    default: 0,
                },
                mode: {
                    type: 'string',
                    default: 'display',
                }
        };

        registerBlockType( this.blockName , {
            title: 'Strong Testimonial View',
            description: __( 'Render ST View', 'strong-testimonials'),
            icon: 'editor-quote',
            category: 'common',
            supports: {
                html: false,
                customClassName: false,
            },

            attributes: this.blockAttributes,
            edit: Edit,
            save: () => {
                return null;
            },
        });
    }
}

let strongTestimonialsView = new StrongTestimonialView();

Spamworldpro Mini