first commit

This commit is contained in:
2025-02-24 22:33:42 +01:00
commit 737c037e85
18358 changed files with 5392983 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="notice notice-info is-dismissible filebird-notice" id="filebird-empty-folder-notice">
<p>
<?php esc_html_e( 'Create your first folder for media library now.', 'filebird' ); ?>
<a href="<?php echo esc_url( admin_url( '/upload.php' ) ); ?>">
<strong><?php esc_html_e( 'Get Started', 'filebird' ); ?></strong>
</a>
</p>
</div>

View File

@@ -0,0 +1,33 @@
<?php
use FileBird\Admin\Settings;
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$update_link = add_query_arg(
array(
'page' => Settings::SETTING_PAGE_SLUG . '#/tools?autorun=true',
),
admin_url( '/admin.php' )
);
?>
<div class="notice notice-warning is-dismissible njt-fb-update-db-noti filebird-notice" id="njt-fb-update-db-noti">
<div class="njt-fb-update-db-noti-item">
<h3><?php esc_html_e( 'FileBird 4 Update Required', 'filebird' ); ?></h3>
</div>
<div class="njt-fb-update-db-noti-item">
<p>
<?php esc_html_e( 'You are using the new FileBird 4. Please update database to view your folders correctly.', 'filebird' ); ?>
</p>
</div>
<div class="njt-fb-update-db-noti-item">
<p>
<a class="button button-primary" href="<?php echo esc_url( $update_link ); ?>">
<strong><?php esc_html_e( 'Update now', 'filebird' ); ?></strong>
</a>
</p>
</div>
</div>

View File

@@ -0,0 +1,21 @@
<?php
use FileBird\Classes\Helpers;
if ( '' !== $filebird_activation_error ) {
$filebird_activation_error = apply_filters( 'filebird_activation_error', $filebird_activation_error );
if ( 'no-purchase' == $filebird_activation_error ) {
$filebird_activation_error = __( 'It seems you don\'t have any valid FileBird license. Please <a href="https://ninjateam.org/support" target="_blank"><strong>contact support</strong></a> to get help or <a href="https://1.envato.market/Get-FileBird" target="_blank"><strong>purchase a FileBird license</strong></a>', 'filebird' );
} elseif ( 'code-is-used' == $filebird_activation_error ) {
$filebird_activation_error = sprintf( __( 'This license was used with <i>%s</i>, please <a href="https://1.envato.market/Get-FileBird" target="_blank"><strong>purchase another license</strong></a>, or <a href="https://ninjateam.org/support" target="_blank"><strong>contact support</strong></a>', 'filebird' ), esc_html( $filebird_activation_old_domain ));
}
?>
<div class="notice notice-warning is-dismissible">
<h3><?php esc_html_e( 'Oops! Activation failed.', 'filebird' ); ?></h3>
<p>
<?php echo Helpers::wp_kses_i18n( $filebird_activation_error ); ?>
</p>
</div>
<?php
}
?>

View File

@@ -0,0 +1,49 @@
<?php
$navigation = array(
array(
'label' => __( 'Activation', 'filebird' ),
'link' => 'activation',
'icon' => 'dashicons-awards',
),
array(
'label' => __( 'Settings', 'filebird' ),
'link' => 'settings',
'icon' => 'dashicons-admin-generic',
),
array(
'label' => __( 'Tools', 'filebird' ),
'link' => 'tools',
'icon' => 'dashicons-admin-tools',
),
array(
'label' => __( 'Import/Export', 'filebird' ),
'link' => 'import-export',
'icon' => 'dashicons-database',
),
);
?>
<div id="filebird-admin-header">
<div id="filebird-admin-logo">
<img src="<?php echo esc_attr( NJFB_PLUGIN_URL . 'assets/img/logo.svg' ); ?>" alt="filebird logo" />
<div id="filebird-admin-version">
<h3 class="wp-heading-inline">
FileBird Lite
</h3>
<span class="divider"></span>
<span><?php esc_html_e( 'Version', 'filebird' ); ?> <span><?php echo esc_html( NJFB_VERSION ); ?></span></span>
</div>
</div>
<div id="filebird-admin-actions">
<a href="https://ninjateam.gitbook.io/filebird/features/interface" target="_blank" rel="noopener noreferrer">
<?php esc_html_e( 'Docs', 'filebird' ); ?>
</a>
<a href="https://ninjateam.org/support/" target="_blank" rel="noopener noreferrer">
<?php esc_html_e( 'Support', 'filebird' ); ?>
</a>
<a href="https://ninjateam.gitbook.io/filebird/other-links/changelog" target="_blank" rel="noopener noreferrer">
<?php esc_html_e( 'Changelog', 'filebird' ); ?>
</a>
</div>
</div>