'', 'device' => 'iphone-white' ), $atts)); // Taking some globals global $post; $device = !empty($device) ? $device : 'iphone-white'; // Taking some variables $unique = wp_amc_get_unique(); $gallery_id = !empty($id) ? $id : $post->ID; $prefix = WP_AMC_META_PREFIX; // Metabox prefix $arrow = get_post_meta( $gallery_id, $prefix.'arrow_carousel', true ); $arrow = ($arrow == 'false') ? 'false' : 'true'; $pagination = get_post_meta( $gallery_id, $prefix.'pagination_carousel', true ); $pagination = ($pagination == 'false') ? 'false' : 'true'; $pagination_type = get_post_meta( $gallery_id, $prefix.'pagination_type_carousel', true ); $pagination_type = ($pagination_type == 'fraction') ? 'fraction' : 'bullets'; $speed = get_post_meta( $gallery_id, $prefix.'speed_carousel', true ); $speed = (!empty($speed)) ? $speed : '300'; $autoplay = get_post_meta( $gallery_id, $prefix.'autoplay_carousel', true ); $autoplay = ($autoplay == 'false') ? 'false' : 'true'; $autoplay_speed = get_post_meta( $gallery_id, $prefix.'autoplay_speed_carousel', true ); $autoplay_speed = (!empty($autoplay_speed)) ? $autoplay_speed : '3000'; $auto_stop = get_post_meta( $gallery_id, $prefix.'auto_stop_carousel', true ); $auto_stop = ($auto_stop == 'true') ? 'true' : 'false'; $loop = get_post_meta( $gallery_id, $prefix.'loop_carousel', true ); $loop = ($loop == 'true') ? 'true' : 'false'; // Slider configuration $slider_conf = compact('pagination','pagination_type', 'speed','autoplay','autoplay_speed','auto_stop','loop'); // Enqueue required script wp_enqueue_script( 'wpos-swiper-jquery' ); wp_enqueue_script( 'wp-amc-public-js' ); // Getting gallery images $images = get_post_meta($gallery_id, $prefix.'gallery_id', true); ob_start(); if( $images ): ?>