?
Current File : /home/c/i/d/cideo/www/wp-includesVIp/js/crop/images/content.php.tar
home/cideo/www/wp-contentVIp/themes/twentyseventeen/template-parts/post/content.php000066600000004000151275154700024773 0ustar00<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage Twenty_Seventeen
 * @since Twenty Seventeen 1.0
 * @version 1.2
 */

?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<?php
	if ( is_sticky() && is_home() ) :
		echo twentyseventeen_get_svg( array( 'icon' => 'thumb-tack' ) );
	endif;
	?>
	<header class="entry-header">
		<?php
		if ( 'post' === get_post_type() ) {
			echo '<div class="entry-meta">';
			if ( is_single() ) {
				twentyseventeen_posted_on();
			} else {
				echo twentyseventeen_time_link();
				twentyseventeen_edit_link();
			}
			echo '</div><!-- .entry-meta -->';
		}

		if ( is_single() ) {
			the_title( '<h1 class="entry-title">', '</h1>' );
		} elseif ( is_front_page() && is_home() ) {
			the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
		} else {
			the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
		}
		?>
	</header><!-- .entry-header -->

	<?php if ( '' !== get_the_post_thumbnail() && ! is_single() ) : ?>
		<div class="post-thumbnail">
			<a href="<?php the_permalink(); ?>">
				<?php the_post_thumbnail( 'twentyseventeen-featured-image' ); ?>
			</a>
		</div><!-- .post-thumbnail -->
	<?php endif; ?>

	<div class="entry-content">
		<?php
		the_content(
			sprintf(
				/* translators: %s: Post title. Only visible to screen readers. */
				__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'twentyseventeen' ),
				get_the_title()
			)
		);

		wp_link_pages(
			array(
				'before'      => '<div class="page-links">' . __( 'Pages:', 'twentyseventeen' ),
				'after'       => '</div>',
				'link_before' => '<span class="page-number">',
				'link_after'  => '</span>',
			)
		);
		?>
	</div><!-- .entry-content -->

	<?php
	if ( is_single() ) {
		twentyseventeen_entry_footer();
	}
	?>

</article><!-- #post-<?php the_ID(); ?> -->
home/cideo/www/wp-contentVIp/themes/vika/post-formats/content.php000066600000005543151275336310021201 0ustar00<?php // Post Format Standard

// get theme cusomizer data
$bPage_general 		= get_option('royal_bPage_general');
$bPost_overlay 		= get_option('royal_bPost_overlay');
$pPage_general 		= get_option('royal_pPage_general');
$pPost_effects 		= get_option('royal_pPost_effects');
$gallery_lightbox 	= get_option( 'royal_gallery_lightbox' );

// get post meta data
$second_featured_img_id = get_post_meta( $post->ID, 'second_featured_img_id', true );

// if post format content is loaded on single page
if ( has_post_thumbnail() ) : ?>

	<?php

	// lightbox
	if ( 'royal_portfolio' === get_post_type()  ) {

		$overlay_link 	= $pPost_effects['overlay_click'];
		$overlay_icon 	= $pPost_effects['overlay_icon'];
		$image_size		= 'royal-portfolio-post';
		$layout_mode	= $pPage_general['layout'];
		$image_id		= ( $pPost_effects['nxt_prev_image'] === true ) ? 'all' : get_the_ID();

	} else {

		$overlay_link 	= $bPost_overlay['click'];
		$overlay_icon 	= $bPost_overlay['icon'];
		$image_size		= 'royal-blog-post';
		$layout_mode	= $bPage_general['layout'];
		$image_id		= get_the_ID();

	}

	?>

	<!-- Post Image Overlay -->
	<div class="image-overlay">
		<?php

		// get image ALT text
		$attachment = get_post( get_post_thumbnail_id() );
		$attachment_title = '';

		if ( $attachment !== null ) {
			$attachment_title = esc_attr( $attachment->post_title );
		}
		
		if ( $overlay_link === 'lightbox' ) {
			$full_size_img = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full' );
			echo '<a href="'. esc_url($full_size_img[0]) .'" rel="prettyPhoto['. $image_id .']" data-title="'. $attachment_title .'">';
				echo '<i class="fa fa-'. $overlay_icon .'"></i>';
			echo '</a>';
		} else {
			echo '<a href="'. esc_url(get_the_permalink()) .'">';
				echo '<i class="fa fa-'. $overlay_icon .'"></i>';
			echo '</a>';
		}

		?>
	</div>


	<!-- Post Thumbnail -->
	<?php

	// get current page object
	global $pagename;
	$current_page_obj = get_page_by_path($pagename);
	
	if ( isset($current_page_obj) ) {
		$current_page_obj = $current_page_obj->post_content;
	} else {
		$current_page_obj = 'empty';
	}

	if ( 'royal_portfolio' === get_post_type() ) {

		if ( $layout_mode === 'fitRows' || strpos( $current_page_obj, 'portfolio_layout_mode="fitRows"' ) !== false ) {
			the_post_thumbnail( $image_size );
			if ( $second_featured_img_id !== '' ) {
				echo wp_get_attachment_image( $second_featured_img_id, $image_size );
			}
		} else {
			the_post_thumbnail();
			if ( $second_featured_img_id !== '' ) {
				echo wp_get_attachment_image( $second_featured_img_id, 'full' );
			}
		}

	} else {

		if ( $layout_mode === 'fitRows' || strpos( $current_page_obj, 'blog_layout_mode="fitRows"' ) !== false ) {
			the_post_thumbnail( $image_size );
		} else {
			the_post_thumbnail();
		}

	}

	?>

<?php endif; ?>