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:
2026-02-11 14:23:31 +09:00
parent 7d14914b02
commit 148cd7c5c6

View File

@@ -47,6 +47,9 @@ class DDHH_JM_Template {
$author = get_userdata( $post->post_author ); $author = get_userdata( $post->post_author );
$author_name = $author ? $author->display_name : ''; $author_name = $author ? $author->display_name : '';
$author_org = get_user_meta( $post->post_author, 'ddhh_org_name', true ); $author_org = get_user_meta( $post->post_author, 'ddhh_org_name', true );
if ( ! $author_org ) {
$author_org = $author_name;
}
// Build job details HTML // Build job details HTML
ob_start(); ob_start();
@@ -145,19 +148,15 @@ class DDHH_JM_Template {
margin: 2em 0; margin: 2em 0;
} }
.ddhh-job-offer-details .job-header { .ddhh-job-offer-details .job-header {
display: flex;
align-items: center;
gap: 1em;
margin-bottom: 2em; margin-bottom: 2em;
} }
.ddhh-job-offer-details .job-header .job-logo {
flex-shrink: 0;
}
.ddhh-job-offer-details .job-logo img { .ddhh-job-offer-details .job-logo img {
max-width: 200px; max-width: 200px;
height: auto; height: auto;
} }
.ddhh-job-offer-details .job-header-org { .ddhh-job-offer-details .job-header-org {
display: block;
margin-top: 0.5em;
font-size: 1.4em; font-size: 1.4em;
font-weight: 600; font-weight: 600;
color: #333; color: #333;