<?php 
/**
 * header for error page
 */
function get_error_header(){ ?>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">

<?php }

/**
 * footer for error page
 */
function get_error_footer(){ ?>

<?php }

/**
 * frontend header
 */
function get_frontend_header($category = ""){ ?>
    <link rel="stylesheet" href="<?php echo plugins_url('/', __FILE__) . 'dist/css/iot-reading.css'; ?>" />
<?php }

/**
 * frontend footer
 */
function get_frontend_footer($category = ""){ 
  if(!empty($category) && in_array($category , [
    'ielts-reading',
    'ielts-listening',
    'ielts-writing',
    'ielts-speaking'
  ])){
    if( $category === "ielts-reading" ) { ?>

      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.7.6/jquery.nicescroll.min.js" integrity="sha512-zMfrMAZYAlNClPKjN+JMuslK/B6sPM09BGvrWlW+cymmPmsUT1xJF3P4kxI3lOh9zypakSgWaTpY6vDJY/3Dig==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-Knob/1.2.13/jquery.knob.min.js" integrity="sha512-NhRZzPdzMOMf005Xmd4JonwPftz4Pe99mRVcFeRDcdCtfjv46zPIi/7ZKScbpHD/V0HB1Eb+ZWigMqw94VUVaw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
      <script src="<?php echo plugins_url('/', __FILE__) . 'dist/js/uuidv4.js'; ?>"></script>
      <script src="<?php echo plugins_url('/', __FILE__) . 'dist/js/texthighter.js'; ?>"></script>

    <?php }
  }
}



