Changeset 3806011
- Timestamp:
- 11/16/2026 08:02:57 PM (2 hours ago)
- Location:
- iskracore-flyer-manager/trunk
- Files:
-
- 3 edited
-
CHANGELOG.txt (modified) (1 diff)
-
iskracore-flyer-manager.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
iskracore-flyer-manager/trunk/CHANGELOG.txt
r3803723 r3806011 1 = 1.0.9 = 2 * Add a highlighted green Get PRO submenu as the final item in Flyer Manager admin navigation when Pro is inactive. 3 * Display optional Pro features, pricing and Freemius checkout; show active status when Pro is licensed. 4 * Preserve all existing Free functionality, data, shortcode and settings. 5 1 6 = 1.0.8 = 2 7 * Escape WordPress-generated image, retailer logo and pagination HTML in the public shortcode using wp_kses_post(). -
iskracore-flyer-manager/trunk/iskracore-flyer-manager.php
r3803723 r3806011 3 3 * Plugin Name: IskraCore Flyer Manager 4 4 * Description: Organize PDF and image flyers with retailer filters, validity dates and the [flyerhub] shortcode. 5 * Version: 1.0. 85 * Version: 1.0.9 6 6 * Requires at least: 6.2 7 7 * Requires PHP: 7.4 … … 701 701 wp_enqueue_style('flyerhub-admin-brand', plugins_url('assets/admin-brand.css', __FILE__), array(), '1.0.1'); 702 702 }); 703 704 705 /** 706 * Optional Pro information screen. The free plugin never contacts Freemius or 707 * requires a license; checkout is opened only when an administrator clicks. 708 */ 709 add_action('admin_menu', function () { 710 $pro_active = function_exists('iskracore_pro_license_is_active') && iskracore_pro_license_is_active(); 711 $menu_label = $pro_active ? __('PRO Active', 'iskracore-flyer-manager') : __('Get PRO', 'iskracore-flyer-manager'); 712 713 add_submenu_page( 714 'edit.php?post_type=iskracore_flyer', 715 __('IskraCore Flyer Manager Pro', 'iskracore-flyer-manager'), 716 $menu_label, 717 'manage_options', 718 'iskracore-get-pro', 719 'iskracore_flyer_pro_page' 720 ); 721 }, 999); 722 723 /** 724 * Highlight the optional upgrade link like a dedicated call to action. 725 * This is only shown while Pro is inactive; a licensed site gets a normal 726 * "PRO Active" menu entry instead. 727 */ 728 add_action('admin_enqueue_scripts', function () { 729 if (!current_user_can('manage_options')) { 730 return; 731 } 732 if (function_exists('iskracore_pro_license_is_active') && iskracore_pro_license_is_active()) { 733 return; 734 } 735 736 wp_register_style('iskracore-flyer-pro-menu', false, array(), '1.0.9'); 737 wp_enqueue_style('iskracore-flyer-pro-menu'); 738 wp_add_inline_style('iskracore-flyer-pro-menu', ' 739 #adminmenu .wp-submenu a[href*="page=iskracore-get-pro"] { 740 display: block; 741 margin: 6px 5px 7px; 742 padding: 8px 12px; 743 background: #008a20; 744 color: #fff !important; 745 font-weight: 700; 746 border-radius: 2px; 747 text-align: center; 748 transition: background-color 0.15s ease; 749 } 750 #adminmenu .wp-submenu a[href*="page=iskracore-get-pro"]:hover, 751 #adminmenu .wp-submenu a[href*="page=iskracore-get-pro"]:focus { 752 background: #006b18; 753 color: #fff !important; 754 } 755 '); 756 }); 757 758 /** Display the optional upgrade page, restricted to WordPress administrators. */ 759 function iskracore_flyer_pro_page() { 760 if (!current_user_can('manage_options')) { 761 return; 762 } 763 764 $pro_active = function_exists('iskracore_pro_license_is_active') && iskracore_pro_license_is_active(); 765 $checkout_url = 'https://checkout.freemius.com/plugin/45126/plan/79546/'; 766 $product_url = 'https://iskracore.com/software/'; 767 $features = array( 768 array(__('QR Manager', 'iskracore-flyer-manager'), __('Create QR codes for your public offers page and retailer destinations.', 'iskracore-flyer-manager')), 769 array(__('Analytics dashboard', 'iskracore-flyer-manager'), __('View aggregated PDF previews, file clicks and QR-link visits.', 'iskracore-flyer-manager')), 770 array(__('Bulk Upload', 'iskracore-flyer-manager'), __('Create multiple flyer drafts from PDFs and images in one batch.', 'iskracore-flyer-manager')), 771 array(__('Bulk Edit', 'iskracore-flyer-manager'), __('Preview and update selected flyers together.', 'iskracore-flyer-manager')), 772 ); 773 774 echo '<div class="wrap" style="max-width:1050px">'; 775 echo '<h1>' . esc_html__('IskraCore Flyer Manager Pro', 'iskracore-flyer-manager') . '</h1>'; 776 777 if ($pro_active) { 778 echo '<div class="notice notice-success inline"><p><strong>' . esc_html__('Your Pro license is active.', 'iskracore-flyer-manager') . '</strong> ' . esc_html__('The Pro tools are available in the Flyer Manager menu.', 'iskracore-flyer-manager') . '</p></div>'; 779 } else { 780 echo '<p style="font-size:16px;max-width:760px">' . esc_html__('Manage more flyers with optional professional tools. Your Free plugin continues to work without any paid license.', 'iskracore-flyer-manager') . '</p>'; 781 } 782 783 echo '<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:22px 0">'; 784 foreach ($features as $feature) { 785 echo '<div style="background:#fff;border:1px solid #dcdcde;border-radius:8px;padding:20px">'; 786 echo '<h2 style="margin:0 0 10px;font-size:17px">' . esc_html($feature[0]) . '</h2>'; 787 echo '<p style="margin:0;line-height:1.6">' . esc_html($feature[1]) . '</p>'; 788 echo '</div>'; 789 } 790 echo '</div>'; 791 792 if (!$pro_active) { 793 echo '<div style="background:#fff;border:1px solid #dcdcde;border-radius:8px;padding:24px">'; 794 echo '<h2 style="margin-top:0">' . esc_html__('Single Site license', 'iskracore-flyer-manager') . '</h2>'; 795 echo '<p style="margin:0 0 14px"><strong style="font-size:28px">' . esc_html__('€59 / year', 'iskracore-flyer-manager') . '</strong></p>'; 796 echo '<p>' . esc_html__('One website. Automatically renews annually unless cancelled. Applicable taxes are shown at checkout.', 'iskracore-flyer-manager') . '</p>'; 797 echo '<p><a class="button button-primary button-hero" href="' . esc_url($checkout_url) . '" target="_blank" rel="noopener noreferrer">' . esc_html__('Get PRO – Secure checkout', 'iskracore-flyer-manager') . '</a></p>'; 798 echo '<p style="margin-bottom:0;color:#646970">' . esc_html__('Pro is a separate paid add-on, delivered and licensed through Freemius. The Free plugin remains fully functional.', 'iskracore-flyer-manager') . '</p>'; 799 echo '</div>'; 800 } 801 802 echo '<p style="margin-top:20px"><a href="' . esc_url($product_url) . '" target="_blank" rel="noopener noreferrer">' . esc_html__('Product details on IskraCore', 'iskracore-flyer-manager') . '</a></p>'; 803 echo '</div>'; 804 } -
iskracore-flyer-manager/trunk/readme.txt
r3805930 r3806011 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 87 Stable tag: 1.0.9 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 68 68 69 69 == Screenshots == 70 71 70 1. Public flyer gallery displaying current catalogs with retailer branding and PDF links. 72 71 2. Built-in PDF preview lets visitors view catalogs without leaving the page. … … 77 76 78 77 == Changelog == 78 = 1.0.9 = 79 * Add an optional highlighted Get PRO admin menu page with Pro feature details and Freemius checkout link. 80 * Keep all Free features, stored data and the [flyerhub] shortcode unchanged. 81 79 82 = 1.0.8 = 80 83 * Escape WordPress-generated image, retailer logo and pagination HTML in the public shortcode. … … 103 106 104 107 == Upgrade Notice == 108 = 1.0.9 = 109 Adds an optional Pro information page in WordPress admin. No data migration or Free feature changes. 110 105 111 = 1.0.8 = 106 112 Shortcode output escaping improvements; no database migration required for sites already on 1.0.7.
Note:
See TracChangeset
for help on using the changeset viewer.