This commit is contained in:
Flatlogic Bot 2026-04-23 18:30:01 +00:00
parent 8731dd4e27
commit 8b4ce34f82
6 changed files with 738 additions and 67 deletions

View File

@ -1,4 +1,4 @@
WordPress Admin Credentials:
URL: http://localhost/wp-admin
Username: admin
Password: qhpYYAHPC3qKPM9vB7
Password: 5zVPbadRO3ilJ0zM

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 KiB

View File

@ -0,0 +1,497 @@
body.aizone-investor-active {
--aiz-bg: #061018;
--aiz-bg-soft: #0b1724;
--aiz-surface: rgba(10, 22, 34, 0.88);
--aiz-surface-strong: #0e1e2d;
--aiz-surface-muted: rgba(255, 255, 255, 0.04);
--aiz-border: rgba(214, 181, 101, 0.22);
--aiz-border-strong: rgba(214, 181, 101, 0.42);
--aiz-text: #f5f2ea;
--aiz-muted: #aeb7c3;
--aiz-gold: #d6b565;
--aiz-gold-soft: #f0d9a0;
--aiz-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
--aiz-radius: 24px;
--aiz-radius-sm: 18px;
color: var(--aiz-text);
background:
radial-gradient(circle at 15% 10%, rgba(214, 181, 101, 0.14), transparent 22%),
radial-gradient(circle at 85% 0%, rgba(67, 112, 157, 0.20), transparent 24%),
linear-gradient(180deg, #040a10 0%, #09111a 35%, #08131d 100%);
}
body.aizone-investor-active .wp-site-blocks,
body.aizone-investor-active .site,
body.aizone-investor-active main,
body.aizone-investor-active .entry-content,
body.aizone-investor-active .wp-block-post-content,
body.aizone-investor-active .wp-block-group {
color: var(--aiz-text);
}
body.aizone-investor-active a {
color: inherit;
}
body.aizone-investor-active .wp-block-separator {
border-color: var(--aiz-border);
}
body.aizone-investor-active .wp-site-blocks {
position: relative;
}
body.aizone-investor-active :where(main.wp-block-group.has-global-padding, .entry-content.wp-block-post-content.has-global-padding) {
padding-left: 0 !important;
padding-right: 0 !important;
max-width: none !important;
}
body.aizone-investor-active .aizone-site-header-shell,
body.aizone-investor-active .aizone-site-footer-shell {
background: transparent;
}
body.aizone-investor-active .aizone-site-header-shell > .wp-block-group__inner-container,
body.aizone-investor-active .aizone-site-footer-shell > .wp-block-group__inner-container {
max-width: 1280px;
margin: 0 auto;
padding-left: 20px !important;
padding-right: 20px !important;
}
body.aizone-investor-active .aizone-site-header {
border-bottom: 1px solid rgba(255,255,255,0.06);
backdrop-filter: blur(16px);
background: rgba(4, 10, 16, 0.72);
}
body.aizone-investor-active .aizone-site-header .wp-block-group.alignwide {
gap: 1rem;
}
body.aizone-investor-active .aizone-site-header .wp-block-site-title a {
font-size: 1.02rem;
letter-spacing: 0.18em;
text-transform: uppercase;
text-decoration: none;
color: var(--aiz-text);
}
body.aizone-investor-active .aizone-site-header .wp-block-navigation-item__content {
color: var(--aiz-muted);
font-size: 0.96rem;
}
body.aizone-investor-active .aizone-site-header .wp-block-navigation-item__content:hover,
body.aizone-investor-active .aizone-site-header .wp-block-navigation-item__content:focus {
color: var(--aiz-text);
}
body.aizone-investor-active .aizone-site-header .wp-block-button__link,
body.aizone-investor-active .aizone-button,
body.aizone-investor-active .aizone-form button {
border-radius: 999px !important;
padding: 0.95rem 1.35rem !important;
border: 1px solid var(--aiz-border-strong) !important;
background: linear-gradient(180deg, #e0c074 0%, #c89d46 100%) !important;
color: #09111a !important;
font-weight: 700;
text-decoration: none;
box-shadow: none !important;
}
body.aizone-investor-active .aizone-button.is-secondary {
background: transparent !important;
color: var(--aiz-text) !important;
}
body.aizone-investor-active .aizone-button.is-secondary:hover,
body.aizone-investor-active .aizone-site-header .wp-block-button__link:hover,
body.aizone-investor-active .aizone-form button:hover {
transform: translateY(-1px);
}
.aizone-landing,
.aizone-simple-page {
max-width: 1280px;
margin: 0 auto;
padding: 24px 20px 96px;
}
.aizone-section,
.aizone-hero {
position: relative;
margin: 0 0 22px;
padding: clamp(28px, 5vw, 56px);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 30px;
background: linear-gradient(180deg, rgba(11, 23, 36, 0.94) 0%, rgba(6, 16, 24, 0.98) 100%);
box-shadow: var(--aiz-shadow);
overflow: hidden;
}
.aizone-hero::before,
.aizone-section::before {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
background: linear-gradient(135deg, rgba(214, 181, 101, 0.08), transparent 35%, transparent 70%, rgba(214, 181, 101, 0.05));
}
.aizone-eyebrow {
margin: 0 0 16px;
color: var(--aiz-gold-soft);
font-size: 0.78rem;
letter-spacing: 0.22em;
text-transform: uppercase;
}
.aizone-hero-grid,
.aizone-grid-2,
.aizone-grid-3,
.aizone-grid-4,
.aizone-dual-card,
.aizone-cta-row,
.aizone-proof-grid,
.aizone-use-grid {
display: grid;
gap: 18px;
}
.aizone-hero-grid,
.aizone-grid-2,
.aizone-dual-card,
.aizone-cta-row {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.aizone-grid-3,
.aizone-proof-grid,
.aizone-use-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.aizone-grid-4 {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.aizone-hero h1,
.aizone-section h2,
.aizone-simple-page h1 {
margin: 0 0 16px;
line-height: 0.96;
letter-spacing: -0.05em;
}
.aizone-hero h1 {
max-width: 10ch;
font-size: clamp(3rem, 8vw, 6.6rem);
}
.aizone-section h2,
.aizone-simple-page h1 {
font-size: clamp(2rem, 5vw, 3.8rem);
}
.aizone-lead,
.aizone-simple-page .aizone-lead {
max-width: 48rem;
font-size: clamp(1.06rem, 1.8vw, 1.2rem);
line-height: 1.75;
color: var(--aiz-muted);
}
.aizone-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 28px;
}
.aizone-card,
.aizone-proof,
.aizone-stat,
.aizone-note,
.aizone-faq,
.aizone-use,
.aizone-simple-panel,
.aizone-form-shell,
body.aizone-investor-active .coach-ssa-card {
position: relative;
padding: 22px;
border-radius: var(--aiz-radius-sm);
border: 1px solid var(--aiz-border);
background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.02) 100%);
}
.aizone-card strong,
.aizone-proof strong,
.aizone-use strong,
.aizone-stat strong,
.aizone-simple-panel strong {
display: block;
margin-bottom: 8px;
font-size: 1.08rem;
color: var(--aiz-text);
}
.aizone-card p,
.aizone-proof p,
.aizone-use p,
.aizone-note p,
.aizone-simple-panel p,
.aizone-faq p,
.aizone-form-actions p,
body.aizone-investor-active .coach-ssa-card p {
margin: 0;
color: var(--aiz-muted);
line-height: 1.7;
}
.aizone-stat span {
display: block;
margin-bottom: 10px;
color: var(--aiz-gold-soft);
font-size: 0.82rem;
letter-spacing: 0.18em;
text-transform: uppercase;
}
.aizone-stat strong {
font-size: 2rem;
line-height: 1.05;
margin-bottom: 6px;
}
.aizone-list,
.aizone-checklist {
margin: 0;
padding-left: 18px;
color: var(--aiz-muted);
line-height: 1.8;
}
.aizone-checklist li + li,
.aizone-list li + li {
margin-top: 6px;
}
.aizone-divider {
height: 1px;
margin: 28px 0;
background: linear-gradient(90deg, rgba(214,181,101,0), rgba(214,181,101,.45), rgba(214,181,101,0));
}
.aizone-hero-meta {
align-content: start;
}
.aizone-hero-meta .aizone-card {
min-height: 100%;
}
.aizone-chip-row {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 20px;
}
.aizone-chip {
padding: 0.7rem 0.9rem;
border-radius: 999px;
border: 1px solid rgba(255,255,255,0.08);
background: rgba(255,255,255,0.03);
color: var(--aiz-muted);
font-size: 0.92rem;
}
.aizone-highlight {
color: var(--aiz-gold-soft);
}
.aizone-form {
display: grid;
gap: 16px;
}
.aizone-form-grid {
display: grid;
gap: 14px;
}
.aizone-form-grid.two-up {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.aizone-form label {
display: grid;
gap: 8px;
}
.aizone-form label span {
font-size: 0.94rem;
color: var(--aiz-text);
}
.aizone-form input,
.aizone-form textarea {
width: 100%;
box-sizing: border-box;
padding: 0.95rem 1rem;
border-radius: 14px;
border: 1px solid rgba(255,255,255,0.10);
background: rgba(255,255,255,0.04);
color: var(--aiz-text);
}
.aizone-form input::placeholder,
.aizone-form textarea::placeholder {
color: #8090a1;
}
.aizone-form-actions {
display: flex;
flex-wrap: wrap;
gap: 16px;
align-items: center;
justify-content: space-between;
}
.aizone-alert {
margin-bottom: 16px;
padding: 14px 16px;
border-radius: 14px;
border: 1px solid;
}
.aizone-alert.success {
border-color: rgba(80, 201, 170, 0.35);
background: rgba(80, 201, 170, 0.10);
color: #d7fff3;
}
.aizone-alert.error {
border-color: rgba(255, 132, 132, 0.35);
background: rgba(255, 132, 132, 0.10);
color: #ffd8d8;
}
.aizone-faq h3 {
margin: 0 0 8px;
font-size: 1.12rem;
}
.aizone-cta-band {
text-align: center;
}
.aizone-site-footer {
padding-bottom: 32px;
}
.aizone-site-footer-inner {
padding: clamp(24px, 5vw, 38px);
border: 1px solid rgba(255,255,255,0.06);
border-radius: 28px;
background: rgba(4, 10, 16, 0.9);
}
.aizone-site-footer-grid {
display: grid;
grid-template-columns: 1.1fr .9fr;
gap: 24px;
}
.aizone-site-footer h2 {
margin: 0 0 14px;
font-size: clamp(1.8rem, 4vw, 3rem);
line-height: 1;
}
.aizone-site-footer p,
.aizone-site-footer-meta,
.aizone-site-footer-link em {
color: var(--aiz-muted);
}
.aizone-site-footer-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 20px;
}
.aizone-site-footer-links {
display: grid;
gap: 12px;
}
.aizone-site-footer-link {
display: grid;
grid-template-columns: auto 1fr auto;
gap: 14px;
align-items: start;
padding: 16px;
border-radius: 16px;
border: 1px solid var(--aiz-border);
background: rgba(255,255,255,0.02);
text-decoration: none;
}
.aizone-site-footer-link span:first-child {
color: var(--aiz-gold-soft);
}
.aizone-site-footer-meta {
display: flex;
justify-content: space-between;
gap: 12px;
margin-top: 22px;
padding-top: 18px;
border-top: 1px solid rgba(255,255,255,0.08);
font-size: 0.92rem;
}
body.aizone-investor-active .coach-ssa-card iframe.ssa_booking_iframe {
min-height: 760px;
border-radius: 14px;
background: white;
}
body.aizone-investor-active .coach-ssa-fallback,
body.aizone-investor-active .coach-ssa-card h3 {
color: var(--aiz-text);
}
@media (max-width: 960px) {
.aizone-hero-grid,
.aizone-grid-2,
.aizone-grid-3,
.aizone-grid-4,
.aizone-dual-card,
.aizone-proof-grid,
.aizone-use-grid,
.aizone-form-grid.two-up,
.aizone-cta-row,
.aizone-site-footer-grid {
grid-template-columns: 1fr;
}
body.aizone-investor-active .aizone-site-header .wp-block-group.alignwide {
flex-wrap: wrap !important;
}
body.aizone-investor-active .aizone-site-header .wp-block-navigation {
width: 100%;
justify-content: flex-start;
}
.aizone-site-footer-meta,
.aizone-form-actions {
flex-direction: column;
align-items: flex-start;
}
}

View File

@ -0,0 +1,191 @@
<?php
/**
* Plugin Name: AIzone Investor Landing
* Description: Investor landing styles and deck request flow for AIzone MENA.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
function aizone_investor_target_page_ids() {
$ids = [];
foreach ( [ 'home', 'request-deck', 'book-session' ] as $slug ) {
$page = get_page_by_path( $slug, OBJECT, 'page' );
if ( $page ) {
$ids[] = (int) $page->ID;
}
}
return array_values( array_unique( array_filter( $ids ) ) );
}
function aizone_is_investor_context() {
if ( is_admin() ) {
return false;
}
if ( is_front_page() ) {
return true;
}
return is_page( aizone_investor_target_page_ids() );
}
add_filter( 'body_class', function( $classes ) {
if ( aizone_is_investor_context() ) {
$classes[] = 'aizone-investor-active';
}
return $classes;
} );
add_action( 'wp_enqueue_scripts', function() {
if ( ! aizone_is_investor_context() ) {
return;
}
wp_enqueue_style(
'aizone-investor',
content_url( 'mu-plugins/aizone-investor.css' ),
[],
filemtime( WPMU_PLUGIN_DIR . '/aizone-investor.css' )
);
}, 40 );
function aizone_investor_current_url() {
$scheme = is_ssl() ? 'https://' : 'http://';
$host = $_SERVER['HTTP_HOST'] ?? parse_url( home_url(), PHP_URL_HOST );
$uri = $_SERVER['REQUEST_URI'] ?? '/';
return $scheme . $host . $uri;
}
function aizone_investor_deck_success_url() {
$target = wp_get_referer();
if ( ! $target ) {
$request_page = get_page_by_path( 'request-deck', OBJECT, 'page' );
$target = $request_page ? get_permalink( $request_page ) : home_url( '/request-deck/' );
}
return add_query_arg( 'deck', 'requested', $target );
}
function aizone_handle_deck_request_submission() {
if ( 'POST' !== strtoupper( $_SERVER['REQUEST_METHOD'] ?? '' ) ) {
return;
}
if ( empty( $_POST['aizone_deck_form_submitted'] ) ) {
return;
}
if ( empty( $_POST['aizone_deck_nonce'] ) || ! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['aizone_deck_nonce'] ) ), 'aizone_deck_request' ) ) {
wp_die( esc_html__( 'Security check failed. Please refresh the page and try again.', 'twentytwentyfive' ) );
}
$name = sanitize_text_field( wp_unslash( $_POST['name'] ?? '' ) );
$email = sanitize_email( wp_unslash( $_POST['email'] ?? '' ) );
$firm = sanitize_text_field( wp_unslash( $_POST['firm'] ?? '' ) );
$role = sanitize_text_field( wp_unslash( $_POST['role'] ?? '' ) );
$check_size = sanitize_text_field( wp_unslash( $_POST['check_size'] ?? '' ) );
$focus = sanitize_text_field( wp_unslash( $_POST['focus'] ?? '' ) );
$message = sanitize_textarea_field( wp_unslash( $_POST['message'] ?? '' ) );
if ( '' === $name || '' === $firm || ! is_email( $email ) ) {
wp_safe_redirect( add_query_arg( 'deck', 'invalid', aizone_investor_current_url() ) );
exit;
}
$post_id = wp_insert_post(
[
'post_type' => 'lead_capture',
'post_status' => 'private',
'post_title' => trim( $firm . ' — ' . $name, ' —' ),
],
true
);
if ( is_wp_error( $post_id ) ) {
wp_die( esc_html__( 'We could not save your request. Please try again.', 'twentytwentyfive' ) );
}
update_post_meta( $post_id, '_lead_name', $name );
update_post_meta( $post_id, '_lead_email', $email );
update_post_meta( $post_id, '_lead_phone', '' );
update_post_meta( $post_id, '_lead_company', $firm );
update_post_meta( $post_id, '_lead_role', $role );
update_post_meta( $post_id, '_lead_check_size', $check_size );
update_post_meta( $post_id, '_lead_focus', $focus );
update_post_meta( $post_id, '_lead_message', $message );
update_post_meta( $post_id, '_lead_source', 'Investor deck request' );
wp_safe_redirect( aizone_investor_deck_success_url() );
exit;
}
add_action( 'init', 'aizone_handle_deck_request_submission', 60 );
function aizone_investor_deck_form_shortcode() {
$status = sanitize_key( $_GET['deck'] ?? '' );
ob_start();
?>
<div class="aizone-form-shell">
<?php if ( 'requested' === $status ) : ?>
<div class="aizone-alert success">Thanks your request is in. We can now review fit and share the investor deck in the next step.</div>
<?php elseif ( 'invalid' === $status ) : ?>
<div class="aizone-alert error">Please complete your name, firm, and a valid work email before submitting.</div>
<?php endif; ?>
<form class="aizone-form" method="post" action="">
<input type="hidden" name="aizone_deck_form_submitted" value="1" />
<?php wp_nonce_field( 'aizone_deck_request', 'aizone_deck_nonce' ); ?>
<div class="aizone-form-grid two-up">
<label>
<span>Full name</span>
<input type="text" name="name" autocomplete="name" required />
</label>
<label>
<span>Work email</span>
<input type="email" name="email" autocomplete="email" required />
</label>
</div>
<div class="aizone-form-grid two-up">
<label>
<span>Firm</span>
<input type="text" name="firm" autocomplete="organization" required />
</label>
<label>
<span>Title / role</span>
<input type="text" name="role" autocomplete="organization-title" />
</label>
</div>
<div class="aizone-form-grid two-up">
<label>
<span>Typical check size</span>
<input type="text" name="check_size" placeholder="e.g. $250k$2M" />
</label>
<label>
<span>Investment focus</span>
<input type="text" name="focus" placeholder="Enterprise AI, MENA SaaS, frontier tech" />
</label>
</div>
<label>
<span>What would you like to diligence first?</span>
<textarea name="message" rows="5" placeholder="Team, go-to-market, services-to-software strategy, security posture, pipeline, regional expansion, or fund use."></textarea>
</label>
<div class="aizone-form-actions">
<button type="submit">Request the investor deck</button>
<p>Customer references, pipeline detail, and operating materials can be shared in qualified follow-up discussions.</p>
</div>
</form>
</div>
<?php
return ob_get_clean();
}
add_shortcode( 'aizone_investor_deck_form', 'aizone_investor_deck_form_shortcode' );

View File

@ -4,69 +4,70 @@
* Slug: twentytwentyfive/footer
* Categories: footer
* Block Types: core/template-part/footer
* Description: Custom coaching footer with editorial links and CTA.
* Description: Investor-focused footer for AIzone MENA.
*
* @package WordPress
* @subpackage Twenty_Twenty_Five
* @since Twenty Twenty-Five 1.0
*/
$coach_footer_links = [
$home_url = trailingslashit( home_url( '/' ) );
$request_deck = get_permalink( get_page_by_path( 'request-deck', OBJECT, 'page' ) ) ?: home_url( '/request-deck/' );
$book_url = get_permalink( get_page_by_path( 'book-session', OBJECT, 'page' ) ) ?: home_url( '/book-session/' );
$footer_links = [
[
'index' => '01',
'label' => __('Services', 'twentytwentyfive'),
'note' => __('Offers and formats', 'twentytwentyfive'),
'url' => get_permalink(get_page_by_path('services')) ?: home_url('/services/'),
'label' => __( 'Investment Thesis', 'twentytwentyfive' ),
'note' => __( 'Why AI augmentation wins in MENA', 'twentytwentyfive' ),
'url' => $home_url . '#thesis',
],
[
'index' => '02',
'label' => __('About', 'twentytwentyfive'),
'note' => __('Approach and point of view', 'twentytwentyfive'),
'url' => get_permalink(get_page_by_path('about')) ?: home_url('/about/'),
'label' => __( 'Platform Model', 'twentytwentyfive' ),
'note' => __( 'Services-led wedge into recurring software', 'twentytwentyfive' ),
'url' => $home_url . '#platform',
],
[
'index' => '03',
'label' => __('Insights', 'twentytwentyfive'),
'note' => __('Articles and reflections', 'twentytwentyfive'),
'url' => get_permalink(get_page_by_path('blog')) ?: home_url('/blog/'),
'label' => __( 'Security Posture', 'twentytwentyfive' ),
'note' => __( 'Human approval, secure deployment, governance', 'twentytwentyfive' ),
'url' => $home_url . '#security',
],
[
'index' => '04',
'label' => __('Contact', 'twentytwentyfive'),
'note' => __('Questions and next steps', 'twentytwentyfive'),
'url' => get_permalink(get_page_by_path('contact')) ?: home_url('/contact/'),
'label' => __( 'Request Deck', 'twentytwentyfive' ),
'note' => __( 'Qualified investors can request materials', 'twentytwentyfive' ),
'url' => $request_deck,
],
];
$coach_book_url = get_permalink(get_page_by_path('book-session')) ?: home_url('/book-session/');
$coach_services_url = get_permalink(get_page_by_path('services')) ?: home_url('/services/');
?>
<!-- wp:group {"align":"full","className":"coach-site-footer-shell","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull coach-site-footer-shell coach-site-footer"><div class="wp-block-group__inner-container">
<div class="coach-site-footer-inner">
<div class="coach-site-footer-grid">
<div class="coach-site-footer-copy">
<p class="coach-eyebrow">12 / Footer</p>
<h2><?php echo esc_html__('A calmer final step — with a clear way forward.', 'twentytwentyfive'); ?></h2>
<p><?php echo esc_html__('Whether someone is still getting oriented or already ready to start, the footer should feel like a clean continuation of the page — not a generic dead end.', 'twentytwentyfive'); ?></p>
<div class="coach-site-footer-actions">
<a class="coach-inline-link is-primary" href="<?php echo esc_url($coach_book_url); ?>"><?php echo esc_html__('Book a call', 'twentytwentyfive'); ?></a>
<a class="coach-inline-link" href="<?php echo esc_url($coach_services_url); ?>"><?php echo esc_html__('View services', 'twentytwentyfive'); ?></a>
<!-- wp:group {"align":"full","className":"aizone-site-footer-shell aizone-site-footer","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull aizone-site-footer-shell aizone-site-footer"><div class="wp-block-group__inner-container">
<div class="aizone-site-footer-inner">
<div class="aizone-site-footer-grid">
<div class="aizone-site-footer-copy">
<p class="aizone-eyebrow"><?php echo esc_html__( 'Investor next step', 'twentytwentyfive' ); ?></p>
<h2><?php echo esc_html__( 'Start diligence with a focused conversation.', 'twentytwentyfive' ); ?></h2>
<p><?php echo esc_html__( 'AIzone MENA is positioning to become the trusted AI augmentation layer for serious enterprises across the region: strategic, secure, bilingual, and execution-first.', 'twentytwentyfive' ); ?></p>
<div class="aizone-site-footer-actions">
<a class="aizone-button" href="<?php echo esc_url( $book_url ); ?>"><?php echo esc_html__( 'Book a call', 'twentytwentyfive' ); ?></a>
<a class="aizone-button is-secondary" href="<?php echo esc_url( $request_deck ); ?>"><?php echo esc_html__( 'Request the deck', 'twentytwentyfive' ); ?></a>
</div>
</div>
<div class="coach-site-footer-links" aria-label="<?php echo esc_attr__('Footer navigation', 'twentytwentyfive'); ?>">
<?php foreach ($coach_footer_links as $coach_footer_link) : ?>
<a class="coach-site-footer-link" href="<?php echo esc_url($coach_footer_link['url']); ?>">
<span><?php echo esc_html($coach_footer_link['index']); ?></span>
<span><strong><?php echo esc_html($coach_footer_link['label']); ?></strong><br><em><?php echo esc_html($coach_footer_link['note']); ?></em></span>
<div class="aizone-site-footer-links" aria-label="<?php echo esc_attr__( 'Footer navigation', 'twentytwentyfive' ); ?>">
<?php foreach ( $footer_links as $footer_link ) : ?>
<a class="aizone-site-footer-link" href="<?php echo esc_url( $footer_link['url'] ); ?>">
<span><?php echo esc_html( $footer_link['index'] ); ?></span>
<span><strong><?php echo esc_html( $footer_link['label'] ); ?></strong><br><em><?php echo esc_html( $footer_link['note'] ); ?></em></span>
<i aria-hidden="true"></i>
</a>
<?php endforeach; ?>
</div>
</div>
<div class="coach-site-footer-meta">
<span><?php echo esc_html(get_bloginfo('name')); ?> · <?php echo esc_html(get_bloginfo('description')); ?></span>
<span>© <?php echo esc_html(wp_date('Y')); ?> <?php echo esc_html(get_bloginfo('name')); ?></span>
<div class="aizone-site-footer-meta">
<span><?php echo esc_html( get_bloginfo( 'name' ) ); ?> · <?php echo esc_html( get_bloginfo( 'description' ) ); ?></span>
<span>© <?php echo esc_html( wp_date( 'Y' ) ); ?> <?php echo esc_html( get_bloginfo( 'name' ) ); ?></span>
</div>
</div>
</div></div>

View File

@ -4,24 +4,19 @@
* Slug: twentytwentyfive/header
* Categories: header
* Block Types: core/template-part/header
* Description: Site header with site title and navigation.
* Description: Investor-focused site header for AIzone MENA.
*
* @package WordPress
* @subpackage Twenty_Twenty_Five
* @since Twenty Twenty-Five 1.0
*/
$home_page = get_page_by_path('home', OBJECT, 'page');
$services_page = get_page_by_path('services', OBJECT, 'page');
$testimonials_page = get_page_by_path('testimonials', OBJECT, 'page');
$about_page = get_page_by_path('about', OBJECT, 'page');
$blog_page = get_page_by_path('blog', OBJECT, 'page');
$contact_page = get_page_by_path('contact', OBJECT, 'page');
$book_session_page = get_page_by_path('book-session', OBJECT, 'page');
$book_session_url = $book_session_page ? get_permalink($book_session_page) : home_url('/book-session/');
$home_url = trailingslashit( home_url( '/' ) );
$request_deck = get_permalink( get_page_by_path( 'request-deck', OBJECT, 'page' ) ) ?: home_url( '/request-deck/' );
$book_session_url = get_permalink( get_page_by_path( 'book-session', OBJECT, 'page' ) ) ?: home_url( '/book-session/' );
?>
<!-- wp:group {"align":"full","layout":{"type":"default"}} -->
<div class="wp-block-group alignfull">
<!-- wp:group {"align":"full","className":"aizone-site-header-shell aizone-site-header","layout":{"type":"default"}} -->
<div class="wp-block-group alignfull aizone-site-header-shell aizone-site-header">
<!-- wp:group {"layout":{"type":"constrained"}} -->
<div class="wp-block-group">
<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|30","bottom":"var:preset|spacing|30"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
@ -29,30 +24,17 @@ $book_session_url = $book_session_page ? get_permalink($book_session_page) : hom
<!-- wp:site-title {"level":0} /-->
<!-- wp:navigation {"overlayBackgroundColor":"base","overlayTextColor":"contrast","layout":{"type":"flex","justifyContent":"center","flexWrap":"wrap"}} -->
<?php if ($home_page) : ?>
<!-- wp:navigation-link {"label":"Home","type":"page","id":<?php echo (int) $home_page->ID; ?>,"url":"/","kind":"post-type"} /-->
<?php endif; ?>
<?php if ($services_page) : ?>
<!-- wp:navigation-link {"label":"Services","type":"page","id":<?php echo (int) $services_page->ID; ?>,"url":"/services/","kind":"post-type"} /-->
<?php endif; ?>
<?php if ($testimonials_page) : ?>
<!-- wp:navigation-link {"label":"Testimonials","type":"page","id":<?php echo (int) $testimonials_page->ID; ?>,"url":"/testimonials/","kind":"post-type"} /-->
<?php endif; ?>
<?php if ($about_page) : ?>
<!-- wp:navigation-link {"label":"About","type":"page","id":<?php echo (int) $about_page->ID; ?>,"url":"/about/","kind":"post-type"} /-->
<?php endif; ?>
<?php if ($blog_page) : ?>
<!-- wp:navigation-link {"label":"Blog","type":"page","id":<?php echo (int) $blog_page->ID; ?>,"url":"/blog/","kind":"post-type"} /-->
<?php endif; ?>
<?php if ($contact_page) : ?>
<!-- wp:navigation-link {"label":"Contact","type":"page","id":<?php echo (int) $contact_page->ID; ?>,"url":"/contact/","kind":"post-type"} /-->
<?php endif; ?>
<!-- wp:navigation-link {"label":"Thesis","type":"custom","url":"<?php echo esc_url( $home_url . '#thesis' ); ?>","kind":"custom"} /-->
<!-- wp:navigation-link {"label":"Platform","type":"custom","url":"<?php echo esc_url( $home_url . '#platform' ); ?>","kind":"custom"} /-->
<!-- wp:navigation-link {"label":"Security","type":"custom","url":"<?php echo esc_url( $home_url . '#security' ); ?>","kind":"custom"} /-->
<!-- wp:navigation-link {"label":"Raise","type":"custom","url":"<?php echo esc_url( $home_url . '#raise' ); ?>","kind":"custom"} /-->
<!-- wp:navigation-link {"label":"Request Deck","type":"custom","url":"<?php echo esc_url( $request_deck ); ?>","kind":"custom"} /-->
<!-- /wp:navigation -->
<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"right"}} -->
<div class="wp-block-buttons">
<!-- wp:button -->
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="<?php echo esc_url($book_session_url); ?>">Book Session</a></div>
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="<?php echo esc_url( $book_session_url ); ?>">Book a call</a></div>
<!-- /wp:button -->
</div>
<!-- /wp:buttons -->