fictioneer/partials/_tts-interface.php

46 lines
1.6 KiB
PHP
Raw Normal View History

2023-01-21 01:31:34 +01:00
<?php
/**
* Partial: TTS Interface
*
* @package WordPress
* @subpackage Fictioneer
* @since 4.0.0
2023-01-21 01:31:34 +01:00
*/
// No direct access!
defined( 'ABSPATH' ) OR exit;
?>
<div id="tts-interface" class="tts-interface hidden" data-show-settings="false" data-regex="<?php echo esc_attr( FICTIONEER_TTS_REGEX ); ?>" data-nosnippet>
2023-01-21 01:31:34 +01:00
<div class="tts-interface__wrapper">
<div class="tts-interface__controls">
<button id="button-tts-play" type="button" class="button play">
<i class="fa-solid fa-play"></i>
2023-09-16 14:25:26 +02:00
<?php _e( 'Play', 'fictioneer' ); ?>
2023-01-21 01:31:34 +01:00
</button>
<button id="button-tts-pause" type="button" class="button pause">
<i class="fa-solid fa-pause"></i>
2023-09-16 14:25:26 +02:00
<?php _e( 'Pause', 'fictioneer' ); ?>
2023-01-21 01:31:34 +01:00
</button>
<button id="button-tts-stop" type="button" class="button stop">
<i class="fa-solid fa-stop"></i>
2023-09-16 14:25:26 +02:00
<?php _e( 'Stop', 'fictioneer' ); ?>
2023-01-21 01:31:34 +01:00
</button>
<button id="button-tts-skip" type="button" class="button skip">
<i class="fa-solid fa-forward"></i>
2023-09-16 14:25:26 +02:00
<span class="hide-below-375"><?php _e( 'Skip', 'fictioneer' ); ?></span>
2023-01-21 01:31:34 +01:00
</button>
<button id="button-tts-scroll" type="button" class="button skip">
<i class="fa-solid fa-arrows-alt-v"></i>
2023-09-16 14:25:26 +02:00
<span class="hide-below-375"><?php _e( 'Scroll', 'fictioneer' ); ?></span>
2023-01-21 01:31:34 +01:00
</button>
2024-12-06 17:38:32 +01:00
<button class="button settings" type="button" tabindex="0" data-action="click->fictioneer#toggleModal" data-fictioneer-id-param="tts-settings-modal">
2023-06-16 13:58:07 +02:00
<i class="fa-solid fa-cog"></i>
2023-09-16 14:25:26 +02:00
<span class="hide-below-480"><?php _e( 'Settings', 'fictioneer' ); ?></span>
2024-12-06 17:38:32 +01:00
</button>
2023-01-21 01:31:34 +01:00
</div>
</div>
</div>