| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- /**
- * Portfolio scrollable template
- *
- * @package vamtam/consulting
- */
- $slider_options = array(
- 'layoutMode' => 'slider',
- 'drag' => true,
- 'auto' => false,
- 'autoTimeout' => 5000,
- 'autoPauseOnHover' => true,
- 'showNavigation' => true,
- 'showPagination' => true,
- 'scrollByPage' => false,
- 'gridAdjustment' => 'responsive',
- 'mediaQueries' => VamtamTemplates::scrollable_columns( $max_columns ),
- 'gapHorizontal' => $settings->gap ? 30 : 0,
- 'gapVertical' => $settings->gap ? 30 : 0,
- 'displayTypeSpeed' => 100,
- );
- wp_enqueue_style( 'cubeportfolio' );
- if ( VamtamTemplates::early_cube_load() ) {
- wp_enqueue_script( 'cubeportfolio' );
- }
- $wrapper_class = array(
- 'portfolios',
- 'title-' . $settings->show_title,
- $settings->description ? 'has-description' : 'no-description',
- $settings->gap ? 'has-gap' : 'no-gap',
- $settings->class,
- );
- $GLOBALS['vamtam_inside_cube'] = true;
- ?>
- <section class="<?php echo esc_attr( implode( ' ', $wrapper_class ) ) ?>">
- <div class="portfolio-items vamtam-cubeportfolio cbp cbp-slider-edge" data-options="<?php echo esc_attr( json_encode( $slider_options ) ) ?>">
- <?php
- while ( $portfolio_query->have_posts() ) : $portfolio_query->the_post();
- include locate_template( 'templates/portfolio/loop/item.php' );
- endwhile;
- ?>
- </div>
- </section>
- <?php
- $GLOBALS['vamtam_inside_cube'] = false;
|