[ 'src' => blocksy_image_picker_url('narrow.svg'), 'title' => __('Narrow Width', 'blocksy'), ], 'type-4' => [ 'src' => blocksy_image_picker_url('normal.svg'), 'title' => __('Normal Width', 'blocksy'), ], 'type-2' => [ 'src' => blocksy_image_picker_url('left-single-sidebar.svg'), 'title' => __('Left Sidebar', 'blocksy'), ], 'type-1' => [ 'src' => blocksy_image_picker_url('right-single-sidebar.svg'), 'title' => __('Right Sidebar', 'blocksy'), ] ]; if (! isset($skipped_structure)) { $skipped_structure = []; } foreach ($skipped_structure as $structure) { unset($structure_choices[$structure]); } $options = [ [ $prefix . 'structure' => [ 'label' => $structure_label, 'type' => 'ct-image-picker', 'value' => $default_structure, 'choices' => $structure_choices, 'sync' => blocksy_sync_whole_page([ 'prefix' => $prefix, 'prefix_custom' => 'single-structure', 'loader_selector' => '[class*="ct-container"]' ]), ], ], $has_content_style ? [ $prefix . 'content_style' => [ 'label' => __('Content Area Style', 'blocksy'), 'type' => 'ct-radio', 'value' => $default_content_style, 'view' => 'text', 'design' => 'block', 'divider' => 'top', 'responsive' => true, 'choices' => [ 'wide' => __( 'Wide', 'blocksy' ), 'boxed' => __( 'Boxed', 'blocksy' ), ], 'sync' => 'live' ], ] : [], $has_v_spacing ? [ $prefix . 'content_area_spacing' => [ 'label' => __( 'Content Area Vertical Spacing', 'blocksy' ), 'type' => 'ct-radio', 'value' => 'both', 'view' => 'text', 'design' => $has_v_spacing ? 'block' : 'inline', 'divider' => 'top', 'attr' => [ 'data-type' => 'content-spacing' ], 'choice_attr' => [ 'data-tooltip' => 'top' ], 'sync' => "live", 'choices' => [ 'both' => ' ' . __( 'Top & Bottom', 'blocksy' ) . '', 'top' => ' ' . __( 'Only Top', 'blocksy' ) . '', 'bottom' => ' ' . __( 'Only Bottom', 'blocksy' ) . '', 'none' => ' ' . __( 'Disabled', 'blocksy' ) . '', ], 'desc' => blocksy_safe_sprintf( // translators: placeholder here means the actual URL. __( 'You can customize the global spacing value in General ➝ Layout ➝ %sContent Area Spacing%s.', 'blocksy' ), blocksy_safe_sprintf( '', admin_url('/customize.php?autofocus[section]=general&ct_autofocus=general:layout_panel') ), '' ), ], ] : [] ];