Photos
Videos

  • All
  • Ayurveda

It seems we can’t find what you’re looking for.


jQuery(document).ready(function(){
jQuery(‘#sbs-photo-year-filter’).change(function() {
var taxonomy_name = jQuery(‘#sbs-photo-year-filter option:selected’).text();
var ajaxurl = ‘/wp-admin/admin-ajax.php’;
var container = jQuery(“.sbs-photo-gallery-wrap .pp-posts”);
container.html(‘‘);
var data = {
‘action’: ‘sbs_gallery_ajax_single_post’,
‘taxonomy’: taxonomy_name,
‘type’: ‘photo’,
};
jQuery.post(ajaxurl, data, function(response) {
container.html(response);
})
});
jQuery(‘#sbs-video-year-filter’).change(function() {
var taxonomy_name = jQuery(‘#sbs-video-year-filter option:selected’).text();
var ajaxurl = ‘/wp-admin/admin-ajax.php’;
var container = jQuery(“.sbs-video-container .pp-posts”);
container.html(‘‘);
var data = {
‘action’: ‘sbs_gallery_ajax_single_post’,
‘taxonomy’: taxonomy_name,
‘type’: ‘video’,
};
jQuery.post(ajaxurl, data, function(response) {
container.html(response);
})
});
});
jQuery(document).ready(function() {
jQuery(“.sbs-gallery-select select”).change(function () {
var selval = jQuery(this).val();
if(selval == ‘photos’) {
jQuery(‘.sbs-photo-gallery’).show();
jQuery(‘.sbs-photo-year-filter-wrapper’).show();
jQuery(‘.sbs-video-gallery’).hide();
jQuery(‘.sbs-video-year-filter-wrapper’).hide();
}
if(selval == ‘videos’) {
jQuery(‘.sbs-photo-gallery’).hide();
jQuery(‘.sbs-photo-year-filter-wrapper’).hide();
jQuery(‘.sbs-video-gallery’).show();
jQuery(‘.sbs-video-year-filter-wrapper’).show();
}
});
});