function bi_register_taxonomies() { //portfolio $portfolio_post_type_name = bi_option('portfolio_post_type_name') ? bi_option('portfolio_post_type_name') : __('Portfolio', 'gents'); $portfolio_tax_slug = bi_option('portfolio_tax_slug') ? bi_option('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_create_post_types() { /******* Portfolio Post Type *******/ $portfolio_slug = bi_option('portfolio_post_type_slug') ? bi_option('portfolio_post_type_slug') : 'portfolio'; $portfolio_post_type_name = bi_option('portfolio_post_type_name') ? bi_option('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() . '/css/layouts/' . bi_option('bootswatch'), array(), '3.3.6', 'all'); wp_register_style('font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.5.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.3.6'); // enqueue the style: wp_enqueue_style('bootstrap-styles'); wp_enqueue_style('font-awesome'); wp_enqueue_style('magnific'); wp_enqueue_style('responsive-style'); }
function bi_custom_css() { $custom_css = ''; /**custom css field**/ if (bi_option('custom_css_box')) { $custom_css .= bi_option('custom_css_box'); } if (bi_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; } }
<div class="row"> <div class="col-lg-9"> <div id="content"> <?php if (have_posts()) { ?> <?php while (have_posts()) { the_post(); ?> <?php if (bi_option('enable_disable_breadcrumbs', '1') == '1') { ?> <?php echo responsive_breadcrumb_lists(); ?> <?php } ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> >
?> </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' => __('→'), 'previouspagelink' => __('←'), 'pagelink' => '%', 'echo' => 1)); ?> </section><!-- end of .post-entry --> <footer class="article-footer"> <?php if (bi_option('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')); ?>
_e('Search', 'responsive'); ?> "> </form> <?php } ?> <?php if (bi_option('disable_social') == '1') { ?> <div class="social-icons navbar-right"> <?php $social_options = bi_option('social_icons'); ?> <?php foreach ($social_options as $key => $value) { if ($value) { ?> <a href="<?php echo $value; ?> " title="<?php echo $key; ?> " target="_blank"> <i class="fa fa-<?php echo $key; ?>
/** * Custom Read More Button */ function my_more_link($more_link, $more_link_text) { $read_more_size = 'btn-' . bi_option('read_more_size', ''); $read_more_color = 'btn-' . bi_option('read_more_color', ''); $read_more_text = bi_option('read_more_text', ''); $read_more_block = ''; if (bi_option('read_more_block', '1')) { $read_more_block = "btn-block"; } return str_replace($more_link_text, '<p><a href="' . get_permalink() . '" class="readmore btn ' . $read_more_color . ' ' . $read_more_block . ' ' . $read_more_size . ' ">' . $read_more_text . ' </a> </p>', $more_link); }
function bi_footer_tracking() { if (bi_option('tracking_footer')) { echo bi_option('tracking_footer'); } }
bloginfo('charset'); ?> " /> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <title><?php wp_title('|', true, 'right'); ?> </title> <?php if (bi_option('custom_favicon') !== '') { ?> <link rel="icon" type="image/png" href="<?php echo bi_option('custom_favicon', false, 'url'); ?> " /> <?php } ?> <!-- CSS --> <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?> /fonts/fonts.css"> <link rel="profile" href="http://gmpg.org/xfn/11" /> <link rel="pingback" href="<?php bloginfo('pingback_url');
<?php $btn_color = 'btn-' . bi_option('p_btn_color', ''); $btn_size = 'btn-' . bi_option('p_btn_size', ''); if (bi_option('p_button_block', '1')) { $btn_block = "btn-block"; } ?> <p class="project-links"><a class="btn <?php echo $btn_block . ' ' . $btn_color . ' ' . $btn_size; ?> " href="<?php the_permalink(); ?> "> <?php echo bi_option('p_button_text', 'View Project'); ?> </a></p> <?php } ?> </div> <?php } } else { ?> <div class="error-not-found">Sorry, no portfolio entries for while.</div>
> <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_option('enable_disable_meta', '1') == '1') { ?> <section class="post-meta"> <?php printf(__('<i class="fa fa-clock-o"></i> %2$s <i class="fa fa-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">—</span> <?php comments_popup_link(__('No Comments', 'responsive'), __('1 Comment', 'responsive'), __('% Comments', 'responsive')); ?> </span> <?php
<div class="col-lg-4 scroll-top hidden-print"><a href="#scroll-top" title="<?php esc_attr_e('scroll to top', 'responsive'); ?> "><?php _e('<i class="fa fa-chevron-up"></i>', 'responsive'); ?> </a></div> <div class="col-lg-4 powered"> <?php if (bi_option('custom_power')) { ?> <?php echo bi_option('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>
echo __('Call to Action', 'responsive'); echo '</a>'; } ?> </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_option('featured_content', 'no entry')) { echo bi_option('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 -->