• id="li-comment-">
  • ' . __('
    See more ›
    ', 'shell') . ''; } /** * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and shell_see_more_link(). */ function shell_auto_excerpt_more($more) { return '' . shell_see_more(); } add_filter('excerpt_more', 'shell_auto_excerpt_more'); /** * Adds a pretty "See more" link to custom post excerpts. */ function shell_custom_excerpt_more($output) { if (has_excerpt() && !is_attachment()) { $output .= shell_see_more(); } return $output; } add_filter('get_the_excerpt', 'shell_custom_excerpt_more'); /** * This function removes inline styles set by WordPress gallery. */ function shell_remove_gallery_css($css) { return preg_replace("##s", '', $css); } add_filter('gallery_style', 'shell_remove_gallery_css'); /** * This function removes default styles set by WordPress recent comments widget. */ function shell_remove_recent_comments_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } add_action( 'widgets_init', 'shell_remove_recent_comments_style' ); /** * Breadcrumb Lists * Allows visitors to quickly navigate back to a previous section or the root page. * * Adopted from Dimox */ function shell_breadcrumb_lists() { $chevron = ''; $name = 'Home'; //text for the 'Home' link $currentBefore = ''; $currentAfter = ''; echo ''; } /** * A safe way of adding javascripts to a WordPress generated page. */ if (!is_admin()) add_action('wp_print_scripts', 'shell_js'); if (!function_exists('shell_js')) { function shell_js() { // JavaScript at the bottom for fast page loading. // except for Modernizr which enables HTML5 elements & feature detects. wp_enqueue_script('modernizr', get_template_directory_uri() . '/js/modernizr.js', array('jquery'), '2.0.6', false); wp_enqueue_script('scripts', get_template_directory_uri() . '/js/scripts.js', array('jquery'), '1.0.4', true); } } /** * Where the post has no post title, but must still display a link to the single-page post view. */ add_filter('the_title', 'shell_title'); function shell_title($title) { if ($title == '') { return 'Untitled'; } else { return $title; } } /** * WordPress Widgets start right here. */ function shell_widgets_init() { register_sidebar(array( 'name' => __('Primary Sidebar Widget', 'shell'), 'description' => __('Area One Primary Widget', 'shell'), 'id' => 'primary-sidebar-widget', 'before_title' => '
    ', 'after_title' => '
    ', 'before_widget' => '', 'after_widget' => '' )); register_sidebar(array( 'name' => __('Primary Home Sidebar Widget', 'shell'), 'description' => __('Area Two Primary Home Widget', 'shell'), 'id' => 'primary-home-sidebar-widget', 'before_title' => '

    ', 'after_title' => '

    ', 'before_widget' => '', 'after_widget' => '' )); register_sidebar(array( 'name' => __('Secondary Home Sidebar Widget', 'shell'), 'description' => __('Area Three Secondary Home Widget', 'shell'), 'id' => 'secondary-home-sidebar-widget', 'before_title' => '

    ', 'after_title' => '

    ', 'before_widget' => '', 'after_widget' => '' )); register_sidebar(array( 'name' => __('Tertiary Home Sidebar Widget', 'shell'), 'description' => __('Area Four Tertiary Home Widget', 'shell'), 'id' => 'tertiary-home-sidebar-widget', 'before_title' => '

    ', 'after_title' => '

    ', 'before_widget' => '', 'after_widget' => '' )); register_sidebar(array( 'name' => __('Gallery Widget', 'shell'), 'description' => __('Area Five Gallery Widget', 'shell'), 'id' => 'gallery-sidebar-widget', 'before_title' => '
    ', 'after_title' => '
    ', 'before_widget' => '', 'after_widget' => '' )); } add_action('widgets_init', 'shell_widgets_init'); ?>