403Webshell
Server IP : 198.71.58.22  /  Your IP : 216.73.216.72
Web Server : Apache/2.4.62 (AlmaLinux) OpenSSL/3.2.2
System : Linux localhost 5.14.0-570.33.2.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 14 07:37:35 EDT 2025 x86_64
User : root ( 0)
PHP Version : 8.3.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/gladstonespeech.com/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/gladstonespeech.com/create_team_page.php
<?php
/**
 * Create the Team page using orion_team_w widget,
 * modelled on the About page structure.
 *
 * Run: wp --allow-root eval-file create_team_page.php
 */

// ── Create the page ──────────────────────────────────────────────────────────
$page_id = wp_insert_post( [
    'post_title'  => 'Team',
    'post_name'   => 'team',
    'post_status' => 'publish',
    'post_type'   => 'page',
], true );

if ( is_wp_error( $page_id ) ) {
    WP_CLI::error( 'Could not create page: ' . $page_id->get_error_message() );
}

$pid = $page_id; // short alias for emulator IDs below

// ── Shared widget style (matches About page cells) ───────────────────────────
$cell_style = [
    'padding'                          => '0px 0px 0px 0px',
    'background_image_attachment'      => false,
    'background_display'               => 'tile',
    'background_image_size'            => 'full',
    'background_image_opacity'         => '100',
    'border_thickness'                 => '1px',
    'hide_mobile'                      => '',
    'hide_tablet'                      => '',
    'text_style'                       => 'default',
    'center_on_mobile'                 => '',
    'center_on_tablets'                => '',
    'widget_shadow'                    => 'none',
    'remove_margin_mobile'             => '',
    'remove_margin_tablet'             => '',
    'bg_opacity'                       => '100',
    'orion_theme_colors_bg'            => 'custom',
];

// ── Widgets ──────────────────────────────────────────────────────────────────
$widgets = [

    // ── Row 0 ─────────────────────────────────────────────────────────────────
    // "OUR TEAM" kicker (h6, primary colour, separator)
    [
        'title'                => 'OUR TEAM',
        'text_color'           => 'primary-color',
        'size'                 => 'h6',
        'heading_size'         => 'default',
        'separator_style'      => 'separator-style-1',
        'text_align'           => 'text-center',
        'heading_margin'       => '',
        '_sow_form_id'         => '57d905b647121',
        '_sow_form_timestamp'  => '',
        'case'                 => '',
        'title_bold'           => '',
        'divider_04'           => '',
        'divider_05'           => '',
        'divider_06'           => '',
        'so_sidebar_emulator_id' => "orion_heading_w-{$pid}0000",
        'option_name'          => 'widget_orion_heading_w',
        'panels_info'          => [
            'class'     => 'orion_heading_w',
            'raw'       => false,
            'grid'      => 0,
            'cell'      => 0,
            'id'        => 0,
            'widget_id' => wp_generate_uuid4(),
            'style'     => $cell_style,
        ],
    ],

    // "Meet Our Clinicians" h2
    [
        'title'                => 'Meet Our Clinicians',
        'text_color'           => 'text-dark',
        'size'                 => 'h2',
        'heading_size'         => 'default',
        'separator_style'      => '',
        'text_align'           => 'text-center',
        'heading_margin'       => '',
        '_sow_form_id'         => '57d905c997466',
        '_sow_form_timestamp'  => '',
        'case'                 => '',
        'title_bold'           => '',
        'divider_04'           => '',
        'divider_05'           => '',
        'divider_06'           => '',
        'so_sidebar_emulator_id' => "orion_heading_w-{$pid}0001",
        'option_name'          => 'widget_orion_heading_w',
        'panels_info'          => [
            'class'     => 'orion_heading_w',
            'raw'       => false,
            'grid'      => 0,
            'cell'      => 0,
            'id'        => 1,
            'widget_id' => wp_generate_uuid4(),
            'style'     => $cell_style,
        ],
    ],

    // orion_team_w — grid, 4-per-row, portrait, show intro text
    [
        'title'           => '',
        'category_option' => 'all',
        'display_layout'  => 'grid',
        'per_row'         => '4',
        'text_color'      => 'text-default',
        'option_section'  => [
            'order_by'           => 'date',
            'order'              => 'ASC',
            'display_department' => false,
            'display_about'      => true,
            'display_social'     => false,
            'option_carousel'    => [
                'autoplay'           => false,
                'autoplay_timeout'   => 5000,
                'navigation_carousel' => 'arrows_top',
                'display_mobile_nav' => true,
            ],
        ],
        'style_section' => [
            'image_style'          => 'orion_portrait',
            'hover_color'          => 'primary',
            'bg_color'             => '',
            'bg_opacy'             => 100,
            'image_overlay'        => 'overlay-none',
            'image_overlay_hover'  => 'overlay-hover-primary',
            'scale_efect'          => 'scale-zoomin',
            'display_border'       => true,
        ],
        '_sow_form_id'         => "orion_team_sow_{$pid}",
        '_sow_form_timestamp'  => '',
        'so_sidebar_emulator_id' => "orion_team_w-{$pid}0002",
        'option_name'          => 'widget_orion_team_w',
        'panels_info'          => [
            'class'     => 'orion_team_w',
            'raw'       => false,
            'grid'      => 0,
            'cell'      => 0,
            'id'        => 2,
            'widget_id' => wp_generate_uuid4(),
            'style'     => array_merge( $cell_style, [ 'padding' => '30px 0px 0px 0px' ] ),
        ],
    ],

    // ── Row 1 – CTA section (same as About page grid 3) ──────────────────────
    // "CONTACT US" kicker
    [
        'title'                => 'CONTACT US',
        'text_color'           => 'primary-color',
        'size'                 => 'h6',
        'heading_size'         => 'default',
        'separator_style'      => 'separator-style-1',
        'text_align'           => 'text-center',
        'heading_margin'       => '',
        '_sow_form_id'         => '57f8d7dc52c14',
        '_sow_form_timestamp'  => '',
        'case'                 => '',
        'title_bold'           => '',
        'divider_04'           => '',
        'divider_05'           => '',
        'divider_06'           => '',
        'so_sidebar_emulator_id' => "orion_heading_w-{$pid}0003",
        'option_name'          => 'widget_orion_heading_w',
        'panels_info'          => [
            'class'     => 'orion_heading_w',
            'raw'       => false,
            'grid'      => 1,
            'cell'      => 1,
            'id'        => 3,
            'widget_id' => 'dfa45a55-18a4-43e3-ae33-4953edce5ace',
            'style'     => $cell_style,
        ],
    ],

    // "Request an Appointment" h2
    [
        'title'                => 'Request an Appointment',
        'text_color'           => 'text-dark',
        'size'                 => 'h2',
        'heading_size'         => 'default',
        'separator_style'      => '',
        'text_align'           => 'text-center',
        'heading_margin'       => '',
        '_sow_form_id'         => '57f8d7ee2e99e',
        '_sow_form_timestamp'  => '',
        'case'                 => '',
        'title_bold'           => '',
        'divider_04'           => '',
        'divider_05'           => '',
        'divider_06'           => '',
        'so_sidebar_emulator_id' => "orion_heading_w-{$pid}0004",
        'option_name'          => 'widget_orion_heading_w',
        'panels_info'          => [
            'class'     => 'orion_heading_w',
            'raw'       => false,
            'grid'      => 1,
            'cell'      => 1,
            'id'        => 4,
            'widget_id' => 'dfa45a55-18a4-43e3-ae33-4953edce5ace',
            'style'     => $cell_style,
        ],
    ],

    // Contact form editor widget
    [
        'title'                => '',
        'text'                 => '<p class="lead" style="text-align: center;">Fill out the form below and we will contact you during our working hours.  If you have a general interest in speech and language, check out the <a href="https://www.asha.org">ASHA</a> website for more information.</p>
<p style="text-align: center;">[wpforms id="3078"]</p>
',
        'text_selected_editor' => 'tmce',
        'autop'                => true,
        '_sow_form_id'         => '57f8a5c9a4494',
        '_sow_form_timestamp'  => '',
        'so_sidebar_emulator_id' => "sow-editor-{$pid}0005",
        'option_name'          => 'widget_sow-editor',
        'panels_info'          => [
            'class'     => 'SiteOrigin_Widget_Editor_Widget',
            'raw'       => false,
            'grid'      => 1,
            'cell'      => 1,
            'id'        => 5,
            'widget_id' => wp_generate_uuid4(),
            'style'     => array_merge( $cell_style, [ 'padding' => '0px 0px 36px 0px' ] ),
        ],
    ],
];

// ── Grids ────────────────────────────────────────────────────────────────────

// Shared row style used by the bio rows on the About page
$bio_row_style = [
    'padding'                              => '0px 0px 0px 0px',
    'background_image_attachment'          => false,
    'background_display'                   => 'tile',
    'background_image_size'                => 'full',
    'background_image_opacity'             => '100',
    'border_thickness'                     => '1px',
    'full_height'                          => '',
    'cell_alignment'                       => 'flex-start',
    'separator_top'                        => 'none',
    'separator_top_position'               => 'top-svg-inside',
    'separator_bottom'                     => 'none',
    'separator_bottom_color'               => '#f8f8f8',
    'separator_bottom_position'            => 'bottom-svg-inside',
    'separator_animation'                  => true,
    'separator_responsive'                 => true,
    'separators_on_mobile'                 => 'display_separators_mobile',
    'mobile'                               => 'mobile-1-in-row',
    'tablet'                               => 'tablet-default',
    'desktop'                              => 'desktop-default',
    'full_width_small'                     => '',
    'full_width_tablets'                   => '',
    'row_position'                         => 'default',
    'full_screen'                          => '',
    'text_style'                           => 'text-dark',
    'row_overlay'                          => 'default',
    'orion_theme_colors_bg'                => 'custom',
    'orion_theme_colors_separator_top'     => 'custom',
    'orion_theme_colors_separator_bottom'  => 'custom',
];

$grids = [
    // Grid 0 — full-width team section
    [
        'cells' => 1,
        'style' => array_merge( $bio_row_style, [
            'padding'        => '60px 0px 60px 0px',
            'mobile_padding' => '30px 0px 30px 0px',
        ] ),
    ],

    // Grid 1 — CTA section (exact copy of About page grid 3)
    [
        'cells' => 3,
        'style' => [
            'padding'                              => '120px 0px 90px 0px',
            'mobile_padding'                       => '60px 0px 48px 0px',
            'background_image_attachment'          => '2989',
            'background_image_attachment_fallback' => false,
            'background_display'                   => 'tile',
            'background_image_size'                => 'full',
            'background_image_opacity'             => '55',
            'border_thickness'                     => '1px',
            'full_height'                          => '',
            'gutter'                               => '0px',
            'row_stretch'                          => 'full',
            'cell_alignment'                       => 'flex-start',
            'separator_top'                        => 'none',
            'separator_top_position'               => 'top-svg-outside',
            'separator_bottom'                     => 'none',
            'separator_bottom_color'               => '#ffffff',
            'separator_bottom_position'            => 'bottom-svg-outside',
            'separator_animation'                  => '',
            'separator_responsive'                 => '',
            'separators_on_mobile'                 => 'display_separators_mobile',
            'mobile'                               => 'mobile-1-in-row',
            'tablet'                               => 'tablet-default',
            'desktop'                              => 'desktop-default',
            'full_width_small'                     => '',
            'full_width_tablets'                   => '',
            'row_position'                         => 'default',
            'full_screen'                          => '',
            'text_style'                           => 'default',
            'row_overlay'                          => 'overlay-white-t',
            'tablet_padding'                       => '90px 0px 78px 0px',
            'orion_theme_colors_bg'                => 'bg-c1',
            'orion_theme_colors_separator_top'     => 'custom',
            'orion_theme_colors_separator_bottom'  => 'custom',
        ],
    ],
];

// ── Grid cells ───────────────────────────────────────────────────────────────
$grid_cells = [
    [ 'grid' => 0, 'index' => 0, 'weight' => 1.0,                    'style' => [] ],
    [ 'grid' => 1, 'index' => 0, 'weight' => 0.09981684981683993,     'style' => [] ],
    [ 'grid' => 1, 'index' => 1, 'weight' => 0.8003663003663202,      'style' => [] ],
    [ 'grid' => 1, 'index' => 2, 'weight' => 0.09981684981683993,     'style' => [] ],
];

// ── Save panels_data ─────────────────────────────────────────────────────────
$panels_data = [
    'widgets'    => $widgets,
    'grids'      => $grids,
    'grid_cells' => $grid_cells,
];

update_post_meta( $page_id, 'panels_data', $panels_data );

WP_CLI::success( "Created Team page (ID {$page_id}) at /team with orion_team_w widget." );

Youez - 2016 - github.com/yon3zu
LinuXploit