25 lines
639 B
PHP
25 lines
639 B
PHP
<?php
|
|
/**
|
|
* User center profile posts part (orchestrator).
|
|
*
|
|
* @package AKSRT
|
|
*/
|
|
|
|
defined('ABSPATH') || exit;
|
|
|
|
$context = is_array($args['context'] ?? null) ? $args['context'] : [];
|
|
extract($context, EXTR_SKIP); // phpcs:ignore WordPress.PHP.DontExtract.extract_extract
|
|
?>
|
|
<div class="widget-card">
|
|
<div class="profile-list-header">
|
|
<h3 class="widget-title widget-title--inline">
|
|
<?php
|
|
/* translators: %d: post count */
|
|
printf(esc_html__('我的文章(%d 篇)', 'aksrt'), $post_count);
|
|
?>
|
|
</h3>
|
|
<?php require __DIR__ . '/posts-status-filter.php'; ?>
|
|
</div>
|
|
<?php require __DIR__ . '/posts-list.php'; ?>
|
|
</div>
|