Subversion Repository Public Repository

wpbsav

Diff Revisions 58 vs 59 for /SagreraWP/wp-content/themes/bsav/includes/Gallery.php

Diff revisions: vs.
  @@ -7,7 +7,7 @@
7 7
8 8 public function __construct()
9 9 {
10 - wp_register_script( 'ajax_gallery', get_template_directory_uri().'/js/gallery.js' );
10 + wp_register_script( 'ajax_gallery', get_template_directory_uri().'/js/gallery.min.js' );
11 11 wp_register_script( 'blockui', get_template_directory_uri().'/js/blockui.js' );
12 12 wp_enqueue_script('ajax_gallery');
13 13 wp_enqueue_script('blockui');
  @@ -109,7 +109,7 @@
109 109 OR meta_key = 'wpcf-videos-gallery'
110 110 OR meta_key = 'wpcf-date-gallery'
111 111 )
112 - ORDER BY p.ID DESC
112 + ORDER BY p.post_date ASC
113 113 ";
114 114
115 115 $childrens = $wpdb->get_results($qry, OBJECT);