kril-theme/page-calculator.php

90 lines
2.5 KiB
PHP

<?php
/**
* Калькулятор призов.
*
* @package kril
*/
get_header();
wp_enqueue_script(
'calculator',
get_stylesheet_directory_uri() . '/js/calculator.js',
array(
'jquery',
'jquery-ui-core',
'jquery-ui-slider',
),
'2.0',
true
);
$container = get_theme_mod( 'understrap_container_type' );
?>
<div class="wrapper" id="page-wrapper">
<div class="<?php echo esc_attr( $container ); ?>" id="content">
<div class="row">
<div
class="<?php if ( is_active_sidebar( 'right-sidebar' ) ) : ?>col-md-8<?php else : ?>col-md-12<?php endif; ?> content-area"
id="primary">
<main class="site-main" id="main" role="main">
<?php while ( have_posts() ) { the_post(); ?>
<?php get_template_part( 'loop-templates/content', 'page' ); ?>
<?php } ?>
<form>
<div class="form-group">
<label for="formControlRange">
Призовой фонд конкурса:
<b><span id="fundValue"></span></b>
</label>
<div id="fundRange"></div>
</div>
<div class="form-group">
<label for="formControlRange">
Размер основной номинации:
<b><span id="gameValue"></span></b>
</label>
<div id="gameRange"></div>
</div>
<div class="form-group">
<label for="formControlRange">
Размер номинации переводов:
<b><span id="translateValue"></span></b>
</label>
<div id="translateRange"></div>
</div>
</form>
<h3>Основная номинация</h3>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Награда</th>
</tr>
</thead>
<tbody id="gameTable">
</tbody>
</table>
<h3>Номинация переводов</h3>
<table class="table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Награда</th>
</tr>
</thead>
<tbody id="translateTable">
</tbody>
</table>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_template_part( 'sidebar-templates/sidebar', 'right' ); ?>
</div><!-- .row -->
</div><!-- Container end -->
</div><!-- Wrapper end -->
<?php get_footer();