Plugin Directory

Changeset 2481799


Ignore:
Timestamp:
02/25/2021 09:28:05 PM (5 years ago)
Author:
sstukov
Message:

tagging version 1.0.26

Location:
userecho
Files:
2 edited
3 copied

Legend:

Unmodified
Added
Removed
  • userecho/tags/1.0.26/readme.txt

    r2002045 r2481799  
    44Tags: feedback, users community, widget, ideas, helpdesk, livechat
    55Requires at least: 2.8
    6 Tested up to: 5.0.2
    7 Stable tag: 1.0.25
     6Tested up to: 5.6.2
     7Stable tag: 1.0.26
    88
    99Integrate UserEcho - customer feedback and helpdesk system into your blog. Using widget or link. Support SSO.
     
    4545== Changelog ==
    4646
     47= 1.0.26 =
     48* User avatars support - avatars from WP auto-sync with UserEcho
     49* added support for Wordpress 5.6.2
    4750= 1.0.25 =
    4851* added support for Wordpress 5.0
     
    5659* SSO integration - Add case when the WordPress login page is not default (wp-login.php)
    5760= 1.0.9 =
    58 * SSO integration - the bug fixes. 
     61* SSO integration - the bug fixes.
    5962= 1.0.8 =
    6063= 1.0.7 =
  • userecho/tags/1.0.26/userecho.php

    r2002046 r2481799  
    22/*
    33Plugin Name: UserEcho for Wordpress - collect feedback for your blog
    4 Version: 1.0.25
     4Version: 1.0.26
    55Plugin URI: https://userecho.com
    66Author: UserEcho
     
    1212/*
    1313    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
    1515    published by the Free Software Foundation.
    1616
     
    2828
    2929if(!function_exists('wp_get_current_user')) {
    30     require_once ABSPATH . "wp-includes/pluggable.php"; 
     30    require_once ABSPATH . "wp-includes/pluggable.php";
    3131}
    3232
     
    7676            $options['tab_icon_show'] = !empty( $_POST['tab_icon_show'] );
    7777            $options['verified_email'] = !empty( $_POST['verified_email'] );
    78            
     78
    7979            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']; }
    8787
    8888            if ( $orig_options !== $options ) {
     
    9797    function meta_configuration_content() {
    9898        $options = $this->get_options();
    99        
     99
    100100        $language_options = array(
    101101            'en' => __( 'English' ) . ' (EN)',
     
    133133            'bottom' => __( 'Bottom' ),
    134134        );
    135        
     135
    136136        if ( !empty( $options['language'] ) ) {
    137137            $language_options += array( $options['language'] => 'Custom ('.$options['language'].')' );
     
    314314        $options = $this->get_options();
    315315
     316    #echo get_avatar_url( $current_user->ID, array('size' => 64, 'scheme' => 'https'));
     317
    316318        if ( !empty( $current_user->ID ) ) {
    317319            $params = array(
     
    321323                'locale' => $options['language'], // (Optional) User language override
    322324                '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'))
    323326            );
    324327        }
     
    364367        {
    365368        $options = $this->get_options();
    366        
     369
    367370        if ( $options['show_tab'] ) {
    368371            $_ues = array(
     
    381384
    382385            $sso_token = $this->get_sso_token();
    383             if ($sso_token){
     386
     387      if ($sso_token){
    384388                $_ues = $_ues + array(
    385389                    'params' => array('sso_token' => $sso_token),
     
    470474
    471475    public function form( $instance ) {
    472    
     476
    473477        // outputs the options form on admin
    474478        if ( $instance ) {
    475479            $title = esc_attr( $instance['title'] );
    476             $link_text = esc_attr( $instance['link_text'] );       
     480            $link_text = esc_attr( $instance['link_text'] );
    477481        }
    478482        else {
     
    489493        <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; ?>" />
    490494        </p>
    491        
     495
    492496        <?php
    493497    }
     
    514518            <?php
    515519            echo $after_widget;
    516        
     520
    517521    }
    518522}
  • userecho/trunk/readme.txt

    r2002045 r2481799  
    44Tags: feedback, users community, widget, ideas, helpdesk, livechat
    55Requires at least: 2.8
    6 Tested up to: 5.0.2
    7 Stable tag: 1.0.25
     6Tested up to: 5.6.2
     7Stable tag: 1.0.26
    88
    99Integrate UserEcho - customer feedback and helpdesk system into your blog. Using widget or link. Support SSO.
     
    4545== Changelog ==
    4646
     47= 1.0.26 =
     48* User avatars support - avatars from WP auto-sync with UserEcho
     49* added support for Wordpress 5.6.2
    4750= 1.0.25 =
    4851* added support for Wordpress 5.0
     
    5659* SSO integration - Add case when the WordPress login page is not default (wp-login.php)
    5760= 1.0.9 =
    58 * SSO integration - the bug fixes. 
     61* SSO integration - the bug fixes.
    5962= 1.0.8 =
    6063= 1.0.7 =
  • userecho/trunk/userecho.php

    r2002046 r2481799  
    22/*
    33Plugin Name: UserEcho for Wordpress - collect feedback for your blog
    4 Version: 1.0.25
     4Version: 1.0.26
    55Plugin URI: https://userecho.com
    66Author: UserEcho
     
    1212/*
    1313    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
    1515    published by the Free Software Foundation.
    1616
     
    2828
    2929if(!function_exists('wp_get_current_user')) {
    30     require_once ABSPATH . "wp-includes/pluggable.php"; 
     30    require_once ABSPATH . "wp-includes/pluggable.php";
    3131}
    3232
     
    7676            $options['tab_icon_show'] = !empty( $_POST['tab_icon_show'] );
    7777            $options['verified_email'] = !empty( $_POST['verified_email'] );
    78            
     78
    7979            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']; }
    8787
    8888            if ( $orig_options !== $options ) {
     
    9797    function meta_configuration_content() {
    9898        $options = $this->get_options();
    99        
     99
    100100        $language_options = array(
    101101            'en' => __( 'English' ) . ' (EN)',
     
    133133            'bottom' => __( 'Bottom' ),
    134134        );
    135        
     135
    136136        if ( !empty( $options['language'] ) ) {
    137137            $language_options += array( $options['language'] => 'Custom ('.$options['language'].')' );
     
    314314        $options = $this->get_options();
    315315
     316    #echo get_avatar_url( $current_user->ID, array('size' => 64, 'scheme' => 'https'));
     317
    316318        if ( !empty( $current_user->ID ) ) {
    317319            $params = array(
     
    321323                'locale' => $options['language'], // (Optional) User language override
    322324                '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'))
    323326            );
    324327        }
     
    364367        {
    365368        $options = $this->get_options();
    366        
     369
    367370        if ( $options['show_tab'] ) {
    368371            $_ues = array(
     
    381384
    382385            $sso_token = $this->get_sso_token();
    383             if ($sso_token){
     386
     387      if ($sso_token){
    384388                $_ues = $_ues + array(
    385389                    'params' => array('sso_token' => $sso_token),
     
    470474
    471475    public function form( $instance ) {
    472    
     476
    473477        // outputs the options form on admin
    474478        if ( $instance ) {
    475479            $title = esc_attr( $instance['title'] );
    476             $link_text = esc_attr( $instance['link_text'] );       
     480            $link_text = esc_attr( $instance['link_text'] );
    477481        }
    478482        else {
     
    489493        <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; ?>" />
    490494        </p>
    491        
     495
    492496        <?php
    493497    }
     
    514518            <?php
    515519            echo $after_widget;
    516        
     520
    517521    }
    518522}
Note: See TracChangeset for help on using the changeset viewer.