?>
  <ol class="search-results <?php 
    print $module;
    ?>
-results">
    <?php 
    print $search_results;
    ?>
  </ol>
  <?php 
    if (isset($filter) && $filter != '' && $filter_position == 'below') {
        ?>
    <div class="custom-search-filter">
      <?php 
        print $filter;
        ?>
    </div>
  <?php 
    }
    ?>
  <?php 
    print $pager;
} else {
    ?>
  <h2><?php 
    print t('Your search yielded no results');
    ?>
</h2>
  <?php 
    print search_help('search#noresults', drupal_help_arg());
}
-results">
    <?php 
    print $search_results;
    ?>
  </ol>

  <?php 
    if (isset($see_more)) {
        ?>
    <p><?php 
        print $see_more;
        ?>
</p>
  <?php 
    }
    ?>

  <?php 
    if (isset($pager)) {
        ?>
    <div class="pager"><?php 
        print $pager;
        ?>
</div>
  <?php 
    }
} else {
    ?>
  <?php 
    print prp_search_results_help('custom_search_results#noresults', drupal_help_arg());
}
示例#3
0
/**
 * Preprocessor for theme('help_page').
 */
function rubik_preprocess_help_page(&$vars)
{
    $vars['hook'] = 'help-page';
    $vars['title_attributes_array']['class'][] = 'help-page-title';
    $vars['title_attributes_array']['class'][] = 'clearfix';
    $vars['content_attributes_array']['class'][] = 'help-page-content';
    $vars['content_attributes_array']['class'][] = 'clearfix';
    $vars['content_attributes_array']['class'][] = 'prose';
    $vars['layout'] = TRUE;
    // Truly hackish way to navigate help pages.
    $module_info = system_rebuild_module_data();
    $empty_arg = drupal_help_arg();
    $modules = array();
    foreach (module_implements('help', TRUE) as $module) {
        if (module_invoke($module, 'help', "admin/help#{$module}", $empty_arg)) {
            $modules[$module] = $module_info[$module]->info['name'];
        }
    }
    asort($modules);
    $links = array();
    foreach ($modules as $module => $name) {
        $links[] = array('title' => $name, 'href' => "admin/help/{$module}");
    }
    $vars['links'] = theme('links', array('links' => $links));
}
示例#4
0
 protected function getNoResultsPage()
 {
     $output = $this->getForm();
     $results = theme('box', 'Ничего не найдено', search_help('search#noresults', drupal_help_arg()));
     return $output;
 }