Skip to content

Commit

Permalink
Add Single Page
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminZekavica committed Mar 1, 2018
1 parent 37271d7 commit 9948929
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 17 deletions.
31 changes: 14 additions & 17 deletions yourtheme/functions.php
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' );

14 changes: 14 additions & 0 deletions yourtheme/single-job_listing.php
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(); ?>

0 comments on commit 9948929

Please sign in to comment.