# powerkit/2.4.4/modules/facebook/public/block/render.php

Powerkit – Supercharge your WordPress Site, version 2.4.4. 27 lines.

- Page: https://pluginprobe.com/plugins/powerkit/2.4.4/code/modules/facebook/public/block/render.php
- Raw: https://pluginprobe.com/plugins/powerkit/2.4.4/raw/modules/facebook/public/block/render.php
- Modified: 2020-12-30T06:28:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/powerkit/2.4.4/code/modules/facebook/public/block/render.php#L10-L20`.

```php
<?php
/**
 * Facebook Fanpage block template
 *
 * @var        $attributes - block attributes
 * @var        $options - layout options
 *
 * @link       https://codesupply.co
 * @since      1.0.0
 *
 * @package    PowerKit
 * @subpackage PowerKit/templates
 */

?>

<div class="<?php echo esc_attr( $attributes['className'] ); ?>" <?php echo ( isset( $attributes['anchor'] ) ? ' id="' . esc_attr( $attributes['anchor'] ) . '"' : '' ); ?>>
	<div class="fb-page"
		data-href="<?php echo esc_url( $attributes['href'] ); ?>"
		data-hide-cover="<?php echo esc_attr( $attributes['showCover'] ? 'false' : 'true' ); ?>"
		data-show-facepile="<?php echo esc_attr( $attributes['showFacepile'] ? 'true' : 'false' ); ?>"
		data-show-posts="<?php echo esc_attr( $attributes['showPosts'] ? 'true' : 'false' ); ?>"
		data-small-header="<?php echo esc_attr( $attributes['smallHeader'] ? 'true' : 'false' ); ?>"
		data-adapt-container-width="true"
	></div>
</div>

```
