%s',
$size,
$size,
esc_attr( $platform ),
$icon_data
);
}
/**
* Get all icons data (SVG paths)
*
* Sources:
* - Simple Icons (simpleicons.org) for official brand icons (CC0 license)
* - Geometric approximations for platforms not yet in Simple Icons
*
* @return array Icons data with SVG paths.
*/
private static function ayudawp_get_icons_data() {
return array(
// --- Social platforms (Simple Icons official) ---
// X (Twitter) - Simple Icons "x" slug.
'twitter' => '',
// LinkedIn - Simple Icons.
'linkedin' => '',
// Facebook - Simple Icons.
'facebook' => '',
// Telegram - Simple Icons.
'telegram' => '',
// WhatsApp - Simple Icons.
'whatsapp' => '',
// Email - Gmail icon from Simple Icons.
'email' => '',
// Raindrop - Geometric raindrop shape (not in Simple Icons).
'raindrop' => '',
// Reddit - Simple Icons.
'reddit' => '',
// Bluesky - Simple Icons.
'bluesky' => '',
// LINE - Simple Icons.
'line' => '',
// Mastodon - Simple Icons.
'mastodon' => '',
// Threads - Simple Icons.
'threads' => '',
// Pinterest - Simple Icons.
'pinterest' => '',
// --- AI platforms ---
// Claude - Simple Icons.
'claude' => '',
// ChatGPT / OpenAI - Simple Icons "openai" slug.
'chatgpt' => '',
// Google AI - Google "G" icon from Simple Icons.
'google_ai' => '',
// Gemini - Simple Icons "googlegemini" slug.
'gemini' => '',
// Grok - Geometric X-based icon (not in Simple Icons).
'grok' => '',
// Perplexity - Simple Icons.
'perplexity' => '',
// DeepSeek - Geometric deep search icon (not in Simple Icons).
'deepseek' => '',
// Mistral AI - Simple Icons "mistralai" slug.
'mistral' => '',
// Microsoft Copilot - GitHub Copilot from Simple Icons (visual proxy).
'copilot' => '',
// Qwen - Geometric cloud/AI icon (not in Simple Icons).
'qwen' => '',
// Meta AI - Simple Icons "meta" slug.
'meta_ai' => '',
// --- Plugin UI icons ---
// AI Summary - text-lines glyph used in the frontend collapsible block (v2.0.0).
'aiss_summary' => '',
);
}
/**
* Get icon with wrapper for button
*
* @param string $platform Platform identifier.
* @param int $size Icon size.
* @return string Icon HTML with wrapper.
*/
public static function ayudawp_get_button_icon( $platform, $size = 16 ) {
$icon = self::ayudawp_get_icon( $platform, $size );
if ( empty( $icon ) ) {
return '';
}
return '' . $icon . '';
}
}