Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="sidebar">
- <p><strong>Role:</strong><?php the_field('prole') ?></p> <!-- Project Role -->
- <p><strong>Project Type:</strong> <?php the_field('ptype') ?></p> <!-- Project Type -->
- <?php if(get_field('repeater')): $i = 0; ?>
- <?php while(has_sub_field('repeater')): $i++; ?>
- <a href="#" data-toggle="modal" data-target="#myModal-<?php echo $i; ?>">toggle goes here</a>
- <?php endwhile; ?>
- <?php endif; ?>
- <?php if(get_field('repeater')): $i = 0; ?>
- <?php while(has_sub_field('repeater')): $i++; ?>
- <!-- Modal -->
- <div class="modal fade col-md-4" id="myModal-<?php echo $i; ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
- <div class="modal-dialog modal-lg">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
- <span aria-hidden="true">×</span>
- </button>
- </div> <!-- /modal-header -->
- <div class="row">
- <div class="col-xs-11">
- <img src="<?php the_sub_field('gallery'); ?>" />
- </div><!-- /col -->
- </div> <!-- /row -->
- </div> <!-- /modal-content -->
- </div> <!-- /modal-dialog -->
- </div> <!-- /modal -->
- <?php endwhile; ?>
- <?php endif; ?>
- </div <!-- /sidebar -->
- </div><!-- /col -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement