Updated styling for 'Manage Assessments' page

This commit is contained in:
Ruben Ramirez 2025-04-04 15:05:48 -05:00
parent 0919217fdf
commit 38de3b234c

View file

@ -25,23 +25,23 @@ $builder_url = $builder_page ? get_permalink( $builder_page->ID ) : '';
get_header(); ?>
<div id="primary" class="content-area">
<div id="primary" class="content-area quiztech-content-area">
<main id="main" class="site-main">
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php the_title( '<h1 class="entry-title quiztech-page-title">', '</h1>' ); ?>
</header><!-- .entry-header -->
<div class="entry-content">
<?php if ( $builder_url ) : ?>
<p><a href="<?php echo esc_url( $builder_url ); ?>" class="button"><?php esc_html_e( 'Create New Assessment', 'quiztech' ); ?></a></p>
<p><a href="<?php echo esc_url( $builder_url ); ?>" class="quiztech-button quiztech-button-primary"><?php esc_html_e( 'Create New Assessment', 'quiztech' ); ?></a></p>
<?php else : ?>
<p><?php esc_html_e( 'Assessment Builder page not found. Please ensure a page with the slug "assessment-builder" exists and uses the correct template.', 'quiztech' ); ?></p>
<?php endif; ?>
<h2><?php esc_html_e( 'Existing Assessments', 'quiztech' ); ?></h2>
<h2 class="quiztech-section-title"><?php esc_html_e( 'Existing Assessments', 'quiztech' ); ?></h2>
<?php
$args = array(
@ -55,7 +55,7 @@ get_header(); ?>
?>
<?php if ( $assessments_query->have_posts() ) : ?>
<table class="wp-list-table widefat fixed striped">
<table class="quiztech-table wp-list-table widefat fixed striped">
<thead>
<tr>
<th><?php esc_html_e( 'Title', 'quiztech' ); ?></th>
@ -68,7 +68,7 @@ get_header(); ?>
<td><?php the_title(); ?></td>
<td>
<?php if ( $builder_url ) : ?>
<a href="<?php echo esc_url( add_query_arg( 'assessment_id', get_the_ID(), $builder_url ) ); ?>"><?php esc_html_e( 'Edit', 'quiztech' ); ?></a>
<a class="quiztech-link" href="<?php echo esc_url( add_query_arg( 'assessment_id', get_the_ID(), $builder_url ) ); ?>"><?php esc_html_e( 'Edit', 'quiztech' ); ?></a>
<?php endif; ?>
<?php // Add delete link/action later if needed ?>
</td>