Esempio n. 1
0
             echo '</ul>';
             echo '</div>';
             // close div="find-media-media"
         }
     } else {
         echo '<p>', I18N::translate('No results found.'), '</p>';
     }
     echo '</div>';
 }
 // Output Places
 if ($type == "place") {
     echo '<div id="find-output">';
     if (!$filter || $all) {
         $places = Place::allPlaces($WT_TREE);
     } else {
         $places = Place::findPlaces($filter, $WT_TREE);
     }
     if ($places) {
         echo '<ul>';
         foreach ($places as $place) {
             echo '<li><a href="#" onclick="pasteid(\'', Filter::escapeJs($place->getGedcomName()), '\');">';
             if (!$filter || $all) {
                 echo $place->getReverseName();
                 // When displaying all names, sort/display by the country, then region, etc.
             } else {
                 echo $place->getFullName();
                 // When we’ve searched for a place, sort by this place
             }
             echo '</a></li>';
         }
         echo '</ul>