Example #1
0
/**
    Register widgetized area and update sidebar with default widgets
**/
function Radix_widgets_init()
{
    // add sidebars
    register_sidebar(array('name' => __('Sidebar', 'radix'), 'id' => 'sidebar', 'description' => __('The default sidebar, place widgets here will show in all posts', 'radix'), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
    register_sidebar(array('name' => __('Pages Sidebar', 'radix'), 'id' => 'sidebar-2', 'description' => __('The second sidebar, place widgets here will show in all pages', 'radix'), 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>'));
    // add footer widgets
    switch (ro_get_option('footer_col')) {
        case '1':
            register_sidebar(array('name' => __('Footer Widget 1', 'radix'), 'id' => 'footer-widget-1', 'description' => __('The first Row of Footer Widgets, place widgets as per no. of footer widgets setting you set in Theme Options', 'radix'), 'before_widget' => '<article class="footer-widgets col-md-12 %2$s" id="%1$s">', 'after_widget' => '</article>', 'before_title' => '<h3 class="footer-widget-title">', 'after_title' => '</h3>'));
            break;
        case '2':
            register_sidebar(array('name' => __('Footer Widget 1', 'radix'), 'id' => 'footer-widget-1', 'description' => __('The first Row of Footer Widgets, place widgets as per no. of footer widgets setting you set in Theme Options', 'radix'), 'before_widget' => '<article class="footer-widgets col-md-6 %2$s" id="%1$s">', 'after_widget' => '</article>', 'before_title' => '<h3 class="footer-widget-title">', 'after_title' => '</h3>'));
            break;
        case '3':
            register_sidebar(array('name' => __('Footer Widget 1', 'radix'), 'id' => 'footer-widget-1', 'description' => __('The first Row of Footer Widgets, place widgets as per no. of footer widgets setting you set in Theme Options', 'radix'), 'before_widget' => '<article class="footer-widgets col-md-4 %2$s" id="%1$s">', 'after_widget' => '</article>', 'before_title' => '<h3 class="footer-widget-title">', 'after_title' => '</h3>'));
            break;
        case '4':
            register_sidebar(array('name' => __('Footer Widget 1', 'radix'), 'id' => 'footer-widget-1', 'description' => __('The first Row of Footer Widgets, place widgets as per no. of footer widgets setting you set in Theme Options', 'radix'), 'before_widget' => '<article class="footer-widgets col-md-3 %2$s" id="%1$s">', 'after_widget' => '</article>', 'before_title' => '<h3 class="footer-widget-title">', 'after_title' => '</h3>'));
            break;
    }
}
Example #2
0
$color_entry_title_a_h = ro_get_option('color_entry_title_a_h');
$color_content_txt = ro_get_option('color_content_txt');
$color_content_meta = ro_get_option('color_content_meta');
$author_bg_color = ro_get_option('author_bg_color');
$author_txt_color = ro_get_option('author_txt_color');
//Sidebar
$color_sidebar_bg = ro_get_option('color_sidebar_bg');
$color_sidebar_txt_h = ro_get_option('color_sidebar_txt_h');
$color_sidebar_txt = ro_get_option('color_sidebar_txt');
$color_sidebar_txt_hov = ro_get_option('color_sidebar_txt_hov');
//Footer
$color_footer_bg = ro_get_option('color_footer_bg');
$color_footer_txt_a = ro_get_option('color_footer_txt_a');
$color_footer_txt_h = ro_get_option('color_footer_txt_h');
$color_footer_txt = ro_get_option('color_footer_txt');
$color_footer_txt_hov = ro_get_option('color_footer_txt_hov');
?>


<?php 
// Header Area ////////////////////////////////////////////
?>

#top-bar {
  background: <?php 
echo esc_attr($color_header_bg);
?>
;
}

#top-bar a {
Example #3
0
    <div class="container clearfix">
        <div class="row">
            
            <div class="col-md-6">
                <?php 
    if (ro_get_option('hide_page_title')) {
        ?>
                <?php 
        Radix_page_title();
        ?>
                <?php 
    }
    ?>
            </div>

            <?php 
    if (ro_get_option('hide_breadcrumb')) {
        ?>
            <div class="col-md-6">
                <?php 
        Radix_breadcrumb();
        ?>
            </div>
            <?php 
    }
    ?>
        </div>
    </div>
</div>
<?php 
}
Example #4
0
                        </div> 
                        <?php 
        if (has_nav_menu('footer-menu') && ro_get_option('enable_footer_menu')) {
            ?>
                            <nav class="footer-nav col-md-6" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" role="navigation">
                                <?php 
            Radix_footer_nav();
            ?>
                            </nav>
                        <?php 
        }
        ?>
                    </div>
                </div>
            <?php 
    }
    ?>
        </div> 
    </div> 
</footer>
<?php 
}
if (ro_get_option('scroll_to_top')) {
    ?>
    <a href="#" class="to-top"><i class="fa fa-arrow-up" aria-hidden="true"></i></a>
<?php 
}
wp_footer();
?>
</body>
</html>
Example #5
0
?>
     

<div id="primary" class="content-area <?php 
echo $col;
?>
">
	<?php 
while (have_posts()) {
    the_post();
    ?>
		<?php 
    get_template_part('loop/content', 'page');
    ?>
		<?php 
    if (ro_get_option('comments_on_pages')) {
        ?>
		<?php 
        if (comments_open() || '0' != get_comments_number()) {
            comments_template();
        }
        ?>
		<?php 
    }
    ?>
 
	<?php 
}
// end of the loop.
?>
</div> <!--/#primary -->
Example #6
0
function ro_get_option_media($option)
{
    $media = ro_get_option($option);
    if (isset($media['url']) && !empty($media['url'])) {
        return $media['url'];
    }
    return false;
}
Example #7
0
 * 
 */
?>

<div class="author-bio clearfix">
	<div class="bio-avatar">
		<?php 
echo get_avatar(get_the_author_meta('ID'), '58');
?>
	</div>
	<h2 class="bio-name">
		<?php 
the_author_posts_link();
?>
	</h2>
	<p class="bio-desc"><?php 
echo get_the_author_meta('description');
?>
</p>
	<?php 
if (ro_get_option('author_socials')) {
    ?>
	<div class="author-socials">
		<?php 
    Radix_author_socials();
    ?>
	</div>
	<?php 
}
?>
</div>
Example #8
0
function Radix_custom_excerpt_length($length)
{
    $count = ro_get_option('excerpt_length_count', '55');
    return $count;
}
Example #9
0
the_title();
?>
</h1>
		<div class="entry-meta">
			<?php 
Radix_posted_on();
?>
		</div>
	</header> <!-- entry-header -->

	<div class="entry-content clearfix">
		<?php 
/* translators: %s: Name of current post */
the_content(sprintf(__('Continue reading %s', 'radix'), the_title('<span class="screen-reader-text">', '</span>', false)));
wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'radix') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'current_before' => '', 'current_after' => '', 'pagelink' => '%'));
?>
	</div><!-- .entry-content -->
	
	<footer class="entry-footer">
		<?php 
Radix_entry_footer();
?>
	</footer> <!-- entry-footer -->
</article>

<?php 
if (ro_get_option('blog_author_bio')) {
    ?>
	<?php 
    get_template_part('loop/content', 'author');
}
Example #10
0
function Radix_footer_socials()
{
    ?>
	<nav id="footer-socials">
		<div class="social-bar">
			<div class="container-fluid clearfix">
				<div class="row-fluid">
					<span class="screen-reader-text"><?php 
    _e('Footer Socials', 'radix');
    ?>
</span>
					<span class="social-bar-text"><?php 
    echo ro_get_option('footer_socials_text');
    ?>
</span>
					<?php 
    $twitter = ro_get_option('twitter');
    if (!empty($twitter) && ro_get_option('twitter')) {
        ?>
					<a itemprop="url" class="twitter" title="twitter" href="<?php 
        echo esc_url($twitter);
        ?>
">
						<i class="fa fa-twitter" aria-hidden="true"></i><span class="screen-reader-text">Twitter</span>
					</a>
					<?php 
    }
    ?>
					<?php 
    $facebook = ro_get_option('facebook');
    if (!empty($facebook) && ro_get_option('facebook')) {
        ?>
					<a itemprop="url" class="facebook" title="facebook" href="<?php 
        echo esc_url($facebook);
        ?>
">
						<i class="fa fa-facebook" aria-hidden="true"></i><span class="screen-reader-text">Facebook</span>
					</a>
					<?php 
    }
    ?>
					<?php 
    $google_plus = ro_get_option('google_plus');
    if (!empty($google_plus) && ro_get_option('google_plus')) {
        ?>
					<a itemprop="url" class="google_plus" title="google+" href="<?php 
        echo esc_url($google_plus);
        ?>
">
						<i class="fa fa-google-plus" aria-hidden="true"></i><span class="screen-reader-text">Google+</span>
					</a>
					<?php 
    }
    ?>
					<?php 
    $pinterest = ro_get_option('pinterest');
    if (!empty($pinterest) && ro_get_option('pinterest')) {
        ?>
					<a itemprop="url" class="pinterest" title="pinterest" href="<?php 
        echo esc_url($pinterest);
        ?>
">
						<i class="fa fa-pinterest" aria-hidden="true"></i><span class="screen-reader-text">Pinterest</span>
					</a>
					<?php 
    }
    ?>
					<?php 
    $dribbble = ro_get_option('dribbble');
    if (!empty($dribbble) && ro_get_option('dribbble')) {
        ?>
  
					<a itemprop="url" class="dribbble" title="dribbble" href="<?php 
        echo esc_url($dribbble);
        ?>
">
						<i class="fa fa-dribbble" aria-hidden="true"></i><span class="screen-reader-text">Dribbble</span>
					</a>
					<?php 
    }
    ?>
					<?php 
    $linkedin = ro_get_option('linkedin');
    if (!empty($linkedin) && ro_get_option('linkedin')) {
        ?>
  
					<a itemprop="url" class="linkedin" title="linkedin" href="<?php 
        echo esc_url($linkedin);
        ?>
">
						<i class="fa fa-linkedin" aria-hidden="true"></i><span class="screen-reader-text">Linkedin</span>
					</a>
					<?php 
    }
    ?>
					<?php 
    $flickr = ro_get_option('flickr');
    if (!empty($flickr) && ro_get_option('flickr')) {
        ?>
  
					<a itemprop="url" class="flickr" title="flickr" href="<?php 
        echo esc_url($flickr);
        ?>
">
						<i class="fa fa-flickr" aria-hidden="true"></i><span class="screen-reader-text">Flickr</span>
					</a>
					<?php 
    }
    ?>
					<?php 
    $vimeo = ro_get_option('vimeo');
    if (!empty($vimeo) && ro_get_option('vimeo')) {
        ?>
 
					<a itemprop="url" class="vimeo" title="vimeo" href="<?php 
        echo esc_url($vimeo);
        ?>
">
						<i class="fa fa-vimeo-square" aria-hidden="true"></i><span class="screen-reader-text">Vimeo</span>
					</a>
					<?php 
    }
    ?>
					<?php 
    $rss = ro_get_option('rss');
    if (!empty($rss) && ro_get_option('rss')) {
        ?>
					<a itemprop="url" class="rss" title="rss" href="<?php 
        echo esc_url($rss);
        ?>
">
						<i class="fa fa-rss" aria-hidden="true"></i><span class="screen-reader-text">RSS</span>
					</a>
					<?php 
    }
    ?>
				</div>
			</div>
		</div>
	</nav>
<?php 
}
Example #11
0
                        <a itemprop="url" href="<?php 
        echo esc_url(ro_get_option('custom_url'));
        ?>
"><span itemprop="name"><?php 
        echo ro_get_option('custom_url_text');
        ?>
</span></a>
                    </li>
                    <?php 
    }
    ?>
                </ul><!-- header-contact -->
                <?php 
}
?>
            </div>
            <?php 
if (ro_get_option('header_socials')) {
    ?>
            <div class="col-md-6">
                <?php 
    radix_header_socials();
    ?>
            </div>
            <?php 
}
?>
        </div> <!-- row-fouid -->
    </div> <!-- .container -->
</div> <!-- top-bar -->
Example #12
0
} else {
    ?>
                    <h1 class="site-title" itemprop="headline">
                        <a href="<?php 
    echo esc_url(home_url('/'));
    ?>
" title="<?php 
    echo esc_attr(get_bloginfo('name', 'display'));
    ?>
" rel="home"><?php 
    bloginfo('name');
    ?>
</a>
                    </h1>
                    <?php 
    if (ro_get_option('header_description')) {
        ?>
                              
                    <p class="site-desc" itemprop="description"><?php 
        echo get_bloginfo('description');
        ?>
</p>
                    <?php 
    }
    ?>
                <?php 
}
?>
            </div> <!-- navbar-header -->
            <?php 
if (has_nav_menu('primary')) {
Example #13
0
}
?>
   
<div id="primary" class="content-area <?php 
echo $col;
?>
">
	<?php 
while (have_posts()) {
    the_post();
    ?>
		<?php 
    get_template_part('loop/content', 'single', get_post_format());
    ?>
		<?php 
    if (ro_get_option('post_navigation')) {
        ?>
		<?php 
        Radix_content_nav('nav-below');
        ?>
		<?php 
    }
    ?>
		<?php 
    // If comments are open or we have at least one comment, load up the comment template
    if (comments_open() || '0' != get_comments_number()) {
        comments_template();
    }
    ?>
	<?php 
}