first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
/**
* bbPress - Forum Archive
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<div id="forum-front" class="bbp-forum-front">
<h1 class="entry-title"><?php bbp_forum_archive_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'archive-forum' ); ?>
</div>
</div><!-- #forum-front -->
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,28 @@
<?php
/**
* bbPress - Topic Archive
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<div id="topic-front" class="bbp-topics-front">
<h1 class="entry-title"><?php bbp_topic_archive_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'archive-topic' ); ?>
</div>
</div><!-- #topics-front -->
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,34 @@
<?php
/**
* Template Name: bbPress - Create Topic
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-new-topic" class="bbp-new-topic">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<?php bbp_get_template_part( 'form', 'topic' ); ?>
</div>
</div><!-- #bbp-new-topic -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,58 @@
<?php
/**
* Template Name: bbPress - Statistics
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-statistics" class="bbp-statistics">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php get_the_content() ? the_content() : wpautop( esc_html__( 'Here are the statistics and popular topics of our forums.', 'bbpress' ) ); ?>
<div id="bbpress-forums" class="bbpress-wrapper">
<?php bbp_get_template_part( 'content', 'statistics' ); ?>
<?php do_action( 'bbp_before_popular_topics' ); ?>
<?php bbp_set_query_name( 'bbp_popular_topics' ); ?>
<?php if ( bbp_view_query( 'popular' ) ) : ?>
<h2 class="entry-title"><?php esc_html_e( 'Popular Topics', 'bbpress' ); ?></h2>
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
<?php bbp_get_template_part( 'loop', 'topics' ); ?>
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
<?php endif; ?>
<?php bbp_reset_query_name(); ?>
<?php do_action( 'bbp_after_popular_topics' ); ?>
</div>
</div>
</div><!-- #bbp-statistics -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,34 @@
<?php
/**
* Template Name: bbPress - Forums (Index)
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="forum-front" class="bbp-forum-front">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<?php bbp_get_template_part( 'content', 'archive-forum' ); ?>
</div>
</div><!-- #forum-front -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,34 @@
<?php
/**
* Template Name: bbPress - Topics (Newest)
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="topics-front" class="bbp-topics-front">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<?php bbp_get_template_part( 'content', 'archive-topic' ); ?>
</div>
</div><!-- #topics-front -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,42 @@
<?php
/**
* Template Name: bbPress - Topic Tags
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-topic-tags" class="bbp-topic-tags">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php get_the_content() ? the_content() : wpautop( esc_html__( 'This is a collection of tags that are currently popular on our forums.', 'bbpress' ) ); ?>
<div id="bbpress-forums" class="bbpress-wrapper">
<?php bbp_breadcrumb(); ?>
<div id="bbp-topic-hot-tags">
<?php wp_tag_cloud( array( 'smallest' => 9, 'largest' => 38, 'number' => 80, 'taxonomy' => bbp_get_topic_tag_tax_id() ) ); ?>
</div>
</div>
</div>
</div><!-- #bbp-topic-tags -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,55 @@
<?php
/**
* Template Name: bbPress - Topics (No Replies)
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="topics-front" class="bbp-topics-front">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<div id="bbpress-forums" class="bbpress-wrapper">
<?php bbp_breadcrumb(); ?>
<?php bbp_set_query_name( 'bbp_no_replies' ); ?>
<?php if ( bbp_has_topics( array( 'meta_key' => '_bbp_reply_count', 'meta_value' => '1', 'meta_type' => 'NUMERIC', 'meta_compare' => '<', 'orderby' => 'date', 'show_stickies' => false ) ) ) : ?>
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
<?php bbp_get_template_part( 'loop', 'topics' ); ?>
<?php bbp_get_template_part( 'pagination', 'topics' ); ?>
<?php else : ?>
<?php bbp_get_template_part( 'feedback', 'no-topics' ); ?>
<?php endif; ?>
<?php bbp_reset_query_name(); ?>
</div>
</div>
</div><!-- #topics-front -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,43 @@
<?php
/**
* Template Name: bbPress - User Login
*
* @package bbPress
* @subpackage Theme
*/
// No logged in users
bbp_logged_in_redirect();
// Begin Template
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-login" class="bbp-login">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<div id="bbpress-forums" class="bbpress-wrapper">
<?php bbp_breadcrumb(); ?>
<?php bbp_get_template_part( 'form', 'user-login' ); ?>
</div>
</div>
</div><!-- #bbp-login -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,43 @@
<?php
/**
* Template Name: bbPress - User Lost Password
*
* @package bbPress
* @subpackage Theme
*/
// No logged in users
bbp_logged_in_redirect();
// Begin Template
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-lost-pass" class="bbp-lost-pass">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<div id="bbpress-forums" class="bbpress-wrapper">
<?php bbp_breadcrumb(); ?>
<?php bbp_get_template_part( 'form', 'user-lost-pass' ); ?>
</div>
</div>
</div><!-- #bbp-lost-pass -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,43 @@
<?php
/**
* Template Name: bbPress - User Register
*
* @package bbPress
* @subpackage Theme
*/
// No logged in users
bbp_logged_in_redirect();
// Begin Template
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-register" class="bbp-register">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php the_content(); ?>
<div id="bbpress-forums" class="bbpress-wrapper">
<?php bbp_breadcrumb(); ?>
<?php bbp_get_template_part( 'form', 'user-register' ); ?>
</div>
</div>
</div><!-- #bbp-register -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,30 @@
<?php
/**
* Edit handler for forums
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-edit-page" class="bbp-edit-page">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'form', 'forum' ); ?>
</div>
</div><!-- #bbp-edit-page -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,40 @@
<?php
/**
* Single Forum
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php if ( bbp_user_can_view_forum() ) : ?>
<div id="forum-<?php bbp_forum_id(); ?>" class="bbp-forum-content">
<h1 class="entry-title"><?php bbp_forum_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'single-forum' ); ?>
</div>
</div><!-- #forum-<?php bbp_forum_id(); ?> -->
<?php else : // Forum exists, user no access ?>
<?php bbp_get_template_part( 'feedback', 'no-access' ); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,30 @@
<?php
/**
* Edit handler for replies
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-edit-page" class="bbp-edit-page">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'form', 'reply' ); ?>
</div>
</div><!-- #bbp-edit-page -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,32 @@
<?php
/**
* Move reply page
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-edit-page" class="bbp-edit-page">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'form', 'reply-move' ); ?>
</div>
</div><!-- #bbp-edit-page -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,40 @@
<?php
/**
* Single Reply
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php if ( bbp_user_can_view_forum( array( 'forum_id' => bbp_get_reply_forum_id() ) ) ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-reply-wrapper-<?php bbp_reply_id(); ?>" class="bbp-reply-wrapper">
<h1 class="entry-title"><?php bbp_reply_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'single-reply' ); ?>
</div><!-- .entry-content -->
</div><!-- #bbp-reply-wrapper-<?php bbp_reply_id(); ?> -->
<?php endwhile; ?>
<?php elseif ( bbp_is_forum_private( bbp_get_reply_forum_id(), false ) ) : ?>
<?php bbp_get_template_part( 'feedback', 'no-access' ); ?>
<?php endif; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,30 @@
<?php
/**
* Edit handler for topics
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-edit-page" class="bbp-edit-page">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'form', 'topic' ); ?>
</div>
</div><!-- #bbp-edit-page -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,32 @@
<?php
/**
* Merge topic page
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-edit-page" class="bbp-edit-page">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'form', 'topic-merge' ); ?>
</div>
</div><!-- #bbp-edit-page -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,32 @@
<?php
/**
* Split topic page
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-edit-page" class="bbp-edit-page">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'form', 'topic-split' ); ?>
</div>
</div><!-- #bbp-edit-page -->
<?php endwhile; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,40 @@
<?php
/**
* Single Topic
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<?php if ( bbp_user_can_view_forum( array( 'forum_id' => bbp_get_topic_forum_id() ) ) ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="bbp-topic-wrapper-<?php bbp_topic_id(); ?>" class="bbp-topic-wrapper">
<h1 class="entry-title"><?php bbp_topic_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'single-topic' ); ?>
</div>
</div><!-- #bbp-topic-wrapper-<?php bbp_topic_id(); ?> -->
<?php endwhile; ?>
<?php elseif ( bbp_is_forum_private( bbp_get_topic_forum_id(), false ) ) : ?>
<?php bbp_get_template_part( 'feedback', 'no-access' ); ?>
<?php endif; ?>
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,25 @@
<?php
/**
* bbPress User Profile Edit
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<div id="bbp-user-<?php bbp_current_user_id(); ?>" class="bbp-single-user">
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'single-user' ); ?>
</div><!-- .entry-content -->
</div><!-- #bbp-user-<?php bbp_current_user_id(); ?> -->
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,25 @@
<?php
/**
* Single User
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<div id="bbp-user-<?php bbp_current_user_id(); ?>" class="bbp-single-user">
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'single-user' ); ?>
</div><!-- .entry-content -->
</div><!-- #bbp-user-<?php bbp_current_user_id(); ?> -->
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,28 @@
<?php
/**
* Single View
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<div id="bbp-view-<?php bbp_view_id(); ?>" class="bbp-view">
<h1 class="entry-title"><?php bbp_view_title(); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'single-view' ); ?>
</div>
</div><!-- #bbp-view-<?php bbp_view_id(); ?> -->
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,29 @@
<?php
/**
* Topic Tag Edit
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<div id="topic-tag" class="bbp-topic-tag">
<h1 class="entry-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'topic-tag-edit' ); ?>
</div>
</div><!-- #topic-tag -->
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();

View File

@@ -0,0 +1,28 @@
<?php
/**
* Topic Tag
*
* @package bbPress
* @subpackage Theme
*/
get_header(); ?>
<?php do_action( 'bbp_before_main_content' ); ?>
<?php do_action( 'bbp_template_notices' ); ?>
<div id="topic-tag" class="bbp-topic-tag">
<h1 class="entry-title"><?php printf( esc_html__( 'Topic Tag: %s', 'bbpress' ), '<span>' . bbp_get_topic_tag_name() . '</span>' ); ?></h1>
<div class="entry-content">
<?php bbp_get_template_part( 'content', 'archive-topic' ); ?>
</div>
</div><!-- #topic-tag -->
<?php do_action( 'bbp_after_main_content' ); ?>
<?php get_sidebar(); ?>
<?php get_footer();