Example #1
0
 function att_display_social()
 {
     $output = '<ul id="header-social">';
     $att_social_links = att_social_links();
     foreach ($att_social_links as $social_link) {
         if (att_option($social_link)) {
             $output .= '<li><a href="' . att_option($social_link) . '" title="' . $social_link . '" target="_blank"><img src="' . get_template_directory_uri() . '/images/social-alt/' . $social_link . '.png" alt="' . $social_link . '" /></a></li>';
         }
     }
     $output .= '</ul><!-- #header-social -->';
     echo $output;
 }
Example #2
0
    ?>
</a></h2>
                     <?php 
    if (att_option('site_description', '1') == '1') {
        echo '<p id="site-description">' . get_bloginfo('description') . '</p>';
    }
    ?>
                <?php 
}
?>
            </div><!-- /logo -->
            
            <?php 
// Show header ad as defined in the admin panel
if (att_option('header_ad') !== '') {
    echo '<div class="col span_8"><div id="header-ad">' . do_shortcode(att_option('header_ad')) . '</div></div>';
}
?>
    	</div><!-- /header -->
</div><!-- /header-wrap -->

<div id="navbar-wrap">
    <nav id="navbar" class="container row clr">
    	<div id="navigation-secondary" class="span_12 col clr">    
			<?php 
// Main navigation location
wp_nav_menu(array('theme_location' => 'main_menu', 'menu_class' => 'dropdown-menu', 'fallback_cb' => false, 'walker' => new ATT_Dropdown_Walker_Nav_Menu()));
?>
        </div><!-- #navigation -->             
    </nav><!-- #topbar --> 
</div><!-- #topbar-wrap -->
Example #3
0
 * This file is used for your blog and archive entries.
 *
 * @package WordPress Theme
 * @since 1.0
 */
/******************************************************
 * Single Posts
 * @since 1.0
*****************************************************/
if (is_singular() && is_main_query()) {
    ?>
     
     
	<?php 
    // Get, resize and display featured image
    if (att_option('blog_single_thumbnail', '1') == '1' && has_post_thumbnail()) {
        ?>
    <div class="post-head-image">
        <div id="post-thumbnail">
            <img src="<?php 
        echo aq_resize(wp_get_attachment_url(get_post_thumbnail_id()), att_img('blog_post_width'), att_img('blog_post_height'), att_img('blog_post_crop'));
        ?>
" alt="<?php 
        echo the_title();
        ?>
" />
        </div><!-- /post-thumbnail -->   
    </div>
    <?php 
    }
    ?>
Example #4
0
<?php

/**
 * Define sidebars for use in this theme
 * @package WordPress Theme
 * @since 1.0
 * @author Authentic Themes : http://www.authenticthemes.com
 */
//sidebar
register_sidebar(array('name' => __('Sidebar', 'att'), 'id' => 'sidebar', 'description' => __('Widgets in this area are used on the main sidebar region.', 'att'), 'before_widget' => '<div class="sidebar-box %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<h4>', 'after_title' => '</h4>'));
/* Footer Widgets */
if (att_option('footer', '1') == '1') {
    //footer 1
    register_sidebar(array('name' => __('Footer 1', 'att'), 'id' => 'footer-one', 'description' => __('Widgets in this area are used in the footer region.', 'att'), 'before_widget' => '<div class="footer-widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<h6>', 'after_title' => '</h6>'));
    //footer 2
    register_sidebar(array('name' => __('Footer 2', 'att'), 'id' => 'footer-two', 'description' => __('Widgets in this area are used in the footer region.', 'att'), 'before_widget' => '<div class="footer-widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<h6>', 'after_title' => '</h6>'));
    //footer 3
    register_sidebar(array('name' => __('Footer 3', 'att'), 'id' => 'footer-three', 'description' => __('Widgets in this area are used in the footer region.', 'att'), 'before_widget' => '<div class="footer-widget %2$s clearfix">', 'after_widget' => '</div>', 'before_title' => '<h6>', 'after_title' => '</h6>'));
}
Example #5
0
 function att_custom_excerpt_length($length)
 {
     return att_option('excerpt_length', '25');
 }
Example #6
0
                <div class="footer-box col span_4 clr">
                    <?php 
dynamic_sidebar('footer-three');
?>
                </div><!-- /footer-box -->
            </div><!-- /footer-widgets -->
        </footer><!-- /footer -->
    </div><!-- /footer-wrap -->	
    
    
    <div id="footerbottom-wrap">
        <div id="footerbottom" class="container row clr">   
            <div id="copyright" class="col span_6 clr">
                <?php 
if (att_option('custom_copyright', '') !== '') {
    echo do_shortcode(att_option('custom_copyright', ''));
} else {
    ?>
                <p>
                    &copy; <?php 
    echo date('Y');
    ?>
 All Rights Reserved
                </p>
                <?php 
}
?>
            </div><!-- #copyright -->        
            <div id="footer-menu" class="col span_6 clr">
                <?php 
// Main navigation location