KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux cs317.bluehost.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : andertr9 ( 1047)
PHP Version : 8.2.18
Disable Function : NONE
Directory :  /home1/andertr9/public_html/wp-content/themes/ssp-starter/includes/shortcodes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/andertr9/public_html/wp-content/themes/ssp-starter/includes/shortcodes/image.php
<?php

if ( ! function_exists( 'ssp_starter_shortcode_image' )) {
  
  function ssp_starter_shortcode_image( $atts , $content = null ) {
    extract( shortcode_atts( array(
      'src'    => '' ,
      'alt'    => '' ,
      'title'  => '' ,
      'height' => '' ,
      'width'  => '' ,
			'class'  => '' ,
			'label'  => '' ,
    ) , $atts ));

    $image = '';
    if ( $src ) {
			$src    = ( is_numeric( $src )) ? wp_get_attachment_url( $src ) : $src;
      $src    = ( strpos( $src , 'http' ) === false ) ? get_home_url( null , $src ) : $src;
			$image .= $label ? '<div class="image ' . $class . '">' : '';
      $image .= '<img src="' . $src . '"';
			$image .= ' alt="' . $alt . '"';
			$image .= $title 						 ? ' title="'  . $title  . '"' : '';
			$image .= $height 					 ? ' height="' . $height . '"' : '';
			$image .= $width 						 ? ' width="'  . $width  . '"' : '';
			$image .= $class && ! $label ? ' class="'  . $class  . '"' : '';
      $image .= ' />';
			$image .= $label ? '<label>' . $label . '</label></div>' : '';
    }

    return $image;
  }
} add_shortcode( 'image', 'ssp_starter_shortcode_image' );

Anon7 - 2021