Пример #1
0
 /**
  * Actually process the shortcode (output stuff, ...)
  *
  * @param array  $params  The parameters
  * @param string $content The content between the shortcode tags
  *
  * @return string The shortcode final output
  */
 public function process_shortcode($params, $content)
 {
     ob_start();
     cuar_the_customer_area_menu();
     $out = ob_get_contents();
     ob_end_clean();
     return $out;
 }
Пример #2
0
		</nav><!-- #site-navigation -->

		<?php 
if (get_header_image()) {
    ?>
		<a href="<?php 
    echo esc_url(home_url('/'));
    ?>
"><img src="<?php 
    header_image();
    ?>
" class="header-image" width="<?php 
    echo get_custom_header()->width;
    ?>
" height="<?php 
    echo get_custom_header()->height;
    ?>
" alt="" /></a>
		<?php 
}
?>
	</header><!-- #masthead -->

	<div id="main" class="wrapper">

<?php 
if (class_exists('CUAR_Plugin') && (cuar_is_customer_area_page(get_queried_object_id()) || cuar_is_customer_area_private_content(get_queried_object_id()))) {
    cuar_the_customer_area_menu();
}
?>