=== AI Share & Summarize === Contributors: fernandot,ayudawp Tags: claude, chatgpt, gemini, perplexity, grok Requires at least: 5.0 Tested up to: 6.8 Stable tag: 1.0.8 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Share on social media and generate summaries with citations from all the top AIs (Claude, ChatGPT, Google AI - Gemini, Grok, Perplexity) == Description == **AI Share & Summarize** is the first free plugin published in WordPress.org that combines traditional social media sharing with the innovative functionality of generating summaries while citing the source in the top artificial intelligences. = Main features = * **Social networks**: X (Twitter), LinkedIn, Facebook, Telegram, WhatsApp, Email, Raindrop * **Artificial intelligences**: Claude, ChatGPT, Google AI (Gemini), Grok, Perplexity * **Modern icon support**: Beautiful SVG icons with icons-only mode for a sleek, modern look * **Smart automatic insertion**: Configure exactly where and on which content types to display buttons * **Granular control by content type**: Choose specific post types (posts, pages, products, etc.) * **Customizable AI prompt**: Configure the message sent to AIs for better summaries * **Customizable title**: Change the text before buttons and choose heading style (h3-h6 or span) * **Multiple insertion modes**: Before content, after content, both positions, or shortcode only * **5 visual styles**: Default, brand colors, minimal, dark backgrounds, and icons-only * **Flexible icon options**: Add icons to any style or use pure icons-only mode with circular/square shapes * **Button ordering**: Social first, AI first, or mixed arrangement * **Data cleanup control**: Optional automatic data deletion when plugin is uninstalled * **Fully responsive**: Adapts to any device and theme with smart mobile layouts * **SEO optimized**: Nofollow links and target="_blank" by default * **Lightweight**: Optimized modular structure with ultra-fast loading SVG icons * **Accessible**: Complies with web accessibility standards with enhanced tooltips = Why use this plugin? = This plugin helps you: 1. **Generate natural backlinks**: When users summarize your content with AI, they cite your source 2. **Increase your reach**: Combine traditional social sharing with AI power 3. **Build authority**: Your content becomes a reference source for future queries 4. **Boost engagement**: Users can interact with your content in multiple ways 5. **Stay ahead**: Be among the first to leverage AI for content distribution 6. **Modern appearance**: Icons-only mode provides a sleek, professional look = Advanced configuration = * **Smart automatic insertion**: Choose exactly where to insert buttons (before, after, both, or disabled) * **Content type control**: Select specific post types from all registered in your WordPress * **Custom AI prompt**: Optimize the message sent to AIs for better summaries with citation * **Custom title text**: Configure the text shown before buttons or hide it completely * **Title style control**: Choose between h3, h4, h5, h6 or span for the title element * **X/Twitter mentions**: Configure your profile for automatic mentions in shares * **Custom additional text**: Add personalized text to AI prompts * **Visual styles**: 5 predefined styles adaptable to any theme * **Advanced icon system**: Show icons with text, icons-only mode, circular or square icons * **Button ordering**: Organize buttons as social first, AI first, or mixed * **Data management**: Control whether plugin data is deleted on uninstall * **Shortcode flexibility**: Use `[ayudawp_share_buttons]` anywhere with extensive parameters = Icon system features = * **Icons-only style**: Modern button design showing only platform icons * **Icons with text**: Add recognizable icons to the left of button text in any style * **Responsive design**: Icons automatically adapt size and layout for mobile devices * **Lightweight SVG**: Ultra-optimized Feather Icons for minimal performance impact * **Smart tooltips**: Platform names appear on hover in icons-only mode * **Flexible shapes**: Choose between circular or square corners for icons-only buttons = Special AI features = * **Google AI integration**: Automatically copies prompt to clipboard and opens Gemini * **Optimized prompts**: Pre-configured messages for best summary results with citation * **Direct links**: Each AI opens with the complete prompt ready to process * **Source citation**: All prompts automatically include your content URL as source = Compatibility = * Supports any WordPress theme following standards * Works with Custom Post Types automatically * Optimized for WooCommerce products * Compatible with page builders (Elementor, Gutenberg, etc.) * Multi-language ready with automatic translations * No external dependencies or conflicts == Installation == = Automatic installation = 1. Go to Plugins > Add New in your WordPress admin 2. Search for "AI Share & Summarize" 3. Click "Install Now" and then "Activate" 4. Go to Settings > AI Share & Summarize to configure = Manual installation = 1. Download the plugin ZIP file 2. Go to Plugins > Add New > Upload Plugin 3. Select the ZIP file and click "Install Now" 4. Activate the plugin 5. Configure in Settings > AI Share & Summarize = Complete setup = 1. **Go to Settings > AI Share & Summarize** 2. **Select enabled buttons**: Choose which social networks and AIs to display 3. **Configure automatic insertion**: - Choose position: Before content, after, both, or disabled (shortcode only) - Select content types: Posts, pages, products, or any Custom Post Type 4. **Customize AI prompt**: Modify the default text if desired (excellent default included) 5. **Configure title**: Change the text before buttons and choose heading style 6. **Configure X mentions**: Add your Twitter/X handle for automatic mentions 7. **Choose visual style**: Default, brand colors, minimal, dark backgrounds, or icons-only 8. **Configure icons**: Enable icons for text styles or use pure icons-only mode 9. **Set icon shape**: Choose circular or square corners for icons-only buttons 10. **Set button order**: Social first, AI first, or mixed arrangement 11. **Configure data cleanup**: Optionally delete all data when plugin is uninstalled 12. **Save changes** **Manual insertion with shortcode:** - Basic: `[ayudawp_share_buttons]` - Specific buttons: `[ayudawp_share_buttons buttons="claude,twitter,linkedin"]` - Custom style: `[ayudawp_share_buttons style="minimal" show_title="false"]` - With icons: `[ayudawp_share_buttons show_icons="true" style="brand"]` - Icons only: `[ayudawp_share_buttons style="icons-only"]` - Circular icons: `[ayudawp_share_buttons style="icons-only" icon_style="circular"]` - Custom title: `[ayudawp_share_buttons title_text="Share or Summarize" title_style="h3"]` == Frequently Asked Questions == = Is this plugin completely free? = Yes, AI Share & Summarize is 100% free with all features included, including the new icon system. = Will it slow down my website? = No. The plugin is ultra-optimized with a modular structure and lightweight SVG icons that load instantly. = Can I customize the visual appearance? = Yes, you can choose from 5 predefined styles: - **Default**: Clean design with white backgrounds - **Brand**: Each platform's characteristic colors - **Minimal**: Transparent with borders only - **Dark**: Optimized for dark backgrounds - **Icons-only**: Modern style showing only platform icons = How do the new icons work? = The new icon system offers flexible options: - **Icons with text**: Add beautiful icons to the left of button text in any style - **Icons-only**: Show only icons in circular or square buttons for a modern look - **Smart tooltips**: Platform names appear when hovering over icons-only buttons - **Responsive**: Icons automatically adapt to screen size and device = Can I control the icon appearance? = Yes, you have full control: - Enable/disable icons for text-based styles - Choose icons-only mode for a minimalist approach - Select circular or square corners for icons-only buttons - Icons automatically use appropriate sizes (20px for icons-only, 16px with text) = Can I change the title before the buttons? = Yes, you can: - Change the text to anything you want - Choose the HTML element: h3, h4, h5, h6, or span - Hide the title completely by leaving the text field empty = How does automatic insertion work? = You have complete control: - **Before content**: Buttons appear before the post text - **After content**: Buttons appear after the post text - **Both positions**: Buttons in both locations - **Disabled**: Use only shortcode `[ayudawp_share_buttons]` Plus, you choose exactly which content types display buttons. = Can I control which content types show buttons? = Absolutely. You can select from all post types registered in your WordPress: - Posts, pages, WooCommerce products - Custom Post Types (portfolios, testimonials, etc.) - Complete granular control per content type = How do I customize the AI prompt? = In Settings > AI Share & Summarize you'll find: - **Default prompt**: Pre-optimized for best results with citation - **Custom text field**: Add personalized text to all AI prompts - **X handle**: Configure automatic mentions in social shares - The plugin automatically adds your content URL as source = What happens if an AI changes its URL? = We continuously monitor and update all AI links to ensure they work correctly. = Can I use only specific buttons? = Yes, with the shortcode you can display only the buttons you want: `[ayudawp_share_buttons buttons="claude,chatgpt,twitter"]` = Is it GDPR compliant? = Yes, the plugin doesn't collect any personal user data, making it GDPR compliant by default. = How does Google AI integration work? = Google AI has a special behavior: - Clicking the button automatically copies the prompt to clipboard - Opens Google Gemini in a new tab - User can paste the prompt directly and get the summary = Does it work with page builders? = Yes, it's compatible with: - Gutenberg (WordPress block editor) - Elementor, Beaver Builder, Divi - Any page builder that respects WordPress hooks - Manual insertion via shortcode works everywhere = Can I disable automatic insertion completely? = Yes, set automatic insertion to "Disabled" in settings and use only the shortcode `[ayudawp_share_buttons]` where you want buttons to appear. = What happens to my settings when I uninstall the plugin? = By default, your settings are preserved even after uninstalling. However, you can enable the "Delete all plugin data when plugin is deleted" option in the Data cleanup section if you want automatic cleanup. == Screenshots == 1. Share and AI summarize buttons in action on a post 2. Responsive view on mobile devices 3. Complete plugin settings page 4. Prompt opened in ChatGPT == Changelog == = 1.0.8 = * Added: Icons-only button style for modern, minimalist design * Added: Option to show icons alongside text in any existing style * Added: Icon style selection (circular or square corners for icons-only mode) * Added: Enhanced tooltips for icons-only buttons showing platform names * Added: Responsive grid layout for icons-only mode on mobile devices * Added: Data cleanup control - optional automatic data deletion on plugin uninstall * Added: Improved icon system with lightweight SVG graphics using Feather Icons * Improved: Complete code restructuring with modular architecture for better performance * Improved: Separated functionality into individual class files in /includes folder * Improved: Enhanced mobile responsiveness for all button styles * Improved: Better default values (AIs first, brand colors, span titles, circular icons) * Improved: Enhanced admin interface with icon previews and danger zone styling * Fixed: Better CSS specificity to prevent theme conflicts * Updated: All icon graphics for better platform recognition = 1.0.7 = * Improved - Security: Better sanitizing variables escaping echoed ones. = 1.0.6 = * Fixed: Removed inline JavaScript and moved to wp_add_inline_script() * Fixed: Changed shortcode from ai_share_buttons to ayudawp_share_buttons for WordPress.org compliance * Improved: All functions now use consistent ayudawp_ prefix = 1.0.5 = * Major code restructuring for better maintainability * Separated CSS and JavaScript into individual files in assets folder * Simplified PHP main file for easier management * Enhanced JavaScript with better error handling and notifications * Improved tooltip functionality for Google AI button * Better accessibility with keyboard navigation support * Optimized file structure for better performance * Code cleanup and documentation improvements = 1.0.4 = * Added customizable title text and style options * New title style selector: h3, h4, h5, h6, or span * Added Settings link in plugins list for easy access * Implemented activation notice with quick access to settings * Enhanced shortcode with title customization parameters * Improved CSS for all title styles * Better user experience with direct settings access * Code optimization and performance improvements = 1.0.3 = * Code optimization following WordPress.org standards * Fixed all PCP (Plugin Check) validation issues * Improved security with proper output escaping * Enhanced internationalization compliance * Removed deprecated load_plugin_textdomain() function * Code cleanup and performance improvements = 1.0.2 = * Added special Google AI integration with clipboard copy * Smart tooltip for Google AI button explaining functionality * Improved JavaScript for better user experience * Bug fixes and stability improvements = 1.0.1 = * Complete rewrite focused on core features * Advanced automatic insertion settings by content type * Shortcode `[ayudawp_share_buttons]` with parameters * Button ordering system (social first, AI first, mixed) * 4 visual styles: default, brand, minimal, dark * Corrected all AI platform URLs * Lightweight design with only 4 files * Support for 7 social networks and 5 major AIs = 1.0.0 = * Initial release == Upgrade Notice == = 1.0.8 = Major update with modern icon support! New icons-only style, icons with text option, data cleanup control, and complete code restructuring for better performance. Highly recommended update for enhanced visual options and improved maintainability. == Advanced Usage == = Shortcode parameters = The `[ayudawp_share_buttons]` shortcode accepts several parameters: **buttons**: Comma-separated list of buttons to display - Example: `[ayudawp_share_buttons buttons="claude,chatgpt,twitter,linkedin"]` - Available: twitter, linkedin, facebook, telegram, whatsapp, email, raindrop, claude, chatgpt, google_ai, grok, perplexity **style**: Visual style to use - Example: `[ayudawp_share_buttons style="icons-only"]` - Options: default, brand, minimal, dark, icons-only **show_icons**: Show icons with text (for non-icons-only styles) - Example: `[ayudawp_share_buttons show_icons="true" style="brand"]` - Options: true, false **icon_style**: Icon corner style (for icons-only mode) - Example: `[ayudawp_share_buttons style="icons-only" icon_style="circular"]` - Options: circular, square **show_title**: Show or hide the section title - Example: `[ayudawp_share_buttons show_title="false"]` - Options: true, false **title_text**: Custom title text - Example: `[ayudawp_share_buttons title_text="Share this content"]` **title_style**: Title HTML element - Example: `[ayudawp_share_buttons title_style="h3"]` - Options: h3, h4, h5, h6, span **Combined examples:** - `[ayudawp_share_buttons buttons="claude,twitter" style="brand" show_icons="true"]` - `[ayudawp_share_buttons style="icons-only" icon_style="circular"]` - `[ayudawp_share_buttons show_title="true" title_text="Share or Summarize" title_style="h3"]` - `[ayudawp_share_buttons buttons="chatgpt,claude" style="icons-only" icon_style="square" show_title="false"]` = Custom CSS = You can customize the appearance using these CSS classes: - `.ayudawp-share-buttons` - Main container - `.ayudawp-share-btn` - Individual buttons - `.ayudawp-buttons-container` - Buttons container - `.ayudawp-title` - Title element - `.ayudawp-icon-wrapper` - Icon container - `.ayudawp-button-text` - Button text (when used with icons) - Style modifiers: `.brand`, `.minimal`, `.dark`, `.icons-only`, `.with-icons`, `.circular`, `.square` = Icon customization = Icons are SVG-based and can be styled with CSS: - Icons inherit the current text color with `stroke: currentColor` - Icons-only buttons are 40px by default (36px on mobile) - Text+icon buttons use 16px icons - Circular icons use `border-radius: 50%` - Square icons use `border-radius: 4px` == Technical Details == = System requirements = * WordPress 5.0 or higher * PHP 7.4 or higher (compatible up to PHP 8.3) * Theme compatible with wp_head() and wp_footer() = Performance features = * Modular file structure for maximum efficiency * Conditional loading of resources * No external dependencies * Optimized CSS and JavaScript * Lightweight SVG icons (under 1KB each) * Minimal database impact * Smart responsive layouts = Developer features = * Clean, documented code * WordPress coding standards compliant * Hook-based architecture * Modular class structure in /includes folder * Extensible icon system * Translation ready * Comprehensive shortcode API = New in 1.0.8 architecture = * Separated classes: Admin, Frontend, Shortcode, Buttons, Icons * Helper functions in dedicated file * Improved maintainability and debugging * Better performance with conditional loading * Enhanced security with proper sanitization == Support == Need help or have suggestions? * [Official website](https://servicios.ayudawp.com/) * [WordPress support forum](https://wordpress.org/support/plugin/ai-share-summarize/) * [YouTube channel](https://www.youtube.com/AyudaWordPressES) * [Documentation and tutorials](https://ayudawp.com/) **Love the plugin?** Please leave us a 5-star review and help spread the word about AI-powered content sharing with modern icons!