<?php /** * Theme Info trait. * * @package Neve\Core */ namespace Neve\Core; /** * Theme_Info trait */ trait Theme_Info { /** * Check validity of addons plugin. * * @return bool */ private function has_valid_addons() { if ( ! defined( 'NEVE_PRO_BASEFILE' ) ) { return false; } $option_name = basename( dirname( NEVE_PRO_BASEFILE ) ); $option_name = str_replace( '-', '_', strtolower( trim( $option_name ) ) ); $status = get_option( $option_name . '_license_data' ); if ( ! $status ) { return false; } if ( ! isset( $status->license ) ) { return false; } if ( $status->license === 'not_active' || $status->license === 'invalid' ) { return false; } return true; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
settings | Folder | 0755 |
|
|
styles | Folder | 0755 |
|
|
traits | Folder | 0755 |
|
|
admin.php | File | 20.94 KB | 0644 |
|
builder_migrator.php | File | 11.44 KB | 0644 |
|
core_loader.php | File | 4.58 KB | 0644 |
|
dynamic_css.php | File | 5.38 KB | 0644 |
|
factory.php | File | 1.36 KB | 0644 |
|
front_end.php | File | 19.71 KB | 0644 |
|
limited_offers.php | File | 7.88 KB | 0644 |
|
migration_flags.php | File | 2.81 KB | 0644 |
|
supported_post_types.php | File | 1013 B | 0644 |
|
theme_info.php | File | 729 B | 0644 |
|
tracker.php | File | 1.34 KB | 0644 |
|