403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/AIWEBSTATION/wp-content/novamira-sandbox/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/AIWEBSTATION/wp-content/novamira-sandbox/build-aiwebstation-v2.php.disabled
<?php
/**
 * AIWebstation Builder - Minimal, safe approach
 * Target: Page ID 284
 */

$page_id = 284;

function _id() { return substr(md5(uniqid(mt_rand(), true)), 0, 7); }
function _px($n) { return ['unit'=>'px','size'=>$n,'sizes'=>[]]; }
function _pct($n) { return ['unit'=>'%','size'=>$n,'sizes'=>[]]; }
function _pad($t,$r,$b,$l) { return ['unit'=>'px','top'=>(string)$t,'right'=>(string)$r,'bottom'=>(string)$b,'left'=>(string)$l,'isLinked'=>false]; }
function _rad($n,$u='px') { return ['unit'=>$u,'top'=>(string)$n,'right'=>(string)$n,'bottom'=>(string)$n,'left'=>(string)$n,'isLinked'=>true]; }
function _gap($n) { return ['column'=>(string)$n,'row'=>(string)$n,'isLinked'=>true,'unit'=>'px','size'=>$n,'sizes'=>[]]; }
function _grad($a,$b,$angle=135) {
    return [
        'background_background'=>'gradient','background_color'=>$a,
        'background_color_stop'=>['unit'=>'%','size'=>0,'sizes'=>[]],
        'background_color_b'=>$b,'background_color_b_stop'=>['unit'=>'%','size'=>100,'sizes'=>[]],
        'background_gradient_type'=>'linear','background_gradient_angle'=>['unit'=>'deg','size'=>$angle,'sizes'=>[]]
    ];
}
function _solid($c) { return ['background_background'=>'classic','background_color'=>$c]; }
function _border($c,$w=1) {
    return ['border_border'=>'solid','border_width'=>['unit'=>'px','top'=>(string)$w,'right'=>(string)$w,'bottom'=>(string)$w,'left'=>(string)$w,'isLinked'=>true],'border_color'=>$c];
}

// ── Helper: create a simple widget array ──
function mk_widget($id, $type, $settings) {
    return ['id'=>$id, 'elType'=>'widget', 'widgetType'=>$type, 'settings'=>$settings, 'elements'=>[]];
}
function mk_container($id, $inner, $settings, $elements=[]) {
    return ['id'=>$id, 'elType'=>'container', 'isInner'=>$inner, 'settings'=>$settings, 'elements'=>$elements];
}

// ── Section 1: CSS Hook (single line CSS to avoid escaping issues) ──
$css_html = '<style>#hero-el{position:relative;}#hero-el::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 30%,rgba(96,74,255,.24),transparent 35%),radial-gradient(circle at 88% 80%,rgba(27,107,255,.20),transparent 35%);pointer-events:none;z-index:1;}.aw-gt{background:linear-gradient(90deg,#1765ff,#7441f5);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;color:transparent;display:inline;}.aw-hi img{box-shadow:0 30px 70px rgba(28,44,117,.22);}.aw-sol{transition:.3s ease;}.aw-sol:hover{transform:translateY(-5px);border-color:#b9c7ff!important;box-shadow:0 18px 45px rgba(41,79,170,.12)!important;}.aw-ind{transition:.25s ease;}.aw-ind:hover{transform:translateY(-3px);border-color:#bdcaff!important;box-shadow:0 12px 30px rgba(40,75,155,.09)!important;}.aw-fa a:hover{color:#fff!important;}@media(max-width:768px){.aw-hero-img{display:none!important;}.aw-btn-full{width:100%!important;}.aw-why-grid{flex-direction:column!important;}}@media(max-width:1100px){.aw-sol-grid > .e-con{width:calc(50% - 9px)!important;}.aw-ind-grid > .e-con{width:calc(33.333% - 10px)!important;}}@media(max-width:768px){.aw-sol-grid > .e-con{width:100%!important;}.aw-ind-grid > .e-con{width:calc(50% - 7.5px)!important;}}@media(max-width:480px){.aw-ind-grid > .e-con{width:100%!important;}}</style>';

$el_css = mk_widget(_id(), 'html', ['html'=>$css_html]);

// ── Section 2: Hero ──
$hero_btn1 = _id(); $hero_btn2 = _id(); $hero_img = _id();
$hero_content = mk_container(_id(), true, [
    'layout'=>'boxed','width'=>_pct(48),'flex_direction'=>'column','flex_align_items'=>'flex_start','padding'=>_pad(70,0,70,0)
], [
    mk_container(_id(), true, array_merge([
        'layout'=>'boxed','width'=>['unit'=>'auto','size'=>'','sizes'=>[]],'border_radius'=>_rad(30),
        'padding'=>_pad(8,16,8,16),'margin'=>_pad(0,0,18,0)
    ],_grad('#e8edff','#f0eaff',90)), [
        mk_widget(_id(), 'text-editor', ['editor'=>'AI-Powered • Smart • Efficient','text_color'=>'#2858dd','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_font_weight'=>'700','typography_line_height'=>['unit'=>'em','size'=>1.2,'sizes'=>[]]])
    ]),
    mk_widget(_id(), 'heading', ['title'=>'Empowering Businesses<br>with <span class="aw-gt">AI Solutions</span>','header_size'=>'h1','title_color'=>'#0a153c','typography_font_family'=>'Inter','typography_typography'=>'custom','typography_font_size'=>_px(72),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.08,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-3.5,'sizes'=>[]]]),
    mk_widget(_id(), 'text-editor', ['editor'=>'AIWebstation helps businesses automate, digitalize and grow with intelligent solutions, cloud technology and expert support.','text_color'=>'#4e5b79','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]],'margin'=>_pad(25,0,28,0)]),
    mk_container(_id(), true, [
        'layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_align_items'=>'center','flex_gap'=>_gap(12),'flex_wrap'=>'wrap','css_classes'=>'aw-btn-full'
    ], [
        mk_widget($hero_btn1, 'button', array_merge([
            'text'=>'Explore Solutions →','link'=>['url'=>'#aw-solutions','is_external'=>false,'nofollow'=>false],
            'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom',
            'typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50),
            'box_shadow_box_shadow_type'=>'yes','box_shadow_box_shadow'=>['horizontal'=>0,'vertical'=>10,'blur'=>25,'spread'=>0,'color'=>'rgba(41,86,255,0.25)']
        ],_grad('#1e62ff','#693ff5',135))),
        mk_widget($hero_btn2, 'button', [
            'text'=>'💬 Talk to AI Assistant','link'=>['url'=>'#aw-ai','is_external'=>false,'nofollow'=>false],
            'button_text_color'=>'#1a2850','background_background'=>'classic','background_color'=>'rgba(255,255,255,0.65)',
            'border_border'=>'solid','border_width'=>['unit'=>'px','top'=>'1','right'=>'1','bottom'=>'1','left'=>'1','isLinked'=>true],'border_color'=>'#8d9bc0',
            'border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700',
            'padding'=>_pad(0,25,0,25),'min_height'=>_px(50)
        ])
    ])
]);

$hero_visual = mk_container(_id(), true, [
    'layout'=>'boxed','width'=>_pct(50),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'flex_end','css_classes'=>'aw-hero-img'
], [
    mk_widget($hero_img, 'image', [
        'image'=>['url'=>'https://website.ipohserver.com/AIWEBSTATION/wp-content/uploads/2026/08/aiwebstation-header-scaled.jpg','id'=>88],
        'image_size'=>'full','image_border_radius'=>_rad(18),'css_classes'=>'aw-hi'
    ])
]);

$el_hero = mk_container('hero-el', false, array_merge([
    'layout'=>'full_width','min_height'=>_px(520),'flex_direction'=>'column','flex_align_items'=>'center',
    'padding'=>_pad(0,0,0,0),'css_id'=>'hero-el','html_tag'=>'section'
], _grad('#f8faff','#e5eaff',110)), [
    mk_container(_id(), true, [
        'layout'=>'boxed','boxed_width'=>_px(1400),'flex_direction'=>'row','flex_align_items'=>'center',
        'flex_gap'=>_gap(0),'min_height'=>_px(520),'padding'=>_pad(0,40,0,40)
    ], [$hero_content, $hero_visual])
]);

echo "Hero built\n";

// ── Section 3: Trusted Partners ──
$t_pw = _id();
$el_trusted = mk_container(_id(), false, array_merge([
    'layout'=>'full_width','min_height'=>_px(90),'flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(0,0,0,0),'html_tag'=>'section'
],_solid('#ffffff')), [
    mk_container(_id(), true, [
        'layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between',
        'flex_gap'=>_gap(30),'padding'=>_pad(0,40,0,40)
    ], [
        mk_widget(_id(), 'heading', ['title'=>'Trusted by Leading Businesses','header_size'=>'h6','title_color'=>'#263351','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_font_weight'=>'800','typography_white_space'=>'nowrap']),
        mk_container($t_pw, true, [
            'layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between','flex_gap'=>_gap(30),'flex_wrap'=>'wrap'
        ], [
            mk_widget(_id(), 'heading', ['title'=>'AutoCount','header_size'=>'h6','title_color'=>'#36a950','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800']),
            mk_widget(_id(), 'heading', ['title'=>'Microsoft','header_size'=>'h6','title_color'=>'#737373','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800']),
            mk_widget(_id(), 'heading', ['title'=>'tp-link','header_size'=>'h6','title_color'=>'#31a5bd','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800']),
            mk_widget(_id(), 'heading', ['title'=>'SiteGiant','header_size'=>'h6','title_color'=>'#25bd82','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800']),
            mk_widget(_id(), 'heading', ['title'=>'DELL','header_size'=>'h6','title_color'=>'#6a7181','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800']),
            mk_widget(_id(), 'heading', ['title'=>'HIKVISION','header_size'=>'h6','title_color'=>'#6a7181','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'800'])
        ])
    ])
]);

echo "Trusted built\n";

// ── Section 4: Solutions ──
$sol_data = [
    ['icon'=>'🤖','title'=>'AI Solutions','text'=>'AI Chatbot<br>Business Automation<br>Knowledge Base'],
    ['icon'=>'🧾','title'=>'Accounting Solutions','text'=>'AutoCount Accounting<br>Cloud Accounting<br>POS Solutions'],
    ['icon'=>'🛒','title'=>'Website & E-Commerce','text'=>'Website Development<br>E-Commerce Solutions<br>Online Store'],
    ['icon'=>'☁','title'=>'Cloud Solutions','text'=>'Cloud Infrastructure<br>Microsoft 365<br>Business Email'],
    ['icon'=>'🛡','title'=>'IT Support & Network','text'=>'IT Support<br>Network Setup<br>System Maintenance'],
    ['icon'=>'🛍','title'=>'Marketplace Integration','text'=>'Shopee Integration<br>Lazada Integration<br>TikTok Shop']
];
$sol_cards = [];
foreach($sol_data as $sd){
    $sol_cards[] = mk_container(_id(), true, array_merge([
        'layout'=>'boxed','width'=>_pct(33.333),'flex_direction'=>'row','flex_align_items'=>'flex_start','flex_gap'=>_gap(22),
        'min_height'=>_px(170),'border_radius'=>_rad(16),'padding'=>_pad(27,27,27,27),'css_classes'=>'aw-sol'
    ],_solid('#ffffff'),_border('#e9edf5')), [
        mk_container(_id(), true, array_merge([
            'layout'=>'boxed','width'=>['unit'=>'px','size'=>64,'sizes'=>[]],'min_height'=>_px(64),'flex_direction'=>'column',
            'flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(18)
        ],_grad('#edf2ff','#f4eeff',145)), [
            mk_widget(_id(), 'heading', ['title'=>$sd['icon'],'header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(28)])
        ]),
        mk_container(_id(), true, [
            'layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'column','flex_align_items'=>'flex_start'
        ], [
            mk_widget(_id(), 'heading', ['title'=>$sd['title'],'header_size'=>'h5','title_color'=>'#13204a','typography_typography'=>'custom','typography_font_size'=>_px(18),'typography_font_weight'=>'700','margin'=>_pad(4,0,10,0)]),
            mk_widget(_id(), 'text-editor', ['editor'=>$sd['text'],'text_color'=>'#6a758d','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]]])
        ])
    ]);
}

$el_sol = mk_container(_id(), false, array_merge([
    'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(85,0,85,0),'html_tag'=>'section'
],_solid('#ffffff')), [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'], [
        mk_widget(_id(), 'heading', ['title'=>'Our Solutions','header_size'=>'h6','title_color'=>'#3569ff','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'800','typography_letter_spacing'=>['unit'=>'px','size'=>1.5,'sizes'=>[]],'typography_text_transform'=>'uppercase','align'=>'center','margin'=>_pad(0,0,10,0)]),
        mk_widget(_id(), 'heading', ['title'=>'Complete IT & AI Solutions<br>for Your Business','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(42),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1.5,'sizes'=>[]],'align'=>'center']),
        mk_widget(_id(), 'text-editor', ['editor'=>'Technology solutions designed to help your business work smarter and grow faster.','text_color'=>'#69758f','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center','margin'=>_pad(12,0,42,0)]),
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'max_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(18),'css_classes'=>'aw-sol-grid'], $sol_cards)
    ])
]);

echo "Solutions built\n";

// ── Section 5: AI Assistant ──
$ai_checks = [];
foreach(['Smart & Accurate','Trained with Your Data','24/7 Available','Multi-language Support'] as $chk){
    $ai_checks[] = mk_widget(_id(), 'text-editor', ['editor'=>'<span style="color:#4b76ff;font-weight:800;margin-right:8px;">✓</span><span style="color:#ffffff;font-size:13px;">'.$chk.'</span>']);
}

$ai_messages = [];
$ai_messages[] = mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','justify_content'=>'flex_start'], [
    mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(75),'border_radius'=>_rad(12),'padding'=>_pad(12,15,12,15)]+_solid('#f0f3ff'), [
        mk_widget(_id(), 'text-editor', ['editor'=>'How can I help your business today?','text_color'=>'#18234b','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]]])
    ])
]);
$ai_messages[] = mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','justify_content'=>'flex_end'], [
    mk_container(_id(), true, array_merge(['layout'=>'boxed','width'=>_pct(75),'border_radius'=>_rad(12),'padding'=>_pad(12,15,12,15)],_grad('#3b6bff','#7542f5',135)), [
        mk_widget(_id(), 'text-editor', ['editor'=>'I want to know about AutoCount pricing.','text_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]]])
    ])
]);
$ai_messages[] = mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','justify_content'=>'flex_start'], [
    mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(75),'border_radius'=>_rad(12),'padding'=>_pad(12,15,12,15)]+_solid('#f0f3ff'), [
        mk_widget(_id(), 'text-editor', ['editor'=>'AutoCount offers flexible solutions based on your business needs.','text_color'=>'#18234b','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]]])
    ])
]);

$el_ai = mk_container(_id(), false, ['layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(35,0,85,0),'html_tag'=>'section'], [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'], [
        mk_container(_id(), true, array_merge([
            'layout'=>'boxed','width'=>_pct(100),'min_height'=>_px(350),'border_radius'=>_rad(18),'padding'=>_pad(55,55,55,55),
            'flex_direction'=>'row','flex_align_items'=>'center','flex_gap'=>_gap(60),'overflow'=>'hidden'
        ],_grad('#071e69','#3722b8',110)), [
            mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(38),'flex_direction'=>'column','flex_align_items'=>'flex_start'], [
                mk_widget(_id(), 'heading', ['title'=>'Meet Your<br><span class="aw-gt">AI Business Assistant</span>','header_size'=>'h2','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(39),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.12,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1,'sizes'=>[]]]),
                mk_widget(_id(), 'text-editor', ['editor'=>'Get instant answers to your business questions 24/7.','text_color'=>'#d4ddff','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]],'margin'=>_pad(15,0,22,0)]),
                mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(12)], $ai_checks),
                mk_widget(_id(), 'button', array_merge(['text'=>'Try AI Assistant Now →','link'=>['url'=>'#aw-contact','is_external'=>false,'nofollow'=>false],'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50),'margin'=>_pad(22,0,0,0)],_grad('#1e62ff','#693ff5',135)))
            ]),
            mk_container(_id(), true, array_merge([
                'layout'=>'boxed','width'=>_pct(62),'min_height'=>_px(275),'border_radius'=>_rad(17),'padding'=>_pad(20,20,20,20),'flex_direction'=>'column'
            ],_solid('rgba(255,255,255,0.96)'),['box_shadow_box_shadow_type'=>'yes','box_shadow_box_shadow'=>['horizontal'=>0,'vertical'=>25,'blur'=>60,'spread'=>0,'color'=>'rgba(0,0,0,0.18)']]), [
                mk_container(_id(), true, [
                    'layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_align_items'=>'center','flex_gap'=>_gap(10),
                    'padding'=>_pad(0,0,15,0),'border_bottom_border'=>'solid','border_bottom_width'=>['unit'=>'px','top'=>'0','right'=>'0','bottom'=>'1','left'=>'0','isLinked'=>false],'border_bottom_color'=>'#e7ebf5'
                ], [
                    mk_container(_id(), true, array_merge(['layout'=>'boxed','width'=>['unit'=>'px','size'=>30,'sizes'=>[]],'min_height'=>_px(30),'border_radius'=>_rad(50,'%')],_grad('#2967ff','#7a42f5',135)), []),
                    mk_widget(_id(), 'heading', ['title'=>'AIWebstation Assistant','header_size'=>'h6','title_color'=>'#18234b','typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700'])
                ]),
                mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'column','flex_gap'=>_gap(12),'margin'=>_pad(10,0,10,0)], $ai_messages),
                mk_container(_id(), true, array_merge(['layout'=>'boxed','width'=>_pct(100),'min_height'=>_px(42),'border_radius'=>_rad(9),'flex_direction'=>'row','flex_align_items'=>'center','padding'=>_pad(0,14,0,14)],_border('#dfe4ef')), [
                    mk_widget(_id(), 'text-editor', ['editor'=>'Ask me anything...','text_color'=>'#9aa4ba','typography_typography'=>'custom','typography_font_size'=>_px(12)])
                ])
            ])
        ])
    ])
]);

echo "AI built\n";

// ── Section 6: Why Choose ──
$why_cards = [];
$why_items = [
    ['icon'=>'👥','title'=>'Professional Team','desc'=>'Experienced specialists ready to help'],
    ['icon'=>'🛡','title'=>'Reliable Solutions','desc'=>'High quality and trusted solutions'],
    ['icon'=>'⚡','title'=>'Fast Response','desc'=>'Quick support whenever you need'],
    ['icon'=>'📍','title'=>'Local Support','desc'=>'Malaysia-based support team']
];
foreach($why_items as $wi){
    $why_cards[] = mk_container(_id(), true, array_merge(['layout'=>'boxed','width'=>_pct(19),'flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(30,30,30,30)],_solid('#ffffff')), [
        mk_container(_id(), true, array_merge(['layout'=>'boxed','width'=>['unit'=>'px','size'=>55,'sizes'=>[]],'min_height'=>_px(55),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(50,'%'),'margin'=>_pad(0,0,15,0)],_solid('#edf2ff')), [
            mk_widget(_id(), 'heading', ['title'=>$wi['icon'],'header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(25)])
        ]),
        mk_widget(_id(), 'heading', ['title'=>$wi['title'],'header_size'=>'h5','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(15),'typography_font_weight'=>'700','align'=>'center','margin'=>_pad(0,0,8,0)]),
        mk_widget(_id(), 'text-editor', ['editor'=>$wi['desc'],'text_color'=>'#7a8499','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center'])
    ]);
}

$el_why = mk_container(_id(), false, array_merge([
    'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(85,0,85,0),'html_tag'=>'section'
],_solid('#f8faff')), [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'], [
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(1),'css_classes'=>'aw-why-grid'], array_merge([
            mk_container(_id(), true, array_merge(['layout'=>'boxed','width'=>_pct(24),'flex_direction'=>'column','flex_align_items'=>'flex_start','padding'=>_pad(30,30,30,30)],_solid('#ffffff')), [
                mk_widget(_id(), 'heading', ['title'=>'Why Choose<br><span class="aw-gt">AIWebstation?</span>','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(30),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'margin'=>_pad(0,0,10,0)]),
                mk_widget(_id(), 'text-editor', ['editor'=>'We provide professional, reliable and innovative solutions to help your business grow.','text_color'=>'#68738e','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.6,'sizes'=>[]],'margin'=>_pad(0,0,20,0)]),
                mk_widget(_id(), 'button', array_merge(['text'=>'About Us →','link'=>['url'=>'#aw-contact','is_external'=>false,'nofollow'=>false],'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50)],_grad('#1e62ff','#693ff5',135)))
            ])
        ], $why_cards))
    ])
]);

echo "Why built\n";

// ── Section 7: Industries ──
$ind_data = [
    ['icon'=>'🛍','label'=>'Retail & Trading'],['icon'=>'🏭','label'=>'Manufacturing'],['icon'=>'🧾','label'=>'Accounting Firms'],
    ['icon'=>'🎓','label'=>'Education'],['icon'=>'🏥','label'=>'Healthcare'],['icon'=>'🏢','label'=>'SME Businesses']
];
$ind_cards = [];
foreach($ind_data as $id){
    $ind_cards[] = mk_container(_id(), true, array_merge([
        'layout'=>'boxed','width'=>_pct(16.666),'min_height'=>_px(105),'border_radius'=>_rad(13),
        'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','flex_gap'=>_gap(10),'css_classes'=>'aw-ind'
    ],_solid('#ffffff'),_border('#e7ebf4')), [
        mk_widget(_id(), 'heading', ['title'=>$id['icon'],'header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(26)]),
        mk_widget(_id(), 'heading', ['title'=>$id['label'],'header_size'=>'h6','title_color'=>'#293553','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'700'])
    ]);
}

$el_ind = mk_container(_id(), false, ['layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(75,0,75,0),'html_tag'=>'section'], [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'], [
        mk_widget(_id(), 'heading', ['title'=>'Industries We Serve','header_size'=>'h6','title_color'=>'#3569ff','typography_typography'=>'custom','typography_font_size'=>_px(12),'typography_font_weight'=>'800','typography_letter_spacing'=>['unit'=>'px','size'=>1.5,'sizes'=>[]],'typography_text_transform'=>'uppercase','align'=>'center','margin'=>_pad(0,0,10,0)]),
        mk_widget(_id(), 'heading', ['title'=>'Solutions for Every Industry','header_size'=>'h2','title_color'=>'#101c40','typography_typography'=>'custom','typography_font_size'=>_px(42),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.15,'sizes'=>[]],'typography_letter_spacing'=>['unit'=>'px','size'=>-1.5,'sizes'=>[]],'align'=>'center']),
        mk_widget(_id(), 'text-editor', ['editor'=>'We support businesses from various industries.','text_color'=>'#69758f','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.5,'sizes'=>[]],'align'=>'center','margin'=>_pad(12,0,42,0)]),
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'max_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(15),'css_classes'=>'aw-ind-grid'], $ind_cards)
    ])
]);

echo "Industries built\n";

// ── Section 8: CTA ──
$el_cta = mk_container(_id(), false, ['layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(0,0,80,0),'html_tag'=>'section'], [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'flex_direction'=>'column','flex_align_items'=>'center'], [
        mk_container(_id(), true, array_merge([
            'layout'=>'boxed','width'=>_pct(100),'min_height'=>_px(220),'border_radius'=>_rad(18),'padding'=>_pad(45,55,45,55),
            'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between','overflow'=>'hidden'
        ],_grad('#1349d9','#4930d9',105)), [
            mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(70),'flex_direction'=>'column','flex_align_items'=>'flex_start'], [
                mk_widget(_id(), 'heading', ['title'=>'Ready to Transform Your Business with AI?','header_size'=>'h2','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(38),'typography_font_weight'=>'800','typography_line_height'=>['unit'=>'em','size'=>1.12,'sizes'=>[]]]),
                mk_widget(_id(), 'text-editor', ['editor'=>"Let's help you build a smarter and more efficient business.",'text_color'=>'#d8e1ff','typography_typography'=>'custom','typography_font_size'=>_px(16),'typography_line_height'=>['unit'=>'em','size'=>1.65,'sizes'=>[]],'margin'=>_pad(12,0,23,0)]),
                mk_widget(_id(), 'button', array_merge(['text'=>'Get Free Consultation →','link'=>['url'=>'#aw-contact','is_external'=>false,'nofollow'=>false],'button_text_color'=>'#ffffff','border_radius'=>_rad(9),'typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','padding'=>_pad(0,25,0,25),'min_height'=>_px(50)],_grad('#1e62ff','#693ff5',135)))
            ]),
            mk_container(_id(), true, array_merge([
                'layout'=>'boxed','width'=>['unit'=>'px','size'=>190,'sizes'=>[]],'min_height'=>_px(190),'flex_direction'=>'column','flex_align_items'=>'center','justify_content'=>'center','border_radius'=>_rad(50,'%')
            ],['background_background'=>'gradient','background_color'=>'#6c67ff','background_color_stop'=>['unit'=>'%','size'=>0,'sizes'=>[]],'background_color_b'=>'transparent','background_color_b_stop'=>['unit'=>'%','size'=>65,'sizes'=>[]],'background_gradient_type'=>'radial','background_gradient_position'=>['x'=>50,'y'=>50,'unit'=>'%']]), [
                mk_widget(_id(), 'heading', ['title'=>'🚀','header_size'=>'h1','typography_typography'=>'custom','typography_font_size'=>_px(80)])
            ])
        ])
    ])
]);

echo "CTA built\n";

// ── Section 9: Footer ──
function footer_links($title, $links) {
    $html = '';
    foreach($links as $l) {
        $html .= '<a href="#" style="display:block;color:#aab7d7;font-size:12px;margin:11px 0;text-decoration:none;transition:.2s ease;">'.$l.'</a>';
    }
    return [
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(17.5),'flex_direction'=>'column'], [
            mk_widget(_id(), 'heading', ['title'=>$title,'header_size'=>'h5','title_color'=>'#ffffff','typography_typography'=>'custom','typography_font_size'=>_px(14),'typography_font_weight'=>'700','margin'=>_pad(0,0,18,0)]),
            mk_widget(_id(), 'text-editor', ['editor'=>$html,'css_classes'=>'aw-fa'])
        ])
    ];
}

$el_foot = mk_container(_id(), false, array_merge([
    'layout'=>'full_width','flex_direction'=>'column','flex_align_items'=>'center','padding'=>_pad(65,0,20,0),'html_tag'=>'footer'
],_solid('#07183f')), [
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'max_width'=>_px(1200),'flex_direction'=>'row','flex_wrap'=>'wrap','flex_gap'=>_gap(50)], array_merge([
        mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(30),'flex_direction'=>'column','flex_align_items'=>'flex_start'], [
            mk_widget(_id(), 'heading', ['title'=>'<span style="color:#245cff;font-weight:800;">AI</span><span style="color:#ffffff;">Webstation</span>','header_size'=>'h3','typography_typography'=>'custom','typography_font_size'=>_px(22),'typography_font_weight'=>'800']),
            mk_widget(_id(), 'text-editor', ['editor'=>'Empowering businesses with AI and digital solutions.','text_color'=>'#aab7d7','typography_typography'=>'custom','typography_font_size'=>_px(13),'typography_line_height'=>['unit'=>'em','size'=>1.6,'sizes'=>[]],'margin'=>_pad(15,0,20,0)]),
            mk_container(_id(), true, ['layout'=>'boxed','width'=>_pct(100),'flex_direction'=>'row','flex_gap'=>_gap(8)], [
                mk_widget(_id(), 'text-editor', ['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">f</span>']),
                mk_widget(_id(), 'text-editor', ['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">in</span>']),
                mk_widget(_id(), 'text-editor', ['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">▶</span>']),
                mk_widget(_id(), 'text-editor', ['editor'=>'<span style="display:inline-flex;width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;align-items:center;justify-content:center;color:#fff;font-size:12px;">◎</span>'])
            ])
        ])
    ], footer_links('Solutions', ['AI Solutions','Accounting Software','Cloud Solutions','Website Development','E-Commerce']), footer_links('Services', ['IT Support','Network Solutions','Web Hosting','Email Solutions','Cybersecurity']), footer_links('Company', ['About Us','Our Team','Careers','Contact Us']), footer_links('Support', ['Help Center','FAQ','Remote Support','Privacy Policy']))),
    mk_container(_id(), true, ['layout'=>'boxed','boxed_width'=>_px(1200),'max_width'=>_px(1200),'flex_direction'=>'row','flex_align_items'=>'center','justify_content'=>'space_between','margin'=>_pad(40,0,0,0),'padding'=>_pad(18,0,0,0),'border_top_border'=>'solid','border_top_width'=>['unit'=>'px','top'=>'1','right'=>'0','bottom'=>'0','left'=>'0','isLinked'=>false],'border_top_color'=>'rgba(255,255,255,0.12)'], [
        mk_widget(_id(), 'text-editor', ['editor'=>'© 2026 AIWebstation. All Rights Reserved.','text_color'=>'#8997bb','typography_typography'=>'custom','typography_font_size'=>_px(11)]),
        mk_widget(_id(), 'text-editor', ['editor'=>'<a href="#" style="color:#8997bb;font-size:11px;text-decoration:none;">Sitemap</a> | <a href="#" style="color:#8997bb;font-size:11px;text-decoration:none;">Terms of Service</a> | <a href="#" style="color:#8997bb;font-size:11px;text-decoration:none;">Privacy Policy</a>','text_color'=>'#8997bb'])
    ])
]);

echo "Footer built\n";

// ── Assemble ──
$elements = [$el_css, $el_hero, $el_trusted, $el_sol, $el_ai, $el_why, $el_ind, $el_cta, $el_foot];

// ── Save ──
$json = json_encode($elements);
echo "JSON length: " . strlen($json) . "\n";

update_post_meta($page_id, '_elementor_edit_mode', 'builder');
update_post_meta($page_id, '_elementor_template_type', 'wp-page');
update_post_meta($page_id, '_elementor_version', ELEMENTOR_VERSION);

// Use Elementor Document API
$document = \Elementor\Plugin::$instance->documents->get($page_id);
if ($document) {
    $document->save(['elements' => $elements]);
    \Elementor\Plugin::$instance->files_manager->clear_cache();
    echo "Saved via Elementor Document API\n";
} else {
    update_post_meta($page_id, '_elementor_data', wp_slash($json));
    echo "Saved via direct meta\n";
}

// Verify
$saved = get_post_meta($page_id, '_elementor_data', true);
$decoded = json_decode($saved, true);
$ok = json_last_error() === JSON_ERROR_NONE;

function tally($arr, &$wc, &$cc) {
    if (!is_array($arr)) return;
    foreach ($arr as $el) {
        $t = $el['elType'] ?? '';
        if ($t === 'widget') { $wt = $el['widgetType'] ?? 'unknown'; $wc[$wt] = ($wc[$wt] ?? 0) + 1; }
        elseif ($t === 'container') { $cc++; }
        if (!empty($el['elements'])) tally($el['elements'], $wc, $cc);
    }
}
$wc = []; $cc = 0;
tally($decoded, $wc, $cc);

echo "Verify JSON ok: " . ($ok ? 'yes' : 'no') . "\n";
echo "Saved len: " . strlen($saved) . "\n";
echo "Top-level: " . count($decoded) . "\n";
echo "Containers: " . $cc . "\n";
echo "Widgets: " . json_encode($wc) . "\n";
echo "Post status: " . get_post_status($page_id) . "\n";

Youez - 2016 - github.com/yon3zu
LinuXploit