Advertisement
pratikshrestha

Catch Responsive Add Polylang language selector below search

Jun 28th, 2016
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.04 KB | None | 0 0
  1. /**
  2.  * Function to override parent function
  3.  */
  4. function catchresponsive_header_right() {
  5.     ?>
  6.     <aside class="sidebar sidebar-header-right widget-area">
  7.         <section class="widget widget_search" id="header-right-search">
  8.             <div class="widget-wrap">
  9.                 <?php echo get_search_form(); ?>
  10.             </div>
  11.         </section>
  12.         <?php if ( '' != ( $catchresponsive_social_icons = catchresponsive_get_social_icons() ) ) { ?>
  13.             <section class="widget widget_catchresponsive_social_icons" id="header-right-social-icons">
  14.                 <div class="widget-wrap">
  15.                     <?php echo $catchresponsive_social_icons; ?>
  16.                 </div><!-- .widget-wrap -->
  17.             </section><!-- #header-right-social-icons -->
  18.         <?php
  19.         } ?>
  20.         <?php if ( function_exists( 'pll_the_languages' ) ) { ?>
  21.             <section class="widget">
  22.                 <div class="widget-wrap">
  23.                     <?php pll_the_languages( array( 'show_flags' => 1, 'show_names' => 0 ) );?>
  24.                 </div><!-- .widget-wrap -->
  25.             </section><!-- #header-right-social-icons -->
  26.         <?php
  27.         } ?>
  28.     </aside><!-- .sidebar .header-sidebar .widget-area -->
  29.     <?php
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement