Compare commits

..

5 Commits

6 changed files with 26 additions and 8 deletions

1
.gitignore vendored
View File

@ -4,3 +4,4 @@
*.bak
.idea/
.php_cs.cache
.php-cs-fixer.cache

View File

@ -6,12 +6,18 @@
* @version 1.0.0
*/
get_header();
$postType = get_post_type();
global $wp_query;
$tax_slug = $wp_query->get_queried_object();
$isNoSideBar = 'online-bsss' === $tax_slug->slug;
$lang = get_query_var('lang', '');
if ($tax_slug->slug === 'online-bsss' && $lang === 'ja') {
$url = site_url('/online-bsss');
wp_safe_redirect($url, 301);
exit;
}
get_header();
$postType = get_post_type();
if ( !$postType ) {
global $wp_query;

View File

@ -301,6 +301,7 @@ function cbsonline_wpforo_after_init_current_object($current_object, $wpf_url_pa
];
$current_object['topics'] = cbsonline_wpforo_topic_get_topics($args, $current_object['items_count']);
}
$current_object['categories'] = [$forum];
} else {
$current_object['is_404'] = true;
}

View File

@ -139,7 +139,7 @@ form#searchform input#searchsubmit {
}
#container #content p {
padding: 0px;
margin-bottom: 30px;
margin-bottom: 1rem;
}
#container #content table {
border-top: none;
@ -157,6 +157,15 @@ form#searchform input#searchsubmit {
margin-bottom: 10px !important;
clear: both;
}
#content .entry-content h1,
#content .entry-content h2,
#content .entry-content h3,
#content .entry-content h4,
#content .entry-content h5,
#content .entry-content h6 {
margin: 2rem 0 1.38rem;
}
#content .entry-content h2 {
border: none !important;
border-left: 5px solid #8F8F8F !important;

View File

@ -39,6 +39,7 @@
if (!is_user_logged_in()) {
$forumid = (isset($forum['forumid'])) ? $forum['forumid'] : 0;
$topicid = (isset($topic['topicid'])) ? $topic['topicid'] : 0;
$postid = wpforo_bigintval($post['postid']);
$is_topic = (bool) wpfval($post, 'is_first_post');
$diff = current_time( 'timestamp', 1 ) - strtotime($post['created']);
if (WPF()->perm->forum_can(($is_topic ? 'dt' : 'dr' ), $forumid)

View File

@ -35,14 +35,14 @@ $topic_custom_fields = cbsonline_wpforo_get_topic_custom_fields($topic['first_po
<div class="topic-wrap <?php wpforo_unread($topic['topicid'], 'topic'); ?>">
<div class="wpforo-topic">
<div class="wpforo-topic-avatar"><div class="featured-image"><?php echo $topic_custom_fields['featured_image']; ?></div></div>
<div class="wpforo-topic-avatar"><div class="featured-image"><?php echo $topic_custom_fields['featured_image'] ?? ''; ?></div></div>
<div class="wpforo-topic-info">
<p class="wpforo-topic-title"><a href="<?php wpforo_unread_url( $topic['topicid'], $topic_url ) ?>"><?php wpforo_topic_icon($topic); ?><?php echo esc_html($topic['title']) ?></a> <?php wpforo_unread_button($topic['topicid'], $topic_url); ?> <?php wpforo_viewing( $topic ); ?></p>
<p class="wpforo-topic-custom_fields spearker">
<span class="label"><?php echo wpfval($topic_fields['speaker_name'], 'label'); ?></span><span class="value"><?php echo $topic_custom_fields['speaker_name']; ?>
<span class="label"><?php echo wpfval($topic_fields['speaker_name'], 'label'); ?></span><span class="value"><?php echo $topic_custom_fields['speaker_name'] ?? ''; ?>
</p>
<p class="wpforo-topic-custom_fields host">
<span class="label"><?php echo wpfval($topic_fields['host'], 'label'); ?></span><span class="value"><?php echo $topic_custom_fields['host']; ?>
<span class="label"><?php echo wpfval($topic_fields['host'], 'label'); ?></span><span class="value"><?php echo $topic_custom_fields['host'] ?? ''; ?>
</p>
<div class="wpforo-topic-badges"><?php wpforo_hook('wpforo_topic_info_end', $topic); ?></div>
</div>
@ -51,7 +51,7 @@ $topic_custom_fields = cbsonline_wpforo_get_topic_custom_fields($topic['first_po
<?php else: ?>
<div class="wpforo-topic-stat-lastpost"><?php wpforo_phrase('Replies not found') ?></div>
<?php endif; ?>
<div class="wpforo-topic-stat-views"><?php echo $topic_custom_fields['seminar_date']; ?><br /><?php echo $topic_custom_fields['seminar_time']; ?></div>
<div class="wpforo-topic-stat-views"><?php echo $topic_custom_fields['seminar_date']; ?><br /><?php echo $topic_custom_fields['seminar_time'] ?? ''; ?></div>
<div class="wpforo-topic-stat-posts"></div>
<br class="wpf-clear">
</div><!-- wpforo-topic -->