Plugin Directory

Changeset 3846973


Ignore:
Timestamp:
12/06/2026 12:50:08 AM (less than one hour ago)
Author:
deskraven
Message:

1.0.2: Pro tab, link to Pro page.

Location:
ravencache/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ravencache/trunk/assets/sc-admin-102.css

    r3806484 r3846973  
    9191}
    9292
     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  
    3030        public static function action_links( $links ) {
    3131                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>';
    3234                return $links;
    3335        }
    … …  
    539541                        } elseif ( 'ai' === $slug && class_exists( 'RavenCache_AI' ) ) {
    540542                                RavenCache_AI::render_tab();
     543                        } elseif ( 'pro' === $slug ) {
     544                                self::tab_pro();
    541545                        } elseif ( 'license' === $slug && class_exists( 'RavenCache_License' ) ) {
    542546                                RavenCache_License::render_tab();
    … …  
    551555        private static function status_chip( $label, $on ) {
    552556                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>';
    553577        }
    554578
  • ravencache/trunk/includes/class-sc-settings.php

    r3806484 r3846973  
    3232                if ( class_exists( 'RavenCache_AI' ) ) {
    3333                        $tabs['ai'] = 'AI Assistant';
     34                } else {
     35                        $tabs['pro'] = 'Pro';
    3436                }
    3537                if ( class_exists( 'RavenCache_License' ) ) {
  • ravencache/trunk/ravencache.php

    r3806484 r3846973  
    44 * Plugin URI:        https://ravencache.org/
    55 * 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.0
     6 * Version:           1.0.2
    77 * Requires at least: 5.9
    88 * Requires PHP:      7.4
    … …  
    1919}
    2020
    21 define( 'RAVENCACHE_VERSION', '1.0.0' );
     21define( 'RAVENCACHE_VERSION', '1.0.2' );
    2222define( 'RAVENCACHE_FILE', __FILE__ );
    2323define( 'RAVENCACHE_DIR', plugin_dir_path( __FILE__ ) );
  • ravencache/trunk/readme.txt

    r3806484 r3846973  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    101101
    102102= 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.
     103Yes. 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.
    104104
    105105== 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.
    106112
    107113= 1.0.0 =
    … …  
    110116== Upgrade Notice ==
    111117
     118= 1.0.2 =
     119Adds an informational Pro tab.
     120
     121= 1.0.1 =
     122Adds a link to RavenCache Pro on the Plugins screen.
     123
    112124= 1.0.0 =
    113125First release.
Note: See TracChangeset for help on using the changeset viewer.