Footer/Widgets Issue
-
Hi guys
Im using the Arthemia theme and when i try and add a widget to “footer center” it just goes underneath “footer left”
I dont know why it keeps doing this and its really starting to annoy me haha, im sure there is a </div> tag missing somewhere in the code but dont know where.
Website address is https://www.outreachcommunity.org.uk
Code is
</div>
<?php wp_reset_query(); ?>
<?php $showgallery1 = get_settings ( “cp_showpostgallery” );
$showgallery2 = get_settings ( “cp_showarchivegallery” );
if ( (is_home()) || (is_search() && $showheadline2 != “no”) || (is_archive() && $showgallery2 != “no”) || (is_single() && $showgallery1 != “no”) ) { ?><div id=”gallery” class=”clearfloat”>
<div id=”random”>
<h3>Random Posts</h3><?php $width = get_settings ( “cp_thumbWidth_Gallery” );
$height = get_settings ( “cp_thumbHeight_Gallery” );
if ( $width == 0 ) { $width = 80; }
if ( $height == 0 ) { $height = 80; }
$status = get_settings ( “cp_thumbAuto” );
?><?php $randompost = $wpdb->get_results(“SELECT ID FROM $wpdb->posts WHERE post_status = ‘publish’ AND post_type = ‘post’ ORDER BY RAND() LIMIT 12”);
foreach ($randompost as $post) {
$ID = $post->ID;
$postid = get_post($post->ID);
$title = $postid->post_title;
$values = $wpdb->get_var(“SELECT meta_value FROM $wpdb->postmeta WHERE post_id = $ID AND meta_key = ‘Image’ “);
?><?php if ( $status != “first” ) { ?>
<?php
if (isset($values)) {
?>
” rel=”bookmark” title=”Permanent Link to <?php echo $title; ?>”><img src=”<?php echo bloginfo(‘template_url’); ?>/scripts/timthumb.php?src=<?php echo get_option(‘home’); ?>/<?php
echo $values; ?>&w=<?php echo $width; ?>&h=<?php echo $height; ?>&zc=1&q=100″
alt=”<?php echo $title; ?>” class=”left” width=”<?php echo $width; ?>px” height=”<?php echo $height; ?>px” />
<?php } ?><?php } else { ?>
<?php $id =$post->ID;
$the_content =$wpdb->get_var(“SELECT post_content FROM $wpdb->posts WHERE ID = $id”);
$pattern = ‘!<img.*?src=”(.*?)”!’;
preg_match_all($pattern, $the_content, $matches);
$image_src = $matches[‘1’][0]; ?><?php } ?>
<?php } ?>
<div class=”more” style=”margin-top:-10px;padding-right:15px;font-weight:bold;float:right;”>(refresh random posts)</div></div>
<div id=”video”>
<?php $ar_video = get_settings( “ar_video” );
if( $ar_video == 0 ) { $ar_video = $cp_categories[0]->cat_ID; }
query_posts( ‘showposts=1&cat=’ . $ar_video ); ?>“><h3 class=”cat_title”>Latest Video Post</h3>
<?php while (have_posts()) : the_post(); ?>
<?php $video = get_post_meta($post->ID, ‘Video’, $single=true); ?>
<div style=”height:187px;width:281px;”>
<?php if($video !== ”) { ?><script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/mediaplayer/swfobject.js”></script>
<div id=”footplayer”><div style=”border:1px solid #ececec;padding:10px;”>Adobe Flash Plugin is required to see this video. Click here to download the latest version of Adobe Flash Player Plugin.</div></div>
<script type=”text/javascript”>
var s0 = new SWFObject(‘<?php bloginfo(‘template_url’); ?>/mediaplayer/mediaplayer.swf’,’mpl’,’281′,’187′,’8′);
s0.addParam(‘allowscriptaccess’,’always’);
s0.addParam(‘allowfullscreen’,’true’);
s0.addVariable(‘height’,’187′);
s0.addVariable(‘width’,’281′);
s0.addVariable(‘file’,'<?php echo $video; ?>’);
s0.addVariable(‘image’,'<?php echo get_option(‘home’); ?>/<?php $values = get_post_custom_values(“Image”); echo $values[0]; ?>’);
s0.write(‘footplayer’);
</script>
</script>
<?php } ?>
</div>
<div class=”more” style=”margin-top:5px;font-weight:bold;”>” rel=”bookmark”><?php the_title(); ?></div><?php endwhile; ?>
</div>
</div>
</div>
<?php } ?><div id=”front-popular” class=”clearfloat”>
<div id=”recentpost” class=”clearfloat”>
<?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(5) ) : ?>
<?php endif; ?></div><div id=”mostcommented” class=”clearfloat”>
<h3>Most Commented</h3>- <?php $result = $wpdb->get_results(“
- ” title=”<?php echo $title ?>”><?php echo $title ?>
SELECT comment_count,ID,post_title
FROM $wpdb->posts
ORDER BY comment_count DESC
LIMIT 0 , 5″);foreach ($result as $topfive) {
$postid = $topfive->ID;
$title = $topfive->post_title;
$commentcount = $topfive->comment_count;
if ($commentcount != 0) { ?><?php } } ?>
<?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(6) ) : ?>
<?php endif; ?>
</div><div id=”recent_comments” class=”clearfloat”>
<?php if (function_exists(‘akpc_most_popular’)): ?>
<h3>Most Popular</h3>-
<?php akpc_most_popular($limit = 5, $before = ‘
- ‘, $after = ‘
‘); ?>
<?php endif; ?>
<?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(7) ) : ?>
<?php endif; ?>
</div>
</div><div id=”footer”> <?php wp_footer(); ?> Powered by WordPress | <?php if ( is_user_logged_in() ) { ?> <?php wp_register(”, ”); ?> | <?php } ?> <?php wp_loginout(); ?> | “>Entries (RSS) | “>Comments (RSS) | Arthemia Premium theme by Michael Jubel Hutagalung
<!– <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. –>
</div>
<?php
$cp_analytics = get_settings( “cp_analytics” );
if( $cp_analytics != “” ) {
?><script type=”text/javascript”>
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “https://www.”);
document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script><script type=”text/javascript”>
var pageTracker = _gat._getTracker(“<?php echo $cp_analytics; ?>”);
pageTracker._initData();
pageTracker._trackPageview();
</script><?php } ?>
</body>
</html>Thanks guys
- The topic ‘Footer/Widgets Issue’ is closed to new replies.