'. esc_html__('Skip to main content','salient') . '';
}
/**
* Adds header text widget to OCM
*
* @since 13.0
*/
function nectar_header_text_widget_content_mobile() {
$nectar_header_options = nectar_get_header_variables();
if( !empty($nectar_header_options['header_text_widget']) ) {
echo '
';
}
}
/**
* Adds header text widget to main navigation
*
* @since 13.1
*/
function nectar_mobile_header_persistent_items() {
global $nectar_options;
$nectar_header_format = NectarThemeManager::$header_format;
$menu_locations = array(
'top_nav'
);
if( in_array($nectar_header_format, array('centered-logo-between-menu-alt','centered-menu-bottom-bar') ) ) {
$menu_locations[] = 'top_nav_pull_left';
}
if( in_array($nectar_header_format, array(
'menu-left-aligned',
'centered-logo-between-menu-alt',
'centered-logo-between-menu',
'centered-menu',
'centered-menu-bottom-bar') ) ) {
$menu_locations[] = 'top_nav_pull_right';
}
foreach( $menu_locations as $name ) {
if ( has_nav_menu( $name ) ) {
wp_nav_menu(
array(
'walker' => new Nectar_Walker_Mobile_Header_Items(),
'theme_location' => $name,
'container' => '',
'container_class' => 'mobile-header-menu-items',
'items_wrap' => '',
)
);
}
}
}
/**
* Adds OCM button before logo
*
* @since 13.1
*/
function nectar_left_ocm_button_markup() {
global $nectar_options;
$side_widget_class = NectarThemeManager::$ocm_style;
$header_format = ( ! empty( $nectar_options['header_format'] ) ) ? $nectar_options['header_format'] : 'default';
$side_widget_area = ( ! empty( $nectar_options['header-slide-out-widget-area'] ) && $header_format != 'left-header' ) ? $nectar_options['header-slide-out-widget-area'] : 'off';
$side_widget_area_pos = ( isset( $nectar_options['ocm_btn_position'] ) ) ? esc_html($nectar_options['ocm_btn_position']) : 'default';
if ($side_widget_class !== 'simple' &&
$side_widget_area_pos === 'left' ) {
echo '';
nectar_ocm_button_markup();
echo '
';
}
}
/**
* Adds header text widget to main navigation
*
* @since 12.5
*/
function nectar_header_text_widget_content() {
global $nectar_options;
$nectar_header_options = nectar_get_header_variables();
if( !empty($nectar_header_options['header_text_widget']) ) {
if( isset($nectar_options['header_format']) && 'centered-menu-bottom-bar' === $nectar_options['header_format'] ) {
echo '';
}
else {
echo '';
}
}
}
/**
* Add off canvas menu fullscreen blur wrap opening markup.
*
* @since 10.1
*/
function nectar_fullscreen_blur_wrap_open() {
$nectar_header_options = nectar_get_header_variables();
if ( $nectar_header_options['side_widget_area'] === '1' && $nectar_header_options['side_widget_class'] === 'fullscreen' ) {
echo '';
}
}
/**
* Add off canvas menu fullscreen blur wrap closing markup.
*
* @since 10.1
*/
function nectar_fullscreen_blur_wrap_close() {
$nectar_header_options = nectar_get_header_variables();
if ( $nectar_header_options['side_widget_area'] === '1' && $nectar_header_options['side_widget_class'] === 'fullscreen' ) {
echo '
';
}
}
/**
* Add off canvas menu fullscreen split wrapping menu div.
*
* @since 11.5
*/
function nectar_fullscreen_split_ocm_nav_open() {
echo '';
}
/**
* Add off canvas menu fullscreen split wrapping menu div.
*
* @since 11.5
*/
function nectar_fullscreen_split_ocm_secondary_open() {
echo '
';
}
/**
* Add off canvas menu fullscreen split closing div.
*
* @since 11.5
*/
function nectar_fullscreen_split_ocm_nav_close() {
echo '
';
}
/**
* Add off canvas menu fullscreen split container closing div.
*
* @since 11.5
*/
function nectar_fullscreen_split_ocm_container_close() {
echo '
';
}
/**
* Add page fullscreen rows wrapping markup.
*
* @since 10.1
*/
function nectar_fullpage_markup_open() {
if ( is_page() ) {
if ( is_page_template( 'template-no-footer.php' ) ||
is_page_template( 'template-no-header.php' ) ||
is_page_template( 'template-no-header-footer.php' ) ||
! is_page_template() ) {
$nectar_fp_options = nectar_get_full_page_options();
if ( $nectar_fp_options['page_full_screen_rows'] === 'on' ) {
echo '';
}
}
}
}
/**
* Add page fullscreen rows closing markup.
*
* @since 10.1
*/
function nectar_fullpage_markup_close() {
if ( is_page() ) {
if ( is_page_template( 'template-no-footer.php' ) ||
is_page_template( 'template-no-header.php' ) ||
is_page_template( 'template-no-header-footer.php' ) ||
! is_page_template() ) {
$nectar_fp_options = nectar_get_full_page_options();
if ( $nectar_fp_options['page_full_screen_rows'] === 'on' ) {
echo '
';
}
}
}
}
/**
* Add Yoast breadcrumbs before content.
*
* @since 10.1
*/
function nectar_yoast_breadcrumbs() {
if ( function_exists( 'yoast_breadcrumb' ) && ! is_home() && ! is_front_page() ) {
yoast_breadcrumb( '', '
' ); }
}
/**
* Add buddypress title before content.
*
* @since 10.1
*/
function nectar_buddypress_title() {
global $bp;
if ( $bp && ! bp_is_blog_page() && ! is_singular( 'post' ) ) {
echo '' . get_the_title() . '
';
}
}
/**
* Opening markup for material theme skin.
*
* @since 10.1
*/
function nectar_material_skin_ocm_wrap_open() {
$theme_skin = NectarThemeManager::$skin;
if ( 'material' === $theme_skin ) {
echo '';
}
}
/**
* Closing markup for material theme skin.
*
* @since 10.1
*/
function nectar_material_skin_ocm_wrap_close() {
$theme_skin = NectarThemeManager::$skin;
if ( 'material' === $theme_skin ) {
echo '
';
}
}
?>