📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-26 11:58:55
📂
/
/
home
/
pallabnv
/
public_html
/
wp-content__3bb9dea
/
themes
/
berich
/
inc
/
admin
/
views
✏️
Editing: admin-plugins.php
<?php $installed_plugins = get_plugins(); $plugins = TGM_Plugin_Activation::$instance->plugins; $status_ins = false; $status_act = false; $btn_text = esc_html__('Install All', 'berich'); foreach( $plugins as $plugin ){ $file_path = $plugin['file_path']; if( !isset( $installed_plugins[ $file_path ] ) ) { $status_ins = true; break; } } foreach( $plugins as $plugin ){ $file_path = $plugin['file_path']; if ( is_plugin_inactive( $file_path ) ) { $status_act = true; break; } } $merlin_setup = get_option( 'merlin_' . berich()->get_slug() . '_completed' ); if( $status_ins && $status_act) $btn_text = esc_html__('Install & Active All', 'berich'); else if($status_ins && !$status_act) $btn_text = esc_html__('Install All', 'berich'); else if(!$status_ins && $status_act) $btn_text = esc_html__('Active All', 'berich'); ?> <main> <div class="pxl-dashboard-wrap"> <?php include_once( get_template_directory() . '/inc/admin/views/admin-tabs.php' ); ?> <?php $dev_mode = (defined('DEV_MODE') && DEV_MODE); if ( 'valid' != get_option( berich()->get_slug().'_purchase_code_status', false ) && !$dev_mode ) : echo '<div class="error"><p>' . sprintf( wp_kses_post( esc_html__( 'The %s theme needs to be registered. %sRegister Now%s', 'berich' ) ), berich()->get_name(), '<a href="' . admin_url( 'admin.php?page=pxlart') . '">' , '</a>' ) . '</p></div>'; else: ?> <header class="pxl-dsb-header admin-plugin"> <div class="pxl-dsb-header-inner"> <h4><?php esc_html_e( 'Install Plugins', 'berich' ); ?></h4> <?php if(!$merlin_setup && ($status_ins || $status_act)): echo '<span class="pxl-install-all-plugin">'.$btn_text.'</span>'; ?> <?php endif; ?> </div> <p><?php esc_html_e( 'Make sure to activate required plugins prior to import a demo.', 'berich' ); ?></p> </header> <div class="pxl-solid-wrap"> <div class="pxl-row"> <?php foreach( $plugins as $plugin ) : $class = $status = $display_status = ''; $file_path = $plugin['file_path']; // Install if( !isset( $installed_plugins[ $file_path ] ) ) { $status = 'not-installed'; } // No Active elseif ( is_plugin_inactive( $file_path ) ) { $status = 'installed'; } // Deactive elseif( !is_plugin_inactive( $file_path ) ) { $status = 'active'; $class = ' pxl-dsb-plugin-active'; $display_status = esc_html__( 'Active:', 'berich' ); } ?> <div class="pxl-col pxl-col-3"> <div class="pxl-dsb-plugin<?php echo esc_attr( $class ); ?>" data-slug="<?php echo esc_attr($plugin['slug']) ?>"> <span class="pxl-dsb-plugin-icon"> <img src="<?php echo esc_url( $plugin['logo'] ); ?>" alt="<?php echo esc_attr( $plugin['name'] ) ?>"> </span> <h3><?php printf( '<span>%s</span>', $display_status ); ?> <?php echo esc_html( $plugin['name'] ) ?></h3> <p><?php echo esc_html( $plugin['description'] ) ?></p> <?php $barplugin = new Berich_Admin_Plugins; $barplugin->tgmpa_plugin_action( $plugin, $status ); ?> </div> </div> <?php endforeach; ?> </div> </div> <?php endif; ?> </div> </main>
💾 Save Changes
❌ Cancel