<?php /* translators: On the Views admin screen. */ ?>
<th>
	<label for="view-content">
		<?php _e( 'Content', 'strong-testimonials' ); ?>
	</label>
</th>
<td colspan="2">

	<!-- Content type -->
	<div id="option-content" class="row">

		<div class="row-inner">

			<!-- select -->
			<div class="inline">
				<select id="view-content" class="if selectper min-width-1 label-not-adjacent" name="view[data][content]">
					<option value="entire" <?php selected( 'entire', $view['content'] ); ?>>
						<?php _ex( 'entire content', 'display setting', 'strong-testimonials' ); ?>
					</option>
					<option value="truncated" <?php selected( 'truncated', $view['content'] ); ?>>
						<?php _ex( 'automatic excerpt', 'display setting', 'strong-testimonials' ); ?>
					</option>
					<option value="excerpt" <?php selected( 'excerpt', $view['content'] ); ?>>
						<?php _ex( 'manual excerpt', 'display setting', 'strong-testimonials' ); ?>
					</option>
				</select>
			</div>

			<!-- info & screenshot -->

			<div class="inline then fast then_truncated then_not_entire then_not_excerpt" style="display: none;">
				<p class="description">
					<?php _e( 'This will strip tags like &lt;em&gt; and &lt;strong&gt;.', 'strong-testimonials' ); ?>
				</p>
			</div>

			<div class="inline then fast then_not_truncated then_not_entire then_excerpt" style="display: none;">
				<p class="description">
					<?php
					$url = '#TB_inline?width=&height=210&inlineId=screenshot-screen-options';
					$allowed_html = array( 'a' => array( 'href' => array(), 'target' => array(), 'class' => array() ) );
					printf( wp_kses( __( 'To create manual excerpts, you may need to enable them in the post editor like in this <a href="%s" class="%s">screenshot</a>.', 'strong-testimonials' ), $allowed_html ), esc_url( $url ), 'thickbox' );
					?>
					<span class="screenshot" id="screenshot-screen-options" style="display: none;">
						<img src="<?php echo WPMTST_ADMIN_URL; ?>img/screen-options.png" width="600">
					</span>
				</p>
			</div>

		</div><!-- .row-inner -->

	</div><!-- #option-content -->

	<!-- Excerpt length -->
	<div id="option-content-length" class="row then then_not_entire then_excerpt then_truncated" style="display: none;">

		<div class="row-inner highlight2">

			<!-- info -->
			<div class="inline tight then then_excerpt then_not_truncated" style="display: none;">
				<span>
					<?php _e( 'If no manual excerpt, create an excerpt using', 'strong-testimonials' ); ?>
				</span>
			</div>

			<!-- default or custom? -->
			<div class="inline">
				<label>
					<select id="view-use_default_length" class="if selectgroup min-width-1" name="view[data][use_default_length]">
						<option value="1" <?php selected( $view['use_default_length'] ); ?>>
							<?php _ex( 'default length', 'display setting', 'strong-testimonials' ); ?>
						</option>
						<option value="0" <?php selected( ! $view['use_default_length'] ); ?>>
							<?php _ex( 'custom length', 'display setting', 'strong-testimonials' ); ?>
						</option>
					</select>
				</label>
			</div>

			<!-- 1st option: default -->
			<div class="inline then fast then_use_default_length then_1 then_not_0" style="display: none;">
				<label for="view-use_default_length" class="inline-middle"><?php // Because partner option has <label>, this prevents micro-bounce ?>
					<p class="description tall"><?php _e( 'The default length is 55 words but your theme may override that.', 'strong-testimonials' ); ?></p>
				</label>
			</div>

			<!-- 2nd option: length -->
			<div class="inline then fast then_use_default_length then_0 then_not_1" style="display: none;">
				<label class="inline-middle">
					<?php printf( _x( 'of the first %s words', 'the excerpt length', 'strong-testimonials' ), '<input id="view-excerpt_length" class="input-incremental" type="number" min="1" max="999" name="view[data][excerpt_length]" value="' . $view['excerpt_length'] . '">' ); ?>
				</label>
			</div>

		</div><!-- .row-inner -->

	</div><!-- #option-content-length -->

	<!-- Read-more link -->
	<div id="option-content-read-more" class="row then then_not_entire then_excerpt then_truncated" style="display: none;">

		<div class="row-inner subgroup">

			<div class="subgroup-heading">
				<?php _e( '"Read more" link', 'strong-testimonials' ); ?>
			</div>

			<!-- default or custom -->
			<div class="row-inner">

				<div class="inline tight">
					<label>
						<select id="view-use_default_more" class="if selectgroup min-width-1" name="view[data][use_default_more]">
							<option value="1" <?php selected( $view['use_default_more'] ); ?>>
								<?php _ex( 'default link text', 'display setting', 'strong-testimonials' ); ?>
							</option>
							<option value="0" <?php selected( ! $view['use_default_more'] ); ?>>
								<?php _ex( 'custom link text (recommended)', 'display setting', 'strong-testimonials' ); ?>
							</option>
						</select>
					</label>
				</div>

				<div class="inline tight last then fast then_use_default_more then_0 then_not_1" style="display: none;">

					<span id="option-link-text" class="inline-span">
						<label for="view-more_post_text">
							<input type="text" id="view-more_post_text" name="view[data][more_post_text]"
								   value="<?php echo $view['more_post_text']; ?>" size="22"
								   placeholder="<?php _e( 'enter a phrase', 'strong-testimonials' ); ?>">
						</label>
					</span>

					<span id="option-ellipsis">

						<input type="checkbox" id="view-more_post_ellipsis" class="if toggle checkbox"
							   name="view[data][more_post_ellipsis]" value="1"
							<?php checked( isset( $view['more_post_ellipsis'] ) && $view['more_post_ellipsis'] );?>>

						<label for="view-more_post_ellipsis">

							<?php _e( 'ellipsis', 'strong-testimonials' ); ?>

							<div class="inline tight">
								<div class="then then_excerpt then_not_truncated" style="display: none;">
									<?php _e( '(automatic excerpt only)', 'strong-testimonials' ); ?>
								</div>
							</div>

						</label>

					</span>

				</div>

				<div class="inline tight then fast then_use_default_more then_1 then_not_0" style="display: none;">
					<p class="description short"><?php _e( 'If you only see [&hellip;] without a link then your theme<br> does not provide this. Use the custom link text instead.', 'strong-testimonials' ); ?></p>
				</div>

			</div><!-- .row-inner -->

			<!-- automatic or both -->
			<div class="row-inner then then_excerpt then_not_truncated" style="display: none;">

				<div class="inline">
					<label>
						<select id="view-more_full_post" class="if selectgroup" name="view[data][more_full_post]">
							<option value="0" <?php selected( $view['more_full_post'], 0 ); ?>>
								<?php _ex( 'for automatic excerpt only', 'display setting', 'strong-testimonials' ); ?>
							</option>
							<option value="1" <?php selected( $view['more_full_post'], 1 ); ?>>
								<?php _ex( 'for both automatic and manual excerpts', 'display setting', 'strong-testimonials' ); ?>
							</option>
						</select>
					</label>
				</div>

			</div><!-- .row-inner -->

		</div><!-- .row-inner.subgroup -->

	</div><!-- #option-content-read-more -->

	<div class="row links then then_not_entire then_truncated then_excerpt" style="display: none;">
		<p class="description tall solo">
			<?php printf( wp_kses( __( '<a href="%s" target="_blank">Learn more about WordPress excerpts</a>', 'strong-testimonials' ), array( 'a' => array( 'href' => array(), 'target' => array(), 'class' => array() ) ) ), esc_url( 'http://buildwpyourself.com/wordpress-manual-excerpts-more-tag/' ) ); ?>
		</p>
	</div>

</td>
