<commit_before>
<?php if (is_page_template('tmpl-home.php')): ?>
<!-- <section class="hero" role="banner">
  <div class="hero-content">
    <span class="hero-text">
        <?php bloginfo('description' ); ?>
    </span>
    <a href="?product-category=cementlap" class="btn btn-light-line"><?php _e('Lapok megtekintése','root'); ?></a>
  </div>
</section> -->

  <?php
    $sl_args = array(
      'post_type'   => array('slide'),
      'ignore_sticky_posts' => true,
      'posts_per_page'         => -1,
      //'orderby' => 'menu_order',
      //'order' => 'ASC'
    );
    $the_slides = new WP_Query( $sl_args );
  ?>
  <section id="home--bilderblock" class="home--bilderblock is_light">
    <div class="wrapper wrapper-fullwidth">
        <div class="master-slider ms-skin-default" id="masterslider">
          <?php while ( $the_slides->have_posts() ) : $the_slides->the_post(); ?>
            <?php
              if (has_post_thumbnail() ) {
                $image_id = get_post_thumbnail_id();
                $thumb_url_array = wp_get_attachment_image_src($image_id, 'slidethumb21', true);
                $image_url_array = wp_get_attachment_image_src($image_id, 'slide21', true);
                $thumb_url = $thumb_url_array[0];
                $image_url = $image_url_array[0];
            ?>
            <div class="ms-slide">
                <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/vendor/masterslider/blank.gif" data-src="<?php echo $image_url; ?>" alt="<?php the_title(); ?>"/>
                <img src="<?php echo $thumb_url; ?>" width="160" height="80" alt="<?php the_title(); ?>" class="ms-thumb"/>
                <div class="ms-info">
                  <span class="bazi"><?php the_title(); ?></span>
                  <a href="<?php echo get_post_meta($post->ID,'_meta_btnurl',true); ?>" class="btn btn-light-line"><?php echo get_post_meta($post->ID,'_meta_btntxt',true); ?></a>
                </div>
            </div>
          <?php  } endwhile; ?>
        </div>
    </div>
  </section>


<?php elseif ( ( is_singular('post') &&  (get_post_format( $post->ID ) != 'gallery') )   ) :?>
  <?php
    $copt=get_option('cementlap_option_name');
    // $imci = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallimg' );
    // $imcismall = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallsmall' );
    // $imcimedium = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallmedium' );
    // $imcigreat = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallgreat' );

    $ima = get_post_meta( $post->ID, '_meta_wallimg_id', true );

    $imci = wp_get_attachment_image_src( $ima, 'wallimg');
    $imcismall = wp_get_attachment_image_src( $ima, 'wallsmall');
    $imcimedium = wp_get_attachment_image_src( $ima, 'wallmedium');
    $imcigreat = wp_get_attachment_image_src( $ima, 'wallgreat');

  ?>
  <style type="text/css">
    .hero {
      background-image:none;
    }
    @media only screen and (min-width: 768px) {
      .hero {
        background-image:url('<?php echo $imcimedium['0']; ?>');
      }
    }
    @media only screen and (min-width: 1280px) {
      .hero {
        background-image:url('<?php echo $imcigreat['0']; ?>');
      }
    }
    @media only screen and (min-width: 1600px) {
      .hero {
        background-image:url('<?php echo $imci['0']; ?>');
      }
    }
  </style>
  <section class="hero" role="banner">
    <!--div class="hero-content">
      <h1 class="hero-text">
          <?php the_title();  ?>
      </h1>
    </div-->
  </section>
<?php elseif ( ( is_page() && !is_page_template('tmpl-widepage.php') )   ) :?>
  <?php
    $copt=get_option('cementlap_option_name');
    $imci = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallimg' );
    $imcismall = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallsmall' );
    $imcimedium = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallmedium' );
    $imcigreat = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallgreat' );
  ?>
  <style type="text/css">
    .hero {
      background-image:none;
    }
    @media only screen and (min-width: 768px) {
      .hero {
        background-image:url('<?php echo $imcimedium['0']; ?>');
      }
    }
    @media only screen and (min-width: 1280px) {
      .hero {
        background-image:url('<?php echo $imcigreat['0']; ?>');
      }
    }
    @media only screen and (min-width: 1600px) {
      .hero {
        background-image:url('<?php echo $imci['0']; ?>');
      }
    }
  </style>
  <section class="hero feles" role="banner"><commit_msg>wide head back [Deploy: Live]<commit_after>
<?php if (is_page_template('tmpl-home.php')): ?>
<!-- <section class="hero" role="banner">
  <div class="hero-content">
    <span class="hero-text">
        <?php bloginfo('description' ); ?>
    </span>
    <a href="?product-category=cementlap" class="btn btn-light-line"><?php _e('Lapok megtekintése','root'); ?></a>
  </div>
</section> -->

  <?php
    $sl_args = array(
      'post_type'   => array('slide'),
      'ignore_sticky_posts' => true,
      'posts_per_page'         => -1,
      //'orderby' => 'menu_order',
      //'order' => 'ASC'
    );
    $the_slides = new WP_Query( $sl_args );
  ?>
  <section id="home--bilderblock" class="home--bilderblock is_light">
    <div class="wrapper wrapper-fullwidth">
        <div class="master-slider ms-skin-default" id="masterslider">
          <?php while ( $the_slides->have_posts() ) : $the_slides->the_post(); ?>
            <?php
              if (has_post_thumbnail() ) {
                $image_id = get_post_thumbnail_id();
                $thumb_url_array = wp_get_attachment_image_src($image_id, 'slidethumb21', true);
                $image_url_array = wp_get_attachment_image_src($image_id, 'slide21', true);
                $thumb_url = $thumb_url_array[0];
                $image_url = $image_url_array[0];
            ?>
            <div class="ms-slide">
                <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/vendor/masterslider/blank.gif" data-src="<?php echo $image_url; ?>" alt="<?php the_title(); ?>"/>
                <img src="<?php echo $thumb_url; ?>" width="160" height="80" alt="<?php the_title(); ?>" class="ms-thumb"/>
                <div class="ms-info">
                  <span class="bazi"><?php the_title(); ?></span>
                  <a href="<?php echo get_post_meta($post->ID,'_meta_btnurl',true); ?>" class="btn btn-light-line"><?php echo get_post_meta($post->ID,'_meta_btntxt',true); ?></a>
                </div>
            </div>
          <?php  } endwhile; ?>
        </div>
    </div>
  </section>


<?php elseif ( ( is_singular('post') &&  (get_post_format( $post->ID ) != 'gallery') )   ) :?>
  <?php
    $copt=get_option('cementlap_option_name');
    // $imci = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallimg' );
    // $imcismall = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallsmall' );
    // $imcimedium = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallmedium' );
    // $imcigreat = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallgreat' );

    $ima = get_post_meta( $post->ID, '_meta_wallimg_id', true );

    $imci = wp_get_attachment_image_src( $ima, 'wallimg');
    $imcismall = wp_get_attachment_image_src( $ima, 'wallsmall');
    $imcimedium = wp_get_attachment_image_src( $ima, 'wallmedium');
    $imcigreat = wp_get_attachment_image_src( $ima, 'wallgreat');

  ?>
  <style type="text/css">
    .hero {
      background-image:none;
    }
    @media only screen and (min-width: 768px) {
      .hero {
        background-image:url('<?php echo $imcimedium['0']; ?>');
      }
    }
    @media only screen and (min-width: 1280px) {
      .hero {
        background-image:url('<?php echo $imcigreat['0']; ?>');
      }
    }
    @media only screen and (min-width: 1600px) {
      .hero {
        background-image:url('<?php echo $imci['0']; ?>');
      }
    }
  </style>
  <section class="hero" role="banner">
    <!--div class="hero-content">
      <h1 class="hero-text">
          <?php the_title();  ?>
      </h1>
    </div-->
  </section>
<?php elseif ( ( is_page() )   ) :?>
  <?php
    $copt=get_option('cementlap_option_name');
    $imci = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallimg' );
    $imcismall = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallsmall' );
    $imcimedium = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallmedium' );
    $imcigreat = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'wallgreat' );
  ?>
  <style type="text/css">
    .hero {
      background-image:none;
    }
    @media only screen and (min-width: 768px) {
      .hero {
        background-image:url('<?php echo $imcimedium['0']; ?>');
      }
    }
    @media only screen and (min-width: 1280px) {
      .hero {
        background-image:url('<?php echo $imcigreat['0']; ?>');
      }
    }
    @media only screen and (min-width: 1600px) {
      .hero {
        background-image:url('<?php echo $imci['0']; ?>');
      }
    }
  </style>
  <section class="hero feles" role="banner">
{'fraction_non_alphanumeric': 0.18445351084389092, 'fraction_numerical': 0.009018681554648916, 'mean_word_length': 2.9056603773584904, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 165, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4007396', 'n_tokens_mistral': 3347, 'n_tokens_neox': 3274, 'n_words': 554}