Heray-Was-Here
Server : Apache
System : Linux vps37394.inmotionhosting.com 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
User : jasonp18 ( 1000)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/jasonp18/www/wp-content/plugins/strong-testimonials/assets/src/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jasonp18/www/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();

Hry