2eec86df by Jeff Balicki

ddd

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent dbe7a6ec
...@@ -35,7 +35,7 @@ function resources_list($atts){ ...@@ -35,7 +35,7 @@ function resources_list($atts){
35 <div class="filter-group"> 35 <div class="filter-group">
36 <div class="category-filter-group "> 36 <div class="category-filter-group ">
37 <div class="category"> 37 <div class="category">
38 <?php $terms = get_terms( array( 'taxonomy' => 'resource_category' ,'parent' => 27) ); 38 <?php $terms = get_terms( array( 'taxonomy' => 'resource_category' ,'parent' => $atts['tax']) );
39 foreach($terms as $term){ ?> 39 foreach($terms as $term){ ?>
40 <div class="category-filter"> <input id="<?php echo $term->slug ; ?>" value="<?php echo $term->slug ; ?>" type="checkbox" class="sr-only"><label for="<?php echo $term->slug ; ?>"><?php echo $term->name ; ?></label></div> 40 <div class="category-filter"> <input id="<?php echo $term->slug ; ?>" value="<?php echo $term->slug ; ?>" type="checkbox" class="sr-only"><label for="<?php echo $term->slug ; ?>"><?php echo $term->name ; ?></label></div>
41 <?php }; ?> 41 <?php }; ?>
...@@ -57,21 +57,7 @@ function resources_list($atts){ ...@@ -57,21 +57,7 @@ function resources_list($atts){
57 endwhile; ?> 57 endwhile; ?>
58 </tbody> 58 </tbody>
59 </table> 59 </table>
60 </div> 60 </div>
61 <div class="modal fade" id="login-window" tabindex="-1" aria-labelledby="login-window" aria-hidden="true" style="display: none;">
62 <div class="modal-dialog modal-dialog-centered ">
63 <div class="modal-content">
64 <div class="modal-header">
65 <button type="button" class="btn-close align-self-sm-end" data-bs-dismiss="modal" aria-label="Close"></button>
66 </div>
67 <div class="modal-body d-flex justify-content-center flex-column">
68 <h2 class="modal-title align-self-center">You must be logged in to add resources to your dashboard</h2>
69 <a title="LOG IN" href="my-account/" class="login-btn">Login now</a>
70 <p class="align-self-center">Don’t have a login? <a title="Sign up" href="my-account/" class="">Sign up</a> for an account.<p>
71 </div>
72 </div>
73 </div>
74 </div>
75 <?php endif; 61 <?php endif;
76 wp_reset_query(); 62 wp_reset_query();
77 $output = ob_get_clean(); 63 $output = ob_get_clean();
......