Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created May 26, 2020 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibndawood/7e1645030d965c559b82a6279834daaf to your computer and use it in GitHub Desktop.
Save ibndawood/7e1645030d965c559b82a6279834daaf to your computer and use it in GitHub Desktop.
Front Jobs - Remove "About Job" / Job Excerpt from Grid and List View
function front_job_listing_grid_card_body_content() {
?>
<div class="text-center">
<div class="u-lg-avatar mx-auto mb-3 position-relative">
<?php front_the_company_logo( 'thumbnail' , 'img-fluid' , false ); ?>
<?php front_the_job_status(); ?>
</div>
<div class="mb-4">
<h1 class="h5 mb-1">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h1>
<?php front_job_listing_body_content_meta( false ); ?>
</div>
</div>
<?php
}
function front_job_listing_list_card_body_content() {
?>
<div class="media d-block d-sm-flex">
<div class="u-avatar mb-3 mb-sm-0 mr-4 position-relative">
<?php front_the_company_logo( 'thumbnail' , 'img-fluid' , false ); ?>
<?php front_the_job_status(); ?>
</div>
<div class="media-body">
<div class="media mb-2">
<div class="media-body mb-2">
<h1 class="h5 mb-1">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h1>
<?php front_job_listing_body_content_meta( true ); ?>
</div>
<div class="d-flex ml-auto">
<?php do_action( 'job_listing_list_card_body_content_additional', 'list' ) ?>
</div>
</div>
<div class="d-md-flex align-items-md-center">
<?php
front_job_listing_list_card_body_content_bottom();
if( !empty( front_get_taxomony_data( 'job_listing_type' ) ) ) :
?>
<div class="ml-md-auto">
<span class="btn btn-xs btn-soft-danger btn-pill"><?php echo front_get_taxomony_data( 'job_listing_type' ); ?></span>
</div>
<?php
endif;
?>
</div>
</div>
</div>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment