@ -15,27 +15,27 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					        {% for lp_data in data %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            {% set show_category = true %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            {% if filtered_category and filtered_category != lp_data.category.id %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            {% if filtered_category and filtered_category != lp_data.category.ii d %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                {% set show_category = false %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            {% endif %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					            {% if show_category %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                {% if configuration == 0 %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                    <!--- old view -->  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                    {% if categories|length > 1 and lp_data.category.id %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                    {% if categories|length > 1 and lp_data.category.ii d %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                        {% if is_allowed_to_edit %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                            <h3 class="page-header">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                {{ lp_data.category.getName() | trim }}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                {% if lp_data.category.getId()  > 0 %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% if not _c. session_id  %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=add_lp_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                {% if lp_data.category.iid  > 0 %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% if not session %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=add_lp_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                           title="{{ "Edit"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <img src="{{ "edit.png"|icon }}" alt="{{ "Edit"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        {% if subscription_settings.allow_add_users_to_lp_category %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=add_users_to_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=add_users_to_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                               title="{{ "Add users"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                <img src="{{ "user.png"|icon }}" alt="{{ "Add users"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            </a>  
				
			 
			
		
	
	
		
			
				
					
						
						
						
							
								 
							 
						
					 
				
				 
				 
				
					@ -46,7 +46,7 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                <img src="{{ "up_na.png"|icon }}" alt="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        {% else %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=move_up_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=move_up_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                               title="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                <img src="{{ "up.png"|icon }}" alt="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            </a>  
				
			 
			
		
	
	
		
			
				
					
						
						
						
							
								 
							 
						
					 
				
				 
				 
				
					@ -57,7 +57,7 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                <img src="{{ "down_na.png"|icon }}" alt="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        {% else %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=move_down_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=move_down_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                               title="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                <img src="{{ "down.png"|icon }}" alt="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            </a>  
				
			 
			
		
	
	
		
			
				
					
						
						
						
							
								 
							 
						
					 
				
				 
				 
				
					@ -65,19 +65,19 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% endif %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% if lp_data.category_visibility == 0 %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="lp_controller.php?{{ course_url_params ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':1}|url_encode }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="lp_controller.php?{{ course_url_params ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.ii d, 'new_status':1}|url_encode }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                           title="{{ 'Show'|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <img src="{{ 'invisible.png'|icon }}" alt="{{ 'Show'|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% else %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="lp_controller.php?{{ course_url_params ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.id, 'new_status':0}|url_encode }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="lp_controller.php?{{ course_url_params ~ '&' ~ {'action':'toggle_category_visibility', 'id':lp_data.category.ii d, 'new_status':0}|url_encode }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                           title="{{ 'Hide'|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <img src="{{ 'visible.png'|icon }}" alt="{{ 'Hide'|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% endif %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% if lp_data.category_is_published == 0 %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="lp_controller.php?{{ course_url_params ~ '&' ~ {'action':'toggle_category_publish', 'id':lp_data.category.id, 'new_status':1}|url_encode }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="lp_controller.php?{{ course_url_params ~ '&' ~ {'action':'toggle_category_publish', 'id':lp_data.category.ii d, 'new_status':1}|url_encode }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                           title="{{ 'LearnpathPublish'|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <img src="{{ 'lp_publish_na.png'|icon }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                 alt="{{ 'LearnpathPublish'|trans }}">  
				
			 
			
		
	
	
		
			
				
					
						
						
						
							
								 
							 
						
					 
				
				 
				 
				
					@ -88,8 +88,8 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <img src="{{ 'lp_publish.png'|icon }}" alt="{{ 'Hide'|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% endif %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% if not _c. session_id  %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="{{ 'lp_controller.php?' ~ course_url_params  ~ '&action=delete_lp_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% if not session %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        <a href="{{ 'lp_controller.php?' ~ course_url_params  ~ '&action=delete_lp_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                           title="{{ "Delete"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            <img src="{{ "delete.png"|icon }}" alt="{{ "Delete"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        </a>  
				
			 
			
		
	
	
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
				
				 
				 
				
					@ -309,18 +309,18 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                    {% if categories|length > 1 and lp_data.category.id %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                        <div class="panel panel-default">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                            <div class="panel-heading" role="tab" id="heading-{{ lp_data.category.getId()  }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                            <div class="panel-heading" role="tab" id="heading-{{ lp_data.category.iid  }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                {% if is_allowed_to_edit %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    <div class="tools-actions pull-right">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        {% if lp_data.category.getId()  > 0 %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            {% if not _c. session_id  %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=add_lp_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        {% if lp_data.category.iid  > 0 %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            {% if not session %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=add_lp_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                   title="{{ "Edit"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    <img src="{{ "edit.png"|icon }}" alt="{{ "Edit"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                {% if subscription_settings.allow_add_users_to_lp_category %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=add_users_to_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=add_users_to_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                       title="{{ "AddUsers"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                        <img src="{{ "user.png"|icon }}" alt="{{ "AddUsers"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    </a>  
				
			 
			
		
	
	
		
			
				
					
						
						
						
							
								 
							 
						
					 
				
				 
				 
				
					@ -331,7 +331,7 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                        <img src="{{ "up_na.png"|icon }}" alt="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                {% else %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=move_up_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=move_up_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                       title="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                        <img src="{{ "up.png"|icon }}" alt="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    </a>  
				
			 
			
		
	
	
		
			
				
					
						
						
						
							
								 
							 
						
					 
				
				 
				 
				
					@ -342,7 +342,7 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                        <img src="{{ "down_na.png"|icon }}" alt="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                {% else %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=move_down_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    <a href="{{ 'lp_controller.php?' ~ course_url_params ~ '&action=move_down_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                       title="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                        <img src="{{ "down.png"|icon }}" alt="{{ "Move"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    </a>  
				
			 
			
		
	
	
		
			
				
					
						
							
								 
							 
						
						
							
								 
							 
						
						
					 
				
				 
				 
				
					@ -379,8 +379,8 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                     alt="{{ 'LearnpathPublish'|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            {% endif %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            {% if not _c. session_id  %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                <a href="{{ 'lp_controller.php?' ~ course_url_params  ~ '&action=delete_lp_category&id=' ~ lp_data.category.getId()  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                            {% if not session %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                <a href="{{ 'lp_controller.php?' ~ course_url_params  ~ '&action=delete_lp_category&id=' ~ lp_data.category.iid  }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                   title="{{ "Delete"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                    <img src="{{ "delete.png"|icon }}" alt="{{ "Delete"|trans }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                                </a>  
				
			 
			
		
	
	
		
			
				
					
						
						
						
							
								 
							 
						
					 
				
				 
				 
				
					@ -390,15 +390,15 @@ 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                {% endif %}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                <h4 class="panel-title">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    <a role="button" data-toggle="collapse" data-parent="#lp-accordion"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                       href="#collapse-{{ lp_data.category.getId()  }}" aria-expanded="true"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                       aria-controls="collapse-{{ lp_data.category.getId()  }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                       href="#collapse-{{ lp_data.category.iid  }}" aria-expanded="true"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                       aria-controls="collapse-{{ lp_data.category.iid  }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                        {{ lp_data.category.getName() }}  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    </a>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                </h4>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                            </div>  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					
 
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                            <div id="collapse-{{ lp_data.category.getId()  }}" class="panel-collapse collapse {{ (categories|length > 1 ? 'in':'') }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                 role="tabpanel" aria-labelledby="heading-{{ lp_data.category.getId()  }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                            <div id="collapse-{{ lp_data.category.iid  }}" class="panel-collapse collapse {{ (categories|length > 1 ? 'in':'') }}"  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                 role="tabpanel" aria-labelledby="heading-{{ lp_data.category.iid  }}">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                <div class="panel-body">  
				
			 
			
		
	
		
			
				
					 
					 
				
				 
				 
				
					                                    {% if lp_data.lp_list %}