Hallo liebe Community,
ich hoffe Ihr könnt mir weiterhelfen.
Wordpress: 4.5.3
Thema: Child von TwentySixteen
Plugin: Theme My Login, ...
Auf der Footer.php möchte ich rechts unten folgendes haben:
Wenn keiner Angemeldet ist:
Impressum | Kontakt | Info | Login
Wenn jemand Angemeldet ist:
Impressum | Kontakt | Info | Logout
Wenn Admin Angemeldet ist:
Dashboard | Impressums | Kontakt | Info |Logout
Folgenden PHP Code habe ich bereits:
(Da ich mich mit PHP nicht auskenne und Google mir leider nicht mehr weiterhelfen kann, wende ich mich an euch)
Footer.php
<?php
/**
* The template for displaying the footer
*
* Contains the closing of the #content div and all content after
*
* @package WordPress
* @subpackage Twenty_Sixteen
* @since Twenty Sixteen 1.0
*/
?>
</div><!-- .site-content -->
<footer id="colophon" class="site-footer" role="contentinfo">
<?php if ( has_nav_menu( 'social' ) ) : ?>
<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
<?php
wp_nav_menu( array(
'theme_location' => 'social',
'menu_class' => 'social-links-menu',
'depth' => 1,
'link_before' => '<span class="screen-reader-text">',
'link_after' => '</span>',
) );
?>
</nav><!-- .social-navigation -->
<?php endif; ?>
<div class="site-info">
<?php
/**
* Fires before the twentysixteen footer text for footer customization.
*
* @since Twenty Sixteen 1.0
*/
do_action( 'twentysixteen_credits' );
?>
if (is_user_logged_in()){
<a href="<?php echo esc_url( __( 'http://..../efgleibnitz/wp-admin') ); ?>"><?php printf( __( 'Dashboard' ), '' ); ?></a>;}
<?php printf( __( '|' ), '' ); ?>
<a href="<?php echo esc_url( __( 'http://www...../Impressum/' ) ); ?>"><?php printf( __( ' Impressum ' ), '' ); ?></a>
<?php printf( __( '|' ), '' ); ?>
<a href="<?php echo esc_url( __( 'http://www...../Kontakt/') ); ?>"><?php printf( __( ' Kontakt ' ), '' ); ?></a>
<?php printf( __( '|' ), '' ); ?>
<a href="<?php echo esc_url( __( 'http://www...../Info/') ); ?>"><?php printf( __( ' Info ' ), '' ); ?></a>
<?php printf( __( '|' ), '' ); ?>
if (is_user_logged_in()){
<a href="<?php echo esc_url( __( 'http://..../efgleibnitz/login') ); ?>"><?php printf( __( ' Login' ), '' ); ?></a>;}
else {
<a href="<?php echo esc_url( __( 'http://..../logout/?_wpnonce=6c3c2deac2') ); ?>"><?php printf( __( ' Logout' ), '' ); ?></a>;}
</div><!-- .site-info -->
</footer><!-- .site-footer -->
</div><!-- .site-inner -->
</div><!-- .site -->
<?php wp_footer(); ?>
</body>
</html>
Ich hoffe Ihr könnt mir weiterhelfen.