Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

AUTOFOCUS PRO - Move Gallery Slider WordPress

  • SOLVED

Hi,

I am using autofocus pro and would like to move the gallery slider so it is on the right side of the post text with the meta below the post on the left and the title above the post text on the left.

Answers (2)

2011-04-10

Duncan O'Neill answers:

All you need are some css changes in the autofocuspro/style.css file.

Below are the additions you need to make to your style.css file. Note that this assumes a grid layout. The css you need for the default layout will be slightly different.

Note also that the widths are guidelines, and assume a standard content width of 800px. Fiddle with them as necessary.


/* dbo additions for wpquestions.com qu # 2020 */
.single #gallery-slider-container.anythingSlider {width:500px;float:right}
.single.grid-layout #container #content .entry-title {width:200px;clear:none;float:left;}
.single.grid-layout #container #content .entry-content {clear:none;width:200px;float:left;clear:left;margin-right:20px;}
.single.grid-layout #container #content .entry-meta {float:left;clear:left;margin-left:0;width:200px;}


queenb comments:

Thanks Duncan!! It worked perfectly.

2011-04-09

AdamGold answers:

Please post the code of single.php here and I will do that for you.


queenb comments:

Aotufocuspro is, i think, a child theme of thematic so there is a single.php in the thematic folder and a thematic-functions.php in autofocuspro/extensions/

single.php



<?php

// calling the header.php
get_header();

// action hook for placing content above #container
thematic_abovecontainer();

?>

<div id="container">

<?php thematic_abovecontent(); ?>

<div id="content">

<?php

the_post();

// create the navigation above the content
thematic_navigation_above();

// calling the widget area 'single-top'
get_sidebar('single-top');

// action hook creating the single post
thematic_singlepost();

// calling the widget area 'single-insert'
get_sidebar('single-insert');

// create the navigation below the content
thematic_navigation_below();

// calling the comments template
thematic_comments_template();

// calling the widget area 'single-bottom'
get_sidebar('single-bottom');

?>

</div><!-- #content -->

<?php thematic_belowcontent(); ?>

</div><!-- #container -->

<?php

// action hook for placing content below #container
thematic_belowcontainer();

// calling the standard sidebar
thematic_sidebar();

// calling footer.php
get_footer();

?>


thematic-functions.php

<?php

// Add a Home link to your menu
// updated for Thematic 0.9.7.7
function childtheme_menu_args($args) {
$args = array(
'show_home' => 'Home',
'sort_column' => 'menu_order',
'menu_class' => 'menu',
'echo' => false
);
return $args;
}
add_filter('wp_page_menu_args','childtheme_menu_args', 20);

// Create Arrow Navigation
// - Remove default navigation
function remove_thematic_actions() {
remove_action('thematic_navigation_above', 'thematic_nav_above', 2);
remove_action('thematic_navigation_below', 'thematic_nav_below', 2);
}
add_action('init','remove_thematic_actions');

// - Add arrow navigation
function autofocus_nav_above() {

// Grab the ‘Blog’ category ID for exclusion from Next/Prev
$af_blog_cat = get_option('af_blog_cat');
$af_blog_catid = get_cat_ID($af_blog_cat);

if (is_single() && in_category($af_blog_catid)) { ?>
<div id="nav-above" class="navigation">
<div class="nav-previous"><?php previous_post_link('%link', __('<span class="meta-nav">&larr;</span>', 'thematic'), 1) ?></div>
<div class="nav-next"><?php next_post_link('%link', __('<span class="meta-nav">&rarr;</span>', 'thematic'), 1) ?></div>
</div>

<?php } elseif (is_single()) { ?>
<div id="nav-above" class="navigation">
<div class="nav-previous"><?php previous_post_link('%link', __('<span class="meta-nav">&larr;</span>', 'thematic'), 0, $af_blog_catid) ?></div>
<div class="nav-next"><?php next_post_link('%link', __('<span class="meta-nav">&rarr;</span>', 'thematic'), 0, $af_blog_catid) ?></div>
</div>

<?php } else { ?>
<div id="nav-above" class="navigation">
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&larr;</span>', 'thematic')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('<span class="meta-nav">&rarr;</span>', 'thematic')) ?></div>
</div>

<?php } }
add_action('thematic_navigation_above', 'autofocus_nav_above', 2);

// Add arrows to the Post excerpt
function autofocus_readmore($text) {
// No arrows on the Home page excerpts
if (is_home() || is_feed()) {
return str_replace('[...]', ' &hellip;', $text);
} else {
return str_replace('[...]', ' &hellip; <a href="'.get_permalink().'" class="more-link">' . __('Read More ', 'thematic') . '<span class="excerpt-arrow">&rarr;</span></a>', $text);
} }
add_filter('get_the_excerpt', 'autofocus_readmore');

// Add New Excerpt Word Count
function autofocus_excerpt_length($length) {
// Change the returned values to add more words to exceprts.
if (is_archive() || is_search()) {
return 45;
} else {
return 25;
} }
add_filter('excerpt_length', 'autofocus_excerpt_length');

// Change search input size
function af_search_form_size($search_form_length) {
return 25;
}
add_filter('thematic_search_form_length', 'af_search_form_size');

// Filter the default gallery display to include rel=fancybox-ID
// - Source: http://wordpress.org/support/topic/add-relxyz-to-gallery-link
function add_fancy_box_rel($content) {
global $post;

if ( ( get_option('af_fancybox') == 'true') ) {
$pattern = "/<a(.*?)href=('|\")([^>]*).(bmp|gif|jpeg|jpg|png)('|\")(.*?)>(.*?)<\/a>/i";
$replacement = '<a$1href=$2$3.$4$5 rel="fancybox-'.$post->ID.'"$6>$7</a>';
$content = preg_replace($pattern, $replacement, $content);
}

return $content;
}
add_filter('the_content', 'add_fancy_box_rel', 12);
add_filter('get_comment_text', 'add_fancy_box_rel');

// Show excerpts on Home pages and Archives
function autofocus_content($content) {
global $content;

if ( is_home() & ( get_option('af_title_date') == 'date' ) ) {
$content = 'none';
} elseif ( is_archive() || is_home() || is_search() ) {
$content = 'excerpt';
} else {
$content = 'full';
}
return $content;
}
add_filter('thematic_content', 'autofocus_content');

// Add <p> Tags to Excerpts
// - http://themeshaper.com/forums/topic/missing-paragraph-tags-in-the_excerpt
// - Thanks Em hr!
function autofocus_excerpt_autop() {
global $content;

if ( strtolower($content) == 'full' ) {
$post = get_the_content(more_text());
$post = apply_filters('the_content', $post);
$post = str_replace(']]>', ']]>', $post);

} elseif ( strtolower($content) == 'excerpt') {
$post = get_the_excerpt();

// Add in the <p> tags
$post = wpautop($post);

} elseif ( strtolower($content) == 'none') {

} else {
$post = get_the_content(more_text());
$post = apply_filters('the_content', $post);
$post = str_replace(']]>', ']]>', $post);
}
return $post;
}
add_filter('thematic_post','autofocus_excerpt_autop');

// Add the Featured/Sticky Post section
function af_sticky_area() {
global $post;

// Grab the ‘Blog’ category ID
$af_blog_cat = get_option('af_blog_cat');
$af_blog_catid = get_cat_ID($af_blog_cat);
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

if( is_home() && !is_paged() ) {

// Add an intro Sidebar
if (is_active_sidebar('intro-sidebar')) {
echo thematic_before_widget_area('intro-sidebar');
dynamic_sidebar('intro-sidebar');
echo thematic_after_widget_area('intro-sidebar');
} ?>

<?php // if Sticky Posts exist show the sticky area
if ( get_option('sticky_posts' ) && ( get_option('af_sliding_sticky_area') == 'false' ) ) { ?>

<?php
// Set Up New Query
$sticky = get_option('sticky_posts');
$randomStickyNo = 0;
$randomStickyNo = (rand()%(count($sticky)));
$postno = $sticky[($randomStickyNo)];
$temp = $stickyquery;
$stickyquery = null;
$stickyquery = new WP_Query();
$stickyquery->query('orderby=rand&post_status=publish&showposts=1&p=' . $postno); ?>

<?php while ($stickyquery->have_posts()) : $stickyquery->the_post(); $do_not_duplicate = $post->ID; ?>
<div id="sticky-feature">

<?php if ( get_option('af_layout') == 'default' ) { ?>
<div id="post-<?php the_ID() ?>" class="<?php thematic_post_class(); ?> sticky-feature-post">

<?php } elseif ( get_option('af_layout') == 'grid' ) { ?>
<div id="post-<?php the_ID() ?>" class="hentry post sticky">

<?php } ?>

<?php af_postheader_title_date(); ?>
<?php af_postentrymeta_title_date(); ?>

<?php if ( get_post_meta($stickyquery->post->ID, 'enable_flickr', true) ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container">
<?php
// Flickr Loop
$af_flickr_photos = new phpFlickr(get_option('af_flickr_api_key'));
$flickr_user_id = getFlickrUserId(get_option('af_flickr_username'));
$images = $af_flickr_photos->photosets_getPhotos(get_post_meta( $stickyquery->post->ID, 'flickr_set', true ), NULL, NULL, 1); ?>
<?php foreach ($images['photoset']['photo'] as $image) { ?>
<img style="max-width:800px;" src="<?php echo $af_flickr_photos->buildPhotoURL( $image, "large" ); ?>" alt="<?php echo $image['title']; ?>" />
<?php } ?>
</a>
<?php } elseif ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container"><?php the_post_thumbnail('aflarge'); ?></a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container"><?php the_post_image('aflarge'); ?></a>
<?php } ?>

<div class="entry-content">
<?php the_excerpt(); ?>
</div>

<div class="entry-utility">
<?php edit_post_link(__('Edit', 'thematic'), "\t\n\t\t\t\t\t<span class=\"edit-link\">", "</span>\n"); ?>
</div><!-- .entry-utility -->
</div>
</div><!-- #sticky-feature -->
<?php endwhile; ?>
<?php $stickyquery = null; $temp = $stickyquery; ?>


<?php } // if Sliding Featured Area option is true
elseif (get_option('sticky_posts') && (get_option('af_sliding_sticky_area') == 'true')) { ?>

<div id="featured-slider-container" class="anythingSlider">
<div id="auto-slider" class="wrapper">
<ul>

<?php
// Set Up New Query
$sticky = get_option('sticky_posts');
$randomStickyNo = 0;
$randomStickyNo = (rand()%(count($sticky)));
$postno = $sticky[($randomStickyNo)];
$temp = null;
$featuredstickyquery = $temp;
$featuredstickyquery = new WP_Query();
$featuredstickyquery->query(array(
// 'orderby' => 'rand',
'showposts' => '10',
'post__in' =>get_option('sticky_posts')
)); ?>

<?php while ($featuredstickyquery->have_posts()) : $featuredstickyquery->the_post(); $do_not_duplicate = $post->ID; ?>

<?php if (get_option('af_layout') == 'default') { ?>
<li id="post-<?php the_ID() ?>" <?php post_class(); ?>>

<?php } elseif (get_option('af_layout') == 'grid') { ?>
<li id="post-<?php the_ID() ?>" <?php post_class(); ?>>

<?php } ?>

<?php af_postheader_title_date(); ?>
<?php af_postentrymeta_title_date(); ?>

<?php if ( get_post_meta($featuredstickyquery->post->ID, 'enable_flickr', true) ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="featured-post-image-container">
<?php
// Flickr Loop
$af_flickr_photos = new phpFlickr(get_option('af_flickr_api_key'));
$flickr_user_id = getFlickrUserId(get_option('af_flickr_username'));
$images = $af_flickr_photos->photosets_getPhotos(get_post_meta( $featuredstickyquery->post->ID, 'flickr_set', true ), NULL, NULL, 1); ?>
<?php foreach ($images['photoset']['photo'] as $image) { ?>
<img style="max-width:800px;" src="<?php echo $af_flickr_photos->buildPhotoURL( $image, "large" ); ?>" alt="<?php echo $image['title']; ?>" />
<?php } ?>
</a>
<?php } elseif ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="featured-post-image-container"><?php the_post_thumbnail('aflarge'); ?></a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="featured-post-image-container"><?php the_post_image('aflarge'); ?></a>
<?php } ?>

<div class="entry-content">
<?php the_excerpt(); ?>
</div>

<?php edit_post_link(__('Edit', 'thematic'), "\t\n\t\t\t\t\t<div class=\"entry-utility\"><span class=\"edit-link\">", "</span></div>\n"); ?>

</li>
<?php endwhile; ?>
<?php $featuredstickyquery = $temp;
$temp = null; ?>

</ul>
</div>
</div><!-- #sticky-feature -->

<?php } //end featured sliding option check ?>

<?php query_posts(array(
'post__not_in' => get_option('sticky_posts'),
'ignore_sticky_posts' => 1,
'cat' => '-'.$af_blog_catid,
'paged' => $paged,
)); ?>

<?php } //end sticky post check ?>

<?php query_posts(array(
'post__not_in' => get_option('sticky_posts'),
'ignore_sticky_posts' => 1,
'cat' => '-'.$af_blog_catid,
'exclude' => $postno,
'paged' => $paged,
)); ?>

<?php }
add_action('thematic_above_indexloop','af_sticky_area');

// Add AF+ Post entry-title for rollovers
function af_postheader_title_date() {
global $post; ?>

<?php if (get_option('af_title_date') == 'titledate') { ?>
<h2 class="entry-title entry-hover-off"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'thematic'), esc_html(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<?php } elseif (get_option('af_title_date') == 'datetitle') { ?>
<h2 class="entry-title entry-hover-on"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'thematic'), esc_html(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<?php } elseif ( (get_option('af_title_date') == 'title') ) { ?>
<h2 class="entry-title entry-hover-on"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'thematic'), esc_html(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<?php } elseif ( (get_option('af_title_date') == 'date') ) { ?>
<h2 class="entry-title entry-hover-none"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'thematic'), esc_html(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<?php }
}

// Add AF+ Post entry-meta for rollovers
function af_postentrymeta_title_date() {
global $post; ?>

<?php if (get_option('af_title_date') == 'titledate') { ?>
<div class="entry-meta entry-hover-on">
<span class="entry-date"><a href="<?php the_permalink() ?>" class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></a></span>
</div>

<?php } elseif (get_option('af_title_date') == 'datetitle') { ?>
<div class="entry-meta entry-hover-off">
<span class="entry-date"><a href="<?php the_permalink() ?>" class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></a></span>
</div>

<?php } elseif (get_option('af_title_date') == 'title') { ?>
<div class="entry-meta entry-hover-none">
<span class="entry-date"><a href="<?php the_permalink() ?>" class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></a></span>
</div>

<?php } elseif (get_option('af_title_date') == 'date') { ?>
<div class="entry-meta entry-hover-on relative">
<span class="entry-date"><a href="<?php the_permalink() ?>" class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>" rel="bookmark"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></a></span>
</div>

<?php }
}

// Custom Post Header
function autofocus_postheader() {
global $post;

$af_blog_cat = get_option('af_blog_cat');
$af_blog_catid = get_cat_ID($af_blog_cat);

if ( is_page() && ( is_page_template('blog-template.php') || is_page_template('template-page-blog.php') ) ) { ?>
<h1 class="page-title"><a href="<?php print get_category_feed_link($af_blog_catid, '') ?>" title="<?php _e('Blog Posts RSS feed', 'thematic'); ?>"><?php _e('Subscribe', 'thematic') ?></a><span><?php the_title(); ?></span></h1>

<?php } elseif ( is_page() ) { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>

<?php } elseif (is_404()) { ?>
<h1 class="entry-title"><?php _e('Not Found', 'thematic') ?></h1>

<?php } elseif ( is_single() && in_category($af_blog_catid) ) { ?>
<h1 class="entry-title"><?php the_title(); ?></h1>

<?php } elseif (is_single()) { ?>

<?php if ( get_post_meta($post->ID, 'enable_flickr', true) ) { ?>

<?php
// Flickr Loop
$af_flickr_photos = new phpFlickr(get_option('af_flickr_api_key'));
$flickr_user_id = getFlickrUserId(get_option('af_flickr_username'));
$af_slider_count = get_post_meta($post->ID, 'show_gallery', true) ? get_post_meta($post->ID, 'slider_count_value', true) : 1;
$images = $af_flickr_photos->photosets_getPhotos(get_post_meta( $post->ID, 'flickr_set', true ), NULL, NULL, $af_slider_count);
?>

<div id="gallery-slider-container" class="anythingSlider">
<div class="wrapper">
<ul>
<?php foreach ($images['photoset']['photo'] as $image) { ?>
<li><img style="max-width:800px;max-height:530px;" src="<?php echo $af_flickr_photos->buildPhotoURL( $image, "large" ); ?>" alt="<?php echo $image['title']; ?>" /></li>
<?php } ?>
</ul>
</div>
</div>

<?php } elseif ( get_post_meta($post->ID, 'show_gallery', true) ) { ?>
<div id="gallery-slider-container" class="anythingSlider">
<div class="wrapper">
<ul>
<?php
$af_slider_count = get_post_meta($post->ID, 'slider_count_value', true);
$args = array(
'order' => 'ASC',
'orderby' => 'menu_order ID',
'post_type' => 'attachment',
'post_parent' => $post->ID,
'post_mime_type' => 'image',
'post_status' => null,
// Change the number of images to show in the gallery below
'numberposts' => $af_slider_count,
);
$attachments = get_posts($args);
if ($attachments) {
foreach ($attachments as $attachment) {
echo "\t\t\t\t\t<li>" . wp_get_attachment_image($attachment->ID, 'single-post-thumbnail', false, false) . "</li>\n";
}
} ?>
</ul>
</div>
</div>

<?php } elseif ( get_post_meta($post->ID, 'videoembed_value', true) ) { ?>
<div class="post-video-container">
<?php $af_video_url = get_post_meta($post->ID, 'videoembed_value', true);
$content = apply_filters('the_content', '<span>[embed width="800" height="600"]'.$af_video_url.'[/embed]</span>'); echo $content; ?>
</div>

<?php } else { ?>
<div class="post-image-container">
<?php if ( get_post_meta($post->ID, 'copyright_value', true) ) { ?>
<span class="photo-credit"><?php echo get_post_meta($post->ID, 'copyright_value', true); ?></span>
<?php } else { ?>
<?php autofocus_credit(); ?>
<?php } ?>

<?php if ( has_post_thumbnail() ) { ?>
<?php the_post_thumbnail('single-post-thumbnail'); ?>

<?php } else { ?>
<?php the_post_image('afsingle'); ?>

<?php } ?>
</div>
<?php } ?>

<h1 class="entry-title"><?php the_title(); ?></h1>

<?php } elseif ( is_archive() || is_search() && !is_page_template('blog-template.php') && !is_page_template('template-page-blog.php') ) { ?>
<?php if ( $post->post_type == 'post' ) { // Hide entry utility on searches ?>

<?php if ( get_post_meta($post->ID, 'enable_flickr', true) ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container">
<?php
// Flickr Loop
$af_flickr_photos = new phpFlickr( get_option('af_flickr_api_key') );
$flickr_user_id = getFlickrUserId( get_option('af_flickr_username') );
$images = $af_flickr_photos->photosets_getPhotos(get_post_meta( $post->ID, 'flickr_set', true ), NULL, NULL, 1); ?>
<?php foreach ($images['photoset']['photo'] as $image) { ?>
<img style="min-width:190px;min-height:190px;" src="<?php echo $af_flickr_photos->buildPhotoURL( $image, "small" ); ?>" alt="<?php echo $image['title']; ?>" />
<?php } ?>
</a>
<?php } elseif ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container"><?php the_post_thumbnail('thumbnail'); ?></a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container"><?php the_post_image('thumbnail'); ?></a>
<?php } ?>

<?php } ?>

<h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf(__('Permalink to %s', 'thematic'), esc_html(get_the_title(), 1)) ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<?php } else { ?>

<?php af_postheader_title_date(); ?>

<?php } }
add_filter ('thematic_postheader_posttitle', 'autofocus_postheader');

// AutoFocus Post Meta
function autofocus_postmeta() {
global $post;

if (is_single() && ( get_option('af_layout') == 'grid' ) ) {
// Move .entry-meta below the .entry-content

} elseif (is_single()) { ?>
<div class="entry-meta">
<?php if ( get_option('af_title_date') != 'title' ) { ?>
<span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span>
<?php } ?>
<?php if (get_option('af_show_exif_data') == 'true' && has_post_thumbnail() && ( get_post_meta($post->ID, 'videoembed_value', true) == '' && get_post_meta($post->ID, 'show_gallery', true) == false )) { ?>
<span class="exif-data"><a href="<?php echo exif_link(); ?>#exif-data"><?php _e('View Exif Data', 'thematic') ?></a></span>
<?php } ?>
<span class="cat-links"><?php printf(__('Filed under %s.', 'thematic'), get_the_category_list(', ')) ?></span>
<?php echo get_the_tag_list("<span class=\"tag-links\"> Tagged ",', ','.</span>'); ?>
<?php echo autofocus_postconnect(); ?>
<?php edit_post_link(__('Edit', 'thematic'), "\t\n\t\t\t\t\t<span class=\"edit-link\">", "</span>\n"); ?>
</div>

<?php } elseif (is_home()) {

if (get_option('af_layout') == 'default') { ?>

<?php af_postentrymeta_title_date(); ?>

<?php if ( get_post_meta($post->ID, 'enable_flickr', true) ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container">
<?php
// Flickr Loop
$af_flickr_photos = new phpFlickr( get_option('af_flickr_api_key') );
$flickr_user_id = getFlickrUserId( get_option('af_flickr_username') );
$images = $af_flickr_photos->photosets_getPhotos(get_post_meta( $post->ID, 'flickr_set', true ), NULL, NULL, 1); ?>
<?php foreach ($images['photoset']['photo'] as $image) { ?>
<img style="min-width:190px;min-height:190px;" src="<?php echo $af_flickr_photos->buildPhotoURL( $image, 'medium' ); ?>" alt="<?php echo $image['title']; ?>" />
<?php } ?>
</a>

<?php } elseif ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container"><?php the_post_thumbnail('front-page-thumbnail'); ?></a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container"><?php the_post_image('front-page-thumbnail'); ?></a>
<?php }

} elseif (get_option('af_layout') == 'grid') { ?>

<?php af_postentrymeta_title_date(); ?>

<?php if ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container"><?php the_post_thumbnail('thumbnail'); ?></a>
<?php } elseif ( get_post_meta($post->ID, 'enable_flickr', true) ) { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container">
<?php
// Flickr Loop
$af_flickr_photos = new phpFlickr( get_option('af_flickr_api_key') );
$flickr_user_id = getFlickrUserId( get_option('af_flickr_username') );
$images = $af_flickr_photos->photosets_getPhotos(get_post_meta( $post->ID, 'flickr_set', true ), NULL, NULL, 1); ?>
<?php foreach ($images['photoset']['photo'] as $image) { ?>
<img style="min-width:190px;min-height:190px;" src="<?php echo $af_flickr_photos->buildPhotoURL( $image, "small" ); ?>" alt="<?php echo $image['title']; ?>" />
<?php } ?>
</a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="post-image-container"><?php the_post_image('thumbnail'); ?></a>
<?php } ?>

<?php } ?>

<?php } else { ?>

<div class="entry-meta">
<span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span>
<span class="cat-links"><?php printf(__('Filed under %s.', 'thematic'), get_the_category_list(', ')) ?></span>
<span class="comments-link"><?php comments_popup_link(__('No comments.', 'thematic'), __('1 Comment.', 'thematic'), __('% Comments.', 'thematic'), '', '') ?></span>
<?php edit_post_link(__('Edit', 'thematic'), "\t\n\t\t\t\t\t<span class=\"edit-link\">", "</span>\n"); ?>
</div>

<?php } }
add_filter ('thematic_postheader_postmeta', 'autofocus_postmeta');

// AutoFocus Post Footer
function childtheme_override_postfooter() {
global $post;

if ( ( get_option('af_layout') == 'grid' ) && is_single() ) { ?>
<div class="entry-meta">
<?php if ( get_option('af_title_date') != 'title' ) { ?>
<span class="entry-date"><abbr class="published" title="<?php the_time('Y-m-d\TH:i:sO') ?>"><?php the_time( get_option( 'date_format' ) ); ?></abbr></span>
<?php } ?>
<?php if ( ( get_option('af_show_exif_data') == 'true' && has_post_thumbnail() ) && ( get_post_meta($post->ID, 'videoembed_value', true) == '' ) && ( !get_post_meta($post->ID, 'show_gallery', true) ) && ( !get_post_meta($post->ID, 'enable_flickr', true) ) ) { ?>
<span class="exif-data"><a href="<?php echo exif_link(); ?>/#exif-data"><?php _e('View Exif Data', 'thematic') ?></a></span>
<?php } ?>
<span class="cat-links"><?php printf(__('Filed under %s.', 'thematic'), get_the_category_list(', ')) ?></span>
<?php echo get_the_tag_list("<span class=\"tag-links\"> Tagged ",', ','.</span>'); ?>
<?php echo autofocus_postconnect(); ?>
<?php edit_post_link(__('Edit', 'thematic'), "\t\n\t\t\t\t\t<span class=\"edit-link\">", "</span>\n"); ?>
</div>

<?php
// Grab the blog category ID
$af_blog_cat = get_option('af_blog_cat');
$af_blog_catid = get_cat_ID($af_blog_cat);

if ( is_active_sidebar('single-sidebar') && (in_category($af_blog_catid) || is_page()) ) {
echo thematic_before_widget_area('single-sidebar');
dynamic_sidebar('single-sidebar');
echo thematic_after_widget_area('single-sidebar');
}

} elseif ( is_single() || is_page() ) {

if (is_active_sidebar('single-sidebar') && (in_category($af_blog_catid) || is_page()) ) {
echo thematic_before_widget_area('single-sidebar');
dynamic_sidebar('single-sidebar');
echo thematic_after_widget_area('single-sidebar');
}

} elseif (is_home()) { ?>
<div class="entry-utility">
<?php edit_post_link(__('Edit', 'thematic'), "\t\n\t\t\t\t\t<span class=\"edit-link\">", "</span>\n"); ?>
</div><!-- .entry-utility -->

<?php } else {
// Show nothing
}
}
add_filter('thematic_postfooter', 'childtheme_override_postfooter');

// AutoFocus Post Connect
function autofocus_postconnect() { ?>
<?php printf(__('<span class="bookmark">Bookmark the <a href="%1$s" title="Permalink to %2$s" rel="bookmark">permalink</a>.</span>', 'thematic'),
get_permalink(),
esc_html(get_the_title(), 'double') ) ?>
<?php if ((comments_open()) && (pings_open())) : // Comments and trackbacks open ?>
<?php printf(__('<span class="post-a-comment"><a class="comment-link" href="#respond" title="Post a comment">Post a comment</a>.</span> <span class="trackback">Leave a <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback (URL)</a>.</span>', 'thematic'), get_trackback_url()) ?>
<?php elseif (!(comments_open()) && (pings_open())) : // Only trackbacks open ?>
<?php printf(__('<span class="trackback">Leave a <a class="trackback-link" href="%s" title="Trackback URL for your post" rel="trackback">Trackback (URL)</a>.</span>', 'thematic'), get_trackback_url()) ?>
<?php elseif ((comments_open()) && !(pings_open())) : // Only comments open ?>
<?php printf(__('<span class="post-a-comment"><a class="comment-link" href="#respond" title="Post a comment">Post a comment</a>.</span>', 'thematic')) ?>
<?php elseif (!(comments_open()) && !(pings_open())) : // Comments and trackbacks closed ?>
<?php // Show nothing ?>
<?php endif; ?>
<?php }
// add_filter('thematic_postfooter_postconnect', 'autofocus_postconnect');

// Navigation Below
function autofocus_nav_below() {
global $post, $excluded_categories, $in_same_cat;

$af_blog_cat = get_option('af_blog_cat');
$af_blog_catid = get_cat_ID($af_blog_cat);

if (is_single() && in_category($af_blog_catid)) { ?>
<div id="nav-below" class="navigation">
<h3><?php _e('Browse', 'thematic') ?></h3>
<?php
$previouspost = get_previous_post($in_same_cat, $excluded_categories);
if ($previouspost != null) {

echo '<div class="nav-previous">';
previous_post_link('<span class="meta-nav">&larr;</span> Older: %link', '%title', 1);
echo '<div class="nav-excerpt">';
previous_post_excerpt(1);
echo '</div></div>';
} ?>

<?php
$nextpost = get_next_post($in_same_cat, $excluded_categories);
if ($nextpost != null) {

echo '<div class="nav-next">';
next_post_link('Newer: %link <span class="meta-nav">&rarr;</span>', '%title', 1);
echo '<div class="nav-excerpt">';
next_post_excerpt(1);
echo '</div></div>';
} ?>

</div><!-- #nav-below -->

<?php } elseif (is_single()) { ?>
<div id="nav-below" class="navigation">
<h3><?php _e('Browse', 'thematic') ?></h3>
<?php
$previouspost = get_previous_post(0, $af_blog_catid);
if ($previouspost != null) {

echo '<div class="nav-previous">';
previous_post_link('<span class="meta-nav">&larr;</span> Older: %link', '%title', 0, $af_blog_catid);
echo '<div class="nav-excerpt">';
previous_post_excerpt(0);
echo '</div></div>';
} ?>

<?php
$nextpost = get_next_post(0, $af_blog_catid);
if ($nextpost != null) {

echo '<div class="nav-next">';
next_post_link('Newer: %link <span class="meta-nav">&rarr;</span>', '%title', 0, $af_blog_catid);
echo '<div class="nav-excerpt">';
next_post_excerpt(0);
echo '</div></div>';
} ?>

</div><!-- #nav-below -->

<?php } elseif (browser_ie6() && is_home() ) { ?>

<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">&larr;</span>', 'thematic')) ?></div>
<div class="nav-next"><?php previous_posts_link(__('<span class="meta-nav">&rarr;</span>', 'thematic')) ?></div>
</div>

<?php } }
add_action('thematic_navigation_below', 'autofocus_nav_below', 2);

// UNregister non-used sidebars
function childtheme_sidebars_init() {

// Register the 4th Subsidairy Sidebar
register_sidebar(array(
'admin_menu_order' => 750,
'name' => '4th Subsidiary Aside',
'id' => 'fourth',
'description' => __('The 4th widget area in the footer.', 'thematic'),
'before_widget' => thematic_before_widget(),
'after_widget' => thematic_after_widget(),
'before_title' => thematic_before_title(),
'after_title' => thematic_after_title(),
'priority' => 90,
));

// Register the Single Page Sidebar
register_sidebar(array(
'name' => 'Single Page Sidebar',
'id' => 'single-sidebar',
'description' => __('This widget area shows up under the post meta on Single &ldquo;Blog Category&rdquo; Posts and Pages. It is not displayed on regular posts.', 'thematic'),
'before_widget' => thematic_before_widget(),
'after_widget' => thematic_after_widget(),
'before_title' => thematic_before_title(),
'after_title' => thematic_after_title(),
));

// Register the Intro Sidebar
register_sidebar(array(
'name' => 'Intro Sidebar',
'id' => 'intro-sidebar',
'description' => __('This widget area shows up on the Front Page just below the header.', 'thematic'),
'before_widget' => thematic_before_widget(),
'after_widget' => thematic_after_widget(),
'before_title' => thematic_before_title(),
'after_title' => thematic_after_title(),
));

// Register the Leader Board Sidebar
register_sidebar(array(
'name' => 'Leader Board Sidebar',
'id' => 'leader-board-sidebar',
'description' => __('This widget area shows up above the header and is best used for Leader Board ads (728px x 90px).', 'thematic'),
'before_widget' => thematic_before_widget(),
'after_widget' => thematic_after_widget(),
'before_title' => thematic_before_title(),
'after_title' => thematic_after_title(),
));

unregister_sidebar('primary-aside');
unregister_sidebar('secondary-aside');
unregister_sidebar('index-top');
unregister_sidebar('index-insert');
unregister_sidebar('index-bottom');
unregister_sidebar('single-top');
unregister_sidebar('single-insert');
unregister_sidebar('single-bottom');
unregister_sidebar('page-top');
unregister_sidebar('page-bottom');
}
add_action( 'init', 'childtheme_sidebars_init',20 );

// Add 4th Sidebar Area
function add_fourth_sidebar() {
if (is_active_sidebar('fourth')) {
echo thematic_before_widget_area('fourth');
dynamic_sidebar('fourth');
echo thematic_after_widget_area('fourth');
}
}
add_action('thematic_after_third_sub','add_fourth_sidebar');

// Add Leader Board Side Bar Above Header
function add_leaderboard_sidebar() { ?>
<?php if (is_active_sidebar('leader-board-sidebar')) { ?>
<div id="leader-board-wrapper">
<?php
echo thematic_before_widget_area('leader-board-sidebar');
dynamic_sidebar('leader-board-sidebar');
echo thematic_after_widget_area('leader-board-sidebar');
?>
</div>
<?php }
}
add_action('thematic_aboveheader','add_leaderboard_sidebar');

// Filter the Footer Link
function childtheme_theme_link($themelink) {
$loginlinkage = thmfooter_login_link();
return '<a class="child-theme-link" href="http://fthrwght.com/autofocus/" title="AutoFocus+ Pro" rel="theme">AutoFocus+ Pro Child Theme</a> &amp; the ' . $themelink . '. ' . $loginlinkage;
}
add_filter('thematic_theme_link', 'childtheme_theme_link');

// Adds Commented Credit
function author_credit() { ?>
<!-- Site design based on AutoFocus+ Pro by Allan Cole for http://fthrwght.com/autofocus -->
<?php }
add_action('wp_footer','author_credit');

?>


AdamGold comments:

Please post here the URL of your website so I can see what is what (in the code).