<a href="<?php echo wpthemes_options('ad468_url'); ?> "><img src="<?php echo wpthemes_options('ad468_location'); ?> " /></a> <?php } ?> </div> </div> <div> <div id="rss"><a href="<?php bloginfo('rss2_url'); ?> "><img src="<?php bloginfo('template_url'); ?> /images/spacer.gif" alt="RSS" /></a></div> <div id="twitter"><a href="http://twitter.com/<?php echo wpthemes_options('twitter_account'); ?> "><img src="<?php bloginfo('template_url'); ?> /images/spacer.gif" alt="twitter" /></a></div> </div> </div> <!-- end header --> <div id="content-wrap" class="span-24">
<?php } ?> <?php if (wpthemes_options('home_cat3') != '' && wpthemes_options('home_cat3_num') > 0 && wpthemes_options('home_cat3') != 'none') { $cat = get_category(wpthemes_options('home_cat3')); $recent = new WP_Query("cat=" . wpthemes_options('home_cat3') . "&showposts=" . wpthemes_options('home_cat3_num')); ?> <div class="category clearfix"> <div class="home-title"><a href="<?php echo get_category_link(wpthemes_options('home_cat3')); ?> " rel="bookmark"><?php echo wpthemes_options('home_cat3_text'); ?> </a></div> <?php if (have_posts()) { ?> <?php while ($recent->have_posts()) { $recent->the_post(); ?> <div class="post span-6"> <div class="entry clearfix"> <?php if (version_compare($wp_version, '2.9', '>=')) { ?> <?php
Copyright © <?php echo date('Y'); ?> <a href="<?php bloginfo('url'); ?> "><?php bloginfo('name'); ?> </a>. All rights reserved. <div class="credit_t">Design: <a href="http://www.wpthemepremium.com">Wpthemepremium.com</a> | <?php /* This theme is powered by free-premium-wordpress-themes.com, please do NOT remove the comment or anything below. */ wp_theme_powered_by(); /* This theme is powered by free-premium-wordpress-themes.com, please do NOT remove the comment or anything below. */ ?> </div> </div> <?php if (wpthemes_options('footer_code') != '') { echo wpthemes_options("footer_code") . "\n"; } ?> <?php wp_footer(); ?> </div> </div> </div> </div> </body> </html>
} if (is_home()) { include TEMPLATEPATH . '/homepage_cat.php'; } ?> <div id="home_posts"> <div class="article-title">Articles</div> <div class="content-box-index clearfix"> <?php if (wpthemes_options('featured_articles_enable') != '' && wpthemes_options('featured_articles_num') > 0) { ?> <?php $paged = get_query_var('paged'); ?> <?php query_posts("cat=" . wpthemes_options('featured_articles') . "&paged=" . $paged . "&showposts=" . wpthemes_options('featured_articles_num')); ?> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <?php if (version_compare($wp_version, '2.7', '>=')) { ?> <div id="post-<?php the_ID(); ?> " <?php
<?php } ?> </ul> <?php if (wpthemes_options('sidebar_video_box') != '') { ?> <div class="sidebarvideo"> <ul> <li><h2 style="margin-bottom: 10px;">Featured Video</h2> <object width="90%"><param name="movie" value="http://www.youtube.com/v/<?php echo wpthemes_options('sidebar_featured_video'); ?> &hl=en&fs=1&rel=0&border=1"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/<?php echo wpthemes_options('sidebar_featured_video'); ?> &hl=en&fs=1&rel=0&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="90%"></embed> </object> </li> </ul> </div> <?php } ?> </div> <!-- end sidebar -->
echo 'style="display:none"'; } ?> /> </div> <?php $num++; } ?> <?php } else { global $post, $wp_version, $num_sum, $gallery_data; $num = 1; $num_sum = wpthemes_options('featured_num'); $gallery_category = wpthemes_options('top_gallery_category'); $top_gallery_posts = query_posts("showposts={$num_sum}&cat={$gallery_category}"); foreach ($top_gallery_posts as $post) { if (has_post_thumbnail($thumbnail->ID)) { setup_postdata($post); if (version_compare($wp_version, '2.9', '>=')) { $gallery_img = get_the_post_thumbnail($post->ID, 'large', array('class' => 'full')); $gallery_thumb_img = get_the_post_thumbnail($post->ID, 'thumbnail'); $gallery_img_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large'); $gallery_img_thumb_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'thumbnail'); } else { $gallery_img_src = get_post_meta($post->ID, 'featured', true); $gallery_img_thumb_src = get_post_meta($post->ID, 'featured', true); $gallery_img = '<img src="$gallery_img_src" class="full" />'; $gallery_thumb_img = '<img src="$gallery_img_src" class="post_thumbnail" />'; }
function form($instance) { $title = esc_attr($instance['title']); $limit = esc_attr($instance['limit']); $username = esc_attr($instance['username']); ?> <p> <label for="<?php echo $this->get_field_id('title'); ?> "><?php _e('Title (optional):', 'WPThemepremium'); ?> </label> <input type="text" name="<?php echo $this->get_field_name('title'); ?> " value="<?php if ($title == '') { echo wpthemes_options('twitter_text'); } else { echo $title; } ?> " class="widefat" id="<?php echo $this->get_field_id('title'); ?> " /></p><p> <label for="<?php echo $this->get_field_id('username'); ?> "><?php _e('Username:'******'WPThemepremium'); ?> </label> <input type="text" name="<?php echo $this->get_field_name('username'); ?> " value="<?php if ($username == '') { echo wpthemes_options('twitter_account'); } else { echo $username; } ?> " class="widefat" id="<?php echo $this->get_field_id('username'); ?> " /></p><p> <label for="<?php echo $this->get_field_id('limit'); ?> "><?php _e('Limit:', 'WPThemepremium'); ?> </label> <input type="text" name="<?php echo $this->get_field_name('limit'); ?> " value="<?php echo $limit; ?> " class="" size="3" id="<?php echo $this->get_field_id('limit'); ?> " /> </p> <?php }
function custom_link_menu($args) { global $theme_options_prefix; if (wpthemes_options($args) != '') { $exclude_links = implode(",", get_option($theme_options_prefix . '_' . $args)); } $link_menu = wp_list_bookmarks("title_li=&categorize=0&exclude=" . $exclude_links . "&echo=0"); echo $link_menu; }