Skip to content

Commit

Permalink
Merge branch 'dev-hiresuit' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
nithinjohn22 committed Dec 13, 2024
2 parents e7aeb4b + 3192aab commit 143595e
Show file tree
Hide file tree
Showing 18 changed files with 158 additions and 103 deletions.
5 changes: 4 additions & 1 deletion admin/class-awsm-job-openings-meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public function awsm_register_meta_boxes() {
if ( isset( $post ) && $post->post_type === 'awsm_job_application' ) {
$awsm_attachment_id = get_post_meta( $post->ID, 'awsm_attachment_id', true );
if ( ! empty( $awsm_attachment_id ) ) {
add_meta_box( 'awsm-job-resume-preview', esc_html__( 'Resume Preview', 'wp-job-openings' ), array( $this, 'awsm_job_application_attachment_preview' ), 'awsm_job_application', 'normal', 'high' );
$attachment_post = get_post( $awsm_attachment_id );
if ( $attachment_post && $attachment_post->post_type === 'attachment' ) {
add_meta_box( 'awsm-job-resume-preview', esc_html__( 'Resume Preview', 'wp-job-openings' ), array( $this, 'awsm_job_application_attachment_preview' ), 'awsm_job_application', 'normal', 'high' );
}
}
}

Expand Down
14 changes: 9 additions & 5 deletions admin/templates/meta/applicant-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@
<div class="awsm-applicant-info">
<h3><?php echo esc_html( $applicant_details['name'] ); ?></h3>
<?php $title = esc_html( sprintf( get_post_meta( $post->ID, 'awsm_apply_for', true ) ) ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?>
<!-- Translators: %s is the title to display in the paragraph. -->
<p><?php printf( esc_html__( '%s', 'wp-job-openings' ), esc_html( $title ) ); ?></p>
<p>
<?php
// phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment, WordPress.WP.I18n.NoEmptyStrings
printf( esc_html__( '%s', 'wp-job-openings' ), esc_html( $title ) );
?>
</p>

</div><!-- .awsm-applicant-info -->
<?php
Expand Down Expand Up @@ -128,8 +132,8 @@
<?php echo ! empty( $resume_field_label ) ? esc_html( $resume_field_label ) : esc_html__( 'Resume', 'wp-job-openings' ); ?>
</label>
<div class="awsm-applicant-resume">
<span class="hs-resume-info">
<span>
<span >

<strong>
<?php
echo ! empty( $full_file_name )
Expand All @@ -138,7 +142,7 @@
?>
</strong>
<?php echo esc_html( $file_size_display ); ?>
</span>

</span>
<div class="awsm-applicant-resume-cta">
<?php do_action( 'after_awsm_job_applicant_details_list_preview_resume', $post->ID ); ?>
Expand Down
21 changes: 8 additions & 13 deletions admin/templates/overview/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,7 @@
'link_text' => __( 'Get Support', 'wp-job-openings' ),
),
);
if ( ! class_exists( 'AWSM_Job_Openings_Pro_Pack' ) ) {
$support_link_key = array_search( 'support', wp_list_pluck( $get_started_links, 'id' ) );
if ( $support_link_key !== false ) {
unset( $get_started_links[ $support_link_key ] );
}
}


/**
* Filters the overview get started widget links.
Expand All @@ -192,7 +187,7 @@
<ul>
<?php
foreach ( $get_started_links as $gs_link ) {
printf( '<li><a href="%2$s" target="_blank" rel="noopener">%1$s%3$s</a></li>', esc_html( $gs_link['link_text'] ), esc_url( $gs_link['url'] ), $svg );
printf( '<li><a href="%2$s" target="_blank" rel="noopener">%1$s%3$s</a></li>', esc_html( $gs_link['link_text'] ), esc_url( $gs_link['url'] ), $svg ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
?>
</ul>
Expand Down Expand Up @@ -223,7 +218,7 @@
$submission_time = human_time_diff( get_the_time( 'U', $application->ID ), current_time( 'timestamp' ) ) . ' ' . __( 'ago', 'wp-job-openings' );
?>
<a href="<?php echo esc_url( $edit_link ); ?>" class="awsm-jobs-overview-list-item">
<?php echo $avatar; ?>
<?php echo $avatar; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
<p>
<strong><?php echo esc_html( $application->post_title ); ?></strong>
<?php echo esc_html( get_post_meta( $application->ID, 'awsm_apply_for', true ) ); ?>
Expand Down Expand Up @@ -275,7 +270,7 @@
}
?>
</strong>
<?php printf( esc_html__( 'Published on: %s', 'wp-job-openings' ), sprintf( esc_html( $published_date ) ) ); ?>
<?php printf( esc_html__( 'Published on: %s', 'wp-job-openings' ), sprintf( esc_html( $published_date ) ) ); // phpcs:ignore WordPress.WP.I18n.MissingTranslatorsComment ?>
</p>
<svg width="4.922" height="8.333" viewBox="0 0 4.922 8.333" xmlns="http://www.w3.org/2000/svg" version="1.1" preserveAspectRatio="xMinYMin">
<path xmlns="http://www.w3.org/2000/svg" d="M0.41139,0.133199 L0.13652,0.406167 C0.05068,0.492077 0.00339,0.606377 0.00339,0.728527 C0.00339,0.850617 0.05068,0.965047 0.13652,1.050957 L3.2505,4.164807 L0.13306,7.282237 C0.04722,7.368017 4.4408921e-16,7.482447 4.4408921e-16,7.604537 C4.4408921e-16,7.726617 0.04722,7.841117 0.13306,7.926967 L0.40624,8.199997 C0.58388,8.377777 0.87325,8.377777 1.05089,8.199997 L4.77592,4.488317 C4.86169,4.402547 4.92213,4.288247 4.92213,4.165077 L4.92213,4.163647 C4.92213,4.041497 4.86162,3.927197 4.77592,3.841427 L1.06098,0.133199 C0.97521,0.04729 0.85746,0.000135 0.73537,2.22044605e-16 C0.61322,2.22044605e-16 0.49709,0.04729 0.41139,0.133199 Z"/>
Expand Down Expand Up @@ -355,10 +350,10 @@
'url' => $add_on['url'],
);
$awsm_info = new AWSM_Job_Openings_Info();
echo $awsm_info->get_add_on_btn_content(
$add_on['wp_plugin'],
$add_on_details
); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo $awsm_info->get_add_on_btn_content( // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
$add_on['wp_plugin'], // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
$add_on_details // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
);
} else {
printf(
'<p>%s</p>',
Expand Down
3 changes: 2 additions & 1 deletion assets/css/admin-global.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/admin.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/admin.min.css.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion assets/css/admin/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -1752,6 +1752,7 @@ a.awsm-plugin-item p {
flex-wrap: wrap;
padding: 12px 0;
gap: 10px;
align-items: center;
}

.awsm-applicant-profile ul li:not(:last-child) {
Expand All @@ -1775,7 +1776,9 @@ a.awsm-plugin-item p {
.awsm-applicant-profile ul li > div p {
margin: 0 0 12px;
}

.awsm-applicant-profile ul li > div p:last-child{
margin-bottom: 0;
}
.awsm-form-group {
margin-bottom: 12px;
}
Expand Down
3 changes: 2 additions & 1 deletion assets/css/general.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion assets/js/admin-overview.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 143595e

Please sign in to comment.