[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.191.46.254: ~ $
<?php
$columns           = $instance['grid-options']['columns'];
$view_all_course   = ( $instance['view_all_courses'] && '' != $instance['view_all_courses'] ) ? $instance['view_all_courses'] : false;
$view_all_position = ( $instance['view_all_position'] && '' != $instance['view_all_position'] ) ? $instance['view_all_position'] : 'top';
$thumb_w           = ( ! empty( $instance['thumbnail_width'] ) && '' != $instance['thumbnail_width'] ) ? $instance['thumbnail_width'] : apply_filters( 'thim_course_thumbnail_width', 450 );
$thumb_h           = ( ! empty( $instance['thumbnail_width'] ) && '' != $instance['thumbnail_height'] ) ? $instance['thumbnail_height'] : apply_filters( 'thim_course_thumbnail_height', 400 );


$condition = apply_filters( 'eduma/inc/widgets/courses/grid-v3/query_args', $args['condition'] );

$the_query = new WP_Query( $condition );

if ( $the_query->have_posts() ) :
	?>
	<div class="thim-widget-courses-wrapper">
		<?php
		if ( $instance['title'] ) {
			echo ent2ncr( $args['before_title'] . $instance['title'] . $args['after_title'] );
		}
		if ( $view_all_course && 'top' == $view_all_position ) {
			echo '<a class="view-all-courses position-top" href="' . get_post_type_archive_link( 'lp_course' ) . '">' . esc_attr( $view_all_course ) . '</a>';
		}
		?>
		<div class="thim-course-grid">
			<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
				<div class="lpr_course <?php echo 'course-grid-' . $columns; ?>">
					<div class="course-item">
						<div class="course-thumbnail">
							<a href="<?php echo esc_url( get_the_permalink( get_the_ID() ) ); ?>">
								<?php echo thim_get_feature_image( get_post_thumbnail_id( get_the_ID() ), 'full', $thumb_w, $thumb_h, get_the_title() ); ?>
							</a>
							<?php
							do_action( 'thim_inner_thumbnail_course' );
							// only button read more
							do_action( 'thim-lp-course-button-read-more' );
							?>
						</div>

						<div class="thim-course-content">
							<?php learn_press_courses_loop_item_instructor(); ?>
							<?php
							the_title( sprintf( '<h2 class="course-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' );

							do_action( 'learnpress_loop_item_course_meta' );
							?>
						</div>
					</div>
				</div>
			<?php
			endwhile;
			?>
		</div>
		<?php
		if ( $view_all_course && 'bottom' == $view_all_position ) {
			echo '<div class="wrapper-bottom-view-courses"><a class="view-all-courses position-bottom" href="' . get_post_type_archive_link( 'lp_course' ) . '">' . esc_attr( $view_all_course ) . '</a></div>';
		}
		?>
	</div>
<?php
endif;

wp_reset_postdata();

Filemanager

Name Type Size Permission Actions
courses.php File 1.54 KB 0644
grid-instructor-v3.php File 4.83 KB 0644
grid-v3.php File 2.57 KB 0644
grid1-v3.php File 2.85 KB 0644
item-tabs-slider-v3.php File 7.58 KB 0644
list-sidebar-v3.php File 1.42 KB 0644
megamenu-v3.php File 1.25 KB 0644
slider-instructor-v3.php File 1.95 KB 0644
slider-v3.php File 2.27 KB 0644
tabs-slider-v3.php File 5.96 KB 0644
tabs-v3.php File 4.37 KB 0644