diff --git a/frontend/src/css/_content.scss b/frontend/src/css/_content.scss index a7dc8f7..545372f 100644 --- a/frontend/src/css/_content.scss +++ b/frontend/src/css/_content.scss @@ -160,3 +160,23 @@ max-height: 200px; } } + +img.aligncenter { + display: block; + margin-left: auto; + margin-right: auto; +} + +img.alignright { + float: right; + margin: 5px 0 20px 20px; +} + +img.alignleft { + float: left; + margin: 5px 20px 20px 0; +} + +.wysiwyg { + white-space: pre-line; +} diff --git a/wordpress/gloggi-plugin/gloggi.php b/wordpress/gloggi-plugin/gloggi.php index 40bda72..9bc99ca 100644 --- a/wordpress/gloggi-plugin/gloggi.php +++ b/wordpress/gloggi-plugin/gloggi.php @@ -688,10 +688,6 @@ function gloggi_custom_post_type_specialevent( $wpptd ) { 'type' => 'wysiwyg', 'required' => true, ), - 'kontaktbild' => array( - 'title' => __( 'Bild', 'gloggi' ), - 'type' => 'media', - ), ), ), ), diff --git a/wordpress/gloggi-theme/agenda.php b/wordpress/gloggi-theme/agenda.php index 6892b20..89a6009 100644 --- a/wordpress/gloggi-theme/agenda.php +++ b/wordpress/gloggi-theme/agenda.php @@ -255,6 +255,30 @@ function gloggi_aggregate_subchildren($subchildren, $root, $visited=array()) { + diff --git a/wordpress/gloggi-theme/files/css/main.css b/wordpress/gloggi-theme/files/css/main.css index 9658f94..ac0db7f 100644 --- a/wordpress/gloggi-theme/files/css/main.css +++ b/wordpress/gloggi-theme/files/css/main.css @@ -555,6 +555,22 @@ ul { .content__big_image_container { max-height: 200px; } } +img.aligncenter { + display: block; + margin-left: auto; + margin-right: auto; } + +img.alignright { + float: right; + margin: 5px 0 20px 20px; } + +img.alignleft { + float: left; + margin: 5px 20px 20px 0; } + +.wysiwyg { + white-space: pre-line; } + .footer { min-height: 250px; font-size: 18px;