$33 GRAYBYTE WORDPRESS FILE MANAGER $34

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/var/softaculous/sitepad/editor/site-data/plugins/pagelayer/js/react/src/blocks/

HOME
Current File : /var/softaculous/sitepad/editor/site-data/plugins/pagelayer/js/react/src/blocks//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>
		</>
	)
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
21 Feb 2026 2.55 AM
root / root
0755
quote
--
21 Feb 2026 2.55 AM
root / root
0755
render-group
--
21 Feb 2026 2.55 AM
root / root
0755
archive-posts.js
1.395 KB
18 Feb 2026 11.32 PM
root / root
0644
col.js
1.624 KB
18 Feb 2026 11.32 PM
root / root
0644
facebook_button.js
1.282 KB
18 Feb 2026 11.32 PM
root / root
0644
image_slider.js
3.664 KB
18 Feb 2026 11.32 PM
root / root
0644
post_folio.js
1.624 KB
18 Feb 2026 11.32 PM
root / root
0644
posts.js
4.672 KB
18 Feb 2026 11.32 PM
root / root
0644
primary_menu.js
4.631 KB
18 Feb 2026 11.32 PM
root / root
0644
review_slider.js
1.753 KB
18 Feb 2026 11.32 PM
root / root
0644
row.js
8.442 KB
18 Feb 2026 11.32 PM
root / root
0644
sitemap_item.js
2.332 KB
18 Feb 2026 11.32 PM
root / root
0644
slides.js
1.67 KB
18 Feb 2026 11.32 PM
root / root
0644
tabs.js
3.14 KB
18 Feb 2026 11.32 PM
root / root
0644
testimonial_slider.js
1.717 KB
18 Feb 2026 11.32 PM
root / root
0644
video.js
2.381 KB
18 Feb 2026 11.32 PM
root / root
0644
video_slider.js
1.704 KB
18 Feb 2026 11.32 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF