| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/pia/wp-content/plugins/post-expirator/src/Views/ |
Upload File : |
<?php
use PublishPress\Future\Modules\Settings\HooksAbstract;
use PublishPress\Future\Core\DI\Container;
use PublishPress\Future\Core\DI\ServicesAbstract;
$container = Container::getInstance();
$hooks = $container->get(ServicesAbstract::HOOKS);
defined('ABSPATH') or die('Direct access not allowed.');
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
$current_tab = empty($_GET['tab']) ? 'defaults' : sanitize_title(wp_unslash($_GET['tab']));
$debugIsEnabled = $hooks->applyFilters(HooksAbstract::FILTER_DEBUG_ENABLED, false);
$baseLink = 'admin.php?page=publishpress-future&tab=';
$tabs = [
[
'title' => __('Post Types', 'post-expirator'),
'slug' => 'defaults',
'link' => admin_url($baseLink . 'defaults'),
],
[
'title' => __('General', 'post-expirator'),
'slug' => 'general',
'link' => admin_url($baseLink . 'general'),
],
[
'title' => __('Notifications', 'post-expirator'),
'slug' => 'notifications',
'link' => admin_url($baseLink . 'notifications'),
],
[
'title' => __('Display', 'post-expirator'),
'slug' => 'display',
'link' => admin_url($baseLink . 'display'),
],
[
'title' => __('Admin', 'post-expirator'),
'slug' => 'admin',
'link' => admin_url($baseLink . 'admin'),
],
];
$tabs = $hooks->applyFilters(HooksAbstract::FILTER_FUTURE_ACTIONS_TABS, $tabs);
?>
<div class="wrap">
<h2 class="pp-settings-title"><?php
esc_html_e('Future Actions', 'post-expirator'); ?></h2>
<div id="pe-settings-tabs">
<nav class="nav-tab-wrapper postexpirator-nav-tab-wrapper" id="postexpirator-nav">
<?php foreach ($tabs as $tab) : ?>
<a href="<?php echo esc_url($tab['link']); ?>"
class="pe-tab nav-tab <?php
echo($current_tab === $tab['slug'] ? 'nav-tab-active' : ''); ?>"
>
<?php echo esc_html($tab['title']); ?>
</a>
<?php endforeach; ?>
</nav>
<?php
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
echo $html;
?>
</div>
</div>