Changeset 1869008
- Timestamp:
- 05/05/2018 02:52:06 AM (8 years ago)
- Location:
- spridz-widget/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
spridz-widget.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spridz-widget/trunk/readme.txt
r1868684 r1869008 4 4 Requires at least: 4.6 5 5 Tested up to: 4.95 6 Stable tag: 0. 26 Stable tag: 0.3 7 7 Requires PHP: 5 8 8 License: GPLv2 or later … … 47 47 48 48 For further information please contact info@spridz.com 49 -
spridz-widget/trunk/spridz-widget.php
r1864627 r1869008 2 2 /* 3 3 Plugin Name: Spridz Widget Plugin 4 Plugin URI: https:// bitbucket.org/spridz/spridz-widget4 Plugin URI: https://wordpress.org/plugins/spridz-widget 5 5 Description: Your own Spridz customer survey widget. 6 Version: 0. 26 Version: 0.3 7 7 Author: Spridz Ventures 8 8 Author URI: http://spridz.com … … 34 34 'api_token' => '', 35 35 'host' => 'https://spridz.com', 36 'html' => '' 36 'html' => '', 37 'message' => 'Your feedback matters. Rate us by clicking a smiley.' 37 38 ); 38 39 … … 41 42 <?php ?> 42 43 <p> 44 <label for="<?php echo esc_attr( $this->get_field_id( 'message' ) ); ?>"><?php _e( 'Message', 'text_domain' ); ?></label> 45 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'message' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'message' ) ); ?>" type="text" value="<?php echo esc_attr( $message ); ?>" /> 46 43 47 <label for="<?php echo esc_attr( $this->get_field_id( 'api_token' ) ); ?>"><?php _e( 'API Token', 'text_domain' ); ?></label> 44 48 <input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'api_token' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'api_token' ) ); ?>" type="text" value="<?php echo esc_attr( $api_token ); ?>" /> … … 59 63 $instance['api_token'] = isset( $new_instance['api_token'] ) ? wp_strip_all_tags( $new_instance['api_token'] ) : ''; 60 64 $instance['host'] = isset( $new_instance['host'] ) ? wp_strip_all_tags( $new_instance['host'] ) : ''; 65 $instance['message'] = isset( $new_instance['message']) ? wp_strip_all_tags( $new_instance['message']) : ''; 61 66 62 67 $url = $instance['host'] . "/admin/api/widget"; … … 78 83 79 84 $html = isset( $instance['html'] ) ? $instance['html'] : ''; 85 $message = isset( $instance['message'] ) ? $instance['message'] : ''; 80 86 81 87 echo $before_widget; 82 88 83 89 echo '<div class="widget-text wp_widget_plugin_box">'; 90 91 if ( $message ) { 92 echo '<div>' . $message . '</div>'; 93 } 84 94 85 95 if ( $html ) {
Note: See TracChangeset
for help on using the changeset viewer.