Skip to content

Commit

Permalink
compatibility: tour builder 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ebellempire committed Jun 11, 2024
1 parent 5b27528 commit b28658d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion curatescape/theme.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ website = "https://curatescape.org"
support_link = "https://forum.curatescape.org"
omeka_minimum_version="2.1"
omeka_tested_up_to="3.1.2"
version="3.5.3"
version="3.5.4"
tags="Curatescape, mobile-first, responsive, app, map, tour, story"
5 changes: 4 additions & 1 deletion curatescape/tour-builder/tours/browse.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@
if( has_tours_for_loop() ){
$i=1;
$tourimg=0;

if(function_exists('active_sort_tours')){ // tour builder 2.0
$active_sort = isset($_GET['sort_field']) ? array() : array('ordinal','a');
$tours = active_sort_tours($tours,$active_sort);
}
foreach( $tours as $tour ){
set_current_record( 'tour', $tour );

Expand Down

0 comments on commit b28658d

Please sign in to comment.