Esempio n. 1
0
/**
 *  JobBoard Child theme scripts
 *
 * @since 1.0.0
 */
function jobboard_child_scripts()
{
    // Check the homepage active or not, then execute the javascript
    if (is_page_template('page-templates/template-homepage.php')) {
        // jQuery Simple Slider
        wp_enqueue_script('simple-slider', get_template_directory_uri() . '/assets/js/simple-slider.min.js', array('jquery'), '1.0.0', true);
        wp_enqueue_script('simple-slider-init', get_template_directory_uri() . '/assets/js/simple-slider-init.js', array('jquery'), '1.0.0', true);
        wp_enqueue_style('simple-slider', get_template_directory_uri() . '/assets/css/simple-slider.css', '1.0', 'all');
        wp_enqueue_style('simple-slider-volume', get_template_directory_uri() . '/assets/css/simple-slider-volume.css', '1.0', 'all');
        // jQuery Uniform
        wp_enqueue_script('uniform', get_template_directory_uri() . '/assets/js/jquery.uniform.min.js', array('jquery'), '2.1.2', true);
        wp_enqueue_script('uniform-init', get_template_directory_uri() . '/assets/js/jquery.uniform.init.js', array('jquery'), '2.1.2', true);
        wp_enqueue_style('uniform-default', get_template_directory_uri() . '/assets/css/jquery-uniform/default/css/uniform.default.min.css', '2.1.2', 'all');
        $slider_init = true;
        // Homepage Image Slider
        $slider_settings = array('auto_play' => jobboard_option('slider_auto_slide'), 'auto_play_timeout' => jobboard_option('slider_delay'), 'animate_in' => jobboard_option('slider_entrance_animation'), 'animate_out' => jobboard_option('slider_exit_animation'));
        wp_localize_script('theme-js', 'home_slider', $slider_settings);
        wp_localize_script('theme-js', 'slider', array('init' => $slider_init, 'home_init' => $slider_init));
    } else {
        $slider_init = false;
    }
    wp_enqueue_script('jobboard-child', get_stylesheet_directory_uri() . '/js/jobboard-child.js', array(), '1.0.0', true);
}
Esempio n. 2
0
</a>
						</div>
					</div>
					<div class="col-md-6">
						<div class="banner-right">
							<h1><?php 
    echo esc_attr(jobboard_option('post_job_title'));
    ?>
</h1>
							<p><?php 
    echo esc_attr(jobboard_option('post_job_desc'));
    ?>
</p>
							<a href="<?php 
    echo esc_url(jobboard_option('post_job_button_url'));
    ?>
" class="btn btn-default btn-post-job"><?php 
    echo esc_attr(jobboard_option('post_job_button'));
    ?>
</a>
						</div>
					</div>
				</div><!-- /.row -->
			</div><!-- /.banner-caption -->
		</div><!-- /.container -->
	</div><!-- /.banner-wrapper -->
	<?php 
}
//endif;
?>
</div><!-- /#homepage-banner -->
//endif;
?>
		<h1 class="page-title"><?php 
echo esc_attr($page_title);
?>
</h1>
	</div><!-- /.container -->
</div><!-- /#page-title -->
<div id="content">
	<div class="container">
		<div class="row">
			<div class="col-md-8">
				<form method="post" class="frontend-form" action="" id="post-resume" role="form" enctype="multipart/form-data">
					<?php 
$status_message = '';
if ('1' == jobboard_option('auto_publish_resume')) {
    if (isset($_GET['message'])) {
        jobboard_set_post_message(14);
    }
} else {
    if (isset($_GET['message'])) {
        $status_message = $_GET['message'];
    }
    jobboard_set_post_message($status_message);
}
?>

					<div class="form-group">
						<label for="name"><?php 
_e('Resume Title', 'jobboard');
?>
			</div><!-- /.col-sm-6 -->
			<div class="col-sm-6">
				<div class="upload-post-job-wrapper job">
					<h4><?php 
echo esc_attr(jobboard_option('post_2_title'));
?>
</h4>
					<p><?php 
echo esc_attr(jobboard_option('post_2_description'));
?>
</p>
					<a style="<?php 
echo 'background:' . esc_attr(jobboard_option('post_2_button_color')) . '; color:' . esc_attr(jobboard_option('post_2_button_text_color')) . ';';
?>
" href="<?php 
echo esc_url(jobboard_option('post_2_button_url')) ? esc_url(jobboard_option('post_2_button_url')) : '#';
?>
" class="btn btn-upload-post resume">
					<?php 
echo esc_attr(jobboard_option('post_2_button_text'));
if (jobboard_option('post_2_button_icon')) {
    echo '<i class="fa ' . esc_attr(jobboard_option('post_2_button_icon')) . '"></i>';
}
//endif;
?>
					</a>
				</div><!-- /.upload-post-job-wrapper -->
			</div><!-- /.col-sm-6 -->
		</div><!-- /.row -->
	</div><!-- /.container -->
</div><!-- /#upload-post-job -->
Esempio n. 5
0
 */
?>
<div id="companies-listing">
	<div class="container">
		<h1 class="companies-listing-title"><?php 
echo apply_filters('jobboard_companies_listings_title', jobboard_option('company_title'));
?>
</h1>
		<p class="companies-listing-desc">
		<?php 
echo esc_attr(jobboard_option('company_description'));
?>
		</p>
		<div class="companies-listing-wrapper">
		<?php 
$companies = jobboard_option('company_slider');
$slider_id = $companies;
$slides = jobboard_get_slider($slider_id);
if ($slides) {
    foreach ($slides as $slide) {
        $image_url = $slide['slider_item_img'];
        $url = $slide['slider_item_img_url'];
        $size = 'jobboard-companies-listing';
        $attachment_id = jobboard_get_attachment_id_from_url($image_url);
        $image_resized = wp_get_attachment_image_src($attachment_id, $size);
        $image_alt = get_post_meta($attachment_id, '_wp_attachment_image_alt', true);
        echo '<div id="company-' . $attachment_id . '" class="company-item">';
        echo '<a target="_blank" title="' . $image_alt . '" href="' . $url . '" width="' . $image_resized[1] . '" height="' . $image_resized[2] . '">';
        echo '<img src="' . $image_resized[0] . '" width="' . $image_resized[1] . '" height="' . $image_resized[2] . '" alt="' . $image_alt . '" />';
        echo '</a>';
        echo '</div><!-- /.company-item -->';
<?php

/**
 * Template Name: Homepage
 *
 * @since Job Board 1.0.0
 */
get_header();
if (jobboard_option('enable_homepage_slider')) {
    get_template_part('template-parts/homepage', 'slider_alt');
}
get_template_part('template-parts/form', 'job_search_alt');
get_template_part('template-parts/listing', 'job_listing');
if (jobboard_option('enable_job_status')) {
    get_template_part('template-parts/homepage', 'job_stats_alt');
}
if (jobboard_option('enable_job_steps')) {
    get_template_part('template-parts/homepage', 'job_step');
}
if (jobboard_option('enable_testimonial')) {
    get_template_part('template-parts/homepage', 'testimonials_alt');
}
if (jobboard_option('enable_company')) {
    get_template_part('template-parts/homepage', 'company_alt');
}
get_footer('homepage_alt');
Esempio n. 7
0
/**
 * Payment
 */
function jobboard_active_package_html($user_id, $cpt_args)
{
    $cpt = '';
    $package_heading = '';
    if (!empty($cpt_args) && ($cpt_args = array('resume_view'))) {
        if (jobboard_get_user_type($user_id) == 'job_lister') {
            $cpt = '_resume_subscription';
            $package_heading = __('Resume View Packages:', 'jobboard');
        }
    } else {
        if (jobboard_get_user_type($user_id) == 'job_lister') {
            $cpt = '_package_job';
            $package_heading = __('Job Packages:', 'jobboard');
        }
        if (jobboard_get_user_type($user_id) == 'job_seeker') {
            $cpt = '_package_resume';
            $package_heading = __('Resume Packages:', 'jobboard');
        }
    }
    $package_data = jobboard_get_packages_obj($cpt);
    $active_pack = jobboard_get_user_active_package_data($user_id, $cpt);
    $active_pack_id = $active_pack->ID;
    /**
     * Form processing
     */
    if (isset($_POST['update-package-frontend'])) {
        update_user_meta($user_id, 'jobboard_user' . $cpt, $_POST['jobboard_user' . $cpt]);
        wp_redirect(get_permalink());
        exit;
    }
    /**
     * Paypal payment starts
    */
    $action = '';
    if ('1' == jobboard_option('activate_payment')) {
        $action = jobboard_get_payment_mode();
        $custom = $cpt;
        $listener_url = add_query_arg('action', 'payment_success', esc_url(home_url('/')));
        $args = array('action' => 'payment_success', 'do' => 'update_package');
        $return_url = add_query_arg($args, esc_url(jobboard_get_permalink('dashboard')));
        ?>
			<div class="package-tabs">

			<?php 
        /** Tab Menu **/
        echo '<ul>';
        echo '<h4 class="package-heading">' . $package_heading . '</h4>';
        $user_package = jobboard_get_user_package($user_id, $cpt);
        if (!$user_package) {
            echo '<p class="active-note innactive">' . __('You don\'t have an active package. Please, select one of these available packages!', 'jobboard') . '</p>';
        }
        foreach ($package_data as $post) {
            setup_postdata($post);
            $checked = '';
            if ($post->ID == $active_pack_id) {
                $checked = 'checked="checked"';
            }
            $fieldname = 'jobboard_user' . $cpt;
            $package_info = array('ID' => $post->ID, 'name' => $post->post_title, 'price' => get_post_meta($post->ID, '_jboard' . $cpt . '_price', true));
            $active = '';
            if ($post->ID == $active_pack_id) {
                $active = 'class="ui-tabs-active ui-state-active"';
            }
            ?>


				<li <?php 
            echo $active;
            ?>
><a href="#package-<?php 
            echo $package_info['ID'];
            ?>
"><?php 
            echo $package_info['name'];
            ?>
</a></li>


			<?php 
        }
        wp_reset_postdata($post);
        echo '</ul><!-- /.package-menu -->';
        /** Tab Menu Ends **/
        ?>

			<?php 
        /** Tab Content **/
        foreach ($package_data as $post) {
            setup_postdata($post);
            $package_info = array('ID' => $post->ID, 'name' => $post->post_title, 'price' => get_post_meta($post->ID, '_jboard' . $cpt . '_price', true), 'notes' => get_post_meta($post->ID, '_jboard' . $cpt . '_notes', true), 'limit' => get_post_meta($post->ID, '_jboard' . $cpt . '_limit', true));
            // Unlimited is set
            $unlimited = get_post_meta($post->ID, '_jboard' . $cpt . '_is_unlimited', true);
            if ($unlimited == '1') {
                $package_info['limit'] = 'unlimited';
            }
            $button_text = __('Buy Package', 'jobboard');
            if ($cpt_args != '') {
                $subscription_id = get_user_meta($user_id, 'jobboard_user' . $cpt);
                if (empty($subscription_id)) {
                    $subscription_id = null;
                }
                $subscription_limit = get_user_meta($user_id, 'jobboard_user' . $cpt . '_max_entry');
                $disabled_view_pack = 'disabled';
                $active_note = '';
                $active_note_pack = '';
                if (empty($subscription_limit) || jobboard_get_user_view_remaining($user_id, 'resume') == '0') {
                    $disabled_view_pack = '';
                    $active_note_pack = '<span class="active-note innactive">' . __('Status: Innactive', 'jobboard') . '</span>';
                } else {
                    $active_note_pack = '<span class="active-note">' . __('Status: Active', 'jobboard') . '</span>';
                }
            } else {
                $subscription_id = null;
                $subscription_limit = '';
                $is_limit = jobboard_package_is_limit($user_id, $cpt);
                $disabled = 'disabled';
                if ($is_limit) {
                    $disabled = '';
                }
                $active_note = '';
                if ($post->ID == $active_pack_id && !$is_limit) {
                    $active_note = '<span class="active-note">' . __('Status: Active', 'jobboard') . '</span>';
                }
                if ($post->ID == $active_pack_id && $is_limit) {
                    $active_note = '<span class="active-note innactive">' . __('Status: Innactive', 'jobboard') . '</span>';
                    // $disabled = 'disabled';
                }
            }
            ?>


				<div id="package-<?php 
            echo $package_info['ID'];
            ?>
" class="package-details">


					<?php 
            if ((int) $subscription_id[0] == $package_info['ID']) {
                echo $active_note_pack;
            } else {
                echo $active_note;
            }
            ?>


					<div class="package-notes">
						<?php 
            echo $package_info['notes'];
            ?>
					</div><!-- /.package-notes -->

					<!-- Payment form -->

						<form id="paypal_approval" name="paypal_approval" action="<?php 
            echo esc_url($action);
            ?>
" method="POST" class="payment-button">
							<input type="hidden" name="cmd" value="_xclick" />
							<input class="package-price" type="hidden" name="amount" value="<?php 
            echo $package_info['price'];
            ?>
" />
							<input type="hidden" name="business" value="<?php 
            echo jobboard_option('paypal_email');
            ?>
" />
							<input class="package-name" type="hidden" name="item_name" value="<?php 
            echo $package_info['name'];
            ?>
" />
							<input class="package-id" type="hidden" name="item_number" value="<?php 
            echo $package_info['ID'];
            ?>
" />
							<input type="hidden" name="no_shipping" value="1" />
							<input type="hidden" name="no_note" value="1" />
							<input type="hidden" name="currency_code" value="<?php 
            echo jobboard_option('payment_currency');
            ?>
" />
							<input type="hidden" name="charset" value="UTF-8" />
							<input type="hidden" name="custom" value="<?php 
            echo esc_attr($custom . ', ' . $package_info['limit']);
            ?>
" />
							<input type="hidden" name="rm" value="2" />
							<input type="hidden" name="cbt" value="<?php 
            echo sprintf(__('Click here to complete the purchase on %s', 'jobboard'), esc_attr(get_bloginfo('name')));
            ?>
" />
							<input type="hidden" name="return" value="<?php 
            echo esc_url($return_url);
            ?>
" />
							<input type="hidden" name="notify_url" value="<?php 
            echo esc_url($listener_url);
            ?>
" />

							<?php 
            if ($cpt_args != '') {
                ?>

								<button <?php 
                echo $disabled_view_pack;
                ?>
 type="submit" name="paynow" class="btn btn-paypal"><?php 
                echo $button_text;
                ?>
</button>

							<?php 
            } else {
                ?>

							<button <?php 
                echo $disabled;
                ?>
 type="submit" name="paynow" class="btn btn-paypal"><?php 
                echo $button_text;
                ?>
</button>

							<?php 
            }
            ?>

					</form>

					<!-- Payment form ends -->


				</div><!-- /.package-details -->


			<?php 
        }
        /** Tab Content Ends **/
        echo '</div><!-- /.package-tabs -->';
        ?>


<?php 
        /**
         * Paypal payment ends
        */
    }
}
 */
// $error = false;
if (isset($_POST['user_submit'])) {
    $creds = array('username' => $_POST['register_name'], 'email' => $_POST['register_email'], 'password' => $_POST['register_password']);
    $user = wp_create_user($creds['username'], $creds['password'], $creds['email']);
    if (isset($user->errors)) {
        $wp_error = $user;
        $error = true;
        $login_class = 'animated shake';
    } else {
        update_user_meta($user, 'jobboard_user_role', $_POST['register_role']);
        // wp_redirect( get_permalink( jobboard_option( 'login' ) ) ); exit;
    }
}
if (is_user_logged_in()) {
    wp_redirect(get_permalink(jobboard_option('dashboard_page')));
    exit;
}
get_header();
?>

<div id="page-title-wrapper" class="register-page-wrapper">
	<div class="container">
		<h1 class="page-title"><?php 
the_title();
?>
</h1>
		<div class="row">
			<div class="col-md-0" style="display:none;">
				<?php 
if ($error) {
Esempio n. 9
0
 * @package WordPress
 * @subpackage Job_Board
 * @since Job Board 1.0
 *
 */
$widgets = jobboard_option('footer_widget_area');
$limit = 1;
$col_width = '';
if ($widgets != '0') {
    ?>
<div class="container">
	<div id="footer-widgets">
		<div class="row">
		<?php 
    while ($limit <= $widgets) {
        $col_width = jobboard_option('footer_column_width_' . $limit);
        ?>
			<div class="col-md-<?php 
        echo $col_width;
        ?>
 widget-container">
			<?php 
        if (is_active_sidebar('footer_sidebar_' . $limit)) {
            dynamic_sidebar('footer_sidebar_' . $limit);
        }
        //endif;
        ?>
			</div><!-- /.col-md-<?php 
        echo $col_width;
        ?>
 -->
Esempio n. 10
0
 function jobboard_get_payment_mode()
 {
     $sanboxmode = jobboard_option('payment_sandbox_mode') ? jobboard_option('payment_sandbox_mode') : '';
     if ($sanboxmode == '1') {
         $action = 'https://www.sandbox.paypal.com/cgi-bin/webscr';
     } else {
         $action = 'https://www.paypal.com/cgi-bin/webscr';
     }
     return $action;
 }
Esempio n. 11
0
" class="the-job-content">
	<div class="container">
		<article><?php 
    the_content();
    ?>
</article>
	</div>
</div><!-- /.the-job-content -->

<?php 
    if (jobboard_option('enable_related_job')) {
        get_template_part('template-parts/job_listing', 'related');
    }
    //endif;
    ?>

<?php 
    if (jobboard_option('enable_upload_job_button')) {
        get_template_part('template-parts/job_detail', 'upload_post');
    }
    //endif;
    ?>

<?php 
    get_template_part('template-parts/modal', 'apply_job');
    ?>

<?php 
}
//endwhile;
get_footer();
Esempio n. 12
0
?>
>

	<div id="wrapper">
		<header id="header">
		<?php 
if (jobboard_option('enable_admin_menu') || jobboard_option('enable_social_media_url')) {
    get_template_part('template-parts/header', 'bar');
}
//endif;
?>
			<div class="container">
				<div class="row">
					<div class="col-md-3">
					<?php 
$custom_logo = jobboard_option('custom_header_logo');
$logo = '';
if (empty($custom_logo)) {
    $logo = 'custom-logo-inactive';
}
?>
						<div class="logo-wrapper <?php 
echo esc_attr($logo);
?>
">
							<a href="<?php 
echo esc_url(home_url());
?>
" class="header-logo" title="<?php 
echo esc_attr(get_bloginfo('name'));
?>
Esempio n. 13
0
 function jobboard_post_company($data = array(), $files = array(), $update = false)
 {
     $message = '3';
     $company_args = array('post_type' => 'company', 'post_title' => $data['company_name'], 'author' => get_current_user_id(), 'post_status' => 'publish');
     if ($update) {
         $company_args['ID'] = $data['post_id'];
         $company_args['post_status'] = get_post_status($data['post_id']);
         $message = '4';
     }
     // Service repeatable meta data
     $company_service = array();
     $i = 0;
     foreach ($data['service_name'] as $service_name) {
         if ($service_name != '') {
             $company_service[] = array('service_icon' => $data['service_icon'][$i], 'service_name' => $service_name, 'service_detail' => $data['service_detail'][$i]);
         }
         $i++;
     }
     // Client repeeatable meta data
     $company_client = array();
     $i = 0;
     foreach ($data['project_name'] as $project_name) {
         if ($project_name != '') {
             $company_client[] = array('project_name' => $project_name, 'project_year' => $data['project_year'][$i], 'project_url' => $data['project_url'][$i], 'project_detail' => $data['project_detail'][$i]);
         }
         $i++;
     }
     // sinii starts
     $meta_input = array('company_description' => $data['company_description'], 'company_overview' => $data['company_overview'], 'company_web_address' => $data['company_website'], 'company_social_facebook' => $data['company_facebook'], 'company_social_twitter' => $data['company_twitter'], 'company_social_googleplus' => $data['company_google_plus'], 'company_expertises_headline' => $data['company_expertises_headline'], 'hidden_expertises' => $data['company_expertises'], 'company_expertises' => $expertise_array, 'cp_ldin_address' => $data['cp_ldin_address'], 'cp_ldin_user' => $data['cp_ldin_user'], 'cp_person' => $data['cp_person'], 'cp_person_title' => $data['cp_person_title'], 'cp_email' => $data['cp_email'], 'cp_phone' => $data['cp_phone'], 'company_service_group_container' => array('company_service_group' => $company_service));
     $company_service_group = array('_jboard_company_service_group' => $company_service);
     $company_client_group = array('_jboard_company_client_group' => $company_client);
     // sinii ends
     $comp_id = wp_insert_post($company_args);
     if ($comp_id) {
         // Company Description Metabox
         update_post_meta($comp_id, '_jboard_company_description', $data['company_description']);
         // Company Overview Metabox
         update_post_meta($comp_id, '_jboard_company_overview', $data['company_overview']);
         // Company Website URL
         update_post_meta($comp_id, '_jboard_company_web_address', $data['company_website']);
         // Company Facebook URL
         update_post_meta($comp_id, '_jboard_company_social_facebook', $data['company_facebook']);
         // Company Twitter URL
         update_post_meta($comp_id, '_jboard_company_social_twitter', $data['company_twitter']);
         // Company Google Plus
         update_post_meta($comp_id, '_jboard_company_social_googleplus', $data['company_google_plus']);
         // Company Contact Person
         update_post_meta($comp_id, 'cp_ldin_address', $data['cp_ldin_address']);
         update_post_meta($comp_id, 'cp_ldin_user', $data['cp_ldin_user']);
         update_post_meta($comp_id, 'cp_person', $data['cp_person']);
         update_post_meta($comp_id, 'cp_person_title', $data['cp_person_title']);
         update_post_meta($comp_id, 'cp_email', $data['cp_email']);
         update_post_meta($comp_id, 'cp_phone', $data['cp_phone']);
         // Company Expertises
         update_post_meta($comp_id, '_jboard_hidden_expertises', $data['company_expertises']);
         // Company Service
         update_post_meta($comp_id, '_jboard_company_service_headline', $data['company_service_headline']);
         update_post_meta($comp_id, '_jboard_company_service_group_container', $company_service_group);
         // Company Client
         update_post_meta($comp_id, '_jboard_company_client_headline', $data['company_client_headline']);
         update_post_meta($comp_id, '_jboard_company_client_group_container', $company_client_group);
         // Expertises
         update_post_meta($comp_id, '_jboard_company_expertises_headline', $data['company_expertises_headline']);
         /**
          * Multiple select company expertises
          */
         $expertise_array = explode(',', $data['company_expertises']);
         update_post_meta($comp_id, '_jboard_company_expertises', $expertise_array);
         // Testimonial
         update_post_meta($comp_id, '_jboard_company_testimonial_headline', $data['company_testimonial_headline']);
         update_post_meta($comp_id, '_jboard_company_testimonial_content', $data['testimonial_content']);
         update_post_meta($comp_id, '_jboard_company_testimonial_author', $data['testimonial_author']);
         update_post_meta($comp_id, '_jboard_company_testimonial_author_occupation', $data['testimonial_author_occupation']);
         update_post_meta($comp_id, '_jboard_company_testimonial_author_url', $data['testimonial_author_url']);
         // Testimonial author avatar
         // Upload  Company Image
         if (!empty($files['testimonial_author_avatar']['name'])) {
             $attach_id = jobboard_file_upload($files['testimonial_author_avatar'], 'image', $comp_id);
             if ($attach_id) {
                 update_post_meta($comp_id, '_author_avatar_id_hidden', $attach_id);
                 $attachment_url = wp_get_attachment_url($attach_id);
                 update_post_meta($comp_id, '_jboard_company_testimonial_author_avatar', $attachment_url);
             }
         }
         $company_meta = array('_jboard_company_description', '_jboard_company_overview', '_jboard_company_web_address', '_jboard_company_social_facebook', '_jboard_company_social_twitter', '_jboard_company_social_googleplus');
         update_post_meta($comp_id, 'jobboard_company_mb_fields', $company_meta);
         /*
         $old_post_meta = get_post_meta( $comp_id, 'jobboard_company_mb_fields', true );
         update_post_meta( $comp_id, 'jobboard_company_mb_fields', $meta_input, $old_post_meta );
         */
         // Upload  Company Image
         if (!empty($files['company_image']['name'])) {
             $attach_id = jobboard_file_upload($files['company_image'], 'image', $comp_id);
             if ($attach_id) {
                 if (has_post_thumbnail($comp_id)) {
                     delete_post_thumbnail($comp_id);
                 }
                 set_post_thumbnail($comp_id, $attach_id);
             }
         }
         // Portfolio repeatable meta data
         $multiple_images = $_FILES['portfolio_image'];
         $n = 0;
         $single_img_group = array();
         foreach ($multiple_images as $key => $val_array) {
             $single_img_group[] = array('name' => $multiple_images['name'][$n], 'type' => $multiple_images['type'][$n], 'tmp_name' => $multiple_images['tmp_name'][$n], 'error' => $multiple_images['error'][$n], 'size' => $multiple_images['size'][$n]);
             $n++;
         }
         $portfolio_attachments = array();
         foreach ($single_img_group as $single_img) {
             // Push upload here
             if ($single_img['name'] != '' || $single_img['name'] != NULL) {
                 // Push upload
                 $attach_id = jobboard_file_upload($single_img, 'image', $comp_id);
                 $portfolio_attachments[] = $attach_id;
             }
         }
         // Service repeatable meta data
         $company_portfolio = array();
         $i = 0;
         foreach ($portfolio_attachments as $portfolio_attachment) {
             if ($portfolio_attachment != '') {
                 $stored_id = $data['portfolio_stored_image_id'][$i] ? $data['portfolio_stored_image_id'][$i] : $portfolio_attachment;
                 $company_portfolio[] = array('portfolio_image' => $portfolio_attachment, 'portfolio_url' => $data['portfolio_url'][$i]);
             }
             $i++;
         }
         $company_portfolio_group = array('_jboard_company_portfolio_group' => $company_portfolio);
         // Update portfolio meta
         update_post_meta($comp_id, '_jboard_company_portfolio_headline', $data['company_portfolio_headline']);
         update_post_meta($comp_id, '_jboard_company_portfolio_group_container', $company_portfolio_group);
         // stored images
         update_post_meta($comp_id, '_jboard_company_portfolio_stored_img', $data['portfolio_stored_image_id']);
         // stored urls
         update_post_meta($comp_id, '_jboard_company_portfolio_stored_url', $data['portfolio_url2']);
         // Company address
         update_post_meta($comp_id, '_jboard_company_address_gmap_latitude', $data['gmap_latitude']);
         update_post_meta($comp_id, '_jboard_company_address_gmap_longitude', $data['gmap_longitude']);
         update_post_meta($comp_id, '_jboard_company_address', $data['company_address']);
         update_post_meta($comp_id, '_jboard_company_phone', $data['company_phone']);
         update_post_meta($comp_id, '_jboard_company_email', $data['company_email']);
         //wp_redirect( esc_url( add_query_arg( array( 'action' => 'edit', 'jid' => $comp_id, 'message' => $message ) ) ) );
         $acc_page = jobboard_option('dashboard_page');
         wp_redirect(esc_url(get_permalink($acc_page)));
         exit;
     }
     //endif;
 }
echo __('Enter Keywords', 'jobboard');
?>
" />
            </div><!-- /.form-group -->
          </div><!-- /.col-md-6 -->

          <div class="col-md-6">
            <div class="form-group">


              <?php 
$typed_location = isset($_GET['resume_search_location']) ? $_GET['resume_search_location'] : '';
?>

						<?php 
if (jobboard_option('resume_location_input_type') == 'input_text') {
    ?>

						<label for="resume_search_location"><?php 
    _e('Location', 'jobboard');
    ?>
</label>
						<input type="text" id="resume_search_location" name="resume_search_location" class="form-control" value="<?php 
    echo $typed_location;
    ?>
" placeholder="<?php 
    echo __('Any Location', 'jobboard');
    ?>
" />

						<?php 
Esempio n. 15
0
    echo '</div>';
}
?>


		<div class="row">
			<div class="col-md-5">
				<?php 
if (isset($_POST['action']) && $_POST['action'] == 'jobboard_proccess_login_form') {
    if ($error) {
        echo '<div id="login-error-box" class="alert alert-danger">';
        $errors = '';
        $messages = '';
        foreach ($wp_error->get_error_codes() as $code) {
            $error_str = '<strong>' . __('ERROR', 'jobboard') . '</strong>: ';
            $lost_password_url = get_permalink(jobboard_option('login')) . '?mode="lost-password"';
            $lost_password_str = '<a href="' . esc_url($lost_password_url) . '" title="' . __('Password Lost and Found', 'jobboard') . '"> ' . __('Lost your password', 'jobboard') . '</a>?<br />';
            if ($code == 'empty_password') {
                echo apply_filters('jobboard_empty_password_msg', $error_str . __('The password field is empty.', 'jobboard'));
            } elseif ($code == 'invalid_username') {
                echo apply_filters('jobboard_invalid_username_msg', $error_str . __('Invalid username.', 'jobboard'));
            } elseif ($code == 'incorrect_password') {
                echo apply_filters('jobboard_incorrect_password_msg', $error_str . __('The password you entered for the username <strong>' . $_POST['user_login'] . '</strong> is incorrect.', 'jobboard') . $lost_password_str);
            }
        }
        echo '</div><!-- /#login-error-box -->';
    }
    // $error ends
}
if ($not_match_password_msg != '') {
    echo '<div id="login-error-box" class="alert alert-danger">';
<?php

/**
 * Template Part Name : Footer Contact Query
 *
 * @package WordPress
 * @subpackage Job_Board
 * @since Job Board 1.0
 *
 */
?>
<div id="footer-query">
	<div class="container">
		<h2><?php 
echo apply_filters('jobboard_footer_contact_title', jobboard_option('footer_contact_title'));
?>
</h2>
		<p>
		<?php 
echo esc_attr(jobboard_option('footer_contact_description'));
?>
		</p>
		<div class="footer-query-contact">
		<?php 
echo esc_attr(jobboard_option('footer_contact_number'));
?>
		</div><!-- /.footer-query-contact -->
	</div><!-- /.container -->
</div><!-- /#footer-query -->
Esempio n. 17
0
    ?>
</label>
						<select class="init-slider" name="sallary_min" id="sallary_min">
							<?php 
    $new_structure = array();
    $exp = explode("\n", jobboard_option('salary_parameters'));
    foreach ($exp as $child) {
        $numbers = explode(';', $child);
        echo '<option value="' . esc_attr($numbers[0]) . '">' . esc_attr($numbers[1]) . '</option>';
    }
    ?>
						</select>
						<select class="init-slider" name="sallary_max" id="sallary_max">
							<?php 
    $new_structure = array();
    $exp = explode("\n", jobboard_option('salary_parameters'));
    foreach ($exp as $child) {
        $numbers = explode(';', $child);
        echo '<option value="' . esc_attr($numbers[0]) . '">' . esc_attr($numbers[1]) . '</option>';
    }
    ?>
						</select>
				</div>


				</div><!-- /#advance-search-option -->
				<!-- Andvance Search Ends -->

				<?php 
}
// Advanced Search ends
Esempio n. 18
0
 * @package WordPress
 * @subpackage Job_Board
 * @since Job Board 1.0
 *
 */
?>

<div id="job-stats">
	<div class="container">
		<h1 class="job-stats-title"><?php 
echo apply_filters('jobboard_job_stats_title', jobboard_option('job_status_title'));
?>
</h1>
		<p class="job-stats-desc">
			<?php 
echo esc_attr(jobboard_option('job_status_description'));
?>
		</p>
		<div class="job-stats-wrapper row">
			<div class="col-lg-2 col-lg-offset-2 col-sm-3">
				<div class="count-box">
				<?php 
$job['jobs'] = wp_count_posts('job');
echo $job['jobs']->publish;
?>
				</div><!-- /.count-box -->
				<div class="count-text">
				<?php 
echo apply_filters('jobboard_job_posted_text', _n('Job Posted', 'Jobs Posted', $job['jobs']->publish, 'jobboard'));
?>
				</div><!-- /.count-text -->
Esempio n. 19
0
?>
" /></div><!-- /.step-image -->
				<h3 class="step-title"><?php 
echo apply_filters('jobboard_step_title_three', jobboard_option('step_3_title'));
?>
</h3>
			</div><!-- /.col-sm-3 -->
			
			<div class="col-sm-3">
				<div class="step-number"><?php 
echo apply_filters('jobboard_step_number_four', jobboard_option('step_4_label'));
?>
</div>
				<div class="step-image step-last"><img src="<?php 
echo esc_url(jobboard_option('step_4_image'));
?>
" alt="<?php 
echo esc_attr(jobboard_option('step_1_label'));
?>
" title="<?php 
echo esc_attr(jobboard_option('step_4_title'));
?>
" /></div><!-- /.step-image -->
				<h3 class="step-title"><?php 
echo apply_filters('jobboard_step_title_four', jobboard_option('step_4_title'));
?>
</h3>
			</div><!-- /.col-sm-3 -->
		</div><!-- /.job-step-wrapper -->
	</div><!-- /.container -->
</div><!-- /#job-step -->
Esempio n. 20
0
				<label for="contact_message"><?php 
_e('Message', 'jobboard');
?>
</label>
				<textarea name="contact_message" rows="7" class="form-control" required="required" ></textarea>
			</div><!-- /.form-group -->
			<input type="hidden" name="action" value="jobboard_send_contact_form" />
			<button type="submit" name="contact_submit" value="1" class="btn btn-send-contact-form" data-loading-text="<?php 
_e('Sending...', 'jobboard');
?>
"><?php 
_e('Send', 'jobboard');
?>
</button>
			<div class="contact-form-status alert alert-success alert-dismissable" role="alert">
				<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true"><i class="fa fa-times"></i></span><span class="sr-only"><?php 
_e('Close', 'jobboard');
?>
</span></button>
				<?php 
_e('<strong>Thank you!</strong> Your message was sent successfully', 'jobboard');
?>
			</div>
		</form>
	</div><!-- /.container -->
</div><!-- /#content -->
<?php 
$latitude = jobboard_option('gmap_latitude');
$longitude = jobboard_option('gmap_longitude');
jobboard_create_gmaps('jobboard-gmaps', $latitude, $longitude);
get_footer();
 * @subpackage Job_Board
 * @since Job Board 1.0
 *
 */
?>

<div id="testimonials">
	<div class="container">
		<h1 class="testimonials-title">
		<?php 
echo apply_filters('jobboard_testimonials_title', jobboard_option('testimonial_title'));
?>
		</h1>
		<p class="testimonials-desc">
		<?php 
echo esc_attr(jobboard_option('testimonial_description'));
?>
		</p>
	</div><!-- /.container -->
	<div id="testimonials-wrapper">
	<?php 
$args = array('post_type' => 'testimonial', 'posts_per_page' => -1);
$testimonials = get_posts($args);
if ($testimonials) {
    foreach ($testimonials as $post) {
        setup_postdata($post);
        ?>
			<div data-hash="<?php 
        echo $post->ID;
        ?>
" id="testimonial-<?php 
						<input type="hidden" name="business" value="<?php 
            echo jobboard_option('paypal_email');
            ?>
" />
						<input type="hidden" name="item_name" value="<?php 
            echo __('Feature Job - ', 'jobboard') . esc_attr(get_the_title());
            ?>
" />
						<input type="hidden" name="item_number" value="<?php 
            echo esc_attr(get_the_id());
            ?>
" />
						<input type="hidden" name="no_shipping" value="1" />
						<input type="hidden" name="no_note" value="1" />
						<input type="hidden" name="currency_code" value="<?php 
            echo jobboard_option('payment_currency');
            ?>
" />
						<input type="hidden" name="charset" value="UTF-8" />
						<input type="hidden" name="custom" value="<?php 
            echo esc_attr($custom);
            ?>
" />
						<input type="hidden" name="rm" value="2" />
						<input type="hidden" name="cbt" value="<?php 
            echo sprintf(__('Click here to complete the purchase on %s', 'jobboard'), esc_attr(get_bloginfo('name')));
            ?>
" />
						<input type="hidden" name="return" value="<?php 
            echo esc_url($return_url);
            ?>
Esempio n. 23
0
 function jobboard_enqueue_scripts()
 {
     // Default theme fonts
     wp_enqueue_style('nunito-font', 'http://fonts.googleapis.com/css?family=Nunito:400,300,700');
     /* Development purpose only */
     wp_enqueue_style('company', get_template_directory_uri() . '/assets/css/company.css', array(), null, 'screen');
     // Animate CSS
     wp_enqueue_style('animate', get_template_directory_uri() . '/assets/css/animate.css', array(), '3.2.0', 'screen');
     // Add Boostrap framework scripts
     wp_enqueue_style('bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.min.css', array(), '3.2.0', 'all');
     wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/assets/js/bootstrap.min.js', array('jquery'), '3.2.0', true);
     // Add Font Awesome script
     wp_enqueue_style('font-awesome', get_template_directory_uri() . '/assets/css/font-awesome.min.css', array(), '4.1.0', 'all');
     // Test Load Jquery UI slider
     wp_enqueue_script('jquery-select-to', get_template_directory_uri() . '/assets/js/jquery.select-to-ui-slider.js', array('jquery', 'jquery-ui-slider'), '', true);
     wp_enqueue_style('select-to', get_template_directory_uri() . '/assets/css/jquery-ui-1.7.1.custom.css');
     wp_enqueue_style('select-to-extras', get_template_directory_uri() . '/assets/css/ui.slider.extras.css');
     // Load owl carousel
     wp_enqueue_script('owl-carousel-js', get_template_directory_uri() . '/assets/js/owl.carousel.min.js', array('jquery'), '2.0', true);
     wp_enqueue_style('owl-carousel', get_template_directory_uri() . '/assets/css/owl.carousel.css', array(), '2.0', 'screen');
     wp_enqueue_style('owl-carousel-theme', get_template_directory_uri() . '/assets/css/owl.theme.default.min.css', array(), '2.0', 'screen');
     // Javascript Image Liquid
     wp_enqueue_script('image-liquid-js', get_template_directory_uri() . '/assets/js/image-liquid.min.js', array(), '0.9.944', true);
     // Load theme custom shortcodes stylesheet
     wp_enqueue_style('shortcode', get_template_directory_uri() . '/assets/css/shortcodes.css', array(), '1.0', 'all');
     // Load default theme stylesheet
     wp_enqueue_style('default', get_stylesheet_uri(), array(), '1.0', 'all');
     wp_enqueue_style('default-responsive', get_template_directory_uri() . '/style-responsive.css', '1.0', 'all');
     // Load script on resume listing page only
     if (is_page_template('page-templates/template-resume_listing.php')) {
         // jQuery Simple Slider
         wp_enqueue_script('simple-slider', get_template_directory_uri() . '/assets/js/simple-slider.min.js', array('jquery'), '1.0.0', true);
         wp_enqueue_script('simple-slider-init', get_template_directory_uri() . '/assets/js/simple-slider-init.js', array('jquery'), '1.0.0', true);
         wp_enqueue_style('simple-slider', get_template_directory_uri() . '/assets/css/simple-slider.css', '1.0', 'all');
         wp_enqueue_style('simple-slider-volume', get_template_directory_uri() . '/assets/css/simple-slider-volume.css', '1.0', 'all');
         // jQuery Uniform
         wp_enqueue_script('uniform', get_template_directory_uri() . '/assets/js/jquery.uniform.min.js', array('jquery'), '2.1.2', true);
         wp_enqueue_script('uniform-init', get_template_directory_uri() . '/assets/js/jquery.uniform.init.js', array('jquery'), '2.1.2', true);
         wp_enqueue_style('uniform-default', get_template_directory_uri() . '/assets/css/jquery-uniform/default/css/uniform.default.min.css', '2.1.2', 'all');
     }
     wp_enqueue_script('minimalect-js', get_template_directory_uri() . '/assets/js/jquery.minimalect.min.js', array('jquery'), null, true);
     wp_enqueue_style('minimalect-css', get_template_directory_uri() . '/assets/css/jquery.minimalect.css', null, 'all');
     // Load default theme javascript
     wp_enqueue_script('theme-js', get_template_directory_uri() . '/assets/js/theme-script.js', array('jquery', 'jquery-ui-tabs', 'jquery-effects-core', 'jquery-effects-fade'), '1.0', true);
     // Load advance-search.js
     if ('1' == jobboard_option('enable_advance_search')) {
         wp_enqueue_script('advance-search-js', get_template_directory_uri() . '/assets/js/advance-search.js', array('jquery', 'jquery-ui-tabs', 'jquery-effects-core', 'jquery-effects-fade'), '1.0', true);
     }
     // Check the homepage active or not, then execute the javascript
     if (is_page_template('page-templates/template-homepage.php') || is_page_template('page-templates/template-job_listing.php') || is_page_template('page-templates/template-job_search.php')) {
         $slider_init = true;
         // Homepage Image Slider
         $slider_settings = array('auto_play' => jobboard_option('slider_auto_slide'), 'auto_play_timeout' => jobboard_option('slider_delay'), 'animate_in' => jobboard_option('slider_entrance_animation'), 'animate_out' => jobboard_option('slider_exit_animation'));
         wp_localize_script('theme-js', 'home_slider', $slider_settings);
     } else {
         $slider_init = false;
     }
     // Check if comments are open then enqueue 'comment-reply.js'
     if (is_singular() && comments_open() && get_option('thread_comments')) {
         wp_enqueue_script('comment-reply');
     }
     wp_localize_script('theme-js', 'slider', array('init' => $slider_init, 'home_init' => $slider_init));
     wp_enqueue_script('jquery-form');
 }
		<nav id="footer-navigation" class="footer-navigation" role="navigation">
			<?php 
    wp_nav_menu(array('theme_location' => 'secondary', 'menu_id' => 'footer-menu', 'depth' => 1));
    ?>
		</nav><!-- #footer-navigation -->

		<?php 
}
?>

		<footer id="footer">
			<?php 
get_sidebar('footer');
?>
			<div id="footer-text" class="container">
			<?php 
if (jobboard_option('enable_custom_footer')) {
    echo jobboard_option('custom_footer_text');
} else {
    echo esc_html('2014 &copy; Minimal Themes, All Rights Reserved', 'jobboard');
}
?>
			</div><!-- /#footer-text -->
		</footer><!-- /#footer -->
	</div><!-- /#wrapper -->
	<?php 
wp_footer();
?>
</body>
</html>
Esempio n. 25
0
						<li><a href="' . esc_url(jobboard_option('social_' . $item)) . '"><i class="fa fa-' . esc_attr($item) . '"></i></a></li>

					';
    }
    //endforeach;
}
//endif;
?>
	

		</ul><!-- /.social-media -->
        
        

		<?php 
if (jobboard_option('enable_admin_menu')) {
    ?>

			<div class="jobboard-login-register clearfix">

		<?php 
    if (is_user_logged_in()) {
        ?>

			<div class="user_menu dropdown">

			<?php 
        echo '<a data-toggle="dropdown" href="#">';
        echo get_avatar(get_current_user_id(), 35) . '<span>' . __('hi, ', 'jobboard') . esc_attr(get_userdata(get_current_user_id())->display_name) . '</span>';
        echo '<i class="fa fa-caret-down"></i></a>';
        ?>
Esempio n. 26
0
	</div>
</div>

<?php 
if (jobboard_option('enable_job_steps')) {
    get_template_part('template-parts/homepage', 'job_step');
}
//endif;
?>

<?php 
if (jobboard_option('enable_company')) {
    get_template_part('template-parts/homepage', 'company');
}
//endif;
?>


<?php 
if (jobboard_option('enable_testimonial')) {
    get_template_part('template-parts/homepage', 'testimonials');
}
//endif;
?>





<?php 
get_footer();
<?php

/**
 * Template Part Name : Homepage Slider
 *
 * @package WordPress
 * @subpackage Job_Board
 * @since Job Board 1.0
 *
 */
?>
<div id="homepage-banner" class="hidden-xs">
	<div id="slider-wrapper">
	<?php 
$slider_id = jobboard_option('select_slider');
$mb_args = array('type' => 'image');
$slider_item = rwmb_meta('jobboard_slider_images', $mb_args, $slider_id);
foreach ($slider_item as $item) {
    echo '<div class="slider-item">';
    echo '<img class="homepage-slider-image" src="' . esc_url($item['full_url']) . '" alt="' . esc_attr($item['alt']) . '" title="' . esc_attr($item['title']) . '" />';
    echo '</div><!-- /.slider-item -->';
}
//endforeach;
?>
	</div><!-- /.slider-images-container -->
</div><!-- /#homepage-banner -->