'brandy-account-element ' . esc_attr( brandy_get_editable_class() ), 'data-builder' => $args['builder'], 'data-section-id' => $section_id, 'data-section-title' => $section_title, 'data-element-type' => $section_id, ); $settings = $element['settings']; if ( empty( $settings ) ) { return; } $account_data = array( 'icon' => Account::get_account_icon( $settings ), 'label' => Account::get_account_label( $settings ), 'account_link' => Account::get_account_link( $settings ), 'state' => Account::get_state(), 'icon_style' => $settings[ Account::get_state() ]['icon']['style'] ?? 'outline', 'profile_type' => $settings[ Account::get_state() ]['profile_type'] ?? 'avatar', 'label_position' => $settings[ Account::get_state() ]['label']['position'] ?? 'right', ); ?>
>
'brandy-account', 'aria-label' => 'View account', 'href' => $account_data['account_link'], 'data-state' => $account_data['state'], 'target' => ! empty( $settings[ Account::get_state() ]['target'] ) ? '_blank' : '_self', 'data-profile-type' => esc_attr( $account_data['profile_type'] ), ); ?> > 'brandy-account__icon', 'type' => esc_attr( $account_data['icon_style'] ), ) ); ?> 'brandy-account__label', 'data-device' => $device, 'data-as-tooltip' => Helpers::get_device_value( $settings[ Account::get_state() ]['label']['enabled'], $device ) ? 'false' : 'true', 'data-position' => Helpers::get_device_value( $settings[ Account::get_state() ]['label']['position'], $device ), ); ?>
>
$section_id, 'part_name' => $section_title, ) ); ?>