'',
'upload_image_favicon' => '',
'height' =>50,
'width' => 50,
'slide_image_1' => $ImageUrl,
'slide_title_1' => __('Clear Different In Quality', 'beauty-spa' ),
'slide_desc_1' => __('Latest Thraphy', 'beauty-spa' ),
'slide_btn_text_1' => __('View Profile', 'beauty-spa' ),
'slide_btn_link_1' => '#',
'slide_image_2' => $ImageUrl2,
'slide_title_2' => __('Clear Different In Quality', 'beauty-spa' ),
'slide_desc_2' => __('Latest Thraphy', 'beauty-spa' ),
'slide_btn_text_2' => __('View Profile', 'beauty-spa' ),
'slide_btn_link_2' => '#',
'slide_image_3' => $ImageUrl3,
'slide_title_3' => __('Clear Different In Quality ', 'beauty-spa' ),
'slide_desc_3' => __('Latest Thraphy', 'beauty-spa' ),
'slide_btn_text_3' => __('View Profile', 'beauty-spa' ),
'slide_btn_link_3' => '#',
// socila icons
'header_section_social_media_enbled'=>'on',
'twitter_link' => "https://twitter.com/",
'facebook_link' => "https://facebook.com",
'linkedin_link' => "http://linkedin.com/",
'google_plus' => "https://plus.google.com/",
'youtube_link' => "https://www.youtube.com/",
);
return apply_filters( 'beauty_options', $beauty_theme_options );
}
function weblizar_get_options() {
// Options API
return wp_parse_args(
get_option( 'beauty_options', array() ), beauty_spa_default_settings()
);
}
/****--- Navigation for Single ---***/
function beauty_spa_navigation_posts() { ?>
'; // tag before the current crumb
$after = ''; // tag after the current crumb
echo '';
global $post;
$homeLink = home_url();
echo '- ' . $home . '
' . $delimiter . ' ';
if (is_category()) {
global $wp_query;
$cat_obj = $wp_query->get_queried_object();
$thisCat = $cat_obj->term_id;
$thisCat = get_category($thisCat);
$parentCat = get_category($thisCat->parent);
if ($thisCat->parent != 0)
echo(get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' '));
echo $before . ' _e("Archive by category","beauty-spa") "' . single_cat_title('', false) . '"' . $after;
} elseif (is_day()) {
echo '- ' . get_the_time('Y') . '
' . $delimiter . ' ';
echo '- ' . get_the_time('F') . '
' . $delimiter . ' ';
echo $before . get_the_time('d') . $after;
} elseif (is_month()) {
echo '- ' . get_the_time('Y') . '
' . $delimiter . ' ';
echo $before . get_the_time('F') . $after;
} elseif (is_year()) {
echo $before . get_the_time('Y') . $after;
} elseif (is_single() && !is_attachment()) {
if (get_post_type() != 'post') {
$post_type = get_post_type_object(get_post_type());
$slug = $post_type->rewrite;
echo '- ' . $post_type->labels->singular_name . '
' . $delimiter . ' ';
echo $before . get_the_title() . $after;
} else {
$cat = get_the_category();
$cat = $cat[0];
//echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
echo $before . get_the_title() . $after;
}
} elseif (!is_single() && !is_page() && get_post_type() != 'post') {
$post_type = get_post_type_object(get_post_type());
echo $before . $post_type->labels->singular_name . $after;
} elseif (is_attachment()) {
$parent = get_post($post->post_parent);
$cat = get_the_category($parent->ID);
$cat = $cat[0];
echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');
echo '- ' . $parent->post_title . '
' . $delimiter . ' ';
echo $before . get_the_title() . $after;
} elseif (is_page() && !$post->post_parent) {
echo $before . get_the_title() . $after;
} elseif (is_page() && $post->post_parent) {
$parent_id = $post->post_parent;
$breadcrumbs = array();
while ($parent_id) {
$page = get_page($parent_id);
$breadcrumbs[] = '- ' . get_the_title($page->ID) . '
';
$parent_id = $page->post_parent;
}
$breadcrumbs = array_reverse($breadcrumbs);
foreach ($breadcrumbs as $crumb)
echo $crumb . ' ' . $delimiter . ' ';
echo $before . get_the_title() . $after;
} elseif (is_search()) {
echo $before . _e("Search results for","beauty-spa") . get_search_query() . '"' . $after;
} elseif (is_tag()) {
echo $before . _e('Tag','beauty-spa') . single_tag_title('', false) . $after;
} elseif (is_author()) {
global $author;
$userdata = get_userdata($author);
echo $before . _e("Articles posted by","beauty-spa") . $userdata->display_name . $after;
} elseif (is_404()) {
echo $before . _e("Error 404","beauty-spa") . $after;
}
echo '
';
}
// for menu
function weblizar_page_menu_args( $args ) {
if ( ! isset( $args['show_home'] ) )
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'weblizar_page_menu_args' );
function weblizar_fallback_page_menu( $args = array() ) {
$defaults = array('sort_column' => 'menu_order, post_title', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => '');
$args = wp_parse_args( $args, $defaults );
$args = apply_filters( 'wp_page_menu_args', $args );
$menu = '';
$list_args = $args;
// Show Home in the menu
if ( ! empty($args['show_home']) ) {
if ( true === $args['show_home'] || '1' === $args['show_home'] || 1 === $args['show_home'] )
$text = __('Home','beauty-spa');
else
$text = $args['show_home'];
$class = '';
if ( is_front_page() && !is_paged() )
$class = 'class="current_page_item"';
$menu .= '' . $args['link_before'] . $text . $args['link_after'] . '';
// If the front page is a page, add it to the exclude list
if (get_option('show_on_front') == 'page') {
if ( !empty( $list_args['exclude'] ) ) {
$list_args['exclude'] .= ',';
} else {
$list_args['exclude'] = '';
}
$list_args['exclude'] .= get_option('page_on_front');
}
}
$list_args['echo'] = false;
$list_args['title_li'] = '';
$list_args['walker'] = new weblizar_walker_page_menu;
$menu .= str_replace( array( "\r", "\n", "\t" ), '', wp_list_pages($list_args) );
if ( $menu )
$menu = '';
$menu = '' . $menu . "
\n";
$menu = apply_filters( 'wp_page_menu', $menu, $args );
if ( $args['echo'] )
echo $menu;
else
return $menu;
}
class weblizar_walker_page_menu extends Walker_Page{
function start_lvl( &$output, $depth = 0, $args = array() ) {
$indent = str_repeat("\t", $depth);
$output .= "\n$indent