Guest User

Untitled

a guest
Sep 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. add_action( 'single_job_listing_sidebar', 'jh_child_display_job_details_sidebar', 40 );
  2. add_action( 'jobhunt_sidebar_args', 'jh_child_job_detail_sidebar_register', 20 );
  3.  
  4. function jh_child_display_job_details_sidebar() {
  5. ?><div id="secondary" class="widget-area sidebar-jobs" role="complementary">
  6. <div class="widget-area-inner">
  7. <?php dynamic_sidebar( 'sidebar-job-detail' ); ?>
  8.  
  9. </div><!-- /.widget-area-inner -->
  10. </div><!-- #secondary --><?php
  11. }
  12.  
  13. function jh_child_job_detail_sidebar_register( $sidebar_args ) {
  14.  
  15. $sidebar_args['sidebar_jobs'] = array(
  16. 'name' => esc_html__( 'Job Details Sidebar', 'jobhunt' ),
  17. 'id' => 'sidebar-job-detail',
  18. 'description' => esc_html__( 'Widgets added to this region will appear in the jobs details page.', 'jobhunt' ),
  19. );
  20.  
  21. return $sidebar_args;
  22. }
Add Comment
Please, Sign In to add comment