default_data() );
if($option['blog_feature_image_enable']==true):
if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) {
return;
}
if ( is_singular() ) :
?>
';
foreach ( $Business_Responsiveness_team_content as $team_item ) :
$image = ! empty( $team_item->image_url ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $team_item->image_url, 'Team section' ) : '';
$title = ! empty( $team_item->title ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $team_item->title, 'Team section' ) : '';
$subtitle = ! empty( $team_item->subtitle ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $team_item->subtitle, 'Team section' ) : '';
$text = ! empty( $team_item->text ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $team_item->text, 'Team section' ) : '';
$link = ! empty( $team_item->link ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $team_item->link, 'Team section' ) : '';
?>
';
echo wp_kses_post( $link_html );
endif;
?>
; ?>)
alt="" title="" />
';
echo '
';
}
$i++;
endforeach;
echo '
';
}// End if().
endif;
}
function Business_Responsiveness_get_team_default() {
return apply_filters(
'Business_Responsiveness_team_default_content', json_encode(
array(
array(
'image_url' => get_template_directory_uri() . '/images/team.jpg',
'title' => esc_html__( 'Madison', 'business-responsiveness' ),
'subtitle' => esc_html__( 'Founder', 'business-responsiveness' ),
'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-responsiveness' ),
'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-responsiveness' ),
'subtitle' => esc_html__( 'Founder', 'business-responsiveness' ),
'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-responsiveness' ),
'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-responsiveness' ),
'subtitle' => esc_html__( 'Founder', 'business-responsiveness' ),
'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-responsiveness' ),
'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 Business_Responsiveness_testimonial_content( $Business_Responsiveness_testimonial_content, $is_callback = false ) {
if ( ! empty( $Business_Responsiveness_testimonial_content ) ) :
$Business_Responsiveness_testimonial_content = json_decode( $Business_Responsiveness_testimonial_content );
if ( ! empty( $Business_Responsiveness_testimonial_content ) ) {
$i = 1;
echo '
';
foreach ( $Business_Responsiveness_testimonial_content as $item ) :
$image = ! empty( $item->image_url ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $item->image_url, 'Testimonial section' ) : '';
$title = ! empty( $item->title ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $item->title, 'Testimonial section' ) : '';
$subtitle = ! empty( $item->subtitle ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $item->subtitle, 'Testimonial section' ) : '';
$text = ! empty( $item->text ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $item->text, 'Testimonial section' ) : '';
$link = ! empty( $item->link ) ? apply_filters( 'Business_Responsiveness_translate_single_string', $item->link, 'Testimonial section' ) : '';
?>
';
echo wp_kses_post( $link_html );
endif;
?>
; ?>)
alt="" title="" />
';
echo '
';
}
$i++;
endforeach;
echo '
';
}// End if().
endif;
}
function Business_Responsiveness_get_testimonial_default() {
return apply_filters(
'Business_Responsiveness_testimonial_default_content', json_encode(
array(
array(
'image_url' => get_template_directory_uri() . '/images/team.jpg',
'title' => esc_html__( 'Jackson', 'business-responsiveness' ),
'subtitle' => esc_html__( 'Designer', 'business-responsiveness' ),
'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-responsiveness' ),
'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-responsiveness' ),
'subtitle' => esc_html__( 'Developer', 'business-responsiveness' ),
'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-responsiveness' ),
'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-responsiveness' ),
'subtitle' => esc_html__( 'CEO', 'business-responsiveness' ),
'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-responsiveness' ),
'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 Business_Responsiveness_service_content( ) {
$business_obj = new Business_Responsiveness_settings_array();
$option = wp_parse_args( get_option( 'business_r_option', array() ), $business_obj->default_data() );
$key = array('one','two','three');
echo '
';
foreach($key as $val){
$icon = $option['service_icon_'. $val ];
$pageid = $option['service_content_' . $val];
$args = array( 'post_type' => 'page' , 'post__in'=> array( $pageid ) );
$loop = new WP_Query($args);
while( $loop->have_posts() ) : $loop->the_post();
$link = get_the_permalink();
?>
','
');
if( get_the_content() ){
the_content(__('Read More','business-responsiveness'));
}
?>
';
}