';
$output .= do_shortcode( $content );
$output .= '
';
$output .= '
' . $ult_swatch_settings['swatch_main_strip_text'] . '
';
$output .= '' . $ult_swatch_settings['swatch_main_strip_highlight_text'] . '
';
$output .= '';
$output .= '
';
$output .= '';
return $output;
}
/**
* Render function for Swatch Book Module.
*
* @param array $atts represts module attribuits.
* @param string $content value has been set to null.
* @access public
*/
public function swatch_item( $atts, $content = null ) {
$ult_swatcht_settings = shortcode_atts(
array(
'swatch_strip_text' => '',
'icon_type' => '',
'icon' => '',
'icon_img' => '',
'img_width' => '',
'icon_size' => '',
'icon_color' => '',
'icon_style' => '',
'icon_color_bg' => '',
'icon_color_border' => '',
'icon_border_style' => '',
'icon_border_size' => '',
'icon_border_radius' => '',
'icon_border_spacing' => '',
'icon_animation' => '',
'swatch_strip_font_size' => '',
'swatch_strip_font_weight' => '',
'swatch_strip_font_color' => '',
'swatch_strip_bg_color' => '',
'swatch_strip_title_bg_color' => '',
'el_class' => '',
),
$atts
);
$output = '';
$box_icon = do_shortcode( '[just_icon icon_type="' . esc_attr( $ult_swatcht_settings['icon_type'] ) . '" icon="' . esc_attr( $ult_swatcht_settings['icon'] ) . '" icon_img="' . esc_attr( $ult_swatcht_settings['icon_img'] ) . '" img_width="' . esc_attr( $ult_swatcht_settings['img_width'] ) . '" icon_size="' . esc_attr( $ult_swatcht_settings['icon_size'] ) . '" icon_color="' . esc_attr( $ult_swatcht_settings['icon_color'] ) . '" icon_style="' . esc_attr( $ult_swatcht_settings['icon_style'] ) . '" icon_color_bg="' . esc_attr( $ult_swatcht_settings['icon_color_bg'] ) . '" icon_color_border="' . esc_attr( $ult_swatcht_settings['icon_color_border'] ) . '" icon_border_style="' . esc_attr( $ult_swatcht_settings['icon_border_style'] ) . '" icon_border_size="' . esc_attr( $ult_swatcht_settings['icon_border_size'] ) . '" icon_border_radius="' . esc_attr( $ult_swatcht_settings['icon_border_radius'] ) . '" icon_border_spacing="' . esc_attr( $ult_swatcht_settings['icon_border_spacing'] ) . '" icon_animation="' . esc_attr( $ult_swatcht_settings['icon_animation'] ) . '"]' );
$style = '';
if ( '' !== $this->swatch_trans_bg_img ) {
$img = apply_filters( 'ult_get_img_single', $this->swatch_trans_bg_img, 'url' );
$style .= 'background-image: url(' . esc_url( $img ) . ');';
}
if ( '' !== $ult_swatcht_settings['swatch_strip_bg_color'] ) {
$style .= 'background-color: ' . esc_attr( $ult_swatcht_settings['swatch_strip_bg_color'] ) . ';';
}
if ( '' !== $this->swatch_width ) {
$style .= 'width:' . esc_attr( $this->swatch_width ) . 'px;';
}
if ( '' !== $this->swatch_height ) {
$style .= 'height:' . esc_attr( $this->swatch_height ) . 'px;';
}
$output .= '