default_data() );
if($option['blog_feature_image_enable']==true):
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
}
if ( is_singular() ) :
?>
';
foreach ( $businessa_team_content as $team_item ) :
$image = ! empty( $team_item->image_url ) ? apply_filters( 'businessa_translate_single_string', $team_item->image_url, 'Team section' ) : '';
$title = ! empty( $team_item->title ) ? apply_filters( 'businessa_translate_single_string', $team_item->title, 'Team section' ) : '';
$subtitle = ! empty( $team_item->subtitle ) ? apply_filters( 'businessa_translate_single_string', $team_item->subtitle, 'Team section' ) : '';
$text = ! empty( $team_item->text ) ? apply_filters( 'businessa_translate_single_string', $team_item->text, 'Team section' ) : '';
$link = ! empty( $team_item->link ) ? apply_filters( 'businessa_translate_single_string', $team_item->link, 'Team section' ) : '';
if(!$title){ return false; }
?>
';
echo wp_kses_post( $link_html );
endif;
?>
; ?>)
alt="" title="" />
';
echo '
';
}
$i++;
endforeach;
echo '
';
}// End if().
endif;
}
function businessa_get_team_default() {
return apply_filters(
'businessa_team_default_content', json_encode(
array(
array(
'image_url' => get_template_directory_uri() . '/images/team.jpg',
'title' => esc_html__( 'Madison', 'business-a' ),
'subtitle' => esc_html__( 'Founder', 'business-a' ),
'text' => esc_html__( 'Lorem Ipsum has been the industry`s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'business-a' ),
'id' => 'customizer_repeater_56d7ea7f40c56',
'social_repeater' => json_encode(
array(
array(
'id' => 'customizer-repeater-social-repeater-57fb908674e06',
'link' => 'facebook.com',
'icon' => 'fa-facebook',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9148530ft',
'link' => 'plus.google.com',
'icon' => 'fa-google-plus',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9148530fc',
'link' => 'twitter.com',
'icon' => 'fa-twitter',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9150e1e89',
'link' => 'linkedin.com',
'icon' => 'fa-linkedin',
),
)
),
),
array(
'image_url' => get_template_directory_uri() . '/images/team.jpg',
'title' => esc_html__( 'Liam', 'business-a' ),
'subtitle' => esc_html__( 'Founder', 'business-a' ),
'text' => esc_html__( 'Lorem Ipsum has been the industry`s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'business-a' ),
'id' => 'customizer_repeater_56d7ea7f40c66',
'social_repeater' => json_encode(
array(
array(
'id' => 'customizer-repeater-social-repeater-57fb9155a1072',
'link' => 'facebook.com',
'icon' => 'fa-facebook',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9160ab683',
'link' => 'twitter.com',
'icon' => 'fa-twitter',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9160ab484',
'link' => 'pinterest.com',
'icon' => 'fa-pinterest',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb916ddffc9',
'link' => 'linkedin.com',
'icon' => 'fa-linkedin',
),
)
),
),
array(
'image_url' => get_template_directory_uri() . '/images/team.jpg',
'title' => esc_html__( 'Emma', 'business-a' ),
'subtitle' => esc_html__( 'Founder', 'business-a' ),
'text' => esc_html__( 'Lorem Ipsum has been the industry`s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'business-a' ),
'id' => 'customizer_repeater_56d7ea7f40c76',
'social_repeater' => json_encode(
array(
array(
'id' => 'customizer-repeater-social-repeater-57fb917e4c69e',
'link' => 'facebook.com',
'icon' => 'fa-facebook',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb91830825c',
'link' => 'twitter.com',
'icon' => 'fa-twitter',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb918d65f2e',
'link' => 'linkedin.com',
'icon' => 'fa-linkedin',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb918d65f2x',
'link' => 'dribbble.com',
'icon' => 'fa-dribbble',
),
)
),
),
)
)
);
}
/**
* Businesss a testimonial contents
*/
function businessa_testimonial_content( $businessa_testimonial_content, $is_callback = false ) {
$business_obj = new business_a_settings_array();
$option = wp_parse_args( get_option( 'business_option', array() ), $business_obj->default_data() );
if( $option['testimonial_image_align'] != '' ){
$imageclass = 'text-' . $option['testimonial_image_align'];
}
if( $option['testimonial_image_size'] ){
$imageclass = $imageclass . ' test-imgsize-' . $option['testimonial_image_size'];
}
if ( ! empty( $businessa_testimonial_content ) ) :
$businessa_testimonial_content = json_decode( $businessa_testimonial_content );
if ( ! empty( $businessa_testimonial_content ) ) {
$i = 1;
echo '
';
foreach ( $businessa_testimonial_content as $item ):
$image = ! empty( $item->image_url ) ? apply_filters( 'businessa_translate_single_string', $item->image_url, 'Testimonial section' ) : '';
$title = ! empty( $item->title ) ? apply_filters( 'businessa_translate_single_string', $item->title, 'Testimonial section' ) : '';
$subtitle = ! empty( $item->subtitle ) ? apply_filters( 'businessa_translate_single_string', $item->subtitle, 'Testimonial section' ) : '';
$text = ! empty( $item->text ) ? apply_filters( 'businessa_translate_single_string', $item->text, 'Testimonial section' ) : '';
$link = ! empty( $item->link ) ? apply_filters( 'businessa_translate_single_string', $item->link, 'Testimonial section' ) : '';
if(!$title){ return false; }
?>
; ?>)
alt="" title="" />
';
echo '
';
}
$i++;
endforeach;
echo '
';
}// End if().
endif;
}
function businessa_get_testimonial_default() {
return apply_filters(
'businessa_testimonial_default_content', json_encode(
array(
array(
'image_url' => get_template_directory_uri() . '/images/team.jpg',
'title' => esc_html__( 'Jackson', 'business-a' ),
'subtitle' => esc_html__( 'Designer', 'business-a' ),
'text' => esc_html__( 'Lorem Ipsum has been the industry`s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'business-a' ),
'id' => 'customizer_repeater_56d7ea7f40c56',
'social_repeater' => json_encode(
array(
array(
'id' => 'customizer-repeater-social-repeater-57fb908674e06',
'link' => 'facebook.com',
'icon' => 'fa-facebook',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9148530ft',
'link' => 'plus.google.com',
'icon' => 'fa-google-plus',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9148530fc',
'link' => 'twitter.com',
'icon' => 'fa-twitter',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9150e1e89',
'link' => 'linkedin.com',
'icon' => 'fa-linkedin',
),
)
),
),
array(
'image_url' => get_template_directory_uri() . '/images/team.jpg',
'title' => esc_html__( 'Addison', 'business-a' ),
'subtitle' => esc_html__( 'Developer', 'business-a' ),
'text' => esc_html__( 'Lorem Ipsum has been the industry`s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'business-a' ),
'id' => 'customizer_repeater_56d7ea7f40c66',
'social_repeater' => json_encode(
array(
array(
'id' => 'customizer-repeater-social-repeater-57fb9155a1072',
'link' => 'facebook.com',
'icon' => 'fa-facebook',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9160ab683',
'link' => 'twitter.com',
'icon' => 'fa-twitter',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb9160ab484',
'link' => 'pinterest.com',
'icon' => 'fa-pinterest',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb916ddffc9',
'link' => 'linkedin.com',
'icon' => 'fa-linkedin',
),
)
),
),
array(
'image_url' => get_template_directory_uri() . '/images/team.jpg',
'title' => esc_html__( 'John', 'business-a' ),
'subtitle' => esc_html__( 'CEO', 'business-a' ),
'text' => esc_html__( 'Lorem Ipsum has been the industry`s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'business-a' ),
'id' => 'customizer_repeater_56d7ea7f40c76',
'social_repeater' => json_encode(
array(
array(
'id' => 'customizer-repeater-social-repeater-57fb917e4c69e',
'link' => 'facebook.com',
'icon' => 'fa-facebook',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb91830825c',
'link' => 'twitter.com',
'icon' => 'fa-twitter',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb918d65f2e',
'link' => 'linkedin.com',
'icon' => 'fa-linkedin',
),
array(
'id' => 'customizer-repeater-social-repeater-57fb918d65f2x',
'link' => 'dribbble.com',
'icon' => 'fa-dribbble',
),
)
),
),
)
)
);
}
/**
* Businesss a service contents
*/
function businessa_service_content( $businessa_service_content, $is_callback = false ) {
if ( ! empty( $businessa_service_content ) ) :
$businessa_service_content = json_decode( $businessa_service_content );
if ( ! empty( $businessa_service_content ) ) {
$i = 1;
echo '
';
foreach ( $businessa_service_content as $features_item ) :
$icon = ! empty( $features_item->icon_value ) ? apply_filters( 'businessa_translate_single_string', $features_item->icon_value, 'Service section' ) : '';
$image = ! empty( $features_item->image_url ) ? apply_filters( 'businessa_translate_single_string', $features_item->image_url, 'Service section' ) : '';
$title = ! empty( $features_item->title ) ? apply_filters( 'businessa_translate_single_string', $features_item->title, 'Service section' ) : '';
$text = ! empty( $features_item->text ) ? apply_filters( 'businessa_translate_single_string', $features_item->text, 'Service section' ) : '';
$link = ! empty( $features_item->link ) ? apply_filters( 'businessa_translate_single_string', $features_item->link, 'Service section' ) : '';
$color = ! empty( $features_item->color ) ? $features_item->color : '';
$choice = ! empty( $features_item->choice ) ? $features_item->choice : 'customizer_repeater_icon';
if(!$title){ return false; }
?>
';
echo '
';
}
$i++;
endforeach;
echo '
';
}// End if().
endif;
}
function businessa_get_service_default() {
return apply_filters(
'businessa_service_default_content', json_encode(
array(
array(
'icon_value' => 'fa-desktop',
'title' => esc_html__( 'Responsive', 'business-a' ),
'text' => esc_html__( 'Lorem Ipsum has been the industry`s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'business-a' ),
'link' => '#',
'color' => '#e91e63',
),
array(
'icon_value' => 'fa-cog',
'title' => esc_html__( 'Woo-commerce', 'business-a' ),
'text' => esc_html__( 'Lorem Ipsum has been the industry`s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'business-a' ),
'link' => '#',
'color' => '#00bcd4',
),
array(
'icon_value' => 'fa-paper-plane-o',
'title' => esc_html__( 'Easy Customizable', 'business-a' ),
'text' => esc_html__( 'Lorem Ipsum has been the industry`s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.', 'business-a' ),
'link' => '#',
'color' => '#4caf50',
),
)
)
);
}