├── 404.php ├── admin.php ├── archive-mfields_bookmark.php ├── archive.php ├── author.php ├── biography.php ├── category.php ├── comments.php ├── date.php ├── entry-post-image.php ├── entry-post-standard.php ├── entry-post-status.php ├── entry-post.php ├── entry.php ├── footer-basic.php ├── footer.php ├── functions.php ├── header-basic.php ├── header.php ├── home.php ├── image.php ├── images ├── diagonal-stripes.png ├── edit.png ├── icon-sprite.png ├── icons.png ├── lanterns.jpg └── quote.png ├── inc ├── dropdowns.js └── post-labels.php ├── index.php ├── longdesc-template.php ├── loop-search.php ├── loop-table.php ├── nav-posts.php ├── page.php ├── password-protected-post-form.php ├── readme.md ├── readme.txt ├── search.php ├── searchform.php ├── single-mfields_bookmark.php ├── single.php ├── sticky-posts.php ├── style-editor.css ├── style-syntax-highlighter.css ├── style.css ├── tag.php ├── taxonomy-mfields_bookmark_source.php ├── taxonomy-mfields_bookmark_type.php ├── taxonomy.php └── top.php /404.php: -------------------------------------------------------------------------------- 1 | 15 | * @copyright Copyright (c) 2011, Michael Fields 16 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 17 | * @since Nighthawk 1.0 18 | */ 19 | ?> 20 | 21 | 22 | 23 |
24 |

25 |

26 | 27 |
28 | 29 |
30 |
31 | 32 | 10 ), array( 'widget_id' => null ) ); ?> 33 |
34 |
35 | 36 | 37 | -------------------------------------------------------------------------------- /admin.php: -------------------------------------------------------------------------------- 1 | '; 37 | screen_icon(); 38 | 39 | echo "\n" . '

Nighthawk

'; 40 | echo "\n" . '
'; 41 | 42 | do_settings_sections( 'nighthawk' ); 43 | 44 | echo "\n" . '
'; 45 | } 46 | 47 | static public function intro() { 48 | echo '

This is some stuff about Nighthawk!

'; 49 | } 50 | 51 | static public function plugins() { 52 | $testListTable = new Nighthawk_Supported_Plugins(); 53 | $testListTable->prepare_items(); 54 | $testListTable->display(); 55 | } 56 | } 57 | Nighthawk_Admin::init(); 58 | 59 | require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); 60 | 61 | class Nighthawk_Supported_Plugins extends WP_List_Table { 62 | 63 | var $items = array( 64 | array( 65 | 'name' => 'Long Description for Image Attachments', 66 | 'slug' => 'long-description-for-image-attachments', 67 | 'author' => 'Michael Fields', 68 | ), 69 | array( 70 | 'name' => 'Mfields Bookmarks', 71 | 'author' => 'Michael Fields', 72 | ), 73 | array( 74 | 'name' => 'Subscribe to Comments', 75 | 'slug' => 'subscribe-to-comments', 76 | 'author' => 'Mark Jaquith', 77 | ), 78 | array( 79 | 'name' => 'SyntaxHighlighter Evolved', 80 | 'slug' => 'syntaxhighlighter', 81 | 'author' => 'Viper007Bond', 82 | ), 83 | array( 84 | 'name' => 'Taxonomy Images', 85 | 'slug' => 'taxonomy-images', 86 | 'author' => 'Michael Fields', 87 | ), 88 | ); 89 | 90 | function __construct() { 91 | parent::__construct( array( 92 | 'singular' => 'plugin', 93 | 'plural' => 'plugins', 94 | 'ajax' => false 95 | ) ); 96 | } 97 | 98 | function column_name( $item ) { 99 | return $item['name']; 100 | } 101 | 102 | function column_author( $item ) { 103 | return $item['author']; 104 | } 105 | 106 | function column_link( $item ) { 107 | if ( isset( $item['slug'] ) && ! empty( $item['slug'] ) ) { 108 | $url = 'http://wordpress.org/extend/plugins/' . $item['slug'] . '/'; 109 | $title = sprintf( __( 'Read more about the %1$s plugin.' ), $item['name'] ); 110 | return 'wordpress.org'; 111 | } 112 | } 113 | 114 | function get_columns() { 115 | return array( 116 | 'name' => __( 'Plugin Name', 'nighthawk' ), 117 | 'link' => __( 'Plugin Page', 'nighthawk' ), 118 | 'author' => __( 'Author', 'nighthawk' ), 119 | ); 120 | } 121 | 122 | function prepare_items() { 123 | $this->_column_headers = array( 124 | $this->get_columns(), 125 | array(), 126 | $this->get_sortable_columns(), 127 | ); 128 | 129 | $this->set_pagination_args( array( 130 | 'total_items' => count( $this->items ), 131 | 'per_page' => 999, 132 | 'total_pages' => 1 133 | ) ); 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /archive-mfields_bookmark.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2011, Michael Fields 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 | * @since 1.0 12 | */ 13 | 14 | $nighthawk_post_type = 'mfields_bookmark'; 15 | 16 | if ( ! have_posts() ) { 17 | get_template_part( '404', $nighthawk_post_type ); 18 | } 19 | 20 | get_header( $nighthawk_post_type ); 21 | 22 | ?> 23 | 24 |
25 | 26 |

27 | 28 |
found_posts ) ) { 33 | $total = (int) $wp_query->found_posts; 34 | } 35 | 36 | printf( _n( 'There is %1$s bookmark in this section.', 'There are %1$s bookmarks in this section.', $total, 'nighthawk' ), number_format_i18n( $total ) ); 37 | 38 | echo ' '; 39 | 40 | ?>
41 | 42 |
43 | 44 |
45 | 46 | __( 'Post Title', 'nighthawk' ), 51 | 'class' => 'post-title', 52 | 'callback' => 'nighthawk_td_title', 53 | ), 54 | array( 55 | 'label' => __( 'Source', 'nighthawk' ), 56 | 'class' => 'bookmark-source', 57 | 'callback' => 'nighthawk_td_bookmark_source', 58 | ), 59 | array( 60 | 'label' => __( 'Permalink', 'nighthawk' ), 61 | 'class' => 'permalink', 62 | 'callback' => 'nighthawk_td_permalink_icon', 63 | ), 64 | ) ); 65 | 66 | query_posts( wp_parse_args( $query_string, array( 'posts_per_page' => 30 ) ) ); 67 | get_template_part( 'loop-table' ); 68 | ?> 69 | 70 |
71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright Copyright (c) 2011, Michael Fields 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 9 | * @since Nighthawk 1.0 10 | */ 11 | 12 | if ( ! have_posts() ) { 13 | get_template_part( '404', 'archive' ); 14 | } 15 | 16 | get_header( 'archive' ); 17 | 18 | ?> 19 | 20 |
21 |

get_queried_object(); 28 | if ( isset( $post_type->name ) && is_paged() ) { 29 | $url = get_post_type_archive_link( $post_type->name ); 30 | } 31 | } 32 | 33 | if ( ! empty( $url ) ) { 34 | echo '' . esc_html( $title ) . ''; 35 | } 36 | else { 37 | echo esc_html( $title ); 38 | } 39 | 40 | ?>

41 | ', '' ); ?> 42 |
43 | 44 |
45 | 46 | 54 | 55 |
56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /author.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright Copyright (c) 2011, Michael Fields 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 9 | * @since Nighthawk 1.0 10 | * 11 | * @todo Add edit link. 12 | * @todo Add website link. 13 | */ 14 | 15 | if ( ! have_posts() ) { 16 | get_template_part( '404', 'author' ); 17 | } 18 | 19 | get_header( 'author' ); 20 | 21 | the_post(); 22 | 23 | echo '
'; 24 | 25 | echo '

' . esc_html( get_the_author() ) . '

'; 26 | 27 | $bio = get_the_author_meta( 'description' ); 28 | if ( ! empty( $bio ) ) { 29 | echo '
' . $bio . '
'; 30 | } 31 | 32 | echo '
'; 33 | 34 | rewind_posts(); 35 | 36 | ?> 37 | 38 |
39 | 40 | 30 ) ) ); 42 | get_template_part( 'loop-table', 'author' ); 43 | ?> 44 | 45 |
46 | 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /biography.php: -------------------------------------------------------------------------------- 1 | 15 | * @copyright Copyright (c) 2011, Michael Fields 16 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 17 | * @since Nighthawk 1.0 18 | */ 19 | 20 | if ( ! post_type_supports( get_post_type(), 'author' ) ) { 21 | return; 22 | } 23 | 24 | $description = get_the_author_meta( 'description' ); 25 | if ( empty( $description ) ) { 26 | return; 27 | } 28 | ?> 29 | 30 |

31 |
32 |
33 | 34 | 37 |
38 |
39 | -------------------------------------------------------------------------------- /category.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2011, Michael Fields 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 | * @since Nighthawk 1.0 12 | */ 13 | 14 | if ( ! have_posts() ) { 15 | get_template_part( '404', 'category' ); 16 | } 17 | 18 | get_header( 'category' ); 19 | 20 | ?> 21 | 22 |
23 | 'post-thumbnail', 25 | 'before' => '', 27 | ) ); ?> 28 |

29 |
30 |
31 | found_posts, 'nighthawk' ), number_format_i18n( (int) $wp_query->found_posts ) ); ?> 32 | 33 |
34 |
35 | 36 |
37 | 38 | 30 ) ) ); 40 | get_template_part( 'loop-table' ); 41 | ?> 42 | 43 |
44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 17 | * @copyright Copyright (c) 2011, Michael Fields 18 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 19 | * @since Nighthawk 1.0 20 | */ 21 | 22 | /* 23 | * Return early if ... 24 | * Post is protected by a password. 25 | */ 26 | if ( post_password_required() ) { 27 | if ( have_comments() ) 28 | echo '

' . sprintf( __( 'This %1$s is password protected. Enter the password to view any comments.', 'nighthawk' ), Nighthawk::post_label() ) . '

'; 29 | return; 30 | } 31 | 32 | /* 33 | * Return early if ... 34 | * there are no comments and comments are not allowed. 35 | */ 36 | if ( ! have_comments() && ! comments_open() ) { 37 | return; 38 | } 39 | 40 | /* 41 | * Return early if ... 42 | * post_type does not support comments. 43 | */ 44 | $post_type = get_post_type(); 45 | if ( ! post_type_supports( $post_type, 'comments' ) ) { 46 | return; 47 | } 48 | 49 | if ( have_comments() ) { 50 | 51 | /* Comment heading. */ 52 | $heading = sprintf( _n( '%1$s Comment', '%1$s Comments', get_comments_number(), 'nighthawk' ), number_format_i18n( get_comments_number() ) ); 53 | 54 | /* Addendum */ 55 | $addendum = '' . __( 'Leave a comment', 'nighthawk' ) . ''; 56 | if ( ! comments_open() ) { 57 | $addendum = '' . __( 'Comments are closed', 'nighthawk' ) . ''; 58 | } 59 | 60 | /* Print heading. */ 61 | echo '

' . $heading . ' ' . $addendum . '

'; 62 | 63 | /* List the comments. */ 64 | echo '
    '; 65 | wp_list_comments( apply_filters( 'nighthawk_list_comments_args', array( 66 | 'callback' => '_nighthawk_comment_start', 67 | 'end-callback' => '_nighthawk_comment_end', 68 | 'max-depth' => 1 69 | ) ) ); 70 | echo '
'; 71 | 72 | /* Paged navigation. */ 73 | if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) { 74 | echo ''; 78 | } 79 | } 80 | 81 | /* Display comment form. */ 82 | comment_form( apply_filters( 'nighthawk_comment_form_args', array( 83 | 'title_reply' => __( 'Share your thoughts', 'nighthawk' ), 84 | 'comment_notes_before' => '', 85 | 'comment_notes_after' => nighthawk_subscribe_to_comments_checkbox(), 86 | ) ) ); 87 | 88 | nighthawk_subscribe_to_comments_manual_form( '
', '
' ); -------------------------------------------------------------------------------- /date.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright Copyright (c) 2011, Michael Fields 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 9 | * @since Nighthawk 1.0 10 | */ 11 | 12 | if ( ! have_posts() ) { 13 | get_template_part( '404', 'archive-date' ); 14 | } 15 | 16 | get_header( 'archive-date' ); 17 | 18 | ?> 19 | 20 |
21 |

22 | 23 | 45 | 46 | ' . $meta . ''; ?> 47 |
48 | 49 |
50 | 51 | 30 ) ) ); 53 | get_template_part( 'loop-table' ); 54 | ?> 55 | 56 |
57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /entry-post-image.php: -------------------------------------------------------------------------------- 1 |
> 2 | 3 | 4 | 5 | 8 | 9 |
-------------------------------------------------------------------------------- /entry-post-standard.php: -------------------------------------------------------------------------------- 1 |
> 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | ', '' ); ?> 11 | 12 | 13 |
14 | 15 |
16 | 17 | '' 20 | ) ); ?> 21 | 22 |
23 | 24 |
25 | 26 |
-------------------------------------------------------------------------------- /entry-post-status.php: -------------------------------------------------------------------------------- 1 |
> 2 | 3 | 4 | 5 |
6 | 7 |
8 | 9 |
10 | 11 |
12 | 13 |
-------------------------------------------------------------------------------- /entry-post.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright Copyright (c) 2011, Michael Fields 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 9 | * @since Nighthawk 1.0 10 | */ 11 | ?> 12 | 13 |
> 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | ', '' ); ?> 23 | 24 | 25 |
26 | 27 |
28 | 29 | '' 32 | ) ); ?> 33 | 34 |
35 | 36 |
37 | 38 |
39 | 40 | 41 | -------------------------------------------------------------------------------- /entry.php: -------------------------------------------------------------------------------- 1 | 11 | * @copyright Copyright (c) 2011, Michael Fields 12 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 13 | * @since Nighthawk 1.0 14 | */ 15 | ?> 16 | 17 |
> 18 | 19 | ', '' ); 27 | } 28 | 29 | /* Content. */ 30 | if ( post_type_supports( $nighthawk_post_type, 'editor' ) ) { 31 | echo "\n" . '
'; 32 | the_content( __( 'Continue Reading', 'nighthawk' ) ); 33 | echo "\n" . '
'; 34 | wp_link_pages( array( 35 | 'after' => '
', 36 | 'before' => ' 50 | 51 | -------------------------------------------------------------------------------- /footer-basic.php: -------------------------------------------------------------------------------- 1 | 15 | * @copyright Copyright (c) 2011, Michael Fields 16 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 17 | * @since 1.0 18 | */ 19 | ?> 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 22 | * @copyright Copyright (c) 2011, Michael Fields 23 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 24 | * @since Nighthawk 1.0 25 | */ 26 | ?> 27 | 28 | 29 | 30 | 31 | 32 | 35 | 36 | '; 47 | foreach ( $active as $order => $area ) { 48 | echo '
' . "\n"; 49 | dynamic_sidebar( $area . '-footer-widget-area' ); 50 | echo '
' . "\n"; 51 | } 52 | echo '
'; 53 | echo ''; 54 | } 55 | ?> 56 | 57 | 58 | 59 | 'div', 62 | 'container_id' => 'menu-bottom', 63 | 'menu_class' => 'menu', 64 | 'theme_location' => 'secondary', 65 | 'depth' => 1, 66 | 'items_wrap' => '', 67 | 'fallback_cb' => '__return_false', 68 | ) ) ); 69 | ?> 70 | 71 | 72 | 73 | 74 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright Copyright (c) 2011, Michael Fields 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 9 | * @since Nighthawk 1.0 10 | */ 11 | 12 | class Nighthawk { 13 | 14 | /** 15 | * Table Columns. 16 | * 17 | * @since Nighthawk 1.0 18 | */ 19 | static private $columns = null; 20 | 21 | /** 22 | * Init. 23 | * 24 | * @since Nighthawk 1.0 25 | */ 26 | public static function init() { 27 | self::$columns = array( 28 | array( 29 | 'label' => __( 'Post Title', 'nighthawk' ), 30 | 'class' => 'post-title', 31 | 'callback' => 'Nighthawk::td_title', 32 | ), 33 | array( 34 | 'label' => __( 'Comment Count', 'nighthawk' ), 35 | 'class' => 'comment-count', 36 | 'callback' => 'Nighthawk::td_comment_count', 37 | ), 38 | array( 39 | 'label' => __( 'Comment Link', 'nighthawk' ), 40 | 'class' => 'comment-respond icon', 41 | 'callback' => 'Nighthawk::td_comment_icon', 42 | ), 43 | ); 44 | add_action( 'after_setup_theme', array( __class__, 'setup' ) ); 45 | } 46 | 47 | /** 48 | * Setup Nighthawk 49 | * 50 | * If you would like to customize the theme setup you 51 | * are encouraged to adopt the following process. 52 | * 53 | *
    54 | *
  1. Create a child theme with a functions.php file.
  2. 55 | *
  3. Create a new function named mytheme_nighthawk_setup().
  4. 56 | *
  5. Hook this function into the 'after_setup_theme' action at or after 11.
  6. 57 | *
  7. call remove_filter(), remove_action() and/or remove_theme_support() as needed.
  8. 58 | *
59 | * 60 | * @return void 61 | * 62 | * @since Nighthawk 1.0 63 | */ 64 | public static function setup() { 65 | if ( is_admin() ) 66 | require_once get_template_directory() . '/admin.php'; 67 | 68 | global $content_width; 69 | if ( ! isset( $content_width ) ) 70 | $content_width = 700; 71 | 72 | load_theme_textdomain( 'nighthawk', get_template_directory() . '/languages' ); 73 | 74 | add_editor_style( 'style-editor.css' ); 75 | 76 | add_theme_support( 'menus' ); 77 | add_theme_support( 'post-formats', array( 'image', 'status' ) ); 78 | add_theme_support( 'post-thumbnails' ); 79 | add_theme_support( 'automatic-feed-links' ); 80 | 81 | add_custom_background(); 82 | 83 | /* A few extras for pages. */ 84 | add_post_type_support( 'page', 'excerpt' ); 85 | add_post_type_support( 'page', 'thumbnail' ); 86 | 87 | /* Image sizes. */ 88 | set_post_thumbnail_size( 150, 150, false ); 89 | add_image_size( 'nighthawk_detail', 70, 70, true ); 90 | 91 | /* Navigation menus. */ 92 | register_nav_menus( array( 'primary' => 'Primary', 'secondary' => 'Secondary' ) ); 93 | 94 | add_filter( 'get_the_author_description', 'wptexturize' ); 95 | add_filter( 'get_the_author_description', 'convert_chars' ); 96 | add_filter( 'get_the_author_description', 'wpautop' ); 97 | 98 | add_action( 'comment_form_after', 'Nighthawk::commentform_after' ); 99 | add_action( 'comment_form_before', 'Nighthawk::commentform_before' ); 100 | add_filter( 'edit_post_link', 'Nighthawk::edit_post_link', 9, 2 ); 101 | add_filter( 'embed_oembed_html', 'Nighthawk::oembed_dataparse', 10, 4 ); 102 | add_filter( 'embed_googlevideo', 'Nighthawk::oembed_dataparse', 10, 2 ); 103 | add_filter( 'excerpt_more', 'Nighthawk::excerpt_more_auto' ); 104 | add_filter( 'post_class', 'Nighthawk::post_class' ); 105 | add_action( 'template_redirect', 'Nighthawk::filter_table_columns' ); 106 | add_action( 'template_redirect', 'Nighthawk::post_labels_init' ); 107 | add_filter( 'the_password_form', 'Nighthawk::password_form' ); 108 | add_action( 'the_title', 'Nighthawk::filter_post_title' ); 109 | add_action( 'widgets_init', 'Nighthawk::register_widget_areas' ); 110 | add_action( 'wp_enqueue_scripts', 'Nighthawk::script_comment_reply' ); 111 | add_action( 'wp_enqueue_scripts', 'Nighthawk::css_heading_font' ); 112 | add_action( 'wp_enqueue_scripts', 'Nighthawk::css_syntaxhighlighter' ); 113 | add_action( 'wp_enqueue_scripts', 'Nighthawk::script_dropdown_widgets' ); 114 | add_action( 'wp_loaded', 'Nighthawk::custom_header_config' ); 115 | 116 | add_filter( 'syntaxhighlighter_themes', 'Nighthawk::syntaxhighlighter_theme' ); 117 | } 118 | /** 119 | * Configuration for enabling the WordPress custom header image feature. 120 | * 121 | * @since Nighthawk 1.0 122 | */ 123 | function custom_header_config() { 124 | define( 'HEADER_TEXTCOLOR', '777' ); 125 | define( 'HEADER_IMAGE', get_template_directory_uri() . '/images/lanterns.jpg' ); 126 | define( 'HEADER_IMAGE_WIDTH', 1000 ); 127 | define( 'HEADER_IMAGE_HEIGHT', 288 ); 128 | define( 'NO_HEADER_TEXT', true ); 129 | 130 | add_custom_image_header( '_nighthawk_custom_image_header_live', '_nighthawk_custom_image_header_admin' ); 131 | } 132 | 133 | /** 134 | * Comment Reply Script. 135 | * 136 | * Enqueue comment reply script on singular views. 137 | * 138 | * In the event that a user has threaded comments enabled 139 | * for their installation this function will include the 140 | * appropriate javascript files on single views where 141 | * commenting is enabled. 142 | * 143 | * @since Nighthawk 1.0 144 | */ 145 | public static function script_comment_reply() { 146 | if ( is_singular() && comments_open() ) { 147 | if ( get_option( 'thread_comments' ) ) 148 | wp_enqueue_script( 'comment-reply' ); 149 | } 150 | } 151 | 152 | /** 153 | * Dropdown Widgets Script. 154 | * 155 | * @since Nighthawk 1.0 156 | */ 157 | public static function script_dropdown_widgets() { 158 | wp_enqueue_script( 159 | 'dropdown-widgets', 160 | get_template_directory_uri() . '/inc/dropdowns.js', 161 | array( 'jquery' ), 162 | '0.1', 163 | true 164 | ); 165 | } 166 | 167 | /** 168 | * Heading Font Styles. 169 | * 170 | * @since Nighthawk 1.0 171 | */ 172 | public static function css_heading_font() { 173 | wp_enqueue_style( 174 | 'nighthawk-cabin', 175 | 'http://fonts.googleapis.com/css?family=Cabin:regular,regularitalic,bold,bolditalic', 176 | array(), 177 | '1' 178 | ); 179 | } 180 | 181 | /** 182 | * SyntaxHighlighter Evolved Styles. 183 | * 184 | * @see http://wordpress.org/extend/plugins/syntaxhighlighter/ 185 | * @since Nighthawk 1.0 186 | */ 187 | public static function css_syntaxhighlighter() { 188 | wp_register_style( 189 | 'syntaxhighlighter-theme-nighthawk', 190 | get_template_directory_uri() . '/style-syntax-highlighter.css', 191 | array( 'syntaxhighlighter-core' ), 192 | '1' 193 | ); 194 | } 195 | 196 | /** 197 | * Register Widgetized Areas. 198 | * 199 | * @return void 200 | * 201 | * @since Nighthawk 1.0 202 | */ 203 | public static function register_widget_areas() { 204 | register_sidebar( array( 205 | 'name' => 'Dropdowns', 206 | 'id' => 'dropdowns', 207 | 'description' => 'Dropdowns that appear at the top of the page on all views.', 208 | 'before_widget' => '', 210 | 'before_title' => '

', 211 | 'after_title' => '

', 212 | ) ); 213 | 214 | /* Area 1 - Left column below content. */ 215 | register_sidebar( array( 216 | 'name' => __( 'Bottom 1', 'nighthawk' ), 217 | 'id' => 'first-footer-widget-area', 218 | 'description' => __( 'The first footer widget area', 'nighthawk' ), 219 | 'before_widget' => '
', 220 | 'after_widget' => '
', 221 | 'before_title' => '

', 222 | 'after_title' => '

', 223 | ) ); 224 | 225 | /* Area 2 - Middle column below content. */ 226 | register_sidebar( array( 227 | 'name' => __( 'Bottom 2', 'nighthawk' ), 228 | 'id' => 'second-footer-widget-area', 229 | 'description' => __( 'The second footer widget area', 'nighthawk' ), 230 | 'before_widget' => '
', 231 | 'after_widget' => '
', 232 | 'before_title' => '

', 233 | 'after_title' => '

', 234 | ) ); 235 | 236 | /* Area 3, Right column bottom of content . */ 237 | register_sidebar( array( 238 | 'name' => __( 'Bottom 3', 'nighthawk' ), 239 | 'id' => 'third-footer-widget-area', 240 | 'description' => __( 'The third footer widget area', 'nighthawk' ), 241 | 'before_widget' => '
', 242 | 'after_widget' => '
', 243 | 'before_title' => '

', 244 | 'after_title' => '

', 245 | ) ); 246 | } 247 | 248 | /** 249 | * Add custom class names to individual posts. 250 | * 251 | * This filter is attached to the 'post_class' hook 252 | * @see Nighthawk::setup() 253 | * 254 | * @param array $classes All classes for the post container. 255 | * @return array Modified classes for the post container. 256 | * 257 | * @access private 258 | * @since Nighthawk 1.0 259 | */ 260 | public static function post_class( $classes ) { 261 | if ( is_search() ) 262 | return array( 'search-result', 'box' ); 263 | 264 | $classes[] = 'entry'; 265 | $classes[] = 'box'; 266 | 267 | $featured_image = get_the_post_thumbnail(); 268 | if ( ! empty( $featured_image ) ) 269 | $classes[] = 'has-featured-image'; 270 | 271 | return array_unique( $classes ); 272 | } 273 | 274 | /** 275 | * Excerpt More (auto). 276 | * 277 | * In cases where a post does not have an excerpt defined 278 | * WordPress will append the string "[...]" to a shortened 279 | * version of the post_content field. Nighthawk will replace 280 | * this string with an ellipsis. 281 | * 282 | * This filter is attached to the 'excerpt_more' hook 283 | * @see Nighthawk::setup() 284 | * 285 | * @param string $more unused. 286 | * @return string An ellipsis followed by a link to the single post. 287 | * 288 | * @access private 289 | * @since Nighthawk 1.0 290 | */ 291 | public static function excerpt_more_auto( $more ) { 292 | return ' …'; 293 | } 294 | 295 | /** 296 | * Post label. 297 | * 298 | * Returns a noun representing the type or format of the global 299 | * post object. This function is used internally by the 300 | * nighthawk_entry_meta_taxonomy() function to create a sentence much 301 | * like the following: "This Status Update is filed under News." 302 | * where "Status Update" is the post label and "News" is the category. 303 | * 304 | * @uses NighthawkPostLabel::get_label() 305 | * 306 | * @param string $type Optional. May be either "singular" or "plural". Defaults to "singular". 307 | * @return string A noun representing the global post object. 308 | * 309 | * @access public 310 | * @since Nighthawk 1.0 311 | */ 312 | public static function post_label( $type = 'singular' ) { 313 | if ( class_exists( 'NighthawkPostLabel' ) ) 314 | return NighthawkPostLabel::get( $type ); 315 | else if ( 'singular' == $type ) 316 | return __( 'entry', 'nighthawk' ); 317 | else 318 | return __( 'entries', 'nighthawk' ); 319 | } 320 | 321 | /** 322 | * Enclose embedded media in a div. 323 | * 324 | * Wrapping all flash embeds in a div allows for easier 325 | * styling with CSS media queries. 326 | * 327 | * @todo Document parameters. 328 | * 329 | * @access private 330 | * @since Nighthawk 1.0 331 | */ 332 | public static function oembed_dataparse( $cache, $url, $attr = '', $post_ID = '' ) { 333 | return '
' . $cache . '
'; 334 | } 335 | 336 | /** 337 | * SyntaxHighlighter Evolved Support. 338 | * 339 | * Registers a custom theme with the SyntaxHighlighter Evolved plugin. 340 | * 341 | * {@link http://wordpress.org/extend/plugins/syntaxhighlighter/ SyntaxHighlighter Evolved } 342 | * 343 | * @param array $themes All themes registered with the SyntaxHighlighter Evolved plugin. 344 | * @return array Same list with custom theme appended. 345 | * 346 | * @access private 347 | * @since Nighthawk 1.0 348 | */ 349 | public static function syntaxhighlighter_theme( $themes ) { 350 | $themes['nighthawk'] = 'Nighthawk'; 351 | return $themes; 352 | } 353 | 354 | public static function filter_post_title( $title ) { 355 | if ( ! is_singular() ) 356 | return $title; 357 | 358 | if ( empty( $title ) && 'post' == get_post_type() ) 359 | $title = ucfirst( self::post_label() ); // todo: ucfirst for English only if possible. 360 | 361 | return $title; 362 | } 363 | public static function commentform_before() { 364 | echo '
'; 365 | } 366 | public static function commentform_after() { 367 | echo '
'; 368 | } 369 | public static function post_labels_init() { 370 | require_once get_template_directory() . '/inc/post-labels.php'; 371 | NighthawkPostLabel::init(); 372 | } 373 | 374 | /** 375 | * Edit post link filter. 376 | * 377 | * Modifies the output of WordPress 378 | * core function edit_post_link(); 379 | * 380 | * @param string $html Default anchor tag generated by WordPress. 381 | * @param int $ID Post ID. 382 | * 383 | * @access private 384 | * @since Nighthawk 1.0 385 | */ 386 | public static function edit_post_link( $html, $ID ) { 387 | return '' . esc_html( wp_strip_all_tags( $html ) ) . ''; 388 | } 389 | 390 | /** 391 | * Password Form. 392 | * 393 | * @param string $form Default password-protected post from. 394 | * @return string Custom form from template. 395 | * 396 | * @access private 397 | * @since Nighthawk 1.0 398 | */ 399 | public static function password_form( $form ) { 400 | ob_start(); 401 | get_template_part( 'password-protected-post-form' ); 402 | $form = ob_get_contents(); 403 | ob_end_clean(); 404 | return $form; 405 | } 406 | 407 | /** 408 | * Search Form ID. 409 | * 410 | * @return string ID attribute for search form. 411 | * 412 | * @since Nighthawk 1.0 413 | */ 414 | public static function searchform_id() { 415 | static $id = 0; 416 | return 'search-form-' . $id++; 417 | } 418 | 419 | /** 420 | * Total Posts. 421 | * 422 | * @return int ID attribute for search form. 423 | * 424 | * @since Nighthawk 1.0 425 | */ 426 | static public function post_total() { 427 | global $wp_query; 428 | if ( isset( $wp_query->found_posts ) ) 429 | return (int) $wp_query->found_posts; 430 | return 0; 431 | } 432 | 433 | /** 434 | * Get table columns. 435 | * 436 | * @uses Nighthawk::$columns 437 | * @return int ID attribute for search form. 438 | * 439 | * @since Nighthawk 1.0 440 | */ 441 | static public function get_table_columns() { 442 | if ( current_user_can( 'edit_posts' ) ) { 443 | $edit = array( 444 | 'label' => __( 'Edit', 'nighthawk' ), 445 | 'class' => 'edit-post icon', 446 | 'callback' => 'Nighthawk::td_edit', 447 | ); 448 | array_unshift( self::$columns, $edit ); 449 | } 450 | return (array) self::$columns; 451 | } 452 | 453 | /** 454 | * Set table columns. 455 | * 456 | * @uses Nighthawk::$columns 457 | * @return array Table columns configuration. 458 | * 459 | * @since Nighthawk 1.0 460 | */ 461 | static public function set_table_columns( $columns = null ) { 462 | self::$columns = $columns; 463 | } 464 | 465 | /** 466 | * Filter table columns. 467 | * 468 | * Allow plugins to adjust the table columns. 469 | * 470 | * @uses Nighthawk::$columns 471 | * @return array Table columns configuration. 472 | * 473 | * @since Nighthawk 1.0 474 | */ 475 | static public function filter_table_columns() { 476 | self::$columns = apply_filters( 'nighthawk_table_columns', self::$columns ); 477 | } 478 | 479 | public static function td_edit( $column = array() ) { 480 | echo "\n\t" . ''; 481 | echo '' . esc_attr__( 'Edit', 'nighthawk' ) . ''; 482 | echo ''; 483 | } 484 | 485 | public static function td_title( $column = array() ) { 486 | $post_type = get_post_type(); 487 | if ( ! post_type_supports( $post_type, 'title' ) ) { 488 | echo "\n\t" . ''; 489 | return; 490 | } 491 | 492 | $title = the_title( '', '', false ); 493 | if ( empty( $title ) ) 494 | $title = sprintf( __( 'Untitled %1$s', 'nighthawk' ), Nighthawk::post_label() ); 495 | 496 | $url = get_post_meta( get_the_ID(), '_mfields_bookmark_url', true ); 497 | if ( ! empty( $url ) ) { 498 | $title_attr = __( 'Visit this document', 'nighthawk' ); 499 | $action = get_post_meta( get_the_ID(), '_mfields_bookmark_link_text', true ); 500 | if ( ! empty( $action ) ) { 501 | $title_attr = ' title="' . esc_attr( $action ) . '"'; 502 | } 503 | $title = '' . $title . ''; 504 | } 505 | 506 | echo "\n\t" . '' . $title . ''; 507 | } 508 | 509 | public static function td_comment_count( $column = array() ) { 510 | if ( post_password_required() ) { 511 | echo "\n\t" . ''; 512 | return; 513 | } 514 | echo "\n\t" . ''; 515 | comments_popup_link( '', '1', '%', 'comments-link', '' ); 516 | echo ''; 517 | } 518 | 519 | public static function td_comment_icon( $column = array() ) { 520 | $post_type = get_post_type(); 521 | if ( ! post_type_supports( $post_type, 'comments' ) ) { 522 | echo "\n\t" . ''; 523 | return; 524 | } 525 | 526 | if ( ! comments_open( get_the_ID() ) ) { 527 | self::td_permalink_icon( $column ); 528 | return; 529 | } 530 | 531 | echo "\n\t" . '' . esc_html__( 'Add a comment', 'nighthawk' ) . ''; 532 | } 533 | 534 | public static function td_permalink_icon( $column = array() ) { 535 | echo "\n\t" . '' . esc_html__( 'Permalink', 'nighthawk' ) . ''; 536 | } 537 | } 538 | 539 | Nighthawk::init(); 540 | 541 | /** 542 | * Summary Meta. 543 | * 544 | * Print meta information pertaining to the current view. 545 | * 546 | * @param string $before Text to prepend to the summary meta. 547 | * @param string $after Text to append to the summary meta. 548 | * @param bool $print True to print, false to return a string. Defaults to true. 549 | * @return void/string 550 | * 551 | * @access public 552 | * @since 1.0 553 | */ 554 | function nighthawk_summary_meta( $before = '', $after = '', $print = true ) { 555 | global $wp_query; 556 | 557 | $total = 0; 558 | if ( isset( $wp_query->found_posts ) ) { 559 | $total = (int) $wp_query->found_posts; 560 | } 561 | 562 | $sentence = ''; 563 | $feed_url = ''; 564 | 565 | if ( is_home() || is_post_type_archive() ) { 566 | global $posts; 567 | $post_type = get_queried_object(); 568 | if ( empty( $post_type ) ) { 569 | $post_type = get_post_type_object( 'post' ); 570 | } 571 | if ( isset( $post_type->name ) && isset( $post_type->label ) && isset( $post_type->labels->singular_name ) ) { 572 | $feed_url = get_post_type_archive_feed_link( $post_type->name ); 573 | $feed_title = sprintf( __( 'Get updated whenever new %1$s are published.', 'nighthawk' ), $post_type->label ); 574 | $sentence = sprintf( _n( 'Only one %3$s found in this archive.', 'There are %1$s %2$s in this archive.', $total, 'nighthawk' ), number_format_i18n( $total ), Nighthawk::post_label( 'plural' ), Nighthawk::post_label() ); 575 | $sentence = apply_filters( 'nighthawk_summary_meta_post_type_archive', $sentence, $post_type ); 576 | $sentence = apply_filters( "nighthawk_summary_meta_{$post_type->name}_archive", $sentence, $post_type ); 577 | } 578 | } 579 | else if ( is_attachment() ) { 580 | $parent = false; 581 | $id = get_the_ID(); 582 | $attachment = get_post( $id ); 583 | if ( isset( $attachment->post_parent ) && 0 != $attachment->post_parent ) { 584 | $parent = get_post( $attachment->post_parent ); 585 | } 586 | if ( isset( $parent->ID ) && isset( $parent->post_title ) ) { 587 | $parent_link = '' . apply_filters( 'the_title', $parent->post_title ) . ''; 588 | $label = Nighthawk::post_label(); 589 | $sentence = sprintf( __( 'This %1$s is attached to %2$s.', 'nighthawk' ), $label, $parent_link ); 590 | $sentence = apply_filters( 'nighthawk_summary_file', $sentence ); 591 | } 592 | } 593 | else if ( is_tax() ) { 594 | $term = get_queried_object(); 595 | if ( isset( $term->term_id ) && isset( $term->name ) && isset( $term->taxonomy ) ) { 596 | $taxonomy = get_taxonomy( $term->taxonomy ); 597 | $taxonomy_name = __( 'taxonomy', 'nighthawk' ); 598 | if ( isset( $taxonomy->labels->singular_name ) ) { 599 | $taxonomy_name = $taxonomy->labels->singular_name; 600 | } 601 | 602 | switch ( $term->taxonomy ) { 603 | case 'post_format' : 604 | $feed_title = sprintf( __( 'Get updated whenever a new %1$s is published.', 'nighthawk' ), Nighthawk::post_label() ); 605 | $sentence = sprintf( _n( 'This site contains one %2$s.', 'This site contains %1$s %3$s.', $total, 'nighthawk' ), number_format_i18n( $total ), Nighthawk::post_label(), Nighthawk::post_label( 'plural' ) ); 606 | break; 607 | default : 608 | $feed_title = sprintf( __( 'Subscribe to this %1$s', 'nighthawk' ), $taxonomy_name ); 609 | $sentence = sprintf( _n( 'One entry is associated with the term %2$s.', '%1$s entries are associated with the term %2$s.', $total, 'nighthawk' ), number_format_i18n( $total ), $term->name ); 610 | break; 611 | } 612 | $feed_url = get_term_feed_link( $term->term_id, $term->taxonomy ); 613 | } 614 | } 615 | if ( ! empty( $feed_url ) ) { 616 | $sentence.= ' ' . esc_html__( 'Subscribe', 'nighthawk' ) . ''; 617 | } 618 | if ( ! empty( $sentence ) ) { 619 | $sentence = "\n" . $before . $sentence . $after; 620 | if ( $print ) { 621 | echo $sentence; 622 | } 623 | else { 624 | return $sentence; 625 | } 626 | } 627 | } 628 | 629 | /** 630 | * Entry Meta Taxonomy. 631 | * 632 | * Generate and display a sentence containing all core 633 | * taxonomies associated with the global post object 634 | * having the "post" post_type. 635 | * 636 | * The sentence should conform to the following structure: 637 | * "This FORMAT is filed under CATEGORY, CATEGORY, CATEGORY and tagged TAG, TAG, TAG." 638 | * 639 | * Each capitalized value in the above example should be linked to an 640 | * archive page that lists all posts of that taxonomy. 641 | * 642 | * This function should do nothing for custom post_types. 643 | * 644 | * @todo localize 645 | * 646 | * @access public 647 | * @since 1.0 648 | */ 649 | function nighthawk_entry_meta_taxonomy() { 650 | if ( post_password_required() ) { 651 | return ''; 652 | } 653 | 654 | $sentence = apply_filters( 'nighthawk_entry_meta_taxonomy', '' ); 655 | if ( ! empty( $sentence ) ) { 656 | echo $sentence; 657 | return; 658 | } 659 | 660 | $label = Nighthawk::post_label(); 661 | #$label_url = get_post_format_link( get_post_format() ); 662 | $label_url = get_permalink(); 663 | 664 | if ( 'post' != get_post_type() ) { 665 | return; 666 | } 667 | 668 | $post_tags = get_the_tag_list( '', ', ' ); 669 | $categories = get_the_category_list( ', ' ); 670 | 671 | if ( ! empty( $label ) && ! empty( $label_url ) ) { 672 | $plural = Nighthawk::post_label( 'plural' ); 673 | $title = ''; 674 | if ( ! empty( $plural ) ) { 675 | $title = ' title="' . sprintf( esc_attr__( 'View all %1$s', 'nighthawk' ), strtolower( $plural ) ) . '"'; 676 | } 677 | $label = '' . esc_html( $label ) . ''; 678 | } 679 | 680 | if ( ! empty( $label ) ) { 681 | if ( ! empty( $categories ) && ! empty( $post_tags ) ) { 682 | $sentence = sprintf( __( 'This %1$s is filed under %2$s and tagged %3$s.', 'nighthawk' ), $label, $categories, $post_tags ); 683 | } 684 | else if ( ! empty( $categories ) ) { 685 | $sentence = sprintf( __( 'This %1$s is filed under %2$s.', 'nighthawk' ), $label, $categories ); 686 | } 687 | else if ( ! empty( $post_tags ) ) { 688 | $sentence = sprintf( __( 'This %1$s is tagged %2$s.', 'nighthawk' ), $label, $post_tags ); 689 | } 690 | } 691 | else { 692 | if ( ! empty( $categories ) && ! empty( $post_tags ) ) { 693 | $sentence = sprintf( __( 'Filed under %1$s and tagged %2$s.', 'nighthawk' ), $categories, $post_tags ); 694 | } 695 | else if ( ! empty( $categories ) ) { 696 | $sentence = sprintf( __( 'Filed under %1$s.', 'nighthawk' ), $categories ); 697 | } 698 | else if ( ! empty( $post_tags ) ) { 699 | $sentence = sprintf( __( 'Tagged %1$s.', 'nighthawk' ), $post_tags ); 700 | } 701 | } 702 | 703 | if ( ! empty( $sentence ) ) { 704 | echo '

' . $sentence . '

'; 705 | } 706 | } 707 | 708 | /** 709 | * Subscribe to comments checkbox. 710 | * 711 | * @return string 712 | * 713 | * @access public 714 | * @since 1.0 715 | */ 716 | function nighthawk_subscribe_to_comments_checkbox() { 717 | $checkbox = ''; 718 | if ( ! function_exists( 'show_subscription_checkbox' ) ) { 719 | return $checkbox; 720 | } 721 | 722 | ob_start(); 723 | show_subscription_checkbox(); 724 | $checkbox = ob_get_clean(); 725 | 726 | return $checkbox; 727 | } 728 | 729 | /** 730 | * Subscribe to comments manual form. 731 | * 732 | * @return string 733 | * 734 | * @access public 735 | * @since 1.0 736 | */ 737 | function nighthawk_subscribe_to_comments_manual_form( $before = '', $after = '', $print = true, $args = array() ) { 738 | $args = wp_parse_args( $args, array( 739 | 'heading' => __( 'Subscribe without commenting', 'nighthawk' ), 740 | 'paragraph' => sprintf( __( 'Please enter your email address and click subscribe to receive an email whenever a new comment is made about this %1$s.', 'nighthawk' ), Nighthawk::post_label() ), 741 | ) ); 742 | $form = ''; 743 | global $id, $sg_subscribe, $user_email; 744 | 745 | if ( ! function_exists( 'sg_subscribe_start' ) ) { 746 | return $form; 747 | } 748 | if ( ! is_object( $sg_subscribe ) ) { 749 | return $form; 750 | } 751 | if ( ! method_exists( $sg_subscribe, 'show_errors' ) ) { 752 | return $form; 753 | } 754 | if ( ! method_exists( $sg_subscribe, 'current_viewer_subscription_status' ) ) { 755 | return $form; 756 | } 757 | 758 | sg_subscribe_start(); 759 | 760 | $sg_subscribe->show_errors( 'solo_subscribe', '
', '
', __( 'Error: ', 'nighthawk' ), '' ); 761 | 762 | if ( ! $sg_subscribe->current_viewer_subscription_status() ) { 763 | get_currentuserinfo(); 764 | $form.= '

' . esc_html( $args['heading'] ) . '

'; 765 | $form.= '

' . esc_html( $args['paragraph'] ) . '

'; 766 | $form.= '
'; 767 | $form.= ''; 768 | $form.= ''; 769 | $form.= ''; 770 | $form.= ''; 771 | $form.= ''; 772 | $form.= ''; 773 | $form.= '
'; 774 | } 775 | 776 | if ( ! empty( $form ) ) { 777 | $form = $before . $form . $after; 778 | } 779 | 780 | if ( $print ) { 781 | echo $form; 782 | } 783 | else { 784 | return $form; 785 | } 786 | } 787 | 788 | /** 789 | * CSS for displaying custom header in public views. 790 | * 791 | * @return void 792 | * 793 | * @access private 794 | * @since 1.0 795 | */ 796 | function _nighthawk_custom_image_header_live() { 797 | echo ''; 798 | } 799 | 800 | /** 801 | * CSS for displaying custom header in administration views. 802 | * 803 | * @return void 804 | * 805 | * @access private 806 | * @since 1.0 807 | */ 808 | function _nighthawk_custom_image_header_admin() { 809 | $background_color = get_theme_mod( 'background_color', 'ffffff' ); 810 | echo <<< EOF 811 | 820 | EOF; 821 | } 822 | 823 | /** 824 | * Comment start. 825 | * 826 | * Prints most of a single comment. 827 | * @see _nighthawk_comment_end(). 828 | * 829 | * @param stdClass $comment Comment object. 830 | * @param array $args Arguments passed to wp_list_comments() merged with default values. 831 | * @param int $depth Position of the current comment in relation to the root comment of this tree. Starts at zero. 832 | * 833 | * @access private 834 | * @since 1.0 835 | */ 836 | function _nighthawk_comment_start( $comment, $args, $depth ) { 837 | 838 | $GLOBALS['comment'] = $comment; 839 | 840 | if ( '' == $comment->comment_type ) { 841 | echo "\n\n\n\n" . '
  • '; 842 | if ( 0 === (int) $comment->comment_approved ) { 843 | echo esc_html__( 'Your comment is awaiting moderation.', 'nighthawk' ); 844 | } 845 | else { 846 | echo "\n" . get_avatar( $comment, 45 ); 847 | echo "\n" . '' . get_comment_author_link( $comment->comment_ID ) . ''; 848 | echo "\n" . ''; 849 | 850 | /* Comment date. */ 851 | echo "\n" . '' . sprintf( esc_html__( '%1$s at %2$s', 'nighthawk' ), get_comment_date(), get_comment_time() ) . ''; 852 | 853 | /* Edit comment link. */ 854 | if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) { 855 | echo "\n" . ' ' . esc_html__( 'Edit', 'nighthawk' ) . ''; 856 | } 857 | 858 | /* Reply to comment link. */ 859 | comment_reply_link( array_merge( $args, array( 860 | 'depth' => $depth, 861 | 'max_depth' => $args['max_depth'], 862 | 'before' => "\n" . ' ', 863 | 'after' => '' 864 | ) ) ); 865 | 866 | echo ''; 867 | 868 | echo "\n" . '
    '; comment_text(); echo '
    '; 869 | } 870 | } 871 | else { 872 | echo '
  • '; 873 | echo '
    '; 874 | comment_author_link(); 875 | if ( current_user_can( 'edit_comment', $comment->comment_ID ) ) { 876 | echo "\n" . ' ' . esc_html__( 'Edit', 'nighthawk' ) . ''; 877 | } 878 | echo '
    '; 879 | } 880 | } 881 | 882 | /** 883 | * Comment end. 884 | * 885 | * Custom callback for wp_list_comments(). 886 | * Print a closing html list-item element. 887 | * 888 | * @param stdClass $comment Comment object. 889 | * @param array $args Arguments passed to wp_list_comments() merged with default values. 890 | * @param int $depth Position of the current comment in relation to the root comment of this tree. Starts at zero. 891 | * 892 | * @access private 893 | * @since 1.0 894 | */ 895 | function _nighthawk_comment_end( $comment, $args, $depth ) { 896 | echo '
  • '; 897 | } -------------------------------------------------------------------------------- /header-basic.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2011, Michael Fields 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 | * @since 1.0 12 | */ 13 | ?> 14 | > 15 | 16 | 17 | <?php bloginfo( 'blogname' ); ?><?php wp_title(); ?> 18 | 19 | 20 | 21 | 22 | 23 | 24 | > 25 | 26 |
    27 | ' ); ?> 29 | ', '
    ' ); ?> 30 | 31 | 32 | 33 | 34 |
    35 | -------------------------------------------------------------------------------- /header.php: -------------------------------------------------------------------------------- 1 | 22 | * @copyright Copyright (c) 2011, Michael Fields 23 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 24 | * @since Nighthawk 1.0 25 | */ 26 | ?> 27 | > 28 | 29 | 30 | <?php bloginfo( 'blogname' ); ?><?php wp_title(); ?> 31 | 32 | 33 | 34 | 35 | 36 | 37 | > 38 | 39 | 40 | 41 |
    42 | 43 | 49 | 50 |
    51 | 52 | '; 55 | get_template_part( 'top', 'no-image' ); 56 | echo "\n" . '
    '; 57 | } 58 | else { 59 | printf( 60 | "\n" . '
    %4$s
    ', 61 | esc_url( $header_image ), 62 | esc_attr( HEADER_IMAGE_WIDTH ), 63 | esc_attr( HEADER_IMAGE_HEIGHT ), 64 | esc_attr( get_bloginfo( 'blogname' ) ) 65 | ); 66 | } 67 | ?> 68 | -------------------------------------------------------------------------------- /home.php: -------------------------------------------------------------------------------- 1 | 13 | * @copyright Copyright (c) 2011, Michael Fields 14 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 15 | * @since Nighthawk 1.0 16 | */ 17 | 18 | if ( ! have_posts() ) 19 | get_template_part( '404', 'post' ); 20 | 21 | get_header( 'post' ); 22 | 23 | get_template_part( 'sticky-posts' ); 24 | 25 | ?> 26 | 27 |
    28 | 29 | 46 | 47 |
    48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /image.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright Copyright (c) 2011, Michael Fields 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 9 | * @since Nighthawk 1.0 10 | */ 11 | 12 | get_header(); 13 | 14 | if ( have_posts() ) { 15 | while ( have_posts() ) { 16 | the_post(); 17 | ?> 18 | 19 |
    > 20 | 21 | ', '' ); ?> 22 | 23 |

    ' . $sentence . '

    ', 'nighthawk' ), '' . apply_filters( 'the_title', $parent->post_title ) . '' ); 32 | } 33 | ?> 34 | 35 |
    ' . esc_html( get_post_time( get_option( 'date_format' ) ) ) . '' ); 37 | ?>
    38 | 39 | 40 | 41 |
    > 42 | 43 | 44 | 45 |
    48 | 49 | 50 |
    51 | 52 |
    53 | 54 | 55 | 56 |
    57 | 58 |
    59 | 60 | 61 | 69 | 70 | 71 | 72 | 76 | 77 | 78 | 79 |
    80 | 81 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /images/diagonal-stripes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfields/nighthawk/a11894f476ddd381ac79e96671461f4a4f2a8229/images/diagonal-stripes.png -------------------------------------------------------------------------------- /images/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfields/nighthawk/a11894f476ddd381ac79e96671461f4a4f2a8229/images/edit.png -------------------------------------------------------------------------------- /images/icon-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfields/nighthawk/a11894f476ddd381ac79e96671461f4a4f2a8229/images/icon-sprite.png -------------------------------------------------------------------------------- /images/icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfields/nighthawk/a11894f476ddd381ac79e96671461f4a4f2a8229/images/icons.png -------------------------------------------------------------------------------- /images/lanterns.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfields/nighthawk/a11894f476ddd381ac79e96671461f4a4f2a8229/images/lanterns.jpg -------------------------------------------------------------------------------- /images/quote.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mfields/nighthawk/a11894f476ddd381ac79e96671461f4a4f2a8229/images/quote.png -------------------------------------------------------------------------------- /inc/dropdowns.js: -------------------------------------------------------------------------------- 1 | jQuery( document ) .ready( function( $ ) { 2 | 3 | var config = { 4 | container : '#dropdown-widgets', 5 | dropdowns : '.dropdown', 6 | triggers : '.widget-title', 7 | maxBoxWidth : 400 8 | }; 9 | 10 | var widgets = $( config.container ); 11 | var parent = widgets.parent(); 12 | var titles = widgets.find( config.triggers ); 13 | var boxen = widgets.find( config.dropdowns ); 14 | var active = null; 15 | var height = 0; 16 | var origin = { 17 | top : -1599980, 18 | left : -1599980 19 | }; 20 | 21 | var container = $( document.createElement( 'div' ) ).attr( 'id', 'menu' ); 22 | var dropdowns = $( document.createElement( 'div' ) ).attr( 'id', 'dropdowns' ); 23 | var triggers = $( document.createElement( 'div' ) ).attr( 'id', 'triggers' ); 24 | 25 | hideAllBoxen(); 26 | 27 | $( document ).bind( 'dropdownsLoaded', function() { 28 | widgets.remove(); 29 | parent.prepend( container ); 30 | container.append( dropdowns ).append( triggers ); 31 | height = container.outerHeight() - parseInt( container.css( 'border-top-width' ) ); 32 | } ); 33 | 34 | titles.each( function ( i, title ) { 35 | var title = $( title ); 36 | 37 | if ( '' === $.trim( title.text() ) ) { 38 | return; 39 | } 40 | 41 | var boxId = 'dropdown-' + i; 42 | 43 | var link = $( document.createElement( 'a' ) ) 44 | .text( title.text() ) 45 | .attr( 'href', '' ) 46 | .attr( 'data-for', boxId ) 47 | .addClass( 'trigger' ); 48 | 49 | $( document.createElement( 'li' ) ).html( link ).appendTo( triggers ); 50 | 51 | title.parent().find( 'a' ).each( function( i, e ) { 52 | $( e ).removeAttr( 'title' ); 53 | } ); 54 | 55 | title.parent() 56 | .attr( 'id', boxId ) 57 | .appendTo( dropdowns ) 58 | .find( config.triggers ) 59 | .remove(); 60 | 61 | if ( i + 1 === titles.length ) { 62 | $( document ).trigger( 'dropdownsLoaded' ); 63 | } 64 | } ); 65 | 66 | $( window ).bind( 'resize', function ( e ) { 67 | height = container.outerHeight() - parseInt( container.css( 'border-top-width' ) ); 68 | 69 | if ( null === active ) { 70 | return; 71 | } 72 | 73 | /* 74 | * Stick the active box to the bottom of the container. 75 | */ 76 | active.box.css( { top : height } ); 77 | 78 | /* 79 | * The active box should not be cut-off when browser window shrinks. 80 | */ 81 | var boxPos = active.box.position(); 82 | var triggerPos = active.trigger.position(); 83 | var rightEdge = boxPos.left + active.box.outerWidth(); 84 | 85 | if ( rightEdge > parent.innerWidth() ) { 86 | active.box.css( { 87 | left : 'auto', 88 | right : 0 89 | } ); 90 | } 91 | else if ( Math.floor( triggerPos.left ) < boxPos.left || ( 0 == boxPos.left && 0 != triggerPos.left ) ) { 92 | active.box.css( { 93 | left : Math.floor( triggerPos.left ), 94 | right : 'auto' 95 | } ); 96 | } 97 | } ); 98 | 99 | $( document ).click( function( e ) { 100 | 101 | /* 102 | * Primary mouse button pressed. 103 | * @todo See how this works with touch screen devices. 104 | */ 105 | if ( 1 != e.which ) { 106 | return; 107 | } 108 | 109 | var link = $( e.target ); 110 | 111 | if ( link.hasClass( 'trigger' ) ) { 112 | var box = $( '#' + link.attr( 'data-for' ) ); 113 | var boxPosition = box.position(); 114 | var linkPosition = link.position(); 115 | 116 | /* 117 | * Each time a link is clicked we need to 118 | * reposition all of the boxen. This enables 119 | * the box currently on display to be hidden 120 | * when a user is clicking from link to link. 121 | */ 122 | hideAllBoxen(); 123 | 124 | /* 125 | * Toggle effect. 126 | * This enables a single link to be clicked 127 | * once to show a box and then clicked again 128 | * to hide the box. 129 | */ 130 | if ( origin.top !== boxPosition.top && origin.left !== boxPosition.left ) { 131 | hideAllBoxen(); 132 | return false; 133 | } 134 | 135 | var css = { 136 | top : height 137 | }; 138 | 139 | box.rightEdge = Math.ceil( box.outerWidth() + linkPosition.left ); 140 | 141 | if ( box.rightEdge > dropdowns.innerWidth() ) { 142 | css.left = Math.ceil( dropdowns.outerWidth() - box.outerWidth() ); 143 | } 144 | else { 145 | css.left = Math.ceil( parseInt( linkPosition.left ) ); 146 | } 147 | 148 | /* 149 | * Show box. 150 | * Positions the requested box directly under 151 | * the dropdowns div, left-aligned with the link. 152 | */ 153 | box.css( css ); 154 | link.addClass( 'active' ); 155 | 156 | if ( box.hasClass( 'widget_search' ) ) { 157 | box.find( '[name]=s' ).focus(); 158 | } 159 | 160 | 161 | active = { 162 | box : box, 163 | trigger : link 164 | }; 165 | 166 | return false; 167 | } 168 | 169 | /* 170 | * All boxen are hidden. 171 | * There is no need to continue. 172 | */ 173 | if ( null === active ) { 174 | return; 175 | } 176 | 177 | /* 178 | * A box is being displayed. 179 | * Somewhere outside of the box was clicked. 180 | * We need to hide all of the boxen. 181 | */ 182 | if ( 0 === link.closest( config.dropdowns ).length ) { 183 | hideAllBoxen(); 184 | return; 185 | } 186 | 187 | } ); 188 | 189 | function hideAllBoxen() { 190 | boxen.each( function( i, e ) { 191 | $( e ).css( origin ); 192 | } ); 193 | 194 | if ( null !== active ) { 195 | active.trigger.removeClass( 'active' ); 196 | } 197 | 198 | active = null; 199 | } 200 | } ); -------------------------------------------------------------------------------- /inc/post-labels.php: -------------------------------------------------------------------------------- 1 | array( 39 | 'standard' => _nx_noop( 'page', 'pages', 'Post Label' ), 40 | ), 41 | 'post' => array( 42 | 'standard' => _nx_noop( 'post', 'posts', 'Post Label' ), 43 | 'aside' => _nx_noop( 'aside', 'asides', 'Post Label' ), 44 | 'audio' => _nx_noop( 'audio file', 'audio files', 'Post Label' ), 45 | 'chat' => _nx_noop( 'chat transcript', 'chat transcripts', 'Post Label' ), 46 | 'gallery' => _nx_noop( 'gallery', 'galleries', 'Post Label' ), 47 | 'image' => _nx_noop( 'image', 'images', 'Post Label' ), 48 | 'link' => _nx_noop( 'link', 'links', 'Post Label' ), 49 | 'quote' => _nx_noop( 'quote', 'quotes', 'Post Label' ), 50 | 'status' => _nx_noop( 'status update', 'status updates', 'Post Label' ), 51 | 'video' => _nx_noop( 'video', 'videos', 'Post Label' ) 52 | ), 53 | 'attachment' => array( 54 | 'standard' => _nx_noop( 'file', 'files', 'Post Label' ), 55 | 'image' => _nx_noop( 'image', 'images', 'Post Label' ), 56 | 'icon' => _nx_noop( 'icon', 'icons', 'Post Label' ), 57 | 'zip' => _nx_noop( 'zip archive', 'zip archives', 'Post Label' ), 58 | 'doc' => _nx_noop( 'document', 'documents', 'Post Label' ), 59 | 'pdf' => _nx_noop( 'PDF', 'PDFs', 'Post Label' ), 60 | 'spreadsheet' => _nx_noop( 'spreadsheet', 'spreadsheets', 'Post Label' ), 61 | 'video' => _nx_noop( 'video', 'videos', 'Post Label' ), 62 | ), 63 | ); 64 | 65 | $post_types = get_post_types( array( 'public' => true, '_builtin' => false ), 'objects' ); 66 | if ( ! empty( $post_types ) && is_array( $post_types ) ) { 67 | foreach ( (array) $post_types as $name => $post_type ) { 68 | self::$labels[$name]['standard'] = array( 69 | 0 => $post_type->labels->singular_name, 70 | 1 => $post_type->labels->name, 71 | 2 => 'Post Label', 72 | 'singular' => $post_type->labels->singular_name, 73 | 'plural' => $post_type->labels->name, 74 | 'context' => 'Post Label', 75 | ); 76 | } 77 | } 78 | } 79 | 80 | public static function get( $type = 'singular' ) { 81 | $count = ( 'singular' == $type ) ? 1 : 2; 82 | return translate_nooped_plural( self::get_noop(), $count, 'nighthawk' ); 83 | } 84 | 85 | private static function get_noop() { 86 | $key = 'standard'; 87 | 88 | $post_format = get_post_format(); 89 | if ( ! empty( $post_format ) ) 90 | $key = $post_format; 91 | 92 | $post_type = get_post_type(); 93 | if ( isset( self::$labels[$post_type][$key] ) ) 94 | return self::$labels[$post_type][$key]; 95 | 96 | return _nx_noop( 'entry', 'entries', 'post label' ); 97 | } 98 | 99 | private static function get_attachment_key() { 100 | $mime = get_post_mime_type(); 101 | switch ( $mime ) { 102 | case 'image/jpeg' : 103 | case 'image/gif' : 104 | case 'image/png' : 105 | case 'image/bmp' : 106 | case 'image/tiff' : 107 | case 'video/asf' : 108 | case 'video/avi' : 109 | case 'video/divx' : 110 | case 'video/x-flv' : 111 | case 'video/quicktime' : 112 | case 'video/mpeg' : 113 | case 'video/mp4' : 114 | case 'video/ogg' : 115 | case 'video/x-matroska' : 116 | $key = 'video'; 117 | break; 118 | case 'image/x-icon' : 119 | $key = 'icon'; 120 | break; 121 | case 'application/pdf' : 122 | $key = 'pdf'; 123 | break; 124 | case 'application/zip' : 125 | $key = 'zip'; 126 | break; 127 | case 'image/x-icon' : 128 | $key = 'icon'; 129 | break; 130 | case 'application/vnd.ms-excel' : 131 | case 'application/vnd.oasis.opendocument.spreadsheet' : 132 | $key = 'doc'; 133 | break; 134 | case 'application/msword' : 135 | case 'application/vnd.oasis.opendocument.text' : 136 | $key = 'doc'; 137 | break; 138 | default : 139 | $key = 'standard'; 140 | break; 141 | } 142 | 143 | return $type; 144 | } 145 | } -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2011, Michael Fields 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 | * @since Nighthawk 1.0 12 | */ 13 | 14 | if ( ! have_posts() ) { 15 | get_template_part( '404' ); 16 | } 17 | 18 | get_header(); 19 | 20 | ?> 21 | 22 |
    23 | ', '
    ' ); ?> 24 | 25 | 26 |
    27 | 28 | 36 | 37 | 38 | 39 |
    40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /longdesc-template.php: -------------------------------------------------------------------------------- 1 | '; 5 | echo '
    '; 6 | 7 | the_content(); 8 | 9 | if ( isset( $_GET['referrer'] ) && function_exists( 'longdesc_return_anchor' ) ) { 10 | $uri = get_permalink( (int) $_GET['referrer'] ); 11 | if ( !empty( $uri ) ) { 12 | $uri.= '#' . longdesc_return_anchor( $id ); 13 | echo '

    ' . esc_html__( 'Return to article.', 'nighthawk' ) . '

    '; 14 | } 15 | } 16 | 17 | echo '
    '; 18 | echo ''; 19 | 20 | get_footer( 'basic' ); 21 | ?> -------------------------------------------------------------------------------- /loop-search.php: -------------------------------------------------------------------------------- 1 | 11 | * @copyright Copyright (c) 2011, Michael Fields 12 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 13 | * @since Nighthawk 1.0 14 | */ 15 | ?> 16 | 17 | 18 | 19 | 20 | 21 |
    > 22 | 23 | ', '' ); ?> 24 | 25 |

    26 | 27 | – 30 | 31 | 32 | 33 | 36 | 37 |

    38 | 39 |
    40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /loop-table.php: -------------------------------------------------------------------------------- 1 | 15 | * @copyright Copyright (c) 2011, Michael Fields 16 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 17 | * @since Nighthawk 1.0 18 | */ 19 | ?> 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 43 | 44 | 45 | 46 |
    47 | 48 | -------------------------------------------------------------------------------- /nav-posts.php: -------------------------------------------------------------------------------- 1 | 12 | * @copyright Copyright (c) 2011, Michael Fields 13 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 14 | * @since Nighthawk 1.0 15 | */ 16 | 17 | $older = get_next_posts_link( __( 'Older', 'nighthawk' ) ); 18 | if ( ! empty( $older ) ) 19 | $older = ''; 20 | 21 | $newer = get_previous_posts_link( __( 'Newer', 'nighthawk' ) ); 22 | if ( ! empty( $newer ) ) 23 | $newer = ''; 24 | ?> 25 | 26 | 27 | 32 | -------------------------------------------------------------------------------- /page.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2011, Michael Fields 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 | * @since Nighthawk 1.0 12 | */ 13 | 14 | if ( ! have_posts() ) { 15 | get_template_part( '404', 'page' ); 16 | } 17 | 18 | get_header( 'page' ); 19 | ?> 20 | 21 | 25 | 26 |
    27 | ', '' ); ?> 28 |

    29 | 30 |
    31 | 32 | ', '' ); ?> 33 |
    34 | 35 |
    36 | 37 |
    > 38 | 39 | 40 | 41 |
    42 | 43 |
    44 | 45 | '' ) ); ?> 46 | 47 | 48 | 49 |
    50 | 51 | 54 | 55 | 56 | 57 | 58 | 59 |
    60 | 61 | -------------------------------------------------------------------------------- /password-protected-post-form.php: -------------------------------------------------------------------------------- 1 | 2 |

    3 |
    4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
    12 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | NIGHTHAWK 2 | ========= 3 | 4 | A one-column theme for the [WordPress](http://wordpress.org/) designed by [Michael Fields](http://wordpress.mfields.org). 5 | 6 | Theme is currently in development. Using it in production is probably a bad idea. 7 | 8 | Get in Launchable! 9 | ------------------ 10 | 11 | * Current theme has been stored in "yay" branch. 12 | * Bring master up to code standards using fewer templates. 13 | * Incorporate other templates after it's launchable. 14 | 15 | Goals 16 | ----- 17 | 18 | * Responsive/adaptive layout. 19 | * Support all post formats. 20 | * CSS: more classes - less IDs. 21 | 22 | TODO 23 | ---- 24 | 25 | * Fix positioning of link icon. 26 | * Rework icon sprite. 27 | 28 | 29 | Changelog 30 | ---------- 31 | 32 | * Standardize entry templates. 33 | * Remove nighthawk_entry_ID(). 34 | * Move code from front-page.php to home.php. 35 | * Remove front-page.php. -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | A one-column theme for the [WordPress](http://wordpress.org/) designed by [Michael Fields](http://wordpress.mfields.org). -------------------------------------------------------------------------------- /search.php: -------------------------------------------------------------------------------- 1 | 10 | * @copyright Copyright (c) 2011, Michael Fields 11 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 12 | * @since Nighthawk 1.0 13 | */ 14 | ?> 15 | 16 | 17 | 18 |
    19 |

    20 | 21 | 22 | 23 |
    24 | found_posts, 'nighthawk' ), number_format_i18n( (int) $wp_query->found_posts ), get_search_query() ) ); ?> 25 |
    26 |
    27 | 28 |
    29 | 30 | 31 | 32 |
    33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /searchform.php: -------------------------------------------------------------------------------- 1 | 7 | * @copyright Copyright (c) 2011, Michael Fields 8 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 9 | * @since Nighthawk 1.0 10 | */ 11 | 12 | $id_attr = Nighthawk::searchform_id(); 13 | ?> 14 | 15 | 20 | -------------------------------------------------------------------------------- /single-mfields_bookmark.php: -------------------------------------------------------------------------------- 1 | 12 | * @copyright Copyright (c) 2011, Michael Fields 13 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 14 | * @since Nighthawk 1.0 15 | */ 16 | 17 | if ( ! have_posts() ) { 18 | get_template_part( '404' ); 19 | } 20 | 21 | $nighthawk_post_type = get_post_type(); 22 | 23 | get_header( $nighthawk_post_type ); 24 | 25 | ?> 26 | 27 | 32 | 33 |
    34 | ', '' ); 37 | 38 | echo "\n" . '
    '; 39 | printf( __( 'Bookmarked on %1$s', 'nighthawk' ), ' by ' ); 40 | echo "\n" .'
    '; 41 | 42 | ?> 43 |
    44 | 45 |
    46 |
    > 47 | '; 52 | the_content(); 53 | echo "\n" . '
    '; 54 | 55 | echo ''; 56 | 57 | do_action( 'nighthawk_entry_end' ); 58 | 59 | } 60 | } 61 | ?> 62 |
    63 | 64 | 65 | ', __( 'Older', 'nighthawk' ) ); ?> 67 | %link', __( 'Newer', 'nighthawk' ) ); ?> 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 11 | * @copyright Copyright (c) 2011, Michael Fields 12 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 13 | * @since Nighthawk 1.0 14 | */ 15 | 16 | if ( ! have_posts() ) { 17 | get_template_part( '404' ); 18 | } 19 | 20 | $nighthawk_post_type = get_post_type(); 21 | 22 | get_header( $nighthawk_post_type ); 23 | 24 | if ( have_posts() ) { 25 | while ( have_posts() ) { 26 | the_post(); 27 | ?> 28 | 29 |
    > 30 | ', '' ); 34 | } 35 | 36 | /* Date Information. */ 37 | if ( apply_filters( 'nighthawk-show-date-for-single-' . $nighthawk_post_type, true ) ) { 38 | echo "\n" . '
    '; 39 | printf( __( 'Posted on %1$s', 'nighthawk' ), '' ); 40 | echo "\n" .'
    '; 41 | } 42 | 43 | /* Byline. */ 44 | if ( post_type_supports( $nighthawk_post_type, 'author' ) ) { 45 | echo "\n" . '

    ' . sprintf( esc_html__( 'By %1$s', 'nighthawk' ), get_the_author() ) . '

    '; 46 | } 47 | ?> 48 |
    49 | 50 |
    > 51 | 52 | '; 59 | the_content(); 60 | echo "\n" . '
    '; 61 | wp_link_pages( array( 'before' => '' ) ); 62 | } 63 | 64 | /* Excerpt - Attempt to display excerpt only if the post_type does not support content. */ 65 | else if ( post_type_supports( $nighthawk_post_type, 'excerpt' ) ) { 66 | echo "\n" . '
    '; 67 | the_excerpt(); 68 | echo "\n" . '
    '; 69 | } 70 | 71 | do_action( 'nighthawk_entry_end' ); 72 | 73 | ?> 74 | 75 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | ', __( 'Older', 'nighthawk' ) ); ?> 88 | %link', __( 'Newer', 'nighthawk' ) ); ?> 89 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /sticky-posts.php: -------------------------------------------------------------------------------- 1 | 28 | 29 |
    > 30 | 31 | ', '' ); ?> 32 | 33 | 34 |
    35 | 36 | 37 |
    38 | 39 |
    40 | 41 | '' 44 | ) ); ?> 45 | 46 |
    47 | 48 | 49 | 50 | 58 | 59 | 60 | 68 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /style-editor.css: -------------------------------------------------------------------------------- 1 | html .mceContentBody { 2 | font-family:Trebuchet,arial,sans-serif; 3 | font-size:14px; 4 | max-width:608px; 5 | } 6 | 7 | /* Font-size + margin for all headings */ 8 | h1, h2, h3, h4, h5, h6 { margin:0; padding:0; line-height:1.2em; clear:both; } 9 | h1 { font-size:1.50em; margin-bottom:.67em; } 10 | h2 { font-size:1.38em; margin-bottom:.73em; } 11 | h3 { font-size:1.13em; margin-bottom:.89em; } 12 | h4 { font-size:1.06em; margin-bottom:.94em; } 13 | h5, 14 | h6 { font-size:1.00em; margin-bottom:.90em; } 15 | 16 | /* Margin for all blocks. */ 17 | p, ul, ol, dl, pre, table, address, blockquote, fieldset, form { 18 | font-size:1em; 19 | margin:1.75em 0; 20 | padding:0; 21 | line-height:1.75em; 22 | } 23 | 24 | /* Lists */ 25 | ul, ol { 26 | padding-left:1.5em; 27 | } 28 | ul ul, ol ol, ul ol, ol ul { 29 | margin:0; 30 | } 31 | dt, dd { 32 | margin:0; 33 | padding:0; 34 | } 35 | dd { 36 | margin-bottom:1.5em; 37 | } 38 | 39 | /* Blocks that need padding */ 40 | pre, fieldset, blockquote { 41 | text-align:left; 42 | padding:1em; 43 | background-color:#fff; 44 | } 45 | blockquote { 46 | position:relative; 47 | padding-left:2em; 48 | margin:1.75em 2em 1.75em 22px; 49 | min-height:34px; 50 | } 51 | blockquote:before { 52 | content:url( images/quote.png ); 53 | position:absolute; 54 | top:10px; 55 | left:-22px; 56 | } 57 | blockquote blockquote { 58 | margin-left:0; 59 | margin-right:0; 60 | } 61 | 62 | blockquote p:first-child, 63 | blockquote blockquote:first-child { 64 | margin-top:0; 65 | } 66 | 67 | blockquote p:last-child, 68 | blockquote blockquote:last-child { 69 | margin-bottom:0; 70 | } 71 | 72 | big { 73 | position:relative; 74 | top:.1em; 75 | font-size:2em; 76 | } 77 | small { 78 | font-size:0.9em; 79 | line-height:1.5em; 80 | } 81 | 82 | /* Typography: Style + Color */ 83 | pre, tt, code, samp, kbd, var { 84 | font-family:Consolas, "Courier New", Courier, monospace; 85 | } 86 | abbr, acronym { 87 | border-bottom:1px dashed #999; 88 | cursor:help; 89 | } 90 | var { 91 | color:#003560; 92 | font-weight:bold; 93 | font-style:normal; 94 | } 95 | h1, h2, h3, h4, h5, h6, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { 96 | font-weight:bold; 97 | text-decoration:none; 98 | color:#3a5066; 99 | } 100 | dt { 101 | font-weight:bold; 102 | } 103 | ins { 104 | text-decoration:none; 105 | background-color:#fffabf; 106 | background-color:#bfffc5; 107 | } 108 | del, strike, s { 109 | text-decoration:line-through; 110 | } 111 | pre { 112 | border:.1em solid #ccc; 113 | } 114 | blockquote { 115 | border:.1em solid #ccc; 116 | font-style:italic; 117 | } 118 | a { 119 | color:#5588bb; 120 | text-decoration:none; 121 | } 122 | a img { 123 | border-width:0; 124 | } 125 | a.edit-term img { 126 | border-width:0; 127 | } 128 | a:focus { 129 | color:#333; 130 | background:#bfeaff; 131 | text-decoration:underline; 132 | outline:0; 133 | } 134 | a:focus img { 135 | outline:.2em solid #bfeaff; 136 | } 137 | code { 138 | border:.1em solid #d6e8f1; 139 | background:#e2f5ff; 140 | padding:0 .3em; 141 | color:#60686c; 142 | } 143 | 144 | /* Colors */ 145 | del, strike, s, .required { 146 | color:#880000; 147 | } 148 | .required { 149 | position:relative; 150 | top:.125em; 151 | font-weight:bold; 152 | font-size:1.5em; 153 | } 154 | 155 | /* Forms */ 156 | legend { 157 | padding:.5em; 158 | } 159 | input, 160 | textarea { 161 | padding:.5em; 162 | border:.1em solid #ccc; 163 | } 164 | fieldset { 165 | padding:.5em 1em; 166 | border:.1em solid #ccc; 167 | } 168 | input[type="file"] { 169 | padding:0; 170 | } 171 | input:focus, 172 | textarea:focus { 173 | color:#60686c; 174 | outline:.2em solid #cadbe3; 175 | background:#e2f5ff; 176 | } 177 | 178 | 179 | table { 180 | border-collapse:collapse; 181 | border:.1em solid #555; 182 | } 183 | th, td { 184 | text-align:left; 185 | padding:.25em .5em; 186 | } 187 | td { 188 | border:.1em solid #777; 189 | } 190 | 191 | 192 | /* Rounded corners. */ 193 | button, 194 | .button { 195 | padding:.5em; 196 | border-width:0; 197 | line-height:1; 198 | text-align:center; 199 | text-decoration:none; 200 | font-size:1em; 201 | font-weight:bold; 202 | color:#fff; 203 | cursor:pointer; 204 | border-top-left-radius: .5em; 205 | border-top-right-radius: .5em; 206 | -webkit-border-top-left-radius: .5em; 207 | -webkit-border-top-right-radius: .5em; 208 | -moz-border-radius-topleft: .5em; 209 | -moz-border-radius-topright: .5em; 210 | border-bottom-left-radius: .5em; 211 | border-bottom-right-radius: .5em; 212 | -webkit-border-bottom-left-radius: .5em; 213 | -webkit-border-bottom-right-radius: .5em; 214 | -moz-border-radius-bottomright: .5em; 215 | -moz-border-radius-bottomleft: .5em; 216 | } 217 | 218 | 219 | /* Blue Gradient */ 220 | button, 221 | .button, 222 | th { 223 | color:#fff; 224 | background:#3c6081; 225 | background-image: -webkit-gradient( 226 | linear, 227 | left top, 228 | left bottom, 229 | color-stop( 1, #3c6081 ), 230 | color-stop( 0, #588dbe ) 231 | ); 232 | background-image: -moz-linear-gradient( 233 | top, 234 | #3c6081, 235 | #588dbe 236 | ); 237 | } -------------------------------------------------------------------------------- /style-syntax-highlighter.css: -------------------------------------------------------------------------------- 1 | /** 2 | * Nighthawk Theme for SyntaxHighlighter. 3 | * 4 | * @package Nighthawk 5 | * @author Michael Fields 6 | * @copyright Copyright (c) 2011, Michael Fields 7 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 8 | * @version 1.0 9 | * @since 2011-03-12 10 | */ 11 | .syntaxhighlighter a, 12 | .syntaxhighlighter div, 13 | .syntaxhighlighter code, 14 | .syntaxhighlighter table, 15 | .syntaxhighlighter table td, 16 | .syntaxhighlighter table tr, 17 | .syntaxhighlighter table tbody, 18 | .syntaxhighlighter table thead, 19 | .syntaxhighlighter table caption, 20 | .syntaxhighlighter textarea { 21 | -moz-border-radius: 0 0 0 0 !important; 22 | -webkit-border-radius: 0 0 0 0 !important; 23 | background: none !important; 24 | background-color:transparent !important; 25 | border: 0 !important; 26 | bottom: auto !important; 27 | float: none !important; 28 | height: auto !important; 29 | left: auto !important; 30 | line-height: 1.5em !important; 31 | margin: 0 !important; 32 | outline: 0 !important; 33 | overflow: visible !important; 34 | padding: 0 !important; 35 | position: static !important; 36 | right: auto !important; 37 | text-align: left !important; 38 | top: auto !important; 39 | vertical-align: baseline !important; 40 | width: auto !important; 41 | box-sizing: content-box !important; 42 | font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important; 43 | font-weight: normal !important; 44 | font-style: normal !important; 45 | font-size: 1em !important; 46 | min-height: inherit !important; 47 | min-height: auto !important; 48 | } 49 | 50 | .syntaxhighlighter { 51 | width: 100% !important; 52 | margin: 1em 0 2.5em 0 !important; 53 | position: static !important; 54 | overflow: auto !important; 55 | background-color:#fff !important; 56 | border-top:1px solid #ccc !important; 57 | border-left:1px solid #ccc !important; 58 | box-shadow: .2em .2em .3em rgba( 0, 0, 0, 0.3 ); 59 | -webkit-box-shadow: .2em .2em .3em rgba( 0, 0, 0, 0.3 ); 60 | -moz-box-shadow: .2em .2em .3em rgba( 0, 0, 0, 0.3 ); 61 | } 62 | .syntaxhighlighter.source { 63 | overflow: hidden !important; 64 | } 65 | .syntaxhighlighter .bold { 66 | font-weight: bold !important; 67 | } 68 | .syntaxhighlighter .italic { 69 | font-style: italic !important; 70 | } 71 | .syntaxhighlighter .line { 72 | white-space: pre !important; 73 | } 74 | .syntaxhighlighter table { 75 | width: 100% !important; 76 | } 77 | .syntaxhighlighter table caption { 78 | font-family: Trebuchet,arial,sans-serif !important; 79 | font-weight:bold !important; 80 | text-align:left !important; 81 | margin-bottom:.5em !important; 82 | padding:.5em !important; 83 | color: #fff !important; 84 | background:#3c6081 !important; 85 | background-image: -webkit-gradient( 86 | linear, 87 | left top, 88 | left bottom, 89 | color-stop( 1, #3c6081 ), 90 | color-stop( 0, #588dbe ) 91 | ) !important; 92 | background-image: -moz-linear-gradient( 93 | top, 94 | #3c6081, 95 | #588dbe 96 | ) !important; 97 | } 98 | .syntaxhighlighter table tbody {} 99 | .syntaxhighlighter table td.code { 100 | width: 100% !important; 101 | } 102 | .syntaxhighlighter table td.code .container {} 103 | .syntaxhighlighter table td.code .container textarea {} 104 | .syntaxhighlighter table td.gutter .line { 105 | text-align: right !important; 106 | padding: 0 0.5em 0 1em !important; 107 | } 108 | .syntaxhighlighter table td.code .line {} 109 | .syntaxhighlighter.nogutter td.code .container { 110 | padding:1em 0 !important; 111 | } 112 | .syntaxhighlighter.nogutter td.code .line { 113 | padding:0 0 0 1em !important; 114 | } 115 | .syntaxhighlighter.show { 116 | display: block !important; 117 | } 118 | .syntaxhighlighter.collapsed table { 119 | display: none !important; 120 | } 121 | 122 | .syntaxhighlighter.collapsed .toolbar {} 123 | .syntaxhighlighter.collapsed .toolbar span {} 124 | .syntaxhighlighter.collapsed .toolbar span a {} 125 | .syntaxhighlighter.collapsed .toolbar span a.expandSource {} 126 | .syntaxhighlighter .toolbar {} 127 | .syntaxhighlighter .toolbar span.title {} 128 | .syntaxhighlighter .toolbar a {} 129 | .syntaxhighlighter .toolbar a.expandSource {} 130 | 131 | .syntaxhighlighter.ie { 132 | font-size: .9em !important; 133 | padding: 1px 0 1px 0 !important; 134 | } 135 | .syntaxhighlighter.ie .toolbar { 136 | line-height: 8px !important; 137 | } 138 | .syntaxhighlighter.ie .toolbar a { 139 | padding-top: 0px !important; 140 | } 141 | .syntaxhighlighter.printing .line.alt1 .content, 142 | .syntaxhighlighter.printing .line.alt2 .content, 143 | .syntaxhighlighter.printing .line.highlighted .number, 144 | .syntaxhighlighter.printing .line.highlighted.alt1 .content, 145 | .syntaxhighlighter.printing .line.highlighted.alt2 .content { 146 | background-color: transparent !important; 147 | } 148 | .syntaxhighlighter.printing .line .number { 149 | color: #bbbbbb !important; 150 | } 151 | .syntaxhighlighter.printing .line .content { 152 | color: #000 !important; 153 | } 154 | .syntaxhighlighter.printing .toolbar { 155 | display: none !important; 156 | } 157 | .syntaxhighlighter.printing a { 158 | text-decoration: none !important; 159 | } 160 | .syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a { 161 | color: #000 !important; 162 | } 163 | .syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a { 164 | color: #008200 !important; 165 | } 166 | .syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a { 167 | color: blue !important; 168 | } 169 | .syntaxhighlighter.printing .keyword { 170 | color: #006699 !important; 171 | font-weight: bold !important; 172 | } 173 | .syntaxhighlighter.printing .preprocessor { 174 | color: gray !important; 175 | } 176 | .syntaxhighlighter.printing .variable { 177 | color: #aa7700 !important; 178 | } 179 | .syntaxhighlighter.printing .value { 180 | color: #009900 !important; 181 | } 182 | .syntaxhighlighter.printing .functions { 183 | color: #ff1493 !important; 184 | } 185 | .syntaxhighlighter.printing .constants { 186 | color: #0066cc !important; 187 | } 188 | .syntaxhighlighter.printing .script { 189 | font-weight: bold !important; 190 | } 191 | .syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a { 192 | color: gray !important; 193 | } 194 | .syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a { 195 | color: #ff1493 !important; 196 | } 197 | .syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a { 198 | color: red !important; 199 | } 200 | .syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a { 201 | color: #000 !important; 202 | } 203 | 204 | .syntaxhighlighter { 205 | background-color:#fff !important; 206 | } 207 | .syntaxhighlighter .line.alt1 { 208 | background-color:#fff !important; 209 | } 210 | .syntaxhighlighter .line.alt2 { 211 | background-color:#fff !important; 212 | } 213 | .syntaxhighlighter .line.highlighted.alt1, 214 | .syntaxhighlighter .line.highlighted.alt2 { 215 | background-color: #fffada !important; 216 | } 217 | .syntaxhighlighter .gutter .line.highlighted { 218 | color: #333 !important; 219 | border-right-color: #fffada !important; 220 | background-color: #fffada !important; 221 | } 222 | 223 | .syntaxhighlighter .line.highlighted.number { 224 | color: #000 !important; 225 | } 226 | .syntaxhighlighter .gutter { 227 | color: #afafaf !important; 228 | } 229 | .syntaxhighlighter .gutter .line { 230 | border-right: 3px solid #fff !important; 231 | } 232 | .syntaxhighlighter.printing .line .content { 233 | border: none !important; 234 | } 235 | .syntaxhighlighter.collapsed { 236 | overflow: visible !important; 237 | } 238 | .syntaxhighlighter.collapsed .toolbar { 239 | color: blue !important; 240 | background-color:#fff !important; 241 | border: 1px solid #fff !important; 242 | } 243 | .syntaxhighlighter.collapsed .toolbar a { 244 | color: blue !important; 245 | } 246 | .syntaxhighlighter.collapsed .toolbar a:hover { 247 | color: red !important; 248 | } 249 | .syntaxhighlighter .toolbar { 250 | color: white !important; 251 | background: #fff !important; 252 | border: none !important; 253 | } 254 | .syntaxhighlighter .toolbar a { 255 | color: #fff !important; 256 | } 257 | .syntaxhighlighter .toolbar a:hover { 258 | color: #000 !important; 259 | } 260 | .syntaxhighlighter .plain, .syntaxhighlighter .plain a { 261 | color: #000 !important; 262 | } 263 | .syntaxhighlighter .comments, .syntaxhighlighter .comments a { 264 | color: #008200 !important; 265 | } 266 | .syntaxhighlighter .string, .syntaxhighlighter .string a { 267 | color: blue !important; 268 | } 269 | .syntaxhighlighter .keyword { 270 | color: #006699 !important; 271 | } 272 | .syntaxhighlighter .preprocessor { 273 | color: gray !important; 274 | } 275 | .syntaxhighlighter .variable { 276 | color: #aa7700 !important; 277 | } 278 | .syntaxhighlighter .value { 279 | color: #009900 !important; 280 | } 281 | .syntaxhighlighter .functions { 282 | color: #ff1493 !important; 283 | } 284 | .syntaxhighlighter .constants { 285 | color: #0066cc !important; 286 | } 287 | .syntaxhighlighter .script { 288 | font-weight: bold !important; 289 | color: #006699 !important; 290 | background-color: none !important; 291 | } 292 | .syntaxhighlighter .color1, .syntaxhighlighter .color1 a { 293 | color: gray !important; 294 | } 295 | .syntaxhighlighter .color2, .syntaxhighlighter .color2 a { 296 | color: #ff1493 !important; 297 | } 298 | .syntaxhighlighter .color3, .syntaxhighlighter .color3 a { 299 | color: red !important; 300 | } 301 | 302 | .syntaxhighlighter .keyword { 303 | font-weight: bold !important; 304 | } -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | /* 2 | Theme Name: Nighthawk 3 | Theme URI: http://nighthawk.mfields.org/ 4 | Description: A one-column theme for WordPress. 5 | Author: Michael Fields 6 | Author URI: http://wordpress.mfields.org/ 7 | Version: 0 8 | License: GNU General Public License v2.0 or later 9 | License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 | Tags: one-column, flexible-width, custom-header, custom-background, custom-menu, editor-style, translation-ready 11 | 12 | Copyright 2011 Michael Fields. 13 | */ 14 | 15 | 16 | /* =Notes 17 | -------------------------------------------------------------- 18 | 19 | - The .form-errors class is defined in the Grunion Contact Form plugin. 20 | */ 21 | 22 | html { 23 | margin: 0; 24 | padding: 0; 25 | } 26 | body { 27 | position: relative; 28 | z-index: 0; 29 | margin: 0 0 2em; 30 | padding: 0; 31 | color: #555; 32 | background: #eee url( images/diagonal-stripes.png ) fixed; 33 | font-size: 14px; 34 | } 35 | 36 | 37 | /* =Inline Elements 38 | -------------------------------------------------------------- */ 39 | 40 | a { 41 | color: #5588bb; 42 | text-decoration: none; 43 | } 44 | a img { 45 | border-width: 0; 46 | } 47 | a.edit-term img { 48 | border-width: 0; 49 | } 50 | a:hover, 51 | a:active, 52 | a:focus { 53 | outline: 0; 54 | text-decoration: underline; 55 | } 56 | a:focus img { 57 | outline: .2em solid #bfeaff; 58 | } 59 | abbr, 60 | acronym { 61 | border-bottom: 1px dashed #999; 62 | cursor: help; 63 | } 64 | big { 65 | font-size: 2em; 66 | position: relative; 67 | top: .1em; 68 | } 69 | code, 70 | var { 71 | background: #eef3fa; 72 | border: .1em solid #d6e8f1; 73 | color: #60686c; 74 | font-style: normal; 75 | padding: 0 .3em; 76 | } 77 | b code, 78 | b var, 79 | strong code, 80 | strong var { 81 | border-width: .2em; 82 | } 83 | del, 84 | s, 85 | strike { 86 | background-color: #555; 87 | color: #555; 88 | text-decoration: line-through; 89 | } 90 | ins { 91 | background-color: #bfffc5; 92 | text-decoration: none; 93 | } 94 | pre { 95 | border: .1em solid #ccc; 96 | white-space: pre-wrap; 97 | } 98 | pre code { 99 | background: transparent; 100 | border-width: 0; 101 | padding: 0; 102 | white-space: pre-wrap; 103 | } 104 | small { 105 | font-size: 0.9em; 106 | line-height: 1.5em; 107 | } 108 | 109 | 110 | /* =Headings 111 | -------------------------------------------------------------- */ 112 | 113 | h1, 114 | h2, 115 | h3, 116 | h4, 117 | h5, 118 | h6, 119 | #site-title { 120 | clear: both; 121 | color: #555; 122 | font-weight: bold; 123 | line-height: 1.2em; 124 | padding: 0; 125 | } 126 | h1 { 127 | font-size: 2.25em; 128 | font-weight: normal; 129 | margin: .83em 0; 130 | } 131 | h2 { 132 | font-size: 1.75em; 133 | font-weight: normal; 134 | margin: 1.05em 0; 135 | } 136 | h3 { 137 | font-size: 1.25em; 138 | margin: 1.23em 0; 139 | } 140 | h4 { 141 | font-size: 1.06em; 142 | margin: 1.35em 0; 143 | } 144 | h5, 145 | h6 { 146 | font-size: 1.00em; 147 | margin: 1.5em 0; 148 | } 149 | h6 { 150 | color: #888; 151 | } 152 | h1 a, 153 | h2 a, 154 | h3 a, 155 | h4 a, 156 | h5 a, 157 | h6 a, 158 | #site-title { 159 | color: #555; 160 | text-decoration: none; 161 | } 162 | 163 | 164 | /* =Fonts 165 | -------------------------------------------------------------- */ 166 | 167 | body, 168 | input, 169 | textarea { 170 | font-family: Trebuchet, arial, sans-serif; 171 | } 172 | h1, 173 | h2, 174 | h3, 175 | h4, 176 | h5, 177 | h6, 178 | #site-title, 179 | .comment-author, 180 | .nav-paged a { 181 | font-family: Cabin, Trebuchet, arial, sans-serif; 182 | } 183 | code, 184 | kbd, 185 | pre, 186 | samp, 187 | tt, 188 | var { 189 | font-family: Consolas, "Courier New", Courier, monospace; 190 | } 191 | 192 | 193 | /* =Block Level Elements 194 | -------------------------------------------------------------- */ 195 | 196 | article, 197 | aside { 198 | display: block; 199 | } 200 | address, 201 | article, 202 | aside, 203 | blockquote, 204 | dl, 205 | fieldset, 206 | form, 207 | ol, 208 | p, 209 | pre, 210 | table, 211 | ul, 212 | .embed, 213 | .entry-content div { 214 | font-size: 1em; 215 | line-height: 1.5em; 216 | margin: 1.5em 0; 217 | padding: 0; 218 | } 219 | blockquote, 220 | fieldset, 221 | pre { 222 | text-align: left; 223 | padding: 1em; 224 | background-color: #fff; 225 | } 226 | 227 | 228 | /* =Lists 229 | -------------------------------------------------------------- */ 230 | 231 | ol, 232 | ul { 233 | padding-left:1.5em; 234 | } 235 | ol ol, 236 | ol ul, 237 | ul ol, 238 | ul ul { 239 | margin:0; 240 | } 241 | dd, 242 | dt { 243 | margin:0; 244 | padding:0; 245 | } 246 | dt { 247 | font-weight: bold; 248 | } 249 | dd { 250 | margin-bottom:1.5em; 251 | } 252 | 253 | 254 | /* =Blockquotes 255 | -------------------------------------------------------------- */ 256 | 257 | blockquote { 258 | background-color: #f7f7f7; 259 | border: .1em solid #ccc; 260 | -webkit-border-radius: .5em; 261 | -moz-border-radius: .5em; 262 | border-radius: .5em; 263 | font-style: italic; 264 | margin-left: 22px; 265 | min-height: 34px; 266 | padding-left: 2em; 267 | position: relative; 268 | } 269 | blockquote:before { 270 | content: url( images/quote.png ); 271 | position: absolute; 272 | top: 10px; 273 | left: -22px; 274 | } 275 | blockquote blockquote { 276 | margin-right:0; 277 | margin-left:0; 278 | } 279 | blockquote p:first-child, 280 | blockquote blockquote:first-child { 281 | margin-top:0; 282 | } 283 | blockquote p:last-child, 284 | blockquote blockquote:last-child { 285 | margin-bottom:0; 286 | } 287 | 288 | 289 | /* =Tables 290 | -------------------------------------------------------------- */ 291 | 292 | table { 293 | border: 1px solid #555; 294 | border-collapse: collapse; 295 | width: 100%; 296 | } 297 | th, 298 | td { 299 | padding: .25em .5em; 300 | } 301 | th { 302 | background-color: #555; 303 | color: #fff; 304 | } 305 | td { 306 | border: 1px solid #777; 307 | } 308 | 309 | 310 | /* =Forms 311 | -------------------------------------------------------------- */ 312 | 313 | legend { 314 | padding: .5em; 315 | } 316 | input, 317 | textarea { 318 | border: .1em solid #ccc; 319 | font-size: 1em; 320 | padding: .5em; 321 | } 322 | fieldset { 323 | border: .1em solid #ccc; 324 | padding: .5em 1em; 325 | } 326 | input[type="file"] { 327 | padding: 0; 328 | } 329 | input:focus, 330 | textarea:focus { 331 | background: #e2f5ff; 332 | color: #60686c; 333 | outline: .2em solid #cadbe3; 334 | } 335 | 336 | 337 | /* =Bullet Forms 338 | -------------------------------------------------------------- */ 339 | 340 | form.bullet { 341 | border: .1em solid #ccc; 342 | -moz-border-radius-topright: .25em; 343 | -webkit-border-top-right-radius: .25em; 344 | border-top-right-radius: .25em; 345 | -moz-border-radius-bottomright: .25em; 346 | -webkit-border-bottom-right-radius: .25em; 347 | border-bottom-right-radius: .25em; 348 | background: #555; 349 | -webkit-background-clip: padding-box; 350 | background-clip: padding-box; 351 | color: #fff; 352 | height:2em; 353 | padding-right:6em; 354 | position:relative; 355 | } 356 | form.bullet br { 357 | display: none; 358 | } 359 | form.bullet input.bullet-term, 360 | form.bullet input.bullet-button { 361 | border-width: 0; 362 | display: block; 363 | font-size: 1em; 364 | height: 2em; 365 | line-height: 2em; 366 | position: absolute; 367 | top: 0; 368 | margin: 0; 369 | } 370 | form.bullet label.bullet-label { 371 | display: none; 372 | } 373 | form.bullet input.bullet-term { 374 | background: #fff; 375 | display: block; 376 | float: left; 377 | padding: 0 .5em; 378 | position: relative; 379 | width: 100%; 380 | z-index: 2; 381 | } 382 | form.bullet input.bullet-term:focus { 383 | outline: none; 384 | } 385 | form.bullet input.bullet-button { 386 | background: transparent; 387 | color: #fff; 388 | cursor: pointer; 389 | right: 0; 390 | padding: 0; 391 | text-align: center; 392 | width: 5em; 393 | } 394 | form.bullet.subscribe-without-commenting { 395 | padding-right: 8em; 396 | } 397 | form.bullet.subscribe-without-commenting input.bullet-button { 398 | width: 7em; 399 | } 400 | 401 | 402 | /* =Generic Box Class 403 | -------------------------------------------------------------- */ 404 | 405 | .box { 406 | margin-top: 1.5em; 407 | margin-bottom: 1.5em; 408 | margin-right: .5em; 409 | position: relative; 410 | } 411 | .box .heading { 412 | color: #567797; 413 | display: block; 414 | font-size: 1.5em; 415 | font-weight: bold; 416 | line-height: 1.25; 417 | margin: 0 0 .5em; 418 | } 419 | .box .meta { 420 | display: block; 421 | font-size: .85em; 422 | line-height: 1.25; 423 | margin-bottom: 1em; 424 | } 425 | .box .content p { 426 | margin: 0 0 .75em; 427 | } 428 | .box .content p:first-child, 429 | .box .content p:only-child { 430 | margin-top: 0; 431 | } 432 | .box .content p:last-child, 433 | .box .content p:only-child { 434 | margin-bottom: 0; 435 | } 436 | 437 | 438 | /* =Dialogs 439 | -------------------------------------------------------------- */ 440 | 441 | .dialog, 442 | ul.form-errors { 443 | display: block; 444 | margin: .5em; 445 | padding: .5em; 446 | color: #333; 447 | background-color: #bfeaff; /* Light Blue. */ 448 | outline: 0; 449 | border: .2em solid #ccc; 450 | -webkit-border-radius: .5em; 451 | -moz-border-radius: .5em; 452 | border-radius: .5em; 453 | } 454 | .dialog.notice { 455 | background-color: #ffe58c; /* Light Yellow. */ 456 | border-color: #e3cc7d; 457 | color: #786c43; 458 | } 459 | ul.form-errors { 460 | background-color: #ffe58c; /* Light Yellow. */ 461 | border-color: #e3cc7d; 462 | color: #786c43; 463 | padding-left: 2em; 464 | } 465 | ul.form-errors li.form-error-message { 466 | color: #786c43 !important; 467 | } 468 | 469 | 470 | /* =Float Clearing 471 | -------------------------------------------------------------- */ 472 | 473 | .contain:before, 474 | .contain:after { 475 | content: "\0020"; 476 | display: block; 477 | height: 0; 478 | visibility: hidden; 479 | } 480 | .contain:after { 481 | clear: both; 482 | } 483 | .contain { 484 | zoom: 1; 485 | } 486 | 487 | 488 | /* =Layout 489 | -------------------------------------------------------------- */ 490 | 491 | #wrap { 492 | margin: 0 auto; 493 | max-width: 66em; 494 | padding: 0 1em 1em; 495 | } 496 | #header { 497 | background: #fff; 498 | margin: 0; 499 | min-height: 100px; 500 | padding: 1em; 501 | } 502 | #header-image { 503 | max-height: 200px; 504 | overflow: hidden; 505 | text-align: center; 506 | } 507 | #site-title { 508 | font-size: 4em; 509 | font-weight: bold; 510 | margin: 0; 511 | text-align: center; 512 | } 513 | #site-title, 514 | #site-title a { 515 | color: #333; 516 | } 517 | #tagline { 518 | color: #777; 519 | font-style: italic; 520 | margin: 0; 521 | text-align: center; 522 | } 523 | #page { 524 | clear: both; 525 | color: #666; 526 | position: relative; 527 | margin: 1.5em 0 0; 528 | padding: 0; 529 | /* 530 | -moz-box-shadow: 0 0 .75em rgba( 0, 0, 0, 0.4 ); 531 | -webkit-box-shadow: 0 0 .75em rgba( 0, 0, 0, 0.4 ); 532 | box-shadow: 0 0 .75em rgba( 0, 0, 0, 0.4 ); 533 | */ 534 | z-index: 1; 535 | } 536 | #content { 537 | background: #fff; 538 | margin: 0; 539 | overflow: hidden; 540 | padding: 0 6em 1.5em; 541 | } 542 | 543 | 544 | /* =Menu Top 545 | -------------------------------------------------------------- */ 546 | 547 | #menu-top { 548 | margin: 0 0 1em; 549 | text-align: center; 550 | } 551 | #menu-top ul { 552 | margin: 0; 553 | padding: .5em; 554 | } 555 | #menu-top li { 556 | display: inline; 557 | list-style-type: none; 558 | } 559 | #menu-top li a { 560 | background-color: #eee; 561 | border: 1px solid #ddd; 562 | line-height: 2.5em; 563 | padding: .5em; 564 | } 565 | #menu-top .dialog { 566 | text-align: center; 567 | } 568 | 569 | 570 | /* =Menu Bottom 571 | -------------------------------------------------------------- */ 572 | 573 | #menu-bottom { 574 | clear: both; 575 | margin: 1em auto 2em; 576 | max-width: 66em; 577 | } 578 | #menu-bottom.no-menu { 579 | max-width: 50em; 580 | } 581 | #menu-bottom ul { 582 | margin: 0; 583 | padding: 0; 584 | text-align: center; 585 | } 586 | #menu-bottom li { 587 | display: inline; 588 | padding: .5em; 589 | white-space: nowrap; 590 | } 591 | #menu-bottom li a { 592 | background-color: #f6f6f6; 593 | border: .1em solid #ddd; 594 | -moz-border-radius: .3em; 595 | -webkit-border-radius: .3em; 596 | border-radius: .3em; 597 | color: #777; 598 | cursor: pointer; 599 | font-weight: bold; 600 | line-height: 3em; 601 | outline: 0; 602 | padding: .35em .6em; 603 | text-align: center; 604 | text-decoration: none; 605 | } 606 | #menu-bottom li a:focus, 607 | #menu-bottom li a:hover, 608 | #menu-bottom li a:active { 609 | color: #555; 610 | } 611 | #menu-bottom .dialog { 612 | text-align: center; 613 | } 614 | 615 | 616 | /* =Intro Box 617 | -------------------------------------------------------------- */ 618 | 619 | #featured-image { 620 | float: right; 621 | margin: .5em 0 0 1em; 622 | width: 150px; 623 | } 624 | #featured-image img { 625 | float: right; 626 | } 627 | #summary p:first-child, 628 | #summary p:only-child { 629 | margin-top: .25em; 630 | } 631 | #summary p:last-child, 632 | #summary p:only-child { 633 | margin-bottom: 0; 634 | } 635 | #intro { 636 | background-color: #eef3fa; 637 | border-color: #d8e0eb; 638 | border-style: solid; 639 | border-width: .2em 0; 640 | color: #666; 641 | display: block; 642 | margin: 0; 643 | overflow: hidden; 644 | padding: 1em 3em; 645 | } 646 | #intro h1 { 647 | clear: none; 648 | line-height: 1.25; 649 | margin: 0; 650 | } 651 | #byline, 652 | #dateline, 653 | #intro-meta { 654 | color: #555; 655 | font-size: .8em; 656 | font-weight: normal; 657 | line-height: 1.5; 658 | margin: .5em 0 0; 659 | } 660 | #intro.has-featured-image p { 661 | margin-right: 180px; 662 | } 663 | #intro p a { 664 | color: #54778a; 665 | } 666 | #intro .page-link a { 667 | background-color: #555; 668 | border: 1px solid #d8e0eb; 669 | border-radius: .25em; 670 | color: #ccc; 671 | float: left; 672 | font-size: .9em; 673 | font-weight: bold; 674 | margin: 0 .25em .25em 0; 675 | padding: .2em .3em; 676 | text-align: center; 677 | width: 1em; 678 | } 679 | #intro .page-link a:hover, 680 | #intro .page-link a:focus, 681 | #intro .page-link a:active { 682 | background-color: #333; 683 | color: #fff; 684 | text-decoration: none; 685 | } 686 | #featured-posts { 687 | background: #fff; 688 | } 689 | #intro-list { 690 | background: #fff; 691 | border: 1px solid #ddd; 692 | border-radius: 0 0 40% 40% / 0 0 15% 15%; 693 | border-top-width: 0; 694 | list-style-type: none; 695 | margin: 0 3em; 696 | padding: .5em 1.5em 2em; 697 | } 698 | #intro-list li { 699 | border-top: 1px dotted #ccc; 700 | line-height: 2.2em; 701 | } 702 | #intro-list li:first-child { 703 | border-top: none; 704 | } 705 | 706 | 707 | /* =All Entries 708 | -------------------------------------------------------------- */ 709 | 710 | .entry { 711 | background: #fff; 712 | } 713 | .entry-content img { 714 | max-width: 860px; 715 | height: auto; 716 | } 717 | .entry .footer { 718 | border-top: 1px dotted #ccc; 719 | margin-top: 2.5em; 720 | padding-top: 1em; 721 | font-size: .9em; 722 | text-align: center; 723 | } 724 | .entry .footer a { 725 | color: #999; 726 | } 727 | .entry pre { 728 | padding: 5%; 729 | width: 90%; 730 | overflow: auto; 731 | } 732 | .entry .attachment-ghostbird_detail { 733 | margin-right: 10px; 734 | } 735 | .entry .bullet { 736 | border-color: #ccc; 737 | } 738 | .entry .attachment { 739 | text-align: center; 740 | } 741 | /* Featured image. */ 742 | .entry .featured-image { 743 | float: right; 744 | margin: 0 0 1em 1em; 745 | padding: 10px 12px 8px 10px; 746 | border: .1em solid #ccc; 747 | background-color: #fff; 748 | text-align: center; 749 | } 750 | /* Meta. */ 751 | .meta { 752 | clear: both; 753 | } 754 | .meta p { 755 | margin: 0; 756 | } 757 | .entry-footer { 758 | clear: both; 759 | display: block; 760 | font-size: .8em; 761 | text-align: center; 762 | } 763 | 764 | 765 | /* =Entries in Blog View 766 | -------------------------------------------------------------- */ 767 | 768 | #blog .entry { 769 | border-bottom: 1px solid #ddd; 770 | margin: 0; 771 | padding: 1.3em 3em 0; 772 | } 773 | #blog h2.entry-title { 774 | margin-top: 0; 775 | margin-bottom: .25em; 776 | } 777 | #blog .has-featured-image h2.entry-title { 778 | margin-right: 190px; 779 | clear: none; 780 | } 781 | #blog .format-status .image { 782 | float: left; 783 | width: 70px; 784 | height: 70px; 785 | border: 1px solid #ccc; 786 | position: relative; 787 | top: .3em; 788 | -webkit-border-radius: .5em; 789 | -moz-border-radius: .5em; 790 | border-radius: .5em; 791 | overflow: hidden; 792 | } 793 | #blog .format-status .image img { 794 | width: 100%; 795 | height: 100%; 796 | -webkit-border-radius: .5em; 797 | -moz-border-radius: .5em; 798 | border-radius: .5em; 799 | } 800 | #blog .format-status .content, 801 | #blog .format-status .entry-terms { 802 | margin-left: 85px; 803 | } 804 | #blog .format-status .entry-terms p { 805 | margin-top: .25em; 806 | } 807 | #blog .post-password-required form p { 808 | margin: 0; 809 | padding: 0; 810 | } 811 | 812 | .format-image { 813 | padding-left: 1em; 814 | padding-right: 1em; 815 | } 816 | .format-image .wp-caption { 817 | float: none; 818 | margin: 0 auto; 819 | max-width: 100%; 820 | padding: 0 !important; 821 | width: auto; 822 | } 823 | .format-image .wp-caption img { 824 | display: block; 825 | margin-bottom: .75em; 826 | } 827 | .format-image .wp-caption-text { 828 | text-align: center; 829 | line-height: 1.5; 830 | } 831 | .format-image p { 832 | margin: 0; 833 | padding: 0 0 1.5em; 834 | } 835 | .format-image img { 836 | display: block; 837 | margin: 0 auto; 838 | max-width: 100%; 839 | height: auto; 840 | } 841 | .format-image .entry-footer { 842 | text-align: center; 843 | margin: 1em; 844 | } 845 | 846 | 847 | /* =Search Results 848 | -------------------------------------------------------------- */ 849 | 850 | .search-result { 851 | margin-bottom: 3em; 852 | } 853 | .search-result .heading { 854 | font-weight: normal; 855 | font-size: 1.2em; 856 | margin: 0 0 .25em; 857 | } 858 | .search-result .content { 859 | margin: 0; 860 | padding: 0; 861 | } 862 | 863 | 864 | /* =Image.php 865 | -------------------------------------------------------------- */ 866 | 867 | #image { 868 | text-align: center; 869 | } 870 | .single-attachment .image .description { 871 | border-top: 1px solid #555; 872 | border-bottom: 1px solid #555; 873 | margin-right: 2em; 874 | margin-left: 2em; 875 | padding-right: 1em; 876 | padding-left: 1em; 877 | } 878 | .single-attachment .wp-caption-text { 879 | text-align: center; 880 | margin-right: 6em; 881 | margin-left: 6em; 882 | } 883 | 884 | .single-attachment .return-to-parent { 885 | text-align: center; 886 | } 887 | 888 | #related-images h2 { 889 | text-align: center; 890 | } 891 | #related-images ul { 892 | margin: 0; 893 | padding: 0; 894 | } 895 | #related-images li { 896 | /*float: left;*/ 897 | display: inline; 898 | width: 70px; 899 | height: 70px; 900 | margin: .5em .5em 0 0; 901 | padding: 0; 902 | list-style-type: none; 903 | } 904 | 905 | 906 | /* =Comment List 907 | -------------------------------------------------------------- */ 908 | 909 | .comment { 910 | min-height: 55px; 911 | } 912 | .comment-list { 913 | list-style-type: none; 914 | margin: 0; 915 | padding: 0; 916 | } 917 | .comment-date { 918 | color: #888; 919 | } 920 | .trackback { 921 | border: .1em solid #ccc; 922 | -webkit-border-radius: .5em; 923 | -moz-border-radius: .5em; 924 | border-radius: .5em; 925 | background: #eef3fa url( images/icons.png ) -90px -35px no-repeat; 926 | } 927 | .trackback .content { 928 | margin-left: 28px; 929 | padding: .25em .5em; 930 | background: #fff; 931 | -webkit-background-clip: padding-box; 932 | background-clip: padding-box; 933 | -webkit-border-radius: .5em; 934 | -moz-border-radius: .5em; 935 | border-radius: .5em; 936 | } 937 | 938 | 939 | /* =Comment Form 940 | -------------------------------------------------------------- */ 941 | 942 | #respond label { 943 | display: block; 944 | } 945 | .comment-form-comment textarea { 946 | width: 98%; 947 | height: 16em; 948 | } 949 | .required { 950 | display: none; 951 | height: 0; 952 | width: 0; 953 | } 954 | .addendum { 955 | font-size: .6em; 956 | } 957 | 958 | 959 | /* =Post Navigation 960 | -------------------------------------------------------------- */ 961 | 962 | #page-footer { 963 | background: #fff; 964 | clear: both; 965 | } 966 | .nav-paged { 967 | background: #555; 968 | margin: 0; 969 | padding: .75em 1.75em; 970 | } 971 | .nav-paged a { 972 | color: #fff; 973 | font-size: 1.25em; 974 | letter-spacing: .075em; 975 | text-transform: uppercase; 976 | } 977 | .timeline-progress { 978 | float: right; 979 | -moz-border-radius-topleft: .5em; 980 | -webkit-border-top-left-radius: .5em; 981 | border-top-left-radius: .5em; 982 | } 983 | .timeline-regress { 984 | float: left; 985 | -moz-border-radius-topright: .5em; 986 | -webkit-border-top-right-radius: .5em; 987 | border-top-right-radius: .5em; 988 | } 989 | 990 | 991 | /* =All Widgets 992 | -------------------------------------------------------------- */ 993 | 994 | .widget { 995 | overflow: hidden; 996 | } 997 | .widget img { 998 | max-width: 100%; 999 | height: auto; 1000 | } 1001 | .widget .wp-caption { 1002 | padding: 0; 1003 | text-align:center; 1004 | width: 100%; 1005 | } 1006 | .widget .wp-caption-text { 1007 | margin:0; 1008 | } 1009 | .widget-title, 1010 | .widget ol, 1011 | .widget ul, 1012 | .widget p:first-child, 1013 | .widget ul:first-child { 1014 | margin-top: 0; 1015 | } 1016 | .widget select { 1017 | min-width: 100% 1018 | } 1019 | 1020 | 1021 | /* =Individual Widgets 1022 | -------------------------------------------------------------- */ 1023 | 1024 | .widget_rss ul { 1025 | padding:0; 1026 | list-style-type: none; 1027 | } 1028 | .widget_rss li { 1029 | margin-bottom: 1.5em; 1030 | } 1031 | .widget_rss li .rsswidget { 1032 | display: block; 1033 | font-size: 1.1em; 1034 | } 1035 | .rss-date, 1036 | .widget_rss cite { 1037 | color: #999; 1038 | display: block; 1039 | font-style: italic; 1040 | line-height: 2em; 1041 | } 1042 | .widget_calendar { 1043 | border-color: #ccc; 1044 | } 1045 | .widget_calendar td { 1046 | padding: 1.5% 0; 1047 | text-align: center; 1048 | width: 14.28%; 1049 | font-weight: bold; 1050 | border-color: #ccc; 1051 | } 1052 | 1053 | 1054 | /* =Footer Widgets 1055 | -------------------------------------------------------------- */ 1056 | 1057 | .footer-widgets { 1058 | clear: both; 1059 | position: relative; 1060 | z-index: 0; 1061 | background-color: #fff; 1062 | margin: 0 1em; 1063 | color: #666; 1064 | -webkit-border-bottom-left-radius: .5em; 1065 | -webkit-border-bottom-right-radius: .5em; 1066 | -moz-border-radius-bottomright: .5em; 1067 | -moz-border-radius-bottomleft: .5em; 1068 | border-bottom-left-radius: .5em; 1069 | border-bottom-right-radius: .5em; 1070 | -webkit-box-shadow: 0 0 .75em rgba( 0, 0, 0, 0.4 ); 1071 | -moz-box-shadow: 0 0 .75em rgba( 0, 0, 0, 0.4 ); 1072 | box-shadow: 0 0 .75em rgba( 0, 0, 0, 0.4 ); 1073 | } 1074 | .footer-widgets .area { 1075 | float: left; 1076 | margin: 3.125%; 1077 | width: 93.75%; 1078 | } 1079 | .footer-widgets-count-2 .area-1 { 1080 | width: 60.25%; 1081 | } 1082 | .footer-widgets-count-2 .area-2, 1083 | .footer-widgets-count-3 .area { 1084 | width: 27%; 1085 | } 1086 | .footer-widgets .area, 1087 | .footer-widgets .area p, 1088 | .footer-widgets .area li { 1089 | line-height: 1.4; 1090 | } 1091 | .footer-widgets h3.widget-title { 1092 | margin-bottom: .25em; 1093 | font-size: 1.1em; 1094 | } 1095 | .footer-widgets .widget-container { 1096 | margin-bottom: 1.5em; 1097 | } 1098 | .footer-widgets .widget-container ul { 1099 | list-style-type: square; 1100 | } 1101 | 1102 | 1103 | /* =Buttons 1104 | -------------------------------------------------------------- */ 1105 | 1106 | button, 1107 | .button, 1108 | input#submit, 1109 | input.pushbutton-wide { /* Grunion Contact Form Plugin */ 1110 | padding: 5px 7px 3px; 1111 | color: #bbb; 1112 | line-height: 1; 1113 | text-decoration: none; 1114 | border: 1px solid #303030; 1115 | border-radius: 5px; 1116 | -webkit-transition: -webkit-box-shadow 0.1s linear; 1117 | -moz-transition: box-shadow 0.2s; 1118 | 1119 | background: #555; 1120 | background: -moz-linear-gradient( top, #555 1%, #333 100% ); 1121 | background: -webkit-gradient( linear, left top, left bottom, color-stop( 1%, #555 ), color-stop( 100%, #333 ) ); 1122 | background: -webkit-linear-gradient( top, #555 1%, #333 100% ); 1123 | background: -o-linear-gradient( top, #555 1%, #333 100% ); 1124 | background: -ms-linear-gradient( top, #555 1%, #333 100% ); 1125 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#555', endColorstr='#333', GradientType=0 ); 1126 | background: linear-gradient( top, #555 1%, #333 100% ); 1127 | } 1128 | button:hover, 1129 | .button:hover, 1130 | input#submit:hover, 1131 | input.pushbutton-wide { /* Grunion Contact Form Plugin */ 1132 | outline: none; 1133 | color: #ddd; 1134 | cursor: pointer; 1135 | } 1136 | button:active, 1137 | button:focus, 1138 | .button:active, 1139 | .button:focus, 1140 | input#submit:focus, 1141 | input#submit:active { 1142 | background: #333; 1143 | background: -moz-linear-gradient( top, #333 1%, #555 100% ); 1144 | background: -webkit-gradient( linear, left top, left bottom, color-stop( 1%, #333 ), color-stop( 100%, #555 ) ); 1145 | background: -webkit-linear-gradient( top, #333 1%, #555 100% ); 1146 | background: -o-linear-gradient( top, #333 1%, #555 100% ); 1147 | background: -ms-linear-gradient( top, #333 1%, #555 100% ); 1148 | filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#333', endColorstr='#555', GradientType=0 ); 1149 | background: linear-gradient( top, #333 1%, #555 100% ); 1150 | } 1151 | 1152 | 1153 | /* =WordPress Generated Classes 1154 | -------------------------------------------------------------- */ 1155 | 1156 | .alignnone, 1157 | div.alignnone { 1158 | margin: 0 1em 0 0; 1159 | } 1160 | .alignleft, 1161 | div.alignleft { 1162 | float: left; 1163 | margin: 0 1em 1em 0; 1164 | } 1165 | .alignright, 1166 | div.alignright { 1167 | float: right; 1168 | margin: 0 0 1em 1em; 1169 | } 1170 | .aligncenter, 1171 | div.aligncenter { 1172 | display: block; 1173 | margin: 1em auto; 1174 | } 1175 | .aligncenter .wp-caption-text { 1176 | text-align: center 1177 | } 1178 | .bypostauthor {} 1179 | .clear { 1180 | clear: both; 1181 | } 1182 | .embed { 1183 | width: 100%; 1184 | } 1185 | .page-link { 1186 | clear: both; 1187 | } 1188 | .sticky {} 1189 | .assistive-text, 1190 | .screen-reader-text { 1191 | position: absolute !important; 1192 | clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ 1193 | clip: rect(1px, 1px, 1px, 1px); 1194 | } 1195 | 1196 | 1197 | /* =Smaller Text, Lighter Color 1198 | -------------------------------------------------------------- */ 1199 | 1200 | small, 1201 | .meta, 1202 | .wp-caption-text, 1203 | .gallery-caption { 1204 | color: #888; 1205 | font-size: .8em; 1206 | line-height: 1.5; 1207 | font-weight: normal; 1208 | } 1209 | 1210 | 1211 | /* =Bullet Points 1212 | -------------------------------------------------------------- */ 1213 | 1214 | .post-edit:before, 1215 | .subscribe:before, 1216 | .comment-link:before, 1217 | .comment-edit:before, 1218 | .comment-reply:before { 1219 | content: '\2022\00A0'; 1220 | } 1221 | 1222 | 1223 | /* =Shadows 1224 | -------------------------------------------------------------- */ 1225 | 1226 | blockquote, 1227 | pre, 1228 | .format-standard .featured-image, 1229 | .gallery img { 1230 | -moz-box-shadow: .2em .2em .3em rgba( 0, 0, 0, 0.3 ); 1231 | -webkit-box-shadow: .2em .2em .3em rgba( 0, 0, 0, 0.3 ); 1232 | box-shadow: .2em .2em .3em rgba( 0, 0, 0, 0.3 ); 1233 | } 1234 | 1235 | 1236 | /* =I Make Plugins (plugin by Mark Jaquith) 1237 | -------------------------------------------------------------- */ 1238 | 1239 | #cws-imp-plugin-list { 1240 | padding: 0; 1241 | } 1242 | a.cws-imp-plugin-title { 1243 | font-weight: bold; 1244 | margin-bottom: .73em; 1245 | font-size: 1.38em; 1246 | } 1247 | p.cws-imp-plugin-description { 1248 | margin-top: 0; 1249 | } 1250 | li.cws-imp-plugin { 1251 | margin: 0; 1252 | padding: 0; 1253 | list-style-type: none; 1254 | } 1255 | 1256 | 1257 | /* =Gallery Shortcode 1258 | -------------------------------------------------------------- */ 1259 | 1260 | .gallery { 1261 | clear: both; 1262 | } 1263 | .entry #gallery-1 img, 1264 | .entry #gallery-2 img, 1265 | .entry #gallery-3 img, 1266 | .entry #gallery-4 img, 1267 | .entry #gallery-5 img, 1268 | .entry #gallery-6 img, 1269 | .entry #gallery-7 img, 1270 | .entry #gallery-8 img, 1271 | .entry #gallery-9 img, 1272 | .entry #gallery-10 img { 1273 | border-width: 0; 1274 | } 1275 | 1276 | 1277 | /* =Post Archive Tables 1278 | -------------------------------------------------------------- */ 1279 | 1280 | .post-archive { 1281 | border-width: 0; 1282 | border-collapse: collapse; 1283 | } 1284 | .post-archive thead { 1285 | display: none; 1286 | } 1287 | .post-archive td { 1288 | border-width: 1px 0; 1289 | border-color: #ccc; 1290 | padding: 7px; 1291 | } 1292 | .post-archive td:first-child { 1293 | text-align: left; 1294 | } 1295 | .post-archive tr:first-child td { 1296 | border-top-width: 0; 1297 | } 1298 | .post-archive tr:last-child td { 1299 | border-bottom-width: 0; 1300 | } 1301 | .post-archive .comment-count { 1302 | text-align: center; 1303 | } 1304 | .post-archive td.edit-post, 1305 | .post-archive td.comment-respond { 1306 | width: 20px; 1307 | vertical-align: middle; 1308 | } 1309 | a.permalink-icon, 1310 | a.comment-icon { 1311 | display: block; 1312 | width: 16px; 1313 | height: 16px; 1314 | text-indent: -9999em; 1315 | padding: 0; 1316 | background: url( images/icon-sprite.png ) no-repeat; 1317 | } 1318 | a.permalink-icon { 1319 | background-position: -16px 0; 1320 | } 1321 | a.permalink-icon:hover, 1322 | a.permalink-icon:focus, 1323 | a.permalink-icon:active { 1324 | background-position: -16px -16px; 1325 | } 1326 | 1327 | a.comment-icon { 1328 | background-position: 0 0; 1329 | } 1330 | a.comment-icon:hover, 1331 | a.comment-icon:focus, 1332 | a.comment-icon:active { 1333 | background-position: 0 -16px; 1334 | } 1335 | 1336 | 1337 | /* =Githib Commits (Plugin by Michael Fields) 1338 | -------------------------------------------------------------- */ 1339 | 1340 | .github-commits { 1341 | border-color: #ddd; 1342 | } 1343 | .github-commits .time { 1344 | width: 170px; 1345 | } 1346 | .github-commits td { 1347 | border-color: #ddd; 1348 | } 1349 | .github-commits thead th { 1350 | border-color: #ddd; 1351 | background-color: #eef3fa; 1352 | color: #666; 1353 | text-align: left; 1354 | font-weight: normal; 1355 | } 1356 | 1357 | 1358 | /* =Dropdown Widgets 1359 | -------------------------------------------------------------- */ 1360 | 1361 | #menu { 1362 | font-weight: normal; 1363 | position: relative; 1364 | z-index: 10; 1365 | margin: 0 0 1em; 1366 | padding: 0; 1367 | width: 100%; 1368 | float: left; 1369 | border: 1px solid #222; 1370 | border-top-width: 0; 1371 | 1372 | -webkit-border-bottom-left-radius: 8px; 1373 | -webkit-border-bottom-right-radius: 8px; 1374 | -moz-border-radius-bottomright: 8px; 1375 | -moz-border-radius-bottomleft: 8px; 1376 | border-bottom-left-radius: 8px; 1377 | border-bottom-right-radius: 8px; 1378 | } 1379 | #dropdowns ul, 1380 | #dropdowns ol { 1381 | list-style-position:inside; 1382 | padding:0 0 0 .5em; 1383 | margin:0; 1384 | } 1385 | #triggers { 1386 | position:relative; 1387 | z-index:2; 1388 | float:left; 1389 | width:100%; 1390 | margin:0; 1391 | padding:8px 0 0; 1392 | border-top-color:#474747; 1393 | border-top-style:solid; 1394 | border-width:1px; 1395 | border-radius:5px; 1396 | font-size:14px; 1397 | line-height:1; 1398 | } 1399 | #triggers li { 1400 | float:left; 1401 | margin:0 0 8px 8px; 1402 | padding:0; 1403 | list-style-type:none; 1404 | border-radius:5px; 1405 | border: 1px solid #202020; 1406 | } 1407 | #triggers a { 1408 | float:left; 1409 | padding:5px 7px 3px; 1410 | color:#bbb; 1411 | line-height:1; 1412 | text-decoration:none; 1413 | border-top:1px solid #666; 1414 | border-bottom:1px solid #303030; 1415 | border-radius:5px; 1416 | -webkit-transition:-webkit-box-shadow 0.1s linear; 1417 | -moz-transition:box-shadow 0.2s; 1418 | } 1419 | #triggers a:hover, 1420 | #triggers a:focus { 1421 | outline:none; 1422 | color:#ddd; 1423 | border-top-color:#777; 1424 | } 1425 | #triggers a.active { 1426 | background:#333; 1427 | background:-moz-linear-gradient( top, #333 1%, #555 100% ); 1428 | background:-webkit-gradient( linear, left top, left bottom, color-stop( 1%, #333 ), color-stop( 100%, #555 ) ); 1429 | background:-webkit-linear-gradient( top, #333 1%, #555 100% ); 1430 | background:-o-linear-gradient( top, #333 1%, #555 100% ); 1431 | background:-ms-linear-gradient( top, #333 1%, #555 100% ); 1432 | filter:progid:DXImageTransform.Microsoft.gradient( startColorstr='#333', endColorstr='#555', GradientType=0 ); 1433 | background:linear-gradient( top, #333 1%, #555 100% ); 1434 | } 1435 | #dropdowns { 1436 | position:relative; 1437 | z-index:1; 1438 | clear:both; 1439 | font-size:14px; 1440 | color:#555; 1441 | } 1442 | #dropdowns a { 1443 | color:#555; 1444 | } 1445 | #dropdowns .widget { 1446 | position:absolute; 1447 | z-index:1; 1448 | background-color:#fff; 1449 | padding:10px; 1450 | border:1px solid #999; 1451 | border-top-width:0; 1452 | max-width:740px; 1453 | 1454 | -webkit-border-bottom-left-radius: 5px; 1455 | -webkit-border-bottom-right-radius: 5px; 1456 | -moz-border-radius-bottomright: 5px; 1457 | -moz-border-radius-bottomleft: 5px; 1458 | border-bottom-left-radius: 5px; 1459 | border-bottom-right-radius: 5px; 1460 | } 1461 | #dropdowns .widget p:first-child, 1462 | #dropdowns .widget p:only-child { 1463 | margin-top:0; 1464 | } 1465 | #dropdowns .widget p:last-child, 1466 | #dropdowns .widget p:only-child { 1467 | margin-bottom:0; 1468 | } 1469 | #dropdowns .widget_gravatar { 1470 | max-width:400px; 1471 | } 1472 | #menu, 1473 | #triggers li { 1474 | background: #555; 1475 | background: -moz-linear-gradient( top, #555 1%, #333 100% ); 1476 | background: -webkit-gradient( linear, left top, left bottom, color-stop( 1%, #555 ), color-stop( 100%, #333 ) ); 1477 | background: -webkit-linear-gradient( top, #555 1%, #333 100% ); 1478 | background: -o-linear-gradient( top, #555 1%, #333 100% ); 1479 | background: -ms-linear-gradient( top, #555 1%, #333 100% ); 1480 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#555', endColorstr='#333', GradientType=0 ); 1481 | background: linear-gradient( top, #555 1%, #333 100% ); 1482 | } 1483 | #dropdowns form.bullet { 1484 | margin: 0; 1485 | width:300px; 1486 | border-color:#999; 1487 | } 1488 | 1489 | 1490 | /* =Mfields Bookmarks (Plugin by Michael Fields) 1491 | -------------------------------------------------------------- */ 1492 | 1493 | .bookmark-source, 1494 | .bookmark-source a { 1495 | color:#999 !important; 1496 | } 1497 | .bookmark-source a { 1498 | text-decoration:underline; 1499 | } 1500 | .bookmark-source a:hover, 1501 | .bookmark-source a:active, 1502 | .bookmark-source a:focus { 1503 | color:#555 !important; 1504 | } 1505 | 1506 | 1507 | /* =Responsive Layout 1508 | -------------------------------------------------------------- */ 1509 | 1510 | @media all and ( min-width:400px ) { 1511 | .gallery-columns-4 .gallery-item { width:24% !important; } 1512 | .gallery-columns-5 .gallery-item { width:19% !important; } 1513 | .gallery-columns-6 .gallery-item { width:15% !important; } 1514 | .gallery-columns-7 .gallery-item { width:13% !important; } 1515 | .gallery-columns-8 .gallery-item { width:11% !important; } 1516 | .gallery-columns-9 .gallery-item { width:10% !important; } 1517 | .gallery-columns-4 .gallery-item, 1518 | .gallery-columns-5 .gallery-item, 1519 | .gallery-columns-6 .gallery-item, 1520 | .gallery-columns-7 .gallery-item, 1521 | .gallery-columns-8 .gallery-item, 1522 | .gallery-columns-9 .gallery-item { padding-right:1% !important; } 1523 | .gallery-columns-4 .gallery-item img, 1524 | .gallery-columns-5 .gallery-item img, 1525 | .gallery-columns-6 .gallery-item img, 1526 | .gallery-columns-7 .gallery-item img, 1527 | .gallery-columns-8 .gallery-item img, 1528 | .gallery-columns-9 .gallery-item img { width:100%; } 1529 | } 1530 | 1531 | 1532 | @media all and ( max-width:800px ) { 1533 | #wrap { 1534 | padding:0 1em; 1535 | } 1536 | .entry-content img.larger-than-607 { 1537 | width:100%; 1538 | height:auto; 1539 | } 1540 | } 1541 | 1542 | 1543 | @media only screen and ( max-width:550px ) { 1544 | body { 1545 | font-size:12px; 1546 | } 1547 | .comment-form-comment textarea { 1548 | height:14em; 1549 | } 1550 | #wrap { 1551 | margin:0; 1552 | padding:0; 1553 | } 1554 | #featured-image { 1555 | display:none; 1556 | } 1557 | } 1558 | 1559 | 1560 | @media only screen and ( max-width:400px ) { 1561 | #intro { 1562 | padding-left:1em; 1563 | padding-right:1em; 1564 | } 1565 | .entry-content img.larger-than-300 { 1566 | width:100%; 1567 | height:auto; 1568 | } 1569 | .comment-form-comment textarea { 1570 | width:96%; 1571 | } 1572 | #content { 1573 | padding:1em; 1574 | } 1575 | .format-standard .entry-content { 1576 | clear:both; 1577 | } 1578 | .format-standard .featured-image { 1579 | margin-right:10px; 1580 | float:none; 1581 | text-align:center; 1582 | border-width:0; 1583 | -moz-box-shadow:none; 1584 | -webkit-box-shadow:none; 1585 | box-shadow:none; 1586 | } 1587 | .format-status { 1588 | margin-left:55px; 1589 | } 1590 | .format-status .content { 1591 | padding:5px; 1592 | min-height:35px; 1593 | } 1594 | .format-status .image { 1595 | width:45px; 1596 | height:45px; 1597 | left:-55px; 1598 | } 1599 | #menu-bottom { 1600 | margin:2em auto 2em; 1601 | padding:0 3em; 1602 | } 1603 | #menu-bottom ul, 1604 | #menu-bottom li { 1605 | display:block; 1606 | margin:0; 1607 | padding:0; 1608 | text-align:center; 1609 | } 1610 | #menu-bottom li a { 1611 | display:block; 1612 | width:100%; 1613 | margin:0 0 .75em; 1614 | } 1615 | .gallery-columns-1 .gallery-item, .gallery-columns-2 .gallery-item, .gallery-columns-3 .gallery-item, .gallery-columns-4 .gallery-item, .gallery-columns-5 .gallery-item, .gallery-columns-6 .gallery-item, .gallery-columns-7 .gallery-item, .gallery-columns-8 .gallery-item, .gallery-columns-9 .gallery-item { 1616 | float:none; 1617 | clear:both; 1618 | display:block; 1619 | width:100% !important; 1620 | text-align:center; 1621 | } 1622 | .gallery-columns-1 .gallery-caption, .gallery-columns-2 .gallery-caption, .gallery-columns-3 .gallery-caption, .gallery-columns-4 .gallery-caption, .gallery-columns-5 .gallery-caption, .gallery-columns-6 .gallery-caption, .gallery-columns-7 .gallery-caption, .gallery-columns-8 .gallery-caption, .gallery-columns-9 .gallery-caption{ 1623 | width:100%; 1624 | } 1625 | } 1626 | 1627 | 1628 | @media only screen and ( max-device-width: 480px ) { 1629 | body { 1630 | margin:0; 1631 | padding:0; 1632 | font-size:40px; 1633 | } 1634 | #wrap { 1635 | margin:0; 1636 | padding:0; 1637 | max-width:100%; 1638 | } 1639 | #site-title { 1640 | font-size:2em; 1641 | } 1642 | #page { 1643 | width:100%; 1644 | } 1645 | #content { 1646 | color:#444; 1647 | padding:1em; 1648 | } 1649 | #featured-image, 1650 | .entry .featured-image, 1651 | .format-status .image { 1652 | display:none; 1653 | } 1654 | .format-status .entry-title, 1655 | .format-status .content, 1656 | .format-status .meta { 1657 | margin-left:0; 1658 | } 1659 | .more-link { 1660 | display:block; 1661 | margin-top:1.5em; 1662 | padding:1em; 1663 | background:#eee; 1664 | text-align:center; 1665 | font-weight:bold; 1666 | border:.1em solid #ddd; 1667 | border-radius: .5em; 1668 | -webkit-border-radius: .5em; 1669 | -moz-border-radius: .5em; 1670 | } 1671 | .nav-paged { 1672 | margin:0; 1673 | top:0; 1674 | right:0; 1675 | bottom:0; 1676 | left:0; 1677 | } 1678 | .comment { 1679 | padding-right:175px; 1680 | } 1681 | .comment .image { 1682 | width:150px; 1683 | height:150px; 1684 | } 1685 | } 1686 | -------------------------------------------------------------------------------- /tag.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2011, Michael Fields 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 | * @since Nighthawk 1.0 12 | */ 13 | 14 | if ( ! have_posts() ) { 15 | get_template_part( '404', 'tag' ); 16 | } 17 | 18 | get_header( 'tag' ); 19 | 20 | ?> 21 | 22 |
    23 | 'post-thumbnail', 25 | 'before' => '', 27 | ) ); ?> 28 |

    29 |
    30 |
    31 | found_posts, 'nighthawk' ), number_format_i18n( (int) $wp_query->found_posts ), single_tag_title( '', false ) ); ?> 32 | 33 |
    34 |
    35 | 36 |
    37 | 38 | 30 ) ) ); 40 | get_template_part( 'loop-table' ); 41 | ?> 42 | 43 |
    44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /taxonomy-mfields_bookmark_source.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2011, Michael Fields 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 | * @since Nighthawk 1.0 12 | */ 13 | 14 | if ( ! have_posts() ) { 15 | get_template_part( '404', $taxonomy ); 16 | } 17 | 18 | get_header( $taxonomy ); 19 | 20 | ?> 21 | 22 |
    23 | 24 | 'post-thumbnail', 26 | 'before' => '', 28 | ) ); ?> 29 |

    30 |
    31 | 32 | ' . Nighthawk::post_label() . '', 37 | '' . Nighthawk::post_label( 'plural' ) . '', 38 | single_term_title( '', false ) 39 | ); 40 | 41 | $feed_title = sprintf( esc_attr__( 'Get updated when a new %1$s by %2$s is published.', 'nighthawk' ), Nighthawk::post_label(), single_term_title( '', false ) ); 42 | 43 | $feed_url = get_term_feed_link( get_queried_object_id(), get_query_var( 'taxonomy' ) ); 44 | 45 | $sentence.= ' '; 46 | 47 | echo '
    ' . $sentence . '
    '; 48 | 49 | ?> 50 | 51 |
    52 | 53 |
    54 | 55 | 30 ) ) ); 57 | get_template_part( 'loop-table' ); 58 | ?> 59 | 60 |
    61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /taxonomy-mfields_bookmark_type.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2011, Michael Fields 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 | * @since Nighthawk 1.0 12 | */ 13 | 14 | if ( ! have_posts() ) { 15 | get_template_part( '404', $taxonomy ); 16 | } 17 | 18 | get_header( $taxonomy ); 19 | 20 | ?> 21 | 22 |
    23 | 24 | 'post-thumbnail', 26 | 'before' => '', 28 | ) ); ?> 29 |

    30 |
    31 | 32 | ' . Nighthawk::post_label() . '', 37 | '' . Nighthawk::post_label( 'plural' ) . '', 38 | single_term_title( '', false ) 39 | ); 40 | 41 | $feed_title = sprintf( esc_attr__( 'Get updated when a new %1$s by %2$s is published.', 'nighthawk' ), Nighthawk::post_label(), single_term_title( '', false ) ); 42 | 43 | $feed_url = get_term_feed_link( get_queried_object_id(), get_query_var( 'taxonomy' ) ); 44 | 45 | $sentence.= ' '; 46 | 47 | echo '
    ' . $sentence . '
    '; 48 | 49 | ?> 50 | 51 |
    52 | 53 |
    54 | 55 | 30 ) ) ); 57 | get_template_part( 'loop-table' ); 58 | ?> 59 | 60 |
    61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /taxonomy.php: -------------------------------------------------------------------------------- 1 | 9 | * @copyright Copyright (c) 2011, Michael Fields 10 | * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License 11 | * @since Nighthawk 1.0 12 | */ 13 | 14 | if ( ! have_posts() ) { 15 | get_template_part( '404', $taxonomy ); 16 | } 17 | 18 | get_header( $taxonomy ); 19 | 20 | ?> 21 | 22 |
    23 | 'post-thumbnail', 25 | 'before' => '', 27 | ) ); ?> 28 |

    29 |
    30 | ', '' ); ?> 31 |
    32 | 33 |
    34 | 35 | 30 ) ) ); 37 | get_template_part( 'loop-table' ); 38 | ?> 39 | 40 |
    41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | ' . esc_html( $text ) . ''; 9 | 10 | echo "\n" . '
    ' . $text . '
    '; 11 | } 12 | 13 | $text = get_bloginfo( 'description' ); 14 | if ( ! empty( $text ) ) 15 | echo "\n" . '
    ' . esc_html( $text ) . '
    '; 16 | 17 | wp_nav_menu( apply_filters( 'nighthawk_menu_args_primary', array( 18 | 'container' => 'div', 19 | 'container_id' => 'menu-top', 20 | 'menu_class' => 'menu', 21 | 'theme_location' => 'primary', 22 | 'depth' => 1, 23 | 'items_wrap' => '', 24 | 'fallback_cb' => '__return_false', 25 | ) ) ); 26 | --------------------------------------------------------------------------------