PluginProbe ʕ •ᴥ•ʔ
Image Widget / 3.2.2
Image Widget v3.2.2
trunk 1.0 2.0 2.1 2.2 2.2.1 2.2.2 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.2 3.2.1 3.2.10 3.2.11 3.2.2 3.2.3 3.2.4 3.2.5 3.2.7 3.2.8 3.2.9 3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 4.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.0.8 4.0.9 4.1 4.1.1 4.1.2 4.2 4.2.1 4.2.2 4.3 4.3.1 4.4 4.4.1 4.4.11 4.4.12 4.4.2 4.4.3 4.4.4 4.4.5 4.4.6 4.4.7 4.4.8 4.4.9
image-widget / views / widget.php
image-widget / views Last commit date
widget-admin.php 15 years ago widget.php 15 years ago
widget.php
37 lines
1 <?php
2 echo $before_widget;
3 if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }
4 if ( !empty( $image ) ) {
5 if ( $link ) {
6 echo '<a class="'.$this->widget_options['classname'].'-image-link" href="'.$link.'" target="'.$linktarget.'">';
7 }
8 if ( $imageurl ) {
9 echo "<img src=\"{$imageurl}\" style=\"";
10 if ( !empty( $width ) && is_numeric( $width ) ) {
11 echo "max-width: {$width}px;";
12 }
13 if ( !empty( $height ) && is_numeric( $height ) ) {
14 echo "max-height: {$height}px;";
15 }
16 echo "\"";
17 if ( !empty( $align ) && $align != 'none' ) {
18 echo " class=\"align{$align}\"";
19 }
20 if ( !empty( $alt ) ) {
21 echo " alt=\"{$alt}\"";
22 } else {
23 echo " alt=\"{$title}\"";
24 }
25 echo " />";
26 }
27
28 if ( $link ) { echo '</a>'; }
29 }
30 if ( !empty( $description ) ) {
31 $text = apply_filters( 'widget_text', $description );
32 echo '<div class="'.$this->widget_options['classname'].'-description" >';
33 echo wpautop( $text );
34 echo "</div>";
35 }
36 echo $after_widget;
37 ?>