'', ), $attributes, 'post-carousel' ) ); $post_id = $attributes['id']; $pc_number_of_total_posts = intval( get_post_meta( $post_id, 'pc_number_of_total_posts', true ) ); $pc_number_of_column = intval( get_post_meta( $post_id, 'pc_number_of_column', true ) ); $pc_number_of_column_desktop = intval( get_post_meta( $post_id, 'pc_number_of_column_desktop', true ) ); $pc_number_of_column_tablet = intval( get_post_meta( $post_id, 'pc_number_of_column_tablet', true ) ); $pc_number_of_column_mobile = intval( get_post_meta( $post_id, 'pc_number_of_column_mobile', true ) ); $pc_auto_play_speed = get_post_meta( $post_id, 'pc_auto_play_speed', true ); $pc_nav_arrow_color = get_post_meta( $post_id, 'pc_nav_arrow_color', true ); $pc_nav_arrow_bg = get_post_meta( $post_id, 'pc_nav_arrow_bg', true ); $pc_pagination_color = get_post_meta( $post_id, 'pc_pagination_color', true ); $pc_pagination_active_color = get_post_meta( $post_id, 'pc_pagination_active_color', true ); $pc_scroll_speed = get_post_meta( $post_id, 'pc_scroll_speed', true ); $pc_post_title_color = get_post_meta( $post_id, 'pc_post_title_color', true ); $pc_post_title_hover_color = get_post_meta( $post_id, 'pc_post_title_hover_color', true ); $pc_post_content_color = get_post_meta( $post_id, 'pc_post_content_color', true ); $pc_post_meta_color = get_post_meta( $post_id, 'pc_post_meta_color', true ); $pc_post_meta_hover_color = get_post_meta( $post_id, 'pc_post_meta_hover_color', true ); $pc_carousel_title_color = get_post_meta( $post_id, 'pc_carousel_title_color', true ); $pc_themes = get_post_meta( $post_id, 'pc_themes', true ); $pc_auto_play = $this->get_meta( $post_id, 'pc_auto_play', 'true' ); $pc_pause_on_hover = $this->get_meta( $post_id, 'pc_pause_on_hover', 'true' ); $pc_show_navigation = $this->get_meta( $post_id, 'pc_show_navigation', 'true' ); $pc_show_pagination_dots = $this->get_meta( $post_id, 'pc_show_pagination_dots', 'true' ); $pc_touch_swipe = $this->get_meta( $post_id, 'pc_touch_swipe', 'true' ); $pc_mouse_draggable = $this->get_meta( $post_id, 'pc_mouse_draggable', 'true' ); $pc_rtl = $this->get_meta( $post_id, 'pc_rtl', 'true' ); $pc_post_title = $this->get_meta( $post_id, 'pc_post_title', 'true' ); $pc_post_content = $this->get_meta( $post_id, 'pc_post_content', 'true' ); $pc_post_author = $this->get_meta( $post_id, 'pc_post_author', 'true' ); $pc_post_date = $this->get_meta( $post_id, 'pc_post_date', 'true' ); $pc_carousel_title = $this->get_meta( $post_id, 'pc_carousel_title', 'true' ); $args = array( 'post_type' => 'post', 'orderby' => get_post_meta( $post_id, 'pc_posts_order_by', true ), 'order' => get_post_meta( $post_id, 'pc_posts_order', true ), 'posts_per_page' => $pc_number_of_total_posts, ); $que = new WP_Query( $args ); $outline = ''; $outline .= ' '; $outline .= ''; if ( $pc_themes == 'carousel_one' ) { $outline .= '
" . do_shortcode( $trimexcerpt ) . '
'; } else { $outline .= "" . do_shortcode( $shortexcerpt ) . '
'; } } $outline .= '" . do_shortcode( $trimexcerpt ) . '
'; } else { $outline .= "" . do_shortcode( $shortexcerpt ) . '
'; } } $outline .= '