导入 AKSRT 主题开发源码
This commit is contained in:
1 parent
9681dd3d48
commit
1268a55dd0
595 files changed
+127705
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Home Module · Spacing
|
||||
*
|
||||
* config: { height? }
|
||||
*
|
||||
* 间距模块,用于模块间留白。
|
||||
*/
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
$cfg = get_query_var('aksrt_module_config', []);
|
||||
if (!is_array($cfg)) $cfg = [];
|
||||
|
||||
$height = max(8, min(200, (int) ($cfg['height'] ?? 40)));
|
||||
?>
|
||||
|
||||
<div class="home-module--spacing" style="height:<?php echo esc_attr((string) $height); ?>px" aria-hidden="true"></div>
|
||||
Reference in new issue
Block a user