Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/wp-freeio/templates/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
get_header(); ?>
<section id="primary" class="content-area">
<main id="main" class="site-main content" role="main">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post();
global $post;
if ( !WP_Freeio_Employer::check_view_employer_detail() ) {
?>
<div class="restrict-wrapper">
<?php
$restrict_detail = wp_freeio_get_option('employer_restrict_detail', 'all');
switch ($restrict_detail) {
case 'register_user':
?>
<h2 class="restrict-title"><?php echo __( 'The page is restricted only for register user.', 'wp-freeio' ); ?></h2>
<div class="restrict-content"><?php echo __( 'You need login to view this page', 'wp-freeio' ); ?></div>
<?php
break;
case 'only_applicants':
?>
<h2 class="restrict-title"><?php echo __( 'The page is restricted only for freelancers view his applicants.', 'wp-freeio' ); ?></h2>
<?php
break;
case 'register_freelancer':
?>
<h2 class="restrict-title"><?php echo __( 'Please login as freelancer to view employer.', 'wp-freeio' ); ?></h2>
<?php
break;
default:
$content = apply_filters('wp-freeio-restrict-employer-detail-information', '', $post);
echo trim($content);
break;
}
?>
</div><!-- /.alert -->
<?php
} else {
?>
<?php echo WP_Freeio_Template_Loader::get_template_part( 'content-single-employer' ); ?>
<?php
}
endwhile; ?>
<?php the_posts_pagination( array(
'prev_text' => __( 'Previous page', 'wp-freeio' ),
'next_text' => __( 'Next page', 'wp-freeio' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'wp-freeio' ) . ' </span>',
) ); ?>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</main><!-- .site-main -->
</section><!-- .content-area -->
<?php get_footer(); ?>