Plugin Directory

Changeset 2278790


Ignore:
Timestamp:
04/07/2020 09:19:35 PM (6 years ago)
Author:
akshitsethi
Message:

Update to version v2.0.2 from GitHub

Location:
widgets-bundle/trunk
Files:
1 added
14 edited

Legend:

Unmodified
Added
Removed
  • widgets-bundle/trunk/assets/admin/js/admin.js

    r2269726 r2278790  
    106106
    107107      // ID
    108       var id        = $(this).attr('data-tab').replace('#', '');
     108      var id = $(this).attr('data-tab').replace('#', '');
    109109
    110110      // Form data
     
    123123        beforeSend: function() {
    124124          $('#' + id).block({
    125             message: '<div class="as-strong" style="background: #ecf0f1; padding: 10px 6px; color: #000;">Processing..</div>',
     125            message: '<div class="as-strong" style="background: #ecf0f1; padding: 10px 6px; color: #000;">' + widgetsbundle_admin_l10n.processing + '</div>',
    126126            css: {
    127127              border: 'none',
     
    139139        $('#' + id).unblock();
    140140
    141         // Success
    142         if (data.code == 'success') {
    143           toastr.success('<strong>Hey!</strong> ' + data.response);
    144 
    145           // Remove input class
    146           $('input, textarea, select').removeClass('changed-input');
    147         } else {
    148           // Error
    149           toastr.error('<strong>Oops!</strong> ' + data.response);
    150         }
     141        // Notification
     142        toastr[data.code](data.response);
     143
     144        // Remove input class
     145        $('input, textarea, select').removeClass('changed-input');
    151146      });
    152147    });
     
    201196
    202197      if ($('.changed-input').length) {
    203         toastr.error('<strong>Hey!</strong> You haven\'t saved your changes.');
     198        toastr.error(widgetsbundle_admin_l10n.save_changes);
    204199      } else {
    205200        // Change menu selection
  • widgets-bundle/trunk/inc/admin/views/header.php

    r2269726 r2278790  
    2020
    2121        <div class="as-header-right">
    22             <input type="submit" id="<?php echo Config::PREFIX . 'submit'; ?>" name="<?php echo Config::PREFIX . 'submit'; ?>" class="as-btn" value="<?php esc_html_e( 'Save Changes', 'widgets-bundle' ); ?>" data-tab="options">
     22            <input type="submit" id="<?php echo Config::PREFIX . 'submit'; ?>" name="<?php echo Config::PREFIX . 'submit'; ?>" class="as-btn" value="<?php esc_html_e( 'Save Changes', 'widgets-bundle' ); ?>" data-tab="#options">
    2323        </div><!-- .as-header-right -->
    2424    </div><!-- .as-header -->
  • widgets-bundle/trunk/inc/admin/views/settings-about.php

    r2269726 r2278790  
    66 * @since 1.0.0
    77 */
     8
     9use AkshitSethi\Plugins\WidgetsBundle\Config;
    810
    911?>
     
    1719                <p><?php esc_html_e( 'Show me some love and connect with me via social channels.', 'widgets-bundle' ); ?></p>
    1820                <a href="https://twitter.com/akshitsethi" target="_blank">
    19                     <img src="<?php echo AkshitSethi\Plugins\WidgetsBundle\Config::$plugin_url; ?>assets/admin/images/twitter.png" alt="<?php esc_attr_e( 'Twitter', 'widgets-bundle' ); ?>" />
     21                    <img src="<?php echo Config::$plugin_url; ?>assets/admin/images/twitter.png" alt="<?php esc_attr_e( 'Twitter', 'widgets-bundle' ); ?>" />
    2022                </a>&nbsp;
    2123
    2224                <a href="https://www.facebook.com/akshitsethi" target="_blank">
    23                     <img src="<?php echo AkshitSethi\Plugins\WidgetsBundle\Config::$plugin_url; ?>assets/admin/images/facebook.png" alt="<?php esc_attr_e( 'Facebook', 'widgets-bundle' ); ?>" />
     25                    <img src="<?php echo Config::$plugin_url; ?>assets/admin/images/facebook.png" alt="<?php esc_attr_e( 'Facebook', 'widgets-bundle' ); ?>" />
    2426                </a>
    2527            </div><!-- .as-share -->
  • widgets-bundle/trunk/inc/admin/views/settings-options.php

    r2269726 r2278790  
    2121                    <div class="as-form-group">
    2222                        <label for="<?php echo Config::PREFIX . 'ads'; ?>" class="as-strong"><?php esc_html_e( 'Ads Widget', 'widgets-bundle' ); ?></label>
    23                         <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'ads'; ?>" value="1"<?php checked( true, absint( $options['ads'] ) ); ?>>
     23                        <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'ads'; ?>" value="1"<?php checked( true, esc_attr( $options['ads'] ) ); ?>>
    2424
    2525                        <p class="as-form-help-block"><?php esc_html_e( 'Widget for displaying "Sponsored" ads.', 'widgets-bundle' ); ?></p>
     
    2828                    <div class="as-form-group">
    2929                        <label for="<?php echo Config::PREFIX . 'facebook'; ?>" class="as-strong"><?php esc_html_e( 'Facebook Widget', 'widgets-bundle' ); ?></label>
    30                         <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'facebook'; ?>" value="1"<?php checked( true, absint( $options['facebook'] ) ); ?>>
     30                        <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'facebook'; ?>" value="1"<?php checked( true, esc_attr( $options['facebook'] ) ); ?>>
    3131
    3232                        <p class="as-form-help-block"><?php esc_html_e( 'This widget helps you display your Facebook page feed.', 'widgets-bundle' ); ?></p>
     
    3737                    <div class="as-form-group">
    3838                        <label for="<?php echo Config::PREFIX . 'personal'; ?>" class="as-strong"><?php esc_html_e( 'Personal Widget', 'widgets-bundle' ); ?></label>
    39                         <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'personal'; ?>" value="1"<?php checked( true, absint( $options['personal'] ) ); ?>>
     39                        <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'personal'; ?>" value="1"<?php checked( true, esc_attr( $options['personal'] ) ); ?>>
    4040
    4141                        <p class="as-form-help-block"><?php esc_html_e( 'Widget for displaying "About Me" information on the website.', 'widgets-bundle' ); ?></p>
     
    4444                    <div class="as-form-group">
    4545                        <label for="<?php echo Config::PREFIX . 'posts'; ?>" class="as-strong"><?php esc_html_e( 'Posts Widget', 'widgets-bundle' ); ?></label>
    46                         <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'posts'; ?>" value="1"<?php checked( true, absint( $options['posts'] ) ); ?>>
     46                        <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'posts'; ?>" value="1"<?php checked( true, esc_attr( $options['posts'] ) ); ?>>
    4747
    4848                        <p class="as-form-help-block"><?php esc_html_e( 'Display posts with thumbnails with the flexibility of selecting between different styles.', 'widgets-bundle' ); ?></p>
     
    5353                    <div class="as-form-group">
    5454                        <label for="<?php echo Config::PREFIX . 'quote'; ?>" class="as-strong"><?php esc_html_e( 'Quote Widget', 'widgets-bundle' ); ?></label>
    55                         <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'quote'; ?>" value="1"<?php checked( true, absint( $options['quote'] ) ); ?>>
     55                        <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'quote'; ?>" value="1"<?php checked( true, esc_attr( $options['quote'] ) ); ?>>
    5656
    5757                        <p class="as-form-help-block"><?php esc_html_e( 'Display your favourite quotes with the help of this widget.', 'widgets-bundle' ); ?></p>
     
    6060                    <div class="as-form-group">
    6161                        <label for="<?php echo Config::PREFIX . 'social'; ?>" class="as-strong"><?php esc_html_e( 'Social Widget', 'widgets-bundle' ); ?></label>
    62                         <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'social'; ?>" value="1"<?php checked( true, absint( $options['social'] ) ); ?>>
     62                        <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'social'; ?>" value="1"<?php checked( true, esc_attr( $options['social'] ) ); ?>>
    6363
    6464                        <p class="as-form-help-block"><?php esc_html_e( 'Widget for displaying social media links on your website.', 'widgets-bundle' ); ?></p>
     
    6969                    <div class="as-form-group">
    7070                        <label for="<?php echo Config::PREFIX . 'subscribe'; ?>" class="as-strong"><?php esc_html_e( 'Subscribe Widget', 'widgets-bundle' ); ?></label>
    71                         <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'subscribe'; ?>" value="1"<?php checked( true, absint( $options['subscribe'] ) ); ?>>
     71                        <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'subscribe'; ?>" value="1"<?php checked( true, esc_attr( $options['subscribe'] ) ); ?>>
    7272
    7373                        <p class="as-form-help-block"><?php esc_html_e( 'Mailchimp subscription form with AJAX functionality.', 'widgets-bundle' ); ?></p>
     
    7676                    <div class="as-form-group">
    7777                        <label for="<?php echo Config::PREFIX . 'instagram'; ?>" class="as-strong"><?php esc_html_e( 'Instagram Widget', 'widgets-bundle' ); ?></label>
    78                         <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'instagram'; ?>" value="1"<?php checked( true, absint( $options['instagram'] ) ); ?>>
     78                        <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'instagram'; ?>" value="1"<?php checked( true, esc_attr( $options['instagram'] ) ); ?>>
    7979
    8080                        <p class="as-form-help-block"><?php esc_html_e( 'This widget helps you display your photos from Instagram.', 'widgets-bundle' ); ?></p>
     
    8585                    <div class="as-form-group">
    8686                        <label for="<?php echo Config::PREFIX . 'twitter'; ?>" class="as-strong"><?php esc_html_e( 'Twitter Widget', 'widgets-bundle' ); ?></label>
    87                         <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'twitter'; ?>" value="1"<?php checked( true, absint( $options['twitter'] ) ); ?>>
     87                        <input type="checkbox" class="as-form-ios" name="<?php echo Config::PREFIX . 'twitter'; ?>" value="1"<?php checked( true, esc_attr( $options['twitter'] ) ); ?>>
    8888
    8989                        <p class="as-form-help-block"><?php esc_html_e( 'This widget helps you display your profile feed from Twitter.', 'widgets-bundle' ); ?></p>
  • widgets-bundle/trunk/inc/admin/views/settings-support.php

    r2269726 r2278790  
    2020                <div class="as-form-group">
    2121                    <label for="<?php echo Config::PREFIX . 'support_email'; ?>" class="as-strong"><?php esc_html_e( 'Email Address', 'widgets-bundle' ); ?></label>
    22                     <input type="text" name="<?php echo Config::PREFIX . 'support_email'; ?>" id="<?php echo Config::PREFIX . 'support_email'; ?>" value="<?php echo esc_attr_e( $admin_email ); ?>" placeholder="<?php esc_html_e( 'Please provide your email address', 'widgets-bundle' ); ?>" class="as-form-control">
     22                    <input type="text" name="<?php echo Config::PREFIX . 'support_email'; ?>" id="<?php echo Config::PREFIX . 'support_email'; ?>" value="<?php echo esc_attr( $admin_email ); ?>" placeholder="<?php esc_html_e( 'Please provide your email address', 'widgets-bundle' ); ?>" class="as-form-control">
    2323
    2424                    <p class="as-form-help-block"><?php esc_html_e( 'You will receive support response at this email address.', 'widgets-bundle' ); ?></p>
  • widgets-bundle/trunk/inc/admin/views/settings.php

    r2269726 r2278790  
    77 */
    88
     9use AkshitSethi\Plugins\WidgetsBundle\Config;
    910require_once 'header.php';
    1011
     
    1516        <div class="as-mobile-menu">
    1617            <a href="javascript:void;">
    17                 <img src="<?php echo AkshitSethi\Plugins\WidgetsBundle\Config::$plugin_url; ?>assets/admin/images/toggle.png" alt="<?php esc_attr_e( 'Menu', 'widgets-bundle' ); ?>" />
     18                <img src="<?php echo Config::$plugin_url; ?>assets/admin/images/toggle.png" alt="<?php esc_attr_e( 'Menu', 'widgets-bundle' ); ?>" />
    1819            </a>
    1920        </div><!-- .as-mobile-menu -->
  • widgets-bundle/trunk/inc/class-admin.php

    r2269726 r2278790  
    9191            'image_preview_text' => esc_html__( 'Image preview will show over here.', 'widgets-bundle' ),
    9292            'ad_preview_text'    => esc_html__( 'Ad preview will show over here.', 'widgets-bundle' ),
     93            'save_changes'       => esc_html__( 'Please save your changes first.', 'widgets-bundle' ),
     94            'processing'         => esc_html__( 'Processing..' ),
     95            'nonce'              => wp_create_nonce( Config::PREFIX . 'nonce' ),
    9396        );
    9497
     
    139142            'response' => esc_html__( 'Options have been updated successfully.', 'widgets-bundle' ),
    140143        );
     144
     145        // Check for _nonce
     146        if ( empty( $_POST['_nonce'] ) || ! wp_verify_nonce( $_POST['_nonce'], Config::PREFIX . 'nonce' ) ) {
     147            $response['code']     = 'error';
     148            $response['response'] = esc_html__( 'Request does not seem to be a valid one. Try again by refreshing the page.', 'widgets-bundle' );
     149        }
    141150
    142151        // Filter and sanitize
     
    178187            $admin_email = sanitize_text_field( $_POST[ Config::PREFIX . 'support_email' ] );
    179188            $issue       = htmlentities( $_POST[ Config::PREFIX . 'support_issue' ] );
    180             $subject     = '[Widgets Bundle v' . Config::VERSION . '] by ' . $admin_email;
     189            $subject     = '[' . Config::get_plugin_name() . ' v' . Config::VERSION . '] by ' . $admin_email;
    181190            $body        = "Email: $admin_email \r\nIssue: $issue";
    182191            $headers     = 'From: ' . $admin_email . "\r\n" . 'Reply-To: ' . $admin_email;
  • widgets-bundle/trunk/inc/class-config.php

    r2269726 r2278790  
    1818    const PLUGIN_SLUG = 'widgets-bundle';
    1919    const SHORT_SLUG  = 'as-wb';
    20     const VERSION     = '@##VERSION##@';
     20    const VERSION     = '2.0.2';
    2121    const DB_OPTION   = 'as_widgetsbundle';
    2222    const PREFIX      = 'widgetsbundle_';
     
    4242    }
    4343
     44
     45    /**
     46     * Get plugin name.
     47     *
     48     * @since 1.0.0
     49     */
     50    public static function get_plugin_name() {
     51        return esc_html__( 'Widgets Bundle', 'widgets-bundle' );
     52    }
     53
    4454}
    4555
  • widgets-bundle/trunk/inc/widgets/subscribe.php

    r2269726 r2278790  
    88namespace AkshitSethi\Plugins\WidgetsBundle\Widgets;
    99
     10use Exception;
    1011use WP_Widget;
    1112use AkshitSethi\Plugins\WidgetsBundle\Config;
    12 
    1313use DrewM\MailChimp\MailChimp;
    1414
     
    4747        if ( ! empty( $api_key ) && ! empty( $list_id ) ) {
    4848            if ( isset( $_POST[ Config::PREFIX . 'subscribe_email' ] ) ) {
     49                // Default response
     50                $response = array(
     51                    'code' => 'error',
     52                    'text' => esc_html__( 'There was an error processing your request.', 'widgets-bundle' ),
     53                );
     54
    4955                // Process information
    5056                $email = sanitize_text_field( $_POST[ Config::PREFIX . 'subscribe_email' ] );
    5157
    5258                if ( empty( $email ) ) {
    53                     $response['code'] = 'error';
    5459                    $response['text'] = esc_html__( 'Please provide your email address.', 'widgets-bundle' );
    5560                } else {
    5661                    $email = filter_var( strtolower( trim( $email ) ), FILTER_SANITIZE_EMAIL );
    5762
    58                     if ( strpos( $email, '@' ) ) {
    59                         // API call
    60                         $mailchimp = new MailChimp( $api_key );
    61                         $connect   = $mailchimp->post(
    62                             'lists/' . $list_id . '/members',
    63                             array(
    64                                 'email_address' => $email,
    65                                 'status'        => 'subscribed',
    66                             )
    67                         );
    68 
    69                         // Show the response
    70                         if ( $mailchimp->success() ) {
    71                             $response['code'] = 'success';
    72 
    73                             // Show the success message if not empty
    74                             if ( ! empty( $success_message ) ) {
    75                                 $response['text'] = $success_message;
     63                    if ( $email ) {
     64                        try {
     65                            // API call
     66                            $mailchimp = new MailChimp( sanitize_text_field( $api_key ) );
     67
     68                            // Send data via POST
     69                            $connect = $mailchimp->post(
     70                                'lists/' . sanitize_text_field( $list_id ) . '/members',
     71                                array(
     72                                    'email_address' => $email,
     73                                    'status'        => 'subscribed',
     74                                )
     75                            );
     76
     77                            // Show the response
     78                            if ( $mailchimp->success() ) {
     79                                $response['code'] = 'success';
     80
     81                                // Show the success message if not empty
     82                                if ( ! empty( $success_message ) ) {
     83                                    $response['text'] = esc_html( $success_message );
     84                                } else {
     85                                    $response['text'] = esc_html__( 'Thank you! We\'ll be in touch!', 'widgets-bundle' );
     86                                }
    7687                            } else {
    77                                 $response['text'] = esc_html__( 'Thank you! We\'ll be in touch!', 'widgets-bundle' );
     88                                if ( 400 === $mailchimp->getLastResponse()['headers']['http_code'] ) {
     89                                    $response['code'] = 'success';
     90                                    $response['text'] = esc_html__( 'You are already subscribed. We will reach you shortly.', 'widgets-bundle' );
     91                                } else {
     92                                    $response['text'] = esc_html( $mailchimp->getLastError() );
     93                                }
    7894                            }
    79                         } else {
    80                             $response['code'] = 'error';
    81                             $response['text'] = $mailchimp->getLastError();
     95                        } catch ( Exception $e ) {
     96                            $response['text'] = $e->getMessage();
    8297                        }
    8398                    } else {
    84                         $response['code'] = 'error';
    8599                        $response['text'] = esc_html__( 'Please provide a valid email address.', 'widgets-bundle' );
    86100                    }
  • widgets-bundle/trunk/readme.txt

    r2269726 r2278790  
    55Requires at least: 4.8
    66Tested up to: 5.3.2
    7 Stable tag: 2.0.0
     7Stable tag: 2.0.2
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    5252== Changelog ==
    5353
     54= 2.0.2 =
     55* Minor bug fixes
     56
    5457= 2.0.0 =
    55 
    5658* Code has been completely refactored
    5759* Supports the latest version of WordPress
    58 * New plugins added
     60* Improved the Subscribe widget
    5961
    6062= 1.1 =
  • widgets-bundle/trunk/vendor/autoload.php

    r2269726 r2278790  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit37bd34aa4c10bcbe8bdd22a11d9295fb::getLoader();
     7return ComposerAutoloaderInitd8349644e5810970bb83f136809ba9da::getLoader();
  • widgets-bundle/trunk/vendor/composer/autoload_real.php

    r2269726 r2278790  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit37bd34aa4c10bcbe8bdd22a11d9295fb
     5class ComposerAutoloaderInitd8349644e5810970bb83f136809ba9da
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit37bd34aa4c10bcbe8bdd22a11d9295fb', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInitd8349644e5810970bb83f136809ba9da', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    27         spl_autoload_unregister(array('ComposerAutoloaderInit37bd34aa4c10bcbe8bdd22a11d9295fb', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInitd8349644e5810970bb83f136809ba9da', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require_once __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInit37bd34aa4c10bcbe8bdd22a11d9295fb::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInitd8349644e5810970bb83f136809ba9da::getInitializer($loader));
    3434        } else {
    3535            $classMap = require __DIR__ . '/autoload_classmap.php';
  • widgets-bundle/trunk/vendor/composer/autoload_static.php

    r2269726 r2278790  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit37bd34aa4c10bcbe8bdd22a11d9295fb
     7class ComposerStaticInitd8349644e5810970bb83f136809ba9da
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    5555    {
    5656        return \Closure::bind(function () use ($loader) {
    57             $loader->prefixLengthsPsr4 = ComposerStaticInit37bd34aa4c10bcbe8bdd22a11d9295fb::$prefixLengthsPsr4;
    58             $loader->prefixDirsPsr4 = ComposerStaticInit37bd34aa4c10bcbe8bdd22a11d9295fb::$prefixDirsPsr4;
    59             $loader->classMap = ComposerStaticInit37bd34aa4c10bcbe8bdd22a11d9295fb::$classMap;
     57            $loader->prefixLengthsPsr4 = ComposerStaticInitd8349644e5810970bb83f136809ba9da::$prefixLengthsPsr4;
     58            $loader->prefixDirsPsr4 = ComposerStaticInitd8349644e5810970bb83f136809ba9da::$prefixDirsPsr4;
     59            $loader->classMap = ComposerStaticInitd8349644e5810970bb83f136809ba9da::$classMap;
    6060
    6161        }, null, ClassLoader::class);
  • widgets-bundle/trunk/widgets-bundle.php

    r2269726 r2278790  
    44 * Plugin Name: Widgets Bundle
    55 * Description: The Widgets Bundle plugin allows you to add powerful collection of beautifully crafted widgets to your website.
    6  * Version:     2.0.0
     6 * Version:     2.0.2
    77 * Runtime:     5.6+
    88 * Author:      akshitsethi
     
    8989     */
    9090    public function activate() {
    91         // Add to `wp_options` table.
    92         update_option( Config::DB_OPTION, Config::DEFAULT_OPTIONS );
     91        // Check for existing options in the database
     92        $options = get_option( Config::DB_OPTION );
     93
     94        // Present? Overwrite the default options
     95        if ( $options ) {
     96            $options = array_merge( Config::DEFAULT_OPTIONS, $options );
     97        } else {
     98            $options = Config::DEFAULT_OPTIONS;
     99        }
     100
     101        // Update `wp_options` table
     102        update_option( Config::DB_OPTION, $options );
    93103    }
    94104
     
    98108     */
    99109    public function deactivate() {
    100         // Remove from `wp_options` table.
    101         delete_option( Config::DB_OPTION );
     110        /**
     111         * @todo Keeping it here as it will be needed in future versions.
     112         */
    102113    }
    103114
Note: See TracChangeset for help on using the changeset viewer.