Below is a differential between the unpatched vulnerable code and the patched update, for reference.
--- a/wp-job-portal/includes/activation.php
+++ b/wp-job-portal/includes/activation.php
@@ -468,7 +468,7 @@
('searchjobtag', '4', 'job', 'tag'),
('categories_colsperrow', '3', 'category', NULL),
('productcode', 'wpjobportal', 'default', NULL),
- ('versioncode', '2.5.2', 'default', NULL),
+ ('versioncode', '2.5.3', 'default', NULL),
('producttype', 'free', 'default', NULL),
('vis_jscredits', '0', 'jscontrolpanel', 'credits'),
('vis_emcredits', '1', 'emcontrolpanel', NULL),
@@ -991,8 +991,8 @@
wpjobportal::$_db->query($query);
- $query = "INSERT INTO `" . wpjobportal::$_db->prefix . "wj_portal_emailtemplates` (`id`, `uid`, `templatefor`, `title`, `subject`, `body`, `status`, `created`) VALUES(11, 0, 'jobseeker-package-expire', NULL, 'WP Job Portal : {PACKAGE_NAME} has been expired', '<div style="background-color: #f7f7f7; margin: 0; padding: 70px 0; width: 100%;">n<div style="border: 3px dotted #ebecec; width: 600px; display: block; margin: 0 auto; background: #fff;">n<div style="padding: 15px 20px; background: #3e4095; color: #fff; font-size: 16px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid #4b4b4d;">Wp Job Portal</div>n<div style="padding: 30px; text-align: center; font-weight: bold; background: #576cf1; color: #fff; text-transform: capitalize; font-size: 22px;">{SITETITLE}: Jobseeker Package Expiry</div>n<div style="padding: 40px 20px 20px;">n<div style="padding-bottom: 20px; border-bottom: 1px solid #ebecec;">n<div style="font-weight: bold; font-size: 18px; margin-bottom: 15px; color: #4b4b4d;">Dear {JOBSEEKER_NAME},</div>n<div style="color: #727376; line-height: 2;">Your (<strong style="color: #4b4b4d;">{PACKAGE_NAME}</strong>) has been expired.</div>n<div style="color: #727376; line-height: 2;">You had purchased this package at (<strong style="color: #4b4b4d;">{PACKAGE_PURCHASE_DATE}</strong>).</div>n</div>n<div style="padding: 20px 0;">n</div>n<div style="padding: 0 0 30px; text-align: center;"><a style="display: inline-block; padding: 15px; background: #576cf1; width: 40%; text-align: center; text-decoration: none; color: #ffff; text-transform: capitalize; border-bottom: 3px solid #4b4b4d;" href="{PACKAGE_LINK}">View Package</a></div>n<div style="background: #fef2ef; padding: 15px; margin-bottom: 20px; border: 1px solid #eba7a8;">n<div style="font-weight: bold; font-size: 14px; margin-bottom: 5px; color: #983133; text-transform: uppercase;">Do not reply TO this E-Mail</div>n<div style="color: #727376; line-height: 2;">This is an automated e-mail message sent from our support system.<br />nDo not reply to this e-mail as we cannot receive your reply!</div>n</div>n<div style="color: #727376; line-height: 2;">This email was sent from <span style="color: #3e4095; display: inline-block; text-decoration: underline;"> Wp Job Portal System </span> to <span style="color: #606062; display: inline-block; text-decoration: underline;">{EMAIL}</span></div>n</div>n<div style="background: #4b4b4d; padding: 20px; color: #fff; text-align: center; border-bottom: 5px solid #576cf1;">© {CURRENT_YEAR} All rights reserved – Wp Job Portal WordPress Plugin</div>n</div>n</div>n', NULL, '2009-08-18 16:46:16'),
- (12, 0, 'jobseeker-purchase-credit-pack', NULL, 'WP Job Portal : You purchased new package {PACKAGE_NAME}', '<div style="background-color: #f7f7f7; margin: 0; padding: 70px 0; width: 100%;">n<div style="border: 3px dotted #ebecec; width: 600px; display: block; margin: 0 auto; background: #fff;">n<div style="padding: 15px 20px; background: #3e4095; color: #fff; font-size: 16px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid #4b4b4d;">Wp Job Portal</div>n<div style="padding: 30px; text-align: center; font-weight: bold; background: #576cf1; color: #fff; text-transform: capitalize; font-size: 22px;">{SITETITLE}: Jobseeker Purchase Credits Pack</div>n<div style="padding: 40px 20px 20px;">n<div style="padding-bottom: 20px; border-bottom: 1px solid #ebecec;">n<div style="font-weight: bold; font-size: 18px; margin-bottom: 15px; color: #4b4b4d;">Dear {JOBSEEKER_NAME},</div>n<div style="color: #727376; line-height: 2;">You have purchased new package (<strong style="color: #4b4b4d;">{PACKAGE_NAME}</strong>).</div>n<div style="color: #727376; line-height: 2;">(<strong style="color: #4b4b4d;">{PACKAGE_PRICE}</strong>) credits consumed for this package.</div>n<div style="color: #727376; line-height: 2;">Package purchased date (<strong style="color: #4b4b4d;">{PACKAGE_PURCHASE_DATE}</strong>).</div>n</div>n<div style="padding: 20px 0;">n</div>n<div style="padding: 0 0 30px; text-align: center;"><a style="display: inline-block; padding: 15px; background: #576cf1; width: 40%; text-align: center; text-decoration: none; color: #ffff; text-transform: capitalize; border-bottom: 3px solid #4b4b4d;" href="{PACKAGE_LINK}">View Package</a></div>n<div style="background: #fef2ef; padding: 15px; margin-bottom: 20px; border: 1px solid #eba7a8;">n<div style="font-weight: bold; font-size: 14px; margin-bottom: 5px; color: #983133; text-transform: uppercase;">Do not reply TO this E-Mail</div>n<div style="color: #727376; line-height: 2;">This is an automated e-mail message sent from our support system.<br />nDo not reply to this e-mail as we cannot receive your reply!</div>n</div>n<div style="color: #727376; line-height: 2;">This email was sent from <span style="color: #3e4095; display: inline-block; text-decoration: underline;"> Wp Job Portal System </span> to <span style="color: #606062; display: inline-block; text-decoration: underline;">{EMAIL}</span></div>n</div>n<div style="background: #4b4b4d; padding: 20px; color: #fff; text-align: center; border-bottom: 5px solid #576cf1;">© {CURRENT_YEAR} All rights reserved – Wp Job Portal WordPress Plugin</div>n</div>n</div>n', NULL, '2009-08-18 16:46:16'),
+ $query = "INSERT INTO `" . wpjobportal::$_db->prefix . "wj_portal_emailtemplates` (`id`, `uid`, `templatefor`, `title`, `subject`, `body`, `status`, `created`) VALUES(11, 0, 'jobseeker-package-expire', NULL, 'WP Job Portal : {PACKAGE_NAME} has been expired', '<div style="background-color: #f7f7f7; margin: 0; padding: 70px 0; width: 100%;">n<div style="border: 3px dotted #ebecec; width: 600px; display: block; margin: 0 auto; background: #fff;">n<div style="padding: 15px 20px; background: #3e4095; color: #fff; font-size: 16px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid #4b4b4d;">Wp Job Portal</div>n<div style="padding: 30px; text-align: center; font-weight: bold; background: #576cf1; color: #fff; text-transform: capitalize; font-size: 22px;">{SITETITLE}: Job seeker Package Expiry</div>n<div style="padding: 40px 20px 20px;">n<div style="padding-bottom: 20px; border-bottom: 1px solid #ebecec;">n<div style="font-weight: bold; font-size: 18px; margin-bottom: 15px; color: #4b4b4d;">Dear {JOBSEEKER_NAME},</div>n<div style="color: #727376; line-height: 2;">Your (<strong style="color: #4b4b4d;">{PACKAGE_NAME}</strong>) has been expired.</div>n<div style="color: #727376; line-height: 2;">You had purchased this package at (<strong style="color: #4b4b4d;">{PACKAGE_PURCHASE_DATE}</strong>).</div>n</div>n<div style="padding: 20px 0;">n</div>n<div style="padding: 0 0 30px; text-align: center;"><a style="display: inline-block; padding: 15px; background: #576cf1; width: 40%; text-align: center; text-decoration: none; color: #ffff; text-transform: capitalize; border-bottom: 3px solid #4b4b4d;" href="{PACKAGE_LINK}">View Package</a></div>n<div style="background: #fef2ef; padding: 15px; margin-bottom: 20px; border: 1px solid #eba7a8;">n<div style="font-weight: bold; font-size: 14px; margin-bottom: 5px; color: #983133; text-transform: uppercase;">Do not reply TO this E-Mail</div>n<div style="color: #727376; line-height: 2;">This is an automated e-mail message sent from our support system.<br />nDo not reply to this e-mail as we cannot receive your reply!</div>n</div>n<div style="color: #727376; line-height: 2;">This email was sent from <span style="color: #3e4095; display: inline-block; text-decoration: underline;"> Wp Job Portal System </span> to <span style="color: #606062; display: inline-block; text-decoration: underline;">{EMAIL}</span></div>n</div>n<div style="background: #4b4b4d; padding: 20px; color: #fff; text-align: center; border-bottom: 5px solid #576cf1;">© {CURRENT_YEAR} All rights reserved – Wp Job Portal WordPress Plugin</div>n</div>n</div>n', NULL, '2009-08-18 16:46:16'),
+ (12, 0, 'jobseeker-purchase-credit-pack', NULL, 'WP Job Portal : You purchased new package {PACKAGE_NAME}', '<div style="background-color: #f7f7f7; margin: 0; padding: 70px 0; width: 100%;">n<div style="border: 3px dotted #ebecec; width: 600px; display: block; margin: 0 auto; background: #fff;">n<div style="padding: 15px 20px; background: #3e4095; color: #fff; font-size: 16px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid #4b4b4d;">Wp Job Portal</div>n<div style="padding: 30px; text-align: center; font-weight: bold; background: #576cf1; color: #fff; text-transform: capitalize; font-size: 22px;">{SITETITLE}: Job seeker Purchase Credits Pack</div>n<div style="padding: 40px 20px 20px;">n<div style="padding-bottom: 20px; border-bottom: 1px solid #ebecec;">n<div style="font-weight: bold; font-size: 18px; margin-bottom: 15px; color: #4b4b4d;">Dear {JOBSEEKER_NAME},</div>n<div style="color: #727376; line-height: 2;">You have purchased new package (<strong style="color: #4b4b4d;">{PACKAGE_NAME}</strong>).</div>n<div style="color: #727376; line-height: 2;">(<strong style="color: #4b4b4d;">{PACKAGE_PRICE}</strong>) credits consumed for this package.</div>n<div style="color: #727376; line-height: 2;">Package purchased date (<strong style="color: #4b4b4d;">{PACKAGE_PURCHASE_DATE}</strong>).</div>n</div>n<div style="padding: 20px 0;">n</div>n<div style="padding: 0 0 30px; text-align: center;"><a style="display: inline-block; padding: 15px; background: #576cf1; width: 40%; text-align: center; text-decoration: none; color: #ffff; text-transform: capitalize; border-bottom: 3px solid #4b4b4d;" href="{PACKAGE_LINK}">View Package</a></div>n<div style="background: #fef2ef; padding: 15px; margin-bottom: 20px; border: 1px solid #eba7a8;">n<div style="font-weight: bold; font-size: 14px; margin-bottom: 5px; color: #983133; text-transform: uppercase;">Do not reply TO this E-Mail</div>n<div style="color: #727376; line-height: 2;">This is an automated e-mail message sent from our support system.<br />nDo not reply to this e-mail as we cannot receive your reply!</div>n</div>n<div style="color: #727376; line-height: 2;">This email was sent from <span style="color: #3e4095; display: inline-block; text-decoration: underline;"> Wp Job Portal System </span> to <span style="color: #606062; display: inline-block; text-decoration: underline;">{EMAIL}</span></div>n</div>n<div style="background: #4b4b4d; padding: 20px; color: #fff; text-align: center; border-bottom: 5px solid #576cf1;">© {CURRENT_YEAR} All rights reserved – Wp Job Portal WordPress Plugin</div>n</div>n</div>n', NULL, '2009-08-18 16:46:16'),
(13, NULL, 'employer-package-expire', NULL, 'WP Job Portal : {PACKAGE_NAME} has been expired', '<div style="background-color: #f7f7f7; margin: 0; padding: 70px 0; width: 100%;">n<div style="border: 3px dotted #ebecec; width: 600px; display: block; margin: 0 auto; background: #fff;">n<div style="padding: 15px 20px; background: #3e4095; color: #fff; font-size: 16px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid #4b4b4d;">Wp Job Portal</div>n<div style="padding: 30px; text-align: center; font-weight: bold; background: #576cf1; color: #fff; text-transform: capitalize; font-size: 22px;">{SITETITLE}: Employer Package Expiry</div>n<div style="padding: 40px 20px 20px;">n<div style="padding-bottom: 20px; border-bottom: 1px solid #ebecec;">n<div style="font-weight: bold; font-size: 18px; margin-bottom: 15px; color: #4b4b4d;">Dear {EMPLOYER_NAME},</div>n<div style="color: #727376; line-height: 2;">Your (<strong style="color: #4b4b4d;">{PACKAGE_NAME}</strong>) has been expired.</div>n<div style="color: #727376; line-height: 2;">You had purchased this package at (<strong style="color: #4b4b4d;">{PACKAGE_PURCHASE_DATE}</strong>).</div>n</div>n<div style="padding: 20px 0;">n</div>n<div style="padding: 0 0 30px; text-align: center;"><a style="display: inline-block; padding: 15px; background: #576cf1; width: 40%; text-align: center; text-decoration: none; color: #ffff; text-transform: capitalize; border-bottom: 3px solid #4b4b4d;" href="{PACKAGE_LINK}">View Package</a></div>n<div style="background: #fef2ef; padding: 15px; margin-bottom: 20px; border: 1px solid #eba7a8;">n<div style="font-weight: bold; font-size: 14px; margin-bottom: 5px; color: #983133; text-transform: uppercase;">Do not reply TO this E-Mail</div>n<div style="color: #727376; line-height: 2;">This is an automated e-mail message sent from our support system.<br />nDo not reply to this e-mail as we cannot receive your reply!</div>n</div>n<div style="color: #727376; line-height: 2;">This email was sent from <span style="color: #3e4095; display: inline-block; text-decoration: underline;"> Wp Job Portal System </span> to <span style="color: #606062; display: inline-block; text-decoration: underline;">{EMAIL}</span></div>n</div>n<div style="background: #4b4b4d; padding: 20px; color: #fff; text-align: center; border-bottom: 5px solid #576cf1;">© {CURRENT_YEAR} All rights reserved – Wp Job Portal WordPress Plugin</div>n</div>n</div>n', NULL, '0000-00-00 00:00:00'),
(14, NULL, 'jobapply-employer', '', 'WP Job Portal : Job seeker have applied for {JOB_TITLE} job ', '<div style="background-color: #f7f7f7; margin: 0; padding: 70px 0; width: 100%;">n<div style="border: 3px dotted #ebecec; width: 600px; display: block; margin: 0 auto; background: #fff;">n<div style="padding: 15px 20px; background: #3e4095; color: #fff; font-size: 16px; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid #4b4b4d;">Wp Job Portal</div>n<div style="padding: 30px; text-align: center; font-weight: bold; background: #576cf1; color: #fff; text-transform: capitalize; font-size: 22px;">{SITETITLE}: Job Apply Employer</div>n<div style="padding: 40px 20px 20px;">n<div style="padding-bottom: 20px; border-bottom: 1px solid #ebecec;">n<div style="font-weight: bold; font-size: 18px; margin-bottom: 15px; color: #4b4b4d;">Dear {EMPLOYER_NAME},</div>n<div style="color: #727376; line-height: 2;">Mr/Mrs (<strong style="color: #4b4b4d;">{JOBSEEKER_NAME}</strong>) applied for your job (<strong style="color: #4b4b4d;">{JOB_TITLE}</strong>).</div>n<div style="color: #727376; line-height: 2;">Current Applied Resume status is (<strong style="color: #4b4b4d;">{RESUME_APPLIED_STATUS}</strong>).</div>n<div style="color: #727376; line-height: 2;">(<strong style="color: #4b4b4d;">{COVER_LETTER_DESCRIPTION}</strong>).</div>n<div style="color: #727376; line-height: 2;">(<strong style="color: #4b4b4d;">{RESUME_DATA}</strong>).</div>n</div>n<div style="padding: 20px 0;">n</div>n<div style="padding: 0 0 30px; text-align: center;"><a style="display: inline-block; padding: 15px; background: #576cf1; width: 40%; text-align: center; text-decoration: none; color: #ffff; text-transform: capitalize; border-bottom: 3px solid #4b4b4d;" href="{RESUME_LINK}">View Resume</a></div>n<div style="background: #fef2ef; padding: 15px; margin-bottom: 20px; border: 1px solid #eba7a8;">n<div style="font-weight: bold; font-size: 14px; margin-bottom: 5px; color: #983133; text-transform: uppercase;">Do not reply TO this E-Mail</div>n<div style="color: #727376; line-height: 2;">This is an automated e-mail message sent from our support system.<br />nDo not reply to this e-mail as we cannot receive your reply!</div>n</div>n<div style="color: #727376; line-height: 2;">This email was sent from <span style="color: #3e4095; display: inline-block; text-decoration: underline;"> Wp Job Portal System </span> to <span style="color: #606062; display: inline-block; text-decoration: underline;">{EMAIL}</span></div>n</div>n<div style="background: #4b4b4d; padding: 20px; color: #fff; text-align: center; border-bottom: 5px solid #576cf1;">© {CURRENT_YEAR} All rights reserved – Wp Job Portal WordPress Plugin</div>n</div>n</div>n', NULL, '0000-00-00 00:00:00');";
wpjobportal::$_db->query($query);
@@ -1151,7 +1151,7 @@
(20, 'workplace_type', 'Workplace Type', 8, '', 0, NULL, 'Specify if the job is On-site, Hybrid, or Remote', 2, 1, 1, 0, 0, 0, 0, '', '', 1, 1, NULL, 0, 1, 0, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(21, 'experience', 'Experience', 10, '', 0, NULL, NULL, 2, 1, 1, 0, 0, 0, 0, '', '', 0, 0, NULL, 1, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(102, 'is_urgent', 'Is Urgent', 12, '', 0, NULL, 'Check if this job is urgently hiring', 2, 1, 1, 0, 0, 0, 0, '', '', 1, 1, NULL, 0, 1, 0, '', 0, 0, 0, 0, 0, '', NULL, NULL),
- (22, 'noofjobs', 'No of Jobs', 13, '', 0, '', '', 2, 1, 1, 0, 0, 0, 0, '', '', 0, 0, NULL, 1, 1, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
+ (22, 'noofjobs', 'Number of Jobs', 13, '', 0, '', '', 2, 1, 1, 0, 0, 0, 0, '', '', 0, 0, NULL, 1, 1, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(23, 'duration', 'Duration', 9, '', 0, NULL, NULL, 2, 1, 1, 0, 0, 0, 0, '', '', 1, 1, NULL, 0, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(24, 'careerlevel', 'Career Level', 11, '', 0, NULL, NULL, 2, 1, 1, 0, 0, 0, 0, '', '', 1, 1, NULL, 0, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(25, 'map', 'Map', 18, '', 0, NULL, NULL, 2, 1, 1, 0, 0, 0, 0, '', '', 1, 1, NULL, 0, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
@@ -1205,7 +1205,7 @@
(79, 'section_language', 'Add Language', 100, '8', 1, NULL, NULL, 3, 1, 1, 0, 0, 0, 0, '', '', 0, 0, NULL, 1, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(80, 'language', 'Language Name', 59, '8', 0, NULL, NULL, 3, 1, 1, 0, 0, 0, 0, '', '', 0, 0, NULL, 1, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(81, 'institute_date_from', 'Date From', 36, '3', 0, NULL, NULL, 3, 1, 1, 0, 0, 0, 0, '', '', 0, 0, NULL, 1, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
- (82, 'institute_date_to', 'Date to', 35, '3', 0, NULL, NULL, 3, 1, 1, 0, 0, 0, 0, '', '', 0, 0, NULL, 1, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
+ (82, 'institute_date_to', 'Date To', 35, '3', 0, NULL, NULL, 3, 1, 1, 0, 0, 0, 0, '', '', 0, 0, NULL, 1, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(83, 'termsandconditions', 'Terms And Conditions', 24, '1', 0, NULL, NULL, 3, 0, 0, 0, 0, 1, 0, '', '', 0, 0, NULL, 1, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(84, 'tagline', 'Tag Line', 13, '', 0, NULL, '', 1, 1, 1, 0, 0, 0, 0, '', '', 0, 0, NULL, 1, 0, 1, '', 0, 0, 0, 0, 0, '', NULL, NULL),
(85, 'salaryfixed', 'Desired Salary', 13, '1', 0, '12', '1', 3, 1, 1, 0, 0, 1, 0, '', '', 1, 1, 102, 0, 1, 0, '', 0, 0, 0, 0, 0, '', NULL, NULL),
--- a/wp-job-portal/includes/addon-updater/wpjobportalupdater.php
+++ b/wp-job-portal/includes/addon-updater/wpjobportalupdater.php
@@ -81,132 +81,6 @@
}
}
- public function jsCheckVersionUpdate( $wpjobportal_update_data ) {
- if ( empty( $wpjobportal_update_data->checked ) ) {
- return $wpjobportal_update_data;
- }
- $response_version_data = get_transient('wpjobportal_addon_update_temp_data');
- $response_version_data_cdn = get_transient('wpjobportal_addon_update_temp_data_cdn');
-
- if(isset($_SERVER) && $_SERVER['REQUEST_URI'] !=''){
- if(wpjobportalphplib::wpJP_strstr( $_SERVER['REQUEST_URI'], 'plugins.php')) {
- $response_version_data = get_transient('wpjobportal_addon_update_temp_data_plugins');
- $response_version_data_cdn = get_transient('wpjobportal_addon_update_temp_data_plugins_cdn');
- }
- }
- if($response_version_data_cdn === false){
- $wpjobportal_cdnversiondata = $this->getPluginVersionDataFromCDN();
- set_transient('wpjobportal_addon_update_temp_data_cdn', $wpjobportal_cdnversiondata, HOUR_IN_SECONDS * 6);
- set_transient('wpjobportal_addon_update_temp_data_plugins_cdn', $wpjobportal_cdnversiondata, 15);
- }else{
- $wpjobportal_cdnversiondata = $response_version_data_cdn;
- }
- $wpjobportal_newversionfound = 0;
- if ( $wpjobportal_cdnversiondata) {
- if(is_object($wpjobportal_cdnversiondata) ){
- foreach ($wpjobportal_update_data->checked AS $wpjobportal_key => $wpjobportal_value) {
- $c_key_array = wpjobportalphplib::wpJP_explode('/', $wpjobportal_key);
- $c_key = $c_key_array[0];
- $c_key = wpjobportalphplib::wpJP_str_replace("-","",$c_key);
- $wpjobportal_newversion = $this->getVersionFromLiveData($wpjobportal_cdnversiondata, $c_key);
- if($wpjobportal_newversion){
- if(version_compare( $wpjobportal_newversion, $wpjobportal_value, '>' )){
- $wpjobportal_newversionfound = 1;
- }
- }
- }
- }
- }
- if($wpjobportal_newversionfound == 1){
- if($response_version_data === false){
- $response = $this->getPluginVersionData();
- set_transient('wpjobportal_addon_update_temp_data', $response, HOUR_IN_SECONDS * 6);
- set_transient('wpjobportal_addon_update_temp_data_plugins', $response, 15);
- }else{
- $response = $response_version_data;
- }
- if ( $response) {
- if(is_object($response) ){
- if(isset($response->addon_response_type) && $response->addon_response_type == 'no_key'){
- foreach ($wpjobportal_update_data->checked AS $wpjobportal_key => $wpjobportal_value) {
- $c_key_array = wpjobportalphplib::wpJP_explode('/', $wpjobportal_key);
- $c_key = $c_key_array[0];
- if(isset($response->addon_version_data->{$c_key})){
- if(version_compare( $response->addon_version_data->{$c_key}, $wpjobportal_value, '>' )){
- $wpjobportal_transient_val = get_transient('wpjobportal_addon_hide_update_notice');
- if($wpjobportal_transient_val === false){
- set_transient('wpjobportal_addon_hide_update_notice', 1, DAY_IN_SECONDS );
- }
- $this->addon_update_data[$wpjobportal_key] = $response->addon_version_data->{$c_key};
- }
- }
- }
- }else{// addon_response_type other than no_key
- foreach ($wpjobportal_update_data->checked AS $wpjobportal_key => $wpjobportal_value) {
- $c_key_array = wpjobportalphplib::wpJP_explode('/', $wpjobportal_key);
- $c_key = $c_key_array[0];
- if(isset($response->addon_update_data) && !empty($response->addon_update_data) && isset( $response->addon_update_data->{$c_key})){
- if(version_compare( $response->addon_update_data->{$c_key}->new_version, $wpjobportal_value, '>' )){
- $wpjobportal_update_data->response[ $wpjobportal_key ] = $response->addon_update_data->{$c_key};
- $this->addon_update_data[$wpjobportal_key] = $response->addon_update_data->{$c_key};
- }
- }elseif(isset($response->addon_version_data->{$c_key})){
- if(version_compare( $response->addon_version_data->{$c_key}, $wpjobportal_value, '>' )){
- $wpjobportal_transient_val = get_transient('wpjobportal_addon_hide_update_expired_key_notice');
- if($wpjobportal_transient_val === false){
- set_transient('wpjobportal_addon_hide_update_expired_key_notice', 1, DAY_IN_SECONDS );
- }
- $this->addon_update_data_errors[$wpjobportal_key] = $response->addon_version_data->{$c_key};
- $this->addon_update_data[$wpjobportal_key] = $response->addon_version_data->{$c_key};
- }
- }else{ // set latest version from cdn data
- if ( $wpjobportal_cdnversiondata) {
- if(is_object($wpjobportal_cdnversiondata) ){
- $c_key_plain = wpjobportalphplib::wpJP_str_replace("-","",$c_key);
- $wpjobportal_newversion = $this->getVersionFromLiveData($wpjobportal_cdnversiondata, $c_key_plain);
- if($wpjobportal_newversion){
- if(version_compare( $wpjobportal_newversion, $wpjobportal_value, '>' )){
-
- $wpjobportal_option_name = 'transaction_key_for_'.$c_key;
- $wpjobportal_transaction_key = wpjobportal::$_common->getTranskey($wpjobportal_option_name);
- $wpjobportal_addon_json_array = array();
- $wpjobportal_addon_json_array[] = wpjobportalphplib::wpJP_str_replace('wp-job-portal-', '', $c_key);
- $wpjobportal_url = 'https://wpjobportal.com/setup/index.php?token='.$wpjobportal_transaction_key.'&productcode='. wp_json_encode($wpjobportal_addon_json_array).'&domain='. site_url();
-
- // prepping data for seamless update of allowed addons
- $plugin = new stdClass();
- $plugin->id = 'w.org/plugins/wp-job-portal';
- $wpjobportal_addon_slug = $c_key;
- $plugin->name = $wpjobportal_addon_slug;
- $plugin->plugin = $wpjobportal_addon_slug.'/'.$wpjobportal_addon_slug.'.php';
- $plugin->slug = $wpjobportal_addon_slug;
- $plugin->version = '1.0.0';
- $wpjobportal_addonwithoutslash = wpjobportalphplib::wpJP_str_replace('-', '', $wpjobportal_addon_slug);
- $plugin->new_version = $wpjobportal_newversion;
- $plugin->url = 'https://www.wpjobportal.com/';
- $plugin->download_url = $wpjobportal_url;
- $plugin->package = $wpjobportal_url;
- $plugin->trunk = $wpjobportal_url;
-
- $wpjobportal_update_data->response[ $wpjobportal_key ] = $plugin;
- $this->addon_update_data[$wpjobportal_key] = $plugin;
- }
- }
-
- }
- }
- }
- }
- }
- }
- }
- }// new version found
- if(isset($wpjobportal_update_data->checked)){
- $this->addon_installed_version_data = $wpjobportal_update_data->checked;
- }
- return $wpjobportal_update_data;
- }
-
public function jsPluginsAPI( $false, $wpjobportal_action, $wpjobportal_args ) {
if (!isset( $wpjobportal_args->slug )) {
return false;
--- a/wp-job-portal/includes/ajax.php
+++ b/wp-job-portal/includes/ajax.php
@@ -19,20 +19,20 @@
function ajaxhandler() {
$fucntin_allowed = array('DataForDepandantFieldResume', 'DataForDepandantField', 'saveJobShortlist', 'saveJobShortlistJobManager',
'getQuickViewByJobId', 'getShortListViewByJobId', 'getShortListViewByJobIdJobPortal', 'getApplyNowByJobid',
- 'jobapply', 'jobapplyjobmanager', 'getTellaFriend', 'getTellaFriendJobManager', 'deletecompanylogo', 'deleteResumeLogo',
+ 'jobapply', 'jobapplyjobmanager', 'getTellaFriend', 'deletecompanylogo', 'deleteResumeLogo',
'getuserlistajax', 'getLogForUserById', 'getFieldsForComboByFieldFor', 'getSectionToFillValues', 'getUserIdByCompanyid',
'changeNotifyOfNotifications', 'changeViewOfNotifications', 'getOptionsForFieldEdit', 'listdepartments',
'saveTokenInputTag', 'makeJobCopyAjax', 'getsubcategorypopup', 'updateJobApplyResumeStatus', 'getResumeCommentSection',
'getFolderSection', 'saveToFolderResume', 'storeResumeComments', 'setResumeRatting', 'getResumeDetail', 'getEmailFields',
'jobapplyid', 'getFolderSection', 'getFolderSectionJobManager', 'saveToFolderResume', 'sendEmailToJobSeeker',
- 'setJobApplyRating', 'getResumeDetailJobManager', 'getEmailFieldsJobManager', 'hideTemplateBanner', 'getListTranslations',
+ 'getResumeDetailJobManager', 'getEmailFieldsJobManager', 'hideTemplateBanner', 'getListTranslations',
'validateandshowdownloadfilename', 'getlanguagetranslation', 'getPacakageListByUid', 'canceljobapplyasvisitor',
'visitorapplyjob', 'removeResumeFileById', 'getResumeSectionAjax', 'deleteResumeSectionAjax', 'getOptionsForEditSlug',
- 'getAllRoleLessUsersAjax', 'getNextJobs', 'getNextTemplateJobs','savetokeninputcity','sendmessageresume', 'sendmailtofriend',
- 'getJobApplyDetailByid', 'setListStyleSession','sendmailtofriendJobManager', 'getResumeCommentSectionJobManager',
+ 'getAllRoleLessUsersAjax', 'savetokeninputcity','sendmessageresume', 'sendmailtofriend',
+ 'getResumeCommentSectionJobManager',
'getPaymentPopup','getPackagePopupForFeaturedCompany','getPackagePopupForFeaturedJob','getPackagePopupForFeaturedResume',
'getPackagePopupForJobAlert','getPackagePopupJobView','getPackagePopupForCopyJob','getPackagePopupForCompanyContactDetail',
- 'getPackagePopupForResumeContactDetail','gettagsbytagname','listDepartments','getPackagePopupForDepartment','deleteUserPhoto',
+ 'getPackagePopupForResumeContactDetail','gettagsbytagname','listDepartments','deleteUserPhoto',
'getStripePlans','downloadandinstalladdonfromAjax','getChildForVisibleCombobox','isFieldRequired','getFieldsForComboBySection',
'getUserRoleBasedInfo','storeConfigurationSingle','importZywrapData','checkZywrapApiKey','importZywrapBatchProcess',
'getWrappersByCategory','executeZywrapProxy','getZywrapAllWrappers','getSchemaByUseCode','getAjaxJobs');
--- a/wp-job-portal/includes/breadcrumbs.php
+++ b/wp-job-portal/includes/breadcrumbs.php
@@ -234,7 +234,7 @@
break;
case 'mysubscriptions':
$wpjobportal_array[] = $wpjobportal_staticUrl;
- $wpjobportal_array[] = array('link' => wpjobportal::wpjobportal_makeUrl(array('wpjobportalme'=>'purchasehistory', 'wpjobportallt'=>'mysubscriptions')), 'text' => esc_html(__('My Subscription', 'wp-job-portal')));
+ $wpjobportal_array[] = array('link' => wpjobportal::wpjobportal_makeUrl(array('wpjobportalme'=>'purchasehistory', 'wpjobportallt'=>'mysubscriptions')), 'text' => esc_html(__('My Subscriptions','wp-job-portal')));
break;
case 'purchasehistory':
$wpjobportal_array[] = $wpjobportal_staticUrl;
--- a/wp-job-portal/includes/classes/handlesearchcookies.php
+++ b/wp-job-portal/includes/classes/handlesearchcookies.php
@@ -293,28 +293,6 @@
WPJOBPORTALincluder::getJSModel('common')->setSearchVariableOnlySortandOrder($this->_jsjp_search_array,$wpjobportal_jstlay);
}
- private function searchFormDataForCompanies(){
- if($this->_callfrom == 1){
- if(is_admin()){
- $this->_jsjp_search_array = WPJOBPORTALincluder::getJSModel('company')->getSearchFormAdminCompanyData();
- }else{
- $this->_jsjp_search_array = WPJOBPORTALincluder::getJSModel('company')->getSearchFormDataMyCompany();
- }
- $this->_setcookies = true;
- }elseif($this->_callfrom == 2){
- if(is_admin()){
- $this->_jsjp_search_array = WPJOBPORTALincluder::getJSModel('company')->getAdminCompanySavedCookies();
- }else{
- $this->_jsjp_search_array = WPJOBPORTALincluder::getJSModel('company')->getCookiesSavedMyCompany();
- }
- }
- if(is_admin()){
- WPJOBPORTALincluder::getJSModel('company')->setAdminCompanySearchVariable($this->_jsjp_search_array);
- }else{
- WPJOBPORTALincluder::getJSModel('company')->setSearchVariableMyCompany($this->_jsjp_search_array);
- }
- }
-
private function searchFormDataForCareerLevel(){
if($this->_callfrom == 1){
$this->_jsjp_search_array = WPJOBPORTALincluder::getJSModel('careerlevel')->getSearchFormDataCareerLevel();
@@ -377,7 +355,6 @@
private function setCookiesFromTransientData(){
$wpjobportal_user_data = get_transient( 'wpjobportal-social-login-data');
- //echo 'printing tranient data from handlecookies class 248 <pre>';print_r($wpjobportal_user_data);echo '</pre>';
if( $wpjobportal_user_data !== FALSE){ // it will be false if transient does not exsist
if($wpjobportal_user_data != '' && is_array($wpjobportal_user_data) && !empty($wpjobportal_user_data)){
if (!isset($_COOKIE['wpjobportal-socialid'])){
@@ -630,10 +607,6 @@
return is_array($wpjobportal_data) ? $wpjobportal_data : [];
}
- public function getSearchArray() {
- return $this->_jsjp_search_array;
- }
-
private function setCurrentUsertransient($wpjobportal_token, $for) {
// Full list of valid cases
$wpjobportal_all_cases = [
@@ -658,4 +631,4 @@
}
-?>
+?>
No newline at end of file
--- a/wp-job-portal/includes/classes/jp-shortcodes-widget.php
+++ b/wp-job-portal/includes/classes/jp-shortcodes-widget.php
@@ -56,7 +56,7 @@
'wpjobportal_my_resumes' => __('My Resumes', 'wp-job-portal'),
'wpjobportal_searchjob' => __('Search Jobs', 'wp-job-portal'),
'wpjobportal_searchresume' => __('Search Resumes', 'wp-job-portal'),
- 'wpjobportal_jobbycategory' => __('Jobs by Category', 'wp-job-portal'),
+ 'wpjobportal_jobbycategory' => __('Jobs By Categories', 'wp-job-portal'),
],
'default' => 'wpjobportal_job',
]
--- a/wp-job-portal/includes/classes/popup.php
+++ b/wp-job-portal/includes/classes/popup.php
@@ -13,25 +13,7 @@
}
}
- function canAutoSubmit($wpjobportal_result){
- return true;
- $wpjobportal_totalcredits = 0;
- $wpjobportal_i = 0;
- foreach ($wpjobportal_result AS $wpjobportal_value) {
- $wpjobportal_totalcredits += $wpjobportal_value->credits;
- $wpjobportal_i++;
- }
- if($wpjobportal_i > 1){ // show popup on multioption
- return false;
- }
- if($wpjobportal_totalcredits == 0){
- return true;
- }else{
- return false;
- }
- }
-
- function getPopupForAdmin($wpjobportal_actionname,$wpjobportal_themecall=null,$wpjobportal_pageid=null) {
+ function getPopupForAdmin($wpjobportal_actionname,$wpjobportal_themecall=null,$wpjobportal_pageid=null) {
$wpjobportal_uid = WPJOBPORTALRequest::getVar('userid');
$wpjobportal_module = WPJOBPORTALRequest::getVar('module');
if($wpjobportal_pageid == null){
@@ -532,26 +514,26 @@
switch ($wpjobportal_actionname) {
case 'featured_company':
- $return['popuptitle'] = esc_html(__('Add to','wp-job-portal')) .' '. esc_html(__('featured','wp-job-portal')) .' '. esc_html(__('company', 'wp-job-portal'));
+ $return['popuptitle'] = esc_html(__('Add to','wp-job-portal')) .' '. esc_html(__('Featured','wp-job-portal')) .' '. esc_html(__('company', 'wp-job-portal'));
$wpjobportal_id = WPJOBPORTALRequest::getVar('id');
$wpjobportal_companyname = WPJOBPORTALincluder::getJSModel('company')->getCompanynameById($wpjobportal_id);
- $return['title-text'] = esc_html(__('Company name', 'wp-job-portal'));
+ $return['title-text'] = esc_html(__('Company Name', 'wp-job-portal'));
$return['title'] = $wpjobportal_companyname;
$return['value'] = $wpjobportal_creditsrequired;
break;
case 'featured_job':
- $return['popuptitle'] = esc_html(__('Add to','wp-job-portal')) .' '. esc_html(__('featured','wp-job-portal')) .' '. esc_html(__('job', 'wp-job-portal'));
+ $return['popuptitle'] = esc_html(__('Add to','wp-job-portal')) .' '. esc_html(__('Featured','wp-job-portal')) .' '. esc_html(__('Job', 'wp-job-portal'));
$wpjobportal_id = WPJOBPORTALRequest::getVar('id');
$wpjobportal_jobtile = WPJOBPORTALincluder::getJSModel('job')->getJobTitleById($wpjobportal_id);
- $return['title-text'] = esc_html(__('Job title', 'wp-job-portal'));
+ $return['title-text'] = esc_html(__('Job Title', 'wp-job-portal'));
$return['title'] = $wpjobportal_jobtile;
$return['value'] = $wpjobportal_creditsrequired;
break;
case 'featured_resume':
- $return['popuptitle'] = esc_html(__('Add to','wp-job-portal')) .' '. esc_html(__('featured','wp-job-portal')) .' '. esc_html(__('resume', 'wp-job-portal'));
+ $return['popuptitle'] = esc_html(__('Add to','wp-job-portal')) .' '. esc_html(__('Featured','wp-job-portal')) .' '. esc_html(__('resume', 'wp-job-portal'));
$wpjobportal_id = WPJOBPORTALRequest::getVar('id');
$wpjobportal_resumetile = WPJOBPORTALincluder::getJSModel('resume')->getResumeTitleById($wpjobportal_id);
- $return['title-text'] = esc_html(__('Resume title', 'wp-job-portal'));
+ $return['title-text'] = esc_html(__('Resume Title', 'wp-job-portal'));
$return['title'] = $wpjobportal_resumetile;
$return['value'] = $wpjobportal_creditsrequired;
break;
@@ -563,7 +545,7 @@
break;
case 'add_job':
$return['popuptitle'] = esc_html(__('Add','wp-job-portal')) .' '. esc_html(__('Job', 'wp-job-portal'));
- $return['title-text'] = esc_html(__('Add','wp-job-portal')) .' '. esc_html(__('job', 'wp-job-portal'));
+ $return['title-text'] = esc_html(__('Add','wp-job-portal')) .' '. esc_html(__('Job', 'wp-job-portal'));
$return['title'] = ' ';
$return['value'] = $wpjobportal_creditsrequired;
break;
@@ -592,19 +574,19 @@
$return['value'] = $wpjobportal_creditsrequired;
break;
case 'view_company_contact_detail':
- $return['popuptitle'] = esc_html(__('View company contact detail', 'wp-job-portal'));
+ $return['popuptitle'] = esc_html(__('View Company Contact Detail', 'wp-job-portal'));
$wpjobportal_id = WPJOBPORTALRequest::getVar('id');
$wpjobportal_companyname = WPJOBPORTALincluder::getJSModel('company')->getCompanynameById($wpjobportal_id);
- $return['title-text'] = esc_html(__('View company contact detail', 'wp-job-portal'));
+ $return['title-text'] = esc_html(__('View Company Contact Detail', 'wp-job-portal'));
$return['title'] = $wpjobportal_companyname;
$return['value'] = $wpjobportal_creditsrequired;
$return['link'] = wp_nonce_url(wpjobportal::wpjobportal_makeUrl(array('wpjobportalme'=>'company', 'action'=>'wpjobportaltask', 'task'=>'addviewcontactdetail', 'companyid'=>$wpjobportal_id, 'wpjobportalpageid'=>$wpjobportal_pageid)),'wpjobportal_company_nonce');
break;
case 'view_resume_contact_detail':
- $return['popuptitle'] = esc_html(__('View resume contact detail', 'wp-job-portal'));
+ $return['popuptitle'] = esc_html(__('View Resume Contact Detail', 'wp-job-portal'));
$wpjobportal_id = WPJOBPORTALRequest::getVar('id');
$wpjobportal_resumename = WPJOBPORTALincluder::getJSModel('resume')->getResumenameById($wpjobportal_id);
- $return['title-text'] = esc_html(__('View resume contact detail', 'wp-job-portal'));
+ $return['title-text'] = esc_html(__('View Resume Contact Detail', 'wp-job-portal'));
$return['title'] = $wpjobportal_resumename;
$return['value'] = $wpjobportal_creditsrequired;
$return['link'] = wp_nonce_url(wpjobportal::wpjobportal_makeUrl(array('wpjobportalme'=>'resume', 'action'=>'wpjobportaltask', 'task'=>'addviewresumedetail', 'resumeid'=>$wpjobportal_id, 'wpjobportalpageid'=>$wpjobportal_pageid)),'wpjobportal_resume_nonce');
@@ -616,10 +598,10 @@
$return['value'] = $wpjobportal_creditsrequired;
break;
case 'job_apply':
- $return['popuptitle'] = esc_html(__('Apply On Job', 'wp-job-portal'));
+ $return['popuptitle'] = esc_html(__('Apply On This Job', 'wp-job-portal'));
$wpjobportal_id = WPJOBPORTALRequest::getVar('id');
$wpjobportal_jobtile = WPJOBPORTALincluder::getJSModel('job')->getJobTitleById($wpjobportal_id);
- $return['title-text'] = esc_html(__('Job title', 'wp-job-portal'));
+ $return['title-text'] = esc_html(__('Job Title', 'wp-job-portal'));
$return['title'] = $wpjobportal_jobtile;
$return['value'] = $wpjobportal_creditsrequired;
break;
--- a/wp-job-portal/includes/classes/resumeformlayout.php
+++ b/wp-job-portal/includes/classes/resumeformlayout.php
@@ -41,21 +41,6 @@
return wpjobportal::wpjobportal_getVariableValue(wpjobportal::$wpjobportal_data['fieldtitles'][$wpjobportal_field]);
}
- function getResumeFormUserFieldJobManager($title, $wpjobportal_field,$wpjobportal_required) {
- $wpjobportal_html = '<div class="js-col-md-12 js-form-wrapper">
- <div class="js-col-md-12 js-form-title '.esc_attr($this->class_prefix).'-bigfont">' . esc_attr($title);
- if($wpjobportal_required==1){
- $wpjobportal_html .= '<span class="'.esc_attr($this->class_prefix).'-error-msg">*</span>';
- }
- $wpjobportal_html .= '</div>
- <div class="js-col-md-12 js-form-value">' . $wpjobportal_field . '</div>
- </div>';
-
- return $wpjobportal_html;
- }
-
-
-
function getResumeFormUserField($wpjobportal_field, $object , $wpjobportal_section , $wpjobportal_sectionid, $wpjobportal_ishidden,$wpjobportal_themecall=null) {
$wpjobportal_visibleclass = "";
if (isset($wpjobportal_field->visibleparams) && $wpjobportal_field->visibleparams != ''){
@@ -139,25 +124,6 @@
return $wpjobportal_data;
}
- function getResumeSelectFieldJobManager($wpjobportal_fieldtitle,$wpjobportal_fieldName,$wpjobportal_fieldValue,$wpjobportal_required,$column){
- $wpjobportal_html="";
- if($column==4){
- $wpjobportal_html .= '<div class="js-col-md-3 '.esc_attr($this->class_prefix).'-field-padding">';
- }else{
- $wpjobportal_html .= '<div class="js-col-md-12 js-form-wrapper">';
-
- }
- $wpjobportal_html .= '
- <div class="js-col-md-12 js-form-title '.esc_attr($this->class_prefix).'-bigfont">' . $wpjobportal_fieldtitle;
- if($wpjobportal_required==1){
- $wpjobportal_html .='<span class="'.esc_attr($this->class_prefix).'-error-msg">*</span>';
- }
- $wpjobportal_html .='</div>
- <div class="js-col-md-12 js-form-value">' . $wpjobportal_fieldValue . '</div>
- </div>';
- return $wpjobportal_html;
- }
-
function getResumeSelectField($wpjobportal_field, $wpjobportal_fieldValue,$column=0,$wpjobportal_themecall=null) {
$wpjobportal_fieldtitle="";
@@ -275,53 +241,6 @@
return $wpjobportal_html;
}
- function getFieldForPersonalSectionJobManager($wpjobportal_fieldtitle,$wpjobportal_fieldName,$wpjobportal_fieldValue,$wpjobportal_required,$wpjobportal_extraattr,$columns = 0){
-
- $wpjobportal_data="";
-
- if($columns == 3){
- $wpjobportal_data .= '<div class="js-col-md-4 '.esc_attr($this->class_prefix).'-field-padding">';
- }else{
- $wpjobportal_data .= '<div class="js-col-md-12 js-form-wrapper">';
- }
- $wpjobportal_data .= '
- <div class="js-col-md-12 js-form-title '.esc_attr($this->class_prefix).'-bigfont">' . wpjobportal::wpjobportal_getVariableValue($wpjobportal_fieldtitle);
- if ($wpjobportal_required == 1) {
- $wpjobportal_data .= '<span class="'.esc_attr($this->class_prefix).'-error-msg" color: redstyle="color: red;"> *</span>';
- }
- $wpjobportal_data .='</div>
- <div class="js-col-md-12 js-form-value">';
- $wpjobportal_data .='<input class="inputbox form-control '.esc_attr($this->class_prefix).'-input-field';
-
- if ($wpjobportal_required == 1 ) {
- $wpjobportal_data .= ' required ';
- }
- if($wpjobportal_fieldName == "date_of_birth" || $wpjobportal_fieldName == "date_start" ){
- $wpjobportal_data .= ' custom_date ';
- if($wpjobportal_fieldValue = '0000-00-00 00:00:00'){
- $wpjobportal_fieldValue = '';
- }
- }
- $wpjobportal_data .= '"';
- if ($wpjobportal_fieldName == "email_address") {
- $wpjobportal_data .= ' data-validation="email"';
- }
- if ($wpjobportal_required == 1 && $wpjobportal_fieldName != "email_address") {
- $wpjobportal_data .= ' data-validation="required"';
- }
- $wpjobportal_name = 'sec_1['.$wpjobportal_fieldName.']';
- $wpjobportal_data .= ' type="text" name="' . $wpjobportal_name . '" id="' . $wpjobportal_fieldName . '" value = "' . wpjobportalphplib::wpJP_htmlspecialchars($wpjobportal_fieldValue).'"' ;
- if (!empty($wpjobportal_extraattr)){
- foreach ($wpjobportal_extraattr AS $wpjobportal_key => $wpjobportal_val){
- $wpjobportal_data .= ' ' . $wpjobportal_key . '="' . $wpjobportal_val . '"';
- }
- }
- $wpjobportal_data .= '" />';
- $wpjobportal_data .='</div>
- </div>';
- return $wpjobportal_data;
- }
-
function getFieldForPersonalSection($wpjobportal_field, $wpjobportal_fieldValue, $columns = 0,$wpjobportal_extraattr=array(),$wpjobportal_themecall=null) {
$wpjobportal_fieldtitle = $wpjobportal_field->fieldtitle;
@@ -434,52 +353,6 @@
}
return $wpjobportal_data;
}
- function getFieldForMultiSectionJobManager($wpjobportal_fieldtitle,$wpjobportal_fieldName,$wpjobportal_required,$wpjobportal_fieldValue,$wpjobportal_field_id_for,$wpjobportal_section, $wpjobportal_sectionid, $wpjobportal_ishidden){
- $wpjobportal_html = '<div class="js-col-md-12 js-form-wrapper">
- <div class="js-col-md-12 js-form-title '.esc_attr($this->class_prefix).'-bigfont" for="'.$wpjobportal_field_id_for.'">' . wpjobportal::wpjobportal_getVariableValue($wpjobportal_fieldtitle);
- if ($wpjobportal_required == 1) {
- $wpjobportal_html .= '<span class="'.esc_attr($this->class_prefix).'-error-msg">*</span>';
- }
- $wpjobportal_html .='</div>
- <div class="js-col-md-12 js-form-value">';
- $wpjobportal_data_required = '';
- $wpjobportal_class_required = '';
- if($wpjobportal_ishidden != ''){
- if ($wpjobportal_required == 1) {
- $wpjobportal_data_required = 'data-myrequired="required"';
- }
- if ($wpjobportal_fieldName == "email_address") {
- $wpjobportal_data_required = 'data-myrequired="required validate-email"';
- }
- }else{
- if ($wpjobportal_required == 1) {
- $wpjobportal_class_required = ' required';
- }
- if ($wpjobportal_fieldName == "email_address") {
- $wpjobportal_class_required = ' required validate-email';
- }
- }
-
- $wpjobportal_html .= '<input class="inputbox form-control '.esc_attr($this->class_prefix).'-input-field '.$wpjobportal_class_required.'" '.$wpjobportal_data_required;
-
- switch ($wpjobportal_section) {
- case '2': $wpjobportal_section = 'sec_2'; break;
- case '3': $wpjobportal_section = 'sec_3'; break;
- case '4': $wpjobportal_section = 'sec_4'; break;
- case '5': $wpjobportal_section = 'sec_5'; break;
- case '6': $wpjobportal_section = 'sec_6'; break;
- case '7': $wpjobportal_section = 'sec_7'; break;
- case '8': $wpjobportal_section = 'sec_8'; break;
- }
- $wpjobportal_name = $wpjobportal_section."[$wpjobportal_fieldName][$wpjobportal_sectionid]";
-
- $wpjobportal_html .= ' type="text" name="' . $wpjobportal_name . '" id="' . $wpjobportal_field_id_for . '" maxlength="250" value = "' . wpjobportalphplib::wpJP_htmlspecialchars($wpjobportal_fieldValue) . '" />';
-
- $wpjobportal_html .= '</div>
- </div>';
- return $wpjobportal_html;
-
- }
function getFieldForMultiSection($wpjobportal_field, $wpjobportal_fieldValue, $wpjobportal_section, $wpjobportal_sectionid, $wpjobportal_ishidden,$wpjobportal_themecall ) {
@@ -693,75 +566,6 @@
return $wpjobportal_html;
}
- function makeResumeSectionFields($wpjobportal_themecall=null){
- $wpjobportal_resume="";
- if(isset(wpjobportal::$_data[0]['personal_section'])) $wpjobportal_resume = wpjobportal::$_data[0]['personal_section'];
- //$wpjobportal_fields_ordering = wpjobportal::$_data[1];
-
- $wpjobportal_html = '<div id="jssection_resume" class="section_wrapper jssectionwrapper ">';
- if(empty($wpjobportal_resume->resume)){
- //$wpjobportal_jssection_hide = (isset(wpjobportal::$wpjobportal_data['resumeid']) && is_numeric(wpjobportal::$wpjobportal_data['resumeid']))?"": 'jssection_hide';
- $wpjobportal_jssection_hide = 'jssection_hide';
- }else{
- ///$wpjobportal_jssection_hide = (isset(wpjobportal::$wpjobportal_data['resumeid']) && is_numeric(wpjobportal::$wpjobportal_data['resumeid']))?"": 'jssection_hide';
- $wpjobportal_jssection_hide = '';
- }
- $wpjobportal_sectionid = 0;
- // <div class="jsundo wjportal-resume-section-undo"><img class="jsundoimage wjportal-resume-section-undo-image" onclick="undoThisSection(this);" src="'.JURI::root().'components/com_wpjobportal/images/resume/undo-icon.png" /></div>
- // <img class="jsdeleteimage wjportal-resume-section-delete" onclick="deleteThisSection(this);" src="'.JURI::root().'components/com_wpjobportal/images/resume/delete-icon.png" />
- $wpjobportal_html .= '<div class="section_wrapper form wjportal-resume-section jssection_wrapper '.$wpjobportal_jssection_hide.' jssection_resume_'.esc_attr($wpjobportal_sectionid).'">';
- foreach (wpjobportal::$_data[2][6] as $wpjobportal_field) {
- switch ($wpjobportal_field->field) {
- case "resume":
- $fvalue = isset($wpjobportal_resume->resume) ? $wpjobportal_resume->resume : '';
- $wpjobportal_req = ($wpjobportal_field->required ? 'required' : '');
- $wpjobportal_data_required = '';
- if($wpjobportal_jssection_hide){
- if($wpjobportal_req){
- $wpjobportal_data_required = 'data-myrequired="required"';
- $wpjobportal_req = '';
- }
- }
- $wpjobportal_html .= '
- <div class="wpjp-form-wrapper js-col-md-12 js-form-wrapper">
- <label id="" class="wpjp-form-title " for="resumeeditor">' . wpjobportal::wpjobportal_getVariableValue($wpjobportal_field->fieldtitle);
- if ($wpjobportal_field->required == 1) {
- $wpjobportal_html .= '<span class="error-msg">*</span>';
- }
- //$wpjobportal_name = 'sec_6[resume]['.esc_attr($wpjobportal_sectionid).']';
- $wpjobportal_name = 'resumeeditor';
-
- //$wpjobportal_value=wp_editor(isset($wpjobportal_resume->resume) ? $wpjobportal_resume->resume: '', 'resume', array('media_buttons' => false, 'data-validation' => $wpjobportal_req));
- $wpjobportal_value=isset($wpjobportal_resume->resume) ? $wpjobportal_resume->resume: '';
- $efield = WPJOBPORTALformfield::textarea('resume', $wpjobportal_value, array('class' => 'inputbox one resumeeditor form-control '.esc_attr($this->class_prefix).'-textarea-field', 'height'=>'270px','rows'=>'10','cols'=>'40'));
- $efield .= WPJOBPORTALformfield::hidden('resume_edit_val','');
- $wpjobportal_html .= '</label>
- <div class="wpjp-form-value ">
- '.$efield.'
- </div>
- </div>';
- break;
- default:
- $wpjobportal_html .= $this->getResumeFormUserField($wpjobportal_field, $wpjobportal_resume , 6 , $wpjobportal_sectionid, $wpjobportal_jssection_hide,$wpjobportal_themecall);
- break;
- }
- }
- $wpjobportal_id = '';
- $wpjobportal_deletethis = (empty($wpjobportal_resume->resume)) ? 1 : 0;
- $wpjobportal_html .= '<input type="hidden" id="deletethis6'.esc_attr($wpjobportal_sectionid).'" class="jsdeletethissection" name="sec_6[deletethis]['.esc_attr($wpjobportal_sectionid).']" value="'. wpjobportalphplib::wpJP_htmlspecialchars($wpjobportal_deletethis).'">
- <input type="hidden" id="id" name="sec_6[id]['.esc_attr($wpjobportal_sectionid).']" value="'.$wpjobportal_id.'">
- </div></div>';
- if(empty($wpjobportal_resume->resume)){
- if(null !=$wpjobportal_themecall){
- $wpjobportal_html .= '<div class="wpjp-add-new-section-link wjportal-resume-add-new-section-btn" onclick="showResumeSection( this, 'resume');"><i class="fa fa-plus"></i>'.esc_html(__('Add Resume','wp-job-portal')).'</div>';
- }else{
- $wpjobportal_html .= '<div class="wpjp-add-new-section-link wjportal-resume-add-new-section-btn" onclick="showResumeSection( this, 'resume');"><i class="fa fa-plus"></i>'.esc_html(__('Add Resume','wp-job-portal')).'</div>';
-
- }
- }
- return $wpjobportal_html;
- }
-
/* function makeAddressSectionFields($wpjobportal_themecall=null) {
$wpjobportal_addresses=array();
if(isset(wpjobportal::$_data[0]['address_section'])){
--- a/wp-job-portal/includes/classes/resumeviewlayout.php
+++ b/wp-job-portal/includes/classes/resumeviewlayout.php
@@ -73,15 +73,6 @@
return $wpjobportal_html;
}
-
- function getAttachmentRowForViewJobManager($adminLogin) {
- return $this->getAttachmentRowForViewForTemplate($adminLogin);
- }
-
- function getAttachmentRowForViewJobHub($adminLogin) {
- return $this->getAttachmentRowForViewForTemplate($adminLogin);
- }
-
function getAttachmentRowForViewForTemplate($adminLogin) {
$wpjobportal_html='<div id="'.esc_attr($this->class_prefix).'-resumedetail-attachment" class="'.esc_attr($this->class_prefix).'-resumedetail-section">
<div class="'.esc_attr($this->class_prefix).'-resumedetail-section-title">
@@ -541,13 +532,6 @@
if (isset(wpjobportal::$_data[2][1]['first_name']) || isset(wpjobportal::$_data[2][1]['last_name'])) {
$wpjobportal_layout = WPJOBPORTALrequest::getVar('layout');
$editsocialclass = '';
- /*if ($wpjobportal_resumeformview == 0 && ($wpjobportal_layout == 'addresume' || $owner == 1)) {
- $wpjobportal_html .= '<a class="personal_section_edit" href="#"><img src="' . esc_url(WPJOBPORTAL_PLUGIN_URL) . 'includes/images/edit-resume.png" /></a>';
- $editsocialclass = 'editform';
- }elseif($adminLogin || (!is_user_logged_in() && isset($_SESSION['wp-wpjobportal']))) {
- $wpjobportal_html .= '<a class="personal_section_edit" href="#"><img src="' . esc_url(WPJOBPORTAL_PLUGIN_URL) . 'includes/images/edit-resume.png" /></a>';
- $editsocialclass = 'editform';
- }*/
$wpjobportal_html .= '<div id="job-info-sociallink" class="' . $editsocialclass . '">';
if (!empty(wpjobportal::$_data[0]['personal_section']->facebook)) {
if(wpjobportalphplib::wpJP_strstr(wpjobportal::$_data[0]['personal_section']->facebook, 'http') ){
@@ -595,7 +579,7 @@
}
}
if (isset(wpjobportal::$_data[2][1]['email_address'])) {
- $wpjobportal_html .= '<div class="wjportal-resume-info"><img src="' . esc_url(WPJOBPORTAL_PLUGIN_URL) . 'includes/images/email.png" alt="'.esc_attr(__('email','wp-job-portal')).'" title="'.esc_attr(__('email','wp-job-portal')).'" />' . wpjobportal::$_data[0]['personal_section']->email_address . '</div>';
+ $wpjobportal_html .= '<div class="wjportal-resume-info"><img src="' . esc_url(WPJOBPORTAL_PLUGIN_URL) . 'includes/images/email.png" alt="'.esc_attr(__('Email','wp-job-portal')).'" title="'.esc_attr(__('Email','wp-job-portal')).'" />' . wpjobportal::$_data[0]['personal_section']->email_address . '</div>';
}
if (isset(wpjobportal::$_data[2][1]['salaryfixed'])) {
@@ -613,7 +597,7 @@
if(isset(wpjobportal::$_data[0]) && !empty(wpjobportal::$_data[0]['personal_section']->address)){
$wpjobportal_address = isset(wpjobportal::$_data[0]['address_section'][0]) ? wpjobportal::$_data[0]['address_section'][0]->address : '';
$wpjobportal_country = isset(wpjobportal::$_data[0]['address_section'][0]) ? wpjobportal::$_data[0]['address_section'][0]->countryname : '';
- $wpjobportal_html .= '<div class="wjportal-resume-info"><img src="' . esc_url(WPJOBPORTAL_PLUGIN_URL) . 'includes/images/location.png" alt="'.esc_attr(__('location','wp-job-portal')).'" title="'.esc_attr(__('location','wp-job-portal')).'"/>' . $wpjobportal_address.','.$wpjobportal_country . '</div>';
+ $wpjobportal_html .= '<div class="wjportal-resume-info"><img src="' . esc_url(WPJOBPORTAL_PLUGIN_URL) . 'includes/images/location.png" alt="'.esc_attr(__('Location','wp-job-portal')).'" title="'.esc_attr(__('Location','wp-job-portal')).'"/>' . $wpjobportal_address.','.$wpjobportal_country . '</div>';
}
}
@@ -730,7 +714,7 @@
}
if (wpjobportal::$wpjobportal_data['resumecontactdetail'] == true || $a