Jump to content

Collapsable Video In Sidebar


cstowell

Recommended Posts

I'm hoping someone here can help me, I've reached the end of my rope with this coding issue.

 

So, up until about a week ago the sidebar on the site I maintain, http://jillzarin.com, there was a sidebar that had collapsable headers for videos. The entire site is on WordPress, and the PHP of the sidebar is

 

<div id="sidebar" class="grid_6">

<?php include('../../../private/var/folders/vf/vfRXftxCH0KVl1qqxbWXoE+++TI/Cleanup At Startup/Fetch Temporary Folder/ads/ads-management.php'); ?>

<?php include('../../../private/var/folders/vf/vfRXftxCH0KVl1qqxbWXoE+++TI/Cleanup At Startup/Fetch Temporary Folder/ads/ads-300x250.php'); ?>

<?php include('../../../private/var/folders/vf/vfRXftxCH0KVl1qqxbWXoE+++TI/Cleanup At Startup/Fetch Temporary Folder/ads/ads-top.php'); ?>	



<?php
        
        $showvideo = get_option('woo_show_video');
    
        if($showvideo){ include(TEMPLATEPATH . '/includes/video.php'); }
                
    ?>
           
           
           


<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>		
    
<?php endif; ?>

    <div class="clear"></div>
    
    
    
    

  
<!-- 
delete tag box
-->

    <!--/box2 -->
    
    
<!--  video was here -->



<?php
                    
    	$showasides = get_option('woo_show_asides');
                
        if ($showasides) { 
                            
    ?>

    <div class="box2">
               
        <div class="spacer">

            <h3><span class="fl">Asides</span> <a href="#"><img src="<?php bloginfo('template_directory'); ?>/images/ico-misc.gif" alt="" class="fr" /></a></h3>
            
            <ul class="list2">
        
        	<?php 
        		$asides = get_option('woo_asides_entries');
        		include(TEMPLATEPATH . '/includes/version.php');
        		
        		$the_query = new WP_Query('cat=' . $ex_aside . '&showposts=' . $asides . '&orderby=post_date&order=desc');
        		while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
        	?>
                
                <li><?php the_content(); ?></li>
            
            <?php endwhile; ?>
            
            </ul>
       
        </div><!--/spacer -->
            
    </div><!--/box2 -->

 

It used to be that all the headers under video would collapse to WordPress posts where the only content was simply an embedded YouTube video. Now absolutely nothing happens.

 

The coding in the sidebar.php wasn't changed so I have no idea what went wrong or what to do. I inherited the site from a designer who has washed their hands clean of the project so I'm at a total loss.

 

Any help would be greatly appreciated, thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/188264-collapsable-video-in-sidebar/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.