-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37271d7
commit 9948929
Showing
2 changed files
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,59 @@ | ||
<?php | ||
<?php | ||
|
||
/* | ||
/* | ||
Theme Name: Your Theme | ||
Description: Add Functions | ||
Author: Benjamin Zekavica | ||
Version: 1.0 | ||
*/ | ||
Version: 1.0 | ||
*/ | ||
|
||
// Add WP Job Manger Function | ||
// Add WP Job Manger Function | ||
|
||
add_theme_support( 'job-manager-templates' ); | ||
|
||
|
||
/* Add Fields to Job Manager */ | ||
/* Add Fields to Job Manager */ | ||
|
||
add_filter( 'job_manager_job_listing_data_fields', 'mks_feld' ); | ||
|
||
|
||
function mks_feld( $fields ) { | ||
|
||
|
||
// Add Postleitzahl | ||
$fields['_plz'] = array( | ||
'label' => __( 'Postleitzahl', 'job_manager' ), | ||
'type' => 'text', | ||
'placeholder' => '52066', | ||
'description' => 'Geben Sie hier eine Postleitzahl ein', | ||
'description' => 'Geben Sie hier eine Postleitzahl ein', | ||
); | ||
|
||
// Begin the job | ||
// Begin the job | ||
$fields['_beginjob'] = array( | ||
'label' => __( 'Beginn der Arbeit', 'job_manager' ), | ||
'type' => 'text', | ||
'placeholder' => '', | ||
'description' => 'Wann startet der Job?', | ||
'description' => 'Wann startet der Job?', | ||
'classes' => array( 'job-manager-datepicker' ), | ||
); | ||
// Begin the job | ||
|
||
// Begin the job | ||
$fields['_endjob'] = array( | ||
'label' => __( 'Ende der Arbeit', 'job_manager' ), | ||
'type' => 'text', | ||
'placeholder' => '', | ||
'description' => 'Wann endet der Job?', | ||
'description' => 'Wann endet der Job?', | ||
'classes' => array( 'job-manager-datepicker' ), | ||
); | ||
|
||
return $fields; | ||
} | ||
|
||
|
||
|
||
// Enque Files | ||
// Enque Files | ||
|
||
function bz_enque() { | ||
wp_enqueue_style( 'style-name', get_stylesheet_uri() ); | ||
wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/functions.js', array(), '1.0.0', true ); | ||
} | ||
|
||
add_action( 'wp_enqueue_scripts', 'bz_enque' ); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php get_header(); ?> | ||
|
||
<div class="job-title"> | ||
<?php the_title(); ?> | ||
</div> | ||
|
||
|
||
<div class="job-description"> | ||
<?php the_content(); ?> | ||
</div> | ||
|
||
<!-- Hier kann man das Markup bearbeiten --> | ||
|
||
<?php get_header(); ?> |