Created
April 15, 2015 17:03
-
-
Save drrobotnik/b463c2d388dc3116559f to your computer and use it in GitHub Desktop.
potential structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
::: layout file structure ::: | |
acf/ | |
layouts/ | |
carousel-products/ | |
layout.json | |
layout-carousel-products.php | |
css/ | |
slick.min.css | |
style.css | |
... | |
js/ | |
jquery.min.js | |
slick.min.js | |
main.js | |
... | |
img/ | |
... | |
... | |
hero-slider/ | |
layout.json | |
layout-hero-slider.php | |
css/ | |
slick.min.css | |
style.css | |
... | |
js/ | |
jquery.min.js | |
slick.min.js | |
main.js | |
... | |
img/ | |
... | |
... | |
::: layout-carousel-products.php ::: | |
if( !have_rows('carousel_products') ) | |
return; | |
wp_enqueue_script('slick'); | |
// loop through the rows of data | |
while ( have_rows('repeater_field_name') ) : the_row(); | |
// display a sub field value | |
the_sub_field('sub_field_name'); | |
endwhile; | |
::: layout-hero-slider.php ::: | |
if( !have_rows('hero_slider') ) | |
return; | |
wp_enqueue_script('slick'); | |
// loop through the rows of data | |
while ( have_rows('repeater_field_name') ) : the_row(); | |
// display a sub field value | |
the_sub_field('sub_field_name'); | |
endwhile; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment