if (!defined('TW_DIR_LIB')) {
    define('TW_DIR_LIB', TW_DIR_INC . 'libraries/');
}
if (!defined('TW_NAME')) {
    define('TW_NAME', 'Testimonials Widget');
}
if (!defined('TW_PREMIUM_LINK')) {
    define('TW_PREMIUM_LINK', '<a href="https://store.axelerant.com/downloads/best-wordpress-testimonials-plugin-testimonials-premium/">Buy Premium</a>');
}
if (!defined('TW_VERSION')) {
    define('TW_VERSION', '3.2.0');
}
require_once TW_DIR_INC . 'requirements.php';
global $tw_activated;
$tw_activated = true;
if (!tw_requirements_check()) {
    $tw_activated = false;
    return false;
}
require_once TW_DIR_INC . 'class-testimonials-widget.php';
add_action('plugins_loaded', 'testimonialswidget_init', 99);
/**
 *
 *
 * @SuppressWarnings(PHPMD.LongVariable)
 * @SuppressWarnings(PHPMD.UnusedLocalVariable)
 */
if (!function_exists('testimonialswidget_init')) {
    function testimonialswidget_init()
    {
        if (Testimonials_Widget::version_check()) {
 public static function update()
 {
     $prior_version = tw_get_option('admin_notices');
     if ($prior_version) {
         if ($prior_version < '2.12.0') {
             self::set_notice('notice_2_12_0');
         }
         if ($prior_version < '2.15.0') {
             self::set_notice('notice_2_15_0');
         }
         if ($prior_version < self::VERSION) {
             tw_requirements_check(true);
             do_action('tw_update');
         }
         tw_set_option('admin_notices');
     }
     // display donate on major/minor version release
     $donate_version = tw_get_option('donate_version', false);
     if (!$donate_version || $donate_version != self::VERSION && preg_match('#\\.0$#', self::VERSION)) {
         self::set_notice('notice_donate');
         tw_set_option('donate_version', self::VERSION);
     }
 }
 public static function update()
 {
     $prior_version = tw_get_option('admin_notices');
     if ($prior_version) {
         if ($prior_version < '2.12.0') {
             self::set_notice('notice_2_12_0');
         }
         if ($prior_version < '2.15.0') {
             self::set_notice('notice_2_15_0');
         }
         if ($prior_version < self::VERSION) {
             tw_requirements_check(true);
             tw_init_options();
             self::reset_schema_notice();
             self::init_post_type();
             flush_rewrite_rules();
             do_action('tw_update');
         }
         tw_set_option('admin_notices');
     }
     // display donate on major/minor version release
     $donate_version = tw_get_option('donate_version', false);
     if (!$donate_version || self::VERSION != $donate_version && preg_match('#\\.0$#', self::VERSION)) {
         self::set_notice('notice_donate');
         tw_set_option('donate_version', self::VERSION);
     }
 }