| 1 |
<?php |
| 2 |
/** |
| 3 |
* "No Image Generation" Settings |
| 4 |
* |
| 5 |
* Shows informational notice and promotes All Sources Images plugin |
| 6 |
* when the user disables AI image generation. |
| 7 |
* |
| 8 |
* @package BotWriter |
| 9 |
*/ |
| 10 |
|
| 11 |
if (!defined('ABSPATH')) { |
| 12 |
exit; |
| 13 |
} |
| 14 |
|
| 15 |
/** |
| 16 |
* Render "No Image Generation" settings |
| 17 |
* Called when 'none' is selected as image_provider |
| 18 |
*/ |
| 19 |
function botwriter_render_none_settings($settings, $is_active) { |
| 20 |
?> |
| 21 |
<div class="provider-config-section none-provider-section"> |
| 22 |
<!-- Info box --> |
| 23 |
<div class="notice notice-info inline bw-notice-info-inline" style="margin-bottom: 20px;"> |
| 24 |
<p> |
| 25 |
<span class="dashicons dashicons-info bw-icon-info"></span> |
| 26 |
<strong><?php esc_html_e('AI Image Generation Disabled', 'botwriter'); ?></strong> |
| 27 |
</p> |
| 28 |
<p> |
| 29 |
<?php esc_html_e('Posts will be created without featured images. You can add images manually after post creation.', 'botwriter'); ?> |
| 30 |
</p> |
| 31 |
</div> |
| 32 |
|
| 33 |
<!-- All Sources Images Promotion Banner --> |
| 34 |
<div class="bw-asi-promo-banner"> |
| 35 |
<div class="bw-asi-promo-header"> |
| 36 |
<span class="bw-asi-promo-icon">🖼️</span> |
| 37 |
<div class="bw-asi-promo-title"> |
| 38 |
<strong><?php esc_html_e('Want FREE Images for Your AI Posts?', 'botwriter'); ?></strong> |
| 39 |
<span class="bw-asi-promo-badge"><?php esc_html_e('Recommended', 'botwriter'); ?></span> |
| 40 |
</div> |
| 41 |
</div> |
| 42 |
|
| 43 |
<div class="bw-asi-promo-content"> |
| 44 |
<p class="bw-asi-promo-subtitle"> |
| 45 |
<?php esc_html_e('Use All Sources Images to automatically add images to BotWriter-generated posts:', 'botwriter'); ?> |
| 46 |
</p> |
| 47 |
|
| 48 |
<div class="bw-asi-promo-features"> |
| 49 |
<div class="bw-asi-feature-group"> |
| 50 |
<span class="bw-asi-feature-icon">📷</span> |
| 51 |
<div> |
| 52 |
<strong><?php esc_html_e('FREE Stock Photos', 'botwriter'); ?></strong> |
| 53 |
<span><?php esc_html_e('Pexels, Unsplash, Pixabay, Flickr, Openverse', 'botwriter'); ?></span> |
| 54 |
</div> |
| 55 |
</div> |
| 56 |
<div class="bw-asi-feature-group"> |
| 57 |
<span class="bw-asi-feature-icon">🤖</span> |
| 58 |
<div> |
| 59 |
<strong><?php esc_html_e('AI Generation', 'botwriter'); ?></strong> |
| 60 |
<span><?php esc_html_e('DALL-E, Stable Diffusion, Gemini, Replicate', 'botwriter'); ?></span> |
| 61 |
</div> |
| 62 |
</div> |
| 63 |
<div class="bw-asi-feature-group"> |
| 64 |
<span class="bw-asi-feature-icon">🎬</span> |
| 65 |
<div> |
| 66 |
<strong><?php esc_html_e('GIFs & Videos', 'botwriter'); ?></strong> |
| 67 |
<span><?php esc_html_e('GIPHY, YouTube thumbnails', 'botwriter'); ?></span> |
| 68 |
</div> |
| 69 |
</div> |
| 70 |
</div> |
| 71 |
|
| 72 |
<div class="bw-asi-promo-benefits"> |
| 73 |
<span><span class="dashicons dashicons-yes-alt"></span> <?php esc_html_e('Auto-generate on post publish', 'botwriter'); ?></span> |
| 74 |
<span><span class="dashicons dashicons-yes-alt"></span> <?php esc_html_e('Bulk process existing posts', 'botwriter'); ?></span> |
| 75 |
<span><span class="dashicons dashicons-yes-alt"></span> <?php esc_html_e('Insert images inside content', 'botwriter'); ?></span> |
| 76 |
</div> |
| 77 |
</div> |
| 78 |
|
| 79 |
<div class="bw-asi-promo-actions"> |
| 80 |
<a href="<?php echo esc_url(admin_url('plugin-install.php?s=all+sources+images&tab=search&type=term')); ?>" class="button button-primary bw-asi-btn-install"> |
| 81 |
<span class="dashicons dashicons-download"></span> |
| 82 |
<?php esc_html_e('Install Free Plugin', 'botwriter'); ?> |
| 83 |
</a> |
| 84 |
<a href="https://wordpress.org/plugins/all-sources-images/" target="_blank" class="button bw-asi-btn-learn"> |
| 85 |
<?php esc_html_e('Learn More', 'botwriter'); ?> → |
| 86 |
</a> |
| 87 |
</div> |
| 88 |
|
| 89 |
<p class="bw-asi-promo-note"> |
| 90 |
<span class="dashicons dashicons-info"></span> |
| 91 |
<?php esc_html_e('Works perfectly with BotWriter! Auto-add images when posts are created.', 'botwriter'); ?> |
| 92 |
</p> |
| 93 |
</div> |
| 94 |
</div> |
| 95 |
<?php |
| 96 |
} |
| 97 |
|