Edit File: admin-page.php
<?php /** * orun Admin Panel Menu Page */ defined( 'ABSPATH' ) || exit; // Exit directly ?> <?php $wpversion = get_bloginfo('version'); $phpversion = phpversion(); $memorylimit = ini_get('memory_limit'); $maxinputvars = ini_get('max_input_vars'); $maxexecutiontime = ini_get('max_execution_time'); $postmaxsize = ini_get('post_max_size'); $uploadmaxfilesize = ini_get('upload_max_filesize'); $allowurlfopen = ini_get('allow_url_fopen'); $themeversion = orun_THEME_VERSION; ?> <div class="orun-container"> <div class="orun-admin-logo"> <img src="<?php echo esc_url(get_template_directory_uri() . '/assets/img/logo.png'); ?>" alt=""> </div> <div class="notice notice-info is-dismissible" style="margin:0;"> <p><?php $noticeupdate = sprintf( /* translators: %s: theme version */ __( 'Tema, %s sürümüdür. Geliştirme aşamasında oluşan bir hatayla karşılaşırsanız lütfen bize bildirin.', 'orun' ), $themeversion ); echo $noticeupdate; ?> </p> </div> <nav class="nav-tab-wrapper"> <a href="?page=orun-start" class="nav-tab nav-tab-active"><?php esc_html_e('Başlangıç', 'orun'); ?></a> <a href="?page=orun-opt" class="nav-tab"><?php esc_html_e('Tema Ayarları', 'orun'); ?></a> <a href="?page=tgmpa-install-plugins" class="nav-tab"><?php esc_html_e('Eklentileri Yükle', 'orun'); ?></a> <a href="?page=one-click-demo-import" class="nav-tab"><?php esc_html_e('Demoları Yükle', 'orun'); ?></a> </nav> <div class="orun-admin-links" style="padding:20px 0px;"> <div class="orun-admin-link" style="text-align: center;padding:32px 15px; border-radius:16px; box-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3) "> <span style="font-size:20px;font-weight:600"><i class="fas fa-book"></i> <?php _e('Sizden gelenler', 'orun'); ?></span> <p><?php _e('Temamızdan memnun musunuz? Hemen geri bildirimlerinizi bize gönderin.', 'orun'); ?></p> <a href="<?php echo esc_url('https://docs.orun.com/orun/#/update-notes'); ?>" class="button button-secondary" style="border-radius:5px;"> <?php _e('Geri bildirim ver', 'orun'); ?> </a> </div> <div class="orun-admin-link" style="text-align: center;padding:32px 15px; border-radius:16px; box-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3) "> <span style="font-size:20px;font-weight:600"><i class="fas fa-ticket-alt"></i> <?php _e('Destek Talebi', 'orun'); ?></span> <p><?php _e('Dokümantasyonda aradığınızı bulamadıysan WhatsApp\'tan bize ulaş.', 'orun'); ?></p> <a href="<?php echo esc_url('https://docs.orun.com/orun/#/update-notes'); ?>" class="button button-secondary" style="border-radius:5px;"> <?php _e('İncele', 'orun'); ?> </a> </div> <div class="orun-admin-link" style="text-align: center;padding:32px 15px; border-radius:16px; box-shadow: 3px 3px 2px rgba(0, 0, 0, 0.3) "> <span style="font-size:20px;font-weight:600"><i class="fas fa-file-alt"></i> <?php _e('Güncelleme Notları', 'orun'); ?></span> <p><?php _e('Oruno temasına yeni gelen özellikleri ve hata düzeltmelerini öğrenin.', 'orun'); ?></p> <a href="<?php echo esc_url('https://docs.orun.com/orun/#/update-notes'); ?>" class="button button-secondary" style="border-radius:5px;"> <?php _e('İncele', 'orun'); ?> </a> </div> </div> <div class="orun-table"> <div class="orun-table"> <table> <thead> <tr> <th><?php _e('Tema Durumu', 'orun'); ?></th> </tr> </thead> <tbody> <tr> <td><?php _e('Tema Adı:', 'orun'); ?></td> <td><?php _e('Oruno', 'orun'); ?></td> </tr> <tr> <td><?php _e('Sürüm:', 'orun'); ?></td> <td><?php echo orun_THEME_VERSION; ?></td> </tr> <tr> <td><?php _e('Özel Eklentilerin Yüklülük Durumu:', 'orun'); ?></td> <td> <?php function get_active_plugins_count() { $active_plugins = get_option( 'active_plugins', array() ); return count( $active_plugins ); } $total_plugs = get_active_plugins_count(); if ($total_plugs >= 3) { echo '<i style="color:#46B450;font-weight:600;" class="fas fa-check-circle"></i>'; } else { echo '<i style="color:#DC3232;font-weight:600;" class="fas fa-times-circle"></i>'; } ?> </td> </tr> </tbody> </table> </div> <table> <thead> <tr> <th><?php _e('Sunucu Durumu', 'orun'); ?></th> </tr> </thead> <tbody> <tr> <td><?php _e('WordPress Sürümü:', 'orun'); ?></td> <td><?php if ($wpversion >= 4.0 ) { echo '<span style="color:#46B450;font-weight:600;"> '.$wpversion.' <i class="fas fa-check-circle"></i></span>'; } else { echo '<span style="color:#DC3232;font-weight:600;"> '.$wpversion.' <i class="fas fa-check-circle"></i></span>'; } ?> <small>(<?= esc_html__('Önerilen', 'orun'); ?>: 4.0+)</small></td> </tr> <tr> <td><?php _e('PHP Sürümü:', 'orun'); ?></td> <td><?php if ($phpversion >= 7.2 ) { echo '<span style="color:#46B450;font-weight:600;"> '.$phpversion.' <i class="fas fa-check-circle"></i></span>'; } else { echo '<span style="color:#DC3232;font-weight:600;"> '.$phpversion.' <i class="fas fa-times-circle"></i></span>'; } ?> <small>(<?= esc_html__('Önerilen', 'orun'); ?>: 7.2+)</small></td> </tr> <tr> <td><?php _e('memory_limit:', 'orun'); ?></td> <td><?php if ($memorylimit >= 128 ) { echo '<span style="color:#46B450;font-weight:600;"> '.$memorylimit.' <i class="fas fa-check-circle"></i></span>'; } else { echo '<span style="color:#DC3232;font-weight:600;"> '.$memorylimit.' <i class="fas fa-times-circle"></i></span>'; } ?> <small>(<?= esc_html__('Önerilen', 'orun'); ?>: 128M)</small></td> </tr> <tr> <td><?php _e('max_input_vars:', 'orun'); ?></td> <td><?php if ($maxinputvars >= 3000 ) { echo '<span style="color:#46B450;font-weight:600;"> '.$maxinputvars.' <i class="fas fa-check-circle"></i></span>'; } else { echo '<span style="color:#DC3232;font-weight:600;"> '.$maxinputvars.' <i class="fas fa-times-circle"></i></span>'; } ?> <small>(<?= esc_html__('Önerilen', 'orun'); ?>: 2500)</small></td> </tr> <tr> <td><?php _e('max_execution_time:', 'orun'); ?></td> <td><?php if ($maxexecutiontime >= 180 ) { echo '<span style="color:#46B450;font-weight:600;"> '.$maxexecutiontime.' <i class="fas fa-check-circle"></i></span>'; } else { echo '<span style="color:#DC3232;font-weight:600;"> '.$maxexecutiontime.' <i class="fas fa-times-circle"></i></span>'; } ?> <small>(<?= esc_html__('Önerilen', 'orun'); ?>: 180)</small></td> </tr> <tr> <td><?php _e('upload_max_filesize:', 'orun'); ?></td> <td><?php if ($uploadmaxfilesize >= 5 ) { echo '<span style="color:#46B450;font-weight:600;"> '.$uploadmaxfilesize.' <i class="fas fa-check-circle"></i></span>'; } else { echo '<span style="color:#DC3232;font-weight:600;"> '.$uploadmaxfilesize.' <i class="fas fa-times-circle"></i></span>'; } ?> <small>(<?= esc_html__('Önerilen', 'orun'); ?>: 5M)</small></td> </tr> <tr> <td><?php _e('allow_url_fopen:', 'orun'); ?></td> <td><?php if ($allowurlfopen == 1 ) { echo '<span style="color:#46B450;font-weight:600;"> '.$allowurlfopen.' <i class="fas fa-check-circle"></i></span>'; } elseif ($allowurlfopen == 0){ echo '<span style="color:#DC3232;font-weight:600;"> '.$allowurlfopen.' <i class="fas fa-times-circle"></i></span>'; } ?> <small>(<?= esc_html__('Önerilen', 'orun'); ?>: 1)</small></td> </tr> </tbody> </table> </div> </div>