<?php /* Plugin Name: AMAZING FINDS AI Studio Description: All-in-one eCommerce + Funnel + SEO + AI Studio (images, video, chat, automation) for free. Author: You Version: 1.0 */ // ============================ // 1. Auto-install free plugins // ============================ register_activation_hook(__FILE__, function(){ include_once( ABSPATH . 'wp-admin/includes/plugin.php' ); $plugins = [ 'woocommerce/woocommerce.php' => 'https://downloads.wordpress.org/plugin/woocommerce.latest-stable.zip', 'cartflows/cartflows.php' => 'https://downloads.wordpress.org/plugin/cartflows.latest-stable.zip', 'seo-by-rank-math/rank-math.php' => 'https://downloads.wordpress.org/plugin/seo-by-rank-math.latest-stable.zip' ]; foreach($plugins as $slug => $url){ if(!is_plugin_active($slug)){ $zip = download_url($url); $result = unzip_file($zip, WP_PLUGIN_DIR);
@unlink
($zip); } } }); // ============================ // 2. Set store name // ============================ add_action('init', function(){ update_option('blogname', 'AMAZING FINDS'); }); // ============================ // 3. Add default funnel pages // ============================ register_activation_hook(__FILE__, function(){ $landing = wp_insert_post([ 'post_title' => 'AMAZING FINDS Landing', 'post_content' => '<h2>Welcome to AMAZING FINDS!</h2><p>Special Offer → [add_to_cart id="1"]</p>', 'post_status' => 'publish', 'post_type' => 'page' ]); $thankyou = wp_insert_post([ 'post_title' => 'AMAZING FINDS Thank You', 'post_content' => '<h2>Thanks for your order!</h2><p>Check your email for details.</p>', 'post_status' => 'publish', 'post_type' => 'page' ]); update_option('funnel_landing_id', $landing); update_option('funnel_thankyou_id', $thankyou); }); // ============================ // 4. Add SEO schema // ============================ add_action('wp_head', function(){ if(is_product()){ global $product; echo '<script type="application/ld+json">'.json_encode([ "@context" => "https://schema.org/", "@type" => "Product", "name" => $product->get_name(), "image" => wp_get_attachment_url($product->get_image_id()), "description" => wp_strip_all_tags($product->get_short_description()), "sku" => $product->get_sku(), "brand" => "AMAZING FINDS", "offers" => [ "@type" => "Offer", "priceCurrency" => get_woocommerce_currency(), "price" => $product->get_price(), "availability" => "https://schema.org/InStock" ] ], JSON_UNESCAPED_SLASHES).'</script>'; } }); // ============================ // 5. Chatbot + AI Agent // ============================ add_action('wp_footer', function(){ ?> <script> (function(d,t) { var BASE_URL="https://app.chatwoot.com"; var g=d.createElement(t),s=d.getElementsByTagName(t)[0]; g.src=BASE_URL+"/packs/js/sdk.js"; s.parentNode.insertBefore(g,s); g.onload=function(){ window.chatwootSDK.run({websiteToken: "YOUR_CHATWOOT_TOKEN", baseUrl: BASE_URL}) } })(document,"script"); </script> <?php }); // ============================ // 6. Webhooks for automation (social posting) // ============================ add_action('publish_product', function($post_id){ $product = wc_get_product($post_id); $data = [ 'title' => get_the_title($post_id), 'url' => get_permalink($post_id), 'image' => wp_get_attachment_url($product->get_image_id()), 'price' => $product->get_price() ]; $social_hooks = [ 'https://your-n8n-instance/webhook/post-youtube', 'https://your-n8n-instance/webhook/post-instagram', 'https://your-n8n-instance/webhook/post-facebook', 'https://your-n8n-instance/webhook/post-twitter', 'https://your-n8n-instance/webhook/post-tiktok', 'https://your-n8n-instance/webhook/post-linkedin', 'https://your-n8n-instance/webhook/post-snapchat', 'https://your-n8n-instance/webhook/post-amazon' ]; foreach($social_hooks as $hook){ wp_remote_post($hook, ['body' => $data]); } }); // ============================ // 7. AI Studio Menu // ============================ add_action('admin_menu', function(){ add_menu_page('AMAZING FINDS AI Studio', 'AI Studio', 'manage_options', 'amazing-finds-ai-studio', 'af_ai_studio_page', 'dashicons-admin-multisite', 6); }); function af_ai_studio_page(){ ?> <h1>AMAZING FINDS AI Studio</h1> <p>Welcome to your AI Studio: edit images, create videos, and generate product content.</p> <h2>Image Editor</h2> <p>Upload or select product images to enhance, remove background, add text/watermark, or generate AI images.</p> <h2>Video Editor</h2> <p>Create short promo videos for products, add text/logo overlays, resize for social media, and auto-publish.</p> <h2>AI Content</h2> <p>Generate product descriptions, blog posts, and social captions with one click.</p> <p>All media can be automatically posted to your social channels and saved in WooCommerce.</p> <?php } ?> - Initial Deployment
4bbdc99
verified
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>AMAZING FINDS - AI Studio Features</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .feature-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .gradient-text { | |
| background: linear-gradient(90deg, #3b82f6, #8b5cf6); | |
| -webkit-background-clip: text; | |
| background-clip: text; | |
| color: transparent; | |
| } | |
| .blob { | |
| position: absolute; | |
| opacity: 0.2; | |
| filter: blur(40px); | |
| z-index: -1; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <!-- Header --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="container mx-auto px-4 py-6 flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center"> | |
| <i class="fas fa-bolt text-white text-xl"></i> | |
| </div> | |
| <h1 class="text-2xl font-bold text-gray-800">AMAZING FINDS</h1> | |
| </div> | |
| <button class="bg-gradient-to-r from-blue-500 to-purple-600 text-white px-6 py-2 rounded-lg font-medium hover:opacity-90 transition"> | |
| Get Started | |
| </button> | |
| </div> | |
| </header> | |
| <!-- Hero Section --> | |
| <section class="relative overflow-hidden"> | |
| <div class="blob bg-blue-400 w-96 h-96 top-0 left-0"></div> | |
| <div class="blob bg-purple-400 w-96 h-96 bottom-0 right-0"></div> | |
| <div class="container mx-auto px-4 py-20 text-center relative z-10"> | |
| <h1 class="text-5xl md:text-6xl font-bold text-gray-800 mb-6"> | |
| <span class="gradient-text">AMAZING FINDS</span> AI Studio | |
| </h1> | |
| <p class="text-xl text-gray-600 max-w-3xl mx-auto mb-10"> | |
| All-in-one eCommerce solution with AI-powered store setup, SEO, media editing, chatbots and automation. | |
| </p> | |
| <div class="flex flex-col sm:flex-row justify-center gap-4"> | |
| <button class="bg-gradient-to-r from-blue-500 to-purple-600 text-white px-8 py-3 rounded-lg font-medium hover:opacity-90 transition text-lg"> | |
| Install Plugin Now | |
| </button> | |
| <button class="border border-gray-300 text-gray-700 px-8 py-3 rounded-lg font-medium hover:bg-gray-50 transition text-lg"> | |
| See Demo | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Features Section --> | |
| <section class="py-16 bg-white"> | |
| <div class="container mx-auto px-4"> | |
| <div class="text-center mb-16"> | |
| <h2 class="text-3xl font-bold text-gray-800 mb-4">Complete eCommerce Automation</h2> | |
| <p class="text-gray-600 max-w-2xl mx-auto"> | |
| One-click install sets up WooCommerce, funnels, SEO, AI chat, media editing and social automation. | |
| </p> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> | |
| <!-- Store & Funnel --> | |
| <div class="bg-gray-50 rounded-xl p-6 feature-card transition duration-300"> | |
| <div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-store text-blue-600 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">Store & Funnel</h3> | |
| <ul class="space-y-2 text-gray-600"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>WooCommerce store setup</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>CartFlows funnel pages (landing + thank you)</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- SEO & Ranking --> | |
| <div class="bg-gray-50 rounded-xl p-6 feature-card transition duration-300"> | |
| <div class="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-chart-line text-purple-600 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">SEO & Ranking</h3> | |
| <ul class="space-y-2 text-gray-600"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>RankMath integration</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Automatic schema markup on products</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Auto-generates blog + product descriptions via AI</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- AI Agent & Chat --> | |
| <div class="bg-gray-50 rounded-xl p-6 feature-card transition duration-300"> | |
| <div class="w-12 h-12 bg-green-100 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-robot text-green-600 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">AI Agent & Chat</h3> | |
| <ul class="space-y-2 text-gray-600"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Chatwoot live chat + AI responder</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Answers FAQs, product info, shipping, returns</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Optional handoff to human</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- Media Studio --> | |
| <div class="bg-gray-50 rounded-xl p-6 feature-card transition duration-300"> | |
| <div class="w-12 h-12 bg-yellow-100 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-photo-film text-yellow-600 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">Media Studio</h3> | |
| <ul class="space-y-2 text-gray-600"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Video Editor: Trim, merge, overlay text/logo</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Auto-generate product promo videos</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Resize for TikTok, Reels, YouTube Shorts</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Auto-post via n8n/IFTTT</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- Image Editor --> | |
| <div class="bg-gray-50 rounded-xl p-6 feature-card transition duration-300"> | |
| <div class="w-12 h-12 bg-pink-100 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-image text-pink-600 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">Image Editor</h3> | |
| <ul class="space-y-2 text-gray-600"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Crop, resize, brightness/contrast</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Background removal + AI enhancement</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Text-to-image generation</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Product mockups & watermarks</span> | |
| </li> | |
| </ul> | |
| </div> | |
| <!-- Automation --> | |
| <div class="bg-gray-50 rounded-xl p-6 feature-card transition duration-300"> | |
| <div class="w-12 h-12 bg-red-100 rounded-lg flex items-center justify-center mb-4"> | |
| <i class="fas fa-bolt text-red-600 text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold text-gray-800 mb-3">Automation</h3> | |
| <ul class="space-y-2 text-gray-600"> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Webhook triggers for orders, new products, media</span> | |
| </li> | |
| <li class="flex items-start"> | |
| <i class="fas fa-check text-green-500 mt-1 mr-2"></i> | |
| <span>Auto-post to YouTube, TikTok, Instagram, Facebook, X, LinkedIn, Snapchat, Amazon</span> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- CTA Section --> | |
| <section class="py-16 bg-gradient-to-r from-blue-500 to-purple-600 text-white"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <h2 class="text-3xl font-bold mb-6">Free All-in-One eCommerce Plugin</h2> | |
| <p class="text-xl mb-8 max-w-2xl mx-auto opacity-90"> | |
| The AMAZING FINDS AI Studio plugin installs everything automatically - no coding required. | |
| </p> | |
| <div class="flex flex-col sm:flex-row justify-center gap-4"> | |
| <button class="bg-white text-blue-600 px-8 py-3 rounded-lg font-medium hover:bg-gray-100 transition text-lg"> | |
| Download Now - Free | |
| </button> | |
| <button class="border border-white text-white px-8 py-3 rounded-lg font-medium hover:bg-white hover:bg-opacity-10 transition text-lg"> | |
| View Documentation | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-gray-900 text-white py-12"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex flex-col md:flex-row justify-between"> | |
| <div class="mb-8 md:mb-0"> | |
| <div class="flex items-center space-x-2 mb-4"> | |
| <div class="w-10 h-10 bg-gradient-to-r from-blue-500 to-purple-600 rounded-lg flex items-center justify-center"> | |
| <i class="fas fa-bolt text-white text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold">AMAZING FINDS</h3> | |
| </div> | |
| <p class="text-gray-400 max-w-xs"> | |
| Free WordPress plugin for automated eCommerce with AI tools. | |
| </p> | |
| </div> | |
| <div class="grid grid-cols-2 md:grid-cols-3 gap-8"> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Product</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Features</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Pricing</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Documentation</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Company</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">About</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Blog</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Careers</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-lg font-semibold mb-4">Support</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Help Center</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li> | |
| <li><a href="#" class="text-gray-400 hover:text-white transition">Community</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center"> | |
| <p class="text-gray-400 mb-4 md:mb-0">© 2023 AMAZING FINDS. All rights reserved.</p> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter text-xl"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-facebook text-xl"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-instagram text-xl"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-linkedin text-xl"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Simple animation for feature cards on scroll | |
| document.addEventListener('DOMContentLoaded', function() { | |
| const featureCards = document.querySelectorAll('.feature-card'); | |
| const observer = new IntersectionObserver((entries) => { | |
| entries.forEach(entry => { | |
| if (entry.isIntersecting) { | |
| entry.target.style.opacity = '1'; | |
| entry.target.style.transform = 'translateY(0)'; | |
| } | |
| }); | |
| }, { threshold: 0.1 }); | |
| featureCards.forEach(card => { | |
| card.style.opacity = '0'; | |
| card.style.transform = 'translateY(20px)'; | |
| card.style.transition = 'all 0.5s ease'; | |
| observer.observe(card); | |
| }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=cryptowiz/https-huggingface-co-spaces-enzostvs-deepsite" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |