Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <div id="main-content">
- <div id="content1">
- <div id="slides_three">
- <div class="slides_container">
- <?php query_posts('showposts=5&cat='.of_get_option('example_select_categories').'&offset=0'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="slide slides_threewrap">
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('secslider'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt=" " style="width:302px; height:238px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = ''; $m_image_def = get_template_directory_uri() . '/img/noimg.png';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 302 . '&h=' . 238 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?>
- <h2> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php the_content_limit('300'); ?>
- <div class="smallgal_meta">On <?php the_time('M j, Y') ?> <b>//</b> in <?php the_category(', ') ?> <b>//</b> <?php comments_popup_link(__('# 0'), __('# 1'), __('# %')); ?></div>
- <div class="cb"></div>
- </div> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- </div>
- </div>
- <div id="adblock"> <div class="themidad"> <?php if(get_option('ad3ok')!="yes"):?><?php endif?>
- <?php if(get_option('ad3ok')!="no"):?> <?php echo get_option('ad3'); ?> <?php endif?>
- </div> </div>
- <div class="cb"></div>
- </div>
- <div id="content2"> <div id="content2block">
- <?php
- $b1_cat = of_get_option('block2cat');
- ?>
- <?php /* Category credentials */
- $category_id = $b1_cat;
- $category_link = get_category_link( $category_id );
- $category_name = get_cat_name($category_id);
- ?>
- <?php query_posts('showposts=1&cat='. $category_id); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div id="content2wraph3">
- <div id="content2wraph3_l">
- <a href="<?php echo ($category_link); ?>" title="<?php echo $category[0]->category_nicename; ?>">
- <?php echo of_get_option('block2txt', 'Category Name'); ?></a></div>
- <div id="content2wraph3_r">
- <a href="<?php echo ($category_link); ?>" title="<?php echo $category[0]->category_nicename; ?>"><?php _e("More", "nt"); ?> <?php echo of_get_option('block2txt', 'Category Name'); ?> ></a>
- </div>
- <div class="cb"></div>
- </div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <div id="content2block_2"> <?php query_posts('showposts=6&cat='.of_get_option('block2cat').'&offset=0'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="content2wrap">
- <h2>
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('content2'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:150px; height:75px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 150 . '&h=' . 75 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div class="cb"></div>
- </div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?> </div>
- </div> </div>
- <div class="themidad"> <?php if(get_option('ad4ok')!="yes"):?><?php endif?>
- <?php if(get_option('ad4ok')!="no"):?><center style=" margin-bottom: 11px;"><?php echo get_option('ad4'); ?></center><?php endif?>
- </div>
- <div id="content">
- <div id="smblock1">
- <div class="smblock_block">
- <?php
- $b1_cat = of_get_option('block3cat');
- ?>
- <?php /* Category credentials */
- $category_id = $b1_cat;
- $category_link = get_category_link( $category_id );
- $category_name = get_cat_name($category_id);
- ?>
- <?php query_posts('showposts=1&cat='. $category_id); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_h3">
- <a href="<?php echo ($category_link); ?>" title="<?php echo $category[0]->category_nicename; ?>">
- <b><?php echo of_get_option('block3txt', 'Category Name'); ?></b> <?php _e("NEWS", "nt"); ?></a></div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <div id="smblock1_block_l">
- <?php query_posts('showposts=1&cat='.of_get_option('block3cat').'&offset=0'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_wrap">
- <h2>
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('smblock1_block_l'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:200px; height:150px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 200 . '&h=' . 150 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,18); ?>..
- <div class="cb"></div>
- </div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- </div>
- <div id="smblock1_block_r">
- <?php query_posts('showposts=2&cat='.of_get_option('block3cat').'&offset=1'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_wrap_r1">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('smblock1_wrap_r1'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:81px; height:61px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 81 . '&h=' . 61 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?>
- <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,32); ?>...
- <div class="cb"></div>
- </div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <?php query_posts('showposts=2&cat='.of_get_option('block3cat').'&offset=3'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_wrap_r2">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- </div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- </div>
- <div class="cb"></div>
- </div>
- </div>
- <div id="smblock2">
- <div class="smblock_block">
- <?php
- $b1_cat = of_get_option('block4cat');
- ?>
- <?php /* Category credentials */
- $category_id = $b1_cat;
- $category_link = get_category_link( $category_id );
- $category_name = get_cat_name($category_id);
- ?>
- <?php query_posts('showposts=1&cat='. $category_id); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_h3">
- <a href="<?php echo ($category_link); ?>" title="<?php echo $category[0]->category_nicename; ?>">
- <b><?php echo of_get_option('block4txt', 'Category Name'); ?></b> <?php _e("NEWS", "nt"); ?></a></div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <div id="smblock2_block_l">
- <?php query_posts('showposts=1&cat='.of_get_option('block4cat').'&offset=0'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock2_wrap">
- <h2>
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('smblock2_block_l'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:328px; height:181px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 328 . '&h=' . 181 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,18); ?>..
- <div class="cb"></div>
- </div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- </div>
- <div id="smblock2_block_r">
- <?php query_posts('showposts=2&cat='.of_get_option('block4cat').'&offset=1'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock2_wrap_r1">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('smblock1_wrap_r1'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:81px; height:61px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 81 . '&h=' . 61 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?>
- <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,25); ?>...
- <div class="cb"></div>
- </div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- </div>
- <div class="cb"></div>
- </div>
- </div>
- <div id="smblock3">
- <div class="smblock_block">
- <?php
- $b1_cat = of_get_option('block5cat');
- ?>
- <?php /* Category credentials */
- $category_id = $b1_cat;
- $category_link = get_category_link( $category_id );
- $category_name = get_cat_name($category_id);
- ?>
- <?php query_posts('showposts=1&cat='. $category_id); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_h3"> <a href="<?php echo ($category_link); ?>" title="<?php echo $category[0]->category_nicename; ?>">
- <b><?php echo of_get_option('block5txt', 'Category Name'); ?></b> <?php _e("NEWS", "nt"); ?></a></div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <div id="smblock3_block_l">
- <?php query_posts('showposts=1&cat='.of_get_option('block5cat').'&offset=0'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock3_wrap">
- <h2> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('smblock3_block_l'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:284px; height:190px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 284 . '&h=' . 190 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?> <div class="cb"></div> </div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?> </div>
- <div id="smblock3_block_r"><ul>
- <?php query_posts('showposts=8&cat='.of_get_option('block5cat').'&offset=1'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <li class="smblock3_wrap_r1"><h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2></li>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- </ul> </div> <div class="cb"></div> </div> </div>
- <div id="smblock4">
- <div class="smblock_block">
- <?php
- $b1_cat = of_get_option('block6cat');
- ?>
- <?php /* Category credentials */
- $category_id = $b1_cat;
- $category_link = get_category_link( $category_id );
- $category_name = get_cat_name($category_id);
- ?>
- <?php query_posts('showposts=1&cat='. $category_id); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_h3"> <a href="<?php echo ($category_link); ?>" title="<?php echo $category[0]->category_nicename; ?>">
- <b><?php echo of_get_option('block6txt', 'Category Name'); ?></b> <?php _e("NEWS", "nt"); ?></a></div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <div id="smblock4_block_r"> <ul>
- <?php query_posts('showposts=2&cat='.of_get_option('block6cat').'&offset=0'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <li class="smblock4_wrap_r1">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('smblock4_block_l'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:99px; height:66px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 99 . '&h=' . 66 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?>
- <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,23); ?>...
- <div class="cb"></div>
- </li>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- </ul> </div>
- <div class="cb"></div> </div> </div>
- <div id="smblock5">
- <div class="smblock_block">
- <?php
- $b1_cat = of_get_option('block7cat');
- ?>
- <?php /* Category credentials */
- $category_id = $b1_cat;
- $category_link = get_category_link( $category_id );
- $category_name = get_cat_name($category_id);
- ?>
- <?php query_posts('showposts=1&cat='. $category_id); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_h3"> <a href="<?php echo ($category_link); ?>" title="<?php echo $category[0]->category_nicename; ?>">
- <b><?php echo of_get_option('block7txt', 'Category Name'); ?></b> <?php _e("NEWS", "nt"); ?></a></div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <div class="smblock5_left">
- <div id="smblock5_block_r"> <ul>
- <?php query_posts('showposts=3&cat='.of_get_option('block7cat').'&offset=0'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <li class="smblock5_wrap_r1">
- <div class="smblock5_wrap_r1_l">
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('smblock5_block_l'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:129px; height:67px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 129 . '&h=' . 67 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?> </div> <div class="smblock5_wrap_r1_r">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,21); ?>...</div>
- <div class="cb"></div>
- </li> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- </ul> </div>
- </div>
- <div class="smblock5_right">
- <?php query_posts('showposts=1&cat='.of_get_option('block7cat').'&offset=3'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock5_right_in">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,35); ?>...
- </div> <?php endwhile; ?> <?php else : ?> <?php endif; ?> </div> <div class="cb"></div> </div> </div>
- <div id="smblock6">
- <div class="smblock_block">
- <?php
- $b1_cat = of_get_option('block8cat');
- ?>
- <?php /* Category credentials */
- $category_id = $b1_cat;
- $category_link = get_category_link( $category_id );
- $category_name = get_cat_name($category_id);
- ?>
- <?php query_posts('showposts=1&cat='. $category_id); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_h3"> <a href="<?php echo ($category_link); ?>" title="<?php echo $category[0]->category_nicename; ?>">
- <b><?php echo of_get_option('block8txt', 'Category Name'); ?></b> <?php _e("NEWS", "nt"); ?></a></div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <div id="smblock6_block_l">
- <?php query_posts('showposts=4&cat='.of_get_option('block8cat').'&offset=0'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock6_wrap">
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('smblock6_block_l'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:138px; height:104px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 138 . '&h=' . 104 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?> <h2> <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <div class="cb"></div> </div> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- </div> <div class="cb"></div> </div> </div>
- <div id="smblock7">
- <div class="smblock_block">
- <?php
- $b1_cat = of_get_option('block9cat');
- ?>
- <?php /* Category credentials */
- $category_id = $b1_cat;
- $category_link = get_category_link( $category_id );
- $category_name = get_cat_name($category_id);
- ?>
- <?php query_posts('showposts=1&cat='. $category_id); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock1_h3"><a href="<?php echo ($category_link); ?>" title="<?php echo $category[0]->category_nicename; ?>">
- <b><?php echo of_get_option('block9txt', 'Category Name'); ?></b> <?php _e("NEWS", "nt"); ?></a></div>
- <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <div id="smblock7_block_r">
- <?php query_posts('showposts=4&cat='.of_get_option('block9cat').'&offset=0'); if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="smblock7_wrap_r1">
- <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
- <?php if(get_option('thumbok')!="no"):?> <?php if( has_post_thumbnail() ) { ?>
- <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('smblock1_wrap_r1'); ?></a>
- <?php } else { ?>
- <a href="<?php the_permalink(); ?>"> <img src="<?php bloginfo('template_directory'); ?>/img/noimg.png" alt="" style="width:81px; height:61px;" /> </a><?php } ?>
- <?php endif?>
- <?php if(get_option('thumbok')!="yes"):?>
- <?php $m_scrp = get_template_directory_uri() . '/includes/timthumb.php?';
- $m_image = '';
- $customfields = get_post_custom(); if (empty($customfields['image'][0])) {
- $m_image = m_theme_capture_first_image(); } else { $m_image = $customfields['image'][0]; } if (empty($m_image)) { $imgpath = $m_image_def; } else {
- $imgpath = $m_scrp . 'src=' . $m_image . '&w=' . 81 . '&h=' . 61 . '&zc=1'; } ?>
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <img src="<?php echo $imgpath; ?>" alt="" /> </a>
- <?php endif?>
- <?php $excerpt = get_the_excerpt(); echo string_limit_words($excerpt,15); ?>..
- <div class="cb"></div>
- </div> <?php endwhile; ?> <?php else : ?> <?php endif; ?>
- <div class="clr"></div> </div> <div class="cb"></div> </div> </div>
- </div>
- <?php include(TEMPLATEPATH . '/sidebar.php'); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement