示例#1
0
?>
" /></td>
            </tr>
          </span>
          <?php 
foreach ($indexed as $facet_name) {
    ?>
              <?php 
    $free_facet_name = preg_replace('/_s_admin$/i', '_t_admin', $facet_name);
    ?>
              <?php 
    $free_facet_name = preg_replace('/_s$/i', '_t', $free_facet_name);
    ?>
              <tr>
                  <?php 
    $label = __(SolrSearch_Helpers_Facet::keyToLabel($facet_name));
    ?>
                  <td style="vertical-align: top;" width="100px"><strong><?php 
    echo $label;
    ?>
</strong></td>
                  <td style="vertical-align: top;" width="40px"><button type="button" class="add_search"><?php 
    echo "+";
    ?>
</button></td>
                  <td>
                  <?php 
    if (array_key_exists($free_facet_name, $ordered_applied_facets)) {
        ?>
                      <?php 
        foreach ($ordered_applied_facets[$free_facet_name] as $facet_search_value) {
echo __('Limit your search');
?>
</h2>

  <?php 
foreach ($results->facet_counts->facet_fields as $name => $facets) {
    ?>

    <!-- Does the facet have any hits? -->
    <?php 
    if (count(get_object_vars($facets))) {
        ?>

      <!-- Facet label. -->
      <?php 
        $label = SolrSearch_Helpers_Facet::keyToLabel($name);
        ?>
      <strong><?php 
        echo $label;
        ?>
</strong>

      <ul>
        <!-- Facets. -->
        <?php 
        foreach ($facets as $value => $count) {
            ?>
          <li class="<?php 
            echo $value;
            ?>
">