feat(share): align social sharing runtime

This commit is contained in:
kate522 committed 2026-09-27 13:49:32 +08:00
1 parent 26ac8167f3
commit cf6c11852e
33 files changed
+802 -1919

No files matched your search

+3 -7
View File
@@ -61,13 +61,9 @@ get_header();
<?php echo esc_html($page_desc !== '' ? $page_desc : __('暂无简介内容,请设置', 'aksrt')); ?>
</div>
<div class="pull-right page-share mt20">
<?php
if (function_exists('aksrt_render_share_buttons')) {
aksrt_render_share_buttons(['compact' => true]);
} elseif (function_exists('aksrt_get_share_html')) {
echo aksrt_get_share_html(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
}
?>
<?php if (function_exists('aksrt_render_share_buttons')) {
aksrt_render_share_buttons(['post' => $post_id]);
} ?>
</div>
</div>
</div>