📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 13:57:22
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
elements
/
templates
/
pxl_team_grid
✏️
Editing: layout-1.php
<?php $col_xs = $widget->get_setting('col_xs', ''); $col_sm = $widget->get_setting('col_sm', ''); $col_md = $widget->get_setting('col_md', ''); $col_lg = $widget->get_setting('col_lg', ''); $col_xl = $widget->get_setting('col_xl', ''); $col_xl = 12 / intval($col_xl); $col_lg = 12 / intval($col_lg); $col_md = 12 / intval($col_md); $col_sm = 12 / intval($col_sm); $col_xs = 12 / intval($col_xs); $grid_sizer = "col-xl-{$col_xl} col-lg-{$col_lg} col-md-{$col_md} col-sm-{$col_sm} col-{$col_xs}"; $item_class = "pxl-grid-item col-xl-{$col_xl} col-lg-{$col_lg} col-md-{$col_md} col-sm-{$col_sm} col-{$col_xs}"; $image_size = !empty($settings['img_size']) ? $settings['img_size'] : '526x772'; if ( ! empty( $settings['wg_btn_link']['url'] ) ) { $widget->add_render_attribute( 'button', 'href', $settings['wg_btn_link']['url'] ); if ( $settings['wg_btn_link']['is_external'] ) { $widget->add_render_attribute( 'button', 'target', '_blank' ); } if ( $settings['wg_btn_link']['nofollow'] ) { $widget->add_render_attribute( 'button', 'rel', 'nofollow' ); } } ?> <?php if(isset($settings['team']) && !empty($settings['team']) && count($settings['team'])): ?> <div class="pxl-grid pxl-team-grid pxl-team-grid1 pxl-team-layout1"> <div class="pxl-grid-inner pxl-grid-masonry row" data-gutter="15"> <?php foreach ($settings['team'] as $key => $value): $title = isset($value['title']) ? $value['title'] : ''; $position = isset($value['position']) ? $value['position'] : ''; $image = isset($value['image']) ? $value['image'] : ''; $social = isset($value['social']) ? $value['social'] : ''; $link_key = $widget->get_repeater_setting_key( 'item_link', 'value', $key ); if ( ! empty( $value['item_link']['url'] ) ) { $widget->add_render_attribute( $link_key, 'href', $value['item_link']['url'] ); if ( $value['item_link']['is_external'] ) { $widget->add_render_attribute( $link_key, 'target', '_blank' ); } if ( $value['item_link']['nofollow'] ) { $widget->add_render_attribute( $link_key, 'rel', 'nofollow' ); } } $link_attributes = $widget->get_render_attribute_string( $link_key ); ?> <?php if($key == 0) : ?> <?php if(!empty($settings['wg_sub_title']) || !empty($settings['wg_title']) || !empty($settings['wg_desc'])) : ?> <div class="<?php echo esc_attr($item_class); ?>"> <div class="pxl-item--inner pxl-item--first <?php echo esc_attr($settings['pxl_animate']); ?>"> <?php if(!empty($image['id'])) { $img = pxl_get_image_by_size( array( 'attach_id' => $image['id'], 'thumb_size' => $image_size, 'class' => 'no-lazyload', )); $thumbnail = $img['thumbnail']; ?> <div class="pxl-item--image"> <?php echo wp_kses_post($thumbnail); ?> </div> <?php } ?> <div class="pxl-item--content"> <div class="pxl-item--top"> <div class="wg-sub-title pxl-empty"><?php echo esc_attr($settings['wg_sub_title']); ?></div> <h5 class="wg-title pxl-empty"><?php echo esc_attr($settings['wg_title']); ?></h5> <div class="wg-desc pxl-empty"><?php echo esc_attr($settings['wg_desc']); ?></div> </div> <?php if(!empty($settings['wg_btn_text'])) : ?> <div class="wg-button"> <a <?php pxl_print_html($widget->get_render_attribute_string( 'button' )); ?>><?php echo esc_attr($settings['wg_btn_text']); ?></a> </div> <?php endif; ?> </div> </div> </div> <?php endif; ?> <?php endif; ?> <div class="<?php echo esc_attr($item_class); ?>"> <div class="pxl-item--inner <?php echo esc_attr($settings['pxl_animate']); ?>"> <?php if(!empty($image['id'])) { $img = pxl_get_image_by_size( array( 'attach_id' => $image['id'], 'thumb_size' => $image_size, 'class' => 'no-lazyload', )); $thumbnail = $img['thumbnail']; ?> <div class="pxl-item--image"> <?php if ( ! empty( $value['item_link']['url'] ) ) { ?><a <?php echo implode( ' ', [ $link_attributes ] ); ?>><?php } ?> <?php echo wp_kses_post($thumbnail); ?> <?php if ( ! empty( $value['item_link']['url'] ) ) { ?></a><?php } ?> </div> <div class="pxl-item--bottom"> <?php if(!empty($social)): $team_social = json_decode($social, true); ?> <div class="pxl-item--social"> <div class="pxl-social--inner"> <?php foreach ($team_social as $value): ?> <a href="<?php echo esc_url($value['url']); ?>" target="_blank"><i class="<?php echo esc_attr($value['icon']); ?>"></i></a> <?php endforeach; ?> </div> </div> <?php endif; ?> <div class="pxl-item--holder"> <div class="pxl-holder--inner"> <h3 class="pxl-item--title"><?php echo pxl_print_html($title); ?></h3> <div class="pxl-item--position"><?php echo pxl_print_html($position); ?></div> </div> </div> </div> <?php } ?> </div> </div> <?php endforeach; ?> <div class="grid-sizer <?php echo esc_attr($grid_sizer); ?>"></div> </div> </div> <?php endif; ?>
💾 Save Changes
❌ Cancel