fix(frontend): align search and header components with reference
This commit is contained in:
1 parent
4c13ef478c
commit
542daca457
34 files changed
+803
-705
No files matched your search
@@ -11,12 +11,12 @@ if (!function_exists('aksrt_get_ajax_null')) {
|
||||
/**
|
||||
* Empty state for AJAX list replace.
|
||||
*/
|
||||
function aksrt_get_ajax_null(?string $text = null, $margin = 60, string $img = 'null.svg'): string {
|
||||
function aksrt_get_ajax_null(?string $text = null, $margin = 60, string $img = 'null.svg', int $width = 280): string {
|
||||
if (null === $text) {
|
||||
$text = __('内容空空如也', 'aksrt');
|
||||
}
|
||||
if (function_exists('aksrt_get_null')) {
|
||||
return aksrt_get_null($text, $margin, $img, 'ajax-item aksrt-ajax-null');
|
||||
return aksrt_get_null($text, $margin, $img, 'ajax-item aksrt-ajax-null', $width);
|
||||
}
|
||||
return '<div class="text-center ajax-item aksrt-ajax-null" style="padding:' . esc_attr((string) $margin) . 'px 0;">'
|
||||
. '<p class="muted-3-color">' . esc_html((string) $text) . '</p></div>';
|
||||
|
||||
Reference in new issue
Block a user