public/wordpress/wp-content/plugins/wp-courseware/includes/admin/pages/page.php
/**
	 * Page Views.
	 *
	 * Later on, alot of javascript will be used.
	 * This function will be use to register JS views
	 * for javascript.
	 *
	 * @since 4.1.0
	 */
Page Views.
Later on, alot of javascript will be used.
This function will be use to register JS views
for javascript.


Page Views . Later on alot of javascript will be used . This function will be use to register JS views for javascript .
public function views() {
		$views      = array();
		$page_views = $this->get_views();
		$tab_fields = $this->get_tab_fields();
		if ( ! empty( $tab_fields ) ) {
			$common_views = $this->get_common_views();
			foreach ( $tab_fields as $field ) {
				if ( isset( $field['component'] ) && $field['component'] && ! empty( $field['views'] ) ) {
					foreach ( $field['views'] as $view ) {
						$views[ $view ] = $view;
					}
				}
			}
			if ( ! empty( $common_views ) ) {
				foreach ( $common_views as $view ) {
					$views[ $view ] = $view;
				}
			}
		}
		if ( ! empty( $page_views ) ) {
			foreach ( $page_views as $view ) {
				$views[ $view ] = $view;
			}
		}
		if ( ! empty( $views ) ) {
			foreach ( $views as $view ) {
				echo $this->get_view( $view );
			}
		}
	}
public function views ( ) { $ views = array ( ) ; $ page_views = $ this -> get_views ( ) ; $ tab_fields = $ this -> get_tab_fields ( ) ; if ( ! empty ( $ tab_fields ) ) { $ common_views = $ this -> get_common_views ( ) ; foreach ( $ tab_fields as $ field ) { if ( isset ( $ field [ 'component' ] ) && $ field [ 'component' ] && ! empty ( $ field [ 'views' ] ) ) { foreach ( $ field [ 'views' ] as $ view ) { $ views [ $ view ] = $ view ; } } } if ( ! empty ( $ common_views ) ) { foreach ( $ common_views as $ view ) { $ views [ $ view ] = $ view ; } } } if ( ! empty ( $ page_views ) ) { foreach ( $ page_views as $ view ) { $ views [ $ view ] = $ view ; } } if ( ! empty ( $ views ) ) { foreach ( $ views as $ view ) { echo $ this -> get_view ( $ view ) ; } } }
Page Views.
Page Views .