芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/cepali.edu.mx/wp-content/plugins/tp-education/tp-education-shortcode.php
tp_education_create_shortcode(); } public function tp_education_column_class( $int ) { $count = array( 1, 2, 3, 4 ); $class = array( 'one-column', 'two-columns', 'three-columns', 'four-columns' ); $output = str_replace( $count, $class, $int ); echo $output; } public function tp_education_class_shortcode_function( $atts ) { /* * Class Shortcode Function */ ob_start(); $input = shortcode_atts( array( 'category' => '', 'no_of_posts' => 2, 'post_ids' => '', 'column' => 2 ), $atts ); $args = array( 'post_type' => 'tp-class', 'tp-class-category' => $input['category'], 'posts_per_page' => $input['no_of_posts'], 'post__in' => ! empty( $input['post_ids'] ) ? explode( ',', $input['post_ids'] ) : '' ); $the_query = new WP_Query( $args ); if ( $the_query -> have_posts() ) : ?>
have_posts() ) : $the_query -> the_post(); /** * Hook - tp_education_archive_class_content_action. * * @hooked tp_education_archive_class_content - 10 */ do_action( 'tp_education_archive_class_content_action' ); endwhile; ?>
'', 'no_of_posts' => 2, 'post_ids' => '', 'column' => 2 ), $atts ); $args = array( 'post_type' => 'tp-event', 'tp-event-category' => $input['category'], 'posts_per_page' => $input['no_of_posts'], 'post__in' => ! empty( $input['post_ids'] ) ? explode( ',', $input['post_ids'] ) : '' ); $the_query = new WP_Query( $args ); if ( $the_query -> have_posts() ) : ?>
have_posts() ) : $the_query -> the_post(); /** * Hook - tp_education_archive_event_content_action. * * @hooked tp_education_archive_event_content - 10 */ do_action( 'tp_education_archive_event_content_action' ); endwhile; ?>
'', 'no_of_posts' => 2, 'post_ids' => '', 'column' => 2 ), $atts ); $args = array( 'post_type' => 'tp-course', 'tp-course-category' => $input['category'], 'posts_per_page' => $input['no_of_posts'], 'post__in' => ! empty( $input['post_ids'] ) ? explode( ',', $input['post_ids'] ) : '' ); $the_query = new WP_Query( $args ); if ( $the_query -> have_posts() ) : ?>
have_posts() ) : $the_query -> the_post(); /** * Hook - tp_education_archive_course_content_action. * * @hooked tp_education_archive_course_content - 10 */ do_action( 'tp_education_archive_course_content_action' ); endwhile; ?>
'', 'no_of_posts' => 2, 'post_ids' => '', 'column' => 2 ), $atts ); $args = array( 'post_type' => 'tp-excursion', 'tp-excursion-category' => $input['category'], 'posts_per_page' => $input['no_of_posts'], 'post__in' => ! empty( $input['post_ids'] ) ? explode( ',', $input['post_ids'] ) : '' ); $the_query = new WP_Query( $args ); if ( $the_query -> have_posts() ) : ?>
have_posts() ) : $the_query -> the_post(); /** * Hook - tp_education_archive_excursion_content_action. * * @hooked tp_education_archive_excursion_content - 10 */ do_action( 'tp_education_archive_excursion_content_action' ); endwhile; ?>
'', 'no_of_posts' => 2, 'post_ids' => '', 'column' => 2 ), $atts ); $args = array( 'post_type' => 'tp-affiliation', 'tp-affiliation-category' => $input['category'], 'posts_per_page' => $input['no_of_posts'], 'post__in' => ! empty( $input['post_ids'] ) ? explode( ',', $input['post_ids'] ) : '' ); $the_query = new WP_Query( $args ); if ( $the_query -> have_posts() ) : ?>
have_posts() ) : $the_query -> the_post(); /** * Hook - tp_education_archive_affiliation_content_action. * * @hooked tp_education_archive_affiliation_content - 10 */ do_action( 'tp_education_archive_affiliation_content_action' ); endwhile; ?>
'', 'no_of_posts' => 2, 'post_ids' => '', 'column' => 2 ), $atts ); $args = array( 'post_type' => 'tp-team', 'tp-team-category' => $input['category'], 'posts_per_page' => $input['no_of_posts'], 'post__in' => ! empty( $input['post_ids'] ) ? explode( ',', $input['post_ids'] ) : '' ); $the_query = new WP_Query( $args ); if ( $the_query -> have_posts() ) : ?>
have_posts() ) : $the_query -> the_post(); /** * Hook - tp_education_archive_team_content_action. * * @hooked tp_education_archive_team_content - 10 */ do_action( 'tp_education_archive_team_content_action' ); endwhile; ?>
2, 'post_ids' => '', 'column' => 2 ), $atts ); $args = array( 'post_type' => 'tp-testimonial', 'posts_per_page' => $input['no_of_posts'], 'post__in' => ! empty( $input['post_ids'] ) ? explode( ',', $input['post_ids'] ) : '' ); $the_query = new WP_Query( $args ); if ( $the_query -> have_posts() ) : ?>
have_posts() ) : $the_query -> the_post(); /** * Hook - tp_education_archive_testimonial_content_action. * * @hooked tp_education_archive_testimonial_content - 10 */ do_action( 'tp_education_archive_testimonial_content_action' ); endwhile; ?>