nk'] . ':hover' => 'background-color: {{VALUE}};', ), ), 25 ); $this->__add_control( 'breadcrumbs_link_hover_border_color', array( 'label' => esc_html__( 'Border Color', 'jet-blocks' ), 'type' => Controls_Manager::COLOR, 'condition' => array( 'breadcrumbs_item_border_border!' => '', ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['link'] . ':hover' => 'border-color: {{VALUE}};', ), ), 75 ); $this->__end_controls_tab(); $this->__start_controls_tab( 'breadcrumbs_item_target', array( 'label' => esc_html__( 'Current', 'jet-blocks' ), ) ); $this->__add_group_control( Group_Control_Typography::get_type(), array( 'name' => 'breadcrumbs_target_item_typography', 'selector' => '{{WRAPPER}} ' . $css_scheme['target'], ), 50 ); $this->__add_control( 'breadcrumbs_target_item_color', array( 'label' => esc_html__( 'Color', 'jet-blocks' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['target'] => 'color: {{VALUE}};', ), ), 25 ); $this->__add_control( 'breadcrumbs_target_item_bg_color', array( 'label' => esc_html__( 'Background Color', 'jet-blocks' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['target'] => 'background-color: {{VALUE}};', ), ), 25 ); $this->__add_control( 'breadcrumbs_target_item_border_color', array( 'label' => esc_html__( 'Border Color', 'jet-blocks' ), 'type' => Controls_Manager::COLOR, 'condition' => array( 'breadcrumbs_item_border_border!' => '', ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['item'] . ' ' . $css_scheme['target'] => 'border-color: {{VALUE}};', ), ), 75 ); $this->__end_controls_tab(); $this->__end_controls_tabs(); $this->__add_responsive_control( 'breadcrumbs_item_padding', array( 'label' => esc_html__( 'Padding', 'jet-blocks' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['link'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} ' . $css_scheme['target'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), 'separator' => 'before', ), 25 ); $this->__add_group_control( Group_Control_Border::get_type(), array( 'name' => 'breadcrumbs_item_border', 'label' => esc_html__( 'Border', 'jet-blocks' ), 'placeholder' => '1px', 'selector' => '{{WRAPPER}} ' . $css_scheme['link'] . ', {{WRAPPER}} ' . $css_scheme['target'], ), 75 ); $this->__add_responsive_control( 'breadcrumbs_item_border_radius', array( 'label' => esc_html__( 'Border Radius', 'jet-blocks' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%' ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['link'] => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', '{{WRAPPER}} ' . $css_scheme['target'] => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), ), 75 ); $this->__add_control( 'breadcrumbs_sep_heading', array( 'label' => esc_html__( 'Separators Style', 'jet-blocks' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', ), 25 ); $this->__add_responsive_control( 'breadcrumbs_sep_gap', array( 'label' => esc_html__( 'Gap', 'jet-blocks' ), 'type' => Controls_Manager::SLIDER, 'size_units' => array( 'px' ), 'range' => array( 'px' => array( 'min' => 0, 'max' => 50, ), ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['sep'] => 'margin-left: {{SIZE}}{{UNIT}}; margin-right: {{SIZE}}{{UNIT}};', ), ), 25 ); $this->__add_responsive_control( 'breadcrumbs_sep_icon_size', array( 'label' => esc_html__( 'Icon Size', 'jet-blocks' ), 'type' => Controls_Manager::SLIDER, 'size_units' => array( 'px', 'em', 'rem' ), 'range' => array( 'px' => array( 'min' => 5, 'max' => 200, ), ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['sep'] => 'font-size: {{SIZE}}{{UNIT}};', ), 'condition' => array( 'separator_type' => 'icon', ), ), 50 ); $this->__add_group_control( Group_Control_Typography::get_type(), array( 'name' => 'breadcrumbs_sep_typography', 'selector' => '{{WRAPPER}} ' . $css_scheme['sep'], 'condition' => array( 'separator_type' => 'custom', ), ), 50 ); $this->__add_control( 'breadcrumbs_sep_color', array( 'label' => esc_html__( 'Color', 'jet-blocks' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['sep'] => 'color: {{VALUE}};', ), ), 25 ); $this->__add_control( 'breadcrumbs_sep_bg_color', array( 'label' => esc_html__( 'Background Color', 'jet-blocks' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['sep'] => 'background-color: {{VALUE}};', ), ), 25 ); $this->__add_responsive_control( 'breadcrumbs_sep_padding', array( 'label' => esc_html__( 'Padding', 'jet-blocks' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['sep'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), ), 25 ); $this->__add_group_control( Group_Control_Border::get_type(), array( 'name' => 'breadcrumbs_sep_border', 'label' => esc_html__( 'Border', 'jet-blocks' ), 'placeholder' => '1px', 'selector' => '{{WRAPPER}} ' . $css_scheme['sep'], ), 75 ); $this->__add_responsive_control( 'breadcrumbs_sep_border_radius', array( 'label' => esc_html__( 'Border Radius', 'jet-blocks' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%' ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['sep'] => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), ), 75 ); $this->__add_control( 'breadcrumbs_browse_heading', array( 'label' => esc_html__( 'Prefix Style', 'jet-blocks' ), 'type' => Controls_Manager::HEADING, 'separator' => 'before', 'condition' => array( 'show_browse' => 'yes', ), ), 25 ); $this->__add_responsive_control( 'breadcrumbs_browse_gap', array( 'label' => esc_html__( 'Gap', 'jet-blocks' ), 'type' => Controls_Manager::SLIDER, 'size_units' => array( 'px' ), 'range' => array( 'px' => array( 'min' => 0, 'max' => 50, ), ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['browse'] => 'margin-right: {{SIZE}}{{UNIT}};', ), 'condition' => array( 'show_browse' => 'yes', ), ), 25 ); $this->__add_group_control( Group_Control_Typography::get_type(), array( 'name' => 'breadcrumbs_browse_typography', 'selector' => '{{WRAPPER}} ' . $css_scheme['browse'], 'condition' => array( 'show_browse' => 'yes', ), ), 50 ); $this->__add_control( 'breadcrumbs_browse_color', array( 'label' => esc_html__( 'Color', 'jet-blocks' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['browse'] => 'color: {{VALUE}};', ), 'condition' => array( 'show_browse' => 'yes', ), ), 25 ); $this->__add_control( 'breadcrumbs_browse_bg_color', array( 'label' => esc_html__( 'Background Color', 'jet-blocks' ), 'type' => Controls_Manager::COLOR, 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['browse'] => 'background-color: {{VALUE}};', ), 'condition' => array( 'show_browse' => 'yes', ), ), 25 ); $this->__add_responsive_control( 'breadcrumbs_browse_padding', array( 'label' => esc_html__( 'Padding', 'jet-blocks' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%', 'em' ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['browse'] => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), 'condition' => array( 'show_browse' => 'yes', ), ), 25 ); $this->__add_group_control( Group_Control_Border::get_type(), array( 'name' => 'breadcrumbs_browse_border', 'label' => esc_html__( 'Border', 'jet-blocks' ), 'placeholder' => '1px', 'selector' => '{{WRAPPER}} ' . $css_scheme['browse'], 'condition' => array( 'show_browse' => 'yes', ), ), 75 ); $this->__add_responsive_control( 'breadcrumbs_browse_border_radius', array( 'label' => esc_html__( 'Border Radius', 'jet-blocks' ), 'type' => Controls_Manager::DIMENSIONS, 'size_units' => array( 'px', '%' ), 'selectors' => array( '{{WRAPPER}} ' . $css_scheme['browse'] => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', ), 'condition' => array( 'show_browse' => 'yes', ), ), 75 ); $this->__end_controls_section(); } protected function render() { $this->__open_wrap(); $settings = $this->get_settings(); $title_tag = jet_blocks_tools()->validate_html_tag( $settings['title_tag'] ); $title_format = '<' .$title_tag . ' class="jet-breadcrumbs__title">%s'; $custom_home_page_enabled = ! empty( $settings['enabled_custom_home_page_label'] ) ? $settings['enabled_custom_home_page_label'] : false; $custom_home_page_enabled = filter_var( $custom_home_page_enabled, FILTER_VALIDATE_BOOLEAN ); $custom_home_page_label = ( $custom_home_page_enabled && ! empty( $settings['custom_home_page_label'] ) ) ? $settings['custom_home_page_label'] : esc_html__( 'Home', 'jet-blocks' ); $args = array( 'wrapper_format' => '%1$s%2$s', 'page_title_format' => $title_format, 'separator' => $this->__get_separator(), 'show_on_front' => filter_var( $settings['show_on_front'], FILTER_VALIDATE_BOOLEAN ), 'show_title' => filter_var( $settings['show_title'], FILTER_VALIDATE_BOOLEAN ), 'show_browse' => filter_var( $settings['show_browse'], FILTER_VALIDATE_BOOLEAN ), 'path_type' => $settings['path_type'], 'action' => 'jet_breadcrumbs/render', 'cpt_item_with_links' => filter_var( $settings['cpt_item_with_links'], FILTER_VALIDATE_BOOLEAN ), 'strings' => array( 'browse' => $settings['browse_label'], 'home' => $custom_home_page_label, 'error_404' => esc_html__( '404 Not Found', 'jet-blocks' ), 'archives' => esc_html__( 'Archives', 'jet-blocks' ), 'search' => esc_html__( 'Search results for “%s”', 'jet-blocks' ), 'paged' => esc_html__( 'Page %s', 'jet-blocks' ), 'archive_minute' => esc_html__( 'Minute %s', 'jet-blocks' ), 'archive_week' => esc_html__( 'Week %s', 'jet-blocks' ), ), 'date_labels' => array( 'archive_minute_hour' => esc_html_x( 'g:i a', 'minute and hour archives time format', 'jet-blocks' ), 'archive_minute' => esc_html_x( 'i', 'minute archives time format', 'jet-blocks' ), 'archive_hour' => esc_html_x( 'g a', 'hour archives time format', 'jet-blocks' ), 'archive_year' => esc_html_x( 'Y', 'yearly archives date format', 'jet-blocks' ), 'archive_month' => esc_html_x( 'F', 'monthly archives date format', 'jet-blocks' ), 'archive_day' => esc_html_x( 'j', 'daily archives date format', 'jet-blocks' ), 'archive_week' => esc_html_x( 'W', 'weekly archives date format', 'jet-blocks' ), ), 'css_namespace' => array( 'module' => 'jet-breadcrumbs', 'content' => 'jet-breadcrumbs__content', 'wrap' => 'jet-breadcrumbs__wrap', 'browse' => 'jet-breadcrumbs__browse', 'item' => 'jet-breadcrumbs__item', 'separator' => 'jet-breadcrumbs__item-sep', 'link' => 'jet-breadcrumbs__item-link', 'target' => 'jet-breadcrumbs__item-target', ), 'post_taxonomy' => apply_filters( 'cx_breadcrumbs/trail_taxonomies', jet_blocks_tools()->get_breadcrumbs_post_taxonomy_settings() ), ); if ( $custom_home_page_enabled ) { add_filter( 'cx_breadcrumbs/custom_home_title', array( $this, 'static_home_page_title_off' ) ); } $breadcrumbs = new \CX_Breadcrumbs( $args ); if ( $custom_home_page_enabled ) { remove_filter( 'cx_breadcrumbs/custom_home_title', array( $this, 'static_home_page_title_off' ) ); } $breadcrumbs->get_trail(); $this->__close_wrap(); } /** * [__get_separator description] * @return [type] [description] */ public function __get_separator() { $separator = ''; $settings = $this->get_settings(); $separator_type = $settings['separator_type']; if ( 'icon' === $separator_type ) { $separator = $this->__get_icon( 'icon_separator', '%s' ); } else { $separator = sprintf( '%s', $settings['custom_separator'] ); } return $separator; } /** * Disables getting the title of the home page if a static page is selected. * * @return boolean */ function static_home_page_title_off() { return false; } }

TIP TO ROOTS

I have had a heart for hairdressing for more than 25 years. I have seen and worked with many brands, seen salons open and close and know how to tighten the business belt at times.

We all need a plan, a way of coping with hard times. Just someone saying: “Here is a plan till you are on your feet again’ all hairdressers have the brand. The one they grew up with, the one you prefer, for me it was and still is goldwell, not to mention brand protection is a big thing and I assume also so for many other stylists not to mention for the brandhouses themselves. The power to introduce a client to a brand and the safety of it.
“the difference we choose on how we influence others, is good soil for good seed to deliver the tips of leaves and flowers seen by many “ – YDB