data = $data; } public function get_block() { $options = blocksy_akg('ct_options', $this->data, []); $sizes = [ 'small' => 15, 'medium' => 20, 'large' => 25, ]; $old_size = blocksy_akg('contacts_icons_size', $options, 'medium'); if (isset($sizes[$old_size])) { $options['contacts_icons_size'] = $sizes[$old_size]; } $options = array_merge( [ 'title' => __('Contact Info', 'blocksy'), 'contact_text' => '', 'contact_information' => [ [ 'id' => 'address', 'enabled' => true, 'title' => __('Address:', 'blocksy'), 'content' => 'Street Name, NY 38954', 'link' => '', ], [ 'id' => 'phone', 'enabled' => true, 'title' => __('Phone:', 'blocksy'), 'content' => '578-393-4937', 'link' => 'tel:578-393-4937', ], [ 'id' => 'mobile', 'enabled' => true, 'title' => __('Mobile:', 'blocksy'), 'content' => '578-393-4937', 'link' => 'tel:578-393-4937', ], ], 'contact_link_target' => 'no', 'link_icons' => 'no', 'contacts_icons_size' => 20, 'contacts_items_spacing' => '', 'contacts_icon_shape' => 'rounded', 'contacts_icon_fill_type' => 'outline', 'contacts_items_direction' => 'column', ], $options ); $innerContent = [ '
' . $options['contact_text'] . '
', 'innerContent' => [ '', $options['contact_text'], '
' ] ], [ 'blockName' => 'blocksy/contact-info', 'attrs' => array_merge( [ 'lock' => [ 'remove' => true ] ], $options ), 'innerBlocks' => [], 'innerHTML' => '