Advertisement
Guest User

before-search.php

a guest
May 7th, 2015
18
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2.  
  3. global $wp_query, $canvys;
  4.  
  5. // Number of results
  6. $num_results = $wp_query->found_posts;
  7.  
  8. $search_bar = $canvys['shortcodes']['cv_search_bar']->callback( array(
  9. 'button_color' => 'content',
  10. 'size' => 'small',
  11. 'placeholder' => CV_SEARCH_RESULTS_PLACEHOLDER,
  12. 'button_text' => CV_SEARCH_RESULTS_BUTTON_TEXT,
  13. 'button_style' => 'filled',
  14. 'button_color' => 'accent',
  15. ) );
  16.  
  17. echo '<div class="cv-before-search">';
  18.  
  19. echo $canvys['shortcodes']['cv_row']->callback( array(), $search_bar );
  20.  
  21. echo '</div>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement