%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/pn/beta/64801_wp-content/plugins/autodescription/inc/views/inpost/
Upload File :
Create Path :
Current File : /var/www/pn/beta/64801_wp-content/plugins/autodescription/inc/views/inpost/wrap.php

<?php
/**
 * @package The_SEO_Framework\Views\Inpost
 */

defined( 'ABSPATH' ) and $_this = the_seo_framework_class() and $this instanceof $_this or die;

//* Whether tabs are active.
$use_tabs = $use_tabs && count( $tabs ) > 1;

/**
 * Start navigational tabs.
 *
 * Don't output navigation if $use_tabs is false and the amount of tabs is 1 or lower.
 */
if ( $use_tabs ) :
	?>
	<div class="tsf-flex tsf-flex-nav-tab-wrapper tsf-flex-hide-if-no-js" id="<?php echo \esc_attr( 'tsf-flex-' . $id . '-tabs-wrapper' ); ?>">
		<div class="tsf-flex tsf-flex-nav-tab-inner">
			<?php
			$count = 1;
			foreach ( $tabs as $tab => $value ) :
				$dashicon = isset( $value['dashicon'] ) ? $value['dashicon'] : '';
				$label_name = isset( $value['name'] ) ? $value['name'] : '';

				$wrapper_id = \esc_attr( 'tsf-flex-nav-tab-' . $tab );
				$wrapper_active = 1 === $count ? ' tsf-flex-nav-tab-active' : '';

				$input_checked = 1 === $count ? 'checked' : '';
				$input_id = \esc_attr( 'tsf-flex-' . $id . '-tab-' . $tab );
				$input_name = \esc_attr( 'tsf-flex-' . $id . '-tabs' );

				//= All output below is escaped.
				?>
				<div class="tsf-flex tsf-flex-nav-tab tsf-flex<?php echo $wrapper_active; ?>" id="<?php echo $wrapper_id; ?>">
					<input type="radio" class="tsf-flex-nav-tab-radio" id="<?php echo $input_id; ?>" name="<?php echo $input_name; ?>" <?php echo $input_checked; ?>>
					<label for="<?php echo $input_id; ?>" class="tsf-flex tsf-flex-nav-tab-label">
						<?php
						echo $dashicon ? '<span class="tsf-flex dashicons dashicons-' . \esc_attr( $dashicon ) . ' tsf-flex-nav-dashicon"></span>' : '';
						echo $label_name ? '<span class="tsf-flex tsf-flex-nav-name">' . \esc_attr( $label_name ) . '</span>' : '';
						?>
					</label>
				</div>
				<?php

				$count++;
			endforeach;
			?>
		</div>
	</div>
	<?php
endif;

/**
 * Start Content.
 *
 * The content is relative to the navigation, and uses CSS to become visible.
 */
$count = 1;
foreach ( $tabs as $tab => $value ) :

	$radio_id = \esc_attr( 'tsf-flex-' . $id . '-tab-' . $tab . '-content' );
	$radio_class = \esc_attr( 'tsf-flex-' . $id . '-tabs-content' );

	//* Current tab for JS.
	$current_class = 1 === $count ? ' tsf-flex-tab-content-active' : '';

	?>
	<div class="tsf-flex tsf-flex-tab-content <?php echo \esc_attr( $radio_class . $current_class ); ?>" id="<?php echo \esc_attr( $radio_id ); ?>" >
		<?php
		//* No-JS tabs.
		if ( $use_tabs ) :
			$dashicon = isset( $value['dashicon'] ) ? $value['dashicon'] : '';
			$label_name = isset( $value['name'] ) ? $value['name'] : '';

			?>
			<div class="tsf-flex tsf-flex-hide-if-js tsf-flex-tabs-content-no-js">
				<div class="tsf-flex tsf-flex-nav-tab tsf-flex-tab-no-js">
					<span class="tsf-flex tsf-flex-nav-tab">
						<?php echo $dashicon ? '<span class="tsf-flex dashicons dashicons-' . \esc_attr( $dashicon ) . ' tsf-flex-nav-dashicon"></span>' : ''; ?>
						<?php echo $label_name ? '<span class="tsf-flex tsf-flex-nav-name">' . \esc_attr( $label_name ) . '</span>' : ''; ?>
					</span>
				</div>
			</div>
			<?php
		endif;

		$callback = isset( $value['callback'] ) ? $value['callback'] : '';

		if ( $callback ) {
			$params = isset( $value['args'] ) ? $value['args'] : '';
			//* Should already be escaped.
			echo $this->call_function( $callback, $version, $params );
		}
		?>
	</div>
	<?php

	$count++;
endforeach;

Zerion Mini Shell 1.0