'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;
}
$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[ $state ]['icon']['style'] ?? 'outline';
?>
>
Account::LOGGED_IN_STATE === $state ? $label_position : null,
'device' => $device,
'href' => $account_link,
'state' => $state,
'target' => ! empty( $settings[ Account::LOGGED_IN_STATE ]['target'] ) ? '_blank' : '_self',
);
?>
profile-type= aria-label="View account">
'brandy-account__icon',
'type' => esc_attr( $icon_style ),
)
);
?>
>
$account_link,
'state' => $state,
'target' => ! empty( $settings[ Account::LOGGED_OUT_STATE ]['target'] ) ? '_blank' : '_self',
);
?>
aria-label="View account">
'brandy-account__icon',
'type' => esc_attr( $icon_style ),
)
);
?>
>
$section_id,
'part_name' => $section_title,
)
);
?>