ソースを参照

clients started

Juan Carlos 5 年 前
コミット
7513c0ecce
2 ファイル変更60 行追加105 行削除
  1. 2 2
      functions.php
  2. 58 103
      index.php

+ 2 - 2
functions.php

@@ -383,7 +383,7 @@ function baugruppen() {
       'exclude_from_search' => false,
       'publicly_queryable' => true,
       'capability_type' => 'page',
-      'menu_icon' => 'dashicons-store',
+      'menu_icon' => 'dashicons-groups',
    );
    register_post_type( 'baugruppen', $args );
 }
@@ -428,7 +428,7 @@ function clients() {
       'exclude_from_search' => false,
       'publicly_queryable' => true,
       'capability_type' => 'page',
-      'menu_icon' => 'dashicons-store',
+      'menu_icon' => 'dashicons-smiley',
    );
    register_post_type( 'clients', $args );
 }

+ 58 - 103
index.php

@@ -132,6 +132,7 @@
 
 
 		    <!-- Team Section Start -->
+        <section id="team-section" class="section-padding">
 		    <div id="team" class="team-members-tow section-padding background-gray">
 		      <div class="container">
 		        <div class="row">
@@ -177,9 +178,7 @@
                   </div>
                   <!-- Team Item Ends -->
 
-								<?php
-
-                  if ($counter && $counter % 4 == 0): ?>
+								<?php if ($counter && $counter % 4 == 0): ?>
 
 									</div>
 									<div class="row">
@@ -189,13 +188,14 @@
                   $counter++;
               } //  while ( $posts -> have_posts() )
                                 wp_reset_postdata();
-                                // wp_reset_query();
+
 
                                 ?>
 
+                  </div>
               </div>
-
-
+          </div>
+        </section>
 
 
     <!-- Services Section Start -->
@@ -203,117 +203,72 @@
       <div class="container">
         <div class="row">
           <div class="col-md-12">
-            <h2 class="section-title wow fadeInDown animated" data-wow-delay="0.3s">Our Services</h2>
+            <h2 class="section-title wow fadeInDown animated" data-wow-delay="0.3s">Unsere Baugrupen</h2>
           </div>
         </div>
-        <div class="row">
-          <!-- Start Service Icon 1 -->
-          <div class="col-md-6 col-lg-4 col-xs-12">
-            <div class="service-box">
-              <div class="service-icon">
-                <i class="fa fa-cogs"></i>
-              </div>
-              <div class="service-content">
-                <h4><a href="#">Easy to Customize</a></h4>
-                <p>
-                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae architecto officiis consequuntur vero error excepturi.
-                </p>
-              </div>
-            </div>
-          </div>
-          <!-- End Service Icon 1 -->
 
-          <!-- Start Service Icon 2 -->
-          <div class="col-md-6 col-lg-4 col-xs-12">
-            <div class="service-box">
-              <div class="service-icon">
-                <i class="fa fa-cubes"></i>
-              </div>
-              <div class="service-content">
-                <h4><a href="#">100+ Components</a></h4>
-                <p>
-                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae architecto officiis consequuntur vero error excepturi.
-                </p>
-              </div>
-            </div>
-          </div>
-          <!-- End Service Icon 2 -->
 
-          <!-- Start Service Icon 3 -->
-          <div class="col-md-6 col-lg-4 col-xs-12">
-            <div class="service-box">
-              <div class="service-icon">
-                <i class="fa fa-tachometer"></i>
-              </div>
-              <div class="service-content">
-                <h4><a href="#">Super Fast</a></h4>
-                <p>
-                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae architecto officiis consequuntur vero error excepturi.
-                </p>
-              </div>
-            </div>
-          </div>
-          <!-- End Service Icon 3 -->
+<!--
+********************************************** -->
 
-          <!-- Start Service Icon 4 -->
-          <div class="col-md-6 col-lg-4 col-xs-12">
-            <div class="service-box">
-              <div class="service-icon">
-                <i class="fa fa-check"></i>
-              </div>
-              <div class="service-content">
-                <h4><a href="#">Clean Design</a></h4>
-                <p>
-                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae architecto officiis consequuntur vero error excepturi.
-                </p>
-              </div>
-            </div>
-          </div>
-          <!-- End Service Icon 4 -->
 
-          <!-- Start Service Icon 5 -->
-          <div class="col-md-6 col-lg-4 col-xs-12">
-            <div class="service-box">
-              <div class="service-icon">
-                <i class="fa fa-flash"></i>
-              </div>
-              <div class="service-content">
-                <h4><a href="#">Bootstrap 4 UI Kit</a></h4>
-                <p>
-                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae architecto officiis consequuntur vero error excepturi.
-                </p>
-              </div>
-            </div>
-          </div>
-          <!-- End Service Icon 5 -->
+<div class="row">
+<?php
+
+  $args = array(
+      'post_type' => 'baugruppen',
+      'post_status' => 'publish',
+      'posts_per_page' => 10
+  );
+  $posts = new WP_Query($args);
+  $counter = 1;
+
+  while ($posts -> have_posts()) {
+      $posts->the_post(); ?>
+      <!-- Team Item Starts -->
+
+      <div class="col-lg-3 col-md-6 col-xs-12 text-center">
+                  <i class="fact-icon fa fa-user"></i>
+                  <h3 class="timer" id="websites" data-to="560" data-speed="1000"><?php the_title(); ?></h3>
+                  <h5 class="fact-title">Happy Clients</h5>
+                </div>
+
+      <!-- Team Item Ends -->
+
+    <?php if ($counter && $counter % 4 == 0): ?>
 
-          <!-- Start Service Icon 6 -->
-          <div class="col-md-6 col-lg-4 col-xs-12">
-            <div class="service-box">
-              <div class="service-icon">
-                <i class="fa fa-hand-pointer-o"></i>
-              </div>
-              <div class="service-content">
-                <h4><a href="#">Advanced Features</a></h4>
-                <p>
-                  Lorem ipsum dolor sit amet, consectetur adipisicing elit. Recusandae architecto officiis consequuntur vero error excepturi.
-                </p>
-              </div>
-            </div>
-          </div>
-          <!-- End Service Icon 6 -->
-        </div>
       </div>
-    </section>
-    <!-- Services Section End -->
+      <div class="row">
+
+    <?php endif;
+
+      $counter++;
+  } //  while ( $posts -> have_posts() )
+                    wp_reset_postdata();
+
+
+                    ?>
+
+      </div>
+  </div>
+</div>
+</section>
+
+
+
+
+
+****************************************************** -->
+
+
 
 
      <!-- Feature Section Start -->
-    <div id="feature" class="section-padding">
+    <div id="feature" class="section-padding background-gray">
       <div class="container">
         <div class="row">
           <div class="col-md-12">
-            <h2 class="section-title wow fadeInDown animated" data-wow-delay="0.3s">Features</h2>
+            <h2 class="section-title wow fadeInDown animated" data-wow-delay="0.3s">Unsere Kunden</h2>
           </div>
         </div>
         <div class="row">