updating the login redirect urls, removing extraneous menu calls
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 24 Jul 2018 13:23:19 +0000 (09:23 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 24 Jul 2018 13:23:19 +0000 (09:23 -0400)
functions.php
header.php
inc/glm-dev.php

index dc6c9aa..ae30a6b 100644 (file)
@@ -275,7 +275,7 @@ define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/opti
 
 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>";
index d4ee71b..4c8ab33 100644 (file)
                <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; ?>
                
index c0676f8..48febcc 100644 (file)
@@ -7,7 +7,7 @@ function glm_login_form( $atts ){
             $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');