fix(homepage): force-visible post stream against Bootstrap fade
Remove Bootstrap fade/in classes from the active home pane, render cards as <article class="posts-item">, and lock list opacity/display with !important so published posts cannot stay invisible.
This commit is contained in:
@@ -935,7 +935,7 @@ if (!function_exists('aksrt_homepage_render_layout')) {
|
||||
<?php aksrt_homepage_render_sortbar(); ?>
|
||||
|
||||
<div class="aksrt-homepage__panels tab-content">
|
||||
<div class="aksrt-homepage__panel posts-row ajaxpager tab-pane fade in active is-active" role="tabpanel" data-home-tab-panel="latest" id="index-tab-main">
|
||||
<div class="aksrt-homepage__panel posts-row ajaxpager tab-pane is-active show" role="tabpanel" data-home-tab-panel="latest" id="index-tab-main">
|
||||
<div
|
||||
class="aksrt-homepage__panel-contract"
|
||||
data-query-context="<?php echo esc_attr($latest_contract['query_context']); ?>"
|
||||
|
||||
@@ -737,7 +737,7 @@ if (!function_exists('aksrt_renderer_list')) {
|
||||
? '<p class="item-excerpt">' . $excerpt_markup . '</p>'
|
||||
: '';
|
||||
|
||||
$html = '<posts ' . aksrt_renderer_article_attrs($classes, $data) . '>';
|
||||
$html = '<article ' . aksrt_renderer_article_attrs($classes, $data) . '>';
|
||||
|
||||
if ($cfg['style'] === 'style2') {
|
||||
$html .= $title_html;
|
||||
@@ -757,7 +757,7 @@ if (!function_exists('aksrt_renderer_list')) {
|
||||
$html .= '</div>';
|
||||
}
|
||||
|
||||
$html .= '</posts>';
|
||||
$html .= '</article>';
|
||||
return $html;
|
||||
}
|
||||
}
|
||||
@@ -796,7 +796,7 @@ if (!function_exists('aksrt_renderer_card')) {
|
||||
$title_markup = aksrt_renderer_title_markup($data, $cfg);
|
||||
$excerpt_markup = aksrt_renderer_excerpt_markup($data, $cfg);
|
||||
|
||||
$html = '<posts ' . aksrt_renderer_article_attrs($classes, $data) . '>';
|
||||
$html = '<article ' . aksrt_renderer_article_attrs($classes, $data) . '>';
|
||||
$html .= $thumb;
|
||||
$html .= '<div class="item-body">';
|
||||
$target_attr = !empty($cfg['target_blank']) ? ' target="_blank"' : '';
|
||||
@@ -814,7 +814,7 @@ if (!function_exists('aksrt_renderer_card')) {
|
||||
}
|
||||
|
||||
$html .= $meta;
|
||||
$html .= '</div></posts>';
|
||||
$html .= '</div></article>';
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user