index.php
9 years ago
widget-admin.deprecated.php
9 years ago
widget-admin.php
9 years ago
widget.php
9 years ago
widget.php
23 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Widget template. This template can be overriden using the "sp_template_image-widget_widget.php" filter. |
| 4 | * See the readme.txt file for more info. |
| 5 | */ |
| 6 | |
| 7 | // Block direct requests |
| 8 | if ( ! defined( 'ABSPATH' ) ) |
| 9 | die( '-1' ); |
| 10 | |
| 11 | echo $before_widget; |
| 12 | |
| 13 | if ( ! empty( $title ) ) { echo $before_title . $title . $after_title; } |
| 14 | |
| 15 | echo $this->get_image_html( $instance, true ); |
| 16 | |
| 17 | if ( ! empty( $description ) ) { |
| 18 | echo '<div class="' . esc_attr( $this->widget_options['classname'] ) . '-description" >'; |
| 19 | echo wpautop( $description ); |
| 20 | echo '</div>'; |
| 21 | } |
| 22 | echo $after_widget; |
| 23 |