MOON
Server: Apache
System: Linux vps.erhabenn.com.br 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User: machen (1008)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /disk001/machen/www/support/wp-content/themes/learnmore/template-parts/knowledgebase/layout-1.php
<main class="site-main" role="main">
	<div class="home-container container grid">

	<?php
	$data = learnmore_get_knowledgebase_data();
	foreach ( $data as $category ) :
		$category = sanitize_category( $category );
		$posts    = $category->posts;
		?>
		<div class="cell cell--4@large">
			<div class="learnmore-category">
				<div class="learnmore-meta">
					<h2 class="learnmore-category-title">
						<?php
						echo $category->name;
						if ( true == get_theme_mod( 'kb_category_count', true ) ) :
							?>
							<span class="learnmore-category-count">
								(<?php echo $category->count; ?>)
							</span>
							<?php
						endif;
						?>
					</h2>
					<?php
					if ( true == get_theme_mod( 'kb_category_description', false ) ) {
						echo $category->description;
					}
					?>
				</div>
				<?php
				if ( isset( $posts ) ) :
					?>
					<ul class="learnmore-articles-list">
						<?php
						foreach ( $posts as $post ) :

							$post = sanitize_post( $post );
							?>
							<li class="learnmore-articles-item">
								<a class="learnmore-articles-link" href="<?php the_permalink( $post ); ?>">
									<span>
										<?php echo learnmore_get_svg( array( 'icon' => 'news' ) ); ?>
									</span>
									<?php echo $post->post_title; ?>
								</a>
							</li>
							<?php
						endforeach;
						?>
					</ul>
					<?php
				endif;
				?>

				<a class="learnmore-category-link" href="<?php echo esc_url( get_category_link( $category ) ); ?>">
					<?php esc_html_e( 'View all articles →', 'learnmore' ); ?>
				</a>
			</div>
		</div>
		<?php
	endforeach;
	?>

	</div>

	<div class="entry-content">
		<?php the_content(); ?>
	</div>
</main>