PluginProbe
JobWP – Job Board Plugin for WordPress | Job Listings, Career Page & Applications / 1.5
JobWP – Job Board Plugin for WordPress | Job Listings, Career Page & Applications v1.5
2.5.0 trunk 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0 2.1 2.2 2.3 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.3.8 2.3.9 2.4.0 All 33 releases
jobwp / core / single-content.php

single-content.php in JobWP – Job Board Plugin for WordPress | Job Listings, Career Page & Applications 1.5, at core/single-content.php

183 lines 6.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit;
4 }
5
6 /**
7 * Trait: Single Content Settings
8 */
9 trait Jobwp_Single_Content_Settings
10 {
11 protected $fields, $settings, $options;
12
13 protected function jobwp_set_single_content_settings( $post ) {
14
15 $this->fields = $this->jobwp_single_content_option_fileds();
16
17 $this->options = $this->jobwp_build_set_settings_options( $this->fields, $post );
18
19 $this->settings = apply_filters( 'jobwp_detail_settings', $this->options, $post );
20
21 return update_option( 'jobwp_detail_settings', serialize( $this->settings ) );
22
23 }
24
25 function jobwp_get_single_content_settings() {
26
27 $this->fields = $this->jobwp_single_content_option_fileds();
28 $this->settings = stripslashes_deep( unserialize( get_option('jobwp_detail_settings') ) );
29
30 return $this->jobwp_build_get_settings_options( $this->fields, $this->settings );
31 }
32
33 protected function jobwp_single_content_option_fileds() {
34
35 return [
36 [
37 'name' => 'jobwp_single_hide_overview',
38 'type' => 'boolean',
39 'default' => false,
40 ],
41 [
42 'name' => 'jobwp_single_overview_text',
43 'type' => 'text',
44 'default' => 'Overview',
45 ],
46 [
47 'name' => 'jobwp_single_hide_vacancies',
48 'type' => 'boolean',
49 'default' => false,
50 ],
51 [
52 'name' => 'jobwp_single_vacancies_text',
53 'type' => 'text',
54 'default' => 'No. of Vacancies',
55 ],
56 [
57 'name' => 'jobwp_single_hide_skills',
58 'type' => 'boolean',
59 'default' => false,
60 ],
61 [
62 'name' => 'jobwp_single_skills_text',
63 'type' => 'text',
64 'default' => 'Specific Skills',
65 ],
66 [
67 'name' => 'jobwp_single_hide_responsible',
68 'type' => 'boolean',
69 'default' => false,
70 ],
71 [
72 'name' => 'jobwp_single_responsible_text',
73 'type' => 'text',
74 'default' => 'Responsible For',
75 ],
76 [
77 'name' => 'jobwp_single_hide_requirements',
78 'type' => 'boolean',
79 'default' => false,
80 ],
81 [
82 'name' => 'jobwp_single_requirements_text',
83 'type' => 'text',
84 'default' => 'Additional Requirements',
85 ],
86 [
87 'name' => 'jobwp_single_hide_job_type',
88 'type' => 'boolean',
89 'default' => false,
90 ],
91 [
92 'name' => 'jobwp_single_job_type_text',
93 'type' => 'text',
94 'default' => 'Job Nature',
95 ],
96 [
97 'name' => 'jobwp_single_hide_education',
98 'type' => 'boolean',
99 'default' => false,
100 ],
101 [
102 'name' => 'jobwp_single_education_text',
103 'type' => 'text',
104 'default' => 'Educational Requirements',
105 ],
106 [
107 'name' => 'jobwp_single_hide_experience',
108 'type' => 'boolean',
109 'default' => false,
110 ],
111 [
112 'name' => 'jobwp_single_experience_text',
113 'type' => 'text',
114 'default' => 'Experience Requirements',
115 ],
116 [
117 'name' => 'jobwp_single_hide_loc',
118 'type' => 'boolean',
119 'default' => false,
120 ],
121 [
122 'name' => 'jobwp_single_loc_text',
123 'type' => 'text',
124 'default' => 'Job Location',
125 ],
126 [
127 'name' => 'jobwp_single_hide_salary',
128 'type' => 'boolean',
129 'default' => false,
130 ],
131 [
132 'name' => 'jobwp_single_salary_text',
133 'type' => 'text',
134 'default' => 'Salary',
135 ],
136 [
137 'name' => 'jobwp_single_hide_benefit',
138 'type' => 'boolean',
139 'default' => false,
140 ],
141 [
142 'name' => 'jobwp_single_benefit_text',
143 'type' => 'text',
144 'default' => 'Other Benefits',
145 ],
146 [
147 'name' => 'jobwp_single_hide_level',
148 'type' => 'boolean',
149 'default' => false,
150 ],
151 [
152 'name' => 'jobwp_single_level_text',
153 'type' => 'text',
154 'default' => 'Job Level',
155 ],
156 [
157 'name' => 'jobwp_hide_apply_procedure',
158 'type' => 'boolean',
159 'default' => false,
160 ],
161 [
162 'name' => 'jobwp_apply_procedure_title',
163 'type' => 'text',
164 'default' => 'How to Apply',
165 ],
166 [
167 'name' => 'jobwp_apply_procedure_content',
168 'type' => 'textarea',
169 'default' => 'Interested candidates can send their resumes to career@your-domain.com mentioning "Job Title" in the subject line.',
170 ],
171 [
172 'name' => 'jobwp_hide_apply_button',
173 'type' => 'boolean',
174 'default' => false,
175 ],
176 [
177 'name' => 'jobwp_apply_button_text',
178 'type' => 'text',
179 'default' => 'Apply Online',
180 ],
181 ];
182 }
183 }