Included mareike theme
This commit is contained in:
parent
33287c4b40
commit
5b6b06e70d
@ -57,12 +57,14 @@ add_action('wp_ajax_kompass_show_ajax', 'kompass_load_ajax_content');
|
||||
add_action('wp_ajax_nopriv_kompass_show_ajax', 'kompass_load_ajax_content');
|
||||
|
||||
function register_custom_theme_directory() {
|
||||
$file = ABSPATH . '/wp-content/plugins/bdp-kompass/buena/' ;
|
||||
if (is_dir(ABSPATH . '/wp-content/themes/mareike-theme/')) {
|
||||
return;
|
||||
}
|
||||
$file = ABSPATH . '/wp-content/plugins/bdp-kompass/lib/mareike-theme/' ;
|
||||
|
||||
system('mkdir ' . ABSPATH . 'wp-content/themes/buena/');
|
||||
system('cp -r ' . $file . '* ' . ABSPATH . 'wp-content/themes/buena/');
|
||||
system('mkdir ' . ABSPATH . '/wp-content/themes/mareike-theme/');
|
||||
system('cp -r ' . $file . '* ' . ABSPATH . '/wp-content/themes/mareike-theme/');
|
||||
|
||||
switch_theme('buena');
|
||||
}
|
||||
|
||||
function enqueue_custom_password_js() {
|
||||
|
@ -52,7 +52,7 @@ function bdp_kompass_load_plugin_textdomain() {
|
||||
function kompass_after_setup_theme()
|
||||
{
|
||||
setup_site_roles();
|
||||
#register_custom_theme_directory();
|
||||
register_custom_theme_directory();
|
||||
|
||||
}
|
||||
|
||||
|
BIN
lib/mareike-theme/assets/logo.png
Normal file
BIN
lib/mareike-theme/assets/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 132 KiB |
7
lib/mareike-theme/footer.php
Normal file
7
lib/mareike-theme/footer.php
Normal file
@ -0,0 +1,7 @@
|
||||
<footer class="footer">
|
||||
<p>© <?php echo date('Y'); ?> mareike powered by BdP Bund der Pfadfinderinnen und Pfadfinderrt - LV Sachsen e.V </p>
|
||||
</footer>
|
||||
</div><!-- .container -->
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
58
lib/mareike-theme/functions.php
Normal file
58
lib/mareike-theme/functions.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
function custom_theme_setup() {
|
||||
// Unterstützung für Menüs hinzufügen
|
||||
add_theme_support('menus');
|
||||
|
||||
// Menüpositionen registrieren
|
||||
register_nav_menus(array(
|
||||
'primary' => __('Primary Menu')
|
||||
));
|
||||
}
|
||||
add_action('after_setup_theme', 'custom_theme_setup');
|
||||
|
||||
// Theme Customizer anpassen
|
||||
function custom_customize_register($wp_customize) {
|
||||
$wp_customize->add_section('custom_nav_settings', array(
|
||||
'title' => __('Navigation Settings', 'custom-nav-theme'),
|
||||
'priority' => 30,
|
||||
));
|
||||
|
||||
$wp_customize->add_setting('custom_nav_pages', array(
|
||||
'default' => '',
|
||||
'sanitize_callback' => 'absint',
|
||||
));
|
||||
|
||||
$wp_customize->add_control(new WP_Customize_Control($wp_customize, 'custom_nav_pages', array(
|
||||
'label' => __('Select Pages for Navigation', 'custom-nav-theme'),
|
||||
'section' => 'custom_nav_settings',
|
||||
'settings' => 'custom_nav_pages',
|
||||
'type' => 'dropdown-pages',
|
||||
'multiple' => true,
|
||||
)));
|
||||
}
|
||||
|
||||
add_action( 'admin_enqueue_scripts', 'mareike_theme_setup' );
|
||||
add_action('customize_register', 'custom_customize_register');
|
||||
add_action('wp_enqueue_scripts', 'mein_child_theme_enqueue_styles');
|
||||
|
||||
function mein_child_theme_enqueue_styles() {
|
||||
wp_enqueue_style('registerform', get_template_directory_uri() . '/style.css');
|
||||
}
|
||||
|
||||
|
||||
|
||||
function mareike_theme_setup() {
|
||||
wp_enqueue_style( 'custom-dashboard-styles', get_template_directory_uri() . '/mareike.css' );
|
||||
}
|
||||
|
||||
|
||||
function custom_registration_form() {
|
||||
wp_enqueue_style('registerform', get_template_directory_uri() . '/style.css');
|
||||
}
|
||||
|
||||
function login_style() {
|
||||
wp_enqueue_style('registerform', get_template_directory_uri() . '/style.css');
|
||||
}
|
||||
|
||||
add_action('register_form', 'custom_registration_form');
|
||||
add_action('login_enqueue_scripts', 'login_style');
|
48
lib/mareike-theme/header.php
Normal file
48
lib/mareike-theme/header.php
Normal file
@ -0,0 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?>>
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php wp_title(); ?></title>
|
||||
<?php wp_head(); ?>
|
||||
<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>">
|
||||
</head>
|
||||
<body <?php body_class(); ?>>
|
||||
|
||||
<div class="container" <?php if(!is_user_logged_in()) echo 'style="position: relative; top: 30px !important;"'; ?>>
|
||||
<header class="header">
|
||||
<div>
|
||||
<img style="width:250px; height: 150px;" src="<?= get_template_directory_uri(); ?>/assets/logo.png" />
|
||||
</div>
|
||||
<div style="position: relative; top: 10px; width: 305px;">
|
||||
<?php
|
||||
if (is_user_logged_in()) {
|
||||
?>
|
||||
|
||||
<a href="<?php echo esc_url(admin_url('users.php?page=mareike-profile')); ?>" style="position: relative;" class="theme_mareike_mainpage_button">Profil</a>
|
||||
<a href="<?php echo get_site_url() . '/wp-login.php?action=logout'; ?>" style="position: relative;" class="button theme_mareike_mainpage_button">Abmelden</a>
|
||||
<?php
|
||||
} else {
|
||||
?>
|
||||
<a href="<?php echo get_site_url() . '/wp-login.php?action=register'; ?>" style="position: relative;" class="button theme_mareike_mainpage_button">Registrieren</a>
|
||||
<a href="<?php echo get_site_url() . '/wp-login.php'; ?>" style="position: relative;" class="button theme_mareike_mainpage_button">Anmelden</a>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</header>
|
||||
<div class="flex-container">
|
||||
<nav class="navbar">
|
||||
<div class="navcontainer">
|
||||
<?php
|
||||
wp_nav_menu(array(
|
||||
'theme_location' => 'primary',
|
||||
'container' => false,
|
||||
'menu_class' => 'navbar-nav'
|
||||
));
|
||||
?>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
21
lib/mareike-theme/index.php
Normal file
21
lib/mareike-theme/index.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<main>
|
||||
<div class="content">
|
||||
<?php if ( have_posts() ) : ?>
|
||||
<?php while ( have_posts() ) : the_post(); ?>
|
||||
<article <?php post_class(); ?>>
|
||||
<h2><?php the_title(); ?></h2>
|
||||
<div class="entry-content">
|
||||
<?php the_content(); ?>
|
||||
</div>
|
||||
</article>
|
||||
<?php endwhile; ?>
|
||||
<?php else : ?>
|
||||
<p>Es gibt keine Inhalte.</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<?php get_footer(); ?>
|
BIN
lib/mareike-theme/screenshot.png
Normal file
BIN
lib/mareike-theme/screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 69 KiB |
255
lib/mareike-theme/style.css
Normal file
255
lib/mareike-theme/style.css
Normal file
@ -0,0 +1,255 @@
|
||||
/*
|
||||
Theme Name: mareike
|
||||
Theme URI: https://repos.contelli.de/mareike-theme/
|
||||
Author: Max Mustermann
|
||||
Author URI: https://contelli.de
|
||||
Description: Ein einfaches WordPress-Theme für den Einstieg.
|
||||
Version: 1.0
|
||||
Text Domain: mareike-theme
|
||||
*/
|
||||
|
||||
/* Hier kannst du deine Styles hinzufügen */
|
||||
body {
|
||||
font-family: Figtree, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
|
||||
background-color: #edf2f7;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
.container {
|
||||
position: relative;
|
||||
top: -40px;
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
padding: 0;
|
||||
background-color: #e5e7eb;
|
||||
--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);
|
||||
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
|
||||
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);
|
||||
}
|
||||
|
||||
.flex-container {
|
||||
display: flex;
|
||||
min-height: 250px;
|
||||
|
||||
|
||||
}
|
||||
|
||||
h2 {
|
||||
position: absolute;
|
||||
top: 140px;
|
||||
background-color: #ffffff;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-color: #e5e7eb;
|
||||
border-radius: 10px;
|
||||
padding: 0 60px 5px 20px;
|
||||
border-left-width: 40px;
|
||||
font-size: 12pt;
|
||||
|
||||
}
|
||||
|
||||
.header {
|
||||
background-color: rgb(255, 203, 4);
|
||||
color: #fff;
|
||||
height: 150px;
|
||||
padding: 10px 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
background-color: #e5e7eb !important;
|
||||
width: 20rem;
|
||||
min-height: 100% !important;
|
||||
height: 100% !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.navcontainer {
|
||||
min-height: 100% !important;
|
||||
height: 100% !important;
|
||||
background-color: #ffffff;
|
||||
margin: 0 !important;
|
||||
|
||||
}
|
||||
|
||||
.navcontainer ul {
|
||||
margin: 0px;
|
||||
margin-left: -40px;
|
||||
|
||||
}
|
||||
|
||||
.navcontainer li {
|
||||
border-bottom-color: #e5e7eb;
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-style: solid;
|
||||
padding: 10px 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.navcontainer li:hover {
|
||||
background-color: #29c2f8;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.navcontainer li a {
|
||||
text-decoration: none;
|
||||
color: #374151;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.navcontainer li:hover a {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
main {
|
||||
background-color: #ffffff !important;
|
||||
width: 100%;
|
||||
padding-bottom: 650px;
|
||||
padding-right: 20px;
|
||||
padding-top: 50px;
|
||||
color: rgb(107, 114, 128);
|
||||
}
|
||||
|
||||
.content {
|
||||
padding-left: 50px;
|
||||
}
|
||||
|
||||
.footer {
|
||||
background-color: #e5e7eb;
|
||||
color: #fff;
|
||||
padding: 1px !important;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#wpadminbar {
|
||||
display: none !important;
|
||||
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
button {
|
||||
background-color: #ffffff;
|
||||
padding: 7px;
|
||||
border-color: #e5e7eb;
|
||||
border-radius: 5px;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
button,
|
||||
input[type="submit"]{
|
||||
cursor: pointer;
|
||||
border-radius: 10px;
|
||||
padding: 10px;
|
||||
background-color: #ffffff;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
}
|
||||
|
||||
button:hover,
|
||||
input[type="submit"]:hover {
|
||||
background-color: #0d66c2;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
select {
|
||||
padding: 7px;
|
||||
border-color: #e5e7eb;
|
||||
border-radius: 5px;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
.theme_mareike_mainpage_button {
|
||||
background-color:#F3F4F6;
|
||||
padding: 5px 30px;
|
||||
border-radius: 10px;
|
||||
border-style: solid;
|
||||
border-width: 0px;
|
||||
width: 150px;
|
||||
font-size: 12pt;
|
||||
text-decoration: none;
|
||||
color: #000000;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
.navbar {
|
||||
width: 20rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
position: absolute;
|
||||
top: 140px;
|
||||
background-color: #ffffff;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
border-color: #e5e7eb;
|
||||
border-radius: 10px;
|
||||
padding: 0 40px 5px 20px;
|
||||
border-left-width: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Styling für das Registrierungsformular */
|
||||
.register {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
background: #000000;
|
||||
border: 1px solid #ddd;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.message {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#registerform {
|
||||
position: relative;
|
||||
width: 768px;
|
||||
left: -200px !important;
|
||||
}
|
||||
|
||||
.login h1 {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
#login #nav,
|
||||
#backtoblog,
|
||||
.language-switcher
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.register input[type="text"],
|
||||
.register input[type="password"],
|
||||
.register input[type="email"] {
|
||||
width: 100%;
|
||||
padding: 10px;
|
||||
margin-bottom: 10px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.register input[type="submit"] {
|
||||
background: #0073aa;
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 10px 20px;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.register input[type="submit"]:hover {
|
||||
background: #005177;
|
||||
}
|
Loading…
Reference in New Issue
Block a user