Pārlūkot izejas kodu

version before launch

Juan Carlos 4 gadi atpakaļ
vecāks
revīzija
9e8d0a0838
4 mainītis faili ar 58 papildinājumiem un 28 dzēšanām
  1. 8 0
      css/extras.css
  2. 6 1
      css/main.css
  3. 42 26
      functions.php
  4. 2 1
      index.php

+ 8 - 0
css/extras.css

@@ -221,6 +221,14 @@ a.back-to-top:hover, a.back-to-top:focus {
   text-decoration: none;
 }
 
+
+footer a, footer a:visited {
+
+  color: #FFF;
+
+}
+
+
 /* Preloader */
 #preloader {
   position: fixed;

+ 6 - 1
css/main.css

@@ -545,6 +545,11 @@ footer {
   color: #7C7C7C;
 }
 
+footer a {
+
+  color: #FFF;
+}
+
 footer .small-title {
   margin-bottom: 20px;
   font-size: 22px;
@@ -727,7 +732,7 @@ footer .footer-Content {
   color: #fff;
 }
 
-.footer-widget p {
+.footer-widget p, .footer-widget * {
   color: #fff;
 }
 

+ 42 - 26
functions.php

@@ -829,8 +829,7 @@ 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 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
 }
@@ -838,8 +837,7 @@ function gf_titel()
 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 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
 }
@@ -848,8 +846,7 @@ function gf_extra()
 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 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
 }
@@ -857,8 +854,7 @@ function pr_titel()
 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 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
 }
@@ -872,40 +868,60 @@ function separator()
 }
 
 
+
+
+
 function kontakt_daten()
 {
-	?>
-    	<textarea type="text" rows="10" cols="30" name="kontakt_daten" id="kontakt_daten" style="width: 50%;" >
-        <?php echo get_option('kontakt_daten', '<h3 class="small-title">Kontakt</h3><p>realitylab gmbh <br>Ernst-Melchior-Gasse 11/1/G1<br>1020 Wien<br>Fon: (43) 01 996 20 15 - 0<br>Mail: office@realitylab.at<br></p><!--<div class="social-footer"><a href="#"><i class="fa fa-facebook icon-round"></i></a><a href="#"><i class="fa fa-twitter icon-round"></i></a><a href="#"><i class="fa fa-linkedin icon-round"></i></a></div> -->'); ?>
-      </textarea>
-    <?php
+  $content = get_option('kontakt_daten', 'Erfahren Sie mehr <strong>ODER</strong> mehr+');
+  echo '<div class="" style="width: 75%;" >';
+  wp_editor( $content, 'kontakt_daten', array(
+
+      'wpautop' => false,
+      'textarea_name' => 'kontakt_daten',
+      'media_buttons' => false,
+    )
+  );
+  echo '</div>';
 }
 
 
+
+
 function zweite_spalte()
 {
-	?>
-    	<textarea type="text" rows="10" cols="30" name="zweite_spalte" id="zweite_spalte" style="width: 50%;" >
-        <?php echo get_option('zweite_spalte', ''); ?>
-      </textarea>
-    <?php
-}
+  $content = get_option('zweite_spalte', 'Erfahren Sie mehr <strong>ODER</strong> mehr+');
+  echo '<div class="" style="width: 75%;" >';
+  wp_editor( $content, 'zweite_spalte', array(
 
+      'wpautop' => false,
+      'textarea_name' => 'zweite_spalte',
+      'media_buttons' => false,
+    )
+  );
+  echo '</div>';
+}
 
 function dritte_spalte()
 {
-	?>
-    	<textarea type="text" rows="10" cols="30" name="dritte_spalte" id="dritte_spalte" style="width: 50%;" >
-        <?php echo get_option('dritte_spalte', '<p>Wir sind mitglied bei:</p><p>&nbsp;</p><p><img src="https://dummyimage.com/30x30/000000/fff.jpg" alt="dummy"  /> <img src="https://dummyimage.com/30x30/000000/fff.jpg" alt="dummy" /></p>'); ?>
-      </textarea>
-    <?php
+  $content = get_option('dritte_spalte', 'Erfahren Sie mehr <strong>ODER</strong> mehr+');
+  echo '<div class="" style="width: 75%;" >';
+  wp_editor( $content, 'dritte_spalte', array(
+
+      'wpautop' => false,
+      'textarea_name' => 'dritte_spalte',
+      'media_buttons' => false,
+    )
+  );
+  echo '</div>';
 }
 
+
+
 function vierte_spalte()
 {
 	?>
-    	<textarea type="text" rows="10" cols="30" name="vierte_spalte" id="vierte_spalte" style="width: 50%;" >
-        <?php echo get_option('vierte_spalte', ''); ?>
+    	<textarea type="text" rows="10" cols="30" name="vierte_spalte" id="vierte_spalte" style="width: 50%;" ><?php echo get_option('vierte_spalte', ''); ?>
       </textarea>
     <?php
 }

+ 2 - 1
index.php

@@ -206,8 +206,9 @@
                                 ?><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> -->
+                              <?php if (  get_post_meta($posts->post->ID, 'mitarbeiter_cv', true) != "" ): ?>
                               <a href="<?php echo get_post_meta($posts->post->ID, 'mitarbeiter_cv', true); ?>"><i class="fa fa-link" aria-hidden="true"></i></a>
-
+                              <?php endif; ?>
                               <!--
                               <a class="facebook" href="#"><i class="fa fa-facebook"></i></a>
                               <a class="twitter" href="#"><i class="fa fa-twitter"></i></a>