<?php
/**
 * Block pattern setup file.
 *
 * @package    Zooey
 * @copyright  WebMan Design, Oliver Juhas
 *
 * @since    1.0.0
 * @version  2.0.5
 */

namespace WebManDesign\Zooey\Content;

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;

// Add block pattern setup args.
Block_Pattern::add_pattern_args( __FILE__, array(
	'title'    => _x( 'Single person info card', 'Block pattern title.', 'zooey' ),
	'keywords' => array(
		esc_html_x( 'card', 'keyword', 'zooey' ),
		esc_html_x( 'team', 'keyword', 'zooey' ),
		esc_html_x( 'staff', 'keyword', 'zooey' ),
		esc_html_x( 'person', 'keyword', 'zooey' ),
	),
	'viewportWidth' => 320,
) );

// Block pattern content:

$image = Demo::Get_image_url( '3to4-3' );

?>

<!-- wp:group {"metadata":{"name":"<?php esc_attr_e( 'Person card', 'zooey' ); ?>"},"style":{"spacing":{"blockGap":"var:preset|spacing|s"}}} -->
<div class="wp-block-group">

	<!-- wp:image {"aspectRatio":"3/4","scale":"cover","sizeSlug":"thumbnail","style":{"border":{"radius":{"bottomLeft":"20rem","bottomRight":"20rem"}}}} -->
	<figure class="wp-block-image size-thumbnail has-custom-border"><img src="<?php echo esc_url_raw( $image ); ?>" alt="<?php echo esc_attr( Demo::Get_text( 'alt' ) ); ?>" style="border-bottom-left-radius:20rem;border-bottom-right-radius:20rem;aspect-ratio:3/4;object-fit:cover"/></figure>
	<!-- /wp:image -->

	<!-- wp:group {"style":{"spacing":{"blockGap":{"top":"0","left":"0"}}}} -->
	<div class="wp-block-group">

		<!-- wp:heading {"textAlign":"center","level":3,"fontSize":"l"} -->
		<h3 class="wp-block-heading has-text-align-center has-l-font-size"><?php Demo::The_text( 'people/name' ); ?></h3>
		<!-- /wp:heading -->

		<!-- wp:paragraph {"align":"center","style":{"typography":{"textTransform":"uppercase"}},"fontSize":"s"} -->
		<p class="has-text-align-center has-s-font-size" style="text-transform:uppercase"><?php Demo::The_text( 'people/job' ); ?></p>
		<!-- /wp:paragraph -->

	</div>
	<!-- /wp:group -->

	<!-- wp:social-links {"iconColor":"primary","size":"has-normal-icon-size","style":{"spacing":{"blockGap":{"top":"var:preset|spacing|s","left":"var:preset|spacing|s"}}},"className":"is-style-logos-only","layout":{"type":"flex","justifyContent":"center"}} -->
	<ul class="wp-block-social-links has-normal-icon-size has-icon-color is-style-logos-only">
		<!-- wp:social-link {"url":"#0","service":"instagram"} /-->
		<!-- wp:social-link {"url":"#0","service":"facebook"} /-->
		<!-- wp:social-link {"url":"#0","service":"youtube"} /-->
	</ul>
	<!-- /wp:social-links -->

</div>
<!-- /wp:group -->
