• Resolved lothsun

    (@lothsun)


    There is a widget included in a theme I am using that shows our current album. I want to take that code and modify it to show all of our albums on a separate page. They have the content added to the widget through a theme options page. I was planning on creating another panel in the theme options for the new page. Any ideas are appreciated. take a look at the current site here : https://illuminationworship.com

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lothsun

    (@lothsun)

    Also, here is the code for the album widget:

    <div class="details">
    					<div class="hgroup">
    						<em><?php echo reverse_escape(get_option('cap_album_intro')); ?> &rarr;</em>
    						<h1><?php echo reverse_escape(get_option('cap_album_title')); ?></h1> 
    
    					</div>
    					<div class="album_cover"> 
    
    						<img src="<?php bloginfo( 'template_directory' ); ?>/thumb.php?src=<?php if (is_multisite()){echo get_current_site(1)->path; echo str_replace(get_blog_option($blog_id,'fileupload_url'),get_blog_option($blog_id,'upload_path'),reverse_escape(get_option('cap_album_cover_art'))); }else{ echo reverse_escape(get_option('cap_album_cover_art'));}?>&h=204&w=227&zc=1" alt="cd"/>
    					</div>
    					<div class="more_info more_info_home">
    						<p><em><?php echo reverse_escape(get_option('cap_album_links_title')); ?></em></p>
    						<p>
                            <?php
    							// array of 4 links for the homepage
    							$links = array(
    								'first' => array(
    									'title' => reverse_escape(get_option('cap_album_online_store_title1')),
    									'url' => reverse_escape(get_option('cap_album_online_store_url1')),
    								),
    								'second' => array(
    									'title' => reverse_escape(get_option('cap_album_online_store_title2')),
    									'url' => reverse_escape(get_option('cap_album_online_store_url2')),
    								),
    								'third' => array(
    									'title' => reverse_escape(get_option('cap_album_online_store_title3')),
    									'url' => reverse_escape(get_option('cap_album_online_store_url3')),
    								),
    								'fourth' => array(
    									'title' => reverse_escape(get_option('cap_album_online_store_title4')),
    									'url' => reverse_escape(get_option('cap_album_online_store_url4')),
    								),
    							);
    							?>
    
                                <?php
    							// loop through all the links, only rendering if there's a link entered
    							foreach($links as $num => $link) {
    								if(!strstr($link['url'], ' URL')) {
    								?>
                                    <a href="<?php  echo($link['url']); ?>"><?php  echo($link['title']); ?></a>
                                	<?php
    								// end image check for faders
    								}
    							// end loop through faders
    							} ?>
    						</p>
    					</div>
    				</div>
    Thread Starter lothsun

    (@lothsun)

    I found out what was wrong. I had an extra endif statement on the page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Make widget into page template’ is closed to new replies.