SHELL BYPASS 403 |
Modern UI. Responsive. Powerful.

Faizzz-Chin Shell

Uname\Kernel: Linux server.kxo.bgz.mybluehostin.me 3.10.0-1160.119.1.el7.tuxcare.els19.x86_64 #1 SMP Mon Mar 31 17:29:00 UTC 2025 x86_64
Server: Apache
PHP Version: 8.2.29 [ PHP INFO ]
Operating System: Linux
Server Ip: 162.240.163.222
Your Ip: 216.73.216.145
Date Time: 2025-07-12 13:23:41
User: dilseshaadi (1027) | Group: dilseshaadi (1027)
Safe Mode: OFF
Disable Function: exec,passthru,shell_exec,system

name : facebook_button.js
import { useEffect, useRef, useState} from '@wordpress/element';

export const RenderFacebookButton = (props) => {
	const { _props, pl_props, tag, data } = props;
	const { attributes } = _props;
	const { id, atts } = data;
	
	const facbookRef = useRef(null)
	const [url, setUrl] = useState(null);
	
	useEffect(() => {
		
		if(atts['link_type'] == 'current') {
			atts['custom-url'] = pagelayer_post_permalink;			
			setUrl(atts['custom-url']);
		}
		
		const timer = setTimeout(() => {
           	pagelayer_fb_apps(jQuery(facbookRef.current));
        }, 300);

        return () => {
            clearTimeout(timer);
        };
	}, [ attributes ]);

	return (
		<>
			<div className="pagelayer-fb-btn-container" pagelayer-facebook-load="1" ref={facbookRef}>
				<span className='pagelayer-app-details' pagelayer-app-id={atts['fb-app-id'] ? atts['fb-app-id'] : ''} ></span>
				<div id="fb-root"></div>
				<div
					className="fb-like pagelayer-fb-btn-details"
					id="fb-like-btn"
					data-href={ atts['custom-url'] ? atts['custom-url'] : url}
					data-layout={ atts?.layout }
					data-action={ atts?.btn_action }
					data-show-faces={ atts?.peoples_faces }
					data-size={ atts?.btn_size }
					data-share={ atts?.share_btn } 
				></div>
			</div>
		</>
	)
}
© 2025 Faizzz-Chin