4
This commit is contained in:
parent
ff51c2e480
commit
b1fecf1437
@ -2005,23 +2005,44 @@ add_shortcode('matthew_user_profile', function () {
|
||||
$share_title = sprintf("View %s's WAX AI profile", $profile['name']);
|
||||
$share_text = sprintf('%s is building AI-native proof on WAX: %s', $profile['name'], $profile['role']);
|
||||
$share_links = [
|
||||
'LinkedIn' => 'https://www.linkedin.com/sharing/share-offsite/?url=' . rawurlencode($share_url),
|
||||
'X / Twitter' => 'https://twitter.com/intent/tweet?url=' . rawurlencode($share_url) . '&text=' . rawurlencode($share_text),
|
||||
'Facebook' => 'https://www.facebook.com/sharer/sharer.php?u=' . rawurlencode($share_url),
|
||||
'WhatsApp' => 'https://wa.me/?text=' . rawurlencode($share_text . ' ' . $share_url),
|
||||
[
|
||||
'label' => 'LinkedIn',
|
||||
'icon' => 'in',
|
||||
'url' => 'https://www.linkedin.com/sharing/share-offsite/?url=' . rawurlencode($share_url),
|
||||
],
|
||||
[
|
||||
'label' => 'X',
|
||||
'icon' => '𝕏',
|
||||
'url' => 'https://twitter.com/intent/tweet?url=' . rawurlencode($share_url) . '&text=' . rawurlencode($share_text),
|
||||
],
|
||||
[
|
||||
'label' => 'Facebook',
|
||||
'icon' => 'f',
|
||||
'url' => 'https://www.facebook.com/sharer/sharer.php?u=' . rawurlencode($share_url),
|
||||
],
|
||||
[
|
||||
'label' => 'WhatsApp',
|
||||
'icon' => '☎',
|
||||
'url' => 'https://wa.me/?text=' . rawurlencode($share_text . ' ' . $share_url),
|
||||
],
|
||||
];
|
||||
ob_start();
|
||||
?>
|
||||
<style>
|
||||
.mlms-social-share{margin-top:18px;padding:18px;border:1px solid rgba(99,91,255,.16);border-radius:22px;background:linear-gradient(135deg,rgba(99,91,255,.08),rgba(255,255,255,.88));box-shadow:0 12px 30px rgba(50,50,93,.08)}
|
||||
.mlms-social-share-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
|
||||
.mlms-social-share-head strong{display:block;color:var(--mlms-ink);font-size:16px;letter-spacing:-.02em}
|
||||
.mlms-social-share-head span{display:block;color:var(--mlms-muted);font-size:13px;margin-top:2px}
|
||||
.mlms-social-share-links{display:flex;flex-wrap:wrap;gap:9px}
|
||||
.mlms-social-share-links a,.mlms-share-copy{border:1px solid rgba(10,37,64,.1);border-radius:999px;background:#fff;color:var(--mlms-primary);font-weight:900;font-size:13px;text-decoration:none!important;padding:9px 12px;line-height:1.1;box-shadow:0 8px 18px rgba(50,50,93,.07);cursor:pointer}
|
||||
.mlms-social-share-links a:hover,.mlms-share-copy:hover{border-color:rgba(99,91,255,.32);transform:translateY(-1px)}
|
||||
.mlms-share-feedback{min-height:18px;margin:10px 0 0;color:#0B6B52;font-weight:800;font-size:13px}
|
||||
@media (max-width:640px){.mlms-social-share-head{align-items:flex-start;flex-direction:column}.mlms-share-copy{width:100%}.mlms-social-share-links a{flex:1 1 calc(50% - 9px);text-align:center}}
|
||||
.mlms-social-share{margin-top:18px;padding:20px;border:1px solid rgba(255,255,255,.16);border-radius:24px;background:radial-gradient(circle at top left,rgba(255,255,255,.18),transparent 34%),linear-gradient(135deg,#211a62 0%,#635bff 52%,#0b6b52 100%);box-shadow:0 18px 42px rgba(33,26,98,.28)}
|
||||
.mlms-social-share-head{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;margin-bottom:16px}
|
||||
.mlms-social-share-badge{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.16);color:#fff;font-size:21px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 10px 22px rgba(0,0,0,.16);backdrop-filter:blur(8px)}
|
||||
.mlms-social-share-head strong{display:block;color:#fff;font-size:18px;letter-spacing:-.03em;line-height:1.15;text-shadow:0 1px 1px rgba(0,0,0,.18)}
|
||||
.mlms-social-share-head span{display:block;color:rgba(255,255,255,.84);font-size:14px;line-height:1.45;margin-top:5px;max-width:34rem}
|
||||
.mlms-social-share-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
|
||||
.mlms-social-share-links{display:flex;flex-wrap:wrap;gap:10px}
|
||||
.mlms-social-link,.mlms-share-copy{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(10,37,64,.1);border-radius:999px;background:#fff;color:var(--mlms-primary);font-weight:900;font-size:13px;text-decoration:none!important;padding:10px 13px;line-height:1.1;box-shadow:0 8px 18px rgba(50,50,93,.07);cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
|
||||
.mlms-social-icon{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:999px;background:var(--mlms-primary);color:#fff;font-size:12px;font-weight:950;font-family:Arial,Helvetica,sans-serif;line-height:1}
|
||||
.mlms-social-icon.mlms-social-icon-x{font-size:13px;background:#0f172a}.mlms-social-icon.mlms-social-icon-facebook{background:#1877f2}.mlms-social-icon.mlms-social-icon-linkedin{background:#0a66c2}.mlms-social-icon.mlms-social-icon-whatsapp{background:#25d366;color:#073b20}
|
||||
.mlms-social-link:hover,.mlms-share-copy:hover{border-color:rgba(99,91,255,.34);transform:translateY(-1px);box-shadow:0 12px 24px rgba(50,50,93,.1)}
|
||||
.mlms-share-copy{color:var(--mlms-ink)}
|
||||
.mlms-share-feedback{min-height:18px;margin:11px 0 0;color:#0B6B52;font-weight:800;font-size:13px}
|
||||
@media (max-width:640px){.mlms-social-share-head{grid-template-columns:1fr}.mlms-social-share-actions,.mlms-social-share-links{width:100%}.mlms-share-copy,.mlms-social-link{flex:1 1 100%;justify-content:center}}
|
||||
</style>
|
||||
<div class="mlms-page mlms-profile-page">
|
||||
<section class="mlms-section"><div class="mlms-shell">
|
||||
@ -2055,13 +2076,19 @@ add_shortcode('matthew_user_profile', function () {
|
||||
</div>
|
||||
<div class="mlms-social-share" data-mlms-social-share data-share-url="<?php echo esc_url($share_url); ?>" data-share-title="<?php echo esc_attr($share_title); ?>" data-share-text="<?php echo esc_attr($share_text); ?>">
|
||||
<div class="mlms-social-share-head">
|
||||
<div><strong>Share this profile</strong><span>Post your WAX profile proof to social media.</span></div>
|
||||
<button class="mlms-share-copy" type="button" data-mlms-copy-profile>Copy link</button>
|
||||
<span class="mlms-social-share-badge" aria-hidden="true">↗</span>
|
||||
<div><strong>Share your WAX profile</strong><span>Publish your verified WAX profile proof on your social channels, or copy the profile link to send anywhere.</span></div>
|
||||
</div>
|
||||
<div class="mlms-social-share-links" aria-label="Share profile on social media">
|
||||
<?php foreach ($share_links as $label => $url): ?>
|
||||
<a href="<?php echo esc_url($url); ?>" target="_blank" rel="noopener noreferrer" aria-label="Share profile on <?php echo esc_attr($label); ?>"><?php echo esc_html($label); ?></a>
|
||||
<?php endforeach; ?>
|
||||
<div class="mlms-social-share-actions">
|
||||
<div class="mlms-social-share-links" aria-label="Share profile on social media">
|
||||
<?php foreach ($share_links as $share_link): ?>
|
||||
<a class="mlms-social-link" href="<?php echo esc_url($share_link['url']); ?>" target="_blank" rel="noopener noreferrer" aria-label="Share profile on <?php echo esc_attr($share_link['label']); ?>">
|
||||
<span class="mlms-social-icon mlms-social-icon-<?php echo esc_attr(sanitize_title($share_link['label'])); ?>" aria-hidden="true"><?php echo esc_html($share_link['icon']); ?></span>
|
||||
<span><?php echo esc_html($share_link['label']); ?></span>
|
||||
</a>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<button class="mlms-share-copy" type="button" data-mlms-copy-profile><span class="mlms-social-icon" aria-hidden="true">🔗</span><span>Copy link</span></button>
|
||||
</div>
|
||||
<p class="mlms-share-feedback" data-mlms-share-feedback aria-live="polite"></p>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user