Skip to content

Commit 23f1a29

Browse files
committed
Add applications extension as required, change plugin name
1 parent c3a7ee8 commit 23f1a29

4 files changed

Lines changed: 37 additions & 20 deletions

File tree

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# WP Job Manager - Screening Questions #
1+
# Screening Questions For WP Job Manager #
22
**Contributors:** [WPdrift](https://profiles.wordpress.org/wpdrift), [upnrunn](https://profiles.wordpress.org/upnrunn), [Kishores](https://profiles.wordpress.org/kishores), [Mainul Hassan Main](https://profiles.wordpress.org/shamimmoeen)\
33
**Tags:** wp-job-manager, wp-job-manager-applications, wp-job-manager-screening-questions\
44
**Requires at least:** 4.4\
@@ -21,21 +21,22 @@ Screening Questions extension integrates with WP Job Manager plugin and lets com
2121
* Suggested questions
2222
* Application with answers
2323

24-
<a href="https://wpdrift.com/screening-questions-for-wp-job-manager/" target="_blank">Read more about WP Job Manager - Screening Questions</a>.
24+
<a href="https://wpdrift.com/screening-questions-for-wp-job-manager/" target="_blank">Read more about Screening Questions For WP Job Manager</a>.
2525

2626
### Requirements ###
2727

28-
WP Job Manager - Screening Questions plugin needs the following plugins to be installed:
28+
Screening Questions For WP Job Manager plugin needs the following plugins to be installed:
2929

3030
* <a href="https://wordpress.org/plugins/wp-job-manager/" target="_blank">WP Job Manager</a>
31+
* <a href="https://wpjobmanager.com/add-ons/applications/" target="_blank">WP Job Manager - Applications</a>
3132

3233
## Installation ##
3334

3435
### Automatic installation ###
3536

3637
Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t even need to leave your web browser. To do an automatic install, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.
3738

38-
In the search field type “WP Job Manager - Screening Questions” and click Search Plugins. Once you’ve found the plugin you can view details about it such as the point release, rating, and description. Most importantly, of course, you can install it by clicking Install Now.
39+
In the search field type “Screening Questions For WP Job Manager” and click Search Plugins. Once you’ve found the plugin you can view details about it such as the point release, rating, and description. Most importantly, of course, you can install it by clicking Install Now.
3940

4041
### Manual installation ###
4142

languages/screening-questions-for-wp-job-manager.pot

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# This file is distributed under the GNU General Public License v3.0.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: WP Job Manager - Screening Questions 1.0.0\n"
5+
"Project-Id-Version: Screening Questions For WP Job Manager 1.0.0\n"
66
"Report-Msgid-Bugs-To: "
77
"https://wordpress.org/support/plugin/screening-questions-for-wp-job-manager\n"
8-
"POT-Creation-Date: 2018-04-13 08:02:12+00:00\n"
8+
"POT-Creation-Date: 2018-04-13 09:40:03+00:00\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=utf-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
@@ -53,13 +53,13 @@ msgstr ""
5353
msgid "Loading..."
5454
msgstr ""
5555

56-
#: screening-questions-for-wp-job-manager.php:105
57-
msgid "WP Job Manager - Screening Questions requires you to install %s."
56+
#: screening-questions-for-wp-job-manager.php:114
57+
msgid "Screening Questions For WP Job Manager requires you to install %s."
5858
msgstr ""
5959

60-
#: screening-questions-for-wp-job-manager.php:107
60+
#: screening-questions-for-wp-job-manager.php:116
6161
msgid ""
62-
"WP Job Manager - Screening Questions requires WP Job Manager %s (you are "
62+
"Screening Questions For WP Job Manager requires WP Job Manager %s (you are "
6363
"using %s)"
6464
msgstr ""
6565

@@ -149,7 +149,7 @@ msgid "Create my own"
149149
msgstr ""
150150

151151
#. Plugin Name of the plugin/theme
152-
msgid "WP Job Manager - Screening Questions"
152+
msgid "Screening Questions For WP Job Manager"
153153
msgstr ""
154154

155155
#. Plugin URI of the plugin/theme

readme.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
=== WP Job Manager - Screening Questions ===
1+
=== Screening Questions For WP Job Manager ===
22
Contributors: WPdrift, upnrunn, kishores, shamimmoeen
33
Tags: wp-job-manager, wp-job-manager-applications, wp-job-manager-screening-questions
44
Requires at least: 4.4
@@ -21,21 +21,22 @@ Screening Questions extension integrates with WP Job Manager plugin and lets com
2121
* Suggested questions
2222
* Application with answers
2323

24-
<a href="https://wpdrift.com/screening-questions-for-wp-job-manager/" target="_blank">Read more about WP Job Manager - Screening Questions</a>.
24+
<a href="https://wpdrift.com/screening-questions-for-wp-job-manager/" target="_blank">Read more about Screening Questions For WP Job Manager</a>.
2525

2626
= Requirements =
2727

28-
WP Job Manager - Screening Questions plugin needs the following plugins to be installed:
28+
Screening Questions For WP Job Manager plugin needs the following plugins to be installed:
2929

3030
* <a href="https://wordpress.org/plugins/wp-job-manager/" target="_blank">WP Job Manager</a>
31+
* <a href="https://wpjobmanager.com/add-ons/applications/" target="_blank">WP Job Manager - Applications</a>
3132

3233
== Installation ==
3334

3435
= Automatic installation =
3536

3637
Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t even need to leave your web browser. To do an automatic install, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.
3738

38-
In the search field type “WP Job Manager - Screening Questions” and click Search Plugins. Once you’ve found the plugin you can view details about it such as the point release, rating, and description. Most importantly, of course, you can install it by clicking Install Now.
39+
In the search field type “Screening Questions For WP Job Manager” and click Search Plugins. Once you’ve found the plugin you can view details about it such as the point release, rating, and description. Most importantly, of course, you can install it by clicking Install Now.
3940

4041
= Manual installation =
4142

screening-questions-for-wp-job-manager.php

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
Plugin Name: WP Job Manager - Screening Questions
3+
Plugin Name: Screening Questions For WP Job Manager
44
Plugin URI: https://wpdrift.com/screening-questions-for-wp-job-manager/
55
Description: Screening Questions Add-on for WP Job Manager.
66
Version: 1.0.0
@@ -98,14 +98,29 @@ public function install_db_tables() {
9898
* Check plugin dependency.
9999
*/
100100
public function dependency_check() {
101+
$required_plugins = array();
101102
$required_job_manager_version = '1.22.0';
103+
$notice = '';
102104

103-
if ( ! defined( 'JOB_MANAGER_VERSION' ) ) {
104-
$required_plugin = '<a href="https://wordpress.org/plugins/wp-job-manager/" target="_blank">WP Job Manager</a>';
105-
?><div class="error"><p><?php printf( esc_html__( 'WP Job Manager - Screening Questions requires you to install %s.', 'screening-questions-for-wp-job-manager' ), $required_plugin ); ?></p></div><?php
105+
if ( !is_plugin_active( 'wp-job-manager/wp-job-manager.php' ) ) {
106+
$required_plugins[] = '<a href="https://wordpress.org/plugins/wp-job-manager/" target="_blank">WP Job Manager</a>';
107+
}
108+
109+
if ( !is_plugin_active( 'wp-job-manager-applications/wp-job-manager-applications.php' ) ) {
110+
$required_plugins[] = '<a href="https://wpjobmanager.com/add-ons/applications/" target="_blank">WP Job Manager - Applications</a>';
111+
}
112+
113+
if ( $required_plugins ) {
114+
$notice = sprintf( esc_html__( 'Screening Questions For WP Job Manager requires you to install %s.', 'screening-questions-for-wp-job-manager' ), implode( ', ', $required_plugins ) );
106115
} elseif ( version_compare( JOB_MANAGER_VERSION, $required_job_manager_version, '<' ) ) {
107-
?><div class="error"><p><?php printf( esc_html__( 'WP Job Manager - Screening Questions requires WP Job Manager %s (you are using %s)', 'screening-questions-for-wp-job-manager' ), $required_job_manager_version, JOB_MANAGER_VERSION ); ?></p></div><?php
116+
$notice = sprintf( esc_html__( 'Screening Questions For WP Job Manager requires WP Job Manager %s (you are using %s)', 'screening-questions-for-wp-job-manager' ), $required_job_manager_version, JOB_MANAGER_VERSION );
108117
}
118+
119+
if ( ! $notice ) {
120+
return;
121+
}
122+
123+
echo '<div class="error"><p>' . $notice . '</p></div>';
109124
}
110125

111126
}

0 commit comments

Comments
 (0)