fix: stack company name below logo and add display_name fallback
Place the org name under the provider logo instead of beside it. Fall back to display_name when ddhh_org_name user meta is empty. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,9 @@ class DDHH_JM_Template {
|
||||
$author = get_userdata( $post->post_author );
|
||||
$author_name = $author ? $author->display_name : '';
|
||||
$author_org = get_user_meta( $post->post_author, 'ddhh_org_name', true );
|
||||
if ( ! $author_org ) {
|
||||
$author_org = $author_name;
|
||||
}
|
||||
|
||||
// Build job details HTML
|
||||
ob_start();
|
||||
@@ -145,19 +148,15 @@ class DDHH_JM_Template {
|
||||
margin: 2em 0;
|
||||
}
|
||||
.ddhh-job-offer-details .job-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1em;
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
.ddhh-job-offer-details .job-header .job-logo {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.ddhh-job-offer-details .job-logo img {
|
||||
max-width: 200px;
|
||||
height: auto;
|
||||
}
|
||||
.ddhh-job-offer-details .job-header-org {
|
||||
display: block;
|
||||
margin-top: 0.5em;
|
||||
font-size: 1.4em;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
|
||||
Reference in New Issue
Block a user