| Server IP : 68.178.247.200 / Your IP : 216.73.217.131 Web Server : Apache System : Linux p3plzcpnl489463.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64 User : x9dppmxs4rgd ( 8559391) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/x9dppmxs4rgd/public_html/wp-content/themes/grace-church/templates/trx_team/ |
Upload File : |
<?php
// Disable direct call
if ( ! defined( 'ABSPATH' ) ) { exit; }
/* Theme setup section
-------------------------------------------------------------------- */
if ( !function_exists( 'grace_church_template_team_3_theme_setup' ) ) {
add_action( 'grace_church_action_before_init_theme', 'grace_church_template_team_3_theme_setup', 1 );
function grace_church_template_team_3_theme_setup() {
grace_church_add_template(array(
'layout' => 'team-3',
'template' => 'team-3',
'mode' => 'team',
/*'container_classes' => 'sc_slider_nopagination sc_slider_controls sc_slider_controls_side',*/
'title' => esc_html__('Team /Style 3/', 'grace-church'),
'thumb_title' => esc_html__('Medium square image (crop)', 'grace-church'),
'w' => 390,
'h' => 390
));
}
}
// Template output
if ( !function_exists( 'grace_church_template_team_3_output' ) ) {
function grace_church_template_team_3_output($post_options, $post_data) {
$show_title = true;
$parts = explode('_', $post_options['layout']);
$style = $parts[0];
$columns = max(1, min(12, empty($parts[1]) ? (!empty($post_options['columns_count']) ? $post_options['columns_count'] : 1) : (int) $parts[1]));
if (grace_church_param_is_on($post_options['slider'])) {
?><div class="swiper-slide" data-style="<?php echo esc_attr($post_options['tag_css_wh']); ?>" style="<?php echo esc_attr($post_options['tag_css_wh']); ?>"><?php
} else if ($columns > 1) {
?><div class="column-1_<?php echo esc_attr($columns); ?> column_padding_bottom"><?php
}
?>
<div<?php echo ($post_options['tag_id'] ? ' id="'.esc_attr($post_options['tag_id']).'"' : ''); ?>
class="sc_team_item sc_team_item_<?php echo esc_attr($post_options['number']) . ($post_options['number'] % 2 == 1 ? ' odd' : ' even') . ($post_options['number'] == 1 ? ' first' : '') . (!empty($post_options['tag_class']) ? ' '.esc_attr($post_options['tag_class']) : ''); ?>"
<?php echo ($post_options['tag_css']!='' ? ' style="'.esc_attr($post_options['tag_css']).'"' : '')
. (!grace_church_param_is_off($post_options['tag_animation']) ? ' data-animation="'.esc_attr(grace_church_get_animation_classes($post_options['tag_animation'])).'"' : ''); ?>>
<div class="sc_team_item_avatar"><?php echo trim($post_options['photo']); ?>
<div class="sc_team_item_hover">
<div class="sc_team_item_socials"><?php echo trim($post_options['socials']); ?></div>
</div>
</div>
<div class="sc_team_item_info">
<h5 class="sc_team_item_title"><?php echo ($post_options['link'] ? '<a href="'.esc_url($post_options['link']).'">' : '') . ($post_data['post_title']) . ($post_options['link'] ? '</a>' : ''); ?></h5>
<div class="sc_team_item_position"><?php echo trim($post_options['position']);?></div>
</div>
</div>
<?php
if (grace_church_param_is_on($post_options['slider']) || $columns > 1) {
?></div><?php
}
}
}
?>