function mh_seo_pagedesc($item = null, $tour = null) { if ($item) { $itemdesc = snippet(metadata('item', array('Dublin Core', 'Description')), 0, 500, "..."); return strip_tags($itemdesc); } elseif ($tour) { $tourdesc = snippet(tour('Description'), 0, 500, "..."); return strip_tags($tourdesc); } else { return mh_seo_sitedesc(); } }
function game($seuil) { $needed_point = 100; $total_point = 0; $nb_tour = 0; while ($total_point < $needed_point) { if ($needed_point - $total_point < $seuil) { $seuil = $needed_point - $total_point; } $total_point += tour($seuil); $nb_tour++; } return $nb_tour; }
echo pagination_links(); ?> </div> <?php if (has_tours()) { if (has_tours_for_loop()) { $i = 1; $tourimg = 0; foreach ($tours as $tour) { set_current_record('tour', $tour); $tourdesc = nls2p(tour('description')); echo '<article id="item-result-' . $i . '" class="item-result">'; echo '<h3>' . link_to_tour() . '</h3>'; if ($i <= 10) { echo display_tour_thumb(get_tour_by_id(tour('id')), 0, $userDefined = null); $tourimg++; } echo '<div class="item-description"><p>' . snippet($tourdesc, 0, 300) . '</p></div>'; echo '</article>'; $i++; } } } ?> </section> </div> <div id="page-col-right">
</h3> <?php $i = 1; foreach ($tour->getItems() as $tourItem) { set_current_record('item', $tourItem); $itemID = $tourItem->id; ?> <article class="item-result"> <h3><?php echo $i . '.'; ?> <a href="<?php echo url('/'); ?> items/show/<?php echo $itemID . '?tour=' . tour('id') . '&index=' . ($i - 1) . ''; ?> "> <?php echo metadata($tourItem, array('Dublin Core', 'Title')); ?> </a></h3> <?php if (metadata($tourItem, 'has thumbnail')) { ?> <div class="item-thumb hidden"> <?php echo item_image('square_thumbnail'); ?> </div>
begin_tours('Shapes', 'shapes'); tour('shapes_1_bendinginv_2d', 'Geodesic Bending Invariants for Shapes'); tour('shapes_2_bendinginv_3d', 'Geodesic Bending Invariants for Surfaces'); tour('shapes_3_bendinginv_landmarks', 'Geodesic Bending Invariants with Landmarks'); tour('shapes_4_shape_matching', 'Shape Correspondence with Fast Marching'); tour('shapes_5_geodesic_descriptors', 'Shape Retrieval with Geodesic Descriptors'); tour('shapes_6_medialaxis', 'Geodesic Medial Axsis'); tour('shapes_7_isomap', 'Manifold Learning with Isomap'); end_tours(); begin_tours('Mesh Processing', 'meshproc'); tour('meshproc_1_basics_2d', 'Basics About 2D Triangulation'); tour('meshproc_2_basics_3d', 'Basics About 3D Meshes'); tour('meshproc_3_denoising', 'Mesh Denoising'); tour('meshproc_4_fourier', 'Fourier on Meshes'); tour('meshproc_5_pde', 'PDEs on Meshes'); tour('meshproc_6_volumetric', 'Volumetric Meshes'); end_tours(); begin_tours('Mesh Parameterization and Deformation', 'meshdeform'); tour('meshdeform_1_parameterization', 'Mesh Parameterization'); tour('meshdeform_2_parameterization_sphere', 'Spherical Mesh Parameterization'); tour('meshdeform_3_flattening', 'Spectral Mesh Flattening'); tour('meshdeform_4_barycentric', 'Generalized Barycentric Coordinates for Warpping'); tour('meshdeform_5_deformation', 'Mesh Deformation'); end_tours(); begin_tours('Multiscale Mesh Processing', 'meshwav'); tour('meshwav_1_subdivision_curves', 'Subdivision Curves'); tour('meshwav_2_subdivision_surfaces', 'Subdivision Surfaces'); tour('meshwav_3_simplification', 'Mesh Simplification'); tour('meshwav_4_haar_sphere', 'Spherical Haar Wavelets'); tour('meshwav_5_wavelets', 'Wavelet Transform on 3D Meshes'); end_tours();