plain
1 week ago
admin-expiring-job.php
6 years ago
admin-new-job.php
6 years ago
admin-updated-job.php
6 years ago
email-footer.php
2 years ago
email-header.php
2 years ago
email-job-details.php
7 years ago
email-styles.php
2 years ago
employer-expiring-job.php
6 years ago
admin-expiring-job.php
53 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Email content when notifying the administrator of an expiring job listing. |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/job_manager/emails/employer-expiring-job.php. |
| 6 | * |
| 7 | * @see https://wpjobmanager.com/document/template-overrides/ |
| 8 | * @author Automattic |
| 9 | * @package wp-job-manager |
| 10 | * @category Template |
| 11 | * @version 1.33.4 |
| 12 | */ |
| 13 | |
| 14 | if ( ! defined( 'ABSPATH' ) ) { |
| 15 | exit; // Exit if accessed directly. |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * @var WP_Post $job |
| 20 | */ |
| 21 | $job = $args['job']; |
| 22 | |
| 23 | /** |
| 24 | * @var bool |
| 25 | */ |
| 26 | $expiring_today = $args['expiring_today']; |
| 27 | $edit_post_link = admin_url( sprintf( 'post.php?post=%d&action=edit', $job->ID ) ); |
| 28 | |
| 29 | echo '<p>'; |
| 30 | if ( $expiring_today ) { |
| 31 | // translators: %1$s placeholder is URL to the blog. %2$s placeholder is the name of the site. |
| 32 | echo wp_kses_post( sprintf( __( 'The following job listing is expiring today from <a href="%1$s">%2$s</a>.', 'wp-job-manager' ), esc_url( home_url() ), esc_html( get_bloginfo( 'name' ) ) ) ); |
| 33 | } else { |
| 34 | // translators: %1$s placeholder is URL to the blog. %2$s placeholder is the name of the site. |
| 35 | echo wp_kses_post( sprintf( __( 'The following job listing is expiring soon from <a href="%1$s">%2$s</a>.', 'wp-job-manager' ), esc_url( home_url() ), esc_html( get_bloginfo( 'name' ) ) ) ); |
| 36 | } |
| 37 | |
| 38 | echo ' '; |
| 39 | |
| 40 | // translators: Placeholder is URL to site's WP admin. |
| 41 | echo wp_kses_post( sprintf( __( 'Visit <a href="%s">WordPress admin</a> to manage the listing.', 'wp-job-manager' ), esc_url( $edit_post_link ) ) ); |
| 42 | echo '</p>'; |
| 43 | |
| 44 | /** |
| 45 | * Show details about the job listing. |
| 46 | * |
| 47 | * @param WP_Post $job The job listing to show details for. |
| 48 | * @param WP_Job_Manager_Email $email Email object for the notification. |
| 49 | * @param bool $sent_to_admin True if this is being sent to an administrator. |
| 50 | * @param bool $plain_text True if the email is being sent as plain text. |
| 51 | */ |
| 52 | do_action( 'job_manager_email_job_details', $job, $email, true, $plain_text ); |
| 53 |