<style>

.ulp_course_review #rating{

		width: 15%;

}

.ulp_course_review #author{

		width: 18%;

}

.ulp_course_review #post_status{

	width: 10%;

}

.ulp_course_review .ulp-title-inside-table{

    color: #8A8A8A;

		font-size: 14px;

}

.ulp_course_review .ulp-small-button{

		font-size: 14px;

}

.ulp_course_review .ulp-like-link-span{

		font-size: 9px;

}

</style>

<script>

var course_review_url = '<?php echo admin_url('admin.php?page=ultimate_learning_pro&tab=ulp_course_review');?>';

</script>

<div class="ulp-stuffbox">

	<form action="" method="post" role = "form">

			<h3 class="ulp-h3"><?php _e('Course reviews', 'ulp');?></h3>

			<div class="inside">

				<div class="ulp-form-line">

						<h2><?php _e('Activate Course reviews', 'ulp');?></h2>

                        <p><?php _e('Let students write a review about your courses.', 'ulp');?></p>

						<label class="ulp_label_shiwtch" style="    margin: 10px 0 10px -10px;">

							<input type="checkbox" class="ulp-switch" onClick="ulpCheckAndH(this, '#ulp_course_reviews_enabled');" <?php if ($data['metas']['ulp_course_reviews_enabled']) echo 'checked';?> />

							<div class="switch" style="display:inline-block;"></div>

						</label>

						<input type="hidden" name="ulp_course_reviews_enabled" id="ulp_course_reviews_enabled" value="<?php echo $data['metas']['ulp_course_reviews_enabled'];?>" />

				</div>



				<div class="ulp-form-line">

							<h4><?php _e('Restrict student to write only one review per course', 'ulp');?></h4>

							<label class="ulp_label_shiwtch" style="    margin: 10px 0 10px -10px;">

								<input type="checkbox" class="ulp-switch" onClick="ulpCheckAndH(this, '#ulp_course_reviews_limit_one');" <?php if ($data['metas']['ulp_course_reviews_limit_one']) echo 'checked';?> />

								<div class="switch" style="display:inline-block;"></div>

							</label>

							<input type="hidden" name="ulp_course_reviews_limit_one" id="ulp_course_reviews_limit_one" value="<?php echo $data['metas']['ulp_course_reviews_limit_one'];?>" />

				</div>





				<div class="ulp-submit-form" style="margin-top: 20px;">

						<input type="submit" value="Save Changes" name="submit" class="btn btn-primary pointer">

				</div>



		</div>

	</form>

</div>





<div class="ulp-stuffbox">

	<div class="inside">

			<div class="wrap">

					<?php
						$data['add_new'] = admin_url('post-new.php?post_type=ulp_course_review' );
						if (!empty($_GET['list_by_course_id'])){
								$data['add_new'] .= '&course_id='. esc_sql($_GET['list_by_course_id']);
						}
					?>
					<a href="<?php echo $data['add_new'];?>" class="page-title-action ulp-add-new-post-bttn"><?php _e("Add new Course Review", 'ulp');?></a>

			</div>

			<form method="get" action="">

				<input type="hidden" name="page" value="ultimate_learning_pro" />

				<input type="hidden" name="tab" value="ulp_course_review" />

			<?php

			require_once ULP_PATH . 'classes/admin/listing_table/ListCourseReviews.class.php';

			$ListCourses = new ListCourseReviews();

			$ListCourses->finalOutput();

			?>

			</form>

	</div>

</div>

