Plugin Directory

Changeset 2211854


Ignore:
Timestamp:
12/13/2019 09:58:44 PM (6 years ago)
Author:
echelonso
Message:

Fixed issue with the admin notices.

Location:
echelon-so/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • echelon-so/trunk/echelon-so.php

    r2210468 r2211854  
    55Plugin URI:     https://echelonso.com
    66Description:    UIkit powered widgets, features and presets for SiteOrigin Page Builder.
    7 Version:        2.0.5
     7Version:        2.0.6
    88Author:         Echelon
    99Author URI:     https://echelonso.com
     
    1919
    2020            define('ECHELONSO', true);
    21             define('ECHELONSO_VERSION', '2.0.5');
     21            define('ECHELONSO_VERSION', '2.0.6');
    2222
    2323            register_activation_hook( __FILE__, array( 'EchelonSO', 'install' ) );
     
    9393
    9494        public function current_version() {
    95             return '2.0.5';
     95            return '2.0.6';
    9696        }
    9797
     
    155155            add_filter( 'siteorigin_widgets_field_class_prefixes', array($this, 'widget_fields_class_prefixes') );
    156156            add_filter( 'siteorigin_widgets_field_class_paths', array($this, 'widget_fields_class_paths') );
    157             // $this->keep_teasers();
    158157
    159158            if (class_exists('ACF')) {
     
    166165            }
    167166
    168             if (is_admin()) {
    169                 // check for version mismatch
    170                 if ( defined('ECHELONSO_VERSION') && defined('ECHELONSO_PRIME_VERSION') ) {
    171                     if (ECHELONSO_VERSION != ECHELONSO_PRIME_VERSION) {
    172                         add_action( 'admin_notices', array($this, 'version_mismatch_error') );
    173                     }
    174                 }
    175                 if (!defined('ECHELONSO_PRIME_VERSION')) {
    176                     add_action( 'admin_notices', array($this, 'version_mismatch_error') );
    177                 }
    178             }
    179 
    180         }
    181 
    182         /*
    183         * Not paying means you see the adverts
    184         */
    185 
    186         // private function keep_teasers() {
    187         //  if ( !defined('ECHELONSO_PRIME') && is_admin() ) {
    188         //      $dismissed = get_user_meta( get_current_user_id(), 'teasers_dismissed', true );
    189         //      $remove_keys = $this->get_widget_base_ids();
    190         //      foreach($remove_keys as $k) {
    191         //          unset($dismissed[$k]);
    192         //      }
    193         //      update_user_meta( get_current_user_id(), 'teasers_dismissed', $dismissed );
    194         //  }
    195         // }
     167        }
    196168
    197169        /*
     
    556528        }
    557529
    558         public function version_mismatch_error() {
    559             define('ECHELONSO_VERSION_MISMATCH', true);
    560             echo '<div class="notice notice-error"><p>Please update your plugins <strong>Echelon UIkit for SiteOrigin</strong> and <strong>Echelon UIkit for SiteOrigin Prime Upgrade</strong> to the latest versions.</p></div>';
    561         }
    562 
    563530        /*
    564531        * Form Teaser
  • echelon-so/trunk/readme.txt

    r2210469 r2211854  
    1111
    1212== Description ==
    13 Echelon combines the web's best frontend framework (UIkit) with SiteOrigin's ease of use to create premium level pages at unbelieable speeds. We have included over 30 widgets, 15 core features and a library of over 240 ready to use interface blocks, making the the unparalled frontend power of UIkit available to anyone who can use SiteOrigin Page Builder.
     13Echelon combines the web's best frontend framework (UIkit) with SiteOrigin's ease of use to create premium level pages at unbelieable speeds. We have included over 30 widgets, 15 core features and a library of over 240 ready to use interface blocks, making the unparalled frontend power of UIkit available to anyone who can use SiteOrigin Page Builder.
    1414
    1515A word of caution, UIkit is highly addictive, once you start using UIkit you may find it hard to stop.
     
    107107== Changelog ==
    108108
     109= 2.0.6 =
     110* Fixed: Some admin notificaitons displaying when they shouldn't.
     111
    109112= 2.0.5 =
    110113* Fixed: Missing field descriptions for Before & After widget.
Note: See TracChangeset for help on using the changeset viewer.