2019
');
//gallery buttons inicializacume
Glr_1.pagination_buttons_bar = document.getElementById('wpda_gall_css_1_pagination_buttons_bar_clas'); // 17-04-2018
Glr_1.sort_mode_conteiner = document.getElementById('wpda_gall_elm_1_sort_mode_conteiner');
Glr_1.main_conteiner = document.getElementById('wpda_gall_elm_1_main_conteiner');
Glr_1.button_for_add_images_in_main_conteiner = document.getElementById('wpda_gall_elm_1_button_for_add_images_in_main_conteiner');
if(1 == 1){Glr_1.button_for_add_images_in_main_conteiner.style.display = 'none';}
Glr_1.button_for_add_images_in_main_conteiner.onclick = function() {
Glr_1.add_more_elements();
};
Glr_1.button_for_lower_images_in_main_conteiner = document.getElementById('wpda_gall_elm_1_button_for_lower_images_in_main_conteiner');
Glr_1.button_for_lower_images_in_main_conteiner.innerHTML = '-' + Glr_1.count_of_added_elements;
Glr_1.button_for_lower_images_in_main_conteiner.onclick = function() {
Glr_1.remove_exsists_elements();
Glr_1.call_duble_resize_for_scroll();
};
Glr_1.open_gallery_button = document.getElementById('wpda_gall_elm_1_open_gallery_button');
Glr_1.open_gallery_button.onclick = function() {
Glr_1.gall_resizeble = 1;
Glr_1.open_gallery();
Glr_1.main_conteiner.style.height='1px'; //for IE 11
Glr_1.call_duble_resize_for_scroll();
Glr_1.open_gallery_button.style.display = 'none';
};
Glr_1.go_back_button = document.getElementById('wpda_gall_elm_1_go_back_button');
Glr_1.go_back_button.onclick = function() {
Glr_1.open_view_mod();
};
//pagination buttons bar initials
(function (){
var i, buttons_conteiner; // 17-04-2018
buttons_conteiner = document.createElement('div'); // 17-04-2018
buttons_conteiner.className = 'wpda_gall_page_buttons_cont'; // 17-04-2018
Glr_1.pagination_buttons_bar.appendChild(buttons_conteiner);
Glr_1.buttons_conteiner = buttons_conteiner;
for(i = 0; i < 15; i++) {
Glr_1.gall_pagination_buttons[i] = document.createElement('BUTTON');
Glr_1.gall_pagination_buttons[i].innerHTML = '' + (i + 11);
Glr_1.gall_pagination_buttons[i].className = 'wpdevar_gall_buton';
}
buttons_conteiner.appendChild(Glr_1.gall_pagination_buttons[11]);
buttons_conteiner.appendChild(Glr_1.gall_pagination_buttons[0]);
buttons_conteiner.appendChild(Glr_1.gall_pagination_buttons[12]);
for(i = 1; i < 11; i++) {
buttons_conteiner.appendChild(Glr_1.gall_pagination_buttons[i]);
}
buttons_conteiner.appendChild(Glr_1.gall_pagination_buttons[13]);
buttons_conteiner.appendChild(Glr_1.gall_pagination_buttons[10]);
buttons_conteiner.appendChild(Glr_1.gall_pagination_buttons[14]); // 17-04-2018
for(i = 0; i < 11; i++) {
Glr_1.gall_pagination_buttons[i].innerHTML = '' + (i + 1);
}
Glr_1.gall_pagination_buttons[11].innerHTML = 'Prev';
Glr_1.gall_pagination_buttons[12].innerHTML = '...';
Glr_1.gall_pagination_buttons[13].innerHTML = '...';
Glr_1.gall_pagination_buttons[12].disabled = true;
Glr_1.gall_pagination_buttons[13].disabled = true;
Glr_1.gall_pagination_buttons[14].innerHTML = 'Next';
for(i = 0; i < 11; i++) {
Glr_1.set_functionality_in_pagination_buttons(i);
}
Glr_1.set_functionality_in_pagination_buttons11();
Glr_1.set_functionality_in_pagination_buttons14();
})();
/////////////////////////// end Glr_1 -i inicializaciayi
//////**********************************for local tema_tree_id*****************************////////////////////////////////////
(function (){
var i;
Glr_1.gallery_tema = [
0,
1,
2,
3
];
Glr_1.album_tema = [
[
1,
2,
3,
4,
5,
6,
7,
8
],
[
0,
1,
2,
3,
4
],
[
0
],
[
0,
1,
2
]
];
Glr_1.wpdevar_gall_gallery_count = Glr_1.gallery_tema.length;
Glr_1.wpdevar_gall_length_gallerianer = [];
for(var i = 0; i < Glr_1.wpdevar_gall_gallery_count; i++ ){
Glr_1.wpdevar_gall_length_gallerianer[i] = Glr_1.album_tema[i].length;
}
})();
//////////////////////////////////end
/////////////////////////// views gallery:ALL_, ALL, album, imaje
//22-04-2017
if('1' == 'all'){
Glr_1.open_gallery_button.onclick();
//jQuery( Glr_1.open_gallery_button ).trigger('click');
jQuery(Glr_1.go_back_button).css('display', 'none');//17-04-2017
Glr_1.go_back_button_show = 2;
}
if('1' == 'all_'){
Glr_1.open_gallery_button.style.display='inline';
Glr_1.go_back_button_show = 3;
}
if('1' != 'all'){if('1' != 'all_'){if('all' == 'all'){
Glr_1.main_conteiner.style.height='1px'; //for IE 11
Glr_1.gall_resizeble = 1;
Glr_1.set_view_pagination_buttons();
Glr_1.call_open_gallery1(wpda_gall_gall_id[1]);
jQuery(Glr_1.go_back_button).css('display', 'none');
Glr_1.go_back_button_show = 1;
}}}
if('1' != 'all'){if('1' != 'all_'){if('all' != 'all'){
Glr_1.main_conteiner.style.height='1px'; //for IE 11
Glr_1.gall_resizeble = 1;
Glr_1.set_view_pagination_buttons();
Glr_1.gallery_current_index = wpda_gall_gall_id[1];
Glr_1.call_open_album1(wpda_gall_alb_id[all]);
jQuery(Glr_1.go_back_button).css('display', 'none');
Glr_1.go_back_button_show = 0;
}}}
window.addEventListener('resize', Glr_1.restart_stop_duble_resize);
window.addEventListener('scroll', Glr_1.call_load_thumb_images);
});
');
//gallery buttons inicializacume
Glr_2.pagination_buttons_bar = document.getElementById('wpda_gall_css_2_pagination_buttons_bar_clas'); // 17-04-2018
Glr_2.sort_mode_conteiner = document.getElementById('wpda_gall_elm_2_sort_mode_conteiner');
Glr_2.main_conteiner = document.getElementById('wpda_gall_elm_2_main_conteiner');
Glr_2.button_for_add_images_in_main_conteiner = document.getElementById('wpda_gall_elm_2_button_for_add_images_in_main_conteiner');
if(1 == 1){Glr_2.button_for_add_images_in_main_conteiner.style.display = 'none';}
Glr_2.button_for_add_images_in_main_conteiner.onclick = function() {
Glr_2.add_more_elements();
};
Glr_2.button_for_lower_images_in_main_conteiner = document.getElementById('wpda_gall_elm_2_button_for_lower_images_in_main_conteiner');
Glr_2.button_for_lower_images_in_main_conteiner.innerHTML = '-' + Glr_2.count_of_added_elements;
Glr_2.button_for_lower_images_in_main_conteiner.onclick = function() {
Glr_2.remove_exsists_elements();
Glr_2.call_duble_resize_for_scroll();
};
Glr_2.open_gallery_button = document.getElementById('wpda_gall_elm_2_open_gallery_button');
Glr_2.open_gallery_button.onclick = function() {
Glr_2.gall_resizeble = 1;
Glr_2.open_gallery();
Glr_2.main_conteiner.style.height='1px'; //for IE 11
Glr_2.call_duble_resize_for_scroll();
Glr_2.open_gallery_button.style.display = 'none';
};
Glr_2.go_back_button = document.getElementById('wpda_gall_elm_2_go_back_button');
Glr_2.go_back_button.onclick = function() {
Glr_2.open_view_mod();
};
//pagination buttons bar initials
(function (){
var i, buttons_conteiner; // 17-04-2018
buttons_conteiner = document.createElement('div'); // 17-04-2018
buttons_conteiner.className = 'wpda_gall_page_buttons_cont'; // 17-04-2018
Glr_2.pagination_buttons_bar.appendChild(buttons_conteiner);
Glr_2.buttons_conteiner = buttons_conteiner;
for(i = 0; i < 15; i++) {
Glr_2.gall_pagination_buttons[i] = document.createElement('BUTTON');
Glr_2.gall_pagination_buttons[i].innerHTML = '' + (i + 11);
Glr_2.gall_pagination_buttons[i].className = 'wpdevar_gall_buton';
}
buttons_conteiner.appendChild(Glr_2.gall_pagination_buttons[11]);
buttons_conteiner.appendChild(Glr_2.gall_pagination_buttons[0]);
buttons_conteiner.appendChild(Glr_2.gall_pagination_buttons[12]);
for(i = 1; i < 11; i++) {
buttons_conteiner.appendChild(Glr_2.gall_pagination_buttons[i]);
}
buttons_conteiner.appendChild(Glr_2.gall_pagination_buttons[13]);
buttons_conteiner.appendChild(Glr_2.gall_pagination_buttons[10]);
buttons_conteiner.appendChild(Glr_2.gall_pagination_buttons[14]); // 17-04-2018
for(i = 0; i < 11; i++) {
Glr_2.gall_pagination_buttons[i].innerHTML = '' + (i + 1);
}
Glr_2.gall_pagination_buttons[11].innerHTML = 'Prev';
Glr_2.gall_pagination_buttons[12].innerHTML = '...';
Glr_2.gall_pagination_buttons[13].innerHTML = '...';
Glr_2.gall_pagination_buttons[12].disabled = true;
Glr_2.gall_pagination_buttons[13].disabled = true;
Glr_2.gall_pagination_buttons[14].innerHTML = 'Next';
for(i = 0; i < 11; i++) {
Glr_2.set_functionality_in_pagination_buttons(i);
}
Glr_2.set_functionality_in_pagination_buttons11();
Glr_2.set_functionality_in_pagination_buttons14();
})();
/////////////////////////// end Glr_2 -i inicializaciayi
//////**********************************for local tema_tree_id*****************************////////////////////////////////////
(function (){
var i;
Glr_2.gallery_tema = [
0,
1,
2,
3
];
Glr_2.album_tema = [
[
1,
2,
3,
4,
5,
6,
7,
8
],
[
0,
1,
2,
3,
4
],
[
0
],
[
0,
1,
2
]
];
Glr_2.wpdevar_gall_gallery_count = Glr_2.gallery_tema.length;
Glr_2.wpdevar_gall_length_gallerianer = [];
for(var i = 0; i < Glr_2.wpdevar_gall_gallery_count; i++ ){
Glr_2.wpdevar_gall_length_gallerianer[i] = Glr_2.album_tema[i].length;
}
})();
//////////////////////////////////end
/////////////////////////// views gallery:ALL_, ALL, album, imaje
//22-04-2017
if('105' == 'all'){
Glr_2.open_gallery_button.onclick();
//jQuery( Glr_2.open_gallery_button ).trigger('click');
jQuery(Glr_2.go_back_button).css('display', 'none');//17-04-2017
Glr_2.go_back_button_show = 2;
}
if('105' == 'all_'){
Glr_2.open_gallery_button.style.display='inline';
Glr_2.go_back_button_show = 3;
}
if('105' != 'all'){if('105' != 'all_'){if('all' == 'all'){
Glr_2.main_conteiner.style.height='1px'; //for IE 11
Glr_2.gall_resizeble = 1;
Glr_2.set_view_pagination_buttons();
Glr_2.call_open_gallery1(wpda_gall_gall_id[105]);
jQuery(Glr_2.go_back_button).css('display', 'none');
Glr_2.go_back_button_show = 1;
}}}
if('105' != 'all'){if('105' != 'all_'){if('all' != 'all'){
Glr_2.main_conteiner.style.height='1px'; //for IE 11
Glr_2.gall_resizeble = 1;
Glr_2.set_view_pagination_buttons();
Glr_2.gallery_current_index = wpda_gall_gall_id[105];
Glr_2.call_open_album1(wpda_gall_alb_id[all]);
jQuery(Glr_2.go_back_button).css('display', 'none');
Glr_2.go_back_button_show = 0;
}}}
window.addEventListener('resize', Glr_2.restart_stop_duble_resize);
window.addEventListener('scroll', Glr_2.call_load_thumb_images);
});