PageSourceSearch

https://www.theartpostblog.com/wp-content/themes/CS2/webpack/src/js/order/order.js?ver=7.1

js theartpostblog.com collected 2026-09-24 18:36:25 UTC 5,664 bytes, 142 lines download raw bytes

1jQuery(function($) {
2  // Verifica se esiste <main> con la classe home-page
3  if ($('main.home-page').length) {
4    // Se la finestra è sotto i 991px, fai il reorder
5    if ($(window).width() < 991) {
6      var container = $('main.home-page .layout-content .row');
7      var newWrapper = $('<div class="col-12"></div>');
8
9      var order = [
10        '.section-in-evidenza',          // IN EVIDENZA
11        '.section-placeholder-wide',     // PLACEHOLDER 1
12        '.section-biglietti',            // BIGLIETTI
13        '.section-placeholder',          // PLACEHOLDER 2
14        '.section-eventi-mostre',        // EVENTI MOSTRE
15        '.section-cosa-vedere',          // COSA VEDERE A
16        '.section-seguimi',              // SEGUIMI SU
17        '.section-musei-gallerie',       // MUSEI GALLERIE
18        '.section-newsletter-right-col', // NEWSLETTER
19        '.section-scuole-periodi',       // SCUOLE PERIODI
20        '.section-biografie-curiosita',  // BIOGRAFIE E CURIOSITÀ
21        '.section-rubriche',             // RUBRICHE
22        '.section-select-topic'          // CUSTOM SELECT
23      ];
24
25      $.each(order, function(i, selector) {
26        var el = container.find(selector);
27        if (el.length) {
28          newWrapper.append(el);
29        }
30      });
31
32      container.empty().append(newWrapper);
33    }
34  }
35
36  if ($('body.page main:not(.classic-cs2-page)').length) {
37    // Se la finestra è sotto i 991px, fai il reorder
38    if ($(window).width() < 991) {
39      var container = $('body.page main:not(.classic-cs2-page):not(.home-page) .layout-content article .container-standard .row');
40      var newWrapper = $('<div class="col-12"></div>');
41      
42      var order = [
43        '.section-first',        // EVENTI MOSTRE
44        '.section-second',            // BIGLIETTI
45        '.section-third',          // PLACEHOLDER 2
46        '.section-five',          // COSA VEDERE A
47        '.section-six',              // SEGUIMI SU
48        '.section-seven',       // MUSEI GALLERIE
49        '.section-eight', // NEWSLETTER
50        '.section-nine',       // SCUOLE PERIODI
51        '.section-ten',             // RUBRICHE
52      ];
53
54      $.each(order, function(i, selector) {
55        var el = container.find(selector);
56        if (el.length) {
57          newWrapper.append(el);
58        }
59      });
60
61      container.empty().append(newWrapper);
62    }
63  }
64  if ($('body.single main').length) {
65      if ($(window).width() < 991) {
66        var container = $('body.single main .layout-content .row');
67        var newWrapper = $('<div class="col-12"></div>');
68  
69        // Check if it's a single-biglietti post
70        if ($('main.single-biglietti-selector').length) {
71          var order = [
72            '.section-single-biglietti-intro',           // 1
73            '.section-biglietto-banner',                 // 2
74            '.section-posts-biglietti',                  // 3
75            '.section-placeholder',                      // 4
76            '.section-related',                          // 5
77            '.section-seguimi',                          // 6
78            '.section-cosa-vedere',                      // 7
79            '.section-newsletter-right-col',             // 8
80            '.section-scuole-periodi'                    // 9
81          ];
82        } else if($('main.single-not-biglietti').length){
83          var order = [
84            '.section-single-intro',                     // 1
85            '.section-posts',                            // 2
86            '.section-placeholder',                      // 3
87            '.section-related',                          // 4
88            '.section-seguimi',                          // 5
89            '.section-cosa-vedere',                      // 6
90            '.section-newsletter-right-col',             // 7
91            '.section-scuole-periodi'                    // 8
92          ];
93        } else {
94          var order = [
95            '.section-single-biglietti-intro',           // 1
96            '.section-single-intro',                     // 2
97            '.section-biglietto-banner',                 // 3
98            '.section-posts-biglietti',                  // 4
99            '.section-posts',                            // 5
100            '.section-placeholder',                      // 6
101            '.section-related',                          // 7
102            '.section-seguimi',                          // 8
103            '.section-cosa-vedere',                      // 9
104            '.section-newsletter-right-col',             // 10
105            '.section-scuole-periodi'                    // 11
106          ];
107        }
108  
109        $.each(order, function(i, selector) {
110          var el = container.find(selector);
111          if (el.length) {
112            newWrapper.append(el);
113          }
114        });
115  
116        container.empty().append(newWrapper);
117      }
118    }
119  if ($('body.tag main:not(.single-biglietti-selector):not(.single-not-biglietti)').length) {
120    if ($(window).width() < 991) {
121        var container = $('body.tag main:not(.single-biglietti-selector):not(.single-not-biglietti) .layout-content .row');
122        var newWrapper = $('<div class="col-12"></div>');
123  
124        var order = [
125          '.section-tag-post',         
126          '.section-placeholder',                   
127          '.section-biglietto-banner',               
128          '.section-rubriche', 
129          '.section-seguimi',                
130        ];
131  
132        $.each(order, function(i, selector) {
133          var el = container.find(selector);
134          if (el.length) {
135            newWrapper.append(el);
136          }
137        });
138  
139        container.empty().append(newWrapper);
140      }
141    }
142});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.