Эх сурвалжийг харах

title smaller, footer images, padding cont.

Juan Carlos 5 жил өмнө
parent
commit
ab5d0403b2
8 өөрчлөгдсөн 195 нэмэгдсэн , 43 устгасан
  1. 1 1
      css/extras.css
  2. 28 5
      css/main.css
  3. 1 1
      css/responsive.css
  4. 9 7
      footer.php
  5. 83 4
      functions.php
  6. 2 2
      header.php
  7. 70 22
      index.php
  8. 1 1
      library/css/style.css

+ 1 - 1
css/extras.css

@@ -18,7 +18,7 @@
 	background: #F6F6F6;
 }
 #about{
-	background: #F6F6F6;
+	background: #FFF;
 }
 /* #team{
 	background: #F6F6F6;

+ 28 - 5
css/main.css

@@ -4,6 +4,15 @@ Author: UIdeck
 Website: https://uideck.com
 More Info: https://uideck.com/products/helium-ui-kit
 */
+
+
+@media (min-width:1200px) {
+ .container {
+  padding-left: 40px;
+  padding-right: 40px;
+ }
+}
+
 .rt-color-projekte {
   background-color: #A3C7CC;
 }
@@ -73,8 +82,8 @@ More Info: https://uideck.com/products/helium-ui-kit
   position: relative;
   padding: 25px;
   min-height: 125px;
-  margin-bottom: 25px;
-  margin-top: 25px;
+  margin-bottom: 12px;
+  margin-top: 12px;
 }
 
 .rl-center {
@@ -92,12 +101,24 @@ More Info: https://uideck.com/products/helium-ui-kit
 
 }
 
-rl-filler{
+.rl-filler{
 
   height:50px;
   background-color: #A3C7CC;
 }
 
+.rl-section-title{
+
+  	/* color: #585b60; */
+  	font-size: 18px;
+  	text-align: center;
+  	letter-spacing: 1px;
+  	/* line-height: 1; */
+  	margin-bottom: 48px;
+  	padding: 0 10px;
+  	position: relative;
+
+}
 
 footer img {
 width: auto;
@@ -109,11 +130,11 @@ height: auto;
 
 @font-face {
   font-family: 'NeuzeitGro-Bla';
-  src: url('webFonts/NeuzeitGro-Bla/font.woff2') format('woff2'), url('../fonts/NeuzeitGro-Bla/font.woff') format('woff');
+  src: url('../fonts/NeuzeitGro-Bla/font.woff2') format('woff2'), url('../fonts/NeuzeitGro-Bla/font.woff') format('woff');
 }
 @font-face {
   font-family: 'NeuzeitGro-Reg';
-  src: url('webFonts/NeuzeitGro-Reg/font.woff2') format('woff2'), url('../fonts/NeuzeitGro-Reg/font.woff') format('woff');
+  src: url('../fonts/NeuzeitGro-Reg/font.woff2') format('woff2'), url('../fonts/NeuzeitGro-Reg/font.woff') format('woff');
 }
 
 
@@ -4251,6 +4272,8 @@ figure {
 
 #portfolio .portfolio.block h5 {
   color: #444;
+  margin-top: 5px;
+  margin-bottom: 0px;
 }
 
 #portfolio .project {

+ 1 - 1
css/responsive.css

@@ -65,7 +65,7 @@
   }
   .navbar-brand img {
     margin: 5px 0;
-    width: 48%;
+    width: 80%;
   }
   #carousel-area .carousel-item .carousel-caption h3 {
     font-size: 12px;

+ 9 - 7
footer.php

@@ -7,7 +7,7 @@
         <!-- Row Starts -->
         <div class="row section">
           <div class="col-xs-12">
-            <img src="<?php echo get_template_directory_uri(); ?>/img/logo_cut_invert.png" alt="">
+
           </div>
         </div>
 
@@ -15,12 +15,10 @@
           <div class="row section">
           <div class="footer-widget col-lg-3 col-md-6 col-xs-12 wow fadeIn">
 
+            <img src="<?php echo get_template_directory_uri(); ?>/img/logo_cut_invert.png" alt="">
+
 
 
-            <?php
-             $options = get_option('kontakt_daten');
-             echo $options;
-            ?>
 
             <!--
             <h3 class="small-title">
@@ -43,10 +41,13 @@
           <div class="footer-widget col-lg-3 col-md-6 col-xs-12 wow fadeIn" data-wow-delay=".2s">
 
             <?php
-             $options = get_option('zweite_spalte');
+             $options = get_option('kontakt_daten');
              echo $options;
             ?>
 
+
+
+
             <?php /* ?>
             <h3 class="small-title">
               Links
@@ -88,10 +89,11 @@
           <div class="footer-widget col-lg-3 col-md-6 col-xs-12 wow fadeIn" data-wow-delay=".2s">
 
             <?php
-             $options = get_option('vierte_spalte');
+             $options = get_option('zweite_spalte');
              echo $options;
             ?>
 
+
           </div>
           <!-- Footer Widget Ends -->
 

+ 83 - 4
functions.php

@@ -573,6 +573,7 @@ function admin_init(){
   add_meta_box("mitarbeiter-email",     "Email", "mitarbeiter_email", "mitarbeiter", "normal", "low");
   add_meta_box("mitarbeiter-beschreibung",     "Beschreibung", "mitarbeiter_beschreibung", "mitarbeiter", "normal", "low");
   add_meta_box("mitarbeiter-tel",     "Telefonnummer", "mitarbeiter_tel", "mitarbeiter", "normal", "low");
+  add_meta_box("mitarbeiter-cv",     "Link zum CV", "mitarbeiter_cv", "mitarbeiter", "normal", "low");
   // Projekte
   add_meta_box("projekt-beschreibung",  "Description", "projekt_beschreibung", "projekte", "normal", "low");
   add_meta_box("projekt-link",          "Link", "projekt_link", "projekte", "normal", "low");
@@ -632,6 +633,16 @@ function mitarbeiter_tel(){
   <?php
 }
 
+function mitarbeiter_cv(){
+  global $post;
+  $custom = get_post_custom($post->ID);
+  $mitarbeiter_cv = $custom["mitarbeiter_cv"][0];
+  ?>
+  <label>Link zum CV:</label>
+  <input name="mitarbeiter_cv" value="<?php echo $mitarbeiter_cv; ?>" />
+  <?php
+}
+
 function projekt_beschreibung(){
   global $post;
   $custom = get_post_custom($post->ID);
@@ -753,6 +764,7 @@ function save_details(){
   update_post_meta($post->ID, "mitarbeiter_email",         $_POST["mitarbeiter_email"]);
   update_post_meta($post->ID, "mitarbeiter_beschreibung",  $_POST["mitarbeiter_beschreibung"]);
   update_post_meta($post->ID, "mitarbeiter_tel",           $_POST["mitarbeiter_tel"]);
+  update_post_meta($post->ID, "mitarbeiter_cv",           $_POST["mitarbeiter_cv"]);
   // Projekte
   update_post_meta($post->ID, "projekt_beschreibung", $_POST["projekt_beschreibung"]);
   update_post_meta($post->ID, "projekt_link",         $_POST["projekt_link"]);
@@ -808,12 +820,58 @@ function theme_settings_page()
 
 function add_theme_menu_item()
 {
-	add_menu_page("Text blocks", "Text blocks", "manage_options", "theme-panel", "theme_settings_page", null, 99);
+	add_menu_page("RL - Einstellungen", "RL - Einstellungen", "manage_options", "theme-panel", "theme_settings_page", null, 99);
 }
 
 add_action("admin_menu", "add_theme_menu_item");
 
 
+function gf_titel()
+{
+	?>
+    	<textarea type="text" rows="10" cols="30" name="gf_titel" id="gf_titel" style="width: 50%;" >
+        <?php echo get_option('gf_titel', 'Dafür arbeiten wir <strong>ODER</strong> was uns beschäftigt'); ?>
+      </textarea>
+    <?php
+}
+
+function gf_extra()
+{
+	?>
+    	<textarea type="text" rows="10" cols="30" name="gf_extra" id="gf_extra" style="width: 50%;" >
+        <?php echo get_option('gf_extra', 'Erfahren Sie mehr <strong>ODER</strong> mehr+'); ?>
+      </textarea>
+    <?php
+}
+
+
+function pr_titel()
+{
+	?>
+    	<textarea type="text" rows="10" cols="30" name="pr_titel" id="pr_titel" style="width: 50%;" >
+        <?php echo get_option('pr_titel', '<h2 class="section-title">Ausgewählte Projekte</h2>'); ?>
+      </textarea>
+    <?php
+}
+
+function pr_extra()
+{
+	?>
+    	<textarea type="text" rows="10" cols="30" name="pr_extra" id="pr_extra" style="width: 50%;" >
+        <?php echo get_option('pr_extra', '<p>Alle Projekte finden Sie unter <a title="https://gemeinschaffen.com" href="https://gemeinschaffen.com">https://gemeinschaffen.com</a></p>'); ?>
+      </textarea>
+    <?php
+}
+
+
+function separator()
+{
+	?>
+    	<hr style="border-top: 1px solid black;" >
+    <?php
+}
+
+
 function kontakt_daten()
 {
 	?>
@@ -855,7 +913,28 @@ function vierte_spalte()
 
 function display_theme_panel_fields()
 {
-	add_settings_section("section", "Textblöcke. HTML is erlaubt.", null, "theme-options");
+
+  // add_settings_section("section", "Geschäftsfelder Textblöcke. HTML is erlaubt.", null, "theme-options");
+  add_settings_section("section", "Textblöcke. HTML is erlaubt.", null, "theme-options");
+
+
+  add_settings_field("gf_titel", "Geschäftsfelder Titel", "gf_titel", "theme-options", "section");
+  register_setting("section", "gf_titel");
+
+  add_settings_field("gf_extra", "Geschäftsfelder extra Text", "gf_extra", "theme-options", "section");
+  register_setting("section", "gf_extra");
+
+  add_settings_field("separator-a", "", "separator", "theme-options", "section");
+
+  add_settings_field("pr_titel", "Projekte Titel", "pr_titel", "theme-options", "section");
+  register_setting("section", "pr_titel");
+
+  add_settings_field("pr_extra", "Projekte extra Text", "pr_extra", "theme-options", "section");
+  register_setting("section", "pr_extra");
+
+
+
+  add_settings_field("separator-b", "", "separator", "theme-options", "section");
 
 	add_settings_field("kontakt_daten", "Kontaktdaten (1. Spalte im Footer)", "kontakt_daten", "theme-options", "section");
   register_setting("section", "kontakt_daten");
@@ -866,8 +945,8 @@ function display_theme_panel_fields()
   add_settings_field("dritte_spalte", "3. Spalte im Footer", "dritte_spalte", "theme-options", "section");
   register_setting("section", "dritte_spalte");
 
-  add_settings_field("vierte_spalte", "4. Spalte im Footer", "vierte_spalte", "theme-options", "section");
-  register_setting("section", "vierte_spalte");
+  // add_settings_field("vierte_spalte", "4. Spalte im Footer", "vierte_spalte", "theme-options", "section");
+  // register_setting("section", "vierte_spalte");
 
 
 

+ 2 - 2
header.php

@@ -98,7 +98,7 @@
 							</li>
 							<li class="nav-item">
 								<a class="nav-link" href="<?php echo get_home_url(); ?>/#footer">
-									Contact
+									Kontakt
 								</a>
 							</li>
 
@@ -140,7 +140,7 @@
 					</li>
 					<li>
 						<a class="page-scroll" href="<?php echo get_home_url(); ?>/#footer">
-							Contact
+							Kontakt
 						</a>
 					</li>
 

+ 70 - 22
index.php

@@ -4,6 +4,20 @@
     <div id="about" class="section-padding rt-services">
       <div class="container">
         <div class="row">
+          <div class="col-md-12 text-center">
+            <br><br>
+          </div>
+          <div class="col-md-12 text-center">
+            <div class="">
+              <?php echo get_option('gf_titel');  ?>
+            </div>
+          </div>
+          <div class="col-md-12 text-center">
+            <br><br>
+          </div>
+        </div>
+        <div class="row">
+
 
           <?php
 
@@ -40,6 +54,22 @@
 
 
 
+        </div>
+        <div class="row">
+          <div class="col-md-12 text-center">
+            <br><br><br>
+          </div>
+          <div class="col-md-12 text-center">
+            <div class="">
+              <?php
+               $options = get_option('gf_extra');
+               echo $options;
+              ?>
+            </div>
+          </div>
+          <div class="col-md-12 text-center">
+            <br><br><br>
+          </div>
         </div>
       </div>
     </div>
@@ -53,7 +83,9 @@
       <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>
+            <p class="rl-section-title" data-wow-delay="0.3s"><?php echo get_option('pr_titel');  ?></p>
+
+
           </div>
         </div>
         <ul class="row portfolio list-unstyled" id="grid">
@@ -74,24 +106,26 @@
 
                           <!-- project -->
                           <li class="col-md-4 col-sm-6 project">
-                            <figure>
-                              <div class="hovereffect rl-projects-figure rl-border-round">
-                                <div class="rl-center-helper">
-                                  <div class="rl-center-frame">
-                                    <img class="rl-center-img" src="<?php echo get_the_post_thumbnail_url($posts->post->ID, 'medium'); ?>" alt="<?php the_title(); ?>">
-                                  </div>
-                              </div>
-                                <div class="overlay">
-                                  <div class="icons-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 class="portfolio block">
+                              <figure>
+                                <div class="hovereffect rl-projects-figure rl-border-round">
+                                  <div class="rl-center-helper">
+                                    <div class="rl-center-frame">
+                                      <img class="rl-center-img" src="<?php echo get_the_post_thumbnail_url($posts->post->ID, 'medium'); ?>" alt="<?php the_title(); ?>">
+                                    </div>
+                                </div>
+                                  <div class="overlay">
+                                    <div class="icons-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>
                                 </div>
-                              </div>
-                            </figure>
-                            <div class="portfolio block">
+                              </figure>
+                              <span><br></span>
                               <h5><?php the_title(); ?></h5>
                               <p class="project-description"><?php echo get_post_meta($posts->post->ID, 'projekt_beschreibung', true); ?></p>
                             </div>
@@ -107,6 +141,19 @@
             // wp_reset_query();
             ?>
           </ul>
+          <div class="row">
+            <div class="col-md-12 text-center">
+              <br><br><br>
+            </div>
+            <div class="col-md-12 text-center">
+              <div class="">
+                <?php echo get_option('pr_extra');  ?>
+              </div>
+            </div>
+            <div class="col-md-12 text-center">
+              <br><br><br>
+            </div>
+          </div>
       </div>
       <!-- Container Ends -->
     </section>
@@ -122,7 +169,7 @@
 		      <div class="container">
 		        <div class="row">
 		          <div class="col-md-12">
-		            <h2 class="section-title wow fadeInDown animated" data-wow-delay="0.3s">Das Team</h2>
+		            <p class="rl-section-title" data-wow-delay="0.3s">Das Team</p>
 		          </div>
 		        </div>
             <div class="row">
@@ -158,7 +205,8 @@
                               echo encode_email_shortcode( [], $content   );
                                 ?><br/>
                               <a href="tel:<?php echo get_post_meta($posts->post->ID, 'mitarbeiter_tel', true); ?>"><?php echo get_post_meta($posts->post->ID, 'mitarbeiter_tel', true); ?></a><br/>
-                              <a href="<?php echo get_post_type_archive_link( 'mitarbeiter' ); echo '#post-';  echo get_the_ID();  ?>"><i class="fa fa-link" aria-hidden="true"></i></a>
+                              <!-- <a href="<?php echo get_post_type_archive_link( 'mitarbeiter' ); echo '#post-';  echo get_the_ID();  ?>"><i class="fa fa-link" aria-hidden="true"></i></a> -->
+                              <a href="<?php echo get_post_meta($posts->post->ID, 'mitarbeiter_cv', true); ?>"><i class="fa fa-link" aria-hidden="true"></i></a>
 
                               <!--
                               <a class="facebook" href="#"><i class="fa fa-facebook"></i></a>
@@ -306,7 +354,7 @@
       <div class="container">
         <div class="row">
           <div class="col-md-12">
-            <h2 class="section-title wow fadeInDown animated" data-wow-delay="0.3s">Unsere Kunden</h2>
+            <p class="rl-section-title" data-wow-delay="0.3s">Unsere Kunden</p>
           </div>
         </div>
 
@@ -330,7 +378,7 @@
 
         ?>
 
-        <li class="col-md-3 col-sm-6 project">
+        <li class="col-md-2 col-sm-6 project">
 
           <figure>
             <div class="hovereffect">
@@ -350,7 +398,7 @@
           </figure>
         </li>
 
-      <?php if ($counter && $counter % 4 == 0): ?>
+      <?php if ($counter && $counter % 6 == 0): ?>
 
         </ul>
         <ul class="row portfolio list-unstyled justify-content-center" id="grid-clients">

+ 1 - 1
library/css/style.css

@@ -1247,7 +1247,7 @@ and will be used across all viewports.
 GENERAL STYLES
 *********************/
 body {
-  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
+  font-family: "NeuzeitGro-Reg", "Helvetica Neue", Helvetica, Arial, sans-serif;
   font-size: 100%;
   line-height: 1.5;
   color: #5c6b80;