diff --git a/README.md b/README.md
deleted file mode 100644
index e69de29..0000000
diff --git a/includes/update.class.php b/includes/update.class.php
index 72554c2..fd93cbc 100644
--- a/includes/update.class.php
+++ b/includes/update.class.php
@@ -12,7 +12,7 @@ class BdpVersionChecker
{
$plugin_data = get_plugin_data( BDP_LV_STARTUP_FILE );
$this->plugin_slug = BDP_LV_PLUGIN_SLUG;
- $this->updateUrl = $plugin_data['UpdateURI'] . '/info_development.json';
+ $this->updateUrl = $plugin_data['UpdateURI'] . '/info.json';
$this->version = $plugin_data['Version'];
$this->cache_key = 'bdp-kompass-upd';
$this->cache_allowed = false;
diff --git a/plugins/buena/editor-style.css b/plugins/buena/editor-style.css
deleted file mode 100644
index 9547505..0000000
--- a/plugins/buena/editor-style.css
+++ /dev/null
@@ -1,104 +0,0 @@
-@charset "UTF-8";
-
-@import url("font/ihs.css");
-
-html, body { border: 0 none; padding: 0; margin: 0; min-height: 100%; position: static; }
-html { font-family: Sans-Serif; background: url("img/holz.jpg") #dbb97b; position: relative; }
-body { margin: 1em; padding: 1em; max-width: 710px; background: #fff; font-size: 81.3% !important; }
-body.post-type-gallery { background: transparent; }
-header, hgroup, nav, footer, article { display: block; }
-.h, h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 { margin: 0; font-family: IHS, Serif; font-size: 1em; font-weight: normal; font-style: normal; }
-button, input, select, optgroup, option { margin: 0; font: inherit; color: inherit; }
-button, input[type="button"], input[type="submit"], input[type="reset"] { cursor: pointer; }
-p, ul, ol, dt { line-height: 1.5; }
-abbr { border-bottom: 1px dotted; }
-a { color: #1d4899; }
-figure, .wp-caption { margin: 0; max-width: 100%; }
-figcaption, .wp-caption-text { font-style: italic; padding: 0.5em 0; }
-.screen-reader-text { display: none; }
-.aligncenter { margin: 0 auto; }
-.alignleft { float: left; margin: 0 1em 0 0; }
-.alignright { float: right; margin: 0 0 0 1em; }
-
-::-moz-selection { background: #1d4899; color: #ffcb04; text-shadow: none; outline: 2px solid #1d4899; }
- ::selection { background: #1d4899; color: #ffcb04; text-shadow: none; outline: 2px solid #1d4899; }
-
-/* Media object */
-.media { margin: 1em 0; }
-.media, .bd { overflow: hidden; _overflow: visible; }
-/*.media img { display: block; }*/
-/* Clearfix */
-.clearfix::after,
-.clearfix::before,
-.media::after,
-.media::before { content: " "; display: table; }
-.clearfix::after,
-.media::after { clear: both; }
-
-/* Überschriften mit Bild darunter */
-.h-box { position: relative; display: block; margin-bottom: 1em; text-decoration: none; }
-.h-box > img { position: absolute; top: 0; left: 0; height: 100%; width: 100%; }
-.h-box > .wrap { position: absolute; max-width: 100%; left: 0; }
-.h-box > .wrap > * { display: inline; -o-box-decoration-break: clone; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
-
-.h-box-teaser { box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3); margin-left: -240px; line-height: 1; display: inline-block; width: 1300px; max-width: 100%; }
-.h-box-teaser > img { position: static; }
-.h-box-teaser > .wrap { bottom: 1em; padding-left: 240px; }
-.h-box-teaser > .wrap > * { background: rgba(56, 46, 35, 0.7); color: #ffcb04; padding: 2px 13px 4px; font-size: 52px; line-height: 78px; }
-@media (max-width: 720px) {
- .h-box-teaser { margin-top: 1em; margin-left: 0; }
- .h-box-teaser > .wrap { padding-left: 1em; }
- .h-box-teaser > .wrap > * { font-size: 2em; line-height: 39px; }
-}
-
-.h-box-blaugelb { padding-top: 47.1428571%; }
-.h-box-blaugelb > .wrap { bottom: 0; font-size: 18px; }
-.h-box-blaugelb > .wrap > * { color: #1d4899; background: #ffcb04; padding: 3px 5px; line-height: 26px; }
-
-.h-box-blaugelb-bildlos { padding: 0; }
-.h-box-blaugelb-bildlos > .wrap { position: static; }
-/**/
-
-.container { max-width: 1020px; }
-.page .container,
-.single-post:not(.single-format-gallery) .container { max-width: 710px; }
-
-.content-singular .format-gallery { background: transparent; padding: 0; margin: 0; position: relative; }
-.content-singular .format-gallery .gallery { display: flex; flex-wrap: wrap; align-content: space-between; align-items: flex-start; }
-.content-singular .format-gallery .gallery-item { background: #fff; padding: 1em; margin: 0 1em 1em 0; }
-.gallery-columns-1 .gallery-item { flex: 1 0 50%; }
-.gallery-columns-2 .gallery-item { flex: 1 0 34%; }
-.gallery-columns-3 .gallery-item { flex: 1 0 25%; }
-.gallery-columns-4 .gallery-item { flex: 1 0 20%; }
-
-.content-gallery { display: flex; position: relative; z-index: 10; flex-wrap: wrap; overflow: hidden; }
-.content-gallery > article { flex: 1 1 25%; }
-body > :first-child { margin-top: 0; }
-body > :last-child { margin-bottom: 0; }
-.content-singular > article:not(.format-gallery),
-.content-gallery > article,
-.commentlist article,
-.comment-form { min-width: 20em; background: #fff; box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1); }
-.content-gallery > article { max-width: calc(33.333% - 1em); }
-@media (max-width: 800px) { .content-gallery > article { max-width: 100%; } }
-
-/* WordPress-Wünsche */
-.sticky {}
-
-img { max-width: 100%; height: auto; border: 0 none; vertical-align: middle; }
-ul, ol { padding-left: 2em; }
-dl, ul, ol, h1, h2, h3, h4, h5, h6, blockquote, p, table { margin: 0.5em 0; }
-dd, li > ol, li > ul { margin: 0; }
-dt { font-weight: bold; }
-blockquote, dd { padding-left: 2em; }
-body > p:empty:last-child { margin: -0.5em 0 0.5em; }
-h3, .h3, h4, .h4, h5, .h5, h6, .h6 { display: inline-block; background: #ffcb04; color: #1d4899; margin-bottom: 0; padding: 2px 4px; }
-h3, .h3 { font-size: 18px; padding: 3px 5px; }
-h4, .h4 { font-size: 16px; }
-h5, .h5 { font-size: 14px; }
-.gallery-caption {}
-.bypostauthor {}
-.twitter-tweet {}
-
-h1, .h1, h2, .h2 { font-size: 20px; }
-h1::after, h2::after { color: red; background: black; display: block; padding: 5px; content: "Bitte Überschriften ab 3. Ordnung benutzen."; }
diff --git a/plugins/buena/font/ihs.css b/plugins/buena/font/ihs.css
deleted file mode 100644
index c37b7d3..0000000
--- a/plugins/buena/font/ihs.css
+++ /dev/null
@@ -1,11 +0,0 @@
-@font-face {
- font-family: IHS;
- src: url('ihs.eot');
- src: url('ihs.eot?#iefix') format('embedded-opentype'),
- url('ihs.woff2') format('woff2'),
- url('ihs.woff') format('woff'),
- url('ihs.ttf') format('truetype'),
- url('ihs.svg#immenhausenregular') format('svg');
- font-weight: normal;
- font-style: normal;
-}
diff --git a/plugins/buena/font/ihs.eot b/plugins/buena/font/ihs.eot
deleted file mode 100644
index 2428aea..0000000
Binary files a/plugins/buena/font/ihs.eot and /dev/null differ
diff --git a/plugins/buena/font/ihs.svg b/plugins/buena/font/ihs.svg
deleted file mode 100644
index bd41055..0000000
--- a/plugins/buena/font/ihs.svg
+++ /dev/null
@@ -1,1825 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/plugins/buena/font/ihs.ttf b/plugins/buena/font/ihs.ttf
deleted file mode 100644
index c580f0b..0000000
Binary files a/plugins/buena/font/ihs.ttf and /dev/null differ
diff --git a/plugins/buena/font/ihs.woff b/plugins/buena/font/ihs.woff
deleted file mode 100644
index b4b0926..0000000
Binary files a/plugins/buena/font/ihs.woff and /dev/null differ
diff --git a/plugins/buena/font/ihs.woff2 b/plugins/buena/font/ihs.woff2
deleted file mode 100644
index d56121d..0000000
Binary files a/plugins/buena/font/ihs.woff2 and /dev/null differ
diff --git a/plugins/buena/img/BDP001_Icon_Empfehlen.png b/plugins/buena/img/BDP001_Icon_Empfehlen.png
deleted file mode 100644
index 34bdc3a..0000000
Binary files a/plugins/buena/img/BDP001_Icon_Empfehlen.png and /dev/null differ
diff --git a/plugins/buena/img/bleistift.png b/plugins/buena/img/bleistift.png
deleted file mode 100644
index 6340713..0000000
Binary files a/plugins/buena/img/bleistift.png and /dev/null differ
diff --git a/plugins/buena/img/briefumschlag.png b/plugins/buena/img/briefumschlag.png
deleted file mode 100644
index 92111a0..0000000
Binary files a/plugins/buena/img/briefumschlag.png and /dev/null differ
diff --git a/plugins/buena/img/bundeszeichen.png b/plugins/buena/img/bundeszeichen.png
deleted file mode 100644
index 1d159fb..0000000
Binary files a/plugins/buena/img/bundeszeichen.png and /dev/null differ
diff --git a/plugins/buena/img/bundeszeichen@2x.png b/plugins/buena/img/bundeszeichen@2x.png
deleted file mode 100644
index 6e3b20c..0000000
Binary files a/plugins/buena/img/bundeszeichen@2x.png and /dev/null differ
diff --git a/plugins/buena/img/deutschlandkarte.png b/plugins/buena/img/deutschlandkarte.png
deleted file mode 100644
index e0e8502..0000000
Binary files a/plugins/buena/img/deutschlandkarte.png and /dev/null differ
diff --git a/plugins/buena/img/favicon.ico b/plugins/buena/img/favicon.ico
deleted file mode 100644
index 40e98c6..0000000
Binary files a/plugins/buena/img/favicon.ico and /dev/null differ
diff --git a/plugins/buena/img/hamburger.png b/plugins/buena/img/hamburger.png
deleted file mode 100644
index 07348d7..0000000
Binary files a/plugins/buena/img/hamburger.png and /dev/null differ
diff --git a/plugins/buena/img/holz.jpg b/plugins/buena/img/holz.jpg
deleted file mode 100644
index f06cfa2..0000000
Binary files a/plugins/buena/img/holz.jpg and /dev/null differ
diff --git a/plugins/buena/img/icon-drucken.png b/plugins/buena/img/icon-drucken.png
deleted file mode 100644
index 2ba0cc9..0000000
Binary files a/plugins/buena/img/icon-drucken.png and /dev/null differ
diff --git a/plugins/buena/img/icon-favoriten.png b/plugins/buena/img/icon-favoriten.png
deleted file mode 100644
index b4b3f05..0000000
Binary files a/plugins/buena/img/icon-favoriten.png and /dev/null differ
diff --git a/plugins/buena/img/icon-impressum.png b/plugins/buena/img/icon-impressum.png
deleted file mode 100644
index 89d2aeb..0000000
Binary files a/plugins/buena/img/icon-impressum.png and /dev/null differ
diff --git a/plugins/buena/img/icon-kontakt.png b/plugins/buena/img/icon-kontakt.png
deleted file mode 100644
index 508a803..0000000
Binary files a/plugins/buena/img/icon-kontakt.png and /dev/null differ
diff --git a/plugins/buena/img/klufthemd.png b/plugins/buena/img/klufthemd.png
deleted file mode 100644
index fd39951..0000000
Binary files a/plugins/buena/img/klufthemd.png and /dev/null differ
diff --git a/plugins/buena/img/leitbild_Kontakt_low.jpg b/plugins/buena/img/leitbild_Kontakt_low.jpg
deleted file mode 100644
index 77da787..0000000
Binary files a/plugins/buena/img/leitbild_Kontakt_low.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_Kontakt_low_klein.jpg b/plugins/buena/img/leitbild_Kontakt_low_klein.jpg
deleted file mode 100644
index e1b8aa8..0000000
Binary files a/plugins/buena/img/leitbild_Kontakt_low_klein.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_aktionen_low.jpg b/plugins/buena/img/leitbild_aktionen_low.jpg
deleted file mode 100644
index e454a9b..0000000
Binary files a/plugins/buena/img/leitbild_aktionen_low.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_aktionen_low_klein.jpg b/plugins/buena/img/leitbild_aktionen_low_klein.jpg
deleted file mode 100644
index af4ca8c..0000000
Binary files a/plugins/buena/img/leitbild_aktionen_low_klein.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_bund.jpg b/plugins/buena/img/leitbild_bund.jpg
deleted file mode 100644
index 936de34..0000000
Binary files a/plugins/buena/img/leitbild_bund.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_bund_crop.jpg b/plugins/buena/img/leitbild_bund_crop.jpg
deleted file mode 100644
index ff48638..0000000
Binary files a/plugins/buena/img/leitbild_bund_crop.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_bund_crop_klein.jpg b/plugins/buena/img/leitbild_bund_crop_klein.jpg
deleted file mode 100644
index cd93f93..0000000
Binary files a/plugins/buena/img/leitbild_bund_crop_klein.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_ihs.jpg b/plugins/buena/img/leitbild_ihs.jpg
deleted file mode 100644
index d1c40ae..0000000
Binary files a/plugins/buena/img/leitbild_ihs.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_ihs_klein.jpg b/plugins/buena/img/leitbild_ihs_klein.jpg
deleted file mode 100644
index 0a61331..0000000
Binary files a/plugins/buena/img/leitbild_ihs_klein.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_int2_low.jpg b/plugins/buena/img/leitbild_int2_low.jpg
deleted file mode 100644
index 8fc12c1..0000000
Binary files a/plugins/buena/img/leitbild_int2_low.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_int2_low_klein.jpg b/plugins/buena/img/leitbild_int2_low_klein.jpg
deleted file mode 100644
index 019f674..0000000
Binary files a/plugins/buena/img/leitbild_int2_low_klein.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_pfadfinden_low.jpg b/plugins/buena/img/leitbild_pfadfinden_low.jpg
deleted file mode 100644
index 9edcf2c..0000000
Binary files a/plugins/buena/img/leitbild_pfadfinden_low.jpg and /dev/null differ
diff --git a/plugins/buena/img/leitbild_pfadfinden_low_klein.jpg b/plugins/buena/img/leitbild_pfadfinden_low_klein.jpg
deleted file mode 100644
index 4029fba..0000000
Binary files a/plugins/buena/img/leitbild_pfadfinden_low_klein.jpg and /dev/null differ
diff --git a/plugins/buena/img/loeffel-topf.png b/plugins/buena/img/loeffel-topf.png
deleted file mode 100644
index 34e0e87..0000000
Binary files a/plugins/buena/img/loeffel-topf.png and /dev/null differ
diff --git a/plugins/buena/img/lupe.svg b/plugins/buena/img/lupe.svg
deleted file mode 100644
index 2bb647f..0000000
--- a/plugins/buena/img/lupe.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/plugins/buena/img/schatten.svg b/plugins/buena/img/schatten.svg
deleted file mode 100644
index ad84ff5..0000000
--- a/plugins/buena/img/schatten.svg
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/plugins/buena/img/streichholzschachtel.png b/plugins/buena/img/streichholzschachtel.png
deleted file mode 100644
index 84dbef7..0000000
Binary files a/plugins/buena/img/streichholzschachtel.png and /dev/null differ
diff --git a/plugins/buena/readme.txt b/plugins/buena/readme.txt
deleted file mode 100644
index 57bc7bb..0000000
--- a/plugins/buena/readme.txt
+++ /dev/null
@@ -1,103 +0,0 @@
- Buena
-=======
-
-Das WordPress-Theme zum neuen Corporate Design des BdP.
-
-Änderungswünsche? Kritik?
-philipp.cordes@pfadfinden.de
-
-
- Anderthalb Hinweise zur Benutzung
------------------------------------
-
-Das Theme ist noch nicht ganz fertig, an einigen Stellen wird noch gehobelt.
-
-In Beiträgen mögt ihr bitte erst Überschriften ab 3. Ordnung verwenden,
-die erster Ordnung sind für den Header und die zweiter Ordnung sind für
-die Titel der Beiträge. Es gibt dafür auch fette Hinweise beim Bearbeiten.
-
-
- Eine kleine Änderungshistorie
--------------------------------
-
-v1.0 - TODO
- - Das Abschalten des Posterbilds für ist Seiten und Beiträge ohne Bild möglich.
- - Beitragsarten und deren unterschiedliche Darstellung ist auch für Seiten verfügbar.
- - Schmale Beitragsbilder (<1300px Breite) zerlegen das Layout nicht mehr.
- - Login-Formular im Widgetbereich unterstützen.
-
-v0.99.7 - 21.09.2015
- - Safari bricht jetzt Artikelauflistungen richtig um. Die anderen machen es auch etwas besser.
- - Safari zeigt jetzt Suchfelder richtig an.
- - Safari malt die Trennline in der Navigation nicht mehr zu dick.
- - Wenn das Ajax-Login-Formular benutzt wird, verschwindet das Hamburgermenü nicht mehr.
-
-v0.99.6 - 19.09.2015
- - Weitere Blau- und Gelbtöne einheitlich umgesetzt, v.a. im Editor.
- - Update für Milu: Zusatz „Kategorie“ wird im Titel auf abendlager.pfadfinden.de nicht mehr angezeigt.
- - Der linke Rand wird jetzt immer eingehalten, egal wie lang der Navigationsbereich ist.
- - Anpassung an WordPress 4.3: Favicon kommt nur aus dem Theme, wenn kein eigenes gesetzt ist.
- - Der Hinweis, dass Kommentare nicht möglich sind, wird standardmäßig ausgeblendet.
- - Links in der Navigation färben sich jetzt anhand der Hierarchie im Menü ein, nicht derer der Seiten.
-
-v0.99.5 - 19.08.2015
- - Seitentitel beschreiben jetzt besser, was tatsächlich angezeigt wird.
- - Farben aus dem Handbuch einheitlich umgesetzt.
-
-v0.99.4 - 13.08.2015
- - Das Menü wird automatisch wieder eingeblendet, wenn die Fensterbreite über 720px steigt.
- - Fehlerkorrektur: Es werden keine Urls mehr unter dem Editorfeld ausgegeben.
- - Das Theme ist nicht mehr auf das Plugin angewiesen. Die benötigte Bilbiothek shy-wordpress wird direkt mitgeliefert.
-
-v0.99.3 - 01.08.2015
- - Der Editor sollte jetzt in den meisten Fällen eine realistische Vorschau bieten.
- - Überschriften sind jetzt blau auf gelb.
- Überschriften erster und zweiter Ordnung in Beiträgen und Seiten werden durch Überschriften dritter Ordnung ersetzt.
- - Schrift „Immenhausen“ durch verbesserte Variante ausgetauscht.
- - Kleinere Korrekturen an Abständen.
-
-v0.99.2 - 27.07.2015
- - Kleinere Textanpassungen.
-
-v0.99.1 - 27.07.2015
- - Auf großen Displays wird das Beitragsbild nicht mehr verzerrt.
-
-v0.99 - 26.07.2015
- - Erster Kandidat zur Veröffentlichung als Version 1.0.
- - Die Überschriften erstrahlen in vollem Glanz.
- - Kommentare sehen besser aus.
- - Das Theme ist responsive bis runter auf 300px.
- - Fußleiste überarbeitet und zweigeteilt.
-
-v0.9.1 - 07.07.2015
- - Fehlerkorrektur: Der Titel wird nicht mehr doppelt angezeigt.
-
-v0.9 - 03.07.2015
- - Kommentare werden jetzt angezeigt.
- - Etwas mehr responsive: Mindestbreite 700px für ordentliche Anzeige.
-
-v0.8 - 21.06.2015
- - Standardwidgets sehen jetzt in der Leiste gut aus.
- - Die Fußzeile sitzt jetzt fester an ihrem Platz.
-
-v0.7 - 18.06.2015
- - Große Posterbilder hinzugefügt, die auch auf der Bundeswebseite zu sehen sind.
- - Erhebliche Verbesserungen der Darstellung.
-
-v0.6 - 16.06.2015
- - Mehr Unterstützung für HTML5.
-
-v0.5 - 16.06.2015
- - Fehler behoben, der die WordPress-Installation unbrauchbar machen könnte.
-
-v0.4 - 11.06.2015
- - Navigation überarbeitet.
-
-v0.3 - 10.06.2015
- - Webfont Immenhausen für Überschriften.
-
-v0.2 - 04.06.2015
- - Grafiken eingebaut.
-
-v0.1 - 20.04.2015
- - Erste Veröffentlichung.
diff --git a/plugins/buena/screenshot.png b/plugins/buena/screenshot.png
deleted file mode 100644
index 7909288..0000000
Binary files a/plugins/buena/screenshot.png and /dev/null differ
diff --git a/plugins/buena/src/Pfadfinden/WordPress/BuenaSettings.php b/plugins/buena/src/Pfadfinden/WordPress/BuenaSettings.php
deleted file mode 100644
index fca9537..0000000
--- a/plugins/buena/src/Pfadfinden/WordPress/BuenaSettings.php
+++ /dev/null
@@ -1,24 +0,0 @@
- false,
- 'always_show_poster' => true,
- ];
- }
-}
diff --git a/plugins/buena/src/Pfadfinden/WordPress/BuenaSettingsPage.php b/plugins/buena/src/Pfadfinden/WordPress/BuenaSettingsPage.php
deleted file mode 100644
index 621173e..0000000
--- a/plugins/buena/src/Pfadfinden/WordPress/BuenaSettingsPage.php
+++ /dev/null
@@ -1,32 +0,0 @@
-addSection( '', 'buena' );
-
- return array(
- 'use_cdn' => new CheckboxField(),
- 'always_show_poster' => new CheckboxField(),
- );
- }
-
-
- public function getParentSlug()
- {
- return 'themes.php';
- }
-
- public function getTitle()
- {
- return __( 'Buena-Einstellungen', 'buena-theme' );
- }
-}
diff --git a/plugins/buena/src/Pfadfinden/WordPress/BuenaTheme.php b/plugins/buena/src/Pfadfinden/WordPress/BuenaTheme.php
deleted file mode 100644
index 7a1613e..0000000
--- a/plugins/buena/src/Pfadfinden/WordPress/BuenaTheme.php
+++ /dev/null
@@ -1,320 +0,0 @@
-settings = new BuenaSettings();
-
- $this->addHookMethod( 'after_setup_theme', 'afterSetupTheme' );
- $this->addHookMethod( 'wp_enqueue_scripts', 'enqueueScriptsStyles' );
-
- $this->addHookMethod( 'buena_search_form', 'printSearchForm' );
-
- $this->addHookMethod( 'admin_init', 'initAdministration' );
- $this->addHookMethod( 'mce_css', 'filterEditorStylesheets' );
-
- $this->addHookMethod( 'wp_page_menu', 'filterPageMenu' );
- $this->addHookMethod( 'widgets_init', 'registerSidebars' );
-
- $this->addHookMethod( 'the_content', 'filterContent' );
-
- $this->addHookMethod( 'image_size_names_choose', 'filterImageSizeNames' );
- $this->addHookMethod( 'media_upload_tabs', 'filterMediaTabs' );
- $this->addHookMethod( 'media_view_settings', 'filterMediaViewSettings' );
- $this->addHookMethod( 'media_view_strings', 'filterMediaViewSettings' );
- $this->addHookMethod( 'print_media_templates', 'printMediaTemplates' );
- }
-
-
- public function afterSetupTheme()
- {
- add_theme_support( 'title-tag' );
- add_theme_support( 'automatic-feed-links' );
-
- register_nav_menu( 'primary', __( 'Hauptmenü', 'buena-theme' ) );
- register_nav_menu( 'footer', __( 'Fußzeile', 'buena-theme' ) );
-
- add_theme_support( 'html5', [
- 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption',
- ] );
-
- add_theme_support( 'post-thumbnails' );
- $custom_header = [
- 'width' => apply_filters( 'buena_header_image_width', 1300 ),
- 'height' => apply_filters( 'buena_header_image_height', 635 ),
- 'flex-width' => true,
- 'flex-height' => true,
- 'default-image' => get_template_directory_uri() . '/img/leitbild_aktionen_low.jpg',
- 'uploads' => true,
- 'header-text' => false,
- ];
- add_theme_support( 'custom-header', $custom_header );
- set_post_thumbnail_size( $custom_header['width'], $custom_header['height'], true );
-
- add_image_size( 'gallery-thumb', 350, 165, true );
-
- register_default_headers( [
- 'aktionen' => [
- 'url' => '%s/img/leitbild_aktionen_low.jpg',
- 'thumbnail_url' => '%s/img/leitbild_aktionen_low_klein.jpg',
- 'description' => __( 'Leitbild Aktionen', 'buena-theme' ),
- ],
- 'bund' => [
- 'url' => '%s/img/leitbild_bund_crop.jpg',
- 'thumbnail_url' => '%s/img/leitbild_bund_crop_klein.jpg',
- 'description' => __( 'Leitbild Bund', 'buena-theme' ),
- ],
- 'ihs' => [
- 'url' => '%s/img/leitbild_ihs.jpg',
- 'thumbnail_url' => '%s/img/leitbild_ihs_klein.jpg',
- 'description' => __( 'Leitbild Immenhausen', 'buena-theme' ),
- ],
- 'international' => [
- 'url' => '%s/img/leitbild_int2_low.jpg',
- 'thumbnail_url' => '%s/img/leitbild_int2_low_klein.jpg',
- 'description' => __( 'Leitbild International', 'buena-theme' ),
- ],
- 'kontakt' => [
- 'url' => '%s/img/leitbild_Kontakt_low.jpg',
- 'thumbnail_url' => '%s/img/leitbild_Kontakt_low_klein.jpg',
- 'description' => __( 'Leitbild Kontakt', 'buena-theme' ),
- ],
- 'pfadfinden' => [
- 'url' => '%s/img/leitbild_pfadfinden_low.jpg',
- 'thumbnail_url' => '%s/img/leitbild_pfadfinden_low_klein.jpg',
- 'description' => __( 'Leitbild Pfadfinden', 'buena-theme' ),
- ],
- ] );
- }
-
- public function getTeaserImage()
- {
- if ( is_page() || have_posts() && is_single() ) { // FIXME: is_singular()?
- the_post();
- $thumb = get_the_post_thumbnail( null, 'post-thumbnail', [ 'alt' => '' ] );
- rewind_posts();
-
- if ( $thumb ) {
- return $thumb;
- }
- }
-
- if ( is_home() || $this->settings['always_show_poster'] ) {
- return sprintf(
- '',
- get_header_image(),
- get_custom_header()->height,
- get_custom_header()->width
- );
- }
-
- return '';
- }
-
- /**
- * Gibt einen Titel für die aktuelle Seite aus.
- */
- public function printTitle()
- {
- if ( is_singular() ) {
- the_title();
- } elseif ( is_category() && strpos( $_SERVER['HTTP_HOST'], 'abendlager.pfadfinden.de' ) !== false ) {
- // FIXME: Workaround mit 1.0 entfernen.
- single_cat_title( '', true );
- } elseif ( is_archive() ) {
- the_archive_title();
- } elseif ( is_search() ) {
- esc_html_e( sprintf(
- __( 'Suche nach „%s“', 'buena-theme' ),
- get_search_query( false )
- ) );
- } else {
- bloginfo( 'description' );
- }
- }
-
- public function enqueueScriptsStyles()
- {
- wp_enqueue_style( 'immenhausen-font', get_template_directory_uri() . '/font/ihs.css' );
- wp_enqueue_style( 'buena-style', get_stylesheet_uri() );
- }
-
- /**
- * Gibt das Suchformular aus. Nötig, damit im Kopf anderer Code stehen kann als anderswo.
- */
- public function printSearchForm()
- {
- get_search_form( true );
- }
-
- /**
- * Tut, was dransteht.
- */
- public function registerSidebars()
- {
- register_sidebar( [
- 'id' => 'below-navigation',
- 'name' => __( 'Unter Navigation', 'buena-theme' ),
- 'description' => __( 'Ziemlich schmal.', 'buena-theme' ),
- 'before_title' => '