PageRenderTime 55ms CodeModel.GetById 27ms RepoModel.GetById 1ms app.codeStats 0ms

/index.php

https://bitbucket.org/jpcontrerasv/chasqui-theme
PHP | 186 lines | 90 code | 68 blank | 28 comment | 6 complexity | a1b1f294714e94e6049ed4a3d048ffc8 MD5 | raw file
  1. <?php include 'header.php' ?>
  2. <!--test-->
  3. <div class="box fwidth bg-naranjo">
  4. <div id="home-blocks" class="container">
  5. <div class="col-lg-6 txt">
  6. <p class="txt-white">Chasqui Ediciones es un estudio de diseño y oficios gráficos especializado en la industria musical.</p><br><br>
  7. <div class="img-home fright animated fadeIn delay-1s">
  8. <a href="/servicios">servicios</a>
  9. <img src="<?php the_field('imagen_servicios', 'option'); ?>" alt="">
  10. </div>
  11. </div>
  12. <div class="col-lg-6 item-home">
  13. <div class="img-home fleft animated fadeIn delay-2s">
  14. <a href="/proyectos">proyectos</a>
  15. <img src="<?php the_field('imagen_proyectos', 'option'); ?>" alt="">
  16. </div>
  17. <div class="img-home fleft animated fadeIn delay-3s">
  18. <a href="/tienda">tienda</a>
  19. <img src="<?php the_field('imagen_tienda', 'option'); ?>" alt="">
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="clearfix"></div>
  25. <section id="tienda-home" class="container-fluid no-column">
  26. <?php /*
  27. <div class="link-visitar-proyectos fwidth">
  28. <div class="container-fluid">
  29. <div class="col-lg-12">
  30. <div class="caja-link box fright text-right">
  31. <p>
  32. <a href="/tienda">Visitar</a>
  33. <span class="clearfix"></span>
  34. <a href="/tienda">Tienda</a>
  35. </p>
  36. <div class="svg">
  37. <svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  38. <defs></defs>
  39. <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
  40. <g id="01.--home" transform="translate(-1210.000000, -112.000000)" fill="#363636">
  41. <g id="Group-4-Copy-6" transform="translate(1210.000000, 112.000000)">
  42. <g id="arrow-back" transform="translate(10.000000, 10.000000) scale(-1, 1) translate(-10.000000, -10.000000) ">
  43. <polygon id="Shape" points="20 8.75 4.75 8.75 11.75 1.75 10 0 0 10 10 20 11.75 18.25 4.75 11.25 20 11.25"></polygon>
  44. </g>
  45. </g>
  46. </g>
  47. </g>
  48. </svg>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. */?>
  55. <?php if( have_rows('apariencia_principal', 'option') ): while( have_rows('apariencia_principal', 'option') ): the_row(); ?>
  56. <div id="img" class="col-lg-6 col-md-6 col-sm-6 col-xs-12 no-column" style="background-image:url(<?php the_sub_field('imagen_principal_tienda_home', 'option'); ?>);">&nbsp;</div>
  57. <div id="contenido" class="col-lg-6 col-md-6 col-sm-6 col-xs-12" style="background-color:<?php the_sub_field('color_de_fondo'); ?>;">
  58. <?php endwhile; endif; ?>
  59. <div class="row">
  60. <div class="col-lg-8 col-lg-offset-2 col-xs-10 col-xs-offset-1 text-center">
  61. <?php if ( get_field( 'logo_imagen_tienda_home', 'option' ) ): ?>
  62. <img src="<?php the_field('logo_imagen_tienda_home', 'option'); ?>" alt="">
  63. <?php else: // field_name returned false ?>
  64. <?php if( have_rows('titular_tienda_home', 'option') ): while( have_rows('titular_tienda_home', 'option') ): the_row(); ?>
  65. <h1 style="color:<?php the_sub_field('color_del_titular'); ?>;"><?php the_sub_field('titulo_tienda_home'); ?></h1>
  66. <?php endwhile; ?>
  67. <?php endif; ?>
  68. <?php endif; // end of if field_name logic ?>
  69. <?php if( have_rows('bajada_del_producto', 'option') ): while( have_rows('bajada_del_producto', 'option') ): the_row(); ?>
  70. <p style="color:<?php the_sub_field('color_del_texto'); ?>;" ><?php the_sub_field('texto_tienda_home'); ?></p>
  71. <?php endwhile; ?>
  72. <?php endif; ?>
  73. <?php if( have_rows('boton_principal', 'option') ): while( have_rows('boton_principal', 'option') ): the_row(); ?>
  74. <a style="border-color:<?php the_sub_field('color_del_boton'); ?>; color:<?php the_sub_field('color_del_boton'); ?>;" href="<?php the_sub_field('link_al_producto'); ?>"><?php the_sub_field('texto_del_boton'); ?></a>
  75. <?php endwhile; ?>
  76. <?php endif; ?>
  77. </div>
  78. </div>
  79. </div>
  80. </section>
  81. <div class="clearfix"></div>
  82. <section id="blog-home" class="box fleft fwidth bg-naranjo">
  83. <div class="container-fluid">
  84. <div class="box fleft fwidth text-right">
  85. <div class="col-lg-4 col-lg-offset-1 col-xs-10 col-xs-offset-1 no-column">
  86. </div>
  87. <div class="col-lg-6 col-lg-offset-0 col-md-6 col-md-offset-0 col-sm-6 col-sm-offset-0 col-xs-10 col-xs-offset-1no-column pr0">
  88. <h1 class="txt-white" style="color:#FFF; margin:0; margin-right:-15px;">bitácora</h1>
  89. </div>
  90. </div>
  91. </div>
  92. <?php
  93. $temp = $wp_query;
  94. $wp_query = null;
  95. $wp_query = new WP_Query();
  96. $wp_query->query('posts_per_page=8&post_type=post'.'&paged='.$paged);
  97. while ($wp_query->have_posts()) : $wp_query->the_post();
  98. ?>
  99. <div class="box fleft fwidth item-portada-blog">
  100. <div class="col-lg-4 col-lg-offset-1 col-xs-10 col-xs-offset-1 no-column img" style="background-image:url(<?php the_post_thumbnail_url(); ?>);" >
  101. <a href="<?php the_permalink(); ?>">&nbsp;</a>
  102. </div>
  103. <div class="col-lg-6 col-lg-offset-0 col-md-6 col-md-offset-0 col-sm-6 col-sm-offset-0 col-xs-10 col-xs-offset-1 texto">
  104. <span class="fecha"><?php the_time('M'); ?> <?php the_time('j'); ?>, <?php the_time('Y'); ?></span>
  105. <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  106. <?php the_excerpt(); ?>
  107. <p><a href="<?php the_permalink(); ?>">ver artículo</a></p>
  108. </div>
  109. </div>
  110. <?php endwhile; ?>
  111. <?php
  112. $wp_query = null;
  113. $wp_query = $temp; // Reset
  114. ?>
  115. </div>
  116. </section>
  117. <?php include 'footer.php' ?>