</nav> <?php if (qwp_tmpl_has_sub_modules($MODULE[0])) { ?> <div class="container-fluid"> <div class="row"> <div class="col-sm-3 col-md-2 sidebar"> <ul class="nav nav-sidebar"> <?php if (file_exists(join_paths($MODULE_ROOT, 'home.php'))) { ?> <li class="<?php echo $PAGE ? '' : 'active'; ?> "><a href="<?php echo qwp_uri_current_home(); ?> "><?php EL('Dashboard'); ?> <span class="sr-only">(current)</span></a></li> <?php } ?> <?php qwp_tmpl_render_sub_modules(); ?> </ul> </div> <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> <?php
function qwp_uri_login($is_op = false) { $dst_url = P("dsturl"); if (!$dst_url && !qwp_is_passport_module()) { if ($is_op) { $dst_url = qwp_uri_current_home(); } else { $query_string = get_query_string(); if ($query_string) { $dst_url = './?' . get_query_string(); } } } $passport_url = './?m=passport'; if ($dst_url) { $passport_url .= '&dsturl=' . urlencode($dst_url); } return $passport_url; }