Changeset 2481799
- Timestamp:
- 02/25/2021 09:28:05 PM (5 years ago)
- Location:
- userecho
- Files:
-
- 2 edited
- 3 copied
-
tags/1.0.26 (copied) (copied from userecho/trunk)
-
tags/1.0.26/readme.txt (copied) (copied from userecho/trunk/readme.txt) (3 diffs)
-
tags/1.0.26/userecho.php (copied) (copied from userecho/trunk/userecho.php) (13 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/userecho.php (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
userecho/tags/1.0.26/readme.txt
r2002045 r2481799 4 4 Tags: feedback, users community, widget, ideas, helpdesk, livechat 5 5 Requires at least: 2.8 6 Tested up to: 5. 0.27 Stable tag: 1.0.2 56 Tested up to: 5.6.2 7 Stable tag: 1.0.26 8 8 9 9 Integrate UserEcho - customer feedback and helpdesk system into your blog. Using widget or link. Support SSO. … … 45 45 == Changelog == 46 46 47 = 1.0.26 = 48 * User avatars support - avatars from WP auto-sync with UserEcho 49 * added support for Wordpress 5.6.2 47 50 = 1.0.25 = 48 51 * added support for Wordpress 5.0 … … 56 59 * SSO integration - Add case when the WordPress login page is not default (wp-login.php) 57 60 = 1.0.9 = 58 * SSO integration - the bug fixes. 61 * SSO integration - the bug fixes. 59 62 = 1.0.8 = 60 63 = 1.0.7 = -
userecho/tags/1.0.26/userecho.php
r2002046 r2481799 2 2 /* 3 3 Plugin Name: UserEcho for Wordpress - collect feedback for your blog 4 Version: 1.0.2 54 Version: 1.0.26 5 5 Plugin URI: https://userecho.com 6 6 Author: UserEcho … … 12 12 /* 13 13 This program is free software; you can redistribute it and/or modify 14 it under the terms of the GNU General Public License, version 2, as 14 it under the terms of the GNU General Public License, version 2, as 15 15 published by the Free Software Foundation. 16 16 … … 28 28 29 29 if(!function_exists('wp_get_current_user')) { 30 require_once ABSPATH . "wp-includes/pluggable.php"; 30 require_once ABSPATH . "wp-includes/pluggable.php"; 31 31 } 32 32 … … 76 76 $options['tab_icon_show'] = !empty( $_POST['tab_icon_show'] ); 77 77 $options['verified_email'] = !empty( $_POST['verified_email'] ); 78 78 79 79 if ( !empty( $_POST['forum'] ) ) { $options['forum'] = $_POST['forum']; } 80 if ( !empty( $_POST['tab_corner_radius'] ) ) { $options['tab_corner_radius'] = $_POST['tab_corner_radius']; } 81 if ( !empty( $_POST['tab_font_size'] ) ) { $options['tab_font_size'] = $_POST['tab_font_size']; } 82 if ( !empty( $_POST['tab_alignment'] ) ) { $options['tab_alignment'] = $_POST['tab_alignment']; } 83 if ( !empty( $_POST['tab_text'] ) ) { $options['tab_text'] = $_POST['tab_text']; } 84 if ( !empty( $_POST['tab_text_color'] ) ) { $options['tab_text_color'] = $_POST['tab_text_color']; } 85 if ( !empty( $_POST['tab_bg_color'] ) ) { $options['tab_bg_color'] = $_POST['tab_bg_color']; } 86 if ( !empty( $_POST['tab_hover_color'] ) ) { $options['tab_hover_color'] = $_POST['tab_hover_color']; } 80 if ( !empty( $_POST['tab_corner_radius'] ) ) { $options['tab_corner_radius'] = $_POST['tab_corner_radius']; } 81 if ( !empty( $_POST['tab_font_size'] ) ) { $options['tab_font_size'] = $_POST['tab_font_size']; } 82 if ( !empty( $_POST['tab_alignment'] ) ) { $options['tab_alignment'] = $_POST['tab_alignment']; } 83 if ( !empty( $_POST['tab_text'] ) ) { $options['tab_text'] = $_POST['tab_text']; } 84 if ( !empty( $_POST['tab_text_color'] ) ) { $options['tab_text_color'] = $_POST['tab_text_color']; } 85 if ( !empty( $_POST['tab_bg_color'] ) ) { $options['tab_bg_color'] = $_POST['tab_bg_color']; } 86 if ( !empty( $_POST['tab_hover_color'] ) ) { $options['tab_hover_color'] = $_POST['tab_hover_color']; } 87 87 88 88 if ( $orig_options !== $options ) { … … 97 97 function meta_configuration_content() { 98 98 $options = $this->get_options(); 99 99 100 100 $language_options = array( 101 101 'en' => __( 'English' ) . ' (EN)', … … 133 133 'bottom' => __( 'Bottom' ), 134 134 ); 135 135 136 136 if ( !empty( $options['language'] ) ) { 137 137 $language_options += array( $options['language'] => 'Custom ('.$options['language'].')' ); … … 314 314 $options = $this->get_options(); 315 315 316 #echo get_avatar_url( $current_user->ID, array('size' => 64, 'scheme' => 'https')); 317 316 318 if ( !empty( $current_user->ID ) ) { 317 319 $params = array( … … 321 323 'locale' => $options['language'], // (Optional) User language override 322 324 'verified_email' => $options['verified_email'], // (Optional) Is user's email verified? 325 'avatar_url' => get_avatar_url( $current_user->ID, array('size' => 64, 'scheme' => 'https')) 323 326 ); 324 327 } … … 364 367 { 365 368 $options = $this->get_options(); 366 369 367 370 if ( $options['show_tab'] ) { 368 371 $_ues = array( … … 381 384 382 385 $sso_token = $this->get_sso_token(); 383 if ($sso_token){ 386 387 if ($sso_token){ 384 388 $_ues = $_ues + array( 385 389 'params' => array('sso_token' => $sso_token), … … 470 474 471 475 public function form( $instance ) { 472 476 473 477 // outputs the options form on admin 474 478 if ( $instance ) { 475 479 $title = esc_attr( $instance['title'] ); 476 $link_text = esc_attr( $instance['link_text'] ); 480 $link_text = esc_attr( $instance['link_text'] ); 477 481 } 478 482 else { … … 489 493 <input class="widefat" id="<?php echo $this->get_field_id( 'link_text' ); ?>" name="<?php echo $this->get_field_name( 'link_text' ); ?>" type="text" value="<?php echo $link_text; ?>" /> 490 494 </p> 491 495 492 496 <?php 493 497 } … … 514 518 <?php 515 519 echo $after_widget; 516 520 517 521 } 518 522 } -
userecho/trunk/readme.txt
r2002045 r2481799 4 4 Tags: feedback, users community, widget, ideas, helpdesk, livechat 5 5 Requires at least: 2.8 6 Tested up to: 5. 0.27 Stable tag: 1.0.2 56 Tested up to: 5.6.2 7 Stable tag: 1.0.26 8 8 9 9 Integrate UserEcho - customer feedback and helpdesk system into your blog. Using widget or link. Support SSO. … … 45 45 == Changelog == 46 46 47 = 1.0.26 = 48 * User avatars support - avatars from WP auto-sync with UserEcho 49 * added support for Wordpress 5.6.2 47 50 = 1.0.25 = 48 51 * added support for Wordpress 5.0 … … 56 59 * SSO integration - Add case when the WordPress login page is not default (wp-login.php) 57 60 = 1.0.9 = 58 * SSO integration - the bug fixes. 61 * SSO integration - the bug fixes. 59 62 = 1.0.8 = 60 63 = 1.0.7 = -
userecho/trunk/userecho.php
r2002046 r2481799 2 2 /* 3 3 Plugin Name: UserEcho for Wordpress - collect feedback for your blog 4 Version: 1.0.2 54 Version: 1.0.26 5 5 Plugin URI: https://userecho.com 6 6 Author: UserEcho … … 12 12 /* 13 13 This program is free software; you can redistribute it and/or modify 14 it under the terms of the GNU General Public License, version 2, as 14 it under the terms of the GNU General Public License, version 2, as 15 15 published by the Free Software Foundation. 16 16 … … 28 28 29 29 if(!function_exists('wp_get_current_user')) { 30 require_once ABSPATH . "wp-includes/pluggable.php"; 30 require_once ABSPATH . "wp-includes/pluggable.php"; 31 31 } 32 32 … … 76 76 $options['tab_icon_show'] = !empty( $_POST['tab_icon_show'] ); 77 77 $options['verified_email'] = !empty( $_POST['verified_email'] ); 78 78 79 79 if ( !empty( $_POST['forum'] ) ) { $options['forum'] = $_POST['forum']; } 80 if ( !empty( $_POST['tab_corner_radius'] ) ) { $options['tab_corner_radius'] = $_POST['tab_corner_radius']; } 81 if ( !empty( $_POST['tab_font_size'] ) ) { $options['tab_font_size'] = $_POST['tab_font_size']; } 82 if ( !empty( $_POST['tab_alignment'] ) ) { $options['tab_alignment'] = $_POST['tab_alignment']; } 83 if ( !empty( $_POST['tab_text'] ) ) { $options['tab_text'] = $_POST['tab_text']; } 84 if ( !empty( $_POST['tab_text_color'] ) ) { $options['tab_text_color'] = $_POST['tab_text_color']; } 85 if ( !empty( $_POST['tab_bg_color'] ) ) { $options['tab_bg_color'] = $_POST['tab_bg_color']; } 86 if ( !empty( $_POST['tab_hover_color'] ) ) { $options['tab_hover_color'] = $_POST['tab_hover_color']; } 80 if ( !empty( $_POST['tab_corner_radius'] ) ) { $options['tab_corner_radius'] = $_POST['tab_corner_radius']; } 81 if ( !empty( $_POST['tab_font_size'] ) ) { $options['tab_font_size'] = $_POST['tab_font_size']; } 82 if ( !empty( $_POST['tab_alignment'] ) ) { $options['tab_alignment'] = $_POST['tab_alignment']; } 83 if ( !empty( $_POST['tab_text'] ) ) { $options['tab_text'] = $_POST['tab_text']; } 84 if ( !empty( $_POST['tab_text_color'] ) ) { $options['tab_text_color'] = $_POST['tab_text_color']; } 85 if ( !empty( $_POST['tab_bg_color'] ) ) { $options['tab_bg_color'] = $_POST['tab_bg_color']; } 86 if ( !empty( $_POST['tab_hover_color'] ) ) { $options['tab_hover_color'] = $_POST['tab_hover_color']; } 87 87 88 88 if ( $orig_options !== $options ) { … … 97 97 function meta_configuration_content() { 98 98 $options = $this->get_options(); 99 99 100 100 $language_options = array( 101 101 'en' => __( 'English' ) . ' (EN)', … … 133 133 'bottom' => __( 'Bottom' ), 134 134 ); 135 135 136 136 if ( !empty( $options['language'] ) ) { 137 137 $language_options += array( $options['language'] => 'Custom ('.$options['language'].')' ); … … 314 314 $options = $this->get_options(); 315 315 316 #echo get_avatar_url( $current_user->ID, array('size' => 64, 'scheme' => 'https')); 317 316 318 if ( !empty( $current_user->ID ) ) { 317 319 $params = array( … … 321 323 'locale' => $options['language'], // (Optional) User language override 322 324 'verified_email' => $options['verified_email'], // (Optional) Is user's email verified? 325 'avatar_url' => get_avatar_url( $current_user->ID, array('size' => 64, 'scheme' => 'https')) 323 326 ); 324 327 } … … 364 367 { 365 368 $options = $this->get_options(); 366 369 367 370 if ( $options['show_tab'] ) { 368 371 $_ues = array( … … 381 384 382 385 $sso_token = $this->get_sso_token(); 383 if ($sso_token){ 386 387 if ($sso_token){ 384 388 $_ues = $_ues + array( 385 389 'params' => array('sso_token' => $sso_token), … … 470 474 471 475 public function form( $instance ) { 472 476 473 477 // outputs the options form on admin 474 478 if ( $instance ) { 475 479 $title = esc_attr( $instance['title'] ); 476 $link_text = esc_attr( $instance['link_text'] ); 480 $link_text = esc_attr( $instance['link_text'] ); 477 481 } 478 482 else { … … 489 493 <input class="widefat" id="<?php echo $this->get_field_id( 'link_text' ); ?>" name="<?php echo $this->get_field_name( 'link_text' ); ?>" type="text" value="<?php echo $link_text; ?>" /> 490 494 </p> 491 495 492 496 <?php 493 497 } … … 514 518 <?php 515 519 echo $after_widget; 516 520 517 521 } 518 522 }
Note: See TracChangeset
for help on using the changeset viewer.