<meta property="og:title" content="<?php the_title(); ?> "/> <meta property="og:type" content="website"/> <meta property="og:url" content="<?php the_permalink(); ?> "/> <meta property="og:image" content="<?php echo $thumb_url; ?> "/> <meta property="og:description" content="<?php echo char_based_excerpt(80); ?> "/> <?php } ?> <!-- links --> <link rel="shortcut icon" href="<?php echo THEME_DIR; ?> /favicon.ico" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS2 Feed" href="<?php
function classic_post($timestamp = 1, $title = 1, $excerpt = 1, $sc = 0) { global $exclude_posts; $id = get_the_ID(); $exclude_posts = array_merge(array($id), $exclude_posts); $category = get_primary_category($id); $db_soundcloud = get_post_meta($id, 'db_soundcloud', true); $thumb_id = get_post_thumbnail_id(); $thumb_url = wp_get_attachment_image_src($thumb_id, array(300, 300), true); $thumb_url = $thumb_url[0]; ?> <div class="post classic <?php echo $category->slug; ?> "> <a class="featured-image-link" href="<?php the_permalink(); ?> "> <div class="featured-image cat-border"><div style="background-image:url('<?php echo $thumb_url; ?> ');"></div></div> <div class="category-tag cat-background"><?php echo $category->name; ?> </div> </a> <div class="post-bottom"> <div class="post-meta left"><?php the_author(); //the_author_posts_link(); ?> </div> <?php if ($timestamp == 1) { ?> <div class="post-meta right"><?php echo the_timestamp_short(); ?> </div> <?php } ?> <?php if ($title == 1) { ?> <a href="<?php the_permalink(); ?> "> <h3 class="title"><?php the_title(); ?> </h3> </a> <?php } ?> <?php if ($excerpt == 1) { ?> <p class="excerpt"><?php echo char_based_excerpt(150); ?> </p> <?php } ?> </div> <?php if ($sc == 1) { ?> <div class="player super_tight"> <?php if (isset($db_soundcloud) && !empty($db_soundcloud)) { soundcloud_player($db_soundcloud, $song_title); } ?> </div> <?php } ?> </div> <?php }