-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.php
More file actions
84 lines (75 loc) · 3.27 KB
/
Copy pathcontent.php
File metadata and controls
84 lines (75 loc) · 3.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* @package WordPress
* @subpackage Fruitful theme
* @since Fruitful theme 1.0
*/
?>
<?php $options = fruitful_get_theme_options(); ?>
<?php if ( is_single() ) : ?>
<div id="content">
<?php else : ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?> >
<?php endif // is_single() ?>
<?php if ( has_post_thumbnail() ) { ?>
<?php if ( ! is_single() ) { ?>
<div class="left-block-content">
<header class="entry-header">
<div class="the_post_thumbnail_div">
<?php //the_post_thumbnail(); ?>
<?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), false, '' );
$thumbnailSrc = $src[0]; ?>
<img class="news-images" src="<?php echo $thumbnailSrc; ?>" width="240px" alt="" />
<?php /*END TIMTHUMB*/ ?>
</div>
<div class="entry-comment-img">
<p class="the_date"><?php dateToRussian( the_date('d F', '<span>', '</span>', false)); ?></p>
<p class="the_category"><span>, сategory:</span> <?php the_category(', '); ?></p>
</div>
</header><!-- .entry-header -->
</div> <!-- end left-block-content -->
<?php ; } ?>
<!-- div class="right-block-content" -->
<?php if ( is_single() ) : {echo ('<div class="right-block-content">'); ?>
<h1 class="entry-title single-post"><?php the_title();} ?></h1>
<?php else : {echo ('<div class="right-block-content-post">'); ?>
<p class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'notes' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title();} ?></a>
</p>
<?php endif; // is_single() ?>
<?php }
else { //if no thumbnail
?>
<!-- div class="right-block-content" -->
<?php if ( is_single() ) : {echo ('<div class="right-block-content" style="width: calc(100% - 42px)">'); ?>
<h1 class="entry-title single-post"><?php the_title();} ?></h1>
<?php else : {echo ('<div class="right-block-content-post" style="width: 100%; max-width: 100%">'); ?>
<p class="entry-title">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'notes' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title();} ?></a>
</p>
<div class="entry-comment-img" style="width: 100%">
<p class="the_date"><?php dateToRussian(the_date('d F', '<span>', '</span>', false)); ?></p>
<p class="the_category"><span>, сategory:</span> <?php the_category(', '); ?></p>
</div>
<?php ; endif; ?>
<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
<div class="featured-post">
<?php _e( 'Featured post', 'notes' ); ?>
</div>
<?php endif; } ?>
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-content">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php if ( is_single() ) : the_content(); else : the_excerpt(); endif; ?>
<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'notes' ), 'after' => '</div>' ) ); ?>
</div><!-- .entry-content -->
<?php endif; ?>
</div> <!-- end right-block-content -->
<?php if ( is_single() ) : ?>
</div>
<?php else : ?>
</article>
<?php endif // is_single() ?>