Sindbad~EG File Manager

Current Path : /home/admin/groupe5.blog.lppelm.o2switch.site/wp-content/themes/neve/inc/core/
Upload File :
Current File : /home/admin/groupe5.blog.lppelm.o2switch.site/wp-content/themes/neve/inc/core/theme_info.php

<?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;
	}
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists