Esempio n. 1
0
/**
 * Custom Read More Button
 */
function modify_read_more_link()
{
    $read_txt = bswp_option('read_more_text', 'Read More');
    $btn_block = bswp_option('read_more_block') == '1' ? 'btn-block' : '';
    $btn_size = 'btn-' . bswp_option('read_more_size');
    $btn_color = 'btn-' . bswp_option('read_more_color');
    return '<p><a class="more-link btn ' . $btn_color . ' ' . $btn_size . ' ' . $btn_block . '" href="' . get_permalink() . '">' . $read_txt . '</a></p>';
}
Esempio n. 2
0
    function bswp_custom_css()
    {
        $custom_css = '';
        if (bswp_option('custom_css') != '') {
            $custom_css .= bswp_option('custom_css');
        }
        if (bswp_option('disable_fixed_navbar') == '1') {
            $custom_css .= 'body { padding-top: 70px; }
				body.admin-bar .navbar {position:fixed; top: 28px; z-index: 1000; height: 40px;}';
        }
        //trim white space for faster page loading
        $custom_css_trimmed = preg_replace('/\\s+/', ' ', $custom_css);
        //echo css
        $css_output = "<!-- Custom CSS -->\n<style type=\"text/css\">\n" . $custom_css_trimmed . "\n</style>";
        if (!empty($custom_css)) {
            echo $css_output;
        }
    }
Esempio n. 3
0
 <?php 
echo $inverse;
?>
 ">
					<div class="container">
					<!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
					<div class="navbar-header">
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						</button>


						<?php 
$logo = bswp_option('custom_logo', false, 'url');
?>

						<?php 
if ($logo !== '') {
    ?>
							<a href="<?php 
    bloginfo('url');
    ?>
/" title="<?php 
    bloginfo('name');
    ?>
" rel="homepage"><img src="<?php 
    echo $logo;
    ?>
" alt="<?php 
Esempio n. 4
0
/**
 * Enqueue scripts and styles. Add bootstrap css and js here. Keep main.js last.
 */
function bswp_scripts()
{
    wp_enqueue_style('bootstrap-styles', get_template_directory_uri() . '/css/' . bswp_option('css_style', 'bootstrap.min.css'), array(), '3.3.6', 'all');
    wp_enqueue_style('font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.5.0', 'all');
    wp_enqueue_style('bswp-style', get_stylesheet_uri());
    wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '3.3.6', true);
    wp_enqueue_script('bswp-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true);
    wp_enqueue_script('isotope-js', get_template_directory_uri() . '/js/isotope.pkgd.min.js', array('jquery'), '2.0.1', true);
    wp_enqueue_script('imagesloaded-js', get_template_directory_uri() . '/js/imagesloaded.pkgd.min.js', array('jquery'), '3.1.8', true);
    wp_enqueue_script('main-js', get_template_directory_uri() . '/js/main.js', array('jquery'), '3.2.0', true);
    if (is_singular() && comments_open() && get_option('thread_comments')) {
        wp_enqueue_script('comment-reply');
    }
}
Esempio n. 5
0
    ?>
"  alt="<?php 
    bloginfo('name');
    ?>
"></a>
						<?php 
} else {
    ?>
							<div></div>
						<?php 
}
?>
					</div><!-- /.iconlogo -->
					<div class="wordmark">
						<?php 
$wordmark = bswp_option('custom_wordmark', false, 'url');
?>
						<?php 
if ($wordmark !== '') {
    ?>
							<a href="<?php 
    bloginfo('url');
    ?>
/" class="wmark" title="<?php 
    bloginfo('name');
    ?>
" rel="homepage"><img src="<?php 
    echo $wordmark;
    ?>
"  alt="<?php 
    bloginfo('name');
Esempio n. 6
0
						</p>
					</div>
				</div>
			</div><!-- end of #author-meta -->
        <?php 
    }
    // no description, no author's meta
    ?>

		<?php 
    //end password protection check
}
?>

		<?php 
if (bswp_option('enable_disable_tags') == '1') {
    ?>
		<p><?php 
    the_tags();
    ?>
</p>
		<?php 
}
?>

	</div><!-- .entry-content -->

	<footer class="entry-footer">
		<?php 
edit_post_link(__('Edit', 'bswp'), '<span class="edit-link">', '</span>');
?>
Esempio n. 7
0
    echo '<div id="filters" class="btn-group btn-group-' . $filter_btn_size . '">';
    echo '<button type="button" class="btn btn-' . $filter_btn_color . '" data-filter="*">' . __('All', 'bswp') . '</button>';
    if ($count > 0) {
        foreach ($terms as $term) {
            $termname = strtolower($term->name);
            $termname = str_replace(' ', '-', $termname);
            echo '<button type="button" class="btn btn-' . $filter_btn_color . '" data-filter=".' . $termname . '">' . $term->name . '</button>';
        }
    }
    echo "</div>";
}
?>

			<?php 
// Portfolio columns variable from Theme Options
$pcount = bswp_option('portfolio_column', '3');
?>

			<?php 
// the query
$the_query = new WP_Query(array('post_type' => 'portfolio'));
?>

			<?php 
if ($the_query->have_posts()) {
    ?>

				<div class="row">
					<div id="portfolio-items">
					<!-- the loop -->
					<?php 
Esempio n. 8
0
?>
" <?php 
post_class();
?>
>
	<header class="entry-header">
		<?php 
if (is_single()) {
    the_title('<h1 class="entry-title">', '</h1>');
} else {
    the_title('<h2 class="entry-title"><a href="' . esc_url(get_permalink()) . '" rel="bookmark">', '</a></h2>');
}
?>

		<?php 
if (bswp_option('disable_meta') == '1') {
    ?>
		<?php 
    if ('post' === get_post_type()) {
        ?>
		<div class="entry-meta">
			<?php 
        bswp_posted_on();
        ?>

				<?php 
        if ('post' == get_post_type()) {
            // Hide category and tag text for pages on Search
            ?>
			<?php 
            /* translators: used between list items, there is a space after the comma */
Esempio n. 9
0
}
?>

			<?php 
if (bswp_option('featured_btn') == '1') {
    ?>
	      
		    <p><a href="<?php 
    echo $btn_url;
    ?>
" target="_self" class="btn <?php 
    echo $btn_color . ' ' . $btn_size . ' ' . $btn_block;
    ?>
" role="button"><?php 
    echo $btn_text;
    ?>
</a></p>
		    <?php 
}
?>

		</div>
		<div class="col-lg-6">
			<?php 
if (bswp_option('right_featured') != '') {
    echo bswp_option('right_featured');
}
?>
		</div>
	</div>  
</div>
Esempio n. 10
0
					<?php 
    echo bswp_option('custom_copyright');
    ?>
				</div>
				<?php 
}
?>
				
			</div>
			<div class="col-md-6 col-lg-6">
				<?php 
if (bswp_option('custom_power') != '') {
    ?>
				<div class="poweredby">
					<?php 
    echo bswp_option('custom_power');
    ?>
				</div>
				<?php 
}
?>
	
			</div>

		</div><!-- .row -->
	</div><!-- .containr -->
</footer><!-- #colophon -->
</div><!-- #page -->

<?php 
wp_footer();