fte-src-figma-to-elementor-v3-includes-class-admin-page-php
<?php /** * Admin page renderer — settings metabox + conversion UI. */ if ( ! defined( 'ABSPATH' ) ) exit; class FTE_Admin_Page { public static function render() { $token = get_option( 'fte_figma_token', " ); $has_token = ! empty( $token ); ?> <div class="wrap fte-wrap"> <h1><?php esc_html_e( 'Figma to Elementor', 'figma-to-elementor' ); ?></h1> <p class="description"> […]
fte-src-figma-to-elementor-v3-includes-class-image-resolver-php
<?php /** * Image resolution post-processor. * * Walks the Elementor template, collects __FIGMA_IMAGE_REF__ placeholders, * resolves them via the Figma API, downloads images into the WP Media Library, * and replaces placeholders with WordPress attachment URLs. */ if ( ! defined( 'ABSPATH' ) ) exit; class FTE_Image_Resolver { private FTE_Figma_Client $client; private string $file_key; […]
fte-src-figma-to-elementor-v3-includes-class-figma-client-php
<?php /** * Figma REST API client. * * Uses wp_remote_get/wp_remote_post for HTTP so it respects WordPress proxy * settings and SSL configuration. Implements a simple cooldown between * requests to stay under Figma's 30 req/min rate limit. */ if ( ! defined( 'ABSPATH' ) ) exit; class FTE_Figma_Client { private string $token; private string […]
fte-src-figma-to-elementor-v3-figma-to-elementor-php
<?php /** * Plugin Name: Figma to Elementor * Plugin URI: https://marketbiz.co.il * Description: Converts Figma designs into Elementor legacy Section/Column templates. * Version: 1.0.0 * Author: MarketBiz * Author URI: https://marketbiz.co.il * License: GPL-2.0+ * Text Domain: figma-to-elementor * Requires PHP: 7.4 * * This plugin fetches a Figma file via the REST API, […]
fte-src-figma-to-elementor-v3-includes-class-template-importer-php
<?php /** * Elementor template importer. * * Saves the generated Elementor JSON as a WordPress post of type * 'elementor_library', making it available in Elementor's * Templates → Saved Templates panel. */ if ( ! defined( 'ABSPATH' ) ) exit; class FTE_Template_Importer { /** * Import an Elementor template into WordPress. * * @param […]
fte-src-figma-to-elementor-v3-includes-class-elementor-emitter-php
<?php /** * Elementor JSON emitter — converts logical rows into Elementor template format. * Also includes the template validator. */ if ( ! defined( 'ABSPATH' ) ) exit; class FTE_Elementor_Emitter { private int $section_width; public function __construct( int $section_width = 1140 ) { $this->section_width = $section_width; } // ———————————————————————– // Public API // ———————————————————————– […]
fte-src-figma-to-elementor-v3-includes-class-row-detector-php
<?php /** * Row detection & column clustering. * * Converts Figma's tree (auto-layout or absolute-positioned) into logical * rows and columns with percentage-based widths. */ if ( ! defined( 'ABSPATH' ) ) exit; class FTE_Row_Detector { private float $overlap_threshold; private int $max_columns; public function __construct( float $overlap_threshold = 0.5, int $max_columns = 10 ) […]
fte-src-figma-to-elementor-v3-includes-class-converter-php
<?php /** * Core converter: Figma tree → logical rows/columns with depth-budget flattening. */ if ( ! defined( 'ABSPATH' ) ) exit; class FTE_Converter { private FTE_Row_Detector $detector; private FTE_Widget_Mapper $mapper; private string $flatten_strategy; public function __construct( string $flatten_strategy = 'serialize' ) { $this->detector = new FTE_Row_Detector(); $this->mapper = new FTE_Widget_Mapper(); $this->flatten_strategy = $flatten_strategy; } […]
fte-src-figma-to-elementor-v3-includes-class-widget-mapper-php
<?php /** * Maps Figma leaf nodes to Elementor widget settings. */ if ( ! defined( 'ABSPATH' ) ) exit; class FTE_Widget_Mapper { /** * Convert a Figma leaf node into a logical widget array. * * @param array $node Figma node. * @return array [ 'type' => 'widget', 'widgetType' => …, 'settings' => […] […]
Hello world!
Welcome to WordPress. This is your first post. Edit or delete it, then start writing!