├── screenshot.png ├── assets └── fonts │ ├── roboto-light-greek-subset.woff │ ├── roboto-light-latin-subset.woff │ ├── roboto-light-cyrillic-subset.woff │ ├── roboto-light-greek-subset.woff2 │ ├── roboto-light-latin-subset.woff2 │ ├── roboto-medium-greek-subset.woff │ ├── roboto-medium-greek-subset.woff2 │ ├── roboto-medium-latin-subset.woff │ ├── roboto-medium-latin-subset.woff2 │ ├── roboto-light-cyrillic-subset.woff2 │ ├── roboto-light-greek-ext-subset.woff │ ├── roboto-light-greek-ext-subset.woff2 │ ├── roboto-light-latin-ext-subset.woff │ ├── roboto-light-latin-ext-subset.woff2 │ ├── roboto-light-vietnamese-subset.woff │ ├── roboto-medium-cyrillic-subset.woff │ ├── roboto-medium-cyrillic-subset.woff2 │ ├── roboto-medium-greek-ext-subset.woff │ ├── roboto-medium-latin-ext-subset.woff │ ├── roboto-light-cyrillic-ext-subset.woff │ ├── roboto-light-cyrillic-ext-subset.woff2 │ ├── roboto-light-vietnamese-subset.woff2 │ ├── roboto-lightitalic-greek-subset.woff │ ├── roboto-lightitalic-greek-subset.woff2 │ ├── roboto-lightitalic-latin-subset.woff │ ├── roboto-lightitalic-latin-subset.woff2 │ ├── roboto-medium-cyrillic-ext-subset.woff │ ├── roboto-medium-greek-ext-subset.woff2 │ ├── roboto-medium-latin-ext-subset.woff2 │ ├── roboto-medium-vietnamese-subset.woff │ ├── roboto-medium-vietnamese-subset.woff2 │ ├── roboto-mediumitalic-greek-subset.woff │ ├── roboto-mediumitalic-greek-subset.woff2 │ ├── roboto-mediumitalic-latin-subset.woff │ ├── roboto-mediumitalic-latin-subset.woff2 │ ├── roboto-lightitalic-cyrillic-subset.woff │ ├── roboto-lightitalic-cyrillic-subset.woff2 │ ├── roboto-lightitalic-greek-ext-subset.woff │ ├── roboto-lightitalic-latin-ext-subset.woff │ ├── roboto-medium-cyrillic-ext-subset.woff2 │ ├── roboto-mediumitalic-cyrillic-subset.woff │ ├── roboto-lightitalic-cyrillic-ext-subset.woff │ ├── roboto-lightitalic-greek-ext-subset.woff2 │ ├── roboto-lightitalic-latin-ext-subset.woff2 │ ├── roboto-lightitalic-vietnamese-subset.woff │ ├── roboto-lightitalic-vietnamese-subset.woff2 │ ├── roboto-mediumitalic-cyrillic-subset.woff2 │ ├── roboto-mediumitalic-greek-ext-subset.woff │ ├── roboto-mediumitalic-greek-ext-subset.woff2 │ ├── roboto-mediumitalic-latin-ext-subset.woff │ ├── roboto-mediumitalic-latin-ext-subset.woff2 │ ├── roboto-mediumitalic-vietnamese-subset.woff │ ├── roboto-mediumitalic-vietnamese-subset.woff2 │ ├── roboto-lightitalic-cyrillic-ext-subset.woff2 │ ├── roboto-mediumitalic-cyrillic-ext-subset.woff │ ├── roboto-mediumitalic-cyrillic-ext-subset.woff2 │ └── LICENSE ├── footer.php ├── sidebar.php ├── sidebar-footer-top.php ├── index.php ├── content.php ├── sidebar-footer-bottom.php ├── archive.php ├── search.php ├── page.php ├── 404.php ├── js ├── menu.js └── lightbox.js ├── LICENSES-THIRD-PARTY ├── author.php ├── style.css ├── content-gallery.php ├── sidebar-gallery.php ├── single.php ├── header.php ├── portfolio-page.php ├── alternative-front-page.php ├── comments.php ├── inc ├── class-featured-galleries.php ├── class-recent-galleries.php └── customizer.php ├── readme.txt ├── readme.md ├── LICENSE ├── functions.php └── css └── bornholm.css /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/screenshot.png -------------------------------------------------------------------------------- /assets/fonts/roboto-light-greek-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-greek-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-light-latin-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-latin-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-light-cyrillic-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-cyrillic-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-light-greek-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-greek-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-light-latin-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-latin-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-greek-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-greek-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-greek-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-greek-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-latin-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-latin-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-latin-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-latin-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-light-cyrillic-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-cyrillic-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-light-greek-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-greek-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-light-greek-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-greek-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-light-latin-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-latin-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-light-latin-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-latin-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-light-vietnamese-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-vietnamese-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-cyrillic-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-cyrillic-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-cyrillic-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-cyrillic-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-greek-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-greek-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-latin-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-latin-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-light-cyrillic-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-cyrillic-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-light-cyrillic-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-cyrillic-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-light-vietnamese-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-light-vietnamese-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-greek-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-greek-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-greek-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-greek-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-latin-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-latin-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-latin-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-latin-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-cyrillic-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-cyrillic-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-greek-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-greek-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-latin-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-latin-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-vietnamese-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-vietnamese-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-vietnamese-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-vietnamese-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-greek-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-greek-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-greek-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-greek-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-latin-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-latin-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-latin-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-latin-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-cyrillic-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-cyrillic-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-cyrillic-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-cyrillic-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-greek-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-greek-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-latin-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-latin-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-medium-cyrillic-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-medium-cyrillic-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-cyrillic-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-cyrillic-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-cyrillic-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-cyrillic-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-greek-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-greek-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-latin-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-latin-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-vietnamese-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-vietnamese-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-vietnamese-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-vietnamese-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-cyrillic-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-cyrillic-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-greek-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-greek-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-greek-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-greek-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-latin-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-latin-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-latin-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-latin-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-vietnamese-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-vietnamese-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-vietnamese-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-vietnamese-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-lightitalic-cyrillic-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-lightitalic-cyrillic-ext-subset.woff2 -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-cyrillic-ext-subset.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-cyrillic-ext-subset.woff -------------------------------------------------------------------------------- /assets/fonts/roboto-mediumitalic-cyrillic-ext-subset.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/florianbrinkmann/bornholm/HEAD/assets/fonts/roboto-mediumitalic-cyrillic-ext-subset.woff2 -------------------------------------------------------------------------------- /footer.php: -------------------------------------------------------------------------------- 1 | 9 | 10 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /sidebar.php: -------------------------------------------------------------------------------- 1 | 9 | 16 | -------------------------------------------------------------------------------- /sidebar-footer-top.php: -------------------------------------------------------------------------------- 1 | 9 | 17 | -------------------------------------------------------------------------------- /archive.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | 11 |
12 |

13 | 14 |

15 | 16 |
17 | 'list' ) ); ?> 24 |
25 | 9 |
10 | 11 |
12 |

13 | 14 |

15 |
16 | 'list' ) ); ?> 23 |
24 | 9 |
10 | 13 |
> 14 |
15 | 16 |
17 |
18 | 20 |
21 |
22 | 23 |
24 | 9 |
10 |
11 |
12 |

13 |
14 |
15 |

16 | 17 |
18 |
19 |
20 | 9 |
10 | 11 |
12 |

13 | 14 |

15 | 18 |
19 | 'list' ) ); ?> 26 |
27 | 9 |
> 10 |
11 | ID ); 13 | bornholm_gallery_header( 'h1', $images, 'bornholm_large_gallery_image_for_blog_view', $post ); 14 | ?> 15 |
16 | 0 ) { 19 | bornholm_small_gallery_thumbnails( 'thumbnail', $images, $number_of_small_images ); 20 | } 21 | ?> 22 |
23 | 24 |
25 | 28 |
29 | -------------------------------------------------------------------------------- /sidebar-gallery.php: -------------------------------------------------------------------------------- 1 | 9 | 32 | -------------------------------------------------------------------------------- /single.php: -------------------------------------------------------------------------------- 1 | 9 |
10 | ID ); ?> 14 |
> 15 |
16 | ID ); 18 | bornholm_gallery_header( 'h1', $images, 'bornholm_large_gallery_image_for_single_view', $post ); 19 | } else { 20 | bornholm_the_post_header( 'h1', $post ); 21 | } ?> 22 |
23 |
24 | 26 |
27 |
28 | 29 |
30 |
31 | 36 |
37 | 9 | 10 | class="no-js"> 11 | 12 | 13 | 14 | 15 | 16 | 18 | 19 | > 20 | 49 |
50 | -------------------------------------------------------------------------------- /portfolio-page.php: -------------------------------------------------------------------------------- 1 | 12 |
13 | 'name', 18 | ); 19 | $show_child_category_hierarchy = false; 20 | } else { 21 | $args = array( 22 | 'orderby' => 'name', 23 | 'parent' => 0 24 | ); 25 | $show_child_category_hierarchy = true; 26 | } 27 | $categories = get_categories( $args ); 28 | $exclude_id = ""; 29 | $number_of_galleries = ""; 30 | foreach ( $categories as $cat ) { 31 | $title = $cat->name; 32 | bornholm_get_galleries_from_category( $cat, $exclude_id, $number_of_galleries, 'h2', $title, $show_child_category_hierarchy ); 33 | } 34 | } else { 35 | $args = array( 36 | 'posts_per_page' => '-1', 37 | 'tax_query' => array( 38 | array( 39 | 'taxonomy' => 'post_format', 40 | 'field' => 'slug', 41 | 'terms' => 'post-format-gallery' 42 | ) 43 | ) 44 | ); 45 | 46 | $galleries = get_posts( $args ); 47 | if ( $galleries ) { 48 | bornholm_loop_galleries_from_category( $galleries, '', '', '', '' ); 49 | } 50 | } 51 | ?> 52 |
53 | 10 |
11 | 'name', 27 | ); 28 | 29 | /** 30 | * Variable to let the loop know that we do not want 31 | * a hierarchical view. 32 | */ 33 | $show_child_category_hierarchy = false; 34 | } else { 35 | /** 36 | * Create args array for get_categories() 37 | */ 38 | $args = array( 39 | 'orderby' => 'name', 40 | 'parent' => 0 41 | ); 42 | 43 | /** 44 | * Variable to let the loop know that we want 45 | * a hierarchical view. 46 | */ 47 | $show_child_category_hierarchy = true; 48 | } 49 | 50 | /** 51 | * Get the categories. 52 | */ 53 | $categories = get_categories( $args ); 54 | 55 | /** 56 | * Empty string for category ids that should be excluded 57 | */ 58 | $exclude_id = ""; 59 | 60 | /** 61 | * Get the number of galleries before the view all link is displayed. 62 | */ 63 | $number_of_galleries = get_theme_mod( 'number_of_galleries_on_alternative_front_page', 3 ); 64 | 65 | /** 66 | * Loop through the categories. 67 | */ 68 | foreach ( $categories as $cat ) { 69 | /** 70 | * Save the category name so we can display it later as the title. 71 | */ 72 | $title = $cat->name; 73 | 74 | /** 75 | * Call the function that displays the galleries. 76 | */ 77 | bornholm_get_galleries_from_category( $cat, $exclude_id, $number_of_galleries, 'h2', $title, $show_child_category_hierarchy ); 78 | } ?> 79 |
80 | 12 |
13 | 22 |

23 | 24 |

25 | 26 |
    27 | 'bornholm_comment', 33 | 'style' => 'ol', 34 | 'type' => 'comment' 35 | ) ); ?> 36 |
37 | 43 |

44 | 45 |

46 | 47 |
    48 | 'bornholm_comment', 54 | 'type' => 'pings' 55 | ) ); ?> 56 |
57 | 1 && get_option( 'page_comments' ) ) { ?> 63 | 70 | 76 |

77 | '', 86 | 'label_submit' => __( 'Submit Comment', 'bornholm' ) 87 | ) ); ?> 88 |
89 | -------------------------------------------------------------------------------- /inc/class-featured-galleries.php: -------------------------------------------------------------------------------- 1 | 'widget_featured_galleries', 17 | 'description' => _x( 'Enter ids of galleries you want to feature.', 'Description of the featured galleries widget', 'bornholm' ) 18 | ); 19 | parent::__construct( 'featured-galleries', _x( 'Featured Galleries', 'Name of the featured galleries widget', 'bornholm' ), $widget_ops ); 20 | } 21 | 22 | public function widget( $args, $instance ) { 23 | 24 | $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 25 | 26 | $gallery_ids = ! empty( $instance['gallery_ids'] ) ? explode( ',', $instance['gallery_ids'] ) : array(); 27 | $counter = 0; 28 | foreach ( $gallery_ids as $gallery_id ) { 29 | $post = get_post( $gallery_id ); 30 | $format = get_post_format( $gallery_id ); 31 | if ( $post && $format == 'gallery' ) { 32 | if ( $counter == 0 ) { 33 | echo $args['before_widget']; 34 | if ( $title ) { 35 | echo $args['before_title'] . $title . $args['after_title']; 36 | } 37 | } 38 | $images = bornholm_get_gallery_images( $gallery_id ); 39 | $hide_gallery_titles_on_featured_galleries_widget = get_theme_mod( 'hide_gallery_titles_on_featured_galleries_widget' ); ?> 40 |
41 | 46 |
47 | 67 |

68 | 70 |

71 | 72 |

74 |

77 | 78 | 'widget_recent_galleries', 16 | 'description' => _x( 'Your site’s most recent galleries.', 'Description of the recent galleries widget', 'bornholm' ) 17 | ); 18 | parent::__construct( 'recent-galleries', _x( 'Recent Galleries', 'Name of the recent galleries widget', 'bornholm' ), $widget_ops ); 19 | } 20 | 21 | public function widget( $args, $instance ) { 22 | $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); 23 | 24 | $number = ( ! empty( $instance['number'] ) ) ? absint( $instance['number'] ) : 2; 25 | if ( ! $number ) { 26 | $number = 2; 27 | } 28 | 29 | /** 30 | * Filter the arguments for the Recent Galleries widget 31 | * 32 | * @see WP_Query::get_posts() 33 | * 34 | * @param array $args An array of arguments used to retrieve the recent posts. 35 | */ 36 | $result = new WP_Query( apply_filters( 'widget_galleries_args', array( 37 | 'posts_per_page' => $number, 38 | 'no_found_rows' => true, 39 | 'post_status' => 'publish', 40 | 'ignore_sticky_posts' => true, 41 | 'tax_query' => array( 42 | array( 43 | 'taxonomy' => 'post_format', 44 | 'field' => 'slug', 45 | 'terms' => 'post-format-gallery' 46 | ) 47 | ) 48 | ) ) ); 49 | 50 | if ( $result->have_posts() ) { 51 | echo $args['before_widget']; 52 | if ( $title ) { 53 | echo $args['before_title'] . $title . $args['after_title']; 54 | } 55 | while ( $result->have_posts() ) { 56 | $result->the_post(); 57 | $post = get_post( get_the_ID() ); 58 | $images = bornholm_get_gallery_images( $post->ID ); 59 | if ( $images ) { 60 | $hide_gallery_titles_on_recent_galleries_widget = get_theme_mod( 'hide_gallery_titles_on_recent_galleries_widget' ); ?> 61 |
62 | 67 |
68 | 89 |

90 | 92 |

93 | 94 |

96 |

99 | 100 | add_setting( 'number_of_galleries_from_same_category_on_single_gallery_page', array( 16 | 'default' => 3, 17 | 'sanitize_callback' => 'absint' 18 | ) ); 19 | $wp_customize->add_control( 'number_of_galleries_from_same_category_on_single_gallery_page', array( 20 | 'type' => 'number', 21 | 'priority' => 10, 22 | 'section' => 'gallery', 23 | 'label' => __( 'Number of galleries from the same category to show in the single view of a gallery (0 if no galleries should be displayed)', 'bornholm' ), 24 | ) ); 25 | 26 | $wp_customize->add_setting( 'hide_gallery_titles_for_galleries_from_same_category', array( 27 | 'sanitize_callback' => 'bornholm_sanitize_checkbox' 28 | ) ); 29 | $wp_customize->add_control( 'hide_gallery_titles_for_galleries_from_same_category', array( 30 | 'type' => 'checkbox', 31 | 'priority' => 12, 32 | 'section' => 'gallery', 33 | 'label' => __( 'Check if the titles of the galleries should be hidden for the galleries from the same category.', 'bornholm' ), 34 | ) ); 35 | 36 | $wp_customize->add_setting( 'hide_gallery_titles_on_recent_galleries_widget', array( 37 | 'sanitize_callback' => 'bornholm_sanitize_checkbox' 38 | ) ); 39 | $wp_customize->add_control( 'hide_gallery_titles_on_recent_galleries_widget', array( 40 | 'type' => 'checkbox', 41 | 'priority' => 12, 42 | 'section' => 'content', 43 | 'label' => __( 'Check if the titles of the galleries should be hidden on the recent galleries widget.', 'bornholm' ), 44 | ) ); 45 | 46 | $wp_customize->add_setting( 'hide_gallery_titles_on_featured_galleries_widget', array( 47 | 'sanitize_callback' => 'bornholm_sanitize_checkbox' 48 | ) ); 49 | $wp_customize->add_control( 'hide_gallery_titles_on_featured_galleries_widget', array( 50 | 'type' => 'checkbox', 51 | 'priority' => 14, 52 | 'section' => 'content', 53 | 'label' => __( 'Check if the titles of the galleries should be hidden on the featured galleries widget.', 'bornholm' ), 54 | ) ); 55 | 56 | $wp_customize->add_setting( 'number_of_small_images_from_gallery_in_blog_view', array( 57 | 'default' => 2, 58 | 'sanitize_callback' => 'absint' 59 | ) ); 60 | $wp_customize->add_control( 'number_of_small_images_from_gallery_in_blog_view', array( 61 | 'type' => 'number', 62 | 'priority' => 10, 63 | 'section' => 'content', 64 | 'label' => __( 'Number of small images from the gallery to show in the blog view below the big image (0 if no small images should be displayed)', 'bornholm' ), 65 | ) ); 66 | 67 | $wp_customize->add_setting( 'hierarchy_of_gallery_on_alternative_front_page', array( 68 | 'sanitize_callback' => 'bornholm_sanitize_checkbox' 69 | ) ); 70 | $wp_customize->add_control( 'hierarchy_of_gallery_on_alternative_front_page', array( 71 | 'type' => 'checkbox', 72 | 'priority' => 10, 73 | 'section' => 'alternative_front_page', 74 | 'label' => __( 'Check if the galleries from child categories should be displayed below the galleries of the parent category.', 'bornholm' ), 75 | ) ); 76 | 77 | $wp_customize->add_setting( 'hide_gallery_titles_on_alternative_front_page', array( 78 | 'sanitize_callback' => 'bornholm_sanitize_checkbox' 79 | ) ); 80 | $wp_customize->add_control( 'hide_gallery_titles_on_alternative_front_page', array( 81 | 'type' => 'checkbox', 82 | 'priority' => 12, 83 | 'section' => 'alternative_front_page', 84 | 'label' => __( 'Check if the titles of the galleries should be hidden.', 'bornholm' ), 85 | ) ); 86 | 87 | $wp_customize->add_setting( 'number_of_galleries_on_alternative_front_page', array( 88 | 'default' => 3, 89 | 'sanitize_callback' => 'absint' 90 | ) ); 91 | $wp_customize->add_control( 'number_of_galleries_on_alternative_front_page', array( 92 | 'type' => 'number', 93 | 'priority' => 14, 94 | 'section' => 'alternative_front_page', 95 | 'label' => __( 'Number of galleries from every category to show', 'bornholm' ), 96 | ) ); 97 | 98 | $wp_customize->add_setting( 'hide_gallery_titles_on_portfolio_page', array( 99 | 'default' => 0, 100 | 'sanitize_callback' => 'bornholm_sanitize_checkbox' 101 | ) ); 102 | $wp_customize->add_control( 'hide_gallery_titles_on_portfolio_page', array( 103 | 'type' => 'checkbox', 104 | 'priority' => 12, 105 | 'section' => 'portfolio_page', 106 | 'label' => __( 'Check if the titles of the galleries should be hidden.', 'bornholm' ), 107 | ) ); 108 | 109 | $wp_customize->add_setting( 'galleries_on_portfolio_page', array( 110 | 'default' => 'standard', 111 | 'sanitize_callback' => 'bornholm_sanitize_radio' 112 | ) ); 113 | $wp_customize->add_control( 'galleries_on_portfolio_page', array( 114 | 'type' => 'radio', 115 | 'priority' => 10, 116 | 'section' => 'portfolio_page', 117 | 'label' => __( 'Change the appearance of the galleries on the portfolio page', 'bornholm' ), 118 | 'choices' => array( 119 | 'standard' => 'Standard', 120 | 'portfolio_page_grouped_by_categories' => __( 'Display the galleries grouped by categories.', 'bornholm' ), 121 | 'portfolio_page_grouped_by_categories_with_hierarchy' => __( 'Display the galleries grouped by categories with hierarchy (child categories below parent categories).', 'bornholm' ), 122 | ), 123 | ) ); 124 | 125 | $wp_customize->add_section( 'alternative_front_page', array( 126 | 'title' => _x( 'Alternative front page', 'Title of the alternative front page section in the Customizer', 'bornholm' ), 127 | 'priority' => 140, 128 | ) ); 129 | 130 | $wp_customize->add_section( 'content', array( 131 | 'title' => _x( 'Content', 'Title of the content section in the Customizer', 'bornholm' ), 132 | 'priority' => 160, 133 | ) ); 134 | 135 | $wp_customize->add_section( 'gallery', array( 136 | 'title' => _x( 'Gallery single view', 'Title of the Gallery single view section in the Customizer', 'bornholm' ), 137 | 'priority' => 130, 138 | ) ); 139 | 140 | $wp_customize->add_section( 'portfolio_page', array( 141 | 'title' => _x( 'Portfolio Page', 'Title of the portfolio page section in the Customizer', 'bornholm' ), 142 | 'priority' => 150, 143 | ) ); 144 | } 145 | 146 | add_action( 'customize_register', 'bornholm_customize_register' ); 147 | 148 | function bornholm_customize_css() { 149 | if ( get_theme_mod( 'header_textcolor' ) ) { ?> 150 | 155 | manager->get_control( $setting->id )->choices; 167 | 168 | return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); 169 | } 170 | -------------------------------------------------------------------------------- /js/lightbox.js: -------------------------------------------------------------------------------- 1 | /* 2 | By Osvaldas Valutis, www.osvaldas.info 3 | Available for use under the MIT License 4 | */ 5 | 6 | ;(function(e,t,n,r){"use strict";var i=function(){var e=n.body||n.documentElement,e=e.style;if(e.WebkitTransition=="")return"-webkit-";if(e.MozTransition=="")return"-moz-";if(e.OTransition=="")return"-o-";if(e.transition=="")return"";return false},s=i()===false?false:true,o=function(e,t,n){var r={},s=i();r[s+"transform"]="translateX("+t+")";r[s+"transition"]=s+"transform "+n+"s linear";e.css(r)},u="ontouchstart"in t,a=t.navigator.pointerEnabled||t.navigator.msPointerEnabled,f=function(e){if(u)return true;if(!a||typeof e==="undefined"||typeof e.pointerType==="undefined")return false;if(typeof e.MSPOINTER_TYPE_MOUSE!=="undefined"){if(e.MSPOINTER_TYPE_MOUSE!=e.pointerType)return true}else if(e.pointerType!="mouse")return true;return false};e.fn.imageLightbox=function(r){var r=e.extend({selector:'id="imagelightbox"',allowedTypes:"png|jpg|jpeg|gif",animationSpeed:250,preloadNext:true,enableKeyboard:true,quitOnEnd:false,quitOnImgClick:false,quitOnDocClick:true,onStart:false,onEnd:false,onLoadStart:false,onLoadEnd:false},r),i=e([]),l=e(),c=e(),h=0,p=0,d=0,v=false,m=function(t){return e(t).prop("tagName").toLowerCase()=="a"&&(new RegExp(".("+r.allowedTypes+")$","i")).test(e(t).attr("href"))},g=function(){if(!c.length)return true;var n=e(t).width()*.8,r=e(t).height()*.9,i=new Image;i.src=c.attr("src");i.onload=function(){h=i.width;p=i.height;if(h>n||p>r){var s=h/p>n/r?h/n:p/r;h/=s;p/=s}c.css({width:h+"px",height:p+"px",top:(e(t).height()-p)/2+"px",left:(e(t).width()-h)/2+"px"})}},y=function(t){if(v)return false;t=typeof t==="undefined"?false:t=="left"?1:-1;if(c.length){if(t!==false&&(i.length<2||r.quitOnEnd===true&&(t===-1&&i.index(l)==0||t===1&&i.index(l)==i.length-1))){w();return false}var n={opacity:0};if(s)o(c,100*t-d+"px",r.animationSpeed/1e3);else n.left=parseInt(c.css("left"))+100*t+"px";c.animate(n,r.animationSpeed,function(){b()});d=0}v=true;if(r.onLoadStart!==false)r.onLoadStart();setTimeout(function(){c=e("").attr("src",l.attr("href")).load(function(){c.appendTo("body");g();var n={opacity:1};c.css("opacity",0);if(s){o(c,-100*t+"px",0);setTimeout(function(){o(c,0+"px",r.animationSpeed/1e3)},50)}else{var u=parseInt(c.css("left"));n.left=u+"px";c.css("left",u-100*t+"px")}c.animate(n,r.animationSpeed,function(){v=false;if(r.onLoadEnd!==false)r.onLoadEnd()});if(r.preloadNext){var a=i.eq(i.index(l)+1);if(!a.length)a=i.eq(0);e("").attr("src",a.attr("href")).load()}}).error(function(){if(r.onLoadEnd!==false)r.onLoadEnd()});var n=0,u=0,p=0;c.on(a?"pointerup MSPointerUp":"click",function(e){e.preventDefault();if(r.quitOnImgClick){w();return false}if(f(e.originalEvent))return true;var t=(e.pageX||e.originalEvent.pageX)-e.target.offsetLeft;l=i.eq(i.index(l)-(h/2>t?1:-1));if(!l.length)l=i.eq(h/2>t?i.length:0);y(h/2>t?"left":"right")}).on("touchstart pointerdown MSPointerDown",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;if(s)p=parseInt(c.css("left"));n=e.originalEvent.pageX||e.originalEvent.touches[0].pageX}).on("touchmove pointermove MSPointerMove",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;e.preventDefault();u=e.originalEvent.pageX||e.originalEvent.touches[0].pageX;d=n-u;if(s)o(c,-d+"px",0);else c.css("left",p-d+"px")}).on("touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",function(e){if(!f(e.originalEvent)||r.quitOnImgClick)return true;if(Math.abs(d)>50){l=i.eq(i.index(l)-(d<0?1:-1));if(!l.length)l=i.eq(d<0?i.length:0);y(d>0?"right":"left")}else{if(s)o(c,0+"px",r.animationSpeed/1e3);else c.animate({left:p+"px"},r.animationSpeed/2)}})},r.animationSpeed+100)},b=function(){if(!c.length)return false;c.remove();c=e()},w=function(){if(!c.length)return false;c.animate({opacity:0},r.animationSpeed,function(){b();v=false;if(r.onEnd!==false)r.onEnd()})};e(t).on("resize",g);if(r.quitOnDocClick){e(n).on(u?"touchend":"click",function(t){if(c.length&&!e(t.target).is(c))w()})}if(r.enableKeyboard){e(n).on("keyup",function(e){if(!c.length)return true;e.preventDefault();if(e.keyCode==27)w();if(e.keyCode==37||e.keyCode==39){l=i.eq(i.index(l)-(e.keyCode==37?1:-1));if(!l.length)l=i.eq(e.keyCode==37?i.length:0);y(e.keyCode==37?"left":"right")}})}e(n).on("click",this.selector,function(t){if(!m(this))return true;t.preventDefault();if(v)return false;v=false;if(r.onStart!==false)r.onStart();l=e(this);y()});this.each(function(){if(!m(this))return true;i=i.add(e(this))});this.switchImageLightbox=function(e){var t=i.eq(e);if(t.length){var n=i.index(l);l=t;y(e
').appendTo('body'); 39 | }, 40 | activityIndicatorOff = function() { 41 | jQuery('#imagelightbox-loading').remove(); 42 | }, 43 | 44 | 45 | // OVERLAY 46 | 47 | overlayOn = function() { 48 | jQuery('
').appendTo('body'); 49 | }, 50 | overlayOff = function() { 51 | jQuery('#imagelightbox-overlay').remove(); 52 | }, 53 | 54 | 55 | // CLOSE BUTTON 56 | 57 | closeButtonOn = function( instance ) { 58 | jQuery('').appendTo('body').on('click touchend', function () { 59 | jQuery(this).remove(); 60 | instance.quitImageLightbox(); 61 | return false; 62 | }); 63 | }, 64 | closeButtonOff = function() { 65 | jQuery('#imagelightbox-close').remove(); 66 | }, 67 | 68 | // ARROWS 69 | 70 | arrowsOn = function( instance, selector ) { 71 | var $arrows = jQuery(''); 72 | 73 | $arrows.appendTo('body'); 74 | 75 | $arrows.on('click touchend', function (e) { 76 | e.preventDefault(); 77 | 78 | var $this = jQuery(this), 79 | $target = jQuery(selector + '[href="' + jQuery('#imagelightbox').attr('src') + '"]'), 80 | index = $target.index(selector); 81 | 82 | if ($this.hasClass('imagelightbox-arrow-left')) { 83 | index = index - 1; 84 | if (!jQuery(selector).eq(index).length) 85 | index = jQuery(selector).length; 86 | } 87 | else { 88 | index = index + 1; 89 | if (!jQuery(selector).eq(index).length) 90 | index = 0; 91 | } 92 | 93 | instance.switchImageLightbox(index); 94 | return false; 95 | }); 96 | }, 97 | arrowsOff = function() { 98 | jQuery('.imagelightbox-arrow').remove(); 99 | }; 100 | }); -------------------------------------------------------------------------------- /assets/fonts/LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | 294 | Copyright (C) 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | , 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | __( 'Header Menu', 'bornholm' ), 83 | ) ); 84 | } 85 | 86 | add_action( 'init', 'bornholm_menus' ); 87 | 88 | /** 89 | * Registers the sidebar 90 | */ 91 | function bornholm_sidebars() { 92 | /** 93 | * Register the main sidebar. 94 | */ 95 | register_sidebar( array( 96 | 'name' => 'Sidebar', 97 | 'id' => 'sidebar-1', 98 | 'description' => '', 99 | 'before_widget' => '
', 100 | 'after_widget' => '
', 101 | 'before_title' => '

', 102 | 'after_title' => '

' 103 | ) ); 104 | 105 | /** 106 | * Register the sidebar that is visible on single view of gallery posts. 107 | */ 108 | register_sidebar( array( 109 | 'name' => __( 'Gallery Sidebar', 'bornholm' ), 110 | 'id' => 'sidebar-gallery', 111 | 'description' => __( 'This sidebar is shown on single gallery pages', 'bornholm' ), 112 | 'before_widget' => '
', 113 | 'after_widget' => '
', 114 | 'before_title' => '

', 115 | 'after_title' => '

' 116 | ) ); 117 | 118 | /** 119 | * Register the sidebar that is displayed in the top area of the footer. 120 | */ 121 | register_sidebar( array( 122 | 'name' => __( 'Footer Widget Area (top)', 'bornholm' ), 123 | 'id' => 'footer-widget-area-top', 124 | 'description' => __( 'This widget area is shown on the top of the footer', 'bornholm' ), 125 | 'before_widget' => '
', 126 | 'after_widget' => '
', 127 | 'before_title' => '

', 128 | 'after_title' => '

' 129 | ) ); 130 | 131 | /** 132 | * Register the sidebar that is displayed below the top footer sidebar. 133 | */ 134 | register_sidebar( array( 135 | 'name' => __( 'Footer Widget Area (bottom)', 'bornholm' ), 136 | 'id' => 'footer-widget-area-bottom', 137 | 'description' => __( 'This widget area is shown on the bottom of the footer', 'bornholm' ), 138 | 'before_widget' => '
', 139 | 'after_widget' => '
', 140 | 'before_title' => '

', 141 | 'after_title' => '

' 142 | ) ); 143 | } 144 | 145 | add_action( 'widgets_init', 'bornholm_sidebars' ); 146 | 147 | /** 148 | * Displays navigation for paginated posts 149 | * 150 | * @return void Formatted output in HTML. 151 | */ 152 | function bornholm_paginated_posts_navigation() { 153 | wp_link_pages( array( 154 | 'before' => '', 156 | 'link_before' => '
  • ', 157 | 'link_after' => '
  • ', 158 | ) ); 159 | } 160 | 161 | /** 162 | * Displays the content with customized more link 163 | * 164 | * @return void Formatted output in HTML 165 | */ 166 | function bornholm_the_content() { 167 | $text = _x( 'Continue reading “%s”', 's = post title', 'bornholm' ); 168 | $more = sprintf( $text, esc_html( get_the_title() ) ); 169 | the_content( $more ); 170 | } 171 | 172 | /** 173 | * Removes the page jump after clicking on a read more link 174 | * 175 | * @param string $link The read more link. 176 | * 177 | * @return string 178 | */ 179 | function bornholm_remove_more_link_scroll( $link ) { 180 | $link = preg_replace( '|#more-[0-9]+|', '', $link ); 181 | 182 | return $link; 183 | } 184 | 185 | add_filter( 'the_content_more_link', 'bornholm_remove_more_link_scroll' ); 186 | 187 | /** 188 | * Adds the scripts and styles to the header 189 | */ 190 | function bornholm_scripts_styles() { 191 | /** 192 | * Adds JavaScript to pages with the comment form to support 193 | * sites with threaded comments (when in use). 194 | */ 195 | if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { 196 | wp_enqueue_script( 'comment-reply' ); 197 | } 198 | 199 | /** 200 | * Include the menu script. 201 | */ 202 | wp_enqueue_script( 'bornholm-menu', get_template_directory_uri() . '/js/menu.js', array( 'jquery' ), false, true ); 203 | 204 | /** 205 | * Include the lightbox script. 206 | */ 207 | wp_enqueue_script( 'bornholm-lightbox', get_template_directory_uri() . '/js/lightbox.js', array( 'jquery' ), false, true ); 208 | 209 | /** 210 | * Include the stylesheet. 211 | */ 212 | wp_enqueue_style( 'bornholm-style', get_template_directory_uri() . '/css/bornholm.css', array(), null ); 213 | } 214 | 215 | add_action( 'wp_enqueue_scripts', 'bornholm_scripts_styles' ); 216 | 217 | /** 218 | * Fetch image post objects for all gallery images in a post. 219 | * 220 | * @param int $post_id ID of the post. 221 | * 222 | * @return array 223 | */ 224 | function bornholm_get_gallery_images( $post_id ) { 225 | /** 226 | * Get the post data. 227 | */ 228 | $post = get_post( $post_id ); 229 | 230 | /** 231 | * Check if we do not have a post or the post content is empty. 232 | */ 233 | if ( ! $post || empty ( $post->post_content ) ) { 234 | return array(); 235 | } 236 | 237 | /** 238 | * Get the post galleries as an array. 239 | */ 240 | $galleries = get_post_galleries( $post, false ); 241 | 242 | /** 243 | * Check if we have galleries, otherwise return an empty array. 244 | */ 245 | if ( empty ( $galleries ) ) { 246 | return array(); 247 | } 248 | 249 | /** 250 | * Create empty IDs array. 251 | */ 252 | $ids = array(); 253 | 254 | /** 255 | * Loop the galleries. 256 | */ 257 | foreach ( $galleries as $gallery ) { 258 | /** 259 | * Insert IDs of gallery images into $ids. 260 | */ 261 | if ( ! empty ( $gallery['ids'] ) ) { 262 | $ids = array_merge( $ids, explode( ',', $gallery['ids'] ) ); 263 | } 264 | } 265 | 266 | /** 267 | * Remove IDs of multiple used images. 268 | */ 269 | $ids = array_unique( $ids ); 270 | 271 | /** 272 | * Check if $ids is empty, so we do not have any gallery images (possible if [gallery] is used 273 | * without ids argument. 274 | */ 275 | if ( empty ( $ids ) ) { 276 | /** 277 | * Get the images that are uploaded to the post. 278 | */ 279 | $attachments = get_children( array( 280 | 'post_parent' => $post_id, 281 | 'post_status' => 'inherit', 282 | 'post_type' => 'attachment', 283 | 'post_mime_type' => 'image', 284 | 'order' => 'ASC', 285 | 'orderby' => 'menu_order', 286 | ) ); 287 | 288 | /** 289 | * Return empty array, if we do not have any attachments. 290 | */ 291 | if ( empty ( $attachments ) ) { 292 | return array(); 293 | } 294 | } 295 | 296 | /** 297 | * Get the post data of the gallery images. 298 | */ 299 | $images = get_posts( 300 | array( 301 | 'post_type' => 'attachment', 302 | 'post_mime_type' => 'image', 303 | 'orderby' => 'post__in', 304 | 'numberposts' => 999, 305 | 'include' => $ids 306 | ) 307 | ); 308 | 309 | /** 310 | * Check if $images and $attachments is empty and return empty array. 311 | * If only $images is empty, set $images to the value of $attachments. 312 | */ 313 | if ( ! $images && ! $attachments ) { 314 | return array(); 315 | } elseif ( ! $images ) { 316 | $images = $attachments; 317 | } 318 | 319 | return $images; 320 | } 321 | 322 | /** 323 | * Displays the header for normal posts 324 | * 325 | * @param string $heading Heading level. 326 | * @param object $post Post object. 327 | * 328 | * @return void 329 | */ 330 | function bornholm_the_post_header( $heading, $post ) { 331 | /** 332 | * Check if we have a post thumbnail. 333 | */ 334 | if ( has_post_thumbnail() ) { 335 | /** 336 | * Link the title if we are not on single view. 337 | */ 338 | if ( ! is_single() ) { ?> 339 | 340 | '; 346 | the_title(); 347 | echo ''; 348 | 349 | /** 350 | * Display the post thumbnail 351 | */ 352 | ?> 353 | 356 | 357 | 358 | '; 377 | if ( ! is_single() ) { ?> 378 | 379 | 382 | 383 | '; 385 | } 386 | 387 | /** 388 | * Displays the header of a gallery. 389 | * If there are $images, the function displays the title with an image. 390 | * If not, only the title is displayed. 391 | * 392 | * @param string $heading Level of heading. 393 | * @param array $images Array of gallery images. 394 | * @param string $size Image size. 395 | * @param object $post Post object. 396 | * 397 | * @return void 398 | */ 399 | function bornholm_gallery_header( $heading, $images, $size, $post ) { 400 | if ( $images ) { 401 | bornholm_gallery_title( $heading, $images, $size, $post ); 402 | } else { 403 | bornholm_post_title( $heading, $post ); 404 | } 405 | } 406 | 407 | /** 408 | * Displays the title of a gallery with an image. 409 | * 410 | * @param string $heading Heading level. 411 | * @param array $images Gallery images. 412 | * @param string $size Image size. 413 | * @param object $post Post object. 414 | * 415 | * @return void 416 | */ 417 | function bornholm_gallery_title( $heading, $images, $size, $post ) { 418 | if ( $size != 'bornholm_large_gallery_image_for_single_view' ) { ?> 419 | 420 | '; 423 | echo esc_html( $post->post_title ); 424 | echo ''; 425 | } 426 | bornholm_gallery_featured_image( $size, $images, $post ); 427 | if ( $size != 'bornholm_large_gallery_image_for_single_view' ) { ?> 428 | 429 | ID, $size ); ?> 444 | 451 | ID ) ); 489 | $image_list = ''; 502 | echo $image_list; 503 | } 504 | 505 | /** 506 | * Displays the first images from the gallery 507 | * 508 | * @param array $small_images Small images. 509 | * @param int $counter Counter. 510 | * @param string $size Image size. 511 | * @param int $number_of_small_images Number of small images. 512 | * 513 | * @return void 514 | */ 515 | function bornholm_thumbnails_from_gallery_without_post_thumbnail( $small_images, $counter, $size, $number_of_small_images ) { 516 | $image_list = ''; 529 | echo $image_list; 530 | } 531 | 532 | /** 533 | * Displays the number of gallery images 534 | * 535 | * @param array $images Gallery images. 536 | * 537 | * @return void 538 | */ 539 | function bornholm_gallery_image_number( $images ) { 540 | if ( $images ) { 541 | $total_images = count( $images ); ?> 542 |

    543 | %2$s photo.', 545 | 'This gallery contains %2$s photos.', 546 | $total_images, 'bornholm' ), 547 | 'href="' . esc_url( get_permalink() ) 548 | . '"', 549 | number_format_i18n( $total_images ) ); 550 | ?> 551 | 552 |

    553 | name ) ); ?> 566 |
    567 | 568 |
    569 | 579 |
    580 | ID ); 581 | $hide_gallery_titles_on_alternative_front_page = get_theme_mod( 'hide_gallery_titles_on_alternative_front_page' ); 582 | $hide_gallery_titles_for_galleries_from_same_category = get_theme_mod( 'hide_gallery_titles_for_galleries_from_same_category' ); 583 | $hide_gallery_titles_on_portfolio_page = get_theme_mod( 'hide_gallery_titles_on_portfolio_page' ); 584 | $page_template = basename( get_page_template( $post->ID ) ); 585 | if ( ( $hide_gallery_titles_on_alternative_front_page == 1 && $page_template == 'alternative-front-page.php' ) || 586 | ( $hide_gallery_titles_for_galleries_from_same_category == 1 && get_post_format() == 'gallery' && is_single() ) || 587 | $hide_gallery_titles_on_portfolio_page == 1 && $page_template == 'portfolio-page.php' 588 | ) { 589 | bornholm_gallery_header( '', $images_child, 'thumbnail', $post ); 590 | } else { 591 | bornholm_gallery_header( 'h3', $images_child, 'thumbnail', $post ); 592 | } ?> 593 |
    594 | cat_ID; 609 | } else { 610 | $category_ids .= ", $category_id->cat_ID"; 611 | } 612 | $counter ++; 613 | } 614 | 615 | return $category_ids; 616 | } 617 | 618 | /** 619 | * Returns array with galleries (post format gallery) from given category 620 | * 621 | * @param object $cat Category object. 622 | * @param string $exclude_id Comma seperated ids 623 | * 624 | * @return array 625 | */ 626 | function bornholm_galleries_args( $cat, $exclude_id ) { 627 | $args = array( 628 | 'category__in' => $cat->cat_ID, 629 | 'exclude' => "$exclude_id", 630 | 'tax_query' => array( 631 | 'relation' => 'AND', 632 | array( 633 | 'taxonomy' => 'category', 634 | 'field' => 'slug', 635 | 'terms' => $cat->slug 636 | ), 637 | array( 638 | 'taxonomy' => 'post_format', 639 | 'field' => 'slug', 640 | 'terms' => 'post-format-gallery' 641 | ) 642 | ) 643 | ); 644 | 645 | return $args; 646 | } 647 | 648 | /** 649 | * Displays the galleries from one category 650 | * 651 | * @param object $cat Category object. 652 | * @param string $exclude_id Comma sepearted list of category IDs. 653 | * @param int $number_of_galleries Number of galleries to show. 654 | * @param string $heading Heading level. 655 | * @param string $title Category title. 656 | * @param boolean $show_child_category_hierarchy If the galleries should be displayed hierarchical. 657 | * 658 | * @return void 659 | */ 660 | function bornholm_get_galleries_from_category( $cat, $exclude_id, $number_of_galleries, $heading, $title, $show_child_category_hierarchy ) { 661 | $galleries_args = bornholm_galleries_args( $cat, $exclude_id ); 662 | $galleries = get_posts( $galleries_args ); 663 | if ( $galleries ) { 664 | $total_galleries = count( $galleries ); 665 | $gallery_counter = 0; ?> 666 | 675 | term_id, 'category' ); 688 | if ( $category_children ) { 689 | foreach ( $category_children as $cat_child ) { 690 | $cat_child = get_category( $cat_child ); 691 | $child_galleries_args = bornholm_galleries_args( $cat_child, $exclude_id ); 692 | $child_galleries = get_posts( $child_galleries_args ); 693 | if ( $child_galleries ) { 694 | $total_child_galleries = count( $child_galleries ); 695 | $gallery_child_counter = 0; ?> 696 | 703 | 0 ) { 719 | if ( $total_galleries > $number_of_galleries ) { 720 | $gallery_counter ++; 721 | if ( $gallery_counter > $number_of_galleries ) { 722 | bornholm_alternative_front_page_more_link( $cat ); 723 | break; 724 | } 725 | } 726 | } 727 | bornholm_alternative_front_page_gallery_teaser( $post ); 728 | } 729 | } 730 | 731 | /** 732 | * Displays the footer for a post 733 | * 734 | * @return string Formatted output in HTML 735 | */ 736 | function bornholm_footer_meta() { ?> 737 |

    738 | 739 | 755 | 756 | 757 | 758 | 762 | "> 763 | 764 | 765 | 770 | "> 771 | 772 | 773 | 774 | · ', '' ); ?> 776 | 777 |

    778 | 788 | 789 | 791 | 792 | 802 | 803 | 805 | 806 | 817 | · 818 | comment_type ) : 831 | case 'pingback' : 832 | case 'trackback' : 833 | // Display trackbacks differently than normal comments. 834 | ?> 835 |
  • id="comment-"> 836 |

    ', '' ) ); ?>

    837 | 843 |
  • id="li-comment-"> 844 |
    845 |
    846 | 848 | 849 | 850 | 851 | 852 | ', 853 | esc_url( get_comment_link( $comment->comment_ID ) ), 854 | get_comment_time( 'c' ), 855 | sprintf( _x( '%1$s @ %2$s', '1=date 2=time', 'bornholm' ), get_comment_date(), get_comment_time() ) 856 | ); ?> 857 |
    858 | 859 | comment_approved ) { ?> 860 |

    861 | 862 |

    863 | 864 | 865 |
    866 | 867 | ', '

    ' ) ); ?> 868 |
    869 | 870 |
    871 | __( 'Reply', 'bornholm' ), 874 | 'depth' => $depth, 875 | 'max_depth' => $args['max_depth'] 876 | ) 877 | ) ); ?> 878 |
    879 |
    880 | ID; 893 | global $wpdb; 894 | $co_number = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_type = %s 895 | AND comment_post_ID = %d AND comment_approved = %d", ' ', $the_post_id, 1 ) ); 896 | if ( $co_number == 0 ) { 897 | return $co_number; 898 | } elseif ( $co_number == 1 ) { 899 | $co_number = $co_number . __( ' Comment', 'bornholm' ); 900 | 901 | return $co_number; 902 | } else { 903 | $co_number = $co_number . __( ' Comments', 'bornholm' ); 904 | 905 | return $co_number; 906 | } 907 | } 908 | 909 | 910 | /** 911 | * Returns the Number of trackbacks for a post 912 | * 913 | * @return string 914 | */ 915 | function get_bornholm_trackback_count() { 916 | global $post; 917 | $the_post_id = $post->ID; 918 | global $wpdb; 919 | $tb_number = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $wpdb->comments WHERE comment_type != %s 920 | AND comment_post_ID = %d AND comment_approved = %d", ' ', $the_post_id, 1 ) ); 921 | if ( $tb_number == 0 ) { 922 | return $tb_number; 923 | } elseif ( $tb_number == 1 ) { 924 | $tb_number = $tb_number . __( ' Trackback', 'bornholm' ); 925 | 926 | return $tb_number; 927 | } else { 928 | $tb_number = $tb_number . __( ' Trackbacks', 'bornholm' ); 929 | 930 | return $tb_number; 931 | } 932 | } 933 | 934 | /** 935 | * Add classes to the body, if needed 936 | * 937 | * @param string $classes empty default string. 938 | * 939 | * @return string 940 | */ 941 | function bornholm_filter_body_classes( $classes ) { 942 | /** 943 | * Add no-sidebar class if we have no sidebar. 944 | */ 945 | if ( ! is_active_sidebar( 'sidebar-1' ) ) { 946 | $classes[] .= 'no-sidebar'; 947 | } else { 948 | } 949 | 950 | return $classes; 951 | } 952 | 953 | add_filter( 'body_class', 'bornholm_filter_body_classes' ); 954 | 955 | require get_template_directory() . '/inc/class-recent-galleries.php'; 956 | 957 | require get_template_directory() . '/inc/class-featured-galleries.php'; 958 | 959 | 960 | function register_bornholm_widgets() { 961 | register_widget( 'Bornholm_Recent_Galleries' ); 962 | register_widget( 'Bornholm_Featured_Galleries' ); 963 | } 964 | 965 | add_action( 'widgets_init', 'register_bornholm_widgets' ); 966 | 967 | require get_template_directory() . '/inc/customizer.php'; 968 | -------------------------------------------------------------------------------- /css/bornholm.css: -------------------------------------------------------------------------------- 1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */ 2 | 3 | /** 4 | * 1. Set default font family to sans-serif. 5 | * 2. Prevent iOS text size adjust after orientation change, without disabling 6 | * user zoom. 7 | */ 8 | 9 | /* Cyrillic ext */ 10 | @font-face { 11 | font-family: 'Roboto'; 12 | font-style: normal; 13 | font-weight: 300; 14 | src: local('Roboto Light'), local('Roboto-Light'), url(../assets/fonts/roboto-light-cyrillic-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-light-cyrillic-ext-subset.woff) format("woff"); 15 | unicode-range: U+460-52F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E, U+FE2F; 16 | } 17 | 18 | @font-face { 19 | font-family: 'Roboto'; 20 | font-style: normal; 21 | font-weight: 500; 22 | src: local('Roboto Medium'), local('Roboto-Medium'), url(../assets/fonts/roboto-medium-cyrillic-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-medium-cyrillic-ext-subset.woff) format("woff"); 23 | unicode-range: U+460-52F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E, U+FE2F; 24 | } 25 | 26 | @font-face { 27 | font-family: 'Roboto'; 28 | font-style: italic; 29 | font-weight: 300; 30 | src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(../assets/fonts/roboto-lightitalic-cyrillic-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-lightitalic-cyrillic-ext-subset.woff) format("woff"); 31 | unicode-range: U+460-52F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E, U+FE2F; 32 | } 33 | 34 | @font-face { 35 | font-family: 'Roboto'; 36 | font-style: italic; 37 | font-weight: 500; 38 | src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(../assets/fonts/roboto-mediumitalic-cyrillic-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-mediumitalic-cyrillic-ext-subset.woff) format("woff"); 39 | unicode-range: U+460-52F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E, U+FE2F; 40 | } 41 | 42 | /* Cyrillic */ 43 | @font-face { 44 | font-family: 'Roboto'; 45 | font-style: normal; 46 | font-weight: 300; 47 | src: local('Roboto Light'), local('Roboto-Light'), url(../assets/fonts/roboto-light-cyrillic-subset.woff2) format("woff2"), url(../assets/fonts/roboto-light-cyrillic-subset.woff) format("woff"); 48 | unicode-range: U+400-45F, U+490, U+491, U+4B0, U+4B1, U+2116; 49 | } 50 | 51 | @font-face { 52 | font-family: 'Roboto'; 53 | font-style: normal; 54 | font-weight: 500; 55 | src: local('Roboto Medium'), local('Roboto-Medium'), url(../assets/fonts/roboto-medium-cyrillic-subset.woff2) format("woff2"), url(../assets/fonts/roboto-medium-cyrillic-subset.woff) format("woff"); 56 | unicode-range: U+400-45F, U+490, U+491, U+4B0, U+4B1, U+2116; 57 | } 58 | 59 | @font-face { 60 | font-family: 'Roboto'; 61 | font-style: italic; 62 | font-weight: 300; 63 | src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(../assets/fonts/roboto-lightitalic-cyrillic-subset.woff2) format("woff2"), url(../assets/fonts/roboto-lightitalic-cyrillic-subset.woff) format("woff"); 64 | unicode-range: U+400-45F, U+490, U+491, U+4B0, U+4B1, U+2116; 65 | } 66 | 67 | @font-face { 68 | font-family: 'Roboto'; 69 | font-style: italic; 70 | font-weight: 500; 71 | src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(../assets/fonts/roboto-mediumitalic-cyrillic-subset.woff2) format("woff2"), url(../assets/fonts/roboto-mediumitalic-cyrillic-subset.woff) format("woff"); 72 | unicode-range: U+400-45F, U+490, U+491, U+4B0, U+4B1, U+2116; 73 | } 74 | 75 | /* Greek ext */ 76 | @font-face { 77 | font-family: 'Roboto'; 78 | font-style: normal; 79 | font-weight: 300; 80 | src: local('Roboto Light'), local('Roboto-Light'), url(../assets/fonts/roboto-light-greek-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-light-greek-ext-subset.woff) format("woff"); 81 | unicode-range: U+1F00-1FFF; 82 | } 83 | 84 | @font-face { 85 | font-family: 'Roboto'; 86 | font-style: normal; 87 | font-weight: 500; 88 | src: local('Roboto Medium'), local('Roboto-Medium'), url(../assets/fonts/roboto-medium-greek-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-medium-greek-ext-subset.woff) format("woff"); 89 | unicode-range: U+1F00-1FFF; 90 | } 91 | 92 | @font-face { 93 | font-family: 'Roboto'; 94 | font-style: italic; 95 | font-weight: 300; 96 | src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(../assets/fonts/roboto-lightitalic-greek-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-lightitalic-greek-ext-subset.woff) format("woff"); 97 | unicode-range: U+1F00-1FFF; 98 | } 99 | 100 | @font-face { 101 | font-family: 'Roboto'; 102 | font-style: italic; 103 | font-weight: 500; 104 | src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(../assets/fonts/roboto-mediumitalic-greek-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-mediumitalic-greek-ext-subset.woff) format("woff"); 105 | unicode-range: U+1F00-1FFF; 106 | } 107 | 108 | /* Greek */ 109 | @font-face { 110 | font-family: 'Roboto'; 111 | font-style: normal; 112 | font-weight: 300; 113 | src: local('Roboto Light'), local('Roboto-Light'), url(../assets/fonts/roboto-light-greek-subset.woff2) format("woff2"), url(../assets/fonts/roboto-light-greek-subset.woff) format("woff"); 114 | unicode-range: U+370-3FF; 115 | } 116 | 117 | @font-face { 118 | font-family: 'Roboto'; 119 | font-style: normal; 120 | font-weight: 500; 121 | src: local('Roboto Medium'), local('Roboto-Medium'), url(../assets/fonts/roboto-medium-greek-subset.woff2) format("woff2"), url(../assets/fonts/roboto-medium-greek-subset.woff) format("woff"); 122 | unicode-range: U+370-3FF; 123 | } 124 | 125 | @font-face { 126 | font-family: 'Roboto'; 127 | font-style: italic; 128 | font-weight: 300; 129 | src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(../assets/fonts/roboto-lightitalic-greek-subset.woff2) format("woff2"), url(../assets/fonts/roboto-lightitalic-greek-subset.woff) format("woff"); 130 | unicode-range: U+370-3FF; 131 | } 132 | 133 | @font-face { 134 | font-family: 'Roboto'; 135 | font-style: italic; 136 | font-weight: 500; 137 | src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(../assets/fonts/roboto-mediumitalic-greek-subset.woff2) format("woff2"), url(../assets/fonts/roboto-mediumitalic-greek-subset.woff) format("woff"); 138 | unicode-range: U+370-3FF; 139 | } 140 | 141 | /* Latin ext */ 142 | @font-face { 143 | font-family: 'Roboto'; 144 | font-style: normal; 145 | font-weight: 300; 146 | src: local('Roboto Light'), local('Roboto-Light'), url(../assets/fonts/roboto-light-latin-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-light-latin-ext-subset.woff) format("woff"); 147 | unicode-range: U+100-24F, U+259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; 148 | } 149 | 150 | @font-face { 151 | font-family: 'Roboto'; 152 | font-style: normal; 153 | font-weight: 500; 154 | src: local('Roboto Medium'), local('Roboto-Medium'), url(../assets/fonts/roboto-medium-latin-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-medium-latin-ext-subset.woff) format("woff"); 155 | unicode-range: U+100-24F, U+259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; 156 | } 157 | 158 | @font-face { 159 | font-family: 'Roboto'; 160 | font-style: italic; 161 | font-weight: 300; 162 | src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(../assets/fonts/roboto-lightitalic-latin-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-lightitalic-latin-ext-subset.woff) format("woff"); 163 | unicode-range: U+100-24F, U+259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; 164 | } 165 | 166 | @font-face { 167 | font-family: 'Roboto'; 168 | font-style: italic; 169 | font-weight: 500; 170 | src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(../assets/fonts/roboto-mediumitalic-latin-ext-subset.woff2) format("woff2"), url(../assets/fonts/roboto-mediumitalic-latin-ext-subset.woff) format("woff"); 171 | unicode-range: U+100-24F, U+259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; 172 | } 173 | 174 | /* Latin */ 175 | @font-face { 176 | font-family: 'Roboto'; 177 | font-style: normal; 178 | font-weight: 300; 179 | src: local('Roboto Light'), local('Roboto-Light'), url(../assets/fonts/roboto-light-latin-subset.woff2) format("woff2"), url(../assets/fonts/roboto-light-latin-subset.woff) format("woff"); 180 | unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; 181 | } 182 | 183 | @font-face { 184 | font-family: 'Roboto'; 185 | font-style: normal; 186 | font-weight: 500; 187 | src: local('Roboto Medium'), local('Roboto-Medium'), url(../assets/fonts/roboto-medium-latin-subset.woff2) format("woff2"), url(../assets/fonts/roboto-medium-latin-subset.woff) format("woff"); 188 | unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; 189 | } 190 | 191 | @font-face { 192 | font-family: 'Roboto'; 193 | font-style: italic; 194 | font-weight: 300; 195 | src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(../assets/fonts/roboto-lightitalic-latin-subset.woff2) format("woff2"), url(../assets/fonts/roboto-lightitalic-latin-subset.woff) format("woff"); 196 | unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; 197 | } 198 | 199 | @font-face { 200 | font-family: 'Roboto'; 201 | font-style: italic; 202 | font-weight: 500; 203 | src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(../assets/fonts/roboto-mediumitalic-latin-subset.woff2) format("woff2"), url(../assets/fonts/roboto-mediumitalic-latin-subset.woff) format("woff"); 204 | unicode-range: U+0-FF, U+131, U+152, U+153, U+2BB, U+2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; 205 | } 206 | 207 | /* Vietnamese */ 208 | @font-face { 209 | font-family: 'Roboto'; 210 | font-style: normal; 211 | font-weight: 300; 212 | src: local('Roboto Light'), local('Roboto-Light'), url(../assets/fonts/roboto-light-vietnamese-subset.woff2) format("woff2"), url(../assets/fonts/roboto-light-vietnamese-subset.woff) format("woff"); 213 | unicode-range: U+102, U+103, U+110, U+111, U+1EA0-1EF9, U+20AB; 214 | } 215 | 216 | @font-face { 217 | font-family: 'Roboto'; 218 | font-style: normal; 219 | font-weight: 500; 220 | src: local('Roboto Medium'), local('Roboto-Medium'), url(../assets/fonts/roboto-medium-vietnamese-subset.woff2) format("woff2"), url(../assets/fonts/roboto-medium-vietnamese-subset.woff) format("woff"); 221 | unicode-range: U+102, U+103, U+110, U+111, U+1EA0-1EF9, U+20AB; 222 | } 223 | 224 | @font-face { 225 | font-family: 'Roboto'; 226 | font-style: italic; 227 | font-weight: 300; 228 | src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(../assets/fonts/roboto-lightitalic-vietnamese-subset.woff2) format("woff2"), url(../assets/fonts/roboto-lightitalic-vietnamese-subset.woff) format("woff"); 229 | unicode-range: U+102, U+103, U+110, U+111, U+1EA0-1EF9, U+20AB; 230 | } 231 | 232 | @font-face { 233 | font-family: 'Roboto'; 234 | font-style: italic; 235 | font-weight: 500; 236 | src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(../assets/fonts/roboto-mediumitalic-vietnamese-subset.woff2) format("woff2"), url(../assets/fonts/roboto-mediumitalic-vietnamese-subset.woff) format("woff"); 237 | unicode-range: U+102, U+103, U+110, U+111, U+1EA0-1EF9, U+20AB; 238 | } 239 | 240 | html { 241 | background: #ffffff; 242 | font-family: "Roboto", sans-serif; /* 1 */ 243 | -ms-text-size-adjust: 100%; /* 2 */ 244 | -webkit-text-size-adjust: 100%; /* 2 */ 245 | } 246 | 247 | /** 248 | * Remove default margin. 249 | */ 250 | 251 | body { 252 | color: #333333; 253 | margin: 0; 254 | font-weight: 300; 255 | font-size: 1em; 256 | line-height: 1.5em; 257 | word-wrap: break-word; 258 | } 259 | 260 | /* HTML5 display definitions 261 | ========================================================================== */ 262 | 263 | /** 264 | * Correct `block` display not defined for any HTML5 element in IE 8/9. 265 | * Correct `block` display not defined for `details` or `summary` in IE 10/11 266 | * and Firefox. 267 | * Correct `block` display not defined for `main` in IE 11. 268 | */ 269 | 270 | article, 271 | aside, 272 | details, 273 | figcaption, 274 | figure, 275 | footer, 276 | header, 277 | hgroup, 278 | main, 279 | menu, 280 | nav, 281 | section, 282 | summary { 283 | display: block; 284 | max-width: 100%; 285 | } 286 | 287 | /** 288 | * 1. Correct `inline-block` display not defined in IE 8/9. 289 | * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. 290 | */ 291 | 292 | audio, 293 | canvas, 294 | progress, 295 | video { 296 | display: inline-block; /* 1 */ 297 | vertical-align: baseline; /* 2 */ 298 | } 299 | 300 | /** 301 | * Prevent modern browsers from displaying `audio` without controls. 302 | * Remove excess height in iOS 5 devices. 303 | */ 304 | 305 | audio:not([controls]) { 306 | display: none; 307 | height: 0; 308 | } 309 | 310 | /** 311 | * Address `[hidden]` styling not present in IE 8/9/10. 312 | * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. 313 | */ 314 | 315 | [hidden], 316 | template { 317 | display: none; 318 | } 319 | 320 | /* Links 321 | ========================================================================== */ 322 | 323 | /** 324 | * Remove the gray background color from active links in IE 10. 325 | */ 326 | 327 | a { 328 | background-color: transparent; 329 | color: #888888; 330 | text-decoration: none; 331 | } 332 | 333 | /** 334 | * Improve readability when focused and also mouse hovered in all browsers. 335 | */ 336 | 337 | a:active, 338 | a:hover, 339 | a:focus, 340 | .current-menu-item a { 341 | color: #333333; 342 | outline: 0; 343 | } 344 | 345 | /* Text-level semantics 346 | ========================================================================== */ 347 | 348 | /** 349 | * Address styling not present in IE 8/9/10/11, Safari, and Chrome. 350 | */ 351 | 352 | abbr[title] { 353 | border-bottom: 1px dotted; 354 | } 355 | 356 | /** 357 | * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. 358 | */ 359 | 360 | b, 361 | strong { 362 | font-weight: 500; 363 | } 364 | 365 | /** 366 | * Address styling not present in Safari and Chrome. 367 | */ 368 | 369 | dfn { 370 | font-style: italic; 371 | } 372 | 373 | /** 374 | * Address variable `h1` font-size and margin within `section` and `article` 375 | * contexts in Firefox 4+, Safari, and Chrome. 376 | */ 377 | 378 | h1 { 379 | font-size: 2.1875em; 380 | line-height: 1.3714em; 381 | margin-bottom: 0.34285em; 382 | margin-top: 1.02855em; 383 | } 384 | 385 | h2 { 386 | font-size: 2em; 387 | line-height: 1.4em; 388 | margin-bottom: 0.375em; 389 | margin-top: 1.125em; 390 | } 391 | 392 | h3 { 393 | font-size: 1.8125em; 394 | line-height: 1.4em; 395 | margin-top: 1.2414em; 396 | margin-bottom: 0.4138em; 397 | } 398 | 399 | h4 { 400 | font-size: 1.625em; 401 | line-height: 1.4em; 402 | margin-top: 1.38465em; 403 | margin-bottom: 0.46155em; 404 | } 405 | 406 | h5 { 407 | font-size: 1.4375em; 408 | line-height: 1.4em; 409 | margin-top: 1.52175em; 410 | margin-bottom: 0.52175em; 411 | } 412 | 413 | h6 { 414 | font-size: 1.25em; 415 | line-height: 1.4em; 416 | margin-top: 1.8em; 417 | margin-bottom: 0.6em; 418 | } 419 | 420 | h1, 421 | h2, 422 | h3, 423 | h4, 424 | h5, 425 | h6 { 426 | font-weight: 300; 427 | } 428 | 429 | /** 430 | * Address styling not present in IE 8/9. 431 | */ 432 | 433 | mark { 434 | background: #ffff00; 435 | color: #000000; 436 | } 437 | 438 | /** 439 | * Address inconsistent and variable font size in all browsers. 440 | */ 441 | 442 | small { 443 | font-size: 80%; 444 | } 445 | 446 | /** 447 | * Prevent `sub` and `sup` affecting `line-height` in all browsers. 448 | */ 449 | 450 | sub, 451 | sup { 452 | font-size: 75%; 453 | line-height: 0; 454 | position: relative; 455 | vertical-align: baseline; 456 | } 457 | 458 | sup { 459 | top: -0.5em; 460 | } 461 | 462 | sub { 463 | bottom: -0.25em; 464 | } 465 | 466 | /* Embedded content 467 | ========================================================================== */ 468 | 469 | /** 470 | * Remove border when inside `a` element in IE 8/9/10. 471 | */ 472 | 473 | img { 474 | border: 0; 475 | height: auto; 476 | max-width: 100%; 477 | } 478 | 479 | /** 480 | * Correct overflow not hidden in IE 9/10/11. 481 | */ 482 | 483 | svg:not(:root) { 484 | overflow: hidden; 485 | } 486 | 487 | /* Grouping content 488 | ========================================================================== */ 489 | 490 | /** 491 | * Address margin not present in IE 8/9 and Safari. 492 | */ 493 | 494 | figure { 495 | margin: 0; 496 | max-width: 100%; 497 | } 498 | 499 | /** 500 | * Address differences between Firefox and other browsers. 501 | */ 502 | 503 | hr { 504 | -moz-box-sizing: content-box; 505 | box-sizing: content-box; 506 | height: 0; 507 | } 508 | 509 | /** 510 | * Contain overflow in all browsers. 511 | */ 512 | 513 | pre { 514 | overflow: auto; 515 | } 516 | 517 | /** 518 | * Address odd `em`-unit font size rendering in all browsers. 519 | */ 520 | 521 | code, 522 | kbd, 523 | pre, 524 | samp { 525 | font-family: monospace, monospace; 526 | font-size: 1em; 527 | } 528 | 529 | /* Forms 530 | ========================================================================== */ 531 | 532 | /** 533 | * Known limitation: by default, Chrome and Safari on OS X allow very limited 534 | * styling of `select`, unless a `border` property is set. 535 | */ 536 | 537 | /** 538 | * 1. Correct color not being inherited. 539 | * Known issue: affects color of disabled elements. 540 | * 2. Correct font properties not being inherited. 541 | * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. 542 | */ 543 | 544 | button, 545 | input, 546 | optgroup, 547 | select, 548 | textarea { 549 | -webkit-box-sizing: border-box; 550 | -moz-box-sizing: border-box; 551 | box-sizing: border-box; 552 | color: inherit; /* 1 */ 553 | font: inherit; /* 2 */ 554 | font-family: "Roboto", sans-serif; 555 | margin: 0; /* 3 */ 556 | } 557 | 558 | /** 559 | * Address `overflow` set to `hidden` in IE 8/9/10/11. 560 | */ 561 | 562 | button { 563 | border: none; 564 | overflow: visible; 565 | } 566 | 567 | /** 568 | * Address inconsistent `text-transform` inheritance for `button` and `select`. 569 | * All other form control elements do not inherit `text-transform` values. 570 | * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. 571 | * Correct `select` style inheritance in Firefox. 572 | */ 573 | 574 | button, 575 | select { 576 | text-transform: none; 577 | } 578 | 579 | /** 580 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` 581 | * and `video` controls. 582 | * 2. Correct inability to style clickable `input` types in iOS. 583 | * 3. Improve usability and consistency of cursor style between image-type 584 | * `input` and others. 585 | */ 586 | 587 | button, 588 | html input[type="button"], /* 1 */ 589 | input[type="reset"], 590 | input[type="submit"] { 591 | -webkit-appearance: button; /* 2 */ 592 | cursor: pointer; /* 3 */ 593 | } 594 | 595 | /** 596 | * Re-set default cursor for disabled elements. 597 | */ 598 | 599 | button[disabled], 600 | html input[disabled] { 601 | cursor: default; 602 | } 603 | 604 | /** 605 | * Remove inner padding and border in Firefox 4+. 606 | */ 607 | 608 | button::-moz-focus-inner, 609 | input::-moz-focus-inner { 610 | border: 0; 611 | padding: 0; 612 | } 613 | 614 | /** 615 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in 616 | * the UA stylesheet. 617 | */ 618 | 619 | input { 620 | line-height: normal; 621 | } 622 | 623 | /** 624 | * It's recommended that you don't attempt to style these elements. 625 | * Firefox's implementation doesn't respect box-sizing, padding, or width. 626 | * 627 | * 1. Address box sizing set to `content-box` in IE 8/9/10. 628 | * 2. Remove excess padding in IE 8/9/10. 629 | */ 630 | 631 | input[type="checkbox"], 632 | input[type="radio"] { 633 | box-sizing: border-box; /* 1 */ 634 | padding: 0; /* 2 */ 635 | } 636 | 637 | /** 638 | * Fix the cursor style for Chrome's increment/decrement buttons. For certain 639 | * `font-size` values of the `input`, it causes the cursor style of the 640 | * decrement button to change from `default` to `text`. 641 | */ 642 | 643 | input[type="number"]::-webkit-inner-spin-button, 644 | input[type="number"]::-webkit-outer-spin-button { 645 | height: auto; 646 | } 647 | 648 | /** 649 | * 1. Address `appearance` set to `searchfield` in Safari and Chrome. 650 | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome 651 | * (include `-moz` to future-proof). 652 | */ 653 | 654 | input[type="search"] { 655 | -webkit-appearance: textfield; /* 1 */ 656 | -moz-box-sizing: content-box; 657 | -webkit-box-sizing: content-box; /* 2 */ 658 | box-sizing: content-box; 659 | } 660 | 661 | /** 662 | * Remove inner padding and search cancel button in Safari and Chrome on OS X. 663 | * Safari (but not Chrome) clips the cancel button when the search input has 664 | * padding (and `textfield` appearance). 665 | */ 666 | 667 | input[type="search"]::-webkit-search-cancel-button, 668 | input[type="search"]::-webkit-search-decoration { 669 | -webkit-appearance: none; 670 | } 671 | 672 | /** 673 | * Define consistent border, margin, and padding. 674 | */ 675 | 676 | fieldset { 677 | border: 1px solid #c0c0c0; 678 | margin: 0 2px; 679 | padding: 0.35em 0.625em 0.75em; 680 | } 681 | 682 | /** 683 | * 1. Correct `color` not being inherited in IE 8/9/10/11. 684 | * 2. Remove padding so people aren't caught out if they zero out fieldsets. 685 | */ 686 | 687 | legend { 688 | border: 0; /* 1 */ 689 | padding: 0; /* 2 */ 690 | } 691 | 692 | /** 693 | * Remove default vertical scrollbar in IE 8/9/10/11. 694 | */ 695 | 696 | textarea { 697 | overflow: auto; 698 | } 699 | 700 | /** 701 | * Don't inherit the `font-weight` (applied by a rule above). 702 | * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. 703 | */ 704 | 705 | optgroup { 706 | font-weight: 500; 707 | } 708 | 709 | /* Tables 710 | ========================================================================== */ 711 | 712 | /** 713 | * Remove most spacing between table cells. 714 | */ 715 | 716 | table { 717 | border-collapse: collapse; 718 | border-spacing: 0; 719 | } 720 | 721 | td, 722 | th { 723 | padding: .4em; 724 | } 725 | 726 | p { 727 | margin: 0 0 1.5em 0; 728 | } 729 | 730 | ul { 731 | margin-top: 0; 732 | margin-bottom: 1.5em; 733 | } 734 | 735 | ul ul { 736 | margin-bottom: 0; 737 | } 738 | 739 | li { 740 | margin-bottom: .5em; 741 | } 742 | 743 | li li:first-child { 744 | margin-top: .5em; 745 | } 746 | 747 | input, 748 | textarea { 749 | border: solid 1px #bbbbbb; 750 | padding: .2em .4em; 751 | } 752 | 753 | textarea { 754 | resize: vertical; 755 | } 756 | 757 | blockquote { 758 | border-left: #888888 solid; 759 | padding-left: .5em; 760 | } 761 | 762 | iframe, 763 | embed { 764 | max-width: 100%; 765 | } 766 | 767 | video { 768 | height: auto; 769 | max-width: 100%; 770 | } 771 | 772 | input:focus, 773 | input:hover, 774 | textarea:focus, 775 | textarea:hover { 776 | border: solid 1px #333333; 777 | } 778 | 779 | input[type=text], 780 | input[type=email], 781 | input[type=url], 782 | textarea { 783 | width: 100%; 784 | } 785 | 786 | input[type=submit] { 787 | background: none; 788 | } 789 | 790 | #wrapper, 791 | #header, 792 | #footer { 793 | max-width: 1334px; 794 | margin: 0 auto; 795 | } 796 | 797 | .clearfix:after { 798 | content: ""; 799 | clear: both; 800 | display: block; 801 | } 802 | 803 | .screen-reader-text { 804 | clip: rect(1px, 1px, 1px, 1px); 805 | height: 1px; 806 | overflow: hidden; 807 | position: absolute !important; 808 | width: 1px; 809 | } 810 | 811 | .widget_recent_galleries a, 812 | .widget_featured_galleries a, 813 | .gallery-category a { 814 | display: block; 815 | position: relative; 816 | } 817 | 818 | .widget_recent_galleries .entry-title, 819 | .widget_featured_galleries .entry-title, 820 | .gallery-category .entry-title, 821 | .page-template-portfolio-page article .gallery-title { 822 | background: #ffffff; 823 | background: rgba(255, 255, 255, .8); 824 | bottom: 0; 825 | -moz-box-sizing: border-box; 826 | -webkit-box-sizing: border-box; 827 | box-sizing: border-box; 828 | color: #000000; 829 | font-size: 1em; 830 | margin: 0; 831 | padding: .2em .4em; 832 | position: absolute; 833 | width: 100%; 834 | } 835 | 836 | /****************************** 837 | Header 838 | *******************************/ 839 | 840 | #header { 841 | margin-bottom: 3.125em; 842 | padding-top: 2em; 843 | } 844 | 845 | #header div { 846 | float: left; 847 | max-width: 65%; 848 | margin-left: 16px; 849 | } 850 | 851 | #header .site-title { 852 | font-size: 1.4em; 853 | margin: 0; 854 | } 855 | 856 | #header .blog-description { 857 | font-size: 1em; 858 | font-style: italic; 859 | margin: 0; 860 | } 861 | 862 | .menu-button { 863 | background: none; 864 | border: none; 865 | } 866 | 867 | .menu-button { 868 | display: none; 869 | } 870 | 871 | #header nav ul { 872 | margin-top: 0; 873 | padding-left: 0; 874 | } 875 | 876 | #header nav li { 877 | list-style-type: none; 878 | } 879 | 880 | @media screen and ( max-width: 49.99em ) { 881 | .js .menu-button { 882 | display: block; 883 | font-size: 2em; 884 | } 885 | 886 | .js .show-menu { 887 | float: right; 888 | padding: .8em; 889 | } 890 | 891 | .js .hide-menu { 892 | margin: 15px 0; 893 | width: 100%; 894 | } 895 | 896 | #header nav { 897 | text-align: center; 898 | } 899 | 900 | .js #header nav { 901 | height: 0; 902 | left: 0; 903 | overflow: hidden; 904 | position: absolute; 905 | top: -200px; 906 | width: 100%; 907 | } 908 | 909 | .active-menu #header nav { 910 | background: #ffffff; 911 | background: rgba(255, 255, 255, 0.95); 912 | height: auto; 913 | overflow: visible; 914 | top: 0; 915 | -moz-transition: top 0.5s ease 0s; 916 | -webkit-transition: top 0.5s ease 0s; 917 | transition: top 0.5s ease 0s; 918 | z-index: 999; 919 | } 920 | 921 | #header nav ul li { 922 | margin-bottom: 4px; 923 | margin-top: 4px; 924 | padding-bottom: 4px; 925 | padding-top: 4px; 926 | } 927 | } 928 | 929 | /****************************** 930 | Alignment 931 | *******************************/ 932 | 933 | .alignleft { 934 | display: block; 935 | float: left; 936 | margin-right: 1em; 937 | } 938 | 939 | .alignright { 940 | display: block; 941 | float: right; 942 | margin-left: 1em; 943 | } 944 | 945 | .aligncenter { 946 | display: block; 947 | margin-left: auto; 948 | margin-right: auto; 949 | } 950 | 951 | /****************************** 952 | Caption 953 | *******************************/ 954 | 955 | .wp-caption-text { 956 | font-style: italic; 957 | margin-bottom: .4em; 958 | } 959 | 960 | /****************************** 961 | Post 962 | *******************************/ 963 | 964 | .sticky { 965 | 966 | } 967 | 968 | .entry-title, 969 | .archive-header, 970 | .entry-content, 971 | .entry-meta, 972 | #comments { 973 | max-width: 800px; 974 | margin-left: auto; 975 | margin-right: auto; 976 | } 977 | 978 | .no-sidebar .entry-content { 979 | max-width: 100%; 980 | } 981 | 982 | .no-sidebar .entry-content > * { 983 | max-width: 800px; 984 | margin-left: auto; 985 | margin-right: auto; 986 | } 987 | 988 | .no-sidebar .entry-content > .size-full { 989 | max-width: 100%; 990 | } 991 | 992 | .entry-title, 993 | .archive-header, 994 | .entry-content, 995 | .entry-meta, 996 | .category-title, 997 | .widget-title, 998 | #comments { 999 | padding: 0 16px; 1000 | } 1001 | 1002 | main article:first-child .entry-title { 1003 | margin-top: 0; 1004 | } 1005 | 1006 | .entry-meta { 1007 | font-size: .95em; 1008 | } 1009 | 1010 | .featured-image { 1011 | line-height: 0; 1012 | margin: .2em; 1013 | } 1014 | 1015 | .featured-image img { 1016 | line-height: 1; 1017 | } 1018 | 1019 | :not(.format-gallery) .featured-image { 1020 | margin-bottom: 1.5em; 1021 | } 1022 | 1023 | .entry-meta { 1024 | clear: both; 1025 | margin-top: 1.5em; 1026 | } 1027 | 1028 | .page-link:after { 1029 | clear: both; 1030 | content: ''; 1031 | display: block; 1032 | } 1033 | 1034 | .page-link { 1035 | padding-left: 0; 1036 | } 1037 | 1038 | .page-link li { 1039 | display: block; 1040 | float: left; 1041 | list-style-type: none; 1042 | margin: .2em; 1043 | padding: .4em; 1044 | } 1045 | 1046 | /****************************** 1047 | Gallery 1048 | *******************************/ 1049 | 1050 | .format-gallery .entry-header { 1051 | margin: .2em; 1052 | margin-top: 3.125em; 1053 | position: relative; 1054 | } 1055 | 1056 | .format-gallery .entry-header:first-of-type { 1057 | margin-top: 0; 1058 | } 1059 | 1060 | .format-gallery .entry-header .gallery-thumb { 1061 | float: left; 1062 | } 1063 | 1064 | .gallery-thumbs { 1065 | margin: 0; 1066 | padding: 0; 1067 | } 1068 | 1069 | .gallery-thumbs li { 1070 | -moz-box-sizing: border-box; 1071 | -webkit-box-sizing: border-box; 1072 | box-sizing: border-box; 1073 | display: block; 1074 | float: left; 1075 | line-height: 0; 1076 | list-style-type: none; 1077 | max-width: 100%; 1078 | padding: .2em; 1079 | } 1080 | 1081 | .format-gallery :not(.gallery-thumbs) + .entry-content { 1082 | margin-top: 1.5em; 1083 | } 1084 | 1085 | .format-gallery .gallery-thumbs + .entry-content { 1086 | margin-top: .7em; 1087 | } 1088 | 1089 | .gallery-thumbs li img { 1090 | line-height: 1; 1091 | } 1092 | 1093 | .gallery-category article { 1094 | float: left; 1095 | } 1096 | 1097 | .gallery-thumb { 1098 | line-height: 0; 1099 | } 1100 | 1101 | .gallery-thumb img { 1102 | line-height: 1; 1103 | } 1104 | 1105 | .gallery::after { 1106 | clear: both; 1107 | content: ''; 1108 | display: block; 1109 | } 1110 | 1111 | .gallery-item { 1112 | display: block; 1113 | float: left; 1114 | line-height: 0; 1115 | padding: .2em; 1116 | } 1117 | 1118 | .gallery-item img { 1119 | line-height: 1; 1120 | } 1121 | 1122 | .gallery-caption { 1123 | display: none; 1124 | } 1125 | 1126 | .single-format-gallery .entry-title, 1127 | .single-format-gallery .entry-content { 1128 | max-width: 100%; 1129 | } 1130 | 1131 | .single-format-gallery .entry-header { 1132 | margin-bottom: 1.5em; 1133 | } 1134 | 1135 | .single-format-gallery .entry-content .gallery:after { 1136 | clear: both; 1137 | content: ''; 1138 | display: block; 1139 | } 1140 | 1141 | .single-format-gallery .entry-content :not(.gallery) { 1142 | max-width: 800px; 1143 | margin-left: auto; 1144 | margin-right: auto; 1145 | } 1146 | 1147 | .single-format-gallery .entry-content .gallery * { 1148 | max-width: 100%; 1149 | } 1150 | 1151 | .gallery-columns-1 .gallery-item, 1152 | .gallery-columns-2 .gallery-item:nth-of-type(2n-1), 1153 | .gallery-columns-3 .gallery-item:nth-of-type(3n-2), 1154 | .gallery-columns-4 .gallery-item:nth-of-type(4n-3), 1155 | .gallery-columns-5 .gallery-item:nth-of-type(5n-4), 1156 | .gallery-columns-6 .gallery-item:nth-of-type(6n-5), 1157 | .gallery-columns-7 .gallery-item:nth-of-type(7n-6), 1158 | .gallery-columns-8 .gallery-item:nth-of-type(8n-7), 1159 | .gallery-columns-9 .gallery-item:nth-of-type(9n-8), 1160 | .gallery-columns-10 .gallery-item:nth-of-type(10n-9) { 1161 | display: block; 1162 | clear: left; 1163 | } 1164 | 1165 | /****************************** 1166 | Archive 1167 | *******************************/ 1168 | 1169 | .archive-header h1 { 1170 | margin-top: 0; 1171 | } 1172 | 1173 | /****************************** 1174 | Comments 1175 | *******************************/ 1176 | 1177 | .bypostauthor { 1178 | 1179 | } 1180 | 1181 | #comments label { 1182 | display: block; 1183 | } 1184 | 1185 | #comments .comment-form-cookies-consent { 1186 | display: -webkit-box; 1187 | display: -ms-flexbox; 1188 | display: flex; 1189 | -webkit-box-align: baseline; 1190 | -ms-flex-align: baseline; 1191 | align-items: baseline; 1192 | } 1193 | 1194 | #comments .comment-form-cookies-consent label { 1195 | margin-left: .5em; 1196 | } 1197 | 1198 | .commentlist { 1199 | padding-left: 0; 1200 | } 1201 | 1202 | .commentlist > .comment { 1203 | padding-bottom: 2em; 1204 | margin-bottom: 0; 1205 | } 1206 | 1207 | li.comment, 1208 | li.pingback { 1209 | list-style-type: none; 1210 | margin-bottom: 2em; 1211 | } 1212 | 1213 | li.comment li.comment:first-child { 1214 | margin-top: 2em; 1215 | } 1216 | 1217 | header.comment-meta { 1218 | margin-bottom: 1.5em; 1219 | } 1220 | 1221 | .commentlist .avatar { 1222 | display: block; 1223 | margin-right: .5em; 1224 | max-width: 20%; 1225 | float: left; 1226 | } 1227 | 1228 | .commentlist .comment-meta .fn { 1229 | display: block; 1230 | } 1231 | 1232 | .reply { 1233 | margin-top: -1.5em; 1234 | } 1235 | 1236 | .children { 1237 | padding-left: .6em; 1238 | } 1239 | 1240 | /****************************** 1241 | Widgets 1242 | *******************************/ 1243 | 1244 | .widget { 1245 | -webkit-box-sizing: border-box; 1246 | -moz-box-sizing: border-box; 1247 | box-sizing: border-box; 1248 | margin-top: 2.2em; 1249 | } 1250 | 1251 | #sidebar .widget { 1252 | padding: 0 16px; 1253 | } 1254 | 1255 | #sidebar .widget:first-of-type { 1256 | margin-top: 0; 1257 | } 1258 | 1259 | .widget .widget-title { 1260 | margin-top: 0; 1261 | } 1262 | 1263 | .widget a:first-of-type .entry-title { 1264 | margin-top: 0; 1265 | } 1266 | 1267 | #sidebar .widget_recent_galleries, 1268 | #sidebar .widget_featured_galleries { 1269 | padding: 0; 1270 | } 1271 | 1272 | .widget_recent_galleries div, 1273 | .widget_featured_galleries div { 1274 | -webkit-box-sizing: border-box; 1275 | -moz-box-sizing: border-box; 1276 | box-sizing: border-box; 1277 | display: block; 1278 | float: left; 1279 | max-width: 100%; 1280 | padding: .2em; 1281 | } 1282 | 1283 | .widget_recent_galleries a, 1284 | .widget_featured_galleries a { 1285 | display: block; 1286 | float: left; 1287 | max-width: 100%; 1288 | } 1289 | 1290 | .widget .gallery-thumb { 1291 | margin: 0; 1292 | } 1293 | 1294 | /****************************** 1295 | Alternative front page template 1296 | *******************************/ 1297 | 1298 | .gallery-category.child:before { 1299 | clear: both; 1300 | content: ''; 1301 | display: block; 1302 | } 1303 | 1304 | .gallery-category .gallery-thumb { 1305 | margin: 0; 1306 | } 1307 | 1308 | .gallery-category a { 1309 | margin: .2em; 1310 | } 1311 | 1312 | .read-more { 1313 | margin: .2em; 1314 | } 1315 | 1316 | .read-more a { 1317 | background: #000000; 1318 | background: rgba(0, 0, 0, .8); 1319 | color: #ffffff; 1320 | display: table-cell; 1321 | font-size: 1.2em; 1322 | height: 200px; 1323 | margin: 0; 1324 | padding: 0 .4em; 1325 | vertical-align: middle; 1326 | } 1327 | 1328 | /****************************** 1329 | Portfolio template 1330 | *******************************/ 1331 | 1332 | .page-template-portfolio-page article { 1333 | float: left; 1334 | } 1335 | 1336 | .page-template-portfolio-page main article a { 1337 | display: block; 1338 | margin: .2em; 1339 | position: relative; 1340 | } 1341 | 1342 | /****************************** 1343 | Pagination 1344 | *******************************/ 1345 | .navigation.pagination:after { 1346 | clear: both; 1347 | content: ''; 1348 | display: block; 1349 | } 1350 | 1351 | .navigation.pagination ul { 1352 | padding: 0 16px; 1353 | } 1354 | 1355 | .navigation.pagination li { 1356 | display: block; 1357 | float: left; 1358 | list-style-type: none; 1359 | margin: .2em; 1360 | padding: .4em; 1361 | } 1362 | 1363 | /****************************** 1364 | Footer 1365 | *******************************/ 1366 | 1367 | #footer { 1368 | clear: both; 1369 | padding: 0 16px; 1370 | } 1371 | 1372 | #footer .widget-title { 1373 | padding: 0; 1374 | } 1375 | 1376 | #footer .theme-author { 1377 | text-align: center; 1378 | padding-top: 1.5em; 1379 | } 1380 | 1381 | /****************************** 1382 | Lightbox 1383 | *******************************/ 1384 | 1385 | #imagelightbox { 1386 | position: fixed; 1387 | z-index: 9999; 1388 | 1389 | -ms-touch-action: none; 1390 | touch-action: none; 1391 | } 1392 | 1393 | #imagelightbox-loading, 1394 | #imagelightbox-loading div { 1395 | border-radius: 50%; 1396 | } 1397 | 1398 | #imagelightbox-loading { 1399 | width: 1em; /* 40 */ 1400 | height: 1em; /* 40 */ 1401 | background-color: #444444; 1402 | background-color: rgba(0, 0, 0, .5); 1403 | position: fixed; 1404 | z-index: 10003; 1405 | top: 50%; 1406 | left: 50%; 1407 | padding: 0.625em; /* 10 */ 1408 | margin: -1.25em 0 0 -1.25em; /* 20 */ 1409 | 1410 | -webkit-box-shadow: 0 0 2.5em rgba(0, 0, 0, .75); /* 40 */ 1411 | box-shadow: 0 0 2.5em rgba(0, 0, 0, .75); /* 40 */ 1412 | } 1413 | 1414 | #imagelightbox-loading div { 1415 | width: 1em; /* 20 */ 1416 | height: 1em; /* 20 */ 1417 | background-color: #ffffff; 1418 | 1419 | -webkit-animation: imagelightbox-loading .5s ease infinite; 1420 | animation: imagelightbox-loading .5s ease infinite; 1421 | } 1422 | 1423 | @-webkit-keyframes imagelightbox-loading { 1424 | from { 1425 | opacity: .5; 1426 | -webkit-transform: scale(.75); 1427 | } 1428 | 50% { 1429 | opacity: 1; 1430 | -webkit-transform: scale(1); 1431 | } 1432 | to { 1433 | opacity: .5; 1434 | -webkit-transform: scale(.75); 1435 | } 1436 | } 1437 | 1438 | @keyframes imagelightbox-loading { 1439 | from { 1440 | opacity: .5; 1441 | transform: scale(.75); 1442 | } 1443 | 50% { 1444 | opacity: 1; 1445 | transform: scale(1); 1446 | } 1447 | to { 1448 | opacity: .5; 1449 | transform: scale(.75); 1450 | } 1451 | } 1452 | 1453 | /* OVERLAY */ 1454 | 1455 | #imagelightbox-overlay { 1456 | background-color: #000000; 1457 | background-color: rgba(0, 0, 0, .9); 1458 | position: fixed; 1459 | z-index: 9998; 1460 | top: 0; 1461 | right: 0; 1462 | bottom: 0; 1463 | left: 0; 1464 | } 1465 | 1466 | /* "CLOSE" BUTTON */ 1467 | 1468 | #imagelightbox-close { 1469 | width: 2.5em; /* 40 */ 1470 | height: 2.5em; /* 40 */ 1471 | text-align: left; 1472 | background-color: transparent; 1473 | border-radius: 50%; 1474 | position: fixed; 1475 | z-index: 10002; 1476 | top: 1em; /* 40 */ 1477 | right: 1em; /* 40 */ 1478 | 1479 | -webkit-transition: color .3s ease; 1480 | transition: color .3s ease; 1481 | } 1482 | 1483 | #imagelightbox-close:hover:before, 1484 | #imagelightbox-close:hover:after, 1485 | #imagelightbox-close:active:before, 1486 | #imagelightbox-close:active:after { 1487 | background-color: #dddddd; 1488 | } 1489 | 1490 | #imagelightbox-close:before, 1491 | #imagelightbox-close:after { 1492 | width: 2px; 1493 | background-color: #ffffff; 1494 | content: ''; 1495 | position: absolute; 1496 | top: 20%; 1497 | bottom: 20%; 1498 | left: 50%; 1499 | margin-left: -1px; 1500 | } 1501 | 1502 | #imagelightbox-close:before { 1503 | -webkit-transform: rotate(45deg); 1504 | -ms-transform: rotate(45deg); 1505 | transform: rotate(45deg); 1506 | } 1507 | 1508 | #imagelightbox-close:after { 1509 | -webkit-transform: rotate(-45deg); 1510 | -ms-transform: rotate(-45deg); 1511 | transform: rotate(-45deg); 1512 | } 1513 | 1514 | /* ARROWS */ 1515 | 1516 | .imagelightbox-arrow { 1517 | color: #ffffff; 1518 | font-size: 4em; 1519 | width: 1em; /* 60 */ 1520 | height: 7.5em; /* 120 */ 1521 | background-color: transparent; 1522 | vertical-align: middle; 1523 | display: none; 1524 | position: fixed; 1525 | z-index: 10001; 1526 | top: 50%; 1527 | margin-top: -3.75em; /* 60 */ 1528 | } 1529 | 1530 | @media screen and (max-width: 49.99em ) { 1531 | .imagelightbox-arrow { 1532 | display: none !important; 1533 | } 1534 | } 1535 | 1536 | .imagelightbox-arrow:hover, 1537 | .imagelightbox-arrow:active, 1538 | .imagelightbox-arrow:focus { 1539 | opacity: .5; 1540 | } 1541 | 1542 | .imagelightbox-arrow-left { 1543 | left: 0em; /* 40 */ 1544 | } 1545 | 1546 | .imagelightbox-arrow-right { 1547 | right: 0em; /* 40 */ 1548 | } 1549 | 1550 | #imagelightbox-loading, 1551 | #imagelightbox-overlay, 1552 | #imagelightbox-close, 1553 | #imagelightbox-caption, 1554 | #imagelightbox-nav, 1555 | .imagelightbox-arrow { 1556 | -webkit-animation: fade-in .25s linear; 1557 | animation: fade-in .25s linear; 1558 | } 1559 | 1560 | @-webkit-keyframes fade-in { 1561 | from { 1562 | opacity: 0; 1563 | } 1564 | to { 1565 | opacity: 1; 1566 | } 1567 | } 1568 | 1569 | @keyframes fade-in { 1570 | from { 1571 | opacity: 0; 1572 | } 1573 | to { 1574 | opacity: 1; 1575 | } 1576 | } 1577 | 1578 | @media only screen and (max-width: 41.250em) /* 660 */ { 1579 | #container { 1580 | width: 100%; 1581 | } 1582 | } 1583 | 1584 | @media screen and ( min-width: 33.5em ) { 1585 | body { 1586 | font-size: 1.1em; 1587 | } 1588 | } 1589 | 1590 | @media screen and ( min-width: 37.5em ) { 1591 | body { 1592 | font-size: 1.2em; 1593 | } 1594 | 1595 | .entry-title, 1596 | .archive-header, 1597 | .entry-content, 1598 | .entry-meta, 1599 | .category-title, 1600 | #sidebar .widget, 1601 | .navigation.pagination ul, 1602 | #footer { 1603 | padding: 0 32px; 1604 | } 1605 | 1606 | #header div { 1607 | margin-left: 32px; 1608 | } 1609 | 1610 | .gallery-title { 1611 | background: #ffffff; 1612 | background: rgba(255, 255, 255, .8); 1613 | bottom: .4em; 1614 | color: #000000; 1615 | left: 0; 1616 | margin: 0; 1617 | padding: .1em .2em; 1618 | position: absolute; 1619 | } 1620 | 1621 | #sidebar .widget_recent_galleries, 1622 | #sidebar .widget_featured_galleries { 1623 | padding: 0; 1624 | } 1625 | 1626 | .children { 1627 | padding-left: 1em; 1628 | } 1629 | } 1630 | 1631 | @media screen and ( min-width: 50em ) { 1632 | 1633 | body { 1634 | font-size: 1em; 1635 | } 1636 | 1637 | input[type=text], 1638 | input[type=email], 1639 | input[type=url] { 1640 | width: 60%; 1641 | } 1642 | 1643 | #wrapper, 1644 | #header, 1645 | #footer { 1646 | width: 80%; 1647 | } 1648 | 1649 | #header div { 1650 | margin-left: 0; 1651 | } 1652 | 1653 | #header nav { 1654 | float: right; 1655 | } 1656 | 1657 | #header nav li { 1658 | display: block; 1659 | float: left; 1660 | margin: 0 .5em; 1661 | } 1662 | 1663 | #header nav li:first-of-type { 1664 | margin-left: 0; 1665 | } 1666 | 1667 | #header nav li:last-of-type { 1668 | margin-right: 0; 1669 | } 1670 | 1671 | main { 1672 | clear: both; 1673 | float: left; 1674 | width: 60%; 1675 | } 1676 | 1677 | .no-sidebar main { 1678 | float: none; 1679 | margin-left: auto; 1680 | margin-right: auto; 1681 | width: auto; 1682 | } 1683 | 1684 | .entry-title, 1685 | .archive-header, 1686 | .entry-content, 1687 | .entry-meta, 1688 | .category-title, 1689 | .widget-title, 1690 | #sidebar .widget, 1691 | #comments { 1692 | padding: 0; 1693 | } 1694 | 1695 | .gallery-title { 1696 | padding: .1em .2em; 1697 | } 1698 | 1699 | #sidebar { 1700 | float: right; 1701 | width: 35%; 1702 | } 1703 | 1704 | .single-format-gallery main, 1705 | .single-format-gallery #sidebar, 1706 | .page-template-alternative-front-page main, 1707 | .page-template-portfolio-page main { 1708 | float: none; 1709 | width: 100%; 1710 | } 1711 | 1712 | #sidebar-gallery .widget, 1713 | #footer-top .widget, 1714 | #footer-bottom .widget { 1715 | float: left; 1716 | width: 50%; 1717 | } 1718 | 1719 | #sidebar-gallery .widgets .widget:nth-of-type( 2n ), 1720 | #footer-top .widget:nth-of-type( 2n ), 1721 | #footer-bottom .widget:nth-of-type( 2n ) { 1722 | padding-left: .5em; 1723 | } 1724 | 1725 | #sidebar-gallery .widgets .widget:nth-of-type( 2n-1 ), 1726 | #footer-top .widget:nth-of-type( 2n-1 ), 1727 | #footer-bottom .widget:nth-of-type( 2n-1 ) { 1728 | clear: left; 1729 | padding-right: .5em; 1730 | } 1731 | 1732 | .imagelightbox-arrow { 1733 | display: block; 1734 | } 1735 | } 1736 | 1737 | @media screen and ( min-width: 68.75em ) { 1738 | body { 1739 | font-size: 1.1em; 1740 | } 1741 | } 1742 | 1743 | @media screen and ( min-width: 77.5em ) { 1744 | body { 1745 | font-size: 1.2em; 1746 | } 1747 | 1748 | #footer-bottom .widget { 1749 | float: left; 1750 | width: 33.33%; 1751 | } 1752 | 1753 | #footer-bottom .widget:nth-of-type( 2n-1 ) { 1754 | clear: none; 1755 | padding: 0; 1756 | } 1757 | 1758 | #footer-bottom .widget:nth-of-type( 2n ) { 1759 | padding-left: 0; 1760 | } 1761 | 1762 | #footer-bottom .widget:nth-of-type( 3n-2 ) { 1763 | clear: left; 1764 | padding-right: .4em; 1765 | } 1766 | 1767 | #footer-bottom .widget:nth-of-type( 3n-1 ) { 1768 | padding-left: .2em; 1769 | padding-right: .2em; 1770 | } 1771 | 1772 | #footer-bottom .widget:nth-of-type( 3n ) { 1773 | padding-left: .4em; 1774 | } 1775 | } 1776 | 1777 | @media screen and ( min-width: 86.25em ) { 1778 | body { 1779 | font-size: 1.3em; 1780 | } 1781 | } 1782 | 1783 | @media screen and ( min-width: 91.25em ) { 1784 | body { 1785 | font-size: 1.4em; 1786 | } 1787 | } 1788 | --------------------------------------------------------------------------------