-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsingle-product.php
executable file
·80 lines (58 loc) · 2.58 KB
/
single-product.php
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
<?php
get_header();
if(function_exists("show_welcome_message")) show_welcome_message(true); ?>
<div id="center_layout" class="content_default col col-md-8 col-md-offset-2">
<div class="row">
<div class="padder">
<?php #show_lang_options(false); ?>
<?php do_action( 'bp_before_blog_home' ) ?>
<div class="page" id="blog-latest">
<?php
if(function_exists('set_shared_database_schema')) {
set_shared_database_schema();
}
while (have_posts()) : the_post(); ?>
<?php if(function_exists("check_language_user_and_content"))check_language_user_and_content(get_the_tags()); ?>
<?php #if(!has_tag("english")){ ?>
<?php do_action( 'bp_before_blog_post' ) ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div style="/*background: #222;*/width: 100%;">
<center>
<a style="margin:0 auto;" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php
if ( has_post_thumbnail() ) {
if(!has_tag("video"))
the_post_thumbnail( /*array(500,200)*/ );
}
?>
</a>
</center>
</div>
<?php #endif; ?>
<!--div class="author-box">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), '60' ); ?>
</div-->
<div class="post-content">
<h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<!--p class="date"><?php the_time("j \d\\e F \d\\e Y") ?></p-->
<div class="entry">
<?php
if(!is_single())
the_excerpt("... continuar lendo.");
else
the_content( __( 'Read the rest of this entry →', 'buddypress' ) ); ?>
</div>
<p class="postmetadata"><span class="tags"><?php the_tags( __( 'Tags: ', 'buddypress' ), ', ', '<br />'); ?></span> <span class="comments"><?php comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ); ?></span></p>
</div>
</div>
<?php do_action( 'bp_after_blog_post' ) ?>
<?php edit_post_link( __( 'Edit this entry.', 'buddypress' ), '<p>', '</p>'); ?>
<?php #} ?>
<?php endwhile; ?>
</div>
<?php do_action( 'bp_after_blog_home' ); ?>
</div><!-- .padder -->
<?php #locate_template( array( 'sidebar-index.php' ), true ); ?>
</div>
</div><!-- #content -->
<?php get_footer(); ?>