├── 404.php ├── archive-forum.php ├── bbpress ├── content-archive-forum.php ├── content-archive-topic.php ├── content-single-forum.php ├── content-single-topic-lead.php ├── content-single-topic.php ├── content-single-view.php ├── loop-replies.php ├── loop-single-forum.php ├── loop-single-reply.php ├── loop-single-topic.php ├── loop-topics.php ├── oenology-bbpress-functions.php ├── user-details.php ├── user-favorites.php ├── user-profile.php ├── user-replies-created.php ├── user-subscriptions.php └── user-topics-created.php ├── changelog.htm ├── comments.php ├── css ├── bbpress.css ├── fonts.css ├── ie.css └── oenology-admin.css ├── editor-style.css ├── fonts ├── GUST-FONT-LICENSE.txt ├── Genericons - COPYING.txt ├── Genericons - LICENSE.txt ├── Genericons - README.txt ├── Genericons-Regular.otf ├── genericons-regular-webfont.eot ├── genericons-regular-webfont.svg ├── genericons-regular-webfont.ttf ├── genericons-regular-webfont.woff ├── genericons.css ├── texgyreschola-bold-webfont.eot ├── texgyreschola-bold-webfont.svg ├── texgyreschola-bold-webfont.ttf ├── texgyreschola-bold-webfont.woff ├── texgyreschola-bolditalic-webfont.eot ├── texgyreschola-bolditalic-webfont.svg ├── texgyreschola-bolditalic-webfont.ttf ├── texgyreschola-bolditalic-webfont.woff ├── texgyreschola-italic-webfont.eot ├── texgyreschola-italic-webfont.svg ├── texgyreschola-italic-webfont.ttf ├── texgyreschola-italic-webfont.woff ├── texgyreschola-regular-webfont.eot ├── texgyreschola-regular-webfont.svg ├── texgyreschola-regular-webfont.ttf └── texgyreschola-regular-webfont.woff ├── footer.php ├── front-page.php ├── functions.php ├── functions ├── custom.php ├── dynamic-css.php ├── hooks.php ├── options-config.php ├── options-customizer-custom-controls.php ├── options-customizer.php ├── options.php ├── post-custom-meta.php ├── theme-setup.php ├── widgets.php └── wordpress-hooks.php ├── header.php ├── images ├── headers │ └── pxwhite.jpg ├── layouts │ ├── 1c.png │ ├── 2cl.png │ ├── 2cr.png │ ├── 3cl.png │ ├── 3cm.png │ └── 3cr.png └── pxwhite.jpg ├── index.php ├── js ├── cycle2 │ ├── README.md │ ├── jquery.cycle2.caption2.min.js │ ├── jquery.cycle2.carousel.min.js │ ├── jquery.cycle2.center.min.js │ ├── jquery.cycle2.ie-fade.min.js │ ├── jquery.cycle2.js │ ├── jquery.cycle2.min.js │ ├── jquery.cycle2.scrollVert.min.js │ ├── jquery.cycle2.shuffle.min.js │ ├── jquery.cycle2.swipe.min.js │ ├── jquery.cycle2.tile.min.js │ └── jquery.cycle2.video.min.js ├── fitvids.js │ ├── README.md │ ├── jquery.fitvids.js │ └── jquery.fitvids.min.js ├── oenology.fitvids.js ├── oenology.tinynav.js ├── respond.js │ ├── README.md │ ├── respond.min.js │ └── respond.src.js └── tinynav.js │ ├── README.md │ ├── tinynav.js │ └── tinynav.min.js ├── languages ├── en_US.mo └── en_US.po ├── page.php ├── readme.txt ├── screenshot.png ├── sidebar-left.php ├── sidebar-navigation.php ├── sidebar-page.php ├── sidebar-right.php ├── sidebar.php ├── single.php ├── style.css ├── template-parts ├── infobar.php ├── loop-footer.php ├── loop-header.php ├── loop.php ├── post-aside.php ├── post-audio.php ├── post-chat.php ├── post-entry-image.php ├── post-entry.php ├── post-footer.php ├── post-gallery.php ├── post-header.php ├── post-image.php ├── post-link.php ├── post-quote.php ├── post-status.php ├── post-video.php ├── post.php ├── site-header.php └── site-navigation.php ├── templates └── template-featured.php ├── tha └── tha-theme-hooks.php └── varietals ├── chardonnay.css ├── chardonnay.png ├── cuvee.css ├── cuvee.png ├── dark.css ├── fonts.css ├── light.css ├── malbec.css ├── malbec.png ├── muscat.css ├── muscat.png ├── pinot-noir.css ├── pinot-noir.png ├── seyval-blanc.css ├── seyval-blanc.png ├── solarized-dark.css ├── solarized-dark.png ├── solarized-light.css ├── solarized-light.png ├── syrah.css ├── syrah.png ├── zinfandel.css └── zinfandel.png /404.php: -------------------------------------------------------------------------------- 1 | 22 | 23 | 38 | 39 | 40 | 52 |
53 | 54 |
> 57 | 58 |
59 |

Don't Panic

60 |
61 | 62 |
63 | 71 |
72 | 73 |
74 | 75 |
76 | 77 | 78 | 93 | 94 | -------------------------------------------------------------------------------- /archive-forum.php: -------------------------------------------------------------------------------- 1 | 29 | 30 | 45 | 46 | 47 | 59 |
60 | 61 | 62 | 63 | 64 | 65 |
66 |

67 |
68 | 69 | 70 | 71 |
72 |
73 | 74 | 75 | 76 |
77 | 78 | 79 | -------------------------------------------------------------------------------- /bbpress/content-archive-forum.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | -------------------------------------------------------------------------------- /bbpress/content-archive-topic.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | -------------------------------------------------------------------------------- /bbpress/content-single-forum.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 |
48 | -------------------------------------------------------------------------------- /bbpress/content-single-topic-lead.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /bbpress/content-single-topic.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 |
42 | -------------------------------------------------------------------------------- /bbpress/content-single-view.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | -------------------------------------------------------------------------------- /bbpress/loop-replies.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /bbpress/loop-single-forum.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 62 | -------------------------------------------------------------------------------- /bbpress/loop-single-reply.php: -------------------------------------------------------------------------------- 1 | 10 | 11 |
12 | 13 |
14 | 15 | 'name' ) ); ?> 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | # 27 | 28 |
29 | 30 |
31 | 32 |
> 33 | 34 |
35 | 36 | 37 | 38 | 'avatar', 'sep' => '
', 'show_role' => true ) ); ?> 39 | 40 | 41 | 42 | 43 | 44 |
45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
53 | 54 |
55 | 56 | 61 | 62 |
63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 |
71 | 72 |
73 | 74 | 83 | 84 |
85 | -------------------------------------------------------------------------------- /bbpress/loop-single-topic.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 129 | -------------------------------------------------------------------------------- /bbpress/loop-topics.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /bbpress/oenology-bbpress-functions.php: -------------------------------------------------------------------------------- 1 | ' . bbp_get_topic_tag_list() . ''; 69 | } 70 | return $post_header_taxonomies; 71 | } 72 | add_filter( 'oenology_hook_post_header_taxonomies', 'oenology_post_header_bbpress_taxonomy' ); 73 | 74 | /** 75 | * Add bbPress user actions to post header title 76 | * 77 | * @param array $post_header_title Post header title. 78 | */ 79 | function oenology_post_header_bbpress_user_actions( $post_header_title ) { 80 | $post_header_title_actions = ''; 81 | if ( function_exists( 'is_bbpress' ) && bbp_is_single_topic() ) { 82 | // bbPress User Actions. 83 | $post_header_title_actions = bbp_get_user_favorites_link( 84 | array( 'pre' => '', 'mid' => '', 'post' => '' ), 85 | array( 'pre' => '', 'mid' => '', 'post' => '' ) 86 | ); 87 | $post_header_title_actions .= bbp_get_user_subscribe_link( array( 88 | 'subscribe' => '', 89 | 'unsubscribe' => '', 90 | 'before' => '' 91 | ) ); 92 | } 93 | return $post_header_title_actions . $post_header_title; 94 | } 95 | add_filter( 'oenology_hook_post_header_title', 'oenology_post_header_bbpress_user_actions' ); 96 | 97 | /** 98 | * Filter breadcrumb for bbPress Topics 99 | * 100 | * @param obj $breadcrumb breadcrumb. 101 | * @param string $containerBefore HTML before container. 102 | * @param string $containerAfter HTML after container. 103 | * @param string $containerCrumb HTML crumb container. 104 | * @param string $containerCrumbEnd HTML crumb container end. 105 | * @param string $delimiter crumb delimiter. 106 | * @param string $name home text. 107 | * @param string $blogname blog name. 108 | * @param string $currentBefore HTML before current location. 109 | * @param string $currentAfter HTML after current location. 110 | */ 111 | function oenology_bbpress_breadcrumb( $breadcrumb, $containerBefore, $containerAfter, $containerCrumb, $containerCrumbEnd, $delimiter, $name, $blogname, $currentBefore, $currentAfter ) { 112 | if ( is_bbpress() ) { 113 | $breadcrumb = bbp_get_breadcrumb( array( 114 | 'before' => $containerBefore . $containerCrumb, 115 | 'after' => $containerCrumbEnd . $containerAfter, 116 | 'sep' => $delimiter, 117 | 'home_text' => $name, 118 | 'current_before' => $currentBefore, 119 | 'current_after' => $currentAfter 120 | )); 121 | } 122 | return $breadcrumb; 123 | } 124 | add_filter( 'oenology_breadcrumb', 'oenology_bbpress_breadcrumb', 10, 10 ); 125 | 126 | /** 127 | * Filter page layout for bbPress 128 | * 129 | * @param string $layout layout type. 130 | */ 131 | function oenology_bbpress_page_layout( $layout ) { 132 | if ( ( function_exists( 'is_bbpress' ) && is_bbpress() ) ) { 133 | return 'full'; 134 | } else { 135 | return $layout; 136 | } 137 | } 138 | add_filter( 'oenology_get_current_page_layout', 'oenology_bbpress_page_layout' ); -------------------------------------------------------------------------------- /bbpress/user-details.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 |
14 | 15 |
16 | 62 |
63 |
64 | 65 | 66 | -------------------------------------------------------------------------------- /bbpress/user-favorites.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 |
14 |

15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |

24 | 25 | 26 | 27 |
28 |
29 | 30 | 31 | -------------------------------------------------------------------------------- /bbpress/user-profile.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 |
14 | 15 |

16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 |
28 | 29 | 30 | 31 |

32 | 33 | 34 | 35 |

36 |

37 |

38 | 39 |
40 | 41 |
42 | 43 | 44 | -------------------------------------------------------------------------------- /bbpress/user-replies-created.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 |
14 |

15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |

24 | 25 | 26 | 27 |
28 |
29 | 30 | 31 | -------------------------------------------------------------------------------- /bbpress/user-subscriptions.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 |

19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 |

28 | 29 | 30 | 31 |
32 |
33 | 34 | 35 | 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /bbpress/user-topics-created.php: -------------------------------------------------------------------------------- 1 | 10 | 11 | 12 | 13 |
14 |

15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |

24 | 25 | 26 | 27 |
28 |
29 | 30 | 31 | -------------------------------------------------------------------------------- /comments.php: -------------------------------------------------------------------------------- 1 | 26 | 27 | 28 |
29 | 30 | 31 | 32 | 38 |

Feedback

39 | 43 |

Comments (Comments are closed)

44 | 45 | 46 | to “ 47 | 48 | 1 && get_option( 'page_comments' ) ) { 51 | ?> 52 | 55 | '0' ) { 59 | ?> 60 |
    61 | 62 |
63 | 1 && get_option( 'page_comments' ) ) { 68 | ?> 69 | 72 | 80 |

Trackbacks

81 |
    82 | 'pings', 'callback' => 'oenology_comment_list_pings' ) ); ?> 83 |
84 | 95 | 96 |
97 | -------------------------------------------------------------------------------- /css/ie.css: -------------------------------------------------------------------------------- 1 | #home #main div.post div.post-title h1, 2 | #main div.post div.post-title h2, 3 | #main div.post div.post-title h3 { 4 | position:relative; 5 | top:-16px; 6 | } 7 | 8 | #home #main div.post div.post-title span.post-title-metadata { 9 | position:relative; 10 | top:-16px; 11 | } 12 | 13 | #home #main div.post div.post-title span.post-title-category { 14 | margin-top:-16px; 15 | } 16 | 17 | #extent #main div.post div.post-entry p span.caption { 18 | display:block; 19 | position:relative; 20 | top:10px; 21 | } -------------------------------------------------------------------------------- /fonts/GUST-FONT-LICENSE.txt: -------------------------------------------------------------------------------- 1 | % This is version 1.0, dated 22 June 2009, of the GUST Font License. 2 | % (GUST is the Polish TeX Users Group, http://www.gust.org.pl) 3 | % 4 | % For the most recent version of this license see 5 | % http://www.gust.org.pl/fonts/licenses/GUST-FONT-LICENSE.txt 6 | % or 7 | % http://tug.org/fonts/licenses/GUST-FONT-LICENSE.txt 8 | % 9 | % This work may be distributed and/or modified under the conditions 10 | % of the LaTeX Project Public License, either version 1.3c of this 11 | % license or (at your option) any later version. 12 | % 13 | % Please also observe the following clause: 14 | % 1) it is requested, but not legally required, that derived works be 15 | % distributed only after changing the names of the fonts comprising this 16 | % work and given in an accompanying "manifest", and that the 17 | % files comprising the Work, as listed in the manifest, also be given 18 | % new names. Any exceptions to this request are also given in the 19 | % manifest. 20 | % 21 | % We recommend the manifest be given in a separate file named 22 | % MANIFEST-.txt, where is some unique identification 23 | % of the font family. If a separate "readme" file accompanies the Work, 24 | % we recommend a name of the form README-.txt. 25 | % 26 | % The latest version of the LaTeX Project Public License is in 27 | % http://www.latex-project.org/lppl.txt and version 1.3c or later 28 | % is part of all distributions of LaTeX version 2006/05/20 or later. 29 | 30 | -------------------------------------------------------------------------------- /fonts/Genericons - COPYING.txt: -------------------------------------------------------------------------------- 1 | Genericons is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 2 | 3 | The fonts are distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 4 | 5 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 6 | 7 | As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version. 8 | 9 | This license does not convey any intellectual property rights to third party trademarks that may be included in the icon font; such marks remain subject to all rights and guidelines of use of their owner. -------------------------------------------------------------------------------- /fonts/Genericons-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/Genericons-Regular.otf -------------------------------------------------------------------------------- /fonts/genericons-regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/genericons-regular-webfont.eot -------------------------------------------------------------------------------- /fonts/genericons-regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/genericons-regular-webfont.ttf -------------------------------------------------------------------------------- /fonts/genericons-regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/genericons-regular-webfont.woff -------------------------------------------------------------------------------- /fonts/texgyreschola-bold-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-bold-webfont.eot -------------------------------------------------------------------------------- /fonts/texgyreschola-bold-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-bold-webfont.ttf -------------------------------------------------------------------------------- /fonts/texgyreschola-bold-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-bold-webfont.woff -------------------------------------------------------------------------------- /fonts/texgyreschola-bolditalic-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-bolditalic-webfont.eot -------------------------------------------------------------------------------- /fonts/texgyreschola-bolditalic-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-bolditalic-webfont.ttf -------------------------------------------------------------------------------- /fonts/texgyreschola-bolditalic-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-bolditalic-webfont.woff -------------------------------------------------------------------------------- /fonts/texgyreschola-italic-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-italic-webfont.eot -------------------------------------------------------------------------------- /fonts/texgyreschola-italic-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-italic-webfont.ttf -------------------------------------------------------------------------------- /fonts/texgyreschola-italic-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-italic-webfont.woff -------------------------------------------------------------------------------- /fonts/texgyreschola-regular-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-regular-webfont.eot -------------------------------------------------------------------------------- /fonts/texgyreschola-regular-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-regular-webfont.ttf -------------------------------------------------------------------------------- /fonts/texgyreschola-regular-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/fonts/texgyreschola-regular-webfont.woff -------------------------------------------------------------------------------- /front-page.php: -------------------------------------------------------------------------------- 1 | 23 | 24 | -------------------------------------------------------------------------------- /functions.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /functions/dynamic-css.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /functions/options-customizer.php: -------------------------------------------------------------------------------- 1 | add_panel( 48 | 'oenology_' . $panel['name'], 49 | array( 50 | 'priority' => 10, 51 | 'capability' => 'edit_theme_options', 52 | 'theme_supports' => '', 53 | 'title' => $panel['title'], 54 | 'description' => $panel['description'], 55 | ) 56 | ); 57 | // Add Sections. 58 | foreach ( $panel['sections'] as $section ) { 59 | // Add $section sections. 60 | $wp_customize->add_section( 61 | 'oenology_' . $section['name'], 62 | array( 63 | 'title' => $section['title'], 64 | 'description' => $section['description'], 65 | 'panel' => 'oenology_' . $panel['name'] 66 | ) 67 | ); 68 | } 69 | } 70 | 71 | // Get the array of option parameters. 72 | $option_parameters = oenology_get_option_parameters(); 73 | 74 | // Add Settings. 75 | foreach ( $option_parameters as $option_parameter ) { 76 | // Add $option_parameter setting. 77 | $wp_customize->add_setting( 78 | 'theme_oenology_options[' . $option_parameter['name'] . ']', 79 | array( 80 | 'default' => $option_parameter['default'], 81 | 'type' => 'option', 82 | 'sanitize_callback' => 'oenology_sanitize_' . $option_parameter['sanitize'] 83 | ) 84 | ); 85 | 86 | // Control parameters array. 87 | $customizer_control_parameters = array( 88 | 'section' => 'oenology_' . $option_parameter['section'], 89 | 'settings' => 'theme_oenology_options['. $option_parameter['name'] . ']', 90 | 'type' => $option_parameter['type'], 91 | 'label' => $option_parameter['title'], 92 | 'description' => $option_parameter['description'], 93 | ); 94 | // Add choices parameter for control types that require it (select, radio, and custom variants). 95 | if ( in_array( $option_parameter['type'], array( 'select', 'radio', 'radio-image' ) ) ) { 96 | // Get valid options. 97 | $choices = array(); 98 | foreach ( $option_parameter['valid_options'] as $valid_option ) { 99 | // Choices are an associative array, as name => title. 100 | if ( in_array( $option_parameter['type'], array( 'select', 'radio' ) ) ) { 101 | $choices[$valid_option['name']] = $valid_option['title']; 102 | } 103 | // Choices are an associative array, as name => image. 104 | else if ( in_array( $option_parameter['type'], array( 'radio-image' ) ) ) { 105 | $choices[$valid_option['name']] = $valid_option['image']; 106 | } 107 | } 108 | $customizer_control_parameters['choices'] = $choices; 109 | } 110 | 111 | // Add $option_parameter controls for built-in control types. 112 | if ( in_array( $option_parameter['type'], array( 'text', 'checkbox', 'radio', 'select', 'dropdown_pages', 'textarea' ) ) ) { 113 | $wp_customize->add_control( 114 | 'theme_oenology_options[' . $option_parameter['name'] . ']', 115 | $customizer_control_parameters 116 | ); 117 | } 118 | // Add $option_parameter control for custom radio-image type. 119 | else if ( 'radio-image' == $option_parameter['type'] ) { 120 | $wp_customize->add_control( 121 | new Oenology_Custom_Radio_Image_Control( 122 | $wp_customize, 123 | 'theme_oenology_options[' . $option_parameter['name'] . ']', 124 | $customizer_control_parameters 125 | ) 126 | ); 127 | } 128 | 129 | } 130 | 131 | } 132 | // Settings API options initilization and validation. 133 | add_action( 'customize_register', 'oenology_register_theme_customizer' ); -------------------------------------------------------------------------------- /functions/options.php: -------------------------------------------------------------------------------- 1 | manager->get_control( $setting->id )->choices; 153 | // If the input is a valid key, return it; otherwise, return the default. 154 | return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); 155 | } -------------------------------------------------------------------------------- /images/headers/pxwhite.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/images/headers/pxwhite.jpg -------------------------------------------------------------------------------- /images/layouts/1c.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/images/layouts/1c.png -------------------------------------------------------------------------------- /images/layouts/2cl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/images/layouts/2cl.png -------------------------------------------------------------------------------- /images/layouts/2cr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/images/layouts/2cr.png -------------------------------------------------------------------------------- /images/layouts/3cl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/images/layouts/3cl.png -------------------------------------------------------------------------------- /images/layouts/3cm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/images/layouts/3cm.png -------------------------------------------------------------------------------- /images/layouts/3cr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/images/layouts/3cr.png -------------------------------------------------------------------------------- /images/pxwhite.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chipbennett/oenology/4191133123d47ccf961c9dd9485aad3c0a5c3895/images/pxwhite.jpg -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 29 | 30 | 45 | 46 | 47 | 59 |
60 | 83 |
84 | 85 | 86 | 89 | 104 | 107 | 108 | -------------------------------------------------------------------------------- /js/cycle2/jquery.cycle2.caption2.min.js: -------------------------------------------------------------------------------- 1 | /*! Plugin for Cycle2; Copyright (c) 2012 M. Alsup; ver: 20130306 */ 2 | (function(a){function b(b,c,d,e,f){if(c.captionPlugin!=="caption2")return;a.each(["caption","overlay"],function(){var a=this+"Fx",b=c[a+"Out"]||"hide",f=d[this+"Template"],g=c.API.getComponent(this),h=c[a+"Sel"],i=c.speed,j;c.sync&&(i=i/2),j=h?g.find(h):g,g.length&&f?(b=="hide"&&(i=0),j[b](i,function(){var k=c.API.tmpl(f,d,c,e);g.html(k),j=h?g.find(h):g,h&&j.hide(),b=c[a+"In"]||"show",j[b](i)})):g.hide()})}function c(b,c,d,e,f){if(c.captionPlugin!=="caption2")return;a.each(["caption","overlay"],function(){var a=d[this+"Template"],b=c.API.getComponent(this);b.length&&a&&b.html(c.API.tmpl(a,d,c,e))})}"use strict",a.extend(a.fn.cycle.defaults,{captionFxOut:"fadeOut",captionFxIn:"fadeIn",captionFxSel:undefined,overlayFxOut:"fadeOut",overlayFxIn:"fadeIn",overlayFxSel:undefined}),a(document).on("cycle-bootstrap",function(a,d){d.container.on("cycle-update-view-before",b),d.container.one("cycle-update-view-after",c)})})(jQuery); -------------------------------------------------------------------------------- /js/cycle2/jquery.cycle2.carousel.min.js: -------------------------------------------------------------------------------- 1 | /* Plugin for Cycle2; Copyright (c) 2012 M. Alsup; v20130411 */ 2 | (function(e){"use strict";e(document).on("cycle-bootstrap",function(e,i,t){"carousel"===i.fx&&(t.getSlideIndex=function(e){var i=this.opts()._carouselWrap.children(),t=i.index(e);return t%i.length},t.next=function(){var e=i.reverse?-1:1;i.allowWrap===!1&&i.currSlide+e>i.slideCount-i.carouselVisible||(i.API.advanceSlide(e),i.API.trigger("cycle-next",[i]).log("cycle-next"))})}),e.fn.cycle.transitions.carousel={preInit:function(i){i.hideNonActive=!1,i.container.on("cycle-destroyed",e.proxy(this.onDestroy,i.API)),i.API.stopTransition=this.stopTransition;for(var t=0;i.startingSlide>t;t++)i.container.append(i.slides[0])},postInit:function(i){var t,n,s,o,l=i.carouselVertical;i.carouselVisible&&i.carouselVisible>i.slideCount&&(i.carouselVisible=i.slideCount-1);var c=i.carouselVisible||i.slides.length,r={display:l?"block":"inline-block",position:"static"};if(i.container.css({position:"relative",overflow:"hidden"}),i.slides.css(r),i._currSlide=i.currSlide,o=e('').prependTo(i.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(i.slides),i._carouselWrap=o,l||o.css("white-space","nowrap"),i.allowWrap!==!1){for(n=0;(void 0===i.carouselVisible?2:1)>n;n++){for(t=0;i.slideCount>t;t++)o.append(i.slides[t].cloneNode(!0));for(t=0;i.slideCount>t;t++)o.prepend(i.slides[t].cloneNode(!0))}o.find(".cycle-slide-active").removeClass("cycle-slide-active"),i.slides.eq(i.startingSlide).addClass("cycle-slide-active")}i.pager&&i.allowWrap===!1&&(s=i.slideCount-c,e(i.pager).children().filter(":gt("+s+")").hide()),i._nextBoundry=i.slideCount-i.carouselVisible,this.prepareDimensions(i)},prepareDimensions:function(i){var t,n,s,o=i.carouselVertical,l=i.carouselVisible||i.slides.length;if(i.carouselFluid&&i.carouselVisible?i._carouselResizeThrottle||this.fluidSlides(i):i.carouselVisible&&i.carouselSlideDimension?(t=l*i.carouselSlideDimension,i.container[o?"height":"width"](t)):i.carouselVisible&&(t=l*e(i.slides[0])[o?"outerHeight":"outerWidth"](!0),i.container[o?"height":"width"](t)),n=i.carouselOffset||0,i.allowWrap!==!1)if(i.carouselSlideDimension)n-=(i.slideCount+i.currSlide)*i.carouselSlideDimension;else{s=i._carouselWrap.children();for(var c=0;i.slideCount+i.currSlide>c;c++)n-=e(s[c])[o?"outerHeight":"outerWidth"](!0)}i._carouselWrap.css(o?"top":"left",n)},fluidSlides:function(i){function t(){clearTimeout(s),s=setTimeout(n,20)}function n(){i._carouselWrap.stop(!1,!0);var e=i.container.width()/i.carouselVisible;e=Math.ceil(e-l),i._carouselWrap.children().width(e),i._sentinel&&i._sentinel.width(e),c(i)}var s,o=i.slides.eq(0),l=o.outerWidth()-o.width(),c=this.prepareDimensions;e(window).on("resize",t),i._carouselResizeThrottle=t,n()},transition:function(i,t,n,s,o){var l,c={},r=i.nextSlide-i.currSlide,a=i.carouselVertical,d=i.speed;if(i.allowWrap===!1){s=r>0;var u=i._currSlide,p=i.slideCount-i.carouselVisible;r>0&&i.nextSlide>p&&u==p?r=0:r>0&&i.nextSlide>p?r=i.nextSlide-u-(i.nextSlide-p):0>r&&i.currSlide>p&&i.nextSlide>p?r=0:0>r&&i.currSlide>p?r+=i.currSlide-p:u=i.currSlide,l=this.getScroll(i,a,u,r),i.API.opts()._currSlide=i.nextSlide>p?p:i.nextSlide}else s&&0===i.nextSlide?(l=this.getDim(i,i.currSlide,a),o=this.genCallback(i,s,a,o)):s||i.nextSlide!=i.slideCount-1?l=this.getScroll(i,a,i.currSlide,r):(l=this.getDim(i,i.currSlide,a),o=this.genCallback(i,s,a,o));c[a?"top":"left"]=s?"-="+l:"+="+l,i.throttleSpeed&&(d=l/e(i.slides[0])[a?"height":"width"]()*i.speed),i._carouselWrap.animate(c,d,i.easing,o)},getDim:function(i,t,n){var s=e(i.slides[t]);return s[n?"outerHeight":"outerWidth"](!0)},getScroll:function(e,i,t,n){var s,o=0;if(n>0)for(s=t;t+n>s;s++)o+=this.getDim(e,s,i);else for(s=t;s>t+n;s--)o+=this.getDim(e,s,i);return o},genCallback:function(i,t,n,s){return function(){var t=e(i.slides[i.nextSlide]).position(),o=0-t[n?"top":"left"]+(i.carouselOffset||0);i._carouselWrap.css(i.carouselVertical?"top":"left",o),s()}},stopTransition:function(){var e=this.opts();e.slides.stop(!1,!0),e._carouselWrap.stop(!1,!0)},onDestroy:function(){var i=this.opts();i._carouselResizeThrottle&&e(window).off("resize",i._carouselResizeThrottle),i.slides.prependTo(i.container),i._carouselWrap.remove()}}})(jQuery); -------------------------------------------------------------------------------- /js/cycle2/jquery.cycle2.center.min.js: -------------------------------------------------------------------------------- 1 | /*! Plugin for Cycle2; Copyright (c) 2012 M. Alsup; ver: 20130324 */ 2 | (function(a){"use strict",a.extend(a.fn.cycle.defaults,{centerHorz:!1,centerVert:!1}),a(document).on("cycle-pre-initialize",function(b,c){function f(){clearTimeout(d),d=setTimeout(i,50)}function g(b,c){clearTimeout(d),clearTimeout(e),a(window).off("resize orientationchange",f)}function h(){c.slides.each(j)}function i(){j.apply(c.container.find(c.slideActiveClass)),clearTimeout(e),e=setTimeout(h,50)}function j(){var b=a(this),d=c.container.width(),e=c.container.height(),f=b.width(),g=b.height();c.centerHorz&&f=0;f--)a(b.slides[f]).css("zIndex",g++);for(f=b.slideCount-1;f>b.nextSlide;f--)a(b.slides[f]).css("zIndex",g++);a(d).css("zIndex",b.maxZ),a(c).css("zIndex",b.maxZ-1)}}}})(jQuery); -------------------------------------------------------------------------------- /js/cycle2/jquery.cycle2.swipe.min.js: -------------------------------------------------------------------------------- 1 | /*! Plugin for Cycle2; Copyright (c) 2012 M. Alsup; ver: 20121120 */ 2 | (function(a){"use strict";var b="ontouchend"in document;a.event.special.swipe=a.event.special.swipe||{scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var b=a(this);b.bind("touchstart",function(c){function g(b){if(!f)return;var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;e={time:(new Date).getTime(),coords:[c.pageX,c.pageY]},Math.abs(f.coords[0]-e.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}var d=c.originalEvent.touches?c.originalEvent.touches[0]:c,e,f={time:(new Date).getTime(),coords:[d.pageX,d.pageY],origin:a(c.target)};b.bind("touchmove",g).one("touchend",function(c){b.unbind("touchmove",g),f&&e&&e.time-f.timea.event.special.swipe.horizontalDistanceThreshold&&Math.abs(f.coords[1]-e.coords[1])e.coords[0]?"swipeleft":"swiperight"),f=e=undefined})})}},a.event.special.swipeleft=a.event.special.swipeleft||{setup:function(){a(this).bind("swipe",a.noop)}},a.event.special.swiperight=a.event.special.swiperight||a.event.special.swipeleft})(jQuery); -------------------------------------------------------------------------------- /js/cycle2/jquery.cycle2.tile.min.js: -------------------------------------------------------------------------------- 1 | /*! Plugin for Cycle2; Copyright (c) 2012 M. Alsup; ver: 20121120 */ 2 | (function(a){"use strict",a.fn.cycle.transitions.tileSlide=a.fn.cycle.transitions.tileBlind={before:function(b,c,d,e){b.API.stackSlides(c,d,e),a(c).show(),b.container.css("overflow","hidden"),b.tileDelay=b.tileDelay||b.fx=="tileSlide"?100:125,b.tileCount=b.tileCount||7,b.tileVertical=b.tileVertical!==!1,b.container.data("cycleTileInitialized")||(b.container.on("cycle-destroyed",a.proxy(this.onDestroy,b.API)),b.container.data("cycleTileInitialized",!0))},transition:function(b,c,d,e,f){function w(a){g.eq(a).animate(s,{duration:b.speed,easing:b.easing,complete:function(){(e?o-1===a:0===a)&&b._tileAniCallback()}}),setTimeout(function(){(e?o-1!==a:0!==a)&&w(e?a+1:a-1)},b.tileDelay)}b.slides.not(c).not(d).hide();var g=a(),h=a(c),i=a(d),j,k,l,m,n,o=b.tileCount,p=b.tileVertical,q=b.container.height(),r=b.container.width();p?(k=Math.floor(r/o),m=r-k*(o-1),l=n=q):(k=m=r,l=Math.floor(q/o),n=q-l*(o-1)),b.container.find(".cycle-tiles-container").remove();var s,t={left:0,top:0,overflow:"hidden",position:"absolute",margin:0,padding:0};p?s=b.fx=="tileSlide"?{top:q}:{width:0}:s=b.fx=="tileSlide"?{left:r}:{height:0};var u=a('
');u.css({zIndex:h.css("z-index"),overflow:"visible",position:"absolute",top:0}),u.insertBefore(d);for(var v=0;v").css(t).css({width:o-1===v?m:k,height:o-1===v?n:l,marginLeft:p?v*k:0,marginTop:p?0:v*l}).append(h.clone().css({position:"relative",maxWidth:"none",width:h.width(),margin:0,padding:0,marginLeft:p?-(v*k):0,marginTop:p?0:-(v*l)})),g=g.add(j);u.append(g),h.hide(),i.show().css("opacity",1),w(e?0:o-1),b._tileAniCallback=function(){i.show(),h.hide(),u.remove(),f()}},stopTransition:function(a){a.container.find("*").stop(!0,!0),a._tileAniCallback&&a._tileAniCallback()},onDestroy:function(a){var b=this.opts();b.container.find(".cycle-tiles-container").remove()}}})(jQuery); -------------------------------------------------------------------------------- /js/cycle2/jquery.cycle2.video.min.js: -------------------------------------------------------------------------------- 1 | /*! Plugin for Cycle2; Copyright (c) 2012 M. Alsup; ver: 20130327 */ 2 | (function(a){function c(){try{this.playVideo()}catch(a){}}function d(){try{this.pauseVideo()}catch(a){}}"use strict";var b='
';a.extend(a.fn.cycle.defaults,{youtubeAllowFullScreen:!0,youtubeAutostart:!1,youtubeAutostop:!0}),a(document).on("cycle-bootstrap",function(e,f){if(!f.youtube)return;f.hideNonActive=!1,f.container.find(f.slides).each(function(c){var d,e=a(this),g=e.attr("href"),h=f.youtubeAllowFullScreen?"true":"false";g+=(/\?/.test(g)?"&":"?")+"enablejsapi=1",f.youtubeAutostart&&f.startingSlide===c&&(g+="&autoplay=1"),d=f.API.tmpl(b,{url:g,allowFullScreen:h}),e.replaceWith(d)}),f.slides=">div",f.youtubeAutostart&&f.container.on("cycle-initialized cycle-after",function(b,d){var e=b.type=="cycle-initialized"?d.currSlide:d.nextSlide;a(d.slides[e]).find("object,embed").each(c)}),f.youtubeAutostop&&f.container.on("cycle-before",function(b,c){a(c.slides[c.currSlide]).find("object,embed").each(d)})})})(jQuery); -------------------------------------------------------------------------------- /js/fitvids.js/README.md: -------------------------------------------------------------------------------- 1 | # Introducing FitVids.js 2 | A lightweight, easy-to-use jQuery plugin for fluid width video embeds. 3 | 4 | FitVids automates [the Intrinsic Ratio Method by Thierry Koblentz](http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/) to achieve fluid width videos in your responsive web design. 5 | 6 | ## How Do I Use It? 7 | Include jQuery 1.7+ and FitVids.js in your layout and target your videos container with `fitVids()`. 8 | 9 | ```html 10 | 11 | 12 | 18 | ``` 19 | 20 | This will wrap each video in a `div.fluid-width-video-wrapper` and apply the necessary CSS. After the initial Javascript call, it's all percentage-based CSS magic. 21 | 22 | ## Currently Supported Players 23 | 24 | 25 | 26 | 27 | 28 | 29 |
YouTubeY
VimeoY
Blip.tvY
ViddlerY
Kickstarter Y
30 | 31 | ## Add Your Own Video Vendor 32 | Have a custom video player? We now have a `customSelector` option where you can add your own specific video vendor selector (_mileage may vary depending on vendor and fluidity of player_): 33 | 34 | ```javascript 35 | $("#thing-with-videos").fitVids({ customSelector: "iframe[src^='http://mycoolvideosite.com'], iframe[src^='http://myviiids.com']"}); 36 | // Selectors are comma separated, just like CSS 37 | ``` 38 | 39 | _Note:_ This will be the quickest way to add your own custom vendor as well as test your player's compatibility with FitVids. 40 | 41 | ## Changelog 42 | * _09.02.11 - v1 - 2.376kb_ 43 | * Added `customSelector` option 44 | * _09.02.11 - v1 - 2.135kb_ 45 | * Initial release 46 | * Vimeo,YouTube, Blip.tv, Viddler, Kickstarter 47 | 48 | ## Credits 49 | @ChrisCoyier, @davatron5000, @TrentWalton, @raygunray 50 | -------------------------------------------------------------------------------- /js/fitvids.js/jquery.fitvids.js: -------------------------------------------------------------------------------- 1 | /*global jQuery */ 2 | /*jshint multistr:true browser:true */ 3 | /*! 4 | * FitVids 1.0 5 | * 6 | * Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com 7 | * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ 8 | * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ 9 | * 10 | * Date: Thu Sept 01 18:00:00 2011 -0500 11 | */ 12 | 13 | (function( $ ){ 14 | 15 | "use strict"; 16 | 17 | $.fn.fitVids = function( options ) { 18 | var settings = { 19 | customSelector: null 20 | }; 21 | 22 | var div = document.createElement('div'), 23 | ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0]; 24 | 25 | div.className = 'fit-vids-style'; 26 | div.innerHTML = '­'; 43 | 44 | ref.parentNode.insertBefore(div,ref); 45 | 46 | if ( options ) { 47 | $.extend( settings, options ); 48 | } 49 | 50 | return this.each(function(){ 51 | var selectors = [ 52 | "iframe[src*='player.vimeo.com']", 53 | "iframe[src*='www.youtube.com']", 54 | "iframe[src*='www.youtube-nocookie.com']", 55 | "iframe[src*='www.kickstarter.com']", 56 | "object", 57 | "embed" 58 | ]; 59 | 60 | if (settings.customSelector) { 61 | selectors.push(settings.customSelector); 62 | } 63 | 64 | var $allVideos = $(this).find(selectors.join(',')); 65 | 66 | $allVideos.each(function(){ 67 | var $this = $(this); 68 | if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } 69 | var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), 70 | width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), 71 | aspectRatio = height / width; 72 | if(!$this.attr('id')){ 73 | var videoID = 'fitvid' + Math.floor(Math.random()*999999); 74 | $this.attr('id', videoID); 75 | } 76 | $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%"); 77 | $this.removeAttr('height').removeAttr('width'); 78 | }); 79 | }); 80 | }; 81 | })( jQuery ); 82 | -------------------------------------------------------------------------------- /js/fitvids.js/jquery.fitvids.min.js: -------------------------------------------------------------------------------- 1 | (function(a){"use strict";a.fn.fitVids=function(b){var c={customSelector:null},d=document.createElement("div"),e=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];return d.className="fit-vids-style",d.innerHTML="­",e.parentNode.insertBefore(d,e),b&&a.extend(c,b),this.each(function(){var b=["iframe[src*='player.vimeo.com']","iframe[src*='www.youtube.com']","iframe[src*='www.youtube-nocookie.com']","iframe[src*='www.kickstarter.com']","object","embed"];c.customSelector&&b.push(c.customSelector);var d=a(this).find(b.join(","));d.each(function(){var b=a(this);if(!("embed"===this.tagName.toLowerCase()&&b.parent("object").length||b.parent(".fluid-width-video-wrapper").length)){var c="object"===this.tagName.toLowerCase()||b.attr("height")&&!isNaN(parseInt(b.attr("height"),10))?parseInt(b.attr("height"),10):b.height(),d=isNaN(parseInt(b.attr("width"),10))?b.width():parseInt(b.attr("width"),10),e=c/d;if(!b.attr("id")){var f="fitvid"+Math.floor(999999*Math.random());b.attr("id",f)}b.wrap('
').parent(".fluid-width-video-wrapper").css("padding-top",100*e+"%"),b.removeAttr("height").removeAttr("width")}})})}})(jQuery); -------------------------------------------------------------------------------- /js/oenology.fitvids.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Oenology fitvids JS implementation 3 | * 4 | * This file includes fitvids.js integration for the Theme. 5 | * 6 | * @package Oenology 7 | * @copyright Copyright (c) 2010, Chip Bennett 8 | * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer) 9 | */ 10 | 11 | jQuery(document).ready(function($){ 12 | // Target your .container, .wrapper, .post, etc. 13 | $(".post-entry").fitVids(); 14 | }); -------------------------------------------------------------------------------- /js/oenology.tinynav.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Oenology tinynav JS implementation 3 | * 4 | * This file includes tinynav.js integration for the Theme. 5 | * 6 | * @package Oenology 7 | * @copyright Copyright (c) 2010, Chip Bennett 8 | * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer) 9 | */ 10 | 11 | jQuery(".nav-header").tinyNav({ 12 | active: 'current_page_item', // Set the "active" class for default menu. 13 | label: '', // String: Sets the