Changeset 3846973
- Timestamp:
- 12/06/2026 12:50:08 AM (less than one hour ago)
- Location:
- ravencache/trunk
- Files:
-
- 5 edited
-
assets/sc-admin-102.css (modified) (1 diff)
-
includes/class-sc-admin.php (modified) (3 diffs)
-
includes/class-sc-settings.php (modified) (1 diff)
-
ravencache.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ravencache/trunk/assets/sc-admin-102.css
r3806484 r3846973 91 91 } 92 92 93 94 .sc-pro-list{list-style:none;margin:12px 0;padding:0}.sc-pro-item{padding:12px 0;border-top:1px solid #f0f0f1;opacity:.6}.sc-pro-item p{margin:4px 0 0;color:#50575e}.sc-pro-badge{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:10px;background:#f3e8ff;color:#6d28d9;font-size:11px;font-weight:600;vertical-align:middle} -
ravencache/trunk/includes/class-sc-admin.php
r3806484 r3846973 30 30 public static function action_links( $links ) { 31 31 array_unshift( $links, '<a href="' . esc_url( admin_url( 'admin.php?page=ravencache' ) ) . '">Panel</a>' ); 32 // Link to the Pro page on our own website (no license code or remote calls in this build). 33 $links['ravencache_pro'] = '<a href="' . esc_url( 'https://ravencache.org/pricing/' ) . '" target="_blank" rel="noopener" style="color:#7c3aed;font-weight:600">' . esc_html__( 'Get RavenCache Pro', 'ravencache' ) . '</a>'; 32 34 return $links; 33 35 } … … 539 541 } elseif ( 'ai' === $slug && class_exists( 'RavenCache_AI' ) ) { 540 542 RavenCache_AI::render_tab(); 543 } elseif ( 'pro' === $slug ) { 544 self::tab_pro(); 541 545 } elseif ( 'license' === $slug && class_exists( 'RavenCache_License' ) ) { 542 546 RavenCache_License::render_tab(); … … 551 555 private static function status_chip( $label, $on ) { 552 556 echo '<span class="sc-chip ' . ( $on ? 'sc-on' : 'sc-off' ) . '">' . esc_html( $label ) . ': ' . ( $on ? 'on' : 'off' ) . '</span>'; 557 } 558 559 /* ---------- Zakładka Pro (tylko informacja, bez kodu tych funkcji) ---------- */ 560 561 private static function tab_pro() { 562 $url = 'https://ravencache.org/pricing/'; 563 $items = array( 564 array( 'AI Assistant', 'Explains why a page is slow, suggests the right profile and helps fix conflicts. Uses an external service, only when you ask it.', 'Available in Pro' ), 565 array( 'Critical CSS and unused CSS removal', 'Inlines the CSS needed for the first screen and drops the rest, the biggest single gain for PageSpeed.', 'Coming soon' ), 566 array( 'Safe test mode', 'Tries the Aggressive profile for a limited time and rolls back automatically if the site stops working.', 'Coming soon' ), 567 ); 568 echo '<div class="sc-card sc-pro"><h2>RavenCache Pro</h2>'; 569 echo '<p>Everything in this plugin works fully and without limits. Pro is a separate version with extra features, sold on our website.</p>'; 570 echo '<ul class="sc-pro-list">'; 571 foreach ( $items as $it ) { 572 echo '<li class="sc-pro-item"><div><strong>' . esc_html( $it[0] ) . '</strong> <span class="sc-pro-badge">' . esc_html( $it[2] ) . '</span><p>' . esc_html( $it[1] ) . '</p></div></li>'; 573 } 574 echo '</ul>'; 575 echo '<p><a class="button button-primary" href="' . esc_url( $url ) . '" target="_blank" rel="noopener">' . esc_html__( 'See RavenCache Pro', 'ravencache' ) . '</a></p>'; 576 echo '</div>'; 553 577 } 554 578 -
ravencache/trunk/includes/class-sc-settings.php
r3806484 r3846973 32 32 if ( class_exists( 'RavenCache_AI' ) ) { 33 33 $tabs['ai'] = 'AI Assistant'; 34 } else { 35 $tabs['pro'] = 'Pro'; 34 36 } 35 37 if ( class_exists( 'RavenCache_License' ) ) { -
ravencache/trunk/ravencache.php
r3806484 r3846973 4 4 * Plugin URI: https://ravencache.org/ 5 5 * Description: Fast page cache, HTML/CSS/JS optimization, WebP, local fonts, Cloudflare and Bunny.net purge, database cleanup and speed measurements. Every feature can be switched on separately or through a ready-made profile. 6 * Version: 1.0. 06 * Version: 1.0.2 7 7 * Requires at least: 5.9 8 8 * Requires PHP: 7.4 … … 19 19 } 20 20 21 define( 'RAVENCACHE_VERSION', '1.0. 0' );21 define( 'RAVENCACHE_VERSION', '1.0.2' ); 22 22 define( 'RAVENCACHE_FILE', __FILE__ ); 23 23 define( 'RAVENCACHE_DIR', plugin_dir_path( __FILE__ ) ); -
ravencache/trunk/readme.txt
r3806484 r3846973 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 07 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 101 101 102 102 = Is there a Pro version? = 103 A paid version with extra features is planned. Settings carry over because they are stored in the same options.103 Yes. RavenCache Pro adds extra features and an AI assistant, and is sold on our own website: https://ravencache.org/pricing/. Settings carry over because they are stored in the same options. This free plugin works fully without it and never contacts our servers. 104 104 105 105 == Changelog == 106 107 = 1.0.2 = 108 * Added an informational "Pro" tab. It only describes Pro features and links to our website; it contains no locked or time-limited code. 109 110 = 1.0.1 = 111 * Added a "Get RavenCache Pro" link on the Plugins screen and updated the Pro FAQ. 106 112 107 113 = 1.0.0 = … … 110 116 == Upgrade Notice == 111 117 118 = 1.0.2 = 119 Adds an informational Pro tab. 120 121 = 1.0.1 = 122 Adds a link to RavenCache Pro on the Plugins screen. 123 112 124 = 1.0.0 = 113 125 First release.
Note:
See TracChangeset
for help on using the changeset viewer.