// NOTE: Each option has two labels so thumbnails are also clickable and so it works with the custom radio inputs
- view += this.getSinglePages();
-
- // Double Page
- if (!this.isFirstPage && !this.isLastPage && !this.isSinglePageMode) {
- var label = __('spread');
- view += '<div class="print-option" role="radio" aria-label="' + label + '">';
- if (!this.compact) {
- view += '<label for="doublePage" aria-hidden="true">';
- view += '<div class="doubleThumb">';
- view += '<div class="thumb left">';
- view += this.fluidbook.loader.getThumbImage(this.leftPageNumber, true);
- view += '</div>';
- view += '<div class="thumb right">';
- view += this.fluidbook.loader.getThumbImage(this.rightPageNumber, true);
- view += '</div>'; // .thumb
- view += '</div>'; // .doubleThumb
- view += '</label>';
+ if(this.fluidbook.settings.pdfComplexShowCurrent) {
+ view += this.getSinglePages();
+
+ // Double Page
+ if (!this.isFirstPage && !this.isLastPage && !this.isSinglePageMode) {
+ var label = __('spread');
+ view += '<div class="print-option" role="radio" aria-label="' + label + '">';
+ if (!this.compact) {
+ view += '<label for="doublePage" aria-hidden="true">';
+ view += '<div class="doubleThumb">';
+ view += '<div class="thumb left">';
+ view += this.fluidbook.loader.getThumbImage(this.leftPageNumber, true);
+ view += '</div>';
+ view += '<div class="thumb right">';
+ view += this.fluidbook.loader.getThumbImage(this.rightPageNumber, true);
+ view += '</div>'; // .thumb
+ view += '</div>'; // .doubleThumb
+ view += '</label>';
+ }
+ view += '<input aria-hidden="true" type="radio" name="pageChoice" value="double" id="doublePage">'
+ view += '<label aria-hidden="true" for="doublePage" class="print-label-text">' + label + '</label>';
+ view += '</div>'; // .print-option
}
- view += '<input aria-hidden="true" type="radio" name="pageChoice" value="double" id="doublePage">'
- view += '<label aria-hidden="true" for="doublePage" class="print-label-text">' + label + '</label>';
- view += '</div>'; // .print-option
}
// Full Brochure
view += '</div>'; // .print-option
}
- view += '<div class="print-option blank" aria-hidden="true"></div>'; // Extra empty div to ensure flexbox space-between works as expected
+ if(this.fluidbook.settings.pdfComplexShowCurrent) {
+ view += '<div class="print-option blank" aria-hidden="true"></div>'; // Extra empty div to ensure flexbox space-between works as expected
+ }
// Page range inputs
if (this.fluidbook.settings.printPageRange) {