<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[BuddyPress][12579] trunk/src/bp-members: Introduce the BP Member Block</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { white-space: pre-line; overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta" style="font-size: 105%">
<dt style="float: left; width: 6em; font-weight: bold">Revision</dt> <dd><a style="font-weight: bold" href="http://buddypress.trac.wordpress.org/changeset/12579">12579</a><script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","description":"Review this Commit","action":{"@type":"ViewAction","url":"http://buddypress.trac.wordpress.org/changeset/12579","name":"Review Commit"}}</script></dd>
<dt style="float: left; width: 6em; font-weight: bold">Author</dt> <dd>imath</dd>
<dt style="float: left; width: 6em; font-weight: bold">Date</dt> <dd>2020-03-25 07:39:22 +0000 (Wed, 25 Mar 2020)</dd>
</dl>
<pre style='padding-left: 1em; margin: 2em 0; border-left: 2px solid #ccc; line-height: 1.25; font-size: 105%; font-family: sans-serif'>Introduce the BP Member Block
It uses the BP Blocks API to register a block to let site owners feature one member of their community site. It includes Block settings to enable/disable some information such as the profile photo, cover image, @mention name, profile button.
See <a href="http://buddypress.trac.wordpress.org/ticket/8048">#8048</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunksrcbpmembersclassesclassbpmemberscomponentphp">trunk/src/bp-members/classes/class-bp-members-component.php</a></li>
</ul>
<h3>Added Paths</h3>
<ul>
<li><a href="#trunksrcbpmembersbpmembersblocksphp">trunk/src/bp-members/bp-members-blocks.php</a></li>
<li>trunk/src/bp-members/css/</li>
<li>trunk/src/bp-members/css/blocks/</li>
<li><a href="#trunksrcbpmemberscssblocksmemberrtlcss">trunk/src/bp-members/css/blocks/member-rtl.css</a></li>
<li><a href="#trunksrcbpmemberscssblocksmembercss">trunk/src/bp-members/css/blocks/member.css</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunksrcbpmembersbpmembersblocksphp"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/bp-members/bp-members-blocks.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/bp-members-blocks.php (rev 0)
+++ trunk/src/bp-members/bp-members-blocks.php 2020-03-25 07:39:22 UTC (rev 12579)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,194 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+<?php
+/**
+ * BP Members Blocks Functions.
+ *
+ * @package BuddyPress
+ * @subpackage MembersBlocks
+ * @since 6.0.0
+ */
+
+// Exit if accessed directly.
+if ( ! defined( 'ABSPATH' ) ) {
+ exit;
+}
+
+/**
+ * Add BP Members blocks specific settings to the BP Blocks Editor ones.
+ *
+ * @since 6.0.0
+ *
+ * @param array $bp_editor_settings BP blocks editor settings.
+ * @return array BP Members blocks editor settings.
+ */
+function bp_members_editor_settings( $bp_editor_settings = array() ) {
+ $bp = buddypress();
+
+ return array_merge(
+ $bp_editor_settings,
+ array(
+ 'members' => array(
+ 'isMentionEnabled' => bp_is_active( 'activity' ) && bp_activity_do_mentions(),
+ 'isAvatarEnabled' => $bp->avatar && $bp->avatar->show_avatars,
+ 'isCoverImageEnabled' => bp_is_active( 'members', 'cover_image' ),
+ ),
+ )
+ );
+}
+add_filter( 'bp_blocks_editor_settings', 'bp_members_editor_settings' );
+
+/**
+ * Callback function to render the BP Member Block.
+ *
+ * @since 6.0.0
+ *
+ * @param array $attributes The block attributes.
+ * @return string HTML output.
+ */
+function bp_members_render_member_block( $attributes = array() ) {
+ $bp = buddypress();
+
+ $block_args = wp_parse_args(
+ $attributes,
+ array(
+ 'itemID' => 0,
+ 'avatarSize' => 'full',
+ 'displayMentionSlug' => true,
+ 'displayActionButton' => true,
+ 'displayCoverImage' => true,
+ )
+ );
+
+ if ( ! $block_args['itemID'] ) {
+ return;
+ }
+
+ // Set the member ID and container classes.
+ $member_id = (int) $block_args['itemID'];
+ $container_classes = array( 'bp-block-member' );
+
+ // Mention variables.
+ $username = bp_core_get_username( $member_id );
+ $at_mention = '';
+
+ // Avatar variables.
+ $avatar = '';
+ $avatar_container = '';
+
+ // Cover image variable.
+ $cover_image = '';
+ $cover_style = '';
+ $cover_container = '';
+
+ // Member name variables.
+ $display_name = bp_core_get_user_displayname( $member_id );
+ $member_link = bp_core_get_user_domain( $member_id );
+
+ // Member action button.
+ $action_button = '';
+ $display_action_button = (bool) $block_args['displayActionButton'];
+
+ if ( $bp->avatar && $bp->avatar->show_avatars && in_array( $block_args['avatarSize'], array( 'thumb', 'full' ), true ) ) {
+ $avatar = bp_core_fetch_avatar(
+ array(
+ 'item_id' => $member_id,
+ 'object' => 'user',
+ 'type' => $block_args['avatarSize'],
+ 'html' => false,
+ )
+ );
+
+ $container_classes[] = 'avatar-' . $block_args['avatarSize'];
+ } else {
+ $container_classes[] = 'avatar-none';
+ }
+
+ if ( $avatar ) {
+ $avatar_container = sprintf(
+ '<div class="item-header-avatar">
+ <a href="%1$s">
+ <img src="%2$s" alt="%3$s" class="avatar">
+ </a>
+ </div>',
+ esc_url( $member_link ),
+ esc_url( $avatar ),
+ // Translators: %s is the member's display name.
+ sprintf( esc_html__( 'Profile photo of %s', 'buddypress' ), $display_name )
+ );
+ }
+
+ $display_cover_image = (bool) $block_args['displayCoverImage'];
+ if ( bp_is_active( 'members', 'cover_image' ) && $display_cover_image ) {
+ $cover_image = bp_attachments_get_attachment(
+ 'url',
+ array(
+ 'item_id' => $member_id,
+ )
+ );
+
+ if ( $cover_image ) {
+ $cover_style = sprintf(
+ ' style="background-image: url( %s );"',
+ esc_url( $cover_image )
+ );
+ }
+
+ $cover_container = sprintf(
+ '<div class="bp-member-cover-image"%s></div>',
+ $cover_style
+ );
+
+ $container_classes[] = 'has-cover';
+ }
+
+ $display_mention_slug = (bool) $block_args['displayMentionSlug'];
+ if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() && $display_mention_slug ) {
+ $at_mention = sprintf(
+ '<span class="user-nicename">@%s</span>',
+ esc_html( $username )
+ );
+ }
+
+ if ( $display_action_button ) {
+ $action_button = sprintf(
+ '<div class="bp-profile-button">
+ <a href="%1$s" class="button large primary button-primary" role="button">%2$s</a>
+ </div>',
+ esc_url( $member_link ),
+ esc_html__( 'View Profile', 'buddypress' )
+ );
+ }
+
+ $output = sprintf(
+ '<div class="%1$s">
+ %2$s
+ <div class="member-content">
+ %3$s
+ <div class="member-description">
+ <strong><a href="%4$s">%5$s</a></strong>
+ %6$s
+ %7$s
+ </div>
+ </div>
+ </div>',
+ implode( ' ', array_map( 'sanitize_html_class', $container_classes ) ),
+ $cover_container,
+ $avatar_container,
+ esc_url( $member_link ),
+ esc_html( $display_name ),
+ $at_mention,
+ $action_button
+ );
+
+ // Compact all interesting parameters.
+ $params = array_merge( $block_args, compact( 'username', 'display_name', 'member_link', 'avatar', 'cover_image' ) );
+
+ /**
+ * Filter here to edit the output of the single member block.
+ *
+ * @since 6.0.0
+ *
+ * @param string $output The HTML output of the block.
+ * @param array $params The block extended parameters.
+ */
+ return apply_filters( 'bp_members_render_member_block_output', $output, $params );
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: trunk/src/bp-members/bp-members-blocks.php
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="trunksrcbpmembersclassesclassbpmemberscomponentphp"></a>
<div class="modfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Modified: trunk/src/bp-members/classes/class-bp-members-component.php</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/classes/class-bp-members-component.php 2020-03-25 07:31:07 UTC (rev 12578)
+++ trunk/src/bp-members/classes/class-bp-members-component.php 2020-03-25 07:39:22 UTC (rev 12579)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -61,6 +61,7 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'template',
</span><span class="cx" style="display: block; padding: 0 10px"> 'adminbar',
</span><span class="cx" style="display: block; padding: 0 10px"> 'functions',
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+ 'blocks',
</ins><span class="cx" style="display: block; padding: 0 10px"> 'widgets',
</span><span class="cx" style="display: block; padding: 0 10px"> 'cache',
</span><span class="cx" style="display: block; padding: 0 10px"> );
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -668,4 +669,60 @@
</span><span class="cx" style="display: block; padding: 0 10px"> 'BP_REST_Attachments_Member_Avatar_Endpoint',
</span><span class="cx" style="display: block; padding: 0 10px"> ) );
</span><span class="cx" style="display: block; padding: 0 10px"> }
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+
+ /**
+ * Register the BP Members Blocks.
+ *
+ * @since 6.0.0
+ *
+ * @param array $blocks Optional. See BP_Component::blocks_init() for
+ * description.
+ */
+ public function blocks_init( $blocks = array() ) {
+ parent::blocks_init(
+ array(
+ 'bp/member' => array(
+ 'name' => 'bp/member',
+ 'editor_script' => 'bp-member-block',
+ 'editor_script_url' => plugins_url( 'js/blocks/member.js', dirname( __FILE__ ) ),
+ 'editor_script_deps' => array(
+ 'wp-blocks',
+ 'wp-element',
+ 'wp-components',
+ 'wp-i18n',
+ 'wp-editor',
+ 'wp-compose',
+ 'wp-data',
+ 'wp-block-editor',
+ 'bp-block-components',
+ ),
+ 'style' => 'bp-member-block',
+ 'style_url' => plugins_url( 'css/blocks/member.css', dirname( __FILE__ ) ),
+ 'render_callback' => 'bp_members_render_member_block',
+ 'attributes' => array(
+ 'itemID' => array(
+ 'type' => 'integer',
+ 'default' => 0,
+ ),
+ 'avatarSize' => array(
+ 'type' => 'string',
+ 'default' => 'full',
+ ),
+ 'displayMentionSlug' => array(
+ 'type' => 'boolean',
+ 'default' => true,
+ ),
+ 'displayActionButton' => array(
+ 'type' => 'boolean',
+ 'default' => true,
+ ),
+ 'displayCoverImage' => array(
+ 'type' => 'boolean',
+ 'default' => true,
+ ),
+ ),
+ ),
+ )
+ );
+ }
</ins><span class="cx" style="display: block; padding: 0 10px"> }
</span></span></pre></div>
<a id="trunksrcbpmemberscssblocksmemberrtlcss"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/bp-members/css/blocks/member-rtl.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/css/blocks/member-rtl.css (rev 0)
+++ trunk/src/bp-members/css/blocks/member-rtl.css 2020-03-25 07:39:22 UTC (rev 12579)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,110 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* CSS for the bp/member block */
+.bp-block-member {
+ position: relative;
+}
+
+.bp-block-member .member-content {
+ display: flex;
+}
+
+.bp-block-member.has-cover .member-content,
+.bp-block-member.has-cover .item-header-avatar,
+.bp-block-member.has-cover .member-description {
+ z-index: 2;
+}
+
+.bp-block-member.has-cover .member-description {
+ padding-top: 75px;
+}
+
+.bp-block-member.has-cover .bp-member-cover-image {
+ background-color: #c5c5c5;
+ background-position: center top;
+ background-repeat: no-repeat;
+ background-size: cover;
+ border: 0;
+ display: block;
+ right: 0;
+ margin: 0;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ width: 100%;
+ z-index: 1;
+ height: 150px;
+}
+
+.bp-block-member img.avatar {
+ width: auto;
+ height: auto;
+}
+
+.bp-block-member.avatar-none .item-header-avatar {
+ display: none;
+}
+
+.bp-block-member.avatar-none.has-cover {
+ min-height: 200px;
+}
+
+.bp-block-member.avatar-full {
+ min-height: 150px;
+}
+
+.bp-block-member.avatar-full.has-cover {
+ min-height: 300px;
+}
+
+.bp-block-member.avatar-full .item-header-avatar {
+ width: 180px;
+}
+
+.bp-block-member.has-cover.avatar-full .item-header-avatar {
+ width: 200px;
+}
+
+.bp-block-member.has-cover.avatar-full img.avatar {
+ border: solid 2px #fff;
+ background: rgba(255, 255, 255, 0.8);
+ margin-right: 20px;
+}
+
+.bp-block-member.has-cover .member-content {
+ padding-top: 75px;
+}
+
+.bp-block-member.avatar-thumb .member-content {
+ min-height: 50px;
+ align-items: center;
+}
+
+.bp-block-member.avatar-thumb .item-header-avatar {
+ width: 70px;
+}
+
+.bp-block-member.avatar-thumb.has-cover .item-header-avatar {
+ padding-top: 75px;
+}
+
+.bp-block-member .user-nicename {
+ display: block;
+}
+
+.bp-block-member .user-nicename a,
+.entry .entry-content .bp-block-member .user-nicename a {
+ color: currentColor;
+ text-decoration: none;
+ border: none;
+}
+
+.bp-block-member .bp-profile-button {
+ width: 100%;
+}
+
+.bp-block-member .bp-profile-button a.button {
+ position: absolute;
+ bottom: 10px;
+ left: 0;
+ display: inline-block;
+ margin: 18px 0 0;
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: trunk/src/bp-members/css/blocks/member-rtl.css
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span><a id="trunksrcbpmemberscssblocksmembercss"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: trunk/src/bp-members/css/blocks/member.css</h4>
<pre class="diff"><span>
<span class="info" style="display: block; padding: 0 10px; color: #888">--- trunk/src/bp-members/css/blocks/member.css (rev 0)
+++ trunk/src/bp-members/css/blocks/member.css 2020-03-25 07:39:22 UTC (rev 12579)
</span><span class="lines" style="display: block; padding: 0 10px; color: #888">@@ -0,0 +1,110 @@
</span><ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+/* CSS for the bp/member block */
+.bp-block-member {
+ position: relative;
+}
+
+.bp-block-member .member-content {
+ display: flex;
+}
+
+.bp-block-member.has-cover .member-content,
+.bp-block-member.has-cover .item-header-avatar,
+.bp-block-member.has-cover .member-description {
+ z-index: 2;
+}
+
+.bp-block-member.has-cover .member-description {
+ padding-top: 75px;
+}
+
+.bp-block-member.has-cover .bp-member-cover-image {
+ background-color: #c5c5c5;
+ background-position: center top;
+ background-repeat: no-repeat;
+ background-size: cover;
+ border: 0;
+ display: block;
+ left: 0;
+ margin: 0;
+ padding: 0;
+ position: absolute;
+ top: 0;
+ width: 100%;
+ z-index: 1;
+ height: 150px;
+}
+
+.bp-block-member img.avatar {
+ width: auto;
+ height: auto;
+}
+
+.bp-block-member.avatar-none .item-header-avatar {
+ display: none;
+}
+
+.bp-block-member.avatar-none.has-cover {
+ min-height: 200px;
+}
+
+.bp-block-member.avatar-full {
+ min-height: 150px;
+}
+
+.bp-block-member.avatar-full.has-cover {
+ min-height: 300px;
+}
+
+.bp-block-member.avatar-full .item-header-avatar {
+ width: 180px;
+}
+
+.bp-block-member.has-cover.avatar-full .item-header-avatar {
+ width: 200px;
+}
+
+.bp-block-member.has-cover.avatar-full img.avatar {
+ border: solid 2px #fff;
+ background: rgba(255, 255, 255, 0.8);
+ margin-left: 20px;
+}
+
+.bp-block-member.has-cover .member-content {
+ padding-top: 75px;
+}
+
+.bp-block-member.avatar-thumb .member-content {
+ min-height: 50px;
+ align-items: center;
+}
+
+.bp-block-member.avatar-thumb .item-header-avatar {
+ width: 70px;
+}
+
+.bp-block-member.avatar-thumb.has-cover .item-header-avatar {
+ padding-top: 75px;
+}
+
+.bp-block-member .user-nicename {
+ display: block;
+}
+
+.bp-block-member .user-nicename a,
+.entry .entry-content .bp-block-member .user-nicename a {
+ color: currentColor;
+ text-decoration: none;
+ border: none;
+}
+
+.bp-block-member .bp-profile-button {
+ width: 100%;
+}
+
+.bp-block-member .bp-profile-button a.button {
+ position: absolute;
+ bottom: 10px;
+ right: 0;
+ display: inline-block;
+ margin: 18px 0 0;
+}
</ins><span class="cx" style="display: block; padding: 0 10px">Property changes on: trunk/src/bp-members/css/blocks/member.css
</span><span class="cx" style="display: block; padding: 0 10px">___________________________________________________________________
</span></span></pre></div>
<a id="svneolstyle"></a>
<div class="addfile"><h4 style="background-color: #eee; color: inherit; margin: 1em 0; padding: 1.3em; font-size: 115%">Added: svn:eol-style</h4></div>
<ins style="background-color: #dfd; text-decoration:none; display:block; padding: 0 10px">+native
</ins><span class="cx" style="display: block; padding: 0 10px">\ No newline at end of property
</span></div>
</body>
</html>