upskill-event-manager/wordpress-dev/wordpress/wp-content/plugins/essential-blocks/views/social-share.php
bengizmo d1509b3d60 feat(dev-env): implement backup-based development workflow
This commit introduces a more reliable and consistent approach to setting up
the development environment using backups:

- Add setup-from-backup.sh script for environment setup from existing backups
- Standardize script naming and organization
- Move obsolete scripts to bin/obsolete directory
- Update documentation with new workflow instructions
- Create migration guide for transitioning to new workflow
- Update Memory Bank with workflow improvements

The new workflow provides:
- More reliable environment setup
- Faster setup process
- Offline development capability
- Consistent development environments across team members

Breaking changes:
- setup-dev.sh is replaced by setup-from-backup.sh
- sync-and-setup.sh is replaced by separate scripts
- verify-with-wpcli.sh is no longer used

Migration path is documented in MIGRATION_GUIDE.md
2025-03-26 11:26:18 -03:00

32 lines
1.7 KiB
PHP

<?php global $post;?>
<div
<?php
echo wp_kses_post( $wrapper_attributes ); ?>>
<div class="eb-parent-wrapper eb-parent-<?php echo esc_attr( $blockId ); ?><?php echo esc_attr( $classHook ); ?>">
<div
class="<?php echo esc_attr( $blockId ); ?> eb-social-share-wrapper<?php echo $isFloating ? esc_attr( ' eb-social-share-floating' ) : ''; ?><?php echo $isFloating && 'circular' == $iconShape ? esc_attr( ' eb-social-share-circular' ) : ''; ?>">
<ul class="eb-social-shares">
<?php
foreach ( $profilesOnly as $profile ) {
preg_match( '/fa-([\w\-]+)/', $profile[ 'icon' ], $matches );
$iconClass = is_array( $matches ) && ! empty( $matches[ 1 ] ) ? $matches[ 1 ] . '-original' : '';
?>
<li>
<a class="<?php echo esc_attr( $iconClass ); ?><?php echo ' ' . esc_attr( $icnEffect ); ?>"
href=<?php echo esc_url_raw( $block_object::eb_social_share_name_link( $post->ID, $profile[ 'icon' ] ) ); ?>
target="_blank" rel="nofollow noopener noreferrer">
<i class="<?php echo esc_attr( $profile[ 'icon' ] ); ?> hvr-icon eb-social-share-icon"></i>
<?php
if ( ! empty( $showTitle && ! empty( $profile[ 'iconText' ] ) ) ) {
?>
<span class="eb-social-share-text"><?php echo esc_html( $profile[ 'iconText' ] ); ?></span>
<?php
}?>
</a>
</li>
<?php
}?>
</ul>
</div>
</div>
</div>