<commit_before><?php
/**
 * Template Name: Servicios Template
 */
?>

<!-- <?php while (have_posts()) : the_post(); ?>
  <?php get_template_part('templates/page', 'header'); ?>
  <?php get_template_part('templates/content', 'page'); ?>
<?php endwhile; ?>
 -->
<div class="pageheader text-center">
	<h1>Servicios</h1>
</div>
<section class="container serviciospage">
<ul class="nav nav-tabs row">
    <?php
      $loop = new WP_Query( array( 'post_type' => 'servicio','order' => 'ASC') );
      $count=0;
        if ( $loop->have_posts() ) :
          while ( $loop->have_posts() ) : $loop->the_post(); 
            $count=$count+1;
              if ($count==1) {
                echo '<li class="active col-sm-3 text-center"><a class="pestana" data-toggle="tab" href="#servicio';echo $count;echo'">'; 
                the_post_thumbnail(array('class'=>'img-responsive')); ?>
                <div class="tabtext"><?php echo get_the_title();?></div>
                <?php echo '</a><hr class="hrserv"></li>';
              } 
              else {
                echo '<li class="col-sm-3 text-center"><a class="pestana" data-toggle="tab" href="#servicio';echo $count;echo'">'; 
                the_post_thumbnail(array('class'=>'img-responsive')); ?>
                <div class="tabtext"><?php echo get_the_title();?></div>
                <?php echo '</a><hr class="hrserv"></li>';
              } 
          endwhile;
        endif;
      ?>
</ul>

<div class="tab-content serv-content">

    <?php
      $loop = new WP_Query( array( 'post_type' => 'servicio','order' => 'ASC') );
      $count=0;
        if ( $loop->have_posts() ) :
          while ( $loop->have_posts() ) : $loop->the_post(); 
            $count=$count+1;
              if ($count==1) {
                echo '<div id="servicio';echo $count;echo'" class="tab-pane fade in active">'; ?>
                <h2 class="text-uppercase"><?php echo get_the_title();?></h2>
                <?php echo get_the_content();
                echo '</div>';
              } 
              else {
                echo '<div id="servicio';echo $count;echo'" class="tab-pane fade">'; ?>
                <h2 class="text-uppercase"><?php echo get_the_title();?></h2>
                <?php echo get_the_content();
                echo '</div>';
              } 
          endwhile;
        endif;
      ?>
</div>
</section><commit_msg>Cambiando tabs por accordion en vista xs<commit_after><?php
/**
 * Template Name: Servicios Template
 */
?>

<!-- <?php while (have_posts()) : the_post(); ?>
  <?php get_template_part('templates/page', 'header'); ?>
  <?php get_template_part('templates/content', 'page'); ?>
<?php endwhile; ?>
 -->
<div class="pageheader text-center">
	<h1>Servicios</h1>
</div>
<section class="container serviciospage">
<ul class="nav nav-tabs row hidden-xs">
    <?php
      $loop = new WP_Query( array( 'post_type' => 'servicio','order' => 'ASC') );
      $count=0;
        if ( $loop->have_posts() ) :
          while ( $loop->have_posts() ) : $loop->the_post(); 
            $count=$count+1;
              if ($count==1) {
                echo '<li class="active col-sm-3 text-center"><a class="pestana" data-toggle="tab" href="#servicio';echo $count;echo'">'; 
                the_post_thumbnail(array('class'=>'img-responsive')); ?>
                <div class="tabtext"><?php echo get_the_title();?></div>
                <?php echo '</a><hr class="hrserv"></li>';
              } 
              else {
                echo '<li class="col-sm-3 text-center"><a class="pestana" data-toggle="tab" href="#servicio';echo $count;echo'">'; 
                the_post_thumbnail(array('class'=>'img-responsive')); ?>
                <div class="tabtext"><?php echo get_the_title();?></div>
                <?php echo '</a><hr class="hrserv"></li>';
              } 
          endwhile;
        endif;
      ?>
</ul>

<div class="tab-content serv-content hidden-xs">

    <?php
      $loop = new WP_Query( array( 'post_type' => 'servicio','order' => 'ASC') );
      $count=0;
        if ( $loop->have_posts() ) :
          while ( $loop->have_posts() ) : $loop->the_post(); 
            $count=$count+1;
              if ($count==1) {
                echo '<div id="servicio';echo $count;echo'" class="tab-pane fade in active">'; ?>
                <h2 class="text-uppercase"><?php echo get_the_title();?></h2>
                <?php echo get_the_content();
                echo '</div>';
              } 
              else {
                echo '<div id="servicio';echo $count;echo'" class="tab-pane fade">'; ?>
                <h2 class="text-uppercase"><?php echo get_the_title();?></h2>
                <?php echo get_the_content();
                echo '</div>';
              } 
          endwhile;
        endif;
      ?>
</div>

<div class="panel-group vissible-xs" id="accordion" role="tablist" aria-multiselectable="true">
  
    <?php
      $loop = new WP_Query( array( 'post_type' => 'servicio','order' => 'ASC') );
      $count=0;
        if ( $loop->have_posts() ) :
          while ( $loop->have_posts() ) : $loop->the_post(); 
            $count=$count+1;
              if ($count==1) {
                echo '<div class="panel panel-default">';
                   echo'<div class="panel-heading" role="tab" id="heading';echo $count; echo '">';
                    echo '<h4 class="panel-title">
                      <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse';echo $count; echo '" aria-expanded="false" aria-controls="collapse'; echo $count; echo '">';
                        echo get_the_title();
                    echo '</a></h4></div>';
                    echo '<div id="collapse';echo $count;echo'" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading';echo $count;echo'">
      <div class="panel-body">';echo get_the_content();echo '</div></div>';
              } 
              else {
                echo '<div class="panel panel-default">';
                   echo'<div class="panel-heading" role="tab" id="heading';echo $count; echo '">';
                    echo '<h4 class="panel-title">
                      <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse';echo $count; echo '" aria-expanded="false" aria-controls="collapse'; echo $count; echo '">';
                        echo get_the_title();
                echo '</a></h4></div>';
                    echo '<div id="collapse';echo $count;echo'" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading';echo $count;echo'">
      <div class="panel-body">';echo get_the_content();echo '</div></div>';
              } 
          endwhile;
        endif;
      ?>
      


 <script>
   $('.collapse').collapse()
 </script> 
</div>
</section>
{'fraction_non_alphanumeric': 0.19451371571072318, 'fraction_numerical': 0.005134223265365997, 'mean_word_length': 2.1770736253494873, 'pattern_counts': {'":': 0, '<': 126, '<?xml version=': 0, '>': 155, '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': '2189627', 'n_tokens_mistral': 2093, 'n_tokens_neox': 2022, 'n_words': 407}