✨feature: Make aux profile name configurable
This commit is contained in:
@@ -136,6 +136,27 @@
|
||||
},
|
||||
"layout": "row",
|
||||
"sub_fields": [
|
||||
{
|
||||
"key": "field_6a36c7aac3ad7",
|
||||
"label": "Profile Name",
|
||||
"name": "profile_name",
|
||||
"aria-label": "",
|
||||
"type": "text",
|
||||
"instructions": "",
|
||||
"required": 0,
|
||||
"conditional_logic": 0,
|
||||
"wrapper": {
|
||||
"width": "",
|
||||
"class": "",
|
||||
"id": ""
|
||||
},
|
||||
"default_value": "",
|
||||
"maxlength": "",
|
||||
"allow_in_bindings": 0,
|
||||
"placeholder": "",
|
||||
"prepend": "",
|
||||
"append": ""
|
||||
},
|
||||
{
|
||||
"key": "field_677bf0e692d3c",
|
||||
"label": "Facebook",
|
||||
@@ -455,5 +476,8 @@
|
||||
"active": true,
|
||||
"description": "",
|
||||
"show_in_rest": 0,
|
||||
"modified": 1749744328
|
||||
"display_title": "",
|
||||
"allow_ai_access": false,
|
||||
"ai_description": "",
|
||||
"modified": 1781974980
|
||||
}
|
||||
|
||||
@@ -18,6 +18,8 @@ if ( isset( $menus['aux_navigation'] ) ) {
|
||||
}
|
||||
|
||||
$currentPageURL = home_url( $wp->request ) . '/';
|
||||
|
||||
$profile = getFieldValue( 'social_media.profile_name' ) ? getFieldValue( 'social_media.profile_name' ) : ''
|
||||
?>
|
||||
|
||||
<div class="nav-aux__container hidden lg:block w-full py-0">
|
||||
@@ -34,6 +36,6 @@ $currentPageURL = home_url( $wp->request ) . '/';
|
||||
|
||||
<?php get_template_part( 'views/partials/social-media' ); ?>
|
||||
|
||||
<span class="font-semibold">@cwccollaborative</span>
|
||||
<span class="font-semibold"><?php echo esc_html( $profile ); ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user