public static function theme_setup() { self::jquery(); self::shortcodes_in_widgets(); self::remove_head_meta(); self::remove_update_notification(); self::theme_images(); add_theme_support('post-thumbnails'); add_theme_support('automatic-feed-links'); core_functions::favicon(); core_functions::no_smiley_face(); core_functions::all_post_formats(); }
the_permalink(); ?> " title="<?php printf(esc_attr__('Permalink to %s', 'toolbox'), the_title_attribute('echo=0')); ?> " rel="bookmark"> <?php cwp::fluid_img('home-thumb', 100); ?> </a> <div class="clear">Cleared</div> </div> <?php } ?> <div class="contents"> <?php cwp::excerpt(200); ?> <div class="post-meta"> <?php //the_time('F j, Y'); the_category('/'); echo " (" . core_functions::time_ago() . ")"; ?> <!-- class content --> </div> </div>
<?php cwp_layout::tpl_part('base', get_post_format() ? get_post_format() : 'general'); ?> <?php } ?> <?php /* Display navigation to next/previous pages when applicable */ if ($wp_query->max_num_pages > 1) { ?> <nav id="nav-below"> <!-- <h1 class="section-heading"><?php _e('Post navigation', 'basejump'); ?> </h1>--> <!-- <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">←</span> Older posts', 'basejump')); ?> </div> <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">→</span>', 'basejump')); ?> </div>--> <?php core_functions::pagination(); ?> </nav><!-- #nav-below --> <?php }
<?php /** * @package WordPress * @subpackage basejump-core */ /* Display navigation to next/previous pages when applicable */ global $wp_query; if ($wp_query->max_num_pages > 1) { ?> <nav id="nav-above"> <?php core_functions::breadcrumbs(); ?> <!-- <h1 class="section-heading"><?php _e('Post navigation', 'basejump'); ?> </h1>--> <!-- <div class="nav-previous"><?php next_posts_link(__('<span class="meta-nav">←</span> Older posts', 'basejump')); ?> </div> <div class="nav-next"><?php previous_posts_link(__('Newer posts <span class="meta-nav">→</span>', 'basejump')); ?> </div>--> </nav><!-- #nav-above --> <?php } ?>
wp_register_script('masonry', $js_masonry, array('jquery')); wp_register_script('tiptip', $js_tiptip, array('jquery')); wp_register_script('flex-slider', get_stylesheet_directory_uri() . '/library/js/jquery.flexslider-min.js', array('jquery')); /** * Main theme js scripts */ if (!is_admin()) { cwp::jquery(); wp_enqueue_script('modernizer', get_template_directory_uri() . '/library/js/modernizr.custom.48627.js', array('jquery')); wp_enqueue_script('theme-scripts', get_template_directory_uri() . '/library/js/scripts.js'); wp_enqueue_script('media-queries', get_template_directory_uri() . '/library/js/css3-mediaqueries.js'); wp_enqueue_script('fitvids', get_template_directory_uri() . '/library/js/jquery.fitvids.js', array('jquery')); //wp_enqueue_script('less', 'http://lesscss.googlecode.com/files/less-1.0.21.min.js', array('jquery')); wp_enqueue_script('hf5', $js_h5f); } core_functions::favicon(); add_theme_support('post-thumbnails'); add_theme_support('automatic-feed-links'); //add_editor_style(); //cwp::theme_images(); //adds image sizes slideshow-[720,960,1200,1560], icon-[40,60,100] add_image_size('icon-60', 60, 60, true); add_image_size('icon-100', 100, 100, true); add_image_size('icon-40', 40, 40, true); /* * footer widgets */ cwp::add_widget('info 1', 'info-1', 'Display widgets in the first footer box'); cwp::add_widget('info 2', 'info-2', 'Display widgets in the second footer box'); cwp::add_widget('info 3', 'info-3', 'Display widgets in the third footer box'); cwp::add_widget('info 4', 'info-4', 'Display widgets in the fourth footer box'); cwp::add_widget('info 5', 'info-5', 'Display widgets in the fifth footer box');
<?php /** * @package WordPress * @subpackage Basejump */ if (have_posts()) { ?> <?php while (have_posts()) { the_post(); global $post; ?> <?php core_functions::setPostViews(); ?> <section id="theme-cover"> <div class="row"> <div class="twelve columns"> <h1 class="entry-title"><?php the_title(); ?> </h1> <!-- ###end-row### --> </div> </div> <div class="row"> <div class="four columns"> <?php the_excerpt();
function bj_content_nav($nav_id) { global $wp_query; $nav_class = 'site-navigation paging-navigation'; if (is_single()) { $nav_class = 'site-navigation post-navigation'; } ?> <nav role="navigation" id="<?php echo $nav_id; ?> " class="<?php echo $nav_class; ?> "> <h1 class="assistive-text"><?php _e('Post navigation', 'bj'); ?> </h1> <?php if (!is_home() and $nav_id == 'nav-above') { core_functions::breadcrumbs(); } ?> <?php if (is_single() and $nav_id == 'nav-below') { // navigation links for single posts ?> <?php previous_post_link('<div class="nav-previous">%link</div>', '<span class="meta-nav">' . _x('←', 'Previous post link', 'bj') . '</span> %title'); ?> <?php next_post_link('<div class="nav-next">%link</div>', '%title <span class="meta-nav">' . _x('→', 'Next post link', 'bj') . '</span>'); ?> <?php } elseif ($wp_query->max_num_pages > 1 && (is_home() || is_archive() || is_search())) { // navigation links for home, archive, and search pages ?> <?php if ($nav_id == 'nav-below') { core_functions::pagination(); } ?> <?php } ?> </nav><!-- #<?php echo $nav_id; ?> --> <?php }