Hoi!
Heb zojuist een WP template gekocht en hij is helemaal perfect behalve de 'homepage' de homepage ziet er zo uit
Ik wil dus die 'notes' weg, en er een normale tekstpagina van maken zoals dit:
![]()
- [WP] Homepage normaal krijgen.
-
08-03-2011, 13:53 #1
- Berichten
- 369
- Lid sinds
- 18 Jaar
[WP] Homepage normaal krijgen.
-
-
08-03-2011, 14:00 #2
- Berichten
- 1.263
- Lid sinds
- 16 Jaar
Re: [WP] Homepage normaal krijgen.
index.php of home.php bewerken? Met screenshots kunnen we natuurlijk vrij weinig, geef een URL, template of code van de template..
-
08-03-2011, 14:12 #3
- Berichten
- 369
- Lid sinds
- 18 Jaar
Re: [WP] Homepage normaal krijgen.
Code:<?php get_header(); ?> <?php if (is_archive()) $post_number = get_option('dailynotes_archivenum_posts'); if (is_search()) $post_number = get_option('dailynotes_searchnum_posts'); if (is_tag()) $post_number = get_option('dailynotes_tagnum_posts'); if (is_category()) $post_number = get_option('dailynotes_catnum_posts'); if (is_home()) $args=array( 'showposts'=>get_option('dailynotes_homepage_posts'), 'paged'=>$paged, 'post_type' => array('note','photo','quote','video','customlink','audio','post') ); ?> <?php global $query_string; if (is_category()) query_posts($query_string . "&showposts=$post_number&paged=$paged&cat=$cat"); elseif (is_home()) query_posts($args); elseif (is_author()) { $qstring_array = array(); parse_str($query_string, $qstring_array); query_posts(array('showposts' => $post_number,'paged'=>$paged,'post_type' => array('note','photo','quote','video','customlink','audio'),'author'=>$qstring_array["author"])) ; } else query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?> <?php if (isset($_REQUEST["post_type"])) { $args=array( 'showposts'=> get_option('dailynotes_archive_customposts'), 'paged'=>$paged, 'post_type' => $_REQUEST["post_type"] ); query_posts($args); }; ?> <div id="posts_big"> <?php $i = 0; if (have_posts()) : while (have_posts()) : the_post(); $i++; ?> <?php include(TEMPLATEPATH . '/includes/entry2.php'); ?> <?php endwhile; ?> <?php endif; wp_reset_query(); ?> </div> <?php if (is_archive()) $post_number = get_option('dailynotes_archivenum_posts'); if (is_search()) $post_number = get_option('dailynotes_searchnum_posts'); if (is_tag()) $post_number = get_option('dailynotes_tagnum_posts'); if (is_category()) $post_number = get_option('dailynotes_catnum_posts'); if (is_home()) $args=array( 'showposts'=>get_option('dailynotes_homepage_posts'), 'paged'=>$paged, 'post_type' => array('note','photo','quote','video','customlink','audio','post') ); ?> <?php global $query_string; if (is_category()) query_posts($query_string . "&showposts=$post_number&paged=$paged&cat=$cat"); elseif (is_home()) query_posts($args); elseif (is_author()) { $qstring_array = array(); parse_str($query_string, $qstring_array); query_posts(array('showposts' => $post_number,'paged'=>$paged,'post_type' => array('note','photo','quote','video','customlink','audio'),'author'=>$qstring_array["author"])) ; } else query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?> <?php if (isset($_REQUEST["post_type"])) { $args=array( 'showposts'=> get_option('dailynotes_archive_customposts'), 'paged'=>$paged, 'post_type' => $_REQUEST["post_type"] ); query_posts($args); }; ?> <?php global $default_colorscheme,$shortname; $colorSchemePath = ''; $colorScheme = get_option($shortname . '_color_scheme'); if ($colorScheme <> $default_colorscheme) $colorSchemePath = strtolower($colorScheme) . '/'; ?> <div id="posts"> <?php next_posts_link('<img id="next2" src="'.get_bloginfo('stylesheet_directory').'/images/'.$colorSchemePath.'/'.'arrow.gif" alt="next page" />', 0); ?> <?php previous_posts_link('<img id="previous2" src="'.get_bloginfo('stylesheet_directory').'/images/'.$colorSchemePath.'/'.'previous.gif" alt="next page" />', 0); ?> <?php $i = 0; if (have_posts()) : while (have_posts()) : the_post(); $i++; ?> <?php include(TEMPLATEPATH . '/includes/entry.php'); ?> <?php endwhile; ?> <?php endif; wp_reset_query(); ?> <div id="footer"><?php _e(' ','Quincy de Graaf'); ?> <a href="http://www.quincydegraaf.nl">Quincy de Graaf</a></div> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>
.CSS
Code:/* Theme Name: DailyNotes Theme URI: http://www.elegantthemes.com/ Version: 1.1 Description: 2 Column theme from Elegant Themes Author: Elegant Themes Author URI: http://www.elegantthemes.com */ /*------------------------------------------------*/ /*-----------------[RESET]------------------------*/ /*------------------------------------------------*/ /* http://meyerweb.com/eric/tools/css/reset/ */ /* v1.0 | 20080212 */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after,q:before, q:after { content: ''; content: none; } :focus { outline: 0; } ins { text-decoration: none; } del { text-decoration: line-through; } table { border-collapse: collapse; border-spacing: 0; } /*------------------------------------------------*/ /*----------------[BASIC STYLES]------------------*/ /*------------------------------------------------*/ body { background: url(images/bg.jpg) #f6f6f6; color: #3b3b3b; font-family: Georgia; font-size: 12px; margin: 0; padding: 0; line-height: 16px; } a { text-decoration: none; font-weight: bold; color: #8e0000; } #wrapper1 { background: url(images/bg-2.png) no-repeat top center; width: 100%; margin: 0; } #wrapper2 { background: url(images/bg-3.png) repeat-x top; width: 100%; margin: 0; } #content { min-height: 400px; width: 785px; margin: auto; padding-top: 60px; } .clear { clear: both; margin: 0; padding: 0; } #logo { float: left; border: none;} .big_post p, .main_post p { padding-top: 15px;} /*------------------------------------------------*/ /*-----------------[PAGES MENU]-------------------*/ /*------------------------------------------------*/ .nav { text-transform: lowercase; position: relative; z-index: 10; float: left; margin: 0 0 0 -10px; padding: 15px 0 33px 0; font-family: Century Gothic, Helvetica, Arial; color: #bfbfbf; font-size: 18px; } .nav li { float: left; margin: 0; padding: 0; list-style: none; } .nav li a { font-weight: normal; font-family: Century Gothic, Helvetica, Arial; padding: 0 10px; color: #bfbfbf; font-size: 18px; text-shadow: 1px 1px 0px #fff; } .nav li a:hover, .nav .current_page_item a { color: #858484; } ul.nav ul { background: url(images/dropdown-bottom.png) no-repeat bottom; width: 203px; padding: 10px 0 15px 0; } ul.nav ul li { background: url(images/dropdown-middle.png) repeat-y; width: 203px; padding: 0; } ul.nav ul li a { background: url(images/dropdown-arrow.png) no-repeat -15px 0; text-transform: lowercase; font-size: 15px; color: #7f7f7f; background: none; display: block; text-align: left; padding: 6px 0px 6px 30px; background: url(images/menu-bullet.png) no-repeat left 16px; } ul.nav ul li a:hover { background: url(images/dropdown-arrow.png) no-repeat 13px 8px; color: #616060; } span.top-arrow { background:url(images/dropdown-top.png) no-repeat; display:block; height:37px; left:0px; position:absolute; top:-10px; width:203px; } span.dropdown-bottom { background:url(images/dropdown-top-2.png) no-repeat; display:block; height:15px; left:0px; position:absolute; top:-3px; width:203px; } /*------------------------------------------------*/ /*---------------[DEFAULT DROPDOWN SETTINGS]---*/ /*------------------------------------------------*/ .nav ul { position:absolute; top:-999em; background-position: bottom; background-repeat: no-repeat; z-index: 10; } .nav li { float:left; position:relative; } .nav a { display:block; float: left; } .nav li:hover ul, ul.nav li.sfHover ul { left:-64px; top:37px; } .nav li:hover li ul, .nav li.sfHover li ul { top:-999em; } .nav li li:hover ul, ul.nav li li.sfHover ul { left:203px; top:-10px; } .nav li:hover ul, .nav li li:hover ul { top: -999em; } .nav li li { display: block; padding: 0px; float: left; height: auto !important; } .nav li ul { width: 203px; } .nav li li a:link, .nav li li a:visited { display: block; height: auto; float: left; } .nav li:hover { visibility: inherit; /* fixes IE7 'sticky bug' */ } #posts { position: relative; height: 600px; } .next, #next2 { position: absolute; top: 160px; left: 755px; cursor: pointer; border: none; } .previous, #previous2 { position: absolute; top: 160px; left: -50px; cursor: pointer; } .post { position: relative; cursor: pointer; background: url(images/shadow-small.jpg) no-repeat bottom; height: 178px; width: 165px; float: left; margin: 0 22px 10px 0; } .post div { display: block; background: url(images/post-bg-small.png) #fff; padding: 15px 20px 12px 20px; height: 138px; font-style: italic; } .post div div.overflow { height: 128px; display: block; overflow: hidden; padding: 0; margin: 0; background-image: none; } .post div.url { word-wrap: break-word; color: #c6c6c6; } .post div.url div div { background-image: none; padding: 0; margin: 0; color: #3b3b3b; font-family: Georgia; font-size: 12px; font-style: italic; } .post div.url span { color: #3b3b3b; } .post div .photospan { width: 149px; height: 149px; overflow: hidden; position: relative; display: block; margin: -7px 0 0 -12px; } .post div .quote {font-size: 30px; float: left; margin: 5px 5px 0 -3px; color: #c9c8c8; display: block; height: 5px; } .post div h2 { margin: 5px 0 5px 0; padding: 0; font-size: 18px; font-family: Century Gothic, Helvetica, Arial; color: #5e5e5e; font-weight: normal; font-style: normal; } .post .icon { position: absolute; top: 70px; left: -8px; display: none; } .post div span.image { margin: -7px 0 0 -12px; overflow: hidden; display: block; height: 149px; width: 149px; } .video-image { margin: 0px 0px 10px -13px; } .photoset div { display: none; } #posts_big { position: relative;} .big_post { position: absolute; z-index: 5; top: -100px; display: none; padding: 0 40px; width: 461px; background: url(images/post-bg-middle.png) repeat-y; line-height: 18px; } .expander { min-height: 300px; display: block; } .big_post h1 { font-family: Century Gothic, Helvetica, Arial; color: #c9c8c8; font-size: 36px; font-weight: normal; margin: 0; padding: 0;} .post_top { display: block; background-image: url(images/post-top.gif); width: 541px; height: 14px; margin-left: -40px; margin-bottom: 30px; } .post_bottom { display: block; background-image: url(images/post-bg-bottom.gif); width: 541px; height: 20px; margin-left: -40px; margin-top: 20px; } .black { cursor: pointer; background-color: #000; margin: -29px 0 -19px -32px; width: 526px; height: 351px; overflow: hidden; position: relative; display: block; } .large-thumb { max-width: 650px; margin-bottom: 15px; } .small-thumb { float: left; border: 8px solid #eeeeee; margin: 15px 20px 10px 0; } .zoom { position: absolute; left: 262px; top: 160px; display: none; border: none; } .big_image_landscape { width: 526px; height: 351px; overflow: hidden; display: block; } .overlay { border: none; } .big_post .video-wrap, .big_post .photo-set-big { margin: -29px 0 -19px -32px; width: 526px; height: 351px; } .video-wrap-2 embed, .video-wrap-2 object { width: 650px; height: 420px; margin-bottom: 30px; } .big_post object, .big_post embed { width: 526px; height: 351px; } .big_quote { min-height: 300px; display: block; font-size: 20px; color: #a5a5a5; line-height: 30px; padding-left: 50px; background: url(images/quote.gif) no-repeat 0 8px; } .big_quote2 { display: block; font-size: 20px; color: #a5a5a5; line-height: 30px; padding-bottom: 20px; padding-left: 50px; background: url(images/quote.gif) no-repeat 0 8px; } .post_info { overflow: hidden; position: absolute; left: 540px; top: -50px; display: none; padding: 30px 20px 0px 20px; width: 149px; height: 254px; background: url(images/post-info.gif) no-repeat top left; font-size: 14px; color: #646464; text-shadow: 1px 1px 0px #fff; } .close { z-index: 100; position: absolute; cursor: pointer; top: 2px; left: 525px; } .post_info a { font-weight: normal; font-size: 14px; color: #646464; text-shadow: 1px 1px 0px #fff; } .post_info a:hover { color: #3a3a3a; } .post_info .date, .post_info .author, .post_info .categories, .post_info .comments { width: 200px;} .author a { font-family: Century Gothic, Helvetica, Arial; font-size: 24px; color: #a3a3a3; text-shadow: 1px 1px 0px #fff; float: left; margin-bottom: 10px; } .date { margin: 5px 0 0 0; float: left; background: url(images/date.gif) no-repeat top left; padding: 0 0 0 15px; font-style: italic; } .categories { margin: 5px 0 0 0; float: left; background: url(images/category.gif) no-repeat top left; padding: 0 0 0 15px; font-style: italic; } .categories a { clear: both; float: left;} .comments { margin: 5px 0 0 0; float: left; background: url(images/comments.gif) no-repeat top left; padding: 0 0 0 15px; font-style: italic; } .tags { margin: 5px 0 0 0; float: left; background: url(images/tags.gif) no-repeat top left; padding: 0 0 0 15px; font-style: italic; } .readmore { position: absolute; top: 252px; left: 50px; } .readmore span { float: left; height: 25px; background-image: url(images/readmore-left.png); } .readmore a { float: left; background: url(images/readmore-right.gif) no-repeat right; color: #fff; font-family: Century Gothic, Helvetica, Arial; font-size: 13px; text-shadow: 1px 1px 0px #000; padding: 5px 10px 0 20px; } .readmore a:hover { color: #d9d9d9; } .audio-block { height: 40px; margin: 0; } .audio-block p { height: 40px; margin-top: 15px; } .audio-block embed, .audio-block object { height: 40px; width: 460px;} .main_post { position: relative; padding: 0 40px; width: 648px; background: url(images/big-post-middle.gif) repeat-y; line-height: 18px; } .main_post h1 { font-family: Century Gothic, Helvetica, Arial; color: #c9c8c8; font-size: 36px; font-weight: normal; margin: -10px 0 10px 0; padding: 0;} .main_post_top { display: block; background-image: url(images/big-post-top.gif); width: 728px; height: 25px; margin-left: -40px; margin-bottom: 30px; } .main_post_top2 { display: block; background-image: url(images/big-post-top2.gif); width: 728px; height: 25px; margin-left: -40px; margin-bottom: 30px; } .main_post_bottom { display: block; background-image: url(images/big-post-bottom.gif); width: 728px; height: 21px; margin-left: -40px; margin-top: 20px; } .line { margin: 15px 0 25px -34px; } .main_postinfo { font-size: 14px; font-family: Century Gothic, Helvetica, Arial; color: #750000; } .video-info { margin-top: -20px; padding-bottom: 8px; } .thumb_overlay { position: absolute; top: 0; left: 0; border: none; } /*------------------------------------------------*/ /*-------------------[FOOTER]---------------------*/ /*------------------------------------------------*/ #footer { float: right; color: #bfbfbf; padding-bottom: 40px; text-shadow: 1px 1px 0px #fff; font-size: 14px; font-family: Century Gothic, Helvetica, Arial; margin: 15px 60px 0px 0; width: 700px; text-align: right; } #footer a { color: #858484; font-weight: normal; } #footer a:hover { color: #595959; } /*------------------------------------------------*/ /*-----------------[SEARCH BAR]-------------------*/ /*------------------------------------------------*/ #search { float: right; border: none; margin: 20px 7px 0 0; cursor: pointer; } #rss { float: right; border: none; margin: 20px 3px 0 0; cursor: pointer; } #archives { float: right; border: none; margin: 20px 57px 0 0; cursor: pointer; } #search-wrap { position: relative; float: right; margin-right: 57px; width: 45px; } #search-form { width: 141px; height: 35px; background-image: url(images/search-bg.png); position: absolute; left: -170px; top: 7px; display: none; float: right; } #search-form input { width: 115px; margin: 9px 0 0 10px; border: none; background-color: #e3e3e3; font-family: Georgia; font-size: 12px; color: #7f7f7f; text-shadow: 1px 1px 0 #fff; font-style: italic; outline: none; } #ssubmit { display: none; } /*------------------------------------------------*/ /*-------------------[COMMENTS]-------------------*/ /*------------------------------------------------*/ h3#comments { font-family: Century Gothic, Helvetica, Arial; color: #c9c8c8; font-size: 36px; font-weight: normal; margin: 0 0 20px 0; padding: 0; } #replycomments { margin-bottom: 30px; font-family: Century Gothic, Helvetica, Arial; color: #c9c8c8; font-size: 36px; font-weight: normal; margin: 0 0 20px 0; padding: 0; } div.authordata { width: 100px; } div.avatar { float: left; position: relative; margin: 21px 15px 0 0; border: 1px solid #d1d1d1; } div.avatar img.avatar { border: 4px solid #f4f4f4; } div.avatar span.avatar-overlay { background: url(images/overlay.png) no-repeat; display: block; top: 4px; left: 4px; position: absolute; width: 57px; height: 57px; } .comment-wrap { float: right; margin-top: 20px; } .reply-container { display:block; float:right; margin-bottom:15px; } .reply-container a { color: #000000; text-shadow: none; font-weight: bold; background-color: #e9e9e9; -webkit-border-radius: 8px; -moz-border-radius: 8px; display: block; font-size: 11px; color: #7b7b7b; text-shadow: 1px 1px 0px #fff; padding: 3px 10px; border-bottom: 1px solid #cdcdcd; margin-top: 10px; } .reply-container a:hover { text-decoration: none; color: #383838; } li.depth-1 .comment-wrap { width: 565px; } li.depth-2 .comment-wrap { width: 495px; } li.depth-3 .comment-wrap { width: 425px; } li.depth-4 .comment-wrap { width: 355px; } ol.commentlist { list-style:none outside none; padding-top:8px; } ol.commentlist ul { list-style:none outside none; } .commentlist li.comment li { background: none; padding: 0px; } .commentlist li.comment ul { margin: 8px 0px 8px 70px; } #respond { padding-top: 15px; } #commentform textarea#comment { width: 88%; } #commentform input[type=text] { width: 40%; } li.comment #respond textarea { width: 88% !important; } li.comment #respond input[type=text] { width: 50% !important; } #respond h3#comments { background: none; margin: 0px; padding: 0px; } .comment-author { color: #c7c0aa; font-size: 18px; } .comment-author .comment-meta, .comment-author .comment-meta a { color: #750000; font-size: 14px; font-family: Century Gothic, Arial, sans-serif; } span.fn, span.fn a { color: #2a2a2a; font-size: 24px;} .comment-content { padding: 5px 0 0 0; } .comment_line { margin-left: -35px; } .children li .comment_line { margin-left: -105px; } .children li ul li .comment_line { margin-left: -175px; } .children li ul li ul li .comment_line { margin-left: -245px; }
-
08-03-2011, 14:16 #4
- Berichten
- 1.263
- Lid sinds
- 16 Jaar
Re: [WP] Homepage normaal krijgen.
Hmm kan er zo vrij weinig mee, in ieder geval zul je het ergens anders moeten zoeken, een file ergens in de map /includes/ denk ik.
-
08-03-2011, 14:19 #5
- Berichten
- 369
- Lid sinds
- 18 Jaar
Re: [WP] Homepage normaal krijgen.
In de index.php linkt hij wel door naar entry2.php
Code:<?php $postType = 'text'; if('note' == $post->post_type) $postType = 'text'; if('video' == $post->post_type) $postType = 'video'; if('quote' == $post->post_type) $postType = 'quote'; if('photo' == $post->post_type) $postType = 'photo'; if('customlink' == $post->post_type) $postType = 'link'; if('audio' == $post->post_type) $postType = 'audio'; ?> <?php $taxonomyName = 'custom-tax'; if ($postType == 'video') $taxonomyName = 'custom-tax2'; if ($postType == 'quote') $taxonomyName = 'custom-tax3'; if ($postType == 'photo') $taxonomyName = 'custom-tax4'; if ($postType == 'customlink') $taxonomyName = 'custom-tax5'; if ($postType == 'audio') $taxonomyName = 'custom-tax6'; ?> <?php $custom = get_post_custom($post->ID); $link = ''; ?> <?php if ($postType == 'link') $link = isset($custom["customlink"][0]) ? $custom["customlink"][0] : ''; if ($link == '') $link = get_permalink(); ?> <?php global $default_colorscheme,$shortname; $colorSchemePath = ''; $colorScheme = get_option($shortname . '_color_scheme'); if ($colorScheme <> $default_colorscheme) $colorSchemePath = strtolower($colorScheme) . '/'; ?> <div class="big_post" id="post_<?php echo $i; ?>"> <?php if ($postType == 'text') { ?> <?php $thumb = ''; $width = 200; $height = 200; $classtext = 'small-thumb'; $titletext = get_the_title(); $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,true,'thumb'); $thumb = $thumbnail["thumb"]; ; ?> <img class="next" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>arrow.gif" alt="next page" /> <img class="previous" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>previous.gif" alt="next page" /> <span class="post_top"></span> <div class="post_info"> <span class="author"><?php the_author_posts_link(); ?></span> <span class="date"><?php the_time('F j, Y'); ?></span> <span class="categories"><?php echo get_the_term_list( $post->ID, $taxonomyName, '', ', ', ''); ?></span> <span class="comments"><?php comments_popup_link(__('0 comments','DailyNotes'), __('1 comment','DailyNotes'), '% '.__('comments','DailyNotes')); ?></span> <span class="readmore"> <span><a href="<?php the_permalink(); ?>"><?php _e('full post »','DailyNotes'); ?></a></span> </span> </div> <img class="close" src="<?php bloginfo('stylesheet_directory'); ?>/images/close.png" alt="close" /> <h1><?php the_title(); ?></h1> <a href="<?php echo $thumbnail["fullpath"]; ?>" class="lightbox"><?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?></a> <?php the_content(); ?> <span class="post_bottom"></span> <?php }; ?> <?php if ($postType == 'quote') { ?> <img class="next" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>arrow.gif" alt="next page" /> <img class="previous" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>previous.gif" alt="next page" /> <span class="post_top"></span> <div class="post_info"> <span class="author"><?php the_author_posts_link(); ?></span> <span class="date"><?php the_time('F j, Y'); ?></span> <span class="categories"><?php echo get_the_term_list( $post->ID, $taxonomyName, '', ', ', ''); ?></span> <span class="comments"><?php comments_popup_link(__('0 comments','DailyNotes'), __('1 comment','DailyNotes'), '% '.__('comments','DailyNotes')); ?></span> <span class="readmore"> <span><a href="<?php the_permalink(); ?>"><?php _e('full post »','DailyNotes'); ?></a></span> </span> </div> <img class="close" src="<?php bloginfo('stylesheet_directory'); ?>/images/close.png" alt="close" /> <span class="big_quote"><?php $quote = isset($custom["quote"][0]) ? $custom["quote"][0] : ''; echo $quote; ?>”</span> <span class="post_bottom"></span> <?php }; ?> <?php if ($postType == 'video') { ?> <img class="next" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>arrow.gif" alt="next page" /> <img class="previous" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>previous.gif" alt="next page" /> <span class="post_top"></span> <div class="post_info"> <span class="author"><?php the_author_posts_link(); ?></span> <span class="date"><?php the_time('F j, Y'); ?></span> <span class="categories"><?php echo get_the_term_list( $post->ID, $taxonomyName, '', ', ', ''); ?></span> <span class="comments"><?php comments_popup_link(__('0 comments','DailyNotes'), __('1 comment','DailyNotes'), '% '.__('comments','DailyNotes')); ?></span> <span class="readmore"> <span><a href="<?php the_permalink(); ?>"><?php _e('full post »','DailyNotes'); ?></a></span> </span> </div> <img class="close" src="<?php bloginfo('stylesheet_directory'); ?>/images/close.png" alt="close" /> <div class="video-wrap"> <?php $video = isset($custom["video"][0]) ? $custom["video"][0] : ''; $video_width = isset($custom["video_width"][0]) ? $custom["video_width"][0] : '526'; $video_height = isset($custom["video_height"][0]) ? $custom["video_height"][0] : '351'; ?> <?php $video = preg_replace("/height=\"[0-9]*\"/", "height=$video_height", $video); $video = preg_replace("/width=\"[0-9]*\"/", "width=$video_width", $video); echo $video; ?> </div> <span class="post_bottom"></span> <?php }; ?> <?php if ($postType == 'audio') { ?> <?php $audio = isset($custom["audio"][0]) ? $custom["audio"][0] : ''; ?> <img class="next" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>arrow.gif" alt="next page" /> <img class="previous" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>previous.gif" alt="next page" /> <span class="post_top"></span> <div class="post_info"> <span class="author"><?php the_author_posts_link(); ?></span> <span class="date"><?php the_time('F j, Y'); ?></span> <span class="categories"><?php echo get_the_term_list( $post->ID, $taxonomyName, '', ', ', ''); ?></span> <span class="comments"><?php comments_popup_link(__('0 comments','DailyNotes'), __('1 comment','DailyNotes'), '% '.__('comments','DailyNotes')); ?></span> <span class="readmore"> <span><a href="<?php the_permalink(); ?>"><?php _e('full post »','DailyNotes'); ?></a></span> </span> </div> <img class="close" src="<?php bloginfo('stylesheet_directory'); ?>/images/close.png" alt="close" /> <h1><?php the_title(); ?></h1> <div class="audio-block"> <?php $postID = $post->ID; ?> <p id="audioplayer_<?php echo($postID); ?>">Mp3 file</p> <script type="text/javascript"> AudioPlayer.embed("audioplayer_<?php echo $postID; ?>", {soundFile: "<?php echo $audio; ?>"}); </script> </div> <br class="clear" /> <?php the_content(); ?> <span class="post_bottom"></span> <?php }; ?> <?php if ($postType == 'photo') { ?> <?php $thumb = ''; $width = 526; $height = 351; $classtext = 'thumb'; $titletext = get_the_title(); $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,true,'thumb'); $thumb = $thumbnail["thumb"]; ; ?> <img class="next" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>arrow.gif" alt="next page" /> <img class="previous" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>previous.gif" alt="next page" /> <span class="post_top"></span> <div class="post_info"> <span class="author"><?php the_author_posts_link(); ?></span> <span class="date"><?php the_time('F j, Y'); ?></span> <span class="categories"><?php echo get_the_term_list( $post->ID, $taxonomyName, '', ', ', ''); ?></span> <span class="comments"><?php comments_popup_link(__('0 comments','DailyNotes'), __('1 comment','DailyNotes'), '% '.__('comments','DailyNotes')); ?></span> <span class="readmore"> <span><a href="<?php the_permalink(); ?>"><?php _e('full post »','DailyNotes'); ?></a></span> </span> </div> <img class="close" src="<?php bloginfo('stylesheet_directory'); ?>/images/close.png" alt="close" /> <div class="black"> <a class="lightbox" href="<?php echo $thumbnail["fullpath"]; ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/shadow-overlay.png" alt="thumbnail" style="position: absolute; top: 0; left: 0; border: none;" /></a> <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?> <img src="<?php bloginfo('stylesheet_directory'); ?>/images/zoom.png" alt="zoom" class="zoom" /> </div> <span class="post_bottom"></span> <?php }; ?> <?php if ($postType == 'link') { ?> <img class="next" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>arrow.gif" alt="next page" /> <img class="previous" src="<?php bloginfo('stylesheet_directory'); ?>/images/<?php if ( $colorScheme <> $default_colorscheme) echo($colorSchemePath.'/'); ?>previous.gif" alt="next page" /> <span class="post_top"></span> <div class="post_info"> <span class="author"><?php the_author_posts_link(); ?></span> <span class="date"><?php the_time('F j, Y'); ?></span> <span class="categories"><?php echo get_the_term_list( $post->ID, $taxonomyName, '', ', ', ''); ?></span> <span class="comments"><?php comments_popup_link(__('0 comments','DailyNotes'), __('1 comment','DailyNotes'), '% '.__('comments','DailyNotes')); ?></span> <span class="readmore"> <span><a href="<?php echo $link ?>"><?php _e('visit url »','DailyNotes'); ?></a></span> </span> </div> <img class="close" src="<?php bloginfo('stylesheet_directory'); ?>/images/close.png" alt="close" /> <h1><?php the_title(); ?></h1> <?php the_content(); ?> <span class="post_bottom"></span> <?php }; ?> </div>
Laatst aangepast door quincy degraaf : 08-03-2011 om 14:38
Plaats een
- + Advertentie
- + Onderwerp
Marktplaats
Webmasterforum
- Websites algemeen
- Sitechecks
- Marketing
- Domeinen algemeen
- Waardebepaling
- CMS
- Wordpress
- Joomla
- Magento
- Google algemeen
- SEO
- Analytics
- Adsense
- Adwords
- HTML / XHTML
- CSS
- Programmeren
- PHP
- Javascript
- JQuery
- MySQL
- Ondernemen algemeen
- Belastingen
- Juridisch
- Grafisch ontwerp
- Hosting Algemeen
- Hardware Info
- Offtopic