function add_logout($items, $args) {
$url = wp_logout_url( home_url() );
- if( $args->theme_location == 'demo' ){
+ if( $args->theme_location == 'primary' ){
$items .= "<li class='menu-item menu-logout'>"
. "<a class='button glm-button' href='$url'>Logout</a>"
. "</li>";
<div class="menu-toggle">d<?php _e( 'Menu', 'accesspress-parallax' ); ?></div>
<?php
- // wp_nav_menu( array(
- // 'theme_location' => 'login' ,
- // 'container' => false
- // ) );
-
-
$sections = of_get_option('parallax_section');
if((of_get_option('enable_parallax') == 1 && of_get_option('enable_parallax_nav') == 1) || (is_page_template('home-page.php') && of_get_option('enable_parallax_nav') == 1)):
?>
<?php
else:
-
- if($page === 'demo' || $page === "my-courses" || $type === "cmvl_channel"){
- wp_nav_menu( array(
- 'theme_location' => 'demo' ,
- 'container' => false
- ) );
- }else {
wp_nav_menu( array(
'theme_location' => 'primary' ,
'container' => false
) );
- }
+
endif; ?>
$args = array(
'echo' => false,
'form_id' => 'glm_login_form',
- 'redirect' => get_permalink(195),
+ 'redirect' => get_permalink(414),
);
$loginForm = wp_login_form($args);
$captcha = apply_filters('cptch_display', '', 'glm_login_form');