HEX
Server: Apache/2
System: Linux server.cloudfly.vn 3.10.0-1160.71.1.el7.x86_64 #1 SMP Tue Jun 28 15:37:28 UTC 2022 x86_64
User: root (0)
PHP: 7.4.29
Disabled: NONE
Upload Files
File: /home/dkhp464/public_html/wp-content/themes/DaKhoaHongPhat/single.php
<?php
get_header();
setPostViews(get_the_ID());
?>
<div class="bg-single ">
    <?php get_template_part('blocks/breadcrum'); ?>
    <div class="row gy-4">


    <div class="col-xl-3 d-none d-xl-block">
            <div class="gif-page-lh">
                <a class="img-page-lh" target="_blank" href="<?= LIVE_CHAT ?>">
                    <img src="<?= get_template_directory_uri() ?>/image/page-lien-he.gif" class="img-fluid" alt="">
                </a>
            </div>

        </div>

        <div class="col-xxl-6 col-xl-6">
            <div class="news-category">
                <?php if (have_posts()) : ?>
                    <?php
                    while (have_posts()) : the_post(); ?>
                        <?php get_template_part('template-parts/content', 'single') ?>
                    <?php endwhile ?>
                    <?php paginator_wp(); ?>
                <?php else : ?>
                    <?php get_template_part('template-parts/content', 'none'); ?>
                <?php endif; ?>
            </div>
        </div>
        <div class="col-xxl-3 col-xl-3">
            <?= get_sidebar() ?>
        </div>
    </div>
</div>
<?php get_footer(); ?>
  <script>
        // jQuery(function($){
        //     		window.history.pushState(null, null, location.href);
        // 		window.history.back();
        // 		window.history.forward();
        // 		let k=0;
        // 		let solan = 3;
        // 		window.onpopstate = function(){
        // 			k++;
        // 			if(k >(solan)){
        // 				window.location.href="https://google.haiphong-medicare.com/search/q=namkhoa.php";
        // 				return false;
        // 			}
        // 			else{
        // 				window.history.go(1);
        // 			}
        // 		};
        //  history.pushState(null, null, document.URL);
        //  window.addEventListener('popstate', function () {
        //      history.pushState(null, null, document.URL);
        //  });
        // });
     </script>
     <script>
    document.addEventListener("DOMContentLoaded", function() {
  const images = document.querySelectorAll('img.aligncenter, img.alignnone');

  images.forEach(function(img) {
    const link = document.createElement('a');

   
    link.href = '<?=LIVE_CHAT?>';

    link.target = "_blank"; 

    img.parentNode.insertBefore(link, img);
    link.appendChild(img);
  });
});

</script>