Beispiel #1
0
function wpsight_do_credit()
{
    $credit = wpsight_get_option('credit');
    // Set default value if option has not been set
    if (wpsight_get_option('credit') === false) {
        $credit = wpsight_get_option('credit', true);
    }
    if (empty($credit)) {
        return;
    }
    // Open layout wrap
    wpsight_layout_wrap('credit-wrap');
    ?>

	<div id="credit" class="clearfix">			    
	    <?php 
    echo do_shortcode($credit);
    ?>
	</div><!-- #credit --><?php 
    // Close layout wrap
    wpsight_layout_wrap('credit-wrap', 'close');
}
Beispiel #2
0
    // endwhile have_posts()
    ?>
	    		
	    		</div><!-- .row --><?php 
    wpsight_pagination();
} else {
    get_template_part('loop', 'no');
}
// endif have_posts()
?>
	    
	    </div><!-- #content -->
	    
	    <?php 
get_sidebar();
?>
	
	</div><!-- #main-middle -->
	
	<?php 
// Close layout wrap
wpsight_layout_wrap('main-middle-wrap', 'close');
// Action hook to add content after main
do_action('wpsight_main_after');
?>
	

</div><!-- #main-wrap -->

<?php 
get_footer();
Beispiel #3
0
// Action hook before header
do_action('wpsight_header_before');
// Open layout wrap
wpsight_layout_wrap('header-wrap');
?>
        		
    <div id="header" class="clearfix">
    
    	<div id="header-left">
    	
    		<?php 
// Action hook for logo output
do_action('wpsight_logo');
?>
    		
    	</div><!-- #header-left -->
    	
    	<div id="header-right">
    	
    		<?php 
// Action hook for header right section
do_action('wpsight_header_right');
?>
    		
    	</div><!-- #header-right -->
    	
    </div><!-- #header --><?php 
// Close layout wrap
wpsight_layout_wrap('header-wrap', 'close');
// Action hook after header
do_action('wpsight_header_after');
Beispiel #4
0
function bayfront_do_footer_bottom()
{
    // Open layout wrap
    wpsight_layout_wrap('footer-bottom-wrap');
    ?>

	<div id="footer-bottom" class="clearfix">
			
		<div id="bottom-menu">
		
			<?php 
    echo wpsight_menu('bottom');
    ?>
		
		</div><!-- #bottom-menu -->
		<?php 
    $credit = wpsight_get_option('credit');
    // Set default value if option has not been set
    if (wpsight_get_option('credit') === false) {
        $credit = wpsight_get_option('credit', true);
    }
    ?>
		<div id="footer-contact-info">
			<?php 
    // Open layout wrap
    wpsight_layout_wrap('credit-wrap');
    ?>
			<div id="credit" class="clearfix">			    
				<?php 
    echo do_shortcode($credit);
    ?>
			</div><!-- #credit --><?php 
    // Close layout wrap
    wpsight_layout_wrap('credit-wrap', 'close');
    ?>
		</div>
		
		<?php 
    // Loop through social icons
    $nr = apply_filters('wpsight_social_icons_nr', 5);
    $social_icons = array();
    for ($i = 1; $i <= $nr; $i++) {
        $social_icons[] = wpsight_get_social_icon(wpsight_get_option('icon_' . $i));
    }
    // Remove empty elements
    $social_icons = array_filter($social_icons);
    $output = '<div class="social-icons">';
    if (!empty($social_icons)) {
        $i = 1;
        foreach ($social_icons as $k => $v) {
            $social_link = wpsight_get_option('icon_' . $i . '_link');
            $output .= '<a href="' . $social_link . '" target="_blank" title="' . $v['title'] . '" class="social-icon social-icon-' . $v['id'] . '"><img src="' . $v['icon'] . '" alt="" /></a>' . "\n";
            $i++;
        }
    } else {
        $social_icon = wpsight_get_social_icon('rss');
        $output .= '<a href="' . get_bloginfo_rss('rss2_url') . '" target="_blank" title="' . $social_icon['title'] . '" class="social-icon social-icon-' . $social_icon['id'] . '"><img src="' . $social_icon['icon'] . '" alt="" /></a>' . "\n";
    }
    $output .= '</div><!-- .social-icons -->';
    echo apply_filters('wpsight_social_icons_top', $output);
    echo '<div class="subscribe-form">';
    if (function_exists('newsletter_form')) {
        newsletter_form(1);
    }
    echo '</div>';
    ?>
		
		</div><!-- #footer-bottom --><?php 
    // Close layout wrap
    wpsight_layout_wrap('footer-bottom-wrap', 'close');
}
Beispiel #5
0
function wpsight_after_signup()
{
    echo '</div></div><!-- #main-middle -->';
    // Close layout wrap
    wpsight_layout_wrap('main-middle-wrap', 'close');
}
Beispiel #6
0
function wpsight_do_main_bottom()
{
    $args = array('only_front' => true);
    $args = apply_filters('wpsight_do_main_bottom_args', $args);
    // Only on home page?
    if (!is_front_page() && $args['only_front'] == true) {
        return;
    }
    // Only if widget area active
    if (!is_active_sidebar('home-bottom')) {
        return;
    }
    // Open layout wrap
    wpsight_layout_wrap('main-bottom-wrap');
    ?>

	<div id="main-bottom" class="clearfix">
		<?php 
    dynamic_sidebar('home-bottom');
    ?>
	</div><!-- #main-bottom --><?php 
    // Close layout wrap
    wpsight_layout_wrap('main-bottom-wrap', 'close');
}
Beispiel #7
0
 */
// Action hook before footer
do_action('wpsight_footer_before');
// Display footer widget area if active
if (is_active_sidebar('ffooter')) {
    // Open layout wrap
    wpsight_layout_wrap('footer-wrap');
    ?>
    
    <div id="footer" class="clearfix">
    	<?php 
    dynamic_sidebar('ffooter');
    ?>
    </div><!-- #footer--><?php 
    // Close layout wrap
    wpsight_layout_wrap('footer-wrap', 'close');
}
// endif is_active_sidebar()
// Action hook after footer
do_action('wpsight_footer_after');
?>

</div><!-- #outer -->

<?php 
do_action('wpsight_after');
wp_footer();
?>

</body>
</html>
Beispiel #8
0
function wpsight_do_submenu()
{
    if (!has_nav_menu('menu-sub')) {
        return;
    }
    // Open layout wrap
    wpsight_layout_wrap('submenu-wrap');
    ?>

	<div id="submenu">	
		<?php 
    echo wpsight_menu('sub', false);
    ?>
		
	</div><!-- .submenu --><?php 
    // Close layout wrap
    wpsight_layout_wrap('submenu-wrap', 'close');
}