function bi_register_taxonomies()
 {
     //portfolio
     $portfolio_post_type_name = bi_get_data('portfolio_post_type_name') ? bi_get_data('portfolio_post_type_name') : __('Portfolio', 'gents');
     $portfolio_tax_slug = bi_get_data('portfolio_tax_slug') ? bi_get_data('portfolio_tax_slug') : 'portfolio-category';
     // Portfolio taxonomies
     register_taxonomy('portfolio_cats', 'portfolio', array('hierarchical' => true, 'labels' => apply_filters('bi_portfolio_tax_labels', array('name' => $portfolio_post_type_name . ' ' . __('Categories', 'gents'), 'singular_name' => $portfolio_post_type_name . ' ' . __('Category', 'gents'), 'search_items' => __('Search Categories', 'gents'), 'all_items' => __('All Categories', 'gents'), 'parent_item' => __('Parent Category', 'gents'), 'parent_item_colon' => __('Parent Category:', 'gents'), 'edit_item' => __('Edit  Category', 'gents'), 'update_item' => __('Update Category', 'gents'), 'add_new_item' => __('Add New  Category', 'gents'), 'new_item_name' => __('New Category Name', 'gents'), 'choose_from_most_used' => __('Choose from the most used categories', 'gents'))), 'query_var' => true, 'rewrite' => array('slug' => $portfolio_tax_slug)));
 }
 function bi_custom_login_logo()
 {
     if (bi_get_data('custom_login_logo') !== '') {
         $custom_login_logo_css = '';
         $custom_login_logo_css .= '<style type="text/css">';
         $custom_login_logo_css .= 'h1 a {';
         $custom_login_logo_css .= 'background-image:url(' . bi_get_data('custom_login_logo') . ') !important;width: auto !important;background-size: auto !important;';
         if (bi_get_data('custom_login_logo_height')) {
             $custom_login_logo_css .= 'height: ' . bi_get_data('custom_login_logo_height') . ' !important;';
         }
         $custom_login_logo_css .= '}</style>';
         echo $custom_login_logo_css;
     }
 }
    function bi_display_social()
    {
        $bi_social_links = bi_social_links();
        $social_style = bi_get_data('social_style') !== 'one' ? NULL : '-sign';
        if (!$bi_social_links) {
            return;
        }
        $output = '<div class="social-icons nav pull-right">';
        foreach ($bi_social_links as $social_link) {
            if (bi_get_data($social_link)) {
                $output .= '<a href="' . bi_get_data($social_link) . '" title="' . $social_link . '" target="_blank">
						<i class="icon-' . $social_link . '' . $social_style . '"></i></a>';
            }
        }
        $output .= '</div><!-- #social -->';
        echo apply_filters('bi_display_social', $output);
    }
        <div class="col-lg-4 scroll-top"><a href="#scroll-top" title="<?php 
esc_attr_e('scroll to top', 'responsive');
?>
"><?php 
_e('<i class="icon-chevron-up"></i>', 'responsive');
?>
</a></div>
        

        <div class="col-lg-4 powered">

            <?php 
if (bi_get_data('custom_power')) {
    ?>
        <?php 
    echo bi_get_data('custom_power');
    ?>
      <?php 
} else {
    ?>
               <a href="<?php 
    echo esc_url(__('http://strappress.com', 'responsive'));
    ?>
" title="<?php 
    esc_attr_e('StrapPress', 'responsive');
    ?>
">
          <?php 
    printf('StrapPress');
    ?>
</a>
/**
 * Custom Read More Button
 */
function my_more_link($more_link, $more_link_text)
{
    $read_more_size = 'btn-' . bi_get_data('read_more_size', '');
    $read_more_text = bi_get_data('read_more_text', '');
    if (bi_get_data('read_more_block', '1')) {
        $read_more_block = "btn-block";
    }
    return str_replace($more_link_text, '<p><a href="' . get_permalink() . '" class="readmore btn btn-default ' . $read_more_block . '' . $read_more_size . ' ">' . $read_more_text . ' </a> </p>', $more_link);
}
 function bi_create_post_types()
 {
     /******* Portfolio Post Type *******/
     $portfolio_slug = bi_get_data('portfolio_post_type_slug') ? bi_get_data('portfolio_post_type_slug') : 'portfolio';
     $portfolio_post_type_name = bi_get_data('portfolio_post_type_name') ? bi_get_data('portfolio_post_type_name') : __('Portfolio', 'gents');
     $portfolio_labels = array('name' => $portfolio_post_type_name);
     register_post_type('Portfolio', array('labels' => apply_filters('bi_portfolio_labels', $portfolio_labels), 'public' => true, 'has_archive' => false, 'supports' => array('title', 'editor', 'thumbnail', 'revisions', 'comments', 'custom-fields'), 'query_var' => true, 'rewrite' => array('slug' => $portfolio_slug), 'menu_icon' => get_template_directory_uri() . '/images/admin/icon-portfolio.png'));
 }
function bootstrap_styles()
{
    // Register the style like this for a theme:
    wp_register_style('bootstrap-styles', get_template_directory_uri() . '/admin/layouts/' . bi_get_data('bootswatch'), array(), '3.0.0', 'all');
    wp_register_style('font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '3.0', 'all');
    wp_register_style('magnific', get_template_directory_uri() . '/css/magnific.css', array(), '0.9.4', 'all');
    wp_register_style('responsive-style', get_stylesheet_uri(), false, '3.0.0');
    //  enqueue the style:
    wp_enqueue_style('bootstrap-styles');
    wp_enqueue_style('font-awesome');
    wp_enqueue_style('magnific');
    wp_enqueue_style('responsive-style');
}
Exemple #8
0
 function bi_custom_css()
 {
     $custom_css = '';
     /**custom css field**/
     if (bi_get_data('custom_css_box')) {
         $custom_css .= bi_get_data('custom_css_box');
     }
     //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;
     }
 }
 function bi_load_google_fonts()
 {
     $output_stylesheets = '';
     $output_css = '';
     // Body
     $body_font = bi_get_data('body_gfont', 'default');
     if ($body_font !== 'default') {
         $output_stylesheets .= "<link href='http://fonts.googleapis.com/css?family={$body_font}' rel='stylesheet' type='text/css'>";
         $output_css .= "body{font-family:'{$body_font}'; }";
     }
     // Headings
     $headings_font = bi_get_data('headings_gfont', 'default');
     if ($headings_font !== 'default') {
         $output_stylesheets .= "<link href='http://fonts.googleapis.com/css?family={$headings_font}' rel='stylesheet' type='text/css'>";
         $output_css .= "h1,h2,h3,h4,h5,h6, .hp-highlight h3 {font-family:'{$headings_font}'; }";
     }
     // Brand
     $brand_font = bi_get_data('navbar_brand', 'default');
     if ($brand_font !== 'default') {
         $output_stylesheets .= "<link href='http://fonts.googleapis.com/css?family={$brand_font}' rel='stylesheet' type='text/css'>";
         $output_css .= ".navbar-brand {font-family:'{$brand_font}'; }";
     }
     // Menu
     $menu_font = bi_get_data('navigation_gfont', 'default');
     if ($menu_font !== 'default') {
         $output_stylesheets .= "<link href='http://fonts.googleapis.com/css?family={$menu_font}' rel='stylesheet' type='text/css'>";
         $output_css .= ".navbar-nav > li > a, .dropdown-menu > li > a {font-family:'{$menu_font}'; }";
     }
     // Output stylesheets
     if ($output_stylesheets) {
         echo '<!-- Google Fonts -->';
         echo $output_stylesheets;
     }
     // Output CSS
     if ($output_css) {
         echo '<!-- Custom Typography -->';
         echo '<style type="text/css">' . $output_css . '</style>';
     }
 }
Exemple #10
0
/**
 * Custom Read More Button
 */
function my_more_link($more_link, $more_link_text)
{
    $read_more_text = bi_get_data('read_more_text', '');
    return str_replace($more_link_text, '<p><a href="' . get_permalink() . '" class="readmore">' . $read_more_text . ' </a> </p>', $more_link);
}
Exemple #11
0
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>

           <?php 
if (bi_get_data('custom_logo') !== '') {
    ?>
            <div id="logo"><a href="<?php 
    echo home_url();
    ?>
/" title="<?php 
    bloginfo('name');
    ?>
" rel="home">
                <img src="<?php 
    echo bi_get_data('custom_logo');
    ?>
" alt="<?php 
    bloginfo('name');
    ?>
" />
            </a></div>
            <?php 
} else {
    ?>
            <?php 
    if (is_front_page()) {
        ?>
            <a class="navbar-brand" href="<?php 
        bloginfo('url');
        ?>
Exemple #12
0
>
                <header>
                <h1 class="post-title"><a href="<?php 
        the_permalink();
        ?>
" rel="bookmark" title="<?php 
        printf(__('Permanent Link to %s', 'responsive'), the_title_attribute('echo=0'));
        ?>
"><?php 
        the_title();
        ?>
</a></h1>
                </header>

                <?php 
        if (bi_get_data('enable_disable_meta', '1') == '1') {
            ?>
                <section class="post-meta">
                <?php 
            printf(__('<i class="icon-time"></i> %2$s <i class="icon-user"></i> %3$s', 'responsive'), 'meta-prep meta-prep-author', sprintf('<a href="%1$s" title="%2$s" rel="bookmark">%3$s</a>', get_permalink(), esc_attr(get_the_time()), get_the_date()), sprintf('<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>', get_author_posts_url(get_the_author_meta('ID')), sprintf(esc_attr__('View all posts by %s', 'responsive'), get_the_author()), get_the_author()));
            ?>
				    <?php 
            if (comments_open()) {
                ?>
                        <span class="comments-link">
                        <span class="mdash">&mdash;</span>
                    <?php 
                comments_popup_link(__('No Comments <i class="icon-arrow-down"></i>', 'responsive'), __('1 Comment <i class="icon-arrow-down"></i>', 'responsive'), __('% Comments <i class="icon-arrow-down"></i>', 'responsive'));
                ?>
                        </span>
                    <?php 
    function bi_custom_css()
    {
        $custom_css = '';
        /**custom css field**/
        if (bi_get_data('custom_css_box')) {
            $custom_css .= bi_get_data('custom_css_box');
        }
        //background image
        $custom_background = bi_get_data('custom_bg');
        if ($custom_background == '' || $custom_background == get_template_directory_uri() . '/images/bg/bg0.png') {
        } elseif ($custom_background !== '' && $custom_background !== get_template_directory_uri() . '/images/bg/bg_20.png') {
            $custom_css .= 'body{background-image: url(' . $custom_background . ');}';
        } else {
            $custom_css .= 'body{background-image: none;}';
        }
        //background color
        if (bi_get_data('background_color', '#d9d9d9') !== '#d9d9d9') {
            $custom_css .= 'body{background-color: ' . bi_get_data('background_color') . ';}';
        }
        //header padding
        if (bi_get_data('header_padding') && bi_get_data('header_padding') !== '25px') {
            $custom_css .= 'header{padding-top: ' . bi_get_data('header_padding') . '; padding-bottom: ' . bi_get_data('header_padding') . ';}';
        }
        //header
        if (bi_get_data('header_background') !== '#FFF') {
            $custom_css .= 'header { background: ' . bi_get_data('header_background') . ';}';
        }
        if (bi_get_data('disable_fixed_navbar') == '1') {
            $custom_css .= 'body { padding-top: 70px; }';
        }
        //body text color
        if (bi_get_data('main_text_color') !== '#333333') {
            $custom_css .= 'body { color: ' . bi_get_data('main_text_color') . ';}';
        }
        //body link color
        if (bi_get_data('main_link_color') !== '#428bca') {
            $custom_css .= 'a { color: ' . bi_get_data('main_link_color') . ';}';
        }
        //body link hover color
        if (bi_get_data('main_link_hover_color') !== '#2a6496') {
            $custom_css .= 'a:hover, a:focus { color: ' . bi_get_data('main_link_hover_color') . ';}';
        }
        //navbar color
        if (bi_get_data('navbar_color') !== '#eeeeee') {
            $custom_css .= '.navbar {background-color: ' . bi_get_data('navbar_color') . ' !important;}';
        }
        //navbar brand
        if (bi_get_data('navbar_brand_color') !== '#777777') {
            $custom_css .= '.navbar-brand {color: ' . bi_get_data('navbar_brand_color') . ' !important;}';
        }
        //navbar brand
        if (bi_get_data('navbar_brand_color_hover') !== '#5e5e5e') {
            $custom_css .= '.navbar-brand:hover, .navbar-brand:focus {color: ' . bi_get_data('navbar_brand_color_hover') . ' !important;}';
        }
        //navbar menu links
        if (bi_get_data('navbar_menu_links') !== '#777777') {
            $custom_css .= '.navbar-nav > li > a, .navbar-nav > .active > a, .navbar-nav > .active > a:hover, .navbar-nav > .active > a:focus 
				 {color: ' . bi_get_data('navbar_menu_links') . ' !important;}';
        }
        //navbar menu links hover
        if (bi_get_data('navbar_menu_links_hover') !== '#333333') {
            $custom_css .= '.navbar-nav > li > a:hover, .navbar-nav > li > a:focus 
				 {color: ' . bi_get_data('navbar_menu_links_hover') . ' !important;}';
        }
        //navbar menu link background color
        if (bi_get_data('navbar_menu_link_bg') !== '#d5d5d5') {
            $custom_css .= '.navbar-nav > .open > a, .navbar-nav > .open > a:hover, .navbar-nav > .open > a:focus, .navbar-nav > .active > a, .navbar-nav > .active > a:hover, .navbar-nav > .active > a:focus 
				 {background-color: ' . bi_get_data('navbar_menu_link_bg') . ' !important;}';
        }
        //navbar dropdown menu link color
        if (bi_get_data('navbar_dd_link') !== '#333333') {
            $custom_css .= '.dropdown-menu > li > a 
				 {color: ' . bi_get_data('navbar_dd_link') . ' !important;}';
        }
        //navbar dropdown menu link hover color
        if (bi_get_data('navbar_dd_hover_link') !== '#FFFFFF') {
            $custom_css .= '.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus 
				 {color: ' . bi_get_data('navbar_dd_hover_link') . ' !important;}';
        }
        //navbar dropdown menu link background color
        if (bi_get_data('navbar_bg_hover_link') !== '#357ebd') {
            $custom_css .= '.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus 
				 {background-color: ' . bi_get_data('navbar_bg_hover_link') . ' !important;
					background-image: -webkit-gradient(linear, left 0%, left 100%, from(' . bi_get_data('navbar_bg_hover_link') . '), to(' . bi_get_data('navbar_bg_hover_link') . '));
					background-image: -webkit-linear-gradient(top, ' . bi_get_data('navbar_bg_hover_link') . ', 0%, ' . bi_get_data('navbar_bg_hover_link') . ', 100%);
					background-image: -moz-linear-gradient(top, ' . bi_get_data('navbar_bg_hover_link') . ' 0%, ' . bi_get_data('navbar_bg_hover_link') . ' 100%);
					background-image: linear-gradient(to bottom, ' . bi_get_data('navbar_bg_hover_link') . ' 0%, ' . bi_get_data('navbar_bg_hover_link') . ' 100%);}';
        }
        //jumbotron background color
        if (bi_get_data('jumbotron_bg') !== '#eeeeee') {
            $custom_css .= '.jumbotron 
				 {background-color: ' . bi_get_data('jumbotron_bg') . ' !important;}';
        }
        //jumbotron text color
        if (bi_get_data('jumbotron_text_color') !== '#333333') {
            $custom_css .= '.jumbotron h1, .jumbotron h2, .jumbotron p 
				 {color: ' . bi_get_data('jumbotron_text_color') . ' !important;}';
        }
        //jumbotron button color
        if (bi_get_data('jumbotron_button_color') !== '#474949') {
            $custom_css .= '.jumbotron .btn-default
				 {background-color: ' . bi_get_data('jumbotron_button_color') . ' !important;
				 border-color: ' . bi_get_data('jumbotron_button_color') . ' !important; 
				color: #ffffff;}';
        }
        //jumbotron button hover color
        if (bi_get_data('jumbotron_button_hover_color') !== '#3a3c3c') {
            $custom_css .= '.jumbotron .btn-default:hover, .jumbotron .btn-default:focus, .jumbotron .btn-default:active, .jumbotron .btn-default.active
				 {background-color: ' . bi_get_data('jumbotron_button_hover_color') . ' !important;
				 border-color: ' . bi_get_data('jumbotron_button_hover_color') . ' !important; }';
        }
        //homepage heading color
        if (bi_get_data('home_widget_heading') !== '#333333') {
            $custom_css .= '.home-widgets h3 
				 {color:' . bi_get_data('home_widget_heading') . ' !important;}';
        }
        //homepage text color
        if (bi_get_data('home_widget_text') !== '#333333') {
            $custom_css .= '.home #widgets ul, .home #widgets .textwidget, .home #widgets .tagcloud, .home #widgets #searchform, .home #widgets #calendar_wrap 
				 {color:' . bi_get_data('home_widget_text') . ' !important;}';
        }
        //read more button color
        if (bi_get_data('read_more_button_color') !== '#474949') {
            $custom_css .= '.readmore.btn-default
				 {background-color: ' . bi_get_data('read_more_button_color') . ' !important;
				 border-color: ' . bi_get_data('read_more_button_color') . ' !important;
				 color: #ffffff; }';
        }
        //read more button hover color
        if (bi_get_data('read_more_button_hover_color') !== '#3a3c3c') {
            $custom_css .= '.readmore.btn-default:hover, .readmore.btn-default:focus, .readmore.btn-default:active, .readmore.btn-default.active
				 {background-color: ' . bi_get_data('read_more_button_hover_color') . ' !important;
				 border-color: ' . bi_get_data('read_more_button_hover_color') . ' !important; }';
        }
        //breadcrumb bg color
        if (bi_get_data('breadcrumb_bg') !== '#f5f5f5') {
            $custom_css .= '.breadcrumb 
				 {background-color: ' . bi_get_data('breadcrumb_bg') . ' !important;}';
        }
        //breadcrumb link color
        if (bi_get_data('breadcrumb_link') !== '#428bca') {
            $custom_css .= '.breadcrumb a
				 {color: ' . bi_get_data('breadcrumb_link') . ' !important;}';
        }
        //breadcrumb link active
        if (bi_get_data('breadcrumb_active') !== '#999999') {
            $custom_css .= '.breadcrumb > .active 
				 {color: ' . bi_get_data('breadcrumb_active') . ' !important;}';
        }
        //breadcrumb link active
        if (bi_get_data('breadcrumb_sep') !== '#cccccc') {
            $custom_css .= '.breadcrumb > li + li:before 
				 {color: ' . bi_get_data('breadcrumb_sep') . ' !important;}';
        }
        //sidebar bg color
        if (bi_get_data('sidebar_bg') !== '#f5f5f5') {
            $custom_css .= '.well 
				 {background-color: ' . bi_get_data('sidebar_bg') . ' !important;}';
        }
        //sidebar border color
        if (bi_get_data('sidebar_border') !== '#e3e3e3') {
            $custom_css .= '.well 
				 {border: 1px solid ' . bi_get_data('sidebar_border') . ' !important;}';
        }
        //sidebar heading color
        if (bi_get_data('sidebar_heading') !== '#333333') {
            $custom_css .= '.well .widget-title 
				 {color:' . bi_get_data('sidebar_heading') . ' !important;}';
        }
        //sidebar text color
        if (bi_get_data('sidebar_text') !== '#333333') {
            $custom_css .= '#widgets ul, #widgets .textwidget, #widgets .tagcloud, #widgets #searchform, #widgets #calendar_wrap 
				 {color:' . bi_get_data('sidebar_text') . ' !important;}';
        }
        //sidebar link color
        if (bi_get_data('sidebar_link') !== '#428bca') {
            $custom_css .= '.well a 
				 {color:' . bi_get_data('sidebar_link') . ' !important;}';
        }
        //sidebar link hover color
        if (bi_get_data('sidebar_link_hover') !== '#2a6496') {
            $custom_css .= '.well a:hover, .well a:focus
				 {color:' . bi_get_data('sidebar_link_hover') . ' !important;}';
        }
        //social link color
        if (bi_get_data('social_link') !== '#428bca') {
            $custom_css .= '.social-icons a 
				 {color:' . bi_get_data('social_link') . ' !important;}';
        }
        //social link hover color
        if (bi_get_data('social_link_hover') !== '#2a6496') {
            $custom_css .= '.social-icons a:hover, .social-icons a:focus
				 {color:' . bi_get_data('social_link_hover') . ' !important;}';
        }
        //portfolio filter button color
        if (bi_get_data('filter_button_color') !== '#474949') {
            $custom_css .= '#portfolio-filter .btn-default
				 {background-color: ' . bi_get_data('filter_button_color') . ' !important;
				 border-color: ' . bi_get_data('filter_button_color') . ' !important; 
				color: #ffffff;}';
        }
        //portfolio filter button hover color
        if (bi_get_data('filter_button_hover_color') !== '#3a3c3c') {
            $custom_css .= '#portfolio-filter .btn-default:hover, #portfolio-filter .btn-default:focus, #portfolio-filter .btn-default:active, #portfolio-filter .btn-default.active
				 {background-color: ' . bi_get_data('filter_button_hover_color') . ' !important;
				 border-color: ' . bi_get_data('filter_button_hover_color') . ' !important; 
				color: #ffffff;}';
        }
        //portfolio button color
        if (bi_get_data('portfolio_button_color') !== '#474949') {
            $custom_css .= '.project-links .btn-default
				 {background-color: ' . bi_get_data('portfolio_button_color') . ' !important;
				 border-color: ' . bi_get_data('portfolio_button_color') . ' !important; 
				color: #ffffff;}';
        }
        //portfolio button hover color
        if (bi_get_data('portfolio_button_hover_color') !== '#3a3c3c') {
            $custom_css .= '.project-links .btn-default:hover, .project-links .btn-default:focus, .project-links .btn-default:active, .project-links .btn-default.active
				 {background-color: ' . bi_get_data('portfolio_button_hover_color') . ' !important;
				 border-color: ' . bi_get_data('portfolio_button_hover_color') . ' !important; }';
        }
        //brand typography
        if (bi_get_data('brand_font_size') !== '13px') {
            $custom_css .= '.navbar-brand { font-size: ' . bi_get_data('brand_font_size') . '; }';
        }
        if (bi_get_data('brand_font_style') == 'normal') {
            $custom_css .= '.navbar-brand { font-weight: normal; }';
        }
        if (bi_get_data('brand_font_style') == 'italic') {
            $custom_css .= '.navbar-brand { font-style: italic; font-weight: normal; }';
        }
        if (bi_get_data('brand_font_style') == 'bold italic') {
            $custom_css .= '.navbar-brand { font-style: italic; }';
        }
        //navbar typography
        if (bi_get_data('navigation_font_size') !== '13px') {
            $custom_css .= '.navbar-nav > li > a, .dropdown-menu > li > a { font-size: ' . bi_get_data('navigation_font_size') . '; }';
        }
        if (bi_get_data('navigation_font_style') == 'normal') {
            $custom_css .= '.navbar-nav > li > a, .dropdown-menu > li > a { font-weight: normal; }';
        }
        if (bi_get_data('navigation_font_style') == 'italic') {
            $custom_css .= '.navbar-nav > li > a, .dropdown-menu > li > a { font-style: italic; font-weight: normal; }';
        }
        if (bi_get_data('navigation_font_style') == 'bold italic') {
            $custom_css .= '.navbar-nav > li > a, .dropdown-menu > li > a { font-style: italic; }';
        }
        //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;
        }
    }
Exemple #14
0
//social output - see functions/social-output.php
if (bi_get_data('disable_social', '1') == '1') {
    bi_display_social();
}
?>
    </div>
</div>

<nav role="navigation">
    <div class="navbar navbar-default <?php 
if (bi_get_data('disable_inverse_navbar', '1') == '1') {
    echo 'navbar-inverse';
}
?>
 <?php 
if (bi_get_data('disable_fixed_navbar', '1') == '1') {
    echo 'navbar-fixed-top';
}
?>
">
        <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>

           
        </div>
            the_permalink();
            ?>
" title="<?php 
            the_title_attribute();
            ?>
" >
      <?php 
            the_post_thumbnail();
            ?>
    </a>
  <?php 
        }
        ?>

  <?php 
        if (bi_get_data('project_title', '1')) {
            ?>
  <p><?php 
            the_title();
            ?>
</p>
  <?php 
        }
        ?>
</div> <!-- /col -->

<?php 
    }
    ?>
</div><!-- /row -->
</div><!-- /container -->  
            if (bi_get_data('p_button_block', '1')) {
                $btn_block = "btn-block";
            }
            ?>
                               
                            <p class="project-links"><a class="btn <?php 
            echo $btn_block;
            ?>
 btn-default <?php 
            echo $btn_size;
            ?>
" href="<?php 
            the_permalink();
            ?>
"> <?php 
            echo bi_get_data('p_button_text', 'View Project');
            ?>
</a></p>
                            <?php 
        }
        ?>
                        </div>
                  

                    <?php 
    }
} else {
    ?>

                    <div class="error-not-found">Sorry, no portfolio entries for while.</div>
        <div id="content-sitemap">
        
<?php 
if (have_posts()) {
    ?>

		<?php 
    while (have_posts()) {
        the_post();
        ?>
        
        

       <?php 
        if (bi_get_data('enable_disable_breadcrumbs', '1') == '1') {
            ?>
        <?php 
            echo responsive_breadcrumb_lists();
            ?>
        <?php 
        }
        ?>
        
            <article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class();
        ?>
>
Exemple #18
0
 function bi_footer_tracking()
 {
     if (bi_get_data('tracking_footer')) {
         echo bi_get_data('tracking_footer');
     }
 }
Exemple #19
0
  
            
            </div><!-- end of .call-to-action -->
            <?php 
    }
    ?>
           
            
        </div><!-- end of col-lg-6 -->

        <div id="hero-image" class="col-lg-6"> 
                           
            <?php 
    // First let's check if headline was set
    if (bi_get_data('featured_content', 'no entry')) {
        echo bi_get_data('featured_content', 'no entry');
        // If not display dummy headline for preview purposes
    } else {
        echo '<img class="aligncenter" src="' . get_stylesheet_directory_uri() . '/images/featured-image.png" width="440" height="300" alt="" />';
    }
    ?>
 
                                   
        </div><!-- end of col-lg-6 --> 
   		</div>
        </div><!-- end of .jumbotron -->
         <?php 
} else {
    ?>
     
  
        ?>
 
    </section><!-- end of .post-meta -->

    <section class="post-entry">
        <?php 
        the_excerpt();
        ?>
        <?php 
        custom_link_pages(array('before' => '<nav class="pagination"><ul>' . __(''), 'after' => '</ul></nav>', 'next_or_number' => 'next_and_number', 'nextpagelink' => __('&rarr;'), 'previouspagelink' => __('&larr;'), 'pagelink' => '%', 'echo' => 1));
        ?>
                        </section><!-- end of .post-entry -->

                        <footer class="article-footer">
                            <?php 
        if (bi_get_data('enable_disable_archive_tags', '1') == '1') {
            ?>
                            <div class="post-data">
                                <?php 
            the_tags(__('Tagged with:', 'responsive') . ' ', ' ', '<br />');
            ?>
  
                            </div><!-- end of .post-data --> 
                            <?php 
        }
        ?>
             

                            <div class="post-edit"><?php 
        edit_post_link(__('Edit', 'responsive'));
        ?>
Exemple #21
0
 *
 * For more information, please visit:
 * @link http://www.deluxeblogtips.com/meta-box/
 */
/********************* META BOX DEFINITIONS ***********************/
/**
 * Prefix of meta keys (optional)
 * Use underscore (_) at the beginning to make keys hidden
 * Alt.: You also can make prefix empty to disable it
 */
// Better has an underscore as last sign
$prefix = 'wtf_';
global $meta_boxes;
$meta_boxes = array();
// Post Type name
$portfolio_post_type_name = bi_get_data('portfolio_post_type_name') ? bi_get_data('portfolio_post_type_name') : __('Portfolio', 'gents');
//Individual Portfolio
$meta_boxes[] = array('id' => 'portfolio_metabox', 'title' => 'Options', 'pages' => array('portfolio'), 'context' => 'normal', 'priority' => 'high', 'show_names' => true, 'fields' => array(array('name' => __('Main Title', 'gents'), 'desc' => __('This is the content that will be displayed at the very top. Optional.', 'gents'), 'id' => $prefix . 'portfolio_top_title', 'type' => 'textarea', 'cols' => 20, 'rows' => 3, 'std' => '<h3>PROJECT NAME</h3>'), array('name' => __('Show Categories', 'gents'), 'id' => $prefix . 'port_cats', 'type' => 'radio', 'options' => array('value1' => __('Yes', 'gents'), 'value2' => __('No', 'gents'))), array('name' => __('Images', 'gents'), 'id' => "thickbox", 'type' => 'thickbox_image')));
// Portfolio Page
$meta_boxes[] = array('title' => __('Options', 'gents'), 'pages' => array('page'), 'fields' => array(array('name' => __('Title', 'gents'), 'desc' => __('Enter the text to be displayed above the portfolio items. ', 'gents'), 'id' => $prefix . 'portfolio_title', 'type' => 'textarea', 'cols' => 20, 'rows' => 3, 'std' => '<h3>LATEST WORKS</h3>')), 'only_on' => array('template' => array('template-portfolio.php')));
// About
$meta_boxes[] = array('title' => __('Options', 'gents'), 'pages' => array('page'), 'fields' => array(array('name' => __('Title', 'gents'), 'desc' => __('Enter the text to be displayed above the main content. ', 'gents'), 'id' => $prefix . 'about_title', 'type' => 'textarea', 'cols' => 20, 'rows' => 3, 'std' => '<h1>About Stanley!</h1>'), array('name' => __('Left Text', 'gents'), 'desc' => __('Enter the text to be displayed under the columns on the left. Optional.', 'gents'), 'id' => $prefix . 'about_left_txt', 'type' => 'textarea', 'cols' => 20, 'rows' => 3, 'std' => '<h4>THE THINKING</h4>
				<p>Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.</p>'), array('name' => __('Right Text', 'gents'), 'desc' => __('Enter the text to be displayed under the columns on the right. Optional.', 'gents'), 'id' => $prefix . 'about_right_txt', 'type' => 'textarea', 'cols' => 20, 'rows' => 3, 'std' => '<h4>THE SKILLS</h4>
				Wordpress
				<div class="progress">
					<div class="progress-bar progress-bar-theme" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
						<span class="sr-only">60% Complete</span>
					</div>
				</div>

				Photoshop