Changeset 3430755
- Timestamp:
- 01/01/2026 09:03:22 PM (3 months ago)
- Location:
- rankjet-ai
- Files:
-
- 38 added
- 4 edited
-
tags/1.0.4 (added)
-
tags/1.0.4/assets (added)
-
tags/1.0.4/assets/css (added)
-
tags/1.0.4/assets/css/admin.css (added)
-
tags/1.0.4/assets/css/rankjet-editor.css (added)
-
tags/1.0.4/assets/images (added)
-
tags/1.0.4/assets/images/logo.png (added)
-
tags/1.0.4/assets/images/rankjet-icon.png (added)
-
tags/1.0.4/assets/js (added)
-
tags/1.0.4/assets/js/admin.js (added)
-
tags/1.0.4/assets/js/rankjet-editor.js (added)
-
tags/1.0.4/assets/js/rankjet-sidebar.js (added)
-
tags/1.0.4/assets/js/rankjet-toolbar.js (added)
-
tags/1.0.4/inc (added)
-
tags/1.0.4/inc/admin (added)
-
tags/1.0.4/inc/admin/class-rankjet-ai-admin.php (added)
-
tags/1.0.4/inc/editor (added)
-
tags/1.0.4/inc/editor/class-rankjet-ai-editor.php (added)
-
tags/1.0.4/inc/init (added)
-
tags/1.0.4/inc/init/class-rankjet-ai-init.php (added)
-
tags/1.0.4/inc/integration (added)
-
tags/1.0.4/inc/integration/class-rankjet-ai-page-data-handler.php (added)
-
tags/1.0.4/inc/integration/class-rankjet-ai-platform-integration.php (added)
-
tags/1.0.4/inc/services (added)
-
tags/1.0.4/inc/services/class-rankjet-ai-content-service.php (added)
-
tags/1.0.4/lang (added)
-
tags/1.0.4/lang/rankjet-ai.pot (added)
-
tags/1.0.4/rankjet-ai.php (added)
-
tags/1.0.4/readme.txt (added)
-
trunk/assets/css/rankjet-editor.css (added)
-
trunk/assets/images/rankjet-icon.png (added)
-
trunk/assets/js/rankjet-editor.js (added)
-
trunk/assets/js/rankjet-sidebar.js (added)
-
trunk/assets/js/rankjet-toolbar.js (added)
-
trunk/inc/editor (added)
-
trunk/inc/editor/class-rankjet-ai-editor.php (added)
-
trunk/inc/init/class-rankjet-ai-init.php (modified) (2 diffs)
-
trunk/inc/integration/class-rankjet-ai-platform-integration.php (modified) (7 diffs)
-
trunk/inc/services (added)
-
trunk/inc/services/class-rankjet-ai-content-service.php (added)
-
trunk/rankjet-ai.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rankjet-ai/trunk/inc/init/class-rankjet-ai-init.php
r3417461 r3430755 18 18 require_once RANKJET_AI_PLUGIN_DIR . 'inc/admin/class-rankjet-ai-admin.php'; 19 19 require_once RANKJET_AI_PLUGIN_DIR . 'inc/integration/class-rankjet-ai-platform-integration.php'; 20 require_once RANKJET_AI_PLUGIN_DIR . 'inc/services/class-rankjet-ai-content-service.php'; 20 21 require_once RANKJET_AI_PLUGIN_DIR . 'inc/integration/class-rankjet-ai-page-data-handler.php'; 22 require_once RANKJET_AI_PLUGIN_DIR . 'inc/editor/class-rankjet-ai-editor.php'; 21 23 } 22 24 … … 25 27 new Rankjet_Ai_Platform_Integration(); 26 28 new Rankjet_Ai_Page_Data_Handler(); 29 new Rankjet_Ai_Editor(); 27 30 } 28 31 } -
rankjet-ai/trunk/inc/integration/class-rankjet-ai-platform-integration.php
r3422221 r3430755 12 12 13 13 public function __construct() { 14 // Set the API base URL based on environment 15 $this->api_base_url = defined('RANKJET_API_URL') ? RANKJET_API_URL : 'https://app.rankjet.ai/api/v1'; 14 // Set the API base URL based on environment or setting 15 $config_url = get_option('rankjet_platform_api_url'); 16 if (!empty($config_url)) { 17 $this->api_base_url = rtrim($config_url, '/'); 18 } else { 19 $this->api_base_url = defined('RANKJET_API_URL') ? RANKJET_API_URL : 'https://app.rankjet.ai/api/v1'; 20 } 16 21 17 22 // Load saved credentials … … 55 60 register_setting('rankjet_platform_settings', 'rankjet_platform_api_token'); 56 61 register_setting('rankjet_platform_settings', 'rankjet_platform_website_id'); 62 register_setting('rankjet_platform_settings', 'rankjet_platform_api_url'); 57 63 register_setting('rankjet_platform_settings', 'rankjet_platform_auto_sync'); 58 64 register_setting('rankjet_platform_settings', 'rankjet_platform_last_sync'); … … 69 75 $api_token = $this->api_token; 70 76 $website_id = $this->website_id; 77 $api_url = get_option('rankjet_platform_api_url', ''); 71 78 $auto_sync = get_option('rankjet_platform_auto_sync', 'yes'); 72 79 $last_sync = get_option('rankjet_platform_last_sync', ''); … … 113 120 </tr> 114 121 122 <tr> 123 <th scope="row"> 124 <label for="rankjet_platform_api_url"><?php echo esc_html__('API URL', 'rankjet-ai'); ?></label> 125 </th> 126 <td> 127 <input type="text" 128 id="rankjet_platform_api_url" 129 name="rankjet_platform_api_url" 130 value="<?php echo esc_attr($api_url); ?>" 131 class="regular-text" /> 132 <p class="description"> 133 <?php echo esc_html__('Base API URL. Leave empty to use default (app.rankjet.ai). For local dev: http://your-local-site/api/v1', 'rankjet-ai'); ?> 134 </p> 135 </td> 136 </tr> 137 115 138 <tr> 116 139 <th scope="row"> … … 307 330 $token = sanitize_text_field($_POST['token']); 308 331 $website_id = sanitize_text_field($_POST['website_id']); 332 // API URL is saved via normal form submission usually, but if updated during test/save flow: 333 // We generally rely on the form save for URL. 309 334 310 335 // Save the options … … 514 539 * Make API request to platform 515 540 */ 516 p rivatefunction make_api_request($endpoint, $method = 'GET', $data = []) {541 public function make_api_request($endpoint, $method = 'GET', $data = []) { 517 542 $url = $this->api_base_url . $endpoint; 518 543 … … 556 581 } 557 582 } 583 -
rankjet-ai/trunk/rankjet-ai.php
r3429309 r3430755 4 4 Plugin URI: https://rankjet.ai/ 5 5 Description: AI-powered SEO plugin that helps you optimize your WordPress site with AI-generated meta tags, keyword suggestions, and content analysis. 6 Version: 1.0. 36 Version: 1.0.4 7 7 Author: wpdive 8 8 Author URI: https://wpdive.com -
rankjet-ai/trunk/readme.txt
r3429309 r3430755 5 5 Tested up to: 6.8 6 6 Requires PHP: 7.4 7 Stable tag: 1.0. 37 Stable tag: 1.0.4 8 8 License: GPLv3 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.