Your are not alone.
Join our safe space to share feelings and support each other.
Safe Space
”Notalone has been a lifesaver for me. It’s comforting to share my feelings in a supportive environment where everyone understands and listens without judgment.”
Connect, Share, Heal
Join our safe online chat room to share your feelings and support others in a calm, welcoming environment.
”,
’emotion’ => ‘default’,
‘highlight’ => false,
), $atts, ‘chat_bubble’);
$classes = ‘cwpai-chat-bubble’;
$background = ”;
$glow = ”;
// Set background based on emotion
switch ($atts[’emotion’]) {
case ‘happy’:
$background = ‘cwpai-happy’;
break;
case ‘sad’:
$background = ‘cwpai-sad’;
break;
case ‘angry’:
$background = ‘cwpai-angry’;
break;
case ‘excited’:
$background = ‘cwpai-excited’;
break;
default:
$background = ‘cwpai-default’;
}
// Add glow effect if highlighted
if ($atts[‘highlight’] === ‘true’) {
$glow = ‘cwpai-glow’;
}
// Build output
$output = ‘
$output .= ‘
‘ . esc_html($atts[‘message’]) . ‘
‘;
$output .= ‘
‘;
return $output;
}
add_shortcode(‘chat_bubble’, ‘cwpai_chat_bubble_shortcode’);