403Webshell
Server IP : 104.21.14.103  /  Your IP : 18.190.253.43
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dieukhoandaily.bnnagency.com/wp-content/themes/flatsome/inc/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dieukhoandaily.bnnagency.com/wp-content/themes/flatsome/inc/shortcodes//testimonials.php
<?php

// [testimonial]
function flatsome_testimonial($atts, $content = null) {
  global $flatsome_opt;
  $sliderrandomid = rand();
  extract(shortcode_atts(array(
    'name' => '',
    'class' => '',
    'visibility' => '',
    'company' => '',
    'stars' => '5',
    'font_size' => '',
    'text_align' => '',
    'image'  => '',
    'image_width' => '80',
    'pos' => 'left',
    'link' => '',
  ), $atts));
  ob_start();

  $classes = array('testimonial-box');
  $classes_img = array('icon-box-img','testimonial-image','circle');
  
  $classes[] = 'icon-box-'.$pos;
  if ( $class ) $classes[] = $class;
  if ( $visibility ) $classes[] = $visibility;

  if($pos == 'center') $classes[] = 'text-center';
  if($pos == 'left' || $pos == 'top') $classes[] = 'text-left';
  if($pos == 'right') $classes[] = 'text-right';
  if($font_size) $classes[] = 'is-'.$font_size;
  if($image_width) $image_width = 'width: '.intval($image_width).'px';

	$star_row = '';
	if ($stars == '1'){$star_row = '<div class="star-rating"><span style="width:25%"><strong class="rating"></strong></span></div>';}
	else if ($stars == '2'){$star_row = '<div class="star-rating"><span style="width:35%"><strong class="rating"></strong></span></div>';}
	else if ($stars == '3'){$star_row = '<div class="star-rating"><span style="width:55%"><strong class="rating"></strong></span></div>';}
	else if ($stars == '4'){$star_row = '<div class="star-rating"><span style="width:75%"><strong class="rating"></strong></span></div>';}
	else if ($stars == '5'){$star_row = '<div class="star-rating"><span style="width:100%"><strong class="rating"></strong></span></div>';}

  $classes = implode(" ", $classes);
  $classes_img = implode(" ", $classes_img);
  ?>
  <div class="icon-box <?php echo $classes; ?>">
        <?php if($image) { ?>
        <div class="<?php echo $classes_img; ?>" style="<?php if($image_width) echo $image_width; ?>">
              <?php echo flatsome_get_image($image, $size = 'thumbnail', $alt = $name) ;?>
        </div>
        <?php } ?>
        <div class="icon-box-text p-last-0">
          <?php if($stars > 0) echo $star_row; ?>
  				<div class="testimonial-text line-height-small italic test_text first-reset last-reset is-italic">
            <?php echo do_shortcode( $content ); ?>
          </div>
          <div class="testimonial-meta pt-half">
             <strong class="testimonial-name test_name"><?php echo $name; ?></strong>
             <?php if($name && $company) echo '<span class="testimonial-name-divider"> / </span>'; ?>
             <span class="testimonial-company test_company"><?php echo $company; ?></span>
          </div>
        </div>
  </div>

  <?php
  $content = ob_get_contents();
  ob_end_clean();
  return $content;
}

add_shortcode("testimonial", "flatsome_testimonial");


Youez - 2016 - github.com/yon3zu
LinuXploit