wpbsav
Diff Revisions
55
vs
56
for /SagreraWP/wp-content/themes/bsav/js/gallery.js
|
@@ -525,7 +525,6 @@ |
525 |
525 |
|
{ |
526 |
526 |
|
if( _.has( data[obj] , 'img' ) ) |
527 |
527 |
|
{ |
528 |
|
- |
|
529 |
528 |
|
Gallery.imagesCommons.push({ |
530 |
529 |
|
id: obj, |
531 |
530 |
|
date: _.has( data[obj] , 'date' ) === true ? data[obj].date.value : null, |
|
@@ -552,7 +551,27 @@ |
552 |
551 |
|
|
553 |
552 |
|
//si son post_type histories no alteramos el orden |
554 |
553 |
|
if( Gallery.currentPostType !== "histories" ) |
|
554 |
+ |
{ |
555 |
555 |
|
Gallery.imagesCommons.reverse(); |
|
556 |
+ |
} |
|
557 |
+ |
|
|
558 |
+ |
if( Gallery.currentPostType == "maquetes" ) |
|
559 |
+ |
{ |
|
560 |
+ |
Gallery.imagesCommons.reverse(); |
|
561 |
+ |
} |
|
562 |
+ |
|
|
563 |
+ |
if( Gallery.currentPostType == "planols" ) |
|
564 |
+ |
{ |
|
565 |
+ |
Gallery.imagesCommons.reverse(); |
|
566 |
+ |
} |
|
567 |
+ |
|
|
568 |
+ |
if( Gallery.currentPostType == "virtuals" ) |
|
569 |
+ |
{ |
|
570 |
+ |
Gallery.imagesCommons.reverse(); |
|
571 |
+ |
} |
|
572 |
+ |
|
|
573 |
+ |
|
|
574 |
+ |
console.log(Gallery.imagesCommons); |
556 |
575 |
|
|
557 |
576 |
|
Gallery.hideVideos(); |
558 |
577 |
|
|