| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/ict/wp-content/plugins/so-widgets-bundle/widgets/image/tpl/ |
Upload File : |
<?php
/**
* @var $title
* @var $title_position
* @var $url
* @var $link_attributes
* @var $link_title
* @var $new_window
* @var $attributes
* @var $classes
*/
?>
<?php
if ( $title_position == 'above' ) {
echo $args['before_title'];
if ( $link_title && ! empty( $url ) ) {
echo $this->generate_anchor_open( $url, $link_attributes ) . $title . '</a>';
} else {
echo $title;
}
echo $args['after_title'];
}
?>
<div class="sow-image-container">
<?php if ( ! empty( $url ) ) {
$this->generate_anchor_open( $url, $link_attributes );
} ?>
<img <?php foreach ( $attributes as $n => $v ) {
if ( $n === 'alt' || ! empty( $v ) ) {
echo $n . '="' . esc_attr( $v ) . '" ';
}
} ?>
class="<?php echo esc_attr( implode( ' ', $classes ) ); ?>"/>
<?php if ( ! empty( $url ) ) { ?></a><?php } ?>
</div>
<?php
if ( $title_position == 'below' ) {
echo $args['before_title'];
if ( $link_title && ! empty( $url ) ) {
echo $this->generate_anchor_open( $url, $link_attributes ) . $title . '</a>';
} else {
echo $title;
}
echo $args['after_title'];
}
?>