Beispiel #1
0
 public function job_bm_settings_options($options = array())
 {
     $class_job_bm_functions = new class_job_bm_functions();
     $job_bm_list_user_role = $class_job_bm_functions->job_bm_list_user_role();
     $options['Options'] = array('job_bm_list_per_page' => array('css_class' => 'list_per_page', 'title' => 'List Per Page', 'option_details' => 'List Per Page', 'input_type' => 'text', 'input_values' => '20'), 'job_bm_listing_duration' => array('css_class' => 'listing_duration', 'title' => 'Listing Duration', 'option_details' => 'Listing Duration', 'input_type' => 'text', 'input_values' => '30'));
     $options['Job Post'] = array('job_bm_account_required' => array('css_class' => 'account_required', 'title' => 'Account Required ?', 'option_details' => 'Account Required', 'input_type' => 'checkbox', 'input_values' => array(), 'input_args' => array('yes' => 'Yes')), 'job_bm_employer_account_role' => array('css_class' => 'employer_account_role', 'title' => 'Employer Account Role ?', 'option_details' => 'Employer Account Role', 'input_type' => 'select', 'input_values' => array('employer' => 'Employer'), 'input_args' => $job_bm_list_user_role), 'job_bm_applicant_account_role' => array('css_class' => 'applicant_account_role', 'title' => 'Applicant Account Role ?', 'option_details' => 'Applicant Account Role', 'input_type' => 'select', 'input_values' => array('applicant' => 'applicant'), 'input_args' => $job_bm_list_user_role), 'job_bm_salary_currency' => array('css_class' => 'salary_currency', 'title' => 'Salary currency ?', 'option_details' => 'Salary currency', 'input_type' => 'text', 'input_values' => '$'));
     $options['Style'] = array('job_bm_featured_bg_color' => array('css_class' => 'featured_bg_color', 'title' => 'Featured Job Background Color ?', 'option_details' => 'Featured Job Background Color', 'input_type' => 'text', 'input_values' => '#fff8bf'), 'job_bm_job_type_bg_color' => array('css_class' => 'job_type_bg_color', 'title' => 'Job Type Background Color ?', 'option_details' => 'Job Type Background Color', 'input_type' => 'text-multi', 'input_values' => '', 'input_args' => apply_filters('job_bm_filters_job_type_bg_color', array('freelance' => '#46a6ff', 'full-time' => '#2ec274', 'internship' => '#a066ff', 'part-time' => '#ffc24d', 'temporary' => '#ff5741'))), 'job_bm_job_status_bg_color' => array('css_class' => 'job_status_bg_color', 'title' => 'Job Status Background Color ?', 'option_details' => 'Job Status Background Color', 'input_type' => 'text-multi', 'input_values' => '', 'input_args' => apply_filters('job_bm_filters_job_status_bg_color', array('open' => '#3ac170', 'closed' => '#fa3218', 'filled' => '#49a2ed', 're-open' => '#2fc2f9'))));
     $options = apply_filters('job_bm_settings_options', $options);
     return $options;
 }
 public function job_bm_client_job_list($atts, $content = null)
 {
     $atts = shortcode_atts(array('themes' => 'flat'), $atts);
     $job_bm_client_job_list_themes = $atts['themes'];
     $html = '';
     $class_job_bm_functions = new class_job_bm_functions();
     $job_bm_client_job_list_themes_dir = $class_job_bm_functions->job_bm_client_job_list_themes_dir();
     $job_bm_client_job_list_themes_url = $class_job_bm_functions->job_bm_client_job_list_themes_url();
     //var_dump($job_bm_jobsingle_themes_url);
     $html .= '<link  type="text/css" media="all" rel="stylesheet"  href="' . $job_bm_client_job_list_themes_url[$job_bm_client_job_list_themes] . '/style.css" >';
     include $job_bm_client_job_list_themes_dir[$job_bm_client_job_list_themes] . '/index.php';
     return $html;
 }
 public function job_bm_settings_options($options = array())
 {
     $class_job_bm_functions = new class_job_bm_functions();
     $job_bm_list_user_role = $class_job_bm_functions->job_bm_list_user_role();
     $options['Options'] = array('job_bm_list_per_page' => array('css_class' => 'list_per_page', 'title' => 'List Per Page', 'option_details' => 'List Per Page', 'input_type' => 'text', 'input_values' => '20'));
     $options['Pages'] = array('job_bm_archive_page_id' => array('css_class' => 'archive_page_id', 'title' => 'Archive Page', 'option_details' => 'Archive Page(Job list page where placed the short-code [job_list])', 'input_type' => 'select', 'input_values' => '', 'input_args' => job_bm_page_list_id()), 'job_bm_job_submit_page_id' => array('css_class' => 'job_submit_page_id', 'title' => 'Job Submit Page', 'option_details' => 'Job Submission Page', 'input_type' => 'select', 'input_values' => '', 'input_args' => job_bm_page_list_id()));
     $options['Job Post'] = array('job_bm_reCAPTCHA_site_key' => array('css_class' => 'reCAPTCHA_site_key', 'title' => 'reCAPTCHA site key', 'option_details' => 'reCAPTCHA site key, please go <a href="https://www.google.com/recaptcha">google.com/reCAPTCHA</a> and register your site to get site key.', 'input_type' => 'text', 'input_values' => ''), 'job_bm_reCAPTCHA_secret_key' => array('css_class' => 'reCAPTCHA_secret_key', 'title' => 'reCAPTCHA secret key', 'option_details' => 'reCAPTCHA site key, please go <a href="https://www.google.com/recaptcha">google.com/reCAPTCHA</a> and register your site to get secret key.', 'input_type' => 'text', 'input_values' => ''), 'job_bm_submitted_job_status' => array('css_class' => 'submitted_job_status', 'title' => 'New Submitted Job Status ?', 'option_details' => 'Submitted Job Status', 'input_type' => 'select', 'input_values' => 'pending', 'input_args' => array('draft' => 'Draft', 'pending' => 'Pending', 'publish' => 'Published', 'private' => 'Private', 'trash' => 'trash')), 'job_bm_salary_currency' => array('css_class' => 'salary_currency', 'title' => 'Salary currency ?', 'option_details' => 'Salary currency', 'input_type' => 'text', 'input_values' => '$'));
     $section_options = array('job_bm_logo_url' => array('css_class' => 'email_logo_url', 'title' => 'Email Logo URL', 'option_details' => 'Email Logo URL', 'input_type' => 'file', 'input_values' => job_bm_plugin_url . 'css/email.png'), 'job_bm_from_email' => array('css_class' => 'from_email', 'title' => 'From Email', 'option_details' => 'From Email Address', 'input_type' => 'text', 'input_values' => ''), 'job_bm_notify_email_job_submit' => array('css_class' => 'notify_email_job_submit', 'title' => 'Notify email new job submit ?', 'option_details' => 'Notify email new job submit', 'input_type' => 'select', 'input_values' => 'yes', 'input_args' => array('yes' => 'Yes', 'no' => 'No')), 'job_bm_notify_email_job_publish' => array('css_class' => 'notify_email_job_publish', 'title' => 'Notify email new job publish ?', 'option_details' => 'Notify email new job publish', 'input_type' => 'select', 'input_values' => 'yes', 'input_args' => array('yes' => 'Yes', 'no' => 'No')));
     $options['Notification'] = apply_filters('job_bm_settings_section_notification', $section_options);
     $options['Style'] = array('job_bm_featured_bg_color' => array('css_class' => 'featured_bg_color', 'title' => 'Featured Job Background Color ?', 'option_details' => 'Featured Job Background Color', 'input_type' => 'text', 'input_values' => '#fff8bf'), 'job_bm_job_type_bg_color' => array('css_class' => 'job_type_bg_color', 'title' => 'Job Type Background Color ?', 'option_details' => 'Job Type Background Color', 'input_type' => 'text-multi', 'input_values' => '', 'input_args' => apply_filters('job_bm_filters_job_type_bg_color', array('freelance' => '#46a6ff', 'full-time' => '#2ec274', 'internship' => '#a066ff', 'part-time' => '#ffc24d', 'temporary' => '#ff5741'))), 'job_bm_job_status_bg_color' => array('css_class' => 'job_status_bg_color', 'title' => 'Job Status Background Color ?', 'option_details' => 'Job Status Background Color', 'input_type' => 'text-multi', 'input_values' => '', 'input_args' => apply_filters('job_bm_filters_job_status_bg_color', array('open' => '#3ac170', 'closed' => '#fa3218', 'filled' => '#49a2ed', 're-open' => '#2fc2f9', 'expired' => '#ff4115'))));
     $options = apply_filters('job_bm_settings_options', $options);
     return $options;
 }
 public function job_bm_job_single_display($atts, $content = null)
 {
     $atts = shortcode_atts(array('job_id' => '', 'themes' => 'flat'), $atts);
     $job_id = $atts['job_id'];
     $job_bm_jobsingle_themes = $atts['themes'];
     $html = '';
     //$job_bm_themes = get_post_meta( $post_id, 'job_bm_themes', true );
     //$job_bm_license_key = get_option('job_bm_license_key');
     /*
     			if(empty($job_bm_license_key))
     				{
     					return '<b>"'.job_bm_plugin_name.'" Error:</b> Please activate your license.';
     				}
     */
     $class_job_bm_functions = new class_job_bm_functions();
     $job_bm_jobsingle_themes_dir = $class_job_bm_functions->job_bm_jobsingle_themes_dir();
     $job_bm_jobsingle_themes_url = $class_job_bm_functions->job_bm_jobsingle_themes_url();
     //var_dump($job_bm_jobsingle_themes_url);
     $html .= '<link  type="text/css" media="all" rel="stylesheet"  href="' . $job_bm_jobsingle_themes_url[$job_bm_jobsingle_themes] . '/style.css" >';
     include $job_bm_jobsingle_themes_dir[$job_bm_jobsingle_themes] . '/index.php';
     return $html;
 }