Juan Carlos 5 лет назад
Родитель
Сommit
21daa3a000
1 измененных файлов с 95 добавлено и 100 удалено
  1. 95 100
      index.php

+ 95 - 100
index.php

@@ -39,96 +39,97 @@
 
 
 
 
 
 
-		    <!-- Portfolio Section -->
-		    <section id="portfolio" class="section-padding">
-		      <!-- Container Starts -->
-		      <div class="container">
-		        <div class="row">
-		          <div class="col-md-12">
-		            <h2 class="section-title wow fadeInDown animated" data-wow-delay="0.3s">Ausgewählte Projekte</h2>
-		          </div>
-		        </div>
-		        <div class="row">
-		          <!-- <div class="col-lg-12 col-md-12"> -->
-		            <!-- Portfolio Controller/Buttons -->
-								<!--
-		            <div class="controls text-center wow fadeInUpQuick" data-wow-delay=".6s">
-		              <a class="filter active btn btn-common" data-filter="all">
-		                All
-		              </a>
-		              <a class="filter btn btn-common" data-filter=".branding">
-		                Branding
-		              </a>
-		              <a class="filter btn btn-common" data-filter=".marketing">
-		                Marketing
-		              </a>
-		              <a class="filter btn btn-common" data-filter=".planning">
-		                Planning
-		              </a>
-		              <a class="filter btn btn-common" data-filter=".research">
-		                Research
-		              </a>
-		            </div>
-		          </div> -->
-			        <!-- Portfolio Controller/Buttons Ends-->
-		          <!-- Portfolio Recent Projects -->
-
-            <div id="portfolio" class="row wow fadeInUpQuick" data-wow-delay="0.8s">
+    <!-- Portfolio Section -->
+    <section id="portfolio" class="section-padding">
+      <!-- Container Starts -->
+      <div class="container">
+        <div class="row">
+          <div class="col-md-12">
+            <h2 class="section-title wow fadeInDown animated" data-wow-delay="0.3s">Ausgewählte Projekte</h2>
+          </div>
+        </div>
+        <div class="row">
+          <div class="col-lg-12 col-md-12">
+
+
+            <div class="controls text-center wow fadeInUpQuick" data-wow-delay=".6s">
+              <!-- <a class="filter active btn btn-common" data-filter="all">
+                All
+              </a>
+              <a class="filter btn btn-common" data-filter=".branding">
+                Branding
+              </a>
+              <a class="filter btn btn-common" data-filter=".marketing">
+                Marketing
+              </a>
+              <a class="filter btn btn-common" data-filter=".planning">
+                Planning
+              </a>
+              <a class="filter btn btn-common" data-filter=".research">
+                Research
+              </a> -->
+            </div>
 
 
-            <?php
 
 
-              $args = array(
-                  'post_type' => 'projekte',
-                  'post_status' => 'publish',
-                  'posts_per_page' => 10
-              );
-              $posts = new WP_Query( $args );
-              $counter = 1;
 
 
-              while ( $posts -> have_posts() ) {
-                $posts->the_post();
+        <div id="portfolio" class="row wow fadeInUpQuick" data-wow-delay="0.8s">
 
 
-                ?>
+        <?php
 
 
-                  <!-- projekt Item Starts -->
-                  <div class="col-lg-4 col-md-6 col-xs-12 mix marketing planning">
-                    <div class="portfolio-item">
-                      <div class="portfolio-img">
-                     <img src="<?php echo get_the_post_thumbnail_url( $posts->post->ID ); ?>" alt="<?php the_title();  ?>">
-                      </div>
-                      <div class="portfoli-content">
-                        <div class="sup-desc-wrap">
-                          <div class="sup-desc-inner">
-                            <div class="sup-link">
-                              <a class="left-link" href="<?php echo get_post_meta(  $posts->post->ID, 'projekt_link', true );  ?>"><i class="fa fa-link"></i></a>
-                              <!-- <a class="right-link" href=""><i class="fa fa-heart"></i></a>  -->
-                            </div>
-                            <div class="sup-meta-wrap">
-                              <a class="sup-title" href="#">
-                                <h4><?php the_title();  ?></h4>
-                              </a>
-                              <p class="sup-description"><?php echo get_post_meta(  $posts->post->ID, 'projekt_beschreibung', true );  ?></p>
-                            </div>
-                          </div>
+          $args = array(
+              'post_type' => 'projekte',
+              'post_status' => 'publish',
+              'posts_per_page' => 10
+          );
+          $posts = new WP_Query($args);
+          $counter = 1;
+
+          while ($posts -> have_posts()) {
+              $posts->the_post(); ?>
+
+              <!-- projekt Item Starts -->
+              <div class="col-lg-4 col-md-6 col-xs-12 mix marketing planning">
+                <div class="portfolio-item">
+                  <div class="portfolio-img">
+                 <img src="<?php echo get_the_post_thumbnail_url($posts->post->ID); ?>" alt="<?php the_title(); ?>">
+                  </div>
+                  <div class="portfoli-content">
+                    <div class="sup-desc-wrap">
+                      <div class="sup-desc-inner">
+                        <div class="sup-link">
+                          <a class="left-link" href="<?php echo get_post_meta($posts->post->ID, 'projekt_link', true); ?>"><i class="fa fa-link"></i></a>
+                          <!-- <a class="right-link" href=""><i class="fa fa-heart"></i></a>  -->
+                        </div>
+                        <div class="sup-meta-wrap">
+                          <a class="sup-title" href="#">
+                            <h4><?php the_title(); ?></h4>
+                          </a>
+                          <p class="sup-description"><?php echo get_post_meta($posts->post->ID, 'projekt_beschreibung', true); ?></p>
                         </div>
                         </div>
                       </div>
                       </div>
                     </div>
                     </div>
                   </div>
                   </div>
-                  <!-- projekt Item ends -->
+                </div>
+              </div>
+              <!-- projekt Item ends -->
+
+
+            <?php
+          } //  while ( $posts -> have_posts() )
+            wp_reset_postdata();
+            // wp_reset_query();
+            ?>
+          </div> <!--  <div id="portfolio" class="row wow fadeInUpQuick" data-wow-delay="0.8s"> -->
+          </div>
+        </div>
+      </div>
+      <!-- Container Ends -->
+    </section>
+    <!-- Portfolio Section Ends -->
+
 
 
 
 
-                <?php
 
 
-                } //  while ( $posts -> have_posts() )
-                wp_reset_postdata();
-                // wp_reset_query();
-                ?>
-              </div> <!--  <div id="portfolio" class="row wow fadeInUpQuick" data-wow-delay="0.8s"> -->
-		        </div>
-		      </div>
-		      <!-- Container Ends -->
-		    </section>
-		    <!-- Portfolio Section Ends -->
 
 
 		    <!-- Team Section Start -->
 		    <!-- Team Section Start -->
 		    <div id="team" class="team-members-tow section-padding background-gray">
 		    <div id="team" class="team-members-tow section-padding background-gray">
@@ -146,30 +147,28 @@
                   'post_status' => 'publish',
                   'post_status' => 'publish',
                   'posts_per_page' => 10
                   'posts_per_page' => 10
               );
               );
-              $posts = new WP_Query( $args );
+              $posts = new WP_Query($args);
               $counter = 1;
               $counter = 1;
 
 
-              while ( $posts -> have_posts() ) {
-                $posts->the_post();
-                // echo	get_the_title(  $posts->post->ID  );
-                // the_content();
-                ?>
+              while ($posts -> have_posts()) {
+                  $posts->the_post();
+              ?>
                   <!-- Team Item Starts -->
                   <!-- Team Item Starts -->
                   <div class="col-lg-3 col-md-6 col-xs-12">
                   <div class="col-lg-3 col-md-6 col-xs-12">
                   <figure>
                   <figure>
-                  <img src="<?php echo get_the_post_thumbnail_url( $posts->post->ID, array( "width" => 255, "height" => 255 ) ); ?>" alt="<?php the_title();  ?>">
+                  <img src="<?php echo get_the_post_thumbnail_url($posts->post->ID, array( "width" => 255, "height" => 255 )); ?>" alt="<?php the_title(); ?>">
                     <div class="image-overlay">
                     <div class="image-overlay">
                       <div class="overlay-text text-center">
                       <div class="overlay-text text-center">
                         <div class="info-text">
                         <div class="info-text">
-                          <strong><?php the_title();  ?></strong>
-                          <span><?php echo get_post_meta(  $posts->post->ID, 'mitarbeiter_position', true );  ?></span>
+                          <strong><?php the_title(); ?></strong>
+                          <span><?php echo get_post_meta($posts->post->ID, 'mitarbeiter_position', true); ?></span>
                         </div>
                         </div>
                         <hr class="small-divider border-white">
                         <hr class="small-divider border-white">
                         <ul class="social-icons">
                         <ul class="social-icons">
-                        <li><a href="mailto:<?php echo get_post_meta(  $posts->post->ID, 'mitarbeiter_email', true ); ?>"><i class="" aria-hidden="true"></i>
-                        <?php echo get_post_meta(  $posts->post->ID, 'mitarbeiter_email', true ); ?>
+                        <li><a href="mailto:<?php echo get_post_meta($posts->post->ID, 'mitarbeiter_email', true); ?>"><i class="" aria-hidden="true"></i>
+                        <?php echo get_post_meta($posts->post->ID, 'mitarbeiter_email', true); ?>
                         </a></li>
                         </a></li>
-                         <!-- <li><a href="mailto:<?php echo get_post_meta(  $posts->post->ID, 'mitarbeiter_email', true ); ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
+                         <!-- <li><a href="mailto:<?php echo get_post_meta($posts->post->ID, 'mitarbeiter_email', true); ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
                           <li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
                           <li><a href="#"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
                           <li><a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a></li> -->
                           <li><a href="#"><i class="fa fa-instagram" aria-hidden="true"></i></a></li> -->
                         </ul>
                         </ul>
@@ -181,29 +180,25 @@
 
 
 								<?php
 								<?php
 
 
-								if ( $counter && $counter % 4 == 0 ): ?>
+                  if ($counter && $counter % 4 == 0): ?>
 
 
 									</div>
 									</div>
 									<div class="row">
 									<div class="row">
 
 
 								<?php endif;
 								<?php endif;
 
 
-								$counter++;
+                  $counter++;
+              } //  while ( $posts -> have_posts() )
+                                wp_reset_postdata();
+                                // wp_reset_query();
 
 
-								} //  while ( $posts -> have_posts() )
-								wp_reset_postdata();
-								// wp_reset_query();
-
-								?>
+                                ?>
 
 
               </div>
               </div>
 
 
 
 
 
 
 
 
-
-
-
     <!-- Services Section Start -->
     <!-- Services Section Start -->
     <section id="services" class="section-padding">
     <section id="services" class="section-padding">
       <div class="container">
       <div class="container">