|
|
@@ -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");
|
|
|
|
|
|
|
|
|
|