Template::dozent_dashboard( $template )


Source

File: classes/Template.php

    public function dozent_dashboard( $template ){

        if ( is_dozent_dashboard() ) {
        	global $wp_query;

	        $dashboard_page = dozent_array_get('dozent_dashboard_page', $wp_query->query_vars);

	        do_action( 'dozent_dashboard_template_before_'.$dashboard_page );

	        $dashboard_pages = dozent_dashboard_permalinks();
	        $dashboard_page_item = dozent_array_get($dashboard_page, $dashboard_pages);

	        if ( $dashboard_page && dozent_array_get( 'guest_item', $dashboard_page_item ) ){
		        $template = dozent_get_template_path( "partial.{$dashboard_page}" );
	        }else{
		        $template = dozent_get_template_path( 'dashboard' );
	        }
        }

        return $template;
    }