diff --git a/.gitignore b/.gitignore index a165dd4..38fd6bf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ bg/**/* -wp-content/themes/acute/**/* -backup/* +backup/* \ No newline at end of file diff --git a/wp-content/themes/acute/.front-page.php b/wp-content/themes/acute/.front-page.php new file mode 100644 index 0000000..7e4004e --- /dev/null +++ b/wp-content/themes/acute/.front-page.php @@ -0,0 +1,168 @@ + + + + + + +> + + + + + + + + <?php if ( defined('WPSEO_VERSION') ) { wp_title(''); } else { if(is_home() OR is_404() OR is_search() ) { echo bloginfo("name"); echo " | "; echo bloginfo("description"); } else { echo bloginfo("name"); echo " | "; echo get_the_title(); } } ?> + + + + + + + + + + + + + +> + + + + +
+ +
+ + + + + + + +
+ +
+ +
+ +
+ +
+ +

+ + +

+ +
+

+ A project by the United Nations Office for the Coordination of Humanitarian Affairs to make humanitarian data easy to find and use for analysis. +

+ + + + + +
+ +
+ +
+ +
+ +
+ +
+ + + +
+ +
+ +
+ + +
+ + \ No newline at end of file diff --git a/wp-content/themes/acute/404.php b/wp-content/themes/acute/404.php new file mode 100644 index 0000000..43301f2 --- /dev/null +++ b/wp-content/themes/acute/404.php @@ -0,0 +1,21 @@ + + + + +
+ +
+ +
+ +

+ +

+ + + +
+ +
+ + \ No newline at end of file diff --git a/wp-content/themes/acute/archive-portfolio.php b/wp-content/themes/acute/archive-portfolio.php new file mode 100644 index 0000000..bf28b94 --- /dev/null +++ b/wp-content/themes/acute/archive-portfolio.php @@ -0,0 +1,49 @@ + + + + +
+ +
+ +
+ + ID, 'portfolio_category' ); + $term_list = null; + if( is_array($terms) ) { + foreach( $terms as $term ) { + $term_list .= $term->slug; + $term_list .= ' '; + } + } + ?> + +
> + +
+ + + +
+ +
+ + post_excerpt)) { the_excerpt(); } ?> + +
+ + + +
+ +
+ +
+ + \ No newline at end of file diff --git a/wp-content/themes/acute/assets/css/framework.css b/wp-content/themes/acute/assets/css/framework.css new file mode 100644 index 0000000..4699a88 --- /dev/null +++ b/wp-content/themes/acute/assets/css/framework.css @@ -0,0 +1,370 @@ +/*===================================================================*/ +/* +/* THEME FRAMEWORK STYLES +/* +/*===================================================================*/ + +/* BODY */ +* { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } +html { font-size: 62.5%; } + +/* THE GRID */ +.row { width: 100%; max-width: 1100px; margin: 0 auto; } +.row .row { width: auto; max-width: none; min-width: 0; margin: 0 -10px; } +.row.collapse .column, .row.collapse .columns { padding: 0; } +.row .row.collapse { margin: 0; } +.column, .columns { float: left; min-height: 1px; padding: 0 10px; position: relative; } +.column.centered, .columns.centered { float: none; margin: 0 auto; } +[class*="column"] + [class*="column"]:last-child { } +[class*="column"] + [class*="column"].end { float: left; } + +.one, .row .one { width: 8.33333%; } +.two, .row .two { width: 16.66667%; } +.three, .row .three { width: 25%; } +.four, .row .four { width: 33.33333%; } +.five, .row .five { width: 41.66667%; } +.six, .row .six { width: 50%; } +.seven, .row .seven { width: 58.33333%; } +.eight, .row .eight { width: 66.66667%; } +.nine, .row .nine { width: 75%; } +.ten, .row .ten { width: 83.33333%; } +.eleven, .row .eleven { width: 91.66667%; } +.twelve, .row .twelve { width: 100%; } + +.row .offset-by-one { margin-left: 8.33333%; } +.row .offset-by-two { margin-left: 16.66667%; } +.row .offset-by-three { margin-left: 25%; } +.row .offset-by-four { margin-left: 33.33333%; } +.row .offset-by-five { margin-left: 41.66667%; } +.row .offset-by-six { margin-left: 50%; } +.row .offset-by-seven { margin-left: 58.33333%; } +.row .offset-by-eight { margin-left: 66.66667%; } +.row .offset-by-nine { margin-left: 75%; } +.row .offset-by-ten { margin-left: 83.33333%; } + +.push-two { left: 16.66667%; } +.pull-two { right: 16.66667%; } +.push-three { left: 25%; } +.pull-three { right: 25%; } +.push-four { left: 33.33333%; } +.pull-four { right: 33.33333%; } +.push-five { left: 41.66667%; } +.pull-five { right: 41.66667%; } +.push-six { left: 50%; } +.pull-six { right: 50%; } +.push-seven { left: 58.33333%; } +.pull-seven { right: 58.33333%; } +.push-eight { left: 66.66667%; } +.pull-eight { right: 66.66667%; } +.push-nine { left: 75%; } +.pull-nine { right: 75%; } +.push-ten { left: 83.33333%; } +.pull-ten { right: 83.33333%; } + +img, object, embed { max-width: 100%; height: auto; } +object, embed { height: 100%; } +img { -ms-interpolation-mode: bicubic; } + +.row { *zoom: 1; } +.row:before, .row:after { content: ""; display: table; } +.row:after { clear: both; } + + +/* MOBILE GRID / OVERRIDES */ +@media only screen and (max-width: 767px) { +body { + width: 100%; -webkit-text-size-adjust: none; -ms-text-size-adjust: none; min-width: 0; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } + .row { width: auto; min-width: 0; margin-left: 0; margin-right: 0; } + .column, .columns { width: auto !important; float: none; } + .column:last-child, .columns:last-child { float: none; } + [class*="column"] + [class*="column"]:last-child { float: none; } + .column:before, .columns:before, .column:after, .columns:after { content: ""; display: table; } + .column:after, .columns:after { clear: both; } + .offset-by-one, .offset-by-two, .offset-by-three, .offset-by-four, .offset-by-five, .offset-by-six, .offset-by-seven, .offset-by-eight, .offset-by-nine, .offset-by-ten { margin-left: 0 !important; } + .push-two, .push-three, .push-four, .push-five, .push-six, .push-seven, .push-eight, .push-nine, .push-ten { left: auto; } + .pull-two, .pull-three, .pull-four, .pull-five, .pull-six, .pull-seven, .pull-eight, .pull-nine, .pull-ten { right: auto; } + /* Mobile 4-column Grid */ + .row .mobile-one { width: 25% !important; float: left; padding: 0 10px; } + .row .mobile-one:last-child { float: right; } + .row .mobile-one.end { float: left; } + .row.collapse .mobile-one { padding: 0; } + .row .mobile-two { width: 50% !important; float: left; padding: 0 10px; } + .row .mobile-two:last-child { float: right; } + .row .mobile-two.end { float: left; } + .row.collapse .mobile-two { padding: 0; } + .row .mobile-three { width: 75% !important; float: left; padding: 0 10px; } + .row .mobile-three:last-child { float: right; } + .row .mobile-three.end { float: left; } + .row.collapse .mobile-three { padding: 0; } + .row .mobile-four { width: 100% !important; float: left; padding: 0 10px; } + .row .mobile-four:last-child { float: right; } + .row .mobile-four.end { float: left; } + .row.collapse .mobile-four { padding: 0; } + .push-one-mobile { left: 25%; } + .pull-one-mobile { right: 25%; } + .push-two-mobile { left: 50%; } + .pull-two-mobile { right: 50%; } + .push-three-mobile { left: 75%; } + .pull-three-mobile { right: 75%; } +} + + +/* LINKS */ +a { text-decoration: none; line-height: inherit; } +a img {border: none;} +a img {border: none;} +a:focus { outline: none; } +p a, p a:hover { line-height: inherit; font-weight: bold; color: #f65c51; + -webkit-transition: all .1s; + -moz-transition: all .1s; + -ms-transition: all .1s; + -o-transition: all .1s; +} + +/* MISC */ +.left { float: left; } +.right { float: right; } +.text-left { text-align: left; } +.text-right { text-align: right; } +.text-center { text-align: center; } +.hide { display: none; } +.highlight { background: #ffff99; } +figure { margin: 0; } +.align-center, +.aligncenter { + margin-left: auto; + margin-right: auto; + text-align: center; + } + +/* TYPOGRAPHY */ +body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, p, blockquote, th, td { margin: 0; padding: 0; } +h1, h2, h3, h4, h5, h6 { text-rendering: optimizeLegibility; line-height: 1.1; } +hr { border: solid #ddd; border-width: 1px 0 0; clear: both; margin: 22px 0 21px; height: 0; } +em, i { font-style: italic; line-height: inherit; } +strong, b { font-weight: bold; line-height: inherit; } +small { font-size: 60%; line-height: inherit; } +code { font-weight: bold; background: #ffff99; } +ul, ol { line-height: 30px; margin-bottom: 17px; list-style-position: inside; } +ul.square, ul.circle, ul.disc { margin-left: 17px; } +ul.square { list-style-type: square; } +ul.circle { list-style-type: circle; } +ul.disc { list-style-type: disc; } +ul.no-bullet { list-style: none; } +ul.large li { line-height: 21px; } +@media print { +* { background: transparent !important; color: black !important; box-shadow: none !important; text-shadow: none !important; filter: none !important; -ms-filter: none !important; } +a, a:visited { text-decoration: underline; } +a[href]:after { content: " (" attr(href) ")"; } +abbr[title]:after { content: " (" attr(title) ")"; } +.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; } +pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } +thead { display: table-header-group; } +tr, img { page-break-inside: avoid; } +img { max-width: 100% !important; } +@page { margin: 0.5cm; } +p, h2, h3 { orphans: 3; widows: 3; } +h2, h3 { page-break-after: avoid; } +.hide-on-print { display: none !important; } +.print-only { display: block !important; } +} + +/* BASIC WP STUFF */ +.alignleft,img.alignleft { display: inline; float: left;} +.alignright,img.alignright { display: inline; float: right;} +.aligncenter,img.aligncenter {clear: both; display: block; margin-left: auto; margin-right: auto; } +.wp-caption { text-align: center; } +.wp-caption p.wp-caption-text { margin: 0;} +.wp-caption img { border: 0 none; margin: 0; padding: 0; } +.wp-smiley { max-height: 1em; margin:0 !important;} +.gallery dl { margin: 0;} +.hidden { display:none; } + +/* VISABILITY CLASSES */ +.show-for-small, .show-for-medium, .hide-for-large, .show-for-xlarge { display: none !important; } +.hide-for-xlarge, .show-for-large, .hide-for-small, .hide-for-medium { display: block !important; } + +/* LARGE DISPLAY TARGETS */ +@media only screen and (min-width: 1441px) { .hide-for-small, .hide-for-medium, .hide-for-large, .show-for-xlarge { display: block !important; } + .show-for-small, .show-for-medium, .show-for-large, .hide-for-xlarge { display: none !important; } } + +/* MEDIUM DISPLAY TARGETS */ +@media only screen and (max-width: 1279px) and (min-width: 768px) { .hide-for-small, .show-for-medium, .hide-for-large, .hide-for-xlarge { display: block !important; } + .show-for-small, .hide-for-medium, .show-for-large, .show-for-xlarge { display: none !important; } } + +/* SMALL DISPLAY TARGETS */ +@media only screen and (max-width: 767px) { .show-for-small, .hide-for-medium, .hide-for-large, .hide-for-xlarge { display: block !important; } + .hide-for-small, .show-for-medium, .show-for-large, .show-for-xlarge { display: none !important; } } + +/* ORIENTATION TARGETS */ +.show-for-landscape, .hide-for-portrait { display: block !important; } +.hide-for-landscape, .show-for-portrait { display: none !important; } +@media screen and (orientation: landscape) { .show-for-landscape, .hide-for-portrait { display: block !important; } + .hide-for-landscape, .show-for-portrait { display: none !important; } } +@media screen and (orientation: portrait) { .show-for-portrait, .hide-for-landscape { display: block !important; } + .hide-for-portrait, .show-for-landscape { display: none !important; } } + +/* TOUCH */ +.show-for-touch { display: none !important; } +.hide-for-touch { display: block !important; } +.touch .show-for-touch { display: block !important; } +.touch .hide-for-touch { display: none !important; } + +/* OVERRIDES */ +table.show-for-xlarge, table.show-for-large, table.hide-for-small, table.hide-for-medium { display: table !important; } +@media only screen and (max-width: 1279px) and (min-width: 768px) { .touch table.hide-for-xlarge, .touch table.hide-for-large, .touch table.hide-for-small, .touch table.show-for-medium { display: table !important; } } +@media only screen and (max-width: 767px) { table.hide-for-xlarge, table.hide-for-large, table.hide-for-medium, table.show-for-small { display: table !important; } } + + +/* VIDEO */ +.flex-video { position: relative; padding-top: 25px; padding-bottom: 67.5%; height: 0; margin-bottom: 16px; overflow: hidden; } +.flex-video.widescreen { padding-bottom: 57.25%; } +.flex-video.vimeo { padding-top: 0; } +.flex-video iframe, .flex-video object, .flex-video embed, .flex-video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } +@media only screen and (max-device-width: 800px), only screen and (device-width: 1024px) and (device-height: 600px), only screen and (width: 1280px) and (orientation: landscape), only screen and (device-width: 800px), only screen and (max-width: 767px) { .flex-video { padding-top: 0; } } + + +/* TABLES */ +table { background: #fff; -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; margin: 0 0 18px; border: 1px solid #ddd; width: 100%;} +.wp-editor-container table { background-color: transparent; } +table thead, table tfoot { background: #f5f5f5; } +table thead tr th, table tfoot tr th, table tbody tr td, table tr td, table tfoot tr td { font-size: 12px; font-size: 1.2rem; line-height: 18px; text-align: left; } +table tbody tr th, table thead tr th, table tfoot tr td { padding: 8px 10px 9px; font-size: 14px; font-size: 1.4rem; font-weight: bold; color: #222; } +table thead tr th:first-child, table tfoot tr td:first-child { border-left: none; } +table thead tr th:last-child, table tfoot tr td:last-child { border-right: none; } +table tbody tr.even, table tbody tr.alt { background: #f9f9f9; } +table tbody tr:nth-child(even) { background: #f9f9f9; } +table tbody tr td { color: #333; padding: 9px 10px; vertical-align: top; border: none; } + + +/* MICROFORMATS */ +ul.vcard { display: inline-block; margin: 0 0 12px 0; border: 1px solid #ddd; padding: 10px; } +ul.vcard li { margin: 0; display: block; } +ul.vcard li.fn { font-weight: bold; font-size: 15px; font-size: 1.5rem; } +p.vevent span.summary { font-weight: bold; } +p.vevent abbr { cursor: default; text-decoration: none; font-weight: bold; border: none; padding: 0 1px; } + + +/* FORMS */ +form { margin: 0 0 19.416px; } +.row form .row { } +.row form .row .column, .row form .row .columns { } +.row form .row.collapse { margin: 0; } +.row form .row.collapse .column, .row form .row.collapse .columns { padding: 0; } +label { font-size: 14px; cursor: pointer; display: block; margin-bottom: 3px; } +label.right { float: none; text-align: right; } +label.inline { line-height: 32px; margin: 0 0 12px 0; } + +@media only screen and (max-width: 767px) { label.right { text-align: left; } } +.prefix, .postfix { display: block; position: relative; z-index: 2; text-align: center; width: 100%; padding-top: 0; padding-bottom: 0; height: 32px; line-height: 31px; } + +a.button.prefix, a.button.postfix { padding-left: 0; padding-right: 0; text-align: center; } +span.prefix, span.postfix { background: #f2f2f2; border: 1px solid #cccccc; } +.prefix { left: 2px; -moz-border-radius-topleft: 2px; -webkit-border-top-left-radius: 2px; border-top-left-radius: 2px; -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; border-bottom-left-radius: 2px; } +.postfix { right: 2px; -moz-border-radius-topright: 2px; -webkit-border-top-right-radius: 2px; border-top-right-radius: 2px; -moz-border-radius-bottomright: 2px; -webkit-border-bottom-right-radius: 2px; border-bottom-right-radius: 2px; } + +input[type="text"], input[type="password"], input[type="date"], input[type="datetime"], input[type="email"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], textarea { display: block; padding-left: 13px; width: 100%; } + +input[type="text"].oversize, input[type="password"].oversize, input[type="date"].oversize, input[type="datetime"].oversize, input[type="email"].oversize, input[type="number"].oversize, input[type="search"].oversize, input[type="tel"].oversize, input[type="time"].oversize, input[type="url"].oversize, textarea.oversize { font-size: 18px !important; font-size: 1.8rem !important; } +input[type="text"]:focus, input[type="password"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="time"]:focus, input[type="url"]:focus, textarea:focus { outline: none !important; border-color: #b3b3b3; } + +input[type="text"][disabled], input[type="password"][disabled], input[type="date"][disabled], input[type="datetime"][disabled], input[type="email"][disabled], input[type="number"][disabled], input[type="search"][disabled], input[type="tel"][disabled], input[type="time"][disabled], input[type="url"][disabled], textarea[disabled] { background-color: #ddd; } +input[type="image"] { width: auto; } + +textarea { height: auto; } + +select { + width: 100%; + border-color: #DFDFDF; + background-color: white; + } + + +/* FIELDSETS */ +fieldset { border: solid 1px #ddd; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; padding: 12px 12px 0; margin: 18px 0; } +fieldset legend { font-weight: bold; padding: 0 3px; margin: 0 0 0 -3px; } + + +/* ERRORS */ +.error input, input.error { border-color: #c60f13; background-color: rgba(198, 15, 19, 0.1); } + +.error label, label.error { color: #c60f13; } + +.error small, small.error { display: block; padding: 6px 4px; margin-top: -13px; margin-bottom: 12px; background: #c60f13; color: #fff; font-size: 12px; font-size: 1.2rem; font-weight: bold; -moz-border-radius-bottomleft: 2px; -webkit-border-bottom-left-radius: 2px; border-bottom-left-radius: 2px; -moz-border-radius-bottomright: 2px; -webkit-border-bottom-right-radius: 2px; border-bottom-right-radius: 2px; } + +@media only screen and (max-width: 767px) { input[type="text"].one, textarea.one { width: 100% !important; } + input[type="text"].two, textarea.two { width: 100% !important; } + input[type="text"].three, textarea.three { width: 100% !important; } + input[type="text"].four, textarea.four { width: 100% !important; } + input[type="text"].five, textarea.five { width: 100% !important; } + input[type="text"].six, textarea.six { width: 100% !important; } + input[type="text"].seven, textarea.seven { width: 100% !important; } + input[type="text"].eight, textarea.eight { width: 100% !important; } + input[type="text"].nine, textarea.nine { width: 100% !important; } + input[type="text"].ten, textarea.ten { width: 100% !important; } + input[type="text"].eleven, textarea.eleven { width: 100% !important; } + input[type="text"].twelve, textarea.twelve { width: 100% !important; } } + +/* CLEARFIX */ +.clearfix:after { + visibility: hidden; + display: block; + font-size: 0; + content: " "; + clear: both; + height: 0; + } +* html .clearfix { zoom: 1; } /* IE6 */ +*:first-child+html .clearfix { zoom: 1; } /* IE7 */ + + +/* AUTOHEIGHT TEXT AREAS */ +.flex-text-wrap { + position: relative; + *zoom: 1; + } + +textarea, +.flex-text-wrap { + outline: 0; + margin: 0; + border: none; + padding: 0; + *padding-bottom: 0 !important; + } + +.flex-text-wrap textarea, +.flex-text-wrap pre { + white-space: pre-wrap; + width: 100%; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + *white-space: pre; + *word-wrap: break-word; + margin: 0px!important; + } + +.flex-text-wrap textarea { + overflow: hidden; + position: absolute; + top: 0; + left: 0; + resize: none; + *height: 94%; + *width: 94%; + min-height: 228px!important; + padding: 10px 16px; + font-size: 15px; + line-height: 24px; + } + +.flex-text-wrap pre { + display: block; + visibility: hidden; + } + +textarea, +.flex-text-wrap pre { + min-height: 223px; + } \ No newline at end of file diff --git a/wp-content/themes/acute/assets/css/mobile.css b/wp-content/themes/acute/assets/css/mobile.css new file mode 100644 index 0000000..db00383 --- /dev/null +++ b/wp-content/themes/acute/assets/css/mobile.css @@ -0,0 +1,676 @@ +/*===================================================================*/ +/* +/* THEME MOBILE STYLES +/* +/*===================================================================*/ + +/*=================================*/ +/* GENERAL RESPONSIVE +/*=================================*/ +@media only screen +and (max-width: 767px) { + + /* BODY */ + #main-container { + padding: 0px 30px; + background-color: #fff; + background-image: none; + width: 100% ; + overflow: hidden; + } + + #main { + margin: 0 0; + padding-top: 0; + max-width: 100%; + } + + .archive #main-container, + .search #main-container, + .blog #main-container { + padding: 0px 0px; + background-color: #fff; + } + + .search section.type-post, + .blog section.type-post { + padding-left: 30px; + padding-right: 30px; + } + + .page-template-page-sidebar-right-php .page-box, + .page-template-page-contact-sidebar-right-php .page-box, + .page-template-page-contact-sidebar-right-php #BeanForm, + .page-template-page-contact-sidebar-left-php .page-box, + .page-template-page-contact-sidebar-left-php #BeanForm { + padding-right: 0px; + } + + /* HEADER / HERO STYLES */ + #logo { + float: none; + text-align: center; + width: 100%; + margin-bottom: 15px; + margin-top: 45px; + } + + #logo_text { + font-size: 40px; + } + + #logo img { + float: none; + } + + #header-title h1 { + text-align: center; + width: 100%; + } + + #header { + padding: 45px 20px 45px; + } + + #header div.six.columns.right { + float: none; + } + + #page-header { + height: auto; + } + + #header .widget_search input[type="text"] { + background-position-x:102%; + width: 100%; + } + + #taglinewrapper { + padding: 0 30px 40px 30px; + } + + /* BLOG STYLES */ + .entry-meta, + h1.entry-title, + .blog .entry-content p, + .search .entry-content p, + .author .entry-content p { + text-align: center; + } + + .entry-meta { + margin-top: 28px; + } + + .entry-header .entry-title { + font-size: 32px; + line-height: 38px; + } + + blockquote p { + line-height: 32px!important; + } + + blockquote { + margin: 45px 0; + text-align: center; + padding: 0 30px; + } + + pre { + margin: 45px 0px; + } + + a.more-link, + .entry-content a.more-link { + width: 100%; + background-image: none!important; + } + + /* SINGLE POSTS */ + section.type-post { + max-width: 100%; + } + + .single-post .entry-meta, + .single-post .entry-header .entry-title { + text-align: left; + } + + .comment-count, + span.edit-link { + display: none; + } + + /* POST FORMATS */ + .flex-control-nav { + float: none; + } + + .flex-control-nav li { + margin-top: 10px; + margin-bottom: 0px; + } + + .flex-control-paging li a { + width: 8px; + height: 8px; + } + + div.jp-current-time, + div.jp-time-sep, + div.jp-duration, + .jp-time-frame { + display: none; + } + + .format-link p, + .format-aside article.entry-content p { text-align: center; } + + .post-slider .flex-direction-nav .prev , + .post-slider .flex-direction-nav .next { + top: 44%; + } + + /* COMMENTS */ + #respond .six { + width: 100%; + } + + #comments { + margin-top: 30px; + } + + #reply-title, + #comments .leave-reply-title h5, + #comments .comments-title h5 { + font-size: 34px; + } + + .comment-content p { + font-size: 17px; + line-height: 30px; + } + + .children { + list-style-type: none; + margin: 65px 0 0 0px; + } + + .children .depth-3, + .children .depth-4 { + margin-left: 0px; + width: 100%; + } + + #commentform #submit, + #commentform input[type="text"], + #commentform input[type="password"], + #commentform input[type="date"], + #commentform input[type="datetime"], + #commentform input[type="email"], + #commentform input[type="number"], + #commentform input[type="search"], + #commentform input[type="tel"], + #commentform input[type="time"], + #commentform input[type="url"] { + width: 100%; + } + + /* FOOTER STYLES */ + #footer { + padding: 30px 20px 25px 20px; + } + + .footer-extra { + text-align: center; + padding: 0 30px 35px; + } + + .footer-extra div.four.columns { + margin-top: 70px; + } + + #footer .bean-social-counter, + #footer .bean-social-counter ul, + #footer .social-links li { + float: none; + text-align: center; + } + + #footer .bean-social-counter { + margin-top: 20px; + } + + #footer a.counter-icon { + float: none; + margin-bottom: -7px; + } + + #footer .social-links li { + margin: 0px; + } + + .social-foot { + float: none; + margin: 0 auto; + width: 100%; + padding-top: 20px; + border-top: 1px solid #242427; + } + + .social-foot li { + float: none; + } + + a.social-icon:hover { + margin-top: 0px; + } + + .colophon { + text-align: center; + } + + #toTop { + display: none!important; + } + + #sidebar { display: none; } + + .tag-index { + width: 105.5%%; + margin-top: 20px; + } + + /* INPUT & SUBMIT BUTTONS */ + ul.contactform .button[type="submit"] { + width: 100%; + } + ul.contactform .submit.right { + float: none; + } + + /* PORTFOLIO SPECIFC */ + .isotope-item { + width: 324px; + } +} + +/* PORTFOLIO CUT */ +@media only screen +and (max-width: 650px) { + #isotope-container { + width: 331px; + margin: 0 auto; +} + + .isotope-item { + width: 325px; + margin-left: 3px; + +} +} + + +/*=================================*/ +/* SMALLER SCREENS +/*=================================*/ +@media only screen +and (max-width: 460px) { + a.author-social-icon.dribbble, + a.author-social-icon.facebook, + a.author-social-icon.instagram, + a.author-social-icon.google_plus, + a.author-social-icon.email { + display: none; + } + + .format-quote p, + .entry-meta { + font-size: 14px; + } + + .post-slider .flex-direction-nav .prev, + .post-slider .flex-direction-nav .next { + top: 40%; + } + + .post-slider .flex-direction-nav .prev { + left: 10px; + } + + .post-slider .flex-direction-nav .next { + right: 10px; + } + + a.jp-mute span, + div.jp-volume-bar, + .jp-time-frame { + display: none!important; + } + + .meta-label, + span.meta-category, + .about-author .avatar, + span.meta-author { + display: none; + } + + .author-right { + margin: 0px; + } + +} + + +/*=================================*/ +/* IPAD/TABLET DEVICES (GENERAL) +/*=================================*/ +@media only screen +and (min-device-width : 768px) +and (max-device-width : 1024px) { + body { -webkit-text-size-adjust: none; } + + #toTop { display: none!important; } + + .image-frame img, + .attachment .post-box img, + .entry-content-media img, + .post-thumb img { width: 100%; } + +} + + +/*=================================*/ +/* IPAD/TABLET DEVICES (PORTRAIT) +/*=================================*/ +@media only screen +and (min-device-width : 768px) +and (max-device-width : 1024px) +and (orientation : portrait){ + #top > .row { + max-width: 100%; + overflow: hidden; + } + .isotope-item { + width: 47.5%; + } +} + + +/*=================================*/ +/* IPHONE/SMARTPHONE (GENERAL) +/*=================================*/ +@media only screen +and (max-device-width: 320px) +and (max-device-width : 480px) { +} + + +/*=================================*/ +/* IPHONE/SMARTPHONE (PORTRAIT) +/*=================================*/ +@media only screen +and (max-width : 320px) +and (orientation : portrait) { + #main-container { + padding-left: 15px; + padding-right: 15px; + background-color: #fff; + } + + #logo_text { + font-weight: bold; + font-size: 30px; + } + + .format-link span.link-icon { + display: block; + margin: 0 auto; + margin-top: 10px; + } + + .isotope-item { + width: 80%; + } +} + + +/*=================================*/ +/* RESPONSIVE NAVIGATION +/*=================================*/ +nav#mobile-nav { + display: none!important; +} + +a.meanmenu-reveal { + display: none; +} + +.mean-container .mean-bar { + float: left; + width: 100%; + position: relative; + background: #1A1A1D; + border-bottom: none; + min-height: 50px; + z-index: 999999; +} + +.mean-container a.meanmenu-reveal { + width: 100%; + height: 50px; + position: absolute; + top: 0; + right: 0; + cursor: pointer; + display: block; +} + +.mean-container a.meanmenu-reveal span { + display: block; + background: url(../images/mobile-nav.png) no-repeat; + height: 16px; + width: 39px; + position: absolute; + right: 25px; + top: 18px; +} + +.mean-container .mean-nav { + float: left; + width: 100%; + background: #0F0F11; + margin-top: 50px; +} + +.mean-container .mean-nav ul { + padding: 0; + margin: 0; + overflow: hidden; + width: 100%; + list-style-type: none; +} + +.mean-container .mean-nav ul li { + position: relative; + float: left; + width: 100%; +} + +.mean-container .mean-nav ul li a { + display: block; + float: left; + width: 90%; + padding: .4em 40px; + margin: 0; + text-align: left; + color: #A7AAB1; +} + +.mean-container .mean-nav ul li a:hover { + background: #1A1A1D; + color: #FFF; +} + +.mean-container .mean-nav ul li.mean-last a { + border-bottom: none; + margin-bottom: 0; +} + +.mean-container .mean-nav ul li li a { + width: 80%; + padding: .4em 10%; + visibility: visible; +} + +.mean-container .mean-nav ul li li li a { + width: 70%; + padding: .4em 15%; +} + +.mean-container .mean-nav ul li li li li a { + width: 60%; + padding: .4em 20%; +} + +.mean-container .mean-nav ul li li li li li a { + width: 50%; + padding: .4em 25%; +} + +.mean-container .mean-nav ul li a.mean-expand { + background: url(../images/mobile-expand.png) no-repeat 50% 50% #1A1A1D; + width: 44px; + height: 43px; + padding: 0px !important; + position: absolute; + right: 0px; + top: 0; + z-index: 2; + +} + +.mean-container .mean-nav ul li a.mean-expand:hover { + background-color: #232326; +} + +.mean-container .mean-push { + clear: both; + float: left; + margin: 0; + padding: 0; + width: 100%; +} + +.mean-nav .wrapper { + margin: 0; + padding: 0; + width: 100%; +} + +.mean-container .mean-bar, .mean-container .mean-bar * { + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} + +.mean-remove { + display: none !important; +} + + +/*=================================*/ +/* RETINA CSS +/*=================================*/ +@media all and (-webkit-min-device-pixel-ratio: 1.5), +(min-resolution: 192dpi) { + #toTop, + .post-icon, + a.more-link, + .entry-content a.more-link, + .format-link span.link-icon, + .post-slider .flex-direction-nav .prev, + .post-slider .flex-direction-nav .next, + .pagination-arrows span.page-previous, + .pagination-arrows span.page-next, + .index-pager span.page-previous, + .index-pager span.page-next, + #bean_announcement .close-btn, + .widget_search input[type="text"] { + background-image: url(../images/retina/sprite@2x.png); + background-size: 41px 400px; + } + + .author-url, + #comments input#url, + #comments input#email, + #comments input#author, + input.email-newsletter, + #panel .widget_search input[type="text"] { + background-image: url(../images/retina/form-sprite@2x.png); + background-size: 17px 496px; + } + + a.jp-play span, + a.jp-pause span, + a.jp-stop span, + a.jp-mute span, + a.jp-unmute span, + a.jp-full-screen span, + a.jp-restore-screen span { + background-image:url(../images/retina/jp_sprite@2x.png); + background-size: 32px 259px; + } + + a.social-icon, + a.counter-icon { + background-image: url(../images/retina/social@2x.png); + background-size: 250px 64px; + } + + .author-social-icon { + background-image: url(../images/retina/author-sprite@2x.png); + background-size: 192px 64px; + } + + .widget_bean_tweets li { + background-image: url(../images/retina/twitter-li@2x.png) ; + background-size: 16px 16px; + } + + .bean-social-profiles ul li a { + background-image:url(../images/retina/social-bar@2x.png); + background-size: 805px 70px; + background-repeat: no-repeat; + } + + .mean-container a.meanmenu-reveal span { + background-image: url(../images/retina/mobile-nav@2x.png); + background-size: 24px 16px; + } + .mean-container .mean-nav ul li a.mean-expand { + background-image: url(../images/retina/mobile-expand@2x.png); + background-size: 10px 10px; + } + #panel .widget_bean_tweets li, + #footer .widget_bean_tweets li { + background-image: url(../images/retina/panel-twitter-li@2x.png) ; + background-size: 16px 16px; + } + + #panel .dribbble-overlay { + background-image: url(../images/retina/dribbble-overlay@2x.png); + background-size: 115px 86px; + } + + #panel .flickr-overlay { + background-image: url(../images/retina/flickr-overlay@2x.png); + background-size: 56px 56px; + } + + #panel .toggle-icon { + background-image: url(../images/retina/toggle@2x.png); + background-size: 16px 16px; + } +} \ No newline at end of file diff --git a/wp-content/themes/acute/assets/fonts/FontAwesome.otf b/wp-content/themes/acute/assets/fonts/FontAwesome.otf new file mode 100644 index 0000000..8b0f54e Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/FontAwesome.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-Black.otf b/wp-content/themes/acute/assets/fonts/Gotham-Black.otf new file mode 100644 index 0000000..e5d98e7 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-Black.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-BlackItalic.otf b/wp-content/themes/acute/assets/fonts/Gotham-BlackItalic.otf new file mode 100644 index 0000000..c6120df Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-BlackItalic.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-Bold.otf b/wp-content/themes/acute/assets/fonts/Gotham-Bold.otf new file mode 100644 index 0000000..558fdf4 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-Bold.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-BoldItalic.otf b/wp-content/themes/acute/assets/fonts/Gotham-BoldItalic.otf new file mode 100644 index 0000000..b20330d Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-BoldItalic.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-Book.otf b/wp-content/themes/acute/assets/fonts/Gotham-Book.otf new file mode 100644 index 0000000..5c8579b Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-Book.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-BookItalic.otf b/wp-content/themes/acute/assets/fonts/Gotham-BookItalic.otf new file mode 100644 index 0000000..894e274 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-BookItalic.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-Light.otf b/wp-content/themes/acute/assets/fonts/Gotham-Light.otf new file mode 100644 index 0000000..587c4b8 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-Light.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-LightItalic.otf b/wp-content/themes/acute/assets/fonts/Gotham-LightItalic.otf new file mode 100644 index 0000000..890e02c Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-LightItalic.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-Medium.otf b/wp-content/themes/acute/assets/fonts/Gotham-Medium.otf new file mode 100644 index 0000000..952d4ef Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-Medium.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-MediumItalic.otf b/wp-content/themes/acute/assets/fonts/Gotham-MediumItalic.otf new file mode 100644 index 0000000..b054d33 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-MediumItalic.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-Thin.otf b/wp-content/themes/acute/assets/fonts/Gotham-Thin.otf new file mode 100644 index 0000000..e3521cb Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-Thin.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-ThinItalic.otf b/wp-content/themes/acute/assets/fonts/Gotham-ThinItalic.otf new file mode 100644 index 0000000..e49d3e4 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-ThinItalic.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-Ultra.otf b/wp-content/themes/acute/assets/fonts/Gotham-Ultra.otf new file mode 100644 index 0000000..48b28c9 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-Ultra.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-UltraItalic.otf b/wp-content/themes/acute/assets/fonts/Gotham-UltraItalic.otf new file mode 100644 index 0000000..fe384f6 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-UltraItalic.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-XLight.otf b/wp-content/themes/acute/assets/fonts/Gotham-XLight.otf new file mode 100644 index 0000000..b72b29e Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-XLight.otf differ diff --git a/wp-content/themes/acute/assets/fonts/Gotham-XLightItalic.otf b/wp-content/themes/acute/assets/fonts/Gotham-XLightItalic.otf new file mode 100644 index 0000000..c514053 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/Gotham-XLightItalic.otf differ diff --git a/wp-content/themes/acute/assets/fonts/backup/FontAwesome.otf b/wp-content/themes/acute/assets/fonts/backup/FontAwesome.otf new file mode 100644 index 0000000..32dd8b1 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/backup/FontAwesome.otf differ diff --git a/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.eot b/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.eot new file mode 100644 index 0000000..747d210 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.eot differ diff --git a/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.svg b/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.svg new file mode 100644 index 0000000..3e6943c --- /dev/null +++ b/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.svg @@ -0,0 +1,371 @@ + + + + +This is a custom SVG font generated by IcoMoon. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.ttf b/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.ttf new file mode 100644 index 0000000..4c3b623 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.ttf differ diff --git a/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.woff b/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.woff new file mode 100644 index 0000000..99afeb6 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/backup/fontawesome-social-webfont.woff differ diff --git a/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.eot b/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.eot new file mode 100644 index 0000000..c080283 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.eot differ diff --git a/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.svg b/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.svg new file mode 100644 index 0000000..10a1e1b --- /dev/null +++ b/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.svg @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.ttf b/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.ttf new file mode 100644 index 0000000..908f69e Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.ttf differ diff --git a/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.woff b/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.woff new file mode 100644 index 0000000..a33af95 Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/backup/fontawesome-webfont.woff differ diff --git a/wp-content/themes/acute/assets/fonts/fontawesome-webfont.eot b/wp-content/themes/acute/assets/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000..7c79c6a Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/fontawesome-webfont.eot differ diff --git a/wp-content/themes/acute/assets/fonts/fontawesome-webfont.svg b/wp-content/themes/acute/assets/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000..45fdf33 --- /dev/null +++ b/wp-content/themes/acute/assets/fonts/fontawesome-webfont.svg @@ -0,0 +1,414 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-content/themes/acute/assets/fonts/fontawesome-webfont.ttf b/wp-content/themes/acute/assets/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000..e89738d Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/fontawesome-webfont.ttf differ diff --git a/wp-content/themes/acute/assets/fonts/fontawesome-webfont.woff b/wp-content/themes/acute/assets/fonts/fontawesome-webfont.woff new file mode 100644 index 0000000..8c1748a Binary files /dev/null and b/wp-content/themes/acute/assets/fonts/fontawesome-webfont.woff differ diff --git a/wp-content/themes/acute/assets/images/announce-bg.png b/wp-content/themes/acute/assets/images/announce-bg.png new file mode 100644 index 0000000..c92678d Binary files /dev/null and b/wp-content/themes/acute/assets/images/announce-bg.png differ diff --git a/wp-content/themes/acute/assets/images/apple-touch-icon.png b/wp-content/themes/acute/assets/images/apple-touch-icon.png new file mode 100644 index 0000000..68c52a0 Binary files /dev/null and b/wp-content/themes/acute/assets/images/apple-touch-icon.png differ diff --git a/wp-content/themes/acute/assets/images/attachment.svg b/wp-content/themes/acute/assets/images/attachment.svg new file mode 100644 index 0000000..8c7c46b --- /dev/null +++ b/wp-content/themes/acute/assets/images/attachment.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/wp-content/themes/acute/assets/images/author-sprite.png b/wp-content/themes/acute/assets/images/author-sprite.png new file mode 100644 index 0000000..5f956d3 Binary files /dev/null and b/wp-content/themes/acute/assets/images/author-sprite.png differ diff --git a/wp-content/themes/acute/assets/images/cc_logo.png b/wp-content/themes/acute/assets/images/cc_logo.png new file mode 100644 index 0000000..7d39fcb Binary files /dev/null and b/wp-content/themes/acute/assets/images/cc_logo.png differ diff --git a/wp-content/themes/acute/assets/images/dap-dev-ribbon-left.png b/wp-content/themes/acute/assets/images/dap-dev-ribbon-left.png new file mode 100644 index 0000000..a7e23b5 Binary files /dev/null and b/wp-content/themes/acute/assets/images/dap-dev-ribbon-left.png differ diff --git a/wp-content/themes/acute/assets/images/dap-dev-ribbon-right.png b/wp-content/themes/acute/assets/images/dap-dev-ribbon-right.png new file mode 100644 index 0000000..22f1dbd Binary files /dev/null and b/wp-content/themes/acute/assets/images/dap-dev-ribbon-right.png differ diff --git a/wp-content/themes/acute/assets/images/diag.png b/wp-content/themes/acute/assets/images/diag.png new file mode 100644 index 0000000..ffc0c6c Binary files /dev/null and b/wp-content/themes/acute/assets/images/diag.png differ diff --git a/wp-content/themes/acute/assets/images/dribbble-overlay.png b/wp-content/themes/acute/assets/images/dribbble-overlay.png new file mode 100644 index 0000000..6cf01d1 Binary files /dev/null and b/wp-content/themes/acute/assets/images/dribbble-overlay.png differ diff --git a/wp-content/themes/acute/assets/images/favicon.png b/wp-content/themes/acute/assets/images/favicon.png new file mode 100644 index 0000000..7413911 Binary files /dev/null and b/wp-content/themes/acute/assets/images/favicon.png differ diff --git a/wp-content/themes/acute/assets/images/flickr-overlay.png b/wp-content/themes/acute/assets/images/flickr-overlay.png new file mode 100644 index 0000000..7836a68 Binary files /dev/null and b/wp-content/themes/acute/assets/images/flickr-overlay.png differ diff --git a/wp-content/themes/acute/assets/images/form-sprite.png b/wp-content/themes/acute/assets/images/form-sprite.png new file mode 100644 index 0000000..09b9998 Binary files /dev/null and b/wp-content/themes/acute/assets/images/form-sprite.png differ diff --git a/wp-content/themes/acute/assets/images/jp_sprite.png b/wp-content/themes/acute/assets/images/jp_sprite.png new file mode 100644 index 0000000..7969a14 Binary files /dev/null and b/wp-content/themes/acute/assets/images/jp_sprite.png differ diff --git a/wp-content/themes/acute/assets/images/login-logo.png b/wp-content/themes/acute/assets/images/login-logo.png new file mode 100644 index 0000000..8f89633 Binary files /dev/null and b/wp-content/themes/acute/assets/images/login-logo.png differ diff --git a/wp-content/themes/acute/assets/images/mobile-expand.png b/wp-content/themes/acute/assets/images/mobile-expand.png new file mode 100644 index 0000000..02cf67d Binary files /dev/null and b/wp-content/themes/acute/assets/images/mobile-expand.png differ diff --git a/wp-content/themes/acute/assets/images/mobile-nav.png b/wp-content/themes/acute/assets/images/mobile-nav.png new file mode 100644 index 0000000..87aeb45 Binary files /dev/null and b/wp-content/themes/acute/assets/images/mobile-nav.png differ diff --git a/wp-content/themes/acute/assets/images/panel-twitter-li.png b/wp-content/themes/acute/assets/images/panel-twitter-li.png new file mode 100644 index 0000000..b33b51f Binary files /dev/null and b/wp-content/themes/acute/assets/images/panel-twitter-li.png differ diff --git a/wp-content/themes/acute/assets/images/retina/author-sprite@2x.png b/wp-content/themes/acute/assets/images/retina/author-sprite@2x.png new file mode 100644 index 0000000..2f1b553 Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/author-sprite@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/dribbble-overlay@2x.png b/wp-content/themes/acute/assets/images/retina/dribbble-overlay@2x.png new file mode 100644 index 0000000..9f8b322 Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/dribbble-overlay@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/flickr-overlay@2x.png b/wp-content/themes/acute/assets/images/retina/flickr-overlay@2x.png new file mode 100644 index 0000000..df3c373 Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/flickr-overlay@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/form-sprite@2x.png b/wp-content/themes/acute/assets/images/retina/form-sprite@2x.png new file mode 100644 index 0000000..0843966 Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/form-sprite@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/jp_sprite@2x.png b/wp-content/themes/acute/assets/images/retina/jp_sprite@2x.png new file mode 100644 index 0000000..44b0a8e Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/jp_sprite@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/mobile-expand@2x.png b/wp-content/themes/acute/assets/images/retina/mobile-expand@2x.png new file mode 100644 index 0000000..64cb013 Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/mobile-expand@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/mobile-nav@2x.png b/wp-content/themes/acute/assets/images/retina/mobile-nav@2x.png new file mode 100644 index 0000000..07c5510 Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/mobile-nav@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/panel-twitter-li@2x.png b/wp-content/themes/acute/assets/images/retina/panel-twitter-li@2x.png new file mode 100644 index 0000000..333c5dc Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/panel-twitter-li@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/social-bar@2x.png b/wp-content/themes/acute/assets/images/retina/social-bar@2x.png new file mode 100644 index 0000000..4ac2bb7 Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/social-bar@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/social@2x.png b/wp-content/themes/acute/assets/images/retina/social@2x.png new file mode 100644 index 0000000..efb3b88 Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/social@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/sprite@2x.png b/wp-content/themes/acute/assets/images/retina/sprite@2x.png new file mode 100644 index 0000000..eb026a6 Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/sprite@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/toggle@2x.png b/wp-content/themes/acute/assets/images/retina/toggle@2x.png new file mode 100644 index 0000000..981d0ed Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/toggle@2x.png differ diff --git a/wp-content/themes/acute/assets/images/retina/twitter-li@2x.png b/wp-content/themes/acute/assets/images/retina/twitter-li@2x.png new file mode 100644 index 0000000..173809e Binary files /dev/null and b/wp-content/themes/acute/assets/images/retina/twitter-li@2x.png differ diff --git a/wp-content/themes/acute/assets/images/social-bar.png b/wp-content/themes/acute/assets/images/social-bar.png new file mode 100644 index 0000000..0b39eac Binary files /dev/null and b/wp-content/themes/acute/assets/images/social-bar.png differ diff --git a/wp-content/themes/acute/assets/images/social.png b/wp-content/themes/acute/assets/images/social.png new file mode 100644 index 0000000..0fe3a3e Binary files /dev/null and b/wp-content/themes/acute/assets/images/social.png differ diff --git a/wp-content/themes/acute/assets/images/sprite.png b/wp-content/themes/acute/assets/images/sprite.png new file mode 100644 index 0000000..3063193 Binary files /dev/null and b/wp-content/themes/acute/assets/images/sprite.png differ diff --git a/wp-content/themes/acute/assets/images/toggle.png b/wp-content/themes/acute/assets/images/toggle.png new file mode 100644 index 0000000..59fad70 Binary files /dev/null and b/wp-content/themes/acute/assets/images/toggle.png differ diff --git a/wp-content/themes/acute/assets/images/twitter-li.png b/wp-content/themes/acute/assets/images/twitter-li.png new file mode 100644 index 0000000..4dd4bdf Binary files /dev/null and b/wp-content/themes/acute/assets/images/twitter-li.png differ diff --git a/wp-content/themes/acute/assets/js/custom-libraries.js b/wp-content/themes/acute/assets/js/custom-libraries.js new file mode 100644 index 0000000..f917489 --- /dev/null +++ b/wp-content/themes/acute/assets/js/custom-libraries.js @@ -0,0 +1,421 @@ + +/*! jQuery UI - v1.8.21 - 2012-06-05 +* https://github.com/jquery/jquery-ui +* Includes: jquery.effects.core.js +* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */ +jQuery.effects||function(a,b){function c(b){var c;return b&&b.constructor==Array&&b.length==3?b:(c=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(b))?[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10)]:(c=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(b))?[parseFloat(c[1])*2.55,parseFloat(c[2])*2.55,parseFloat(c[3])*2.55]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(b))?[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16)]:(c=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(b))?[parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16),parseInt(c[3]+c[3],16)]:(c=/rgba\(0, 0, 0, 0\)/.exec(b))?e.transparent:e[a.trim(b).toLowerCase()]}function d(b,d){var e;do{e=a.curCSS(b,d);if(e!=""&&e!="transparent"||a.nodeName(b,"body"))break;d="backgroundColor"}while(b=b.parentNode);return c(e)}function h(){var a=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,b={},c,d;if(a&&a.length&&a[0]&&a[a[0]]){var e=a.length;while(e--)c=a[e],typeof a[c]=="string"&&(d=c.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),b[d]=a[c])}else for(c in a)typeof a[c]=="string"&&(b[c]=a[c]);return b}function i(b){var c,d;for(c in b)d=b[c],(d==null||a.isFunction(d)||c in g||/scrollbar/.test(c)||!/color/i.test(c)&&isNaN(parseFloat(d)))&&delete b[c];return b}function j(a,b){var c={_:0},d;for(d in b)a[d]!=b[d]&&(c[d]=b[d]);return c}function k(b,c,d,e){typeof b=="object"&&(e=c,d=null,c=b,b=c.effect),a.isFunction(c)&&(e=c,d=null,c={});if(typeof c=="number"||a.fx.speeds[c])e=d,d=c,c={};return a.isFunction(d)&&(e=d,d=null),c=c||{},d=d||c.duration,d=a.fx.off?0:typeof d=="number"?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,e=e||c.complete,[b,c,d,e]}function l(b){return!b||typeof b=="number"||a.fx.speeds[b]?!0:typeof b=="string"&&!a.effects[b]?!0:!1}a.effects={},a.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(b,e){a.fx.step[e]=function(a){a.colorInit||(a.start=d(a.elem,e),a.end=c(a.end),a.colorInit=!0),a.elem.style[e]="rgb("+Math.max(Math.min(parseInt(a.pos*(a.end[0]-a.start[0])+a.start[0],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[1]-a.start[1])+a.start[1],10),255),0)+","+Math.max(Math.min(parseInt(a.pos*(a.end[2]-a.start[2])+a.start[2],10),255),0)+")"}});var e={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]},f=["add","remove","toggle"],g={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.effects.animateClass=function(b,c,d,e){return a.isFunction(d)&&(e=d,d=null),this.queue(function(){var g=a(this),k=g.attr("style")||" ",l=i(h.call(this)),m,n=g.attr("class")||"";a.each(f,function(a,c){b[c]&&g[c+"Class"](b[c])}),m=i(h.call(this)),g.attr("class",n),g.animate(j(l,m),{queue:!1,duration:c,easing:d,complete:function(){a.each(f,function(a,c){b[c]&&g[c+"Class"](b[c])}),typeof g.attr("style")=="object"?(g.attr("style").cssText="",g.attr("style").cssText=k):g.attr("style",k),e&&e.apply(this,arguments),a.dequeue(this)}})})},a.fn.extend({_addClass:a.fn.addClass,addClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{add:b},c,d,e]):this._addClass(b)},_removeClass:a.fn.removeClass,removeClass:function(b,c,d,e){return c?a.effects.animateClass.apply(this,[{remove:b},c,d,e]):this._removeClass(b)},_toggleClass:a.fn.toggleClass,toggleClass:function(c,d,e,f,g){return typeof d=="boolean"||d===b?e?a.effects.animateClass.apply(this,[d?{add:c}:{remove:c},e,f,g]):this._toggleClass(c,d):a.effects.animateClass.apply(this,[{toggle:c},d,e,f])},switchClass:function(b,c,d,e,f){return a.effects.animateClass.apply(this,[{add:c,remove:b},d,e,f])}}),a.extend(a.effects,{version:"1.8.21",save:function(a,b){for(var c=0;c
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e=document.activeElement;try{e.id}catch(f){e=document.body}return b.wrap(d),(b[0]===e||a.contains(b[0],e))&&a(e).focus(),d=b.parent(),b.css("position")=="static"?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),d.css(c).show()},removeWrapper:function(b){var c,d=document.activeElement;return b.parent().is(".ui-effects-wrapper")?(c=b.parent().replaceWith(b),(b[0]===d||a.contains(b[0],d))&&a(d).focus(),c):b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(b,c,d,e){var f=k.apply(this,arguments),g={options:f[1],duration:f[2],callback:f[3]},h=g.options.mode,i=a.effects[b];return a.fx.off||!i?h?this[h](g.duration,g.callback):this.each(function(){g.callback&&g.callback.call(this)}):i.call(this,g)},_show:a.fn.show,show:function(a){if(l(a))return this._show.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="show",this.effect.apply(this,b)},_hide:a.fn.hide,hide:function(a){if(l(a))return this._hide.apply(this,arguments);var b=k.apply(this,arguments);return b[1].mode="hide",this.effect.apply(this,b)},__toggle:a.fn.toggle,toggle:function(b){if(l(b)||typeof b=="boolean"||a.isFunction(b))return this.__toggle.apply(this,arguments);var c=k.apply(this,arguments);return c[1].mode="toggle",this.effect.apply(this,c)},cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}}),a.easing.jswing=a.easing.swing,a.extend(a.easing,{def:"easeOutQuad",swing:function(b,c,d,e,f){return a.easing[a.easing.def](b,c,d,e,f)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return b==0?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return b==0?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(b==0)return c;if((b/=e)==1)return c+d;g||(g=e*.3);if(h').before("


");this.$span=this.$textarea.prev().find("span");this.$textarea.on("input propertychange",function(){c._mirror()});if(b.browser.msie){if(b.browser.version>8){this.$textarea.on("keyup change",function(){c._mirror()})}else{if(b.browser.version<8){b.valHooks.textarea={get:function(d){return d.value.replace(/\r?\n/g,"\r\n")}}}}}this._mirror()},_mirror:function(){this.$span.text(this.$textarea.val())}};b.fn.flexText=function(){return this.each(function(){if(!b.data(this,"flexText")){b.data(this,"flexText",new a(this))}})}})(jQuery); + +/* + * jPlayer Plugin for jQuery JavaScript Library + * http://www.jplayer.org + * + * Copyright (c) 2009 - 2011 Happyworm Ltd + * Dual licensed under the MIT and GPL licenses. + * - http://www.opensource.org/licenses/mit-license.php + * - http://www.gnu.org/copyleft/gpl.html + * + * Author: Mark J Panaghiston + * Version: 2.1.0 + * Date: 1st September 2011 + */ + +(function(b,f){b.fn.jPlayer=function(a){var c=typeof a==="string",d=Array.prototype.slice.call(arguments,1),e=this,a=!c&&d.length?b.extend.apply(null,[!0,a].concat(d)):a;if(c&&a.charAt(0)==="_")return e;c?this.each(function(){var c=b.data(this,"jPlayer"),h=c&&b.isFunction(c[a])?c[a].apply(c,d):c;if(h!==c&&h!==f)return e=h,!1}):this.each(function(){var c=b.data(this,"jPlayer");c?c.option(a||{}):b.data(this,"jPlayer",new b.jPlayer(a,this))});return e};b.jPlayer=function(a,c){if(arguments.length){this.element= +b(c);this.options=b.extend(!0,{},this.options,a);var d=this;this.element.bind("remove.jPlayer",function(){d.destroy()});this._init()}};b.jPlayer.emulateMethods="load play pause";b.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";b.jPlayer.emulateOptions="muted volume";b.jPlayer.reservedEvent="ready flashreset resize repeat error warning";b.jPlayer.event={ready:"jPlayer_ready",flashreset:"jPlayer_flashreset",resize:"jPlayer_resize",repeat:"jPlayer_repeat", +click:"jPlayer_click",error:"jPlayer_error",warning:"jPlayer_warning",loadstart:"jPlayer_loadstart",progress:"jPlayer_progress",suspend:"jPlayer_suspend",abort:"jPlayer_abort",emptied:"jPlayer_emptied",stalled:"jPlayer_stalled",play:"jPlayer_play",pause:"jPlayer_pause",loadedmetadata:"jPlayer_loadedmetadata",loadeddata:"jPlayer_loadeddata",waiting:"jPlayer_waiting",playing:"jPlayer_playing",canplay:"jPlayer_canplay",canplaythrough:"jPlayer_canplaythrough",seeking:"jPlayer_seeking",seeked:"jPlayer_seeked", +timeupdate:"jPlayer_timeupdate",ended:"jPlayer_ended",ratechange:"jPlayer_ratechange",durationchange:"jPlayer_durationchange",volumechange:"jPlayer_volumechange"};b.jPlayer.htmlEvent="loadstart,abort,emptied,stalled,loadedmetadata,loadeddata,canplay,canplaythrough,ratechange".split(",");b.jPlayer.pause=function(){b.each(b.jPlayer.prototype.instances,function(a,b){b.data("jPlayer").status.srcSet&&b.jPlayer("pause")})};b.jPlayer.timeFormat={showHour:!1,showMin:!0,showSec:!0,padHour:!1,padMin:!0,padSec:!0, +sepHour:":",sepMin:":",sepSec:""};b.jPlayer.convertTime=function(a){var c=new Date(a*1E3),d=c.getUTCHours(),a=c.getUTCMinutes(),c=c.getUTCSeconds(),d=b.jPlayer.timeFormat.padHour&&d<10?"0"+d:d,a=b.jPlayer.timeFormat.padMin&&a<10?"0"+a:a,c=b.jPlayer.timeFormat.padSec&&c<10?"0"+c:c;return(b.jPlayer.timeFormat.showHour?d+b.jPlayer.timeFormat.sepHour:"")+(b.jPlayer.timeFormat.showMin?a+b.jPlayer.timeFormat.sepMin:"")+(b.jPlayer.timeFormat.showSec?c+b.jPlayer.timeFormat.sepSec:"")};b.jPlayer.uaBrowser= +function(a){var a=a.toLowerCase(),b=/(opera)(?:.*version)?[ \/]([\w.]+)/,d=/(msie) ([\w.]+)/,e=/(mozilla)(?:.*? rv:([\w.]+))?/,a=/(webkit)[ \/]([\w.]+)/.exec(a)||b.exec(a)||d.exec(a)||a.indexOf("compatible")<0&&e.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}};b.jPlayer.uaPlatform=function(a){var b=a.toLowerCase(),d=/(android)/,e=/(mobile)/,a=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/.exec(b)||[],b=/(ipad|playbook)/.exec(b)||!e.exec(b)&&d.exec(b)||[];a[1]&&(a[1]=a[1].replace(/\s/g, +"_"));return{platform:a[1]||"",tablet:b[1]||""}};b.jPlayer.browser={};b.jPlayer.platform={};var i=b.jPlayer.uaBrowser(navigator.userAgent);if(i.browser)b.jPlayer.browser[i.browser]=!0,b.jPlayer.browser.version=i.version;i=b.jPlayer.uaPlatform(navigator.userAgent);if(i.platform)b.jPlayer.platform[i.platform]=!0,b.jPlayer.platform.mobile=!i.tablet,b.jPlayer.platform.tablet=!!i.tablet;b.jPlayer.prototype={count:0,version:{script:"2.1.0",needFlash:"2.1.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash", +supplied:"mp3",preload:"metadata",volume:0.8,muted:!1,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen", +repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},fullScreen:!1,autohide:{restored:!1,full:!0,fadeIn:200,fadeOut:600,hold:1E3},loop:!1,repeat:function(a){a.jPlayer.options.loop?b(this).unbind(".jPlayerRepeat").bind(b.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){b(this).jPlayer("play")}):b(this).unbind(".jPlayerRepeat")},nativeVideoControls:{},noFullScreen:{msie:/msie [0-6]/,ipad:/ipad.*?os [0-4]/,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3](?!.*?mobile)/, +android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/,playbook:/playbook/},verticalVolume:!1,idPrefix:"jp",noConflict:"jQuery",emulateHtml:!1,errorAlerts:!1,warningAlerts:!1},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}}, +optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:!0,format:{},formatType:"",waitForPlay:!0,waitForLoad:!0,srcSet:!1,video:!1,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:!1},solution:{html:!0,flash:!0},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:!0, +media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:!0,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:!1,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:!1,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:!1,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:!0,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:!0,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:!1, +media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:!1,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:!0,media:"video"}},_init:function(){var a=this;this.element.empty();this.status=b.extend({},this.status);this.internal=b.extend({},this.internal);this.internal.domNode=this.element.get(0);this.formats=[];this.solutions=[];this.require={};this.htmlElement={};this.html={};this.html.audio={};this.html.video={};this.flash={};this.css={};this.css.cs={};this.css.jq={};this.ancestorJq= +[];this.options.volume=this._limitValue(this.options.volume,0,1);b.each(this.options.supplied.toLowerCase().split(","),function(c,d){var e=d.replace(/^\s+|\s+$/g,"");if(a.format[e]){var f=!1;b.each(a.formats,function(a,b){if(e===b)return f=!0,!1});f||a.formats.push(e)}});b.each(this.options.solution.toLowerCase().split(","),function(c,d){var e=d.replace(/^\s+|\s+$/g,"");if(a.solution[e]){var f=!1;b.each(a.solutions,function(a,b){if(e===b)return f=!0,!1});f||a.solutions.push(e)}});this.internal.instance= +"jp_"+this.count;this.instances[this.internal.instance]=this.element;this.element.attr("id")||this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count);this.internal.self=b.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=b.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:f});this.internal.video=b.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:f});this.internal.flash=b.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:f,swf:this.options.swfPath+ +(this.options.swfPath.toLowerCase().slice(-4)!==".swf"?(this.options.swfPath&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"jplayer.swf":"")});this.internal.poster=b.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:f});b.each(b.jPlayer.event,function(b,c){a.options[b]!==f&&(a.element.bind(c+".jPlayer",a.options[b]),a.options[b]=f)});this.require.audio=!1;this.require.video=!1;b.each(this.formats,function(b,c){a.require[a.format[c].media]=!0});this.options=this.require.video?b.extend(!0, +{},this.optionsVideo,this.options):b.extend(!0,{},this.optionsAudio,this.options);this._setSize();this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._restrictNativeVideoControls();this.htmlElement.poster=document.createElement("img");this.htmlElement.poster.id=this.internal.poster.id;this.htmlElement.poster.onload=function(){(!a.status.video|| +a.status.waitForPlay)&&a.internal.poster.jq.show()};this.element.append(this.htmlElement.poster);this.internal.poster.jq=b("#"+this.internal.poster.id);this.internal.poster.jq.css({width:this.status.width,height:this.status.height});this.internal.poster.jq.hide();this.internal.poster.jq.bind("click.jPlayer",function(){a._trigger(b.jPlayer.event.click)});this.html.audio.available=!1;if(this.require.audio)this.htmlElement.audio=document.createElement("audio"),this.htmlElement.audio.id=this.internal.audio.id, +this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio);this.html.video.available=!1;if(this.require.video)this.htmlElement.video=document.createElement("video"),this.htmlElement.video.id=this.internal.video.id,this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video);this.flash.available=this._checkForFlash(10);this.html.canPlay={};this.flash.canPlay={};b.each(this.formats,function(b,c){a.html.canPlay[c]= +a.html[a.format[c].media].available&&""!==a.htmlElement[a.format[c].media].canPlayType(a.format[c].codec);a.flash.canPlay[c]=a.format[c].flashCanPlay&&a.flash.available});this.html.desired=!1;this.flash.desired=!1;b.each(this.solutions,function(c,d){if(c===0)a[d].desired=!0;else{var e=!1,f=!1;b.each(a.formats,function(b,c){a[a.solutions[0]].canPlay[c]&&(a.format[c].media==="video"?f=!0:e=!0)});a[d].desired=a.require.audio&&!e||a.require.video&&!f}});this.html.support={};this.flash.support={};b.each(this.formats, +function(b,c){a.html.support[c]=a.html.canPlay[c]&&a.html.desired;a.flash.support[c]=a.flash.canPlay[c]&&a.flash.desired});this.html.used=!1;this.flash.used=!1;b.each(this.solutions,function(c,d){b.each(a.formats,function(b,c){if(a[d].support[c])return a[d].used=!0,!1})});this._resetActive();this._resetGate();this._cssSelectorAncestor(this.options.cssSelectorAncestor);!this.html.used&&!this.flash.used?(this._error({type:b.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+ +this.options.supplied+"'}",message:b.jPlayer.errorMsg.NO_SOLUTION,hint:b.jPlayer.errorHint.NO_SOLUTION}),this.css.jq.noSolution.length&&this.css.jq.noSolution.show()):this.css.jq.noSolution.length&&this.css.jq.noSolution.hide();if(this.flash.used){var c,d="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(b.browser.msie&&Number(b.browser.version)<=8){d=['','','','',''];c=document.createElement('');for(var e=0;e0?100*d/this.status.duration:0;typeof a.seekable==="object"&&a.seekable.length>0?(g=this.status.duration>0?100*a.seekable.end(a.seekable.length-1)/this.status.duration:100,f=100*a.currentTime/a.seekable.end(a.seekable.length-1)):(g=100,f=e);b&&(e=f=d=0);this.status.seekPercent=g;this.status.currentPercentRelative=f;this.status.currentPercentAbsolute=e;this.status.currentTime=d;this.status.readyState=a.readyState;this.status.networkState=a.networkState;this.status.playbackRate= +a.playbackRate;this.status.ended=a.ended},_resetStatus:function(){this.status=b.extend({},this.status,b.jPlayer.prototype.status)},_trigger:function(a,c,d){a=b.Event(a);a.jPlayer={};a.jPlayer.version=b.extend({},this.version);a.jPlayer.options=b.extend(!0,{},this.options);a.jPlayer.status=b.extend(!0,{},this.status);a.jPlayer.html=b.extend(!0,{},this.html);a.jPlayer.flash=b.extend(!0,{},this.flash);if(c)a.jPlayer.error=b.extend({},c);if(d)a.jPlayer.warning=b.extend({},d);this.element.trigger(a)}, +jPlayerFlashEvent:function(a,c){if(a===b.jPlayer.event.ready)if(this.internal.ready){if(this.flash.gate){if(this.status.srcSet){var d=this.status.currentTime,e=this.status.paused;this.setMedia(this.status.media);d>0&&(e?this.pause(d):this.play(d))}this._trigger(b.jPlayer.event.flashreset)}}else this.internal.ready=!0,this.internal.flash.jq.css({width:"0px",height:"0px"}),this.version.flash=c.version,this.version.needFlash!==this.version.flash&&this._error({type:b.jPlayer.error.VERSION,context:this.version.flash, +message:b.jPlayer.errorMsg.VERSION+this.version.flash,hint:b.jPlayer.errorHint.VERSION}),this._trigger(b.jPlayer.event.repeat),this._trigger(a);if(this.flash.gate)switch(a){case b.jPlayer.event.progress:this._getFlashStatus(c);this._updateInterface();this._trigger(a);break;case b.jPlayer.event.timeupdate:this._getFlashStatus(c);this._updateInterface();this._trigger(a);break;case b.jPlayer.event.play:this._seeked();this._updateButtons(!0);this._trigger(a);break;case b.jPlayer.event.pause:this._updateButtons(!1); +this._trigger(a);break;case b.jPlayer.event.ended:this._updateButtons(!1);this._trigger(a);break;case b.jPlayer.event.click:this._trigger(a);break;case b.jPlayer.event.error:this.status.waitForLoad=!0;this.status.waitForPlay=!0;this.status.video&&this.internal.flash.jq.css({width:"0px",height:"0px"});this._validString(this.status.media.poster)&&this.internal.poster.jq.show();this.css.jq.videoPlay.length&&this.status.video&&this.css.jq.videoPlay.show();this.status.video?this._flash_setVideo(this.status.media): +this._flash_setAudio(this.status.media);this._updateButtons(!1);this._error({type:b.jPlayer.error.URL,context:c.src,message:b.jPlayer.errorMsg.URL,hint:b.jPlayer.errorHint.URL});break;case b.jPlayer.event.seeking:this._seeking();this._trigger(a);break;case b.jPlayer.event.seeked:this._seeked();this._trigger(a);break;case b.jPlayer.event.ready:break;default:this._trigger(a)}return!1},_getFlashStatus:function(a){this.status.seekPercent=a.seekPercent;this.status.currentPercentRelative=a.currentPercentRelative; +this.status.currentPercentAbsolute=a.currentPercentAbsolute;this.status.currentTime=a.currentTime;this.status.duration=a.duration;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=!1},_updateButtons:function(a){if(a!==f)this.status.paused=!a,this.css.jq.play.length&&this.css.jq.pause.length&&(a?(this.css.jq.play.hide(),this.css.jq.pause.show()):(this.css.jq.play.show(),this.css.jq.pause.hide()));this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length&& +(this.status.noFullScreen?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.hide()):this.options.fullScreen?(this.css.jq.fullScreen.hide(),this.css.jq.restoreScreen.show()):(this.css.jq.fullScreen.show(),this.css.jq.restoreScreen.hide()));this.css.jq.repeat.length&&this.css.jq.repeatOff.length&&(this.options.loop?(this.css.jq.repeat.hide(),this.css.jq.repeatOff.show()):(this.css.jq.repeat.show(),this.css.jq.repeatOff.hide()))},_updateInterface:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.width(this.status.seekPercent+ +"%");this.css.jq.playBar.length&&this.css.jq.playBar.width(this.status.currentPercentRelative+"%");this.css.jq.currentTime.length&&this.css.jq.currentTime.text(b.jPlayer.convertTime(this.status.currentTime));this.css.jq.duration.length&&this.css.jq.duration.text(b.jPlayer.convertTime(this.status.duration))},_seeking:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.addClass("jp-seeking-bg")},_seeked:function(){this.css.jq.seekBar.length&&this.css.jq.seekBar.removeClass("jp-seeking-bg")}, +_resetGate:function(){this.html.audio.gate=!1;this.html.video.gate=!1;this.flash.gate=!1},_resetActive:function(){this.html.active=!1;this.flash.active=!1},setMedia:function(a){var c=this,d=!1,e=this.status.media.poster!==a.poster;this._resetMedia();this._resetGate();this._resetActive();b.each(this.formats,function(e,f){var i=c.format[f].media==="video";b.each(c.solutions,function(b,e){if(c[e].support[f]&&c._validString(a[f])){var g=e==="html";i?(g?(c.html.video.gate=!0,c._html_setVideo(a),c.html.active= +!0):(c.flash.gate=!0,c._flash_setVideo(a),c.flash.active=!0),c.css.jq.videoPlay.length&&c.css.jq.videoPlay.show(),c.status.video=!0):(g?(c.html.audio.gate=!0,c._html_setAudio(a),c.html.active=!0):(c.flash.gate=!0,c._flash_setAudio(a),c.flash.active=!0),c.css.jq.videoPlay.length&&c.css.jq.videoPlay.hide(),c.status.video=!1);d=!0;return!1}});if(d)return!1});if(d){if((!this.status.nativeVideoControls||!this.html.video.gate)&&this._validString(a.poster))e?this.htmlElement.poster.src=a.poster:this.internal.poster.jq.show(); +this.status.srcSet=!0;this.status.media=b.extend({},a);this._updateButtons(!1);this._updateInterface()}else this._error({type:b.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:b.jPlayer.errorMsg.NO_SUPPORT,hint:b.jPlayer.errorHint.NO_SUPPORT})},_resetMedia:function(){this._resetStatus();this._updateButtons(!1);this._updateInterface();this._seeked();this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);this.html.active?this._html_resetMedia():this.flash.active&& +this._flash_resetMedia()},clearMedia:function(){this._resetMedia();this.html.active?this._html_clearMedia():this.flash.active&&this._flash_clearMedia();this._resetGate();this._resetActive()},load:function(){this.status.srcSet?this.html.active?this._html_load():this.flash.active&&this._flash_load():this._urlNotSetError("load")},play:function(a){a=typeof a==="number"?a:NaN;this.status.srcSet?this.html.active?this._html_play(a):this.flash.active&&this._flash_play(a):this._urlNotSetError("play")},videoPlay:function(){this.play()}, +pause:function(a){a=typeof a==="number"?a:NaN;this.status.srcSet?this.html.active?this._html_pause(a):this.flash.active&&this._flash_pause(a):this._urlNotSetError("pause")},pauseOthers:function(){var a=this;b.each(this.instances,function(b,d){a.element!==d&&d.data("jPlayer").status.srcSet&&d.jPlayer("pause")})},stop:function(){this.status.srcSet?this.html.active?this._html_pause(0):this.flash.active&&this._flash_pause(0):this._urlNotSetError("stop")},playHead:function(a){a=this._limitValue(a,0,100); +this.status.srcSet?this.html.active?this._html_playHead(a):this.flash.active&&this._flash_playHead(a):this._urlNotSetError("playHead")},_muted:function(a){this.options.muted=a;this.html.used&&this._html_mute(a);this.flash.used&&this._flash_mute(a);!this.html.video.gate&&!this.html.audio.gate&&(this._updateMute(a),this._updateVolume(this.options.volume),this._trigger(b.jPlayer.event.volumechange))},mute:function(a){a=a===f?!0:!!a;this._muted(a)},unmute:function(a){a=a===f?!0:!!a;this._muted(!a)},_updateMute:function(a){if(a=== +f)a=this.options.muted;this.css.jq.mute.length&&this.css.jq.unmute.length&&(this.status.noVolume?(this.css.jq.mute.hide(),this.css.jq.unmute.hide()):a?(this.css.jq.mute.hide(),this.css.jq.unmute.show()):(this.css.jq.mute.show(),this.css.jq.unmute.hide()))},volume:function(a){a=this._limitValue(a,0,1);this.options.volume=a;this.html.used&&this._html_volume(a);this.flash.used&&this._flash_volume(a);!this.html.video.gate&&!this.html.audio.gate&&(this._updateVolume(a),this._trigger(b.jPlayer.event.volumechange))}, +volumeBar:function(a){if(this.css.jq.volumeBar.length){var b=this.css.jq.volumeBar.offset(),d=a.pageX-b.left,e=this.css.jq.volumeBar.width(),a=this.css.jq.volumeBar.height()-a.pageY+b.top,b=this.css.jq.volumeBar.height();this.options.verticalVolume?this.volume(a/b):this.volume(d/e)}this.options.muted&&this._muted(!1)},volumeBarValue:function(a){this.volumeBar(a)},_updateVolume:function(a){if(a===f)a=this.options.volume;a=this.options.muted?0:a;this.status.noVolume?(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.hide(), +this.css.jq.volumeBarValue.length&&this.css.jq.volumeBarValue.hide(),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.hide()):(this.css.jq.volumeBar.length&&this.css.jq.volumeBar.show(),this.css.jq.volumeBarValue.length&&(this.css.jq.volumeBarValue.show(),this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"](a*100+"%")),this.css.jq.volumeMax.length&&this.css.jq.volumeMax.show())},volumeMax:function(){this.volume(1);this.options.muted&&this._muted(!1)},_cssSelectorAncestor:function(a){var c= +this;this.options.cssSelectorAncestor=a;this._removeUiClass();this.ancestorJq=a?b(a):[];a&&this.ancestorJq.length!==1&&this._warning({type:b.jPlayer.warning.CSS_SELECTOR_COUNT,context:a,message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT});this._addUiClass();b.each(this.options.cssSelector,function(a,b){c._cssSelector(a,b)})},_cssSelector:function(a,c){var d=this;typeof c==="string"?b.jPlayer.prototype.options.cssSelector[a]? +(this.css.jq[a]&&this.css.jq[a].length&&this.css.jq[a].unbind(".jPlayer"),this.options.cssSelector[a]=c,this.css.cs[a]=this.options.cssSelectorAncestor+" "+c,this.css.jq[a]=c?b(this.css.cs[a]):[],this.css.jq[a].length&&this.css.jq[a].bind("click.jPlayer",function(c){d[a](c);b(this).blur();return!1}),c&&this.css.jq[a].length!==1&&this._warning({type:b.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[a],message:b.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[a].length+" found for "+a+" method.", +hint:b.jPlayer.warningHint.CSS_SELECTOR_COUNT})):this._warning({type:b.jPlayer.warning.CSS_SELECTOR_METHOD,context:a,message:b.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:b.jPlayer.warningHint.CSS_SELECTOR_METHOD}):this._warning({type:b.jPlayer.warning.CSS_SELECTOR_STRING,context:c,message:b.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:b.jPlayer.warningHint.CSS_SELECTOR_STRING})},seekBar:function(a){if(this.css.jq.seekBar){var b=this.css.jq.seekBar.offset(),a=a.pageX-b.left,b=this.css.jq.seekBar.width(); +this.playHead(100*a/b)}},playBar:function(a){this.seekBar(a)},repeat:function(){this._loop(!0)},repeatOff:function(){this._loop(!1)},_loop:function(a){if(this.options.loop!==a)this.options.loop=a,this._updateButtons(),this._trigger(b.jPlayer.event.repeat)},currentTime:function(){},duration:function(){},gui:function(){},noSolution:function(){},option:function(a,c){var d=a;if(arguments.length===0)return b.extend(!0,{},this.options);if(typeof a==="string"){var e=a.split(".");if(c===f){for(var d=b.extend(!0, +{},this.options),g=0;g0?this._html_load():clearTimeout(this.internal.htmlDlyCmdId);this.htmlElement.media.pause();if(!isNaN(a))try{this.htmlElement.media.currentTime=a}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.pause(a)},100);return}a>0&&this._html_checkWaitForPlay()},_html_playHead:function(a){var b=this;this._html_load();try{if(typeof this.htmlElement.media.seekable==="object"&&this.htmlElement.media.seekable.length>0)this.htmlElement.media.currentTime= +a*this.htmlElement.media.seekable.end(this.htmlElement.media.seekable.length-1)/100;else if(this.htmlElement.media.duration>0&&!isNaN(this.htmlElement.media.duration))this.htmlElement.media.currentTime=a*this.htmlElement.media.duration/100;else throw"e";}catch(d){this.internal.htmlDlyCmdId=setTimeout(function(){b.playHead(a)},100);return}this.status.waitForLoad||this._html_checkWaitForPlay()},_html_checkWaitForPlay:function(){if(this.status.waitForPlay)this.status.waitForPlay=!1,this.css.jq.videoPlay.length&& +this.css.jq.videoPlay.hide(),this.status.video&&(this.internal.poster.jq.hide(),this.internal.video.jq.css({width:this.status.width,height:this.status.height}))},_html_volume:function(a){if(this.html.audio.available)this.htmlElement.audio.volume=a;if(this.html.video.available)this.htmlElement.video.volume=a},_html_mute:function(a){if(this.html.audio.available)this.htmlElement.audio.muted=a;if(this.html.video.available)this.htmlElement.video.muted=a},_flash_setAudio:function(a){var c=this;try{if(b.each(this.formats, +function(b,d){if(c.flash.support[d]&&a[d]){switch(d){case "m4a":case "fla":c._getMovie().fl_setAudio_m4a(a[d]);break;case "mp3":c._getMovie().fl_setAudio_mp3(a[d])}c.status.src=a[d];c.status.format[d]=!0;c.status.formatType=d;return!1}}),this.options.preload==="auto")this._flash_load(),this.status.waitForLoad=!1}catch(d){this._flashError(d)}},_flash_setVideo:function(a){var c=this;try{if(b.each(this.formats,function(b,d){if(c.flash.support[d]&&a[d]){switch(d){case "m4v":case "flv":c._getMovie().fl_setVideo_m4v(a[d])}c.status.src= +a[d];c.status.format[d]=!0;c.status.formatType=d;return!1}}),this.options.preload==="auto")this._flash_load(),this.status.waitForLoad=!1}catch(d){this._flashError(d)}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"});this._flash_pause(NaN)},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia()}catch(a){this._flashError(a)}},_flash_load:function(){try{this._getMovie().fl_load()}catch(a){this._flashError(a)}this.status.waitForLoad=!1},_flash_play:function(a){try{this._getMovie().fl_play(a)}catch(b){this._flashError(b)}this.status.waitForLoad= +!1;this._flash_checkWaitForPlay()},_flash_pause:function(a){try{this._getMovie().fl_pause(a)}catch(b){this._flashError(b)}if(a>0)this.status.waitForLoad=!1,this._flash_checkWaitForPlay()},_flash_playHead:function(a){try{this._getMovie().fl_play_head(a)}catch(b){this._flashError(b)}this.status.waitForLoad||this._flash_checkWaitForPlay()},_flash_checkWaitForPlay:function(){if(this.status.waitForPlay)this.status.waitForPlay=!1,this.css.jq.videoPlay.length&&this.css.jq.videoPlay.hide(),this.status.video&& +(this.internal.poster.jq.hide(),this.internal.flash.jq.css({width:this.status.width,height:this.status.height}))},_flash_volume:function(a){try{this._getMovie().fl_volume(a)}catch(b){this._flashError(b)}},_flash_mute:function(a){try{this._getMovie().fl_mute(a)}catch(b){this._flashError(b)}},_getMovie:function(){return document[this.internal.flash.id]},_checkForFlash:function(a){var b=!1,d;if(window.ActiveXObject)try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a),b=!0}catch(e){}else navigator.plugins&& +navigator.mimeTypes.length>0&&(d=navigator.plugins["Shockwave Flash"])&&navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1")>=a&&(b=!0);return b},_validString:function(a){return a&&typeof a==="string"},_limitValue:function(a,b,d){return ad?d:a},_urlNotSetError:function(a){this._error({type:b.jPlayer.error.URL_NOT_SET,context:a,message:b.jPlayer.errorMsg.URL_NOT_SET,hint:b.jPlayer.errorHint.URL_NOT_SET})},_flashError:function(a){var c;c=this.internal.ready?"FLASH_DISABLED": +"FLASH";this._error({type:b.jPlayer.error[c],context:this.internal.flash.swf,message:b.jPlayer.errorMsg[c]+a.message,hint:b.jPlayer.errorHint[c]});this.internal.flash.jq.css({width:"1px",height:"1px"})},_error:function(a){this._trigger(b.jPlayer.event.error,a);this.options.errorAlerts&&this._alert("Error!"+(a.message?"\n\n"+a.message:"")+(a.hint?"\n\n"+a.hint:"")+"\n\nContext: "+a.context)},_warning:function(a){this._trigger(b.jPlayer.event.warning,f,a);this.options.warningAlerts&&this._alert("Warning!"+ +(a.message?"\n\n"+a.message:"")+(a.hint?"\n\n"+a.hint:"")+"\n\nContext: "+a.context)},_alert:function(a){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+a)},_emulateHtmlBridge:function(){var a=this;b.each(b.jPlayer.emulateMethods.split(/\s+/g),function(b,d){a.internal.domNode[d]=function(b){a[d](b)}});b.each(b.jPlayer.event,function(c,d){var e=!0;b.each(b.jPlayer.reservedEvent.split(/\s+/g),function(a,b){if(b===c)return e=!1});e&&a.element.bind(d+".jPlayer.jPlayerHtml", +function(){a._emulateHtmlUpdate();var b=document.createEvent("Event");b.initEvent(c,!1,!0);a.internal.domNode.dispatchEvent(b)})})},_emulateHtmlUpdate:function(){var a=this;b.each(b.jPlayer.emulateStatus.split(/\s+/g),function(b,d){a.internal.domNode[d]=a.status[d]});b.each(b.jPlayer.emulateOptions.split(/\s+/g),function(b,d){a.internal.domNode[d]=a.options[d]})},_destroyHtmlBridge:function(){var a=this;this.element.unbind(".jPlayerHtml");b.each((b.jPlayer.emulateMethods+" "+b.jPlayer.emulateStatus+ +" "+b.jPlayer.emulateOptions).split(/\s+/g),function(b,d){delete a.internal.domNode[d]})}};b.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};b.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ", +NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+b.jPlayer.prototype.version.script+" needs jplayer.swf version "+b.jPlayer.prototype.version.needFlash+" but found "};b.jPlayer.errorHint= +{FLASH:"Check your swfPath option and that jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};b.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method", +CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};b.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."};b.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.", +CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."}})(jQuery); + + + +/** + * Isotope v1.5.25 + * An exquisite jQuery plugin for magical layouts + * http://isotope.metafizzy.co + * + * Commercial use requires one-time purchase of a commercial license + * http://isotope.metafizzy.co/docs/license.html + * + * Non-commercial use is licensed under the MIT License + * + * Copyright 2013 Metafizzy + */ +(function(a,b,c){"use strict";var d=a.document,e=a.Modernizr,f=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},g="Moz Webkit O Ms".split(" "),h=function(a){var b=d.documentElement.style,c;if(typeof b[a]=="string")return a;a=f(a);for(var e=0,h=g.length;e"+d+"{#modernizr{height:3px}}"+"").appendTo("head"),f=b('
').appendTo("html");a=f.height()===3,f.remove(),e.remove()}return a},csstransitions:function(){return!!j}},l;if(e)for(l in k)e.hasOwnProperty(l)||e.addTest(l,k[l]);else{e=a.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var m=" ",n;for(l in k)n=k[l](),e[l]=n,m+=" "+(n?"":"no-")+l;b("html").addClass(m)}if(e.csstransforms){var o=e.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},p=function(a,c,d){var e=b.data(a,"isoTransform")||{},f={},g,h={},j;f[c]=d,b.extend(e,f);for(g in e)j=e[g],h[g]=o[g](j);var k=h.translate||"",l=h.scale||"",m=k+l;b.data(a,"isoTransform",e),a.style[i]=m};b.cssNumber.scale=!0,b.cssHooks.scale={set:function(a,b){p(a,"scale",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.scale?d.scale:1}},b.fx.step.scale=function(a){b.cssHooks.scale.set(a.elem,a.now+a.unit)},b.cssNumber.translate=!0,b.cssHooks.translate={set:function(a,b){p(a,"translate",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.translate?d.translate:[0,0]}}}var q,r;e.csstransitions&&(q={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[j],r=h("transitionDuration"));var s=b.event,t=b.event.handle?"handle":"dispatch",u;s.special.smartresize={setup:function(){b(this).bind("resize",s.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",s.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",u&&clearTimeout(u),u=setTimeout(function(){s[t].apply(c,d)},b==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Isotope=function(a,c,d){this.element=b(c),this._create(a),this._init(d)};var v=["width","height"],w=b(a);b.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},b.Isotope.prototype={_create:function(a){this.options=b.extend({},b.Isotope.settings,a),this.styleQueue=[],this.elemCount=0;var c=this.element[0].style;this.originalStyle={};var d=v.slice(0);for(var e in this.options.containerStyle)d.push(e);for(var f=0,g=d.length;fg?1:f0&&(i=function(a,b){b.$el[d](b.style,f).one(q,k)},j=!1)}}b.each(this.styleQueue,i),j&&k(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(a){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._getAtoms(a);this.$allAtoms=this.$allAtoms.add(c),b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(a){var d=c._filter(a);c._addHideAppended(d),c._sort(),c.reLayout(),c._revealAppended(d,b)})},appended:function(a,b){var c=this;this.addItems(a,function(a){c._addHideAppended(a),c.layout(a),c._revealAppended(a,b)})},_addHideAppended:function(a){this.$filteredAtoms=this.$filteredAtoms.add(a),a.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:a,style:this.options.hiddenStyle})},_revealAppended:function(a,b){var c=this;setTimeout(function(){a.removeClass("no-transition"),c.styleQueue.push({$el:a,style:c.options.visibleStyle}),c._isInserting=!1,c._processStyleQueue(a,b)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(a,b){this.$allAtoms=this.$allAtoms.not(a),this.$filteredAtoms=this.$filteredAtoms.not(a);var c=this,d=function(){a.remove(),b&&b.call(c.element)};a.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:a,style:this.options.hiddenStyle}),this._sort(),this.reLayout(d)):d()},shuffle:function(a){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(a)},destroy:function(){var a=this.usingTransforms,b=this.options;this.$allAtoms.removeClass(b.hiddenClass+" "+b.itemClass).each(function(){var b=this.style;b.position="",b.top="",b.left="",b.opacity="",a&&(b[i]="")});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".isotope").undelegate("."+b.hiddenClass,"click").removeClass(b.containerClass).removeData("isotope"),w.unbind(".isotope")},_getSegments:function(a){var b=this.options.layoutMode,c=a?"rowHeight":"columnWidth",d=a?"height":"width",e=a?"rows":"cols",g=this.element[d](),h,i=this.options[b]&&this.options[b][c]||this.$filteredAtoms["outer"+f(d)](!0)||g;h=Math.floor(g/i),h=Math.max(h,1),this[b][e]=h,this[b][c]=i},_checkIfSegmentsChanged:function(a){var b=this.options.layoutMode,c=a?"rows":"cols",d=this[b][c];return this._getSegments(a),this[b][c]!==d},_masonryReset:function(){this.masonry={},this._getSegments();var a=this.masonry.cols;this.masonry.colYs=[];while(a--)this.masonry.colYs.push(0)},_masonryLayout:function(a){var c=this,d=c.masonry;a.each(function(){var a=b(this),e=Math.ceil(a.outerWidth(!0)/d.columnWidth);e=Math.min(e,d.cols);if(e===1)c._masonryPlaceBrick(a,d.colYs);else{var f=d.cols+1-e,g=[],h,i;for(i=0;id&&(e.x=0,e.y=e.height),c._pushPosition(a,e.x,e.y),e.height=Math.max(e.y+g,e.height),e.x+=f})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(a){var c=this,d=this.cellsByRow;a.each(function(){var a=b(this),e=d.index%d.cols,f=Math.floor(d.index/d.cols),g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,0,c.straightDown.y),c.straightDown.y+=d.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var a=this.masonryHorizontal.rows;this.masonryHorizontal.rowXs=[];while(a--)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(a){var c=this,d=c.masonryHorizontal;a.each(function(){var a=b(this),e=Math.ceil(a.outerHeight(!0)/d.rowHeight);e=Math.min(e,d.rows);if(e===1)c._masonryHorizontalPlaceBrick(a,d.rowXs);else{var f=d.rows+1-e,g=[],h,i;for(i=0;id&&(e.x=e.width,e.y=0),c._pushPosition(a,e.x,e.y),e.width=Math.max(e.x+f,e.width),e.y+=g})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(a){var c=this,d=this.cellsByColumn;a.each(function(){var a=b(this),e=Math.floor(d.index/d.rows),f=d.index%d.rows,g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,c.straightAcross.x,0),c.straightAcross.x+=d.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},b.fn.imagesLoaded=function(a){function h(){a.call(c,d)}function i(a){var c=a.target;c.src!==f&&b.inArray(c,g)===-1&&(g.push(c),--e<=0&&(setTimeout(h),d.unbind(".imagesLoaded",i)))}var c=this,d=c.find("img").add(c.filter("img")),e=d.length,f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",g=[];return e||h(),d.bind("load.imagesLoaded error.imagesLoaded",i).each(function(){var a=this.src;this.src=f,this.src=a}),c};var x=function(b){a.console&&a.console.error(b)};b.fn.isotope=function(a,c){if(typeof a=="string"){var d=Array.prototype.slice.call(arguments,1);this.each(function(){var c=b.data(this,"isotope");if(!c){x("cannot call methods on isotope prior to initialization; attempted to call method '"+a+"'");return}if(!b.isFunction(c[a])||a.charAt(0)==="_"){x("no such method '"+a+"' for isotope instance");return}c[a].apply(c,d)})}else this.each(function(){var d=b.data(this,"isotope");d?(d.option(a),d._init(c)):b.data(this,"isotope",new b.Isotope(a,this,c))});return this}})(window,jQuery); + + + +/* ----------------------------------------------------- */ +/* HoverIntent +/* ----------------------------------------------------- */ + +(function($){ + /* hoverIntent by Brian Cherne */ + $.fn.hoverIntent = function(f,g) { + // default configuration options + var cfg = { + sensitivity: 7, + interval: 100, + timeout: 0 + }; + // override configuration options with user supplied object + cfg = $.extend(cfg, g ? { over: f, out: g } : f ); + + // instantiate variables + // cX, cY = current X and Y position of mouse, updated by mousemove event + // pX, pY = previous X and Y position of mouse, set by mouseover and polling interval + var cX, cY, pX, pY; + + // A private function for getting mouse position + var track = function(ev) { + cX = ev.pageX; + cY = ev.pageY; + }; + + // A private function for comparing current and previous mouse position + var compare = function(ev,ob) { + ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); + // compare mouse positions to see if they've crossed the threshold + if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) { + $(ob).unbind("mousemove",track); + // set hoverIntent state to true (so mouseOut can be called) + ob.hoverIntent_s = 1; + return cfg.over.apply(ob,[ev]); + } else { + // set previous coordinates for next time + pX = cX; pY = cY; + // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs) + ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval ); + } + }; + + // A private function for delaying the mouseOut function + var delay = function(ev,ob) { + ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); + ob.hoverIntent_s = 0; + return cfg.out.apply(ob,[ev]); + }; + + // A private function for handling mouse 'hovering' + var handleHover = function(e) { + // next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut + var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; + while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } } + if ( p == this ) { return false; } + + // copy objects to be passed into t (required for event object to be passed in IE) + var ev = jQuery.extend({},e); + var ob = this; + + // cancel hoverIntent timer if it exists + if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); } + + // else e.type == "onmouseover" + if (e.type == "mouseover") { + // set "previous" X and Y position based on initial entry point + pX = ev.pageX; pY = ev.pageY; + // update "current" X and Y position based on mousemove + $(ob).bind("mousemove",track); + // start polling interval (self-calling timeout) to compare mouse coordinates over time + if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );} + + // else e.type == "onmouseout" + } else { + // unbind expensive mousemove event + $(ob).unbind("mousemove",track); + // if hoverIntent state is true, then call the mouseOut function after the specified delay + if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );} + } + }; + + // bind the function to the two event listeners + return this.mouseover(handleHover).mouseout(handleHover); + }; + +})(jQuery); + + + + + +/* Modernizr 2.5.3 (Custom Build) | MIT & BSD + * Build: http://www.modernizr.com/download#-cssanimations-csstransitions-shiv-cssclasses-testprop-testallprops-domprefixes-load + */ +;window.Modernizr=function(a,b,c){function x(a){j.cssText=a}function y(a,b){return x(prefixes.join(a+";")+(b||""))}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a)if(j[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.substr(1),e=(a+" "+n.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+o.join(d+" ")+d).split(" "),C(e,b,c))}var d="2.5.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m="Webkit Moz O ms",n=m.split(" "),o=m.toLowerCase().split(" "),p={},q={},r={},s=[],t=s.slice,u,v={}.hasOwnProperty,w;!z(v,"undefined")&&!z(v.call,"undefined")?w=function(a,b){return v.call(a,b)}:w=function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.cssanimations=function(){return D("animationName")},p.csstransitions=function(){return D("transition")};for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return x(""),i=k=null,function(a,b){function g(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function h(){var a=k.elements;return typeof a=="string"?a.split(" "):a}function i(a){var b={},c=a.createElement,e=a.createDocumentFragment,f=e();a.createElement=function(a){var e=(b[a]||(b[a]=c(a))).cloneNode();return k.shivMethods&&e.canHaveChildren&&!d.test(a)?f.appendChild(e):e},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+h().join().replace(/\w+/g,function(a){return b[a]=c(a),f.createElement(a),'c("'+a+'")'})+");return n}")(k,f)}function j(a){var b;return a.documentShived?a:(k.shivCSS&&!e&&(b=!!g(a,"article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}audio{display:none}canvas,video{display:inline-block;*display:inline;*zoom:1}[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}mark{background:#FF0;color:#000}")),f||(b=!i(a)),b&&(a.documentShived=b),a)}var c=a.html5||{},d=/^<|^(?:button|form|map|select|textarea)$/i,e,f;(function(){var a=b.createElement("a");a.innerHTML="",e="hidden"in a,f=a.childNodes.length==1||function(){try{b.createElement("a")}catch(a){return!0}var c=b.createDocumentFragment();return typeof c.cloneNode=="undefined"||typeof c.createDocumentFragment=="undefined"||typeof c.createElement=="undefined"}()})();var k={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:j};a.html5=k,j(b)}(this,b),e._version=d,e._domPrefixes=o,e._cssomPrefixes=n,e.testProp=function(a){return B([a])},e.testAllProps=D,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+s.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return o.call(a)=="[object Function]"}function e(a){return typeof a=="string"}function f(){}function g(a){return!a||a=="loaded"||a=="complete"||a=="uninitialized"}function h(){var a=p.shift();q=1,a?a.t?m(function(){(a.t=="c"?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){a!="img"&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l={},o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};y[c]===1&&(r=1,y[c]=[],l=b.createElement(a)),a=="object"?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),a!="img"&&(r||y[c]===2?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i(b=="c"?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),p.length==1&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&o.call(a.opera)=="[object Opera]",l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return o.call(a)=="[object Array]"},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f'+settings.text+'');$(containerIDhash).hide().on('click.UItoTop',function(){$('html, body').animate({scrollTop:0},settings.scrollSpeed,settings.easingType);$('#'+settings.containerHoverID,this).stop().animate({'opacity':0},settings.inDelay,settings.easingType);return false;}).prepend('').hover(function(){$(containerHoverIDHash,this).stop().animate({'opacity':1},600,'linear');},function(){$(containerHoverIDHash,this).stop().animate({'opacity':0},700,'linear');});$(window).scroll(function(){var sd=$(window).scrollTop();if(typeof document.body.style.maxHeight==="undefined"){$(containerIDhash).css({'position':'absolute','top':sd+$(window).height()-50});} +if(sd>settings.min) +$(containerIDhash).fadeIn(settings.inDelay);else +$(containerIDhash).fadeOut(settings.Outdelay);});};})(jQuery); + + +/*! + * jQuery Cookie Plugin + * https://github.com/carhartl/jquery-cookie + * + * Copyright 2011, Klaus Hartl + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://www.opensource.org/licenses/mit-license.php + * http://www.opensource.org/licenses/GPL-2.0 + */ +(function($) { + $.cookie = function(key, value, options) { + + // key and at least value given, set cookie... + if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) { + options = $.extend({}, options); + + if (value === null || value === undefined) { + options.expires = -1; + } + + if (typeof options.expires === 'number') { + var days = options.expires, t = options.expires = new Date(); + t.setDate(t.getDate() + days); + } + + value = String(value); + + return (document.cookie = [ + encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value), + options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE + options.path ? '; path=' + options.path : '', + options.domain ? '; domain=' + options.domain : '', + options.secure ? '; secure' : '' + ].join('')); + } + + // key and possibly options given, get cookie... + options = value || {}; + var decode = options.raw ? function(s) { return s; } : decodeURIComponent; + + var pairs = document.cookie.split('; '); + for (var i = 0, pair; pair = pairs[i] && pairs[i].split('='); i++) { + if (decode(pair[0]) === key) return decode(pair[1] || ''); // IE saves cookies with empty string as "c; ", e.g. without "=" as opposed to EOMB, thus pair[1] may be undefined + } + return null; + }; +})(jQuery); + + + +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright © 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +eval(function(p,a,c,k,e,r){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6 c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k))*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(tg?a.getTarget("next"):a.getTarget("prev");a.flexAnimate(d,c.pauseOnAction)});c.pausePlay&&f.pausePlay.setup();c.slideshow&&(c.pauseOnHover&&a.hover(function(){!a.manualPlay&&!a.manualPause&&a.pause()}, +function(){!a.manualPause&&!a.manualPlay&&a.play()}),0');if(1':""+b+"",a.controlNavScaffold.append("
  • "+g+"
  • "),b++;a.controlsContainer?d(a.controlsContainer).append(a.controlNavScaffold):a.append(a.controlNavScaffold);f.controlNav.set();f.controlNav.active();a.controlNavScaffold.delegate("a, img",u,function(b){b.preventDefault();b=d(this);var g=a.controlNav.index(b);b.hasClass(e+"active")||(a.direction=g>a.currentSlide?"next":"prev",a.flexAnimate(g,c.pauseOnAction))});q&&a.controlNavScaffold.delegate("a", +"click touchstart",function(a){a.preventDefault()})},setupManual:function(){a.controlNav=a.manualControls;f.controlNav.active();a.controlNav.live(u,function(b){b.preventDefault();b=d(this);var g=a.controlNav.index(b);b.hasClass(e+"active")||(g>a.currentSlide?a.direction="next":a.direction="prev",a.flexAnimate(g,c.pauseOnAction))});q&&a.controlNav.live("click touchstart",function(a){a.preventDefault()})},set:function(){a.controlNav=d("."+e+"control-nav li "+("thumbnails"===c.controlNav?"img":"a"), +a.controlsContainer?a.controlsContainer:a)},active:function(){a.controlNav.removeClass(e+"active").eq(a.animatingTo).addClass(e+"active")},update:function(b,c){1"+a.count+"")):1===a.pagingCount?a.controlNavScaffold.find("li").remove():a.controlNav.eq(c).closest("li").remove();f.controlNav.set();1
  • '+c.prevText+'
  • '+c.nextText+"
  • ");a.controlsContainer?(d(a.controlsContainer).append(b),a.directionNav=d("."+e+"direction-nav li a",a.controlsContainer)):(a.append(b),a.directionNav=d("."+e+"direction-nav li a",a));f.directionNav.update();a.directionNav.bind(u,function(b){b.preventDefault();b=d(this).hasClass(e+"next")?a.getTarget("next"):a.getTarget("prev");a.flexAnimate(b,c.pauseOnAction)}); +q&&a.directionNav.bind("click touchstart",function(a){a.preventDefault()})},update:function(){var b=e+"disabled";1===a.pagingCount?a.directionNav.addClass(b):c.animationLoop?a.directionNav.removeClass(b):0===a.animatingTo?a.directionNav.removeClass(b).filter("."+e+"prev").addClass(b):a.animatingTo===a.last?a.directionNav.removeClass(b).filter("."+e+"next").addClass(b):a.directionNav.removeClass(b)}},pausePlay:{setup:function(){var b=d('
    ');a.controlsContainer? +(a.controlsContainer.append(b),a.pausePlay=d("."+e+"pauseplay a",a.controlsContainer)):(a.append(b),a.pausePlay=d("."+e+"pauseplay a",a));f.pausePlay.update(c.slideshow?e+"pause":e+"play");a.pausePlay.bind(u,function(b){b.preventDefault();d(this).hasClass(e+"pause")?(a.manualPause=!0,a.manualPlay=!1,a.pause()):(a.manualPause=!1,a.manualPlay=!0,a.play())});q&&a.pausePlay.bind("click touchstart",function(a){a.preventDefault()})},update:function(b){"play"===b?a.pausePlay.removeClass(e+"pause").addClass(e+ +"play").text(c.playText):a.pausePlay.removeClass(e+"play").addClass(e+"pause").text(c.pauseText)}},touch:function(){function b(b){k=m?d-b.touches[0].pageY:d-b.touches[0].pageX;q=m?Math.abs(k)k||a.currentSlide===a.last&&0Number(new Date)-l&&50r/2)?a.flexAnimate(m,c.pauseOnAction):s||a.flexAnimate(a.currentSlide,c.pauseOnAction,!0)}j.removeEventListener("touchend",g,!1);f=k=e=d=null}var d,e,f,r,k,l,q=!1;j.addEventListener("touchstart",function(k){a.animating?k.preventDefault():1===k.touches.length&&(a.pause(),r=m?a.h:a.w,l=Number(new Date),f=h&&n&&a.animatingTo=== +a.last?0:h&&n?a.limit-(a.itemW+c.itemMargin)*a.move*a.animatingTo:h&&a.currentSlide===a.last?a.limit:h?(a.itemW+c.itemMargin)*a.move*a.currentSlide:n?(a.last-a.currentSlide+a.cloneOffset)*r:(a.currentSlide+a.cloneOffset)*r,d=m?k.touches[0].pageY:k.touches[0].pageX,e=m?k.touches[0].pageX:k.touches[0].pageY,j.addEventListener("touchmove",b,!1),j.addEventListener("touchend",g,!1))},!1)},resize:function(){!a.animating&&a.is(":visible")&&(h||a.doMath(),s?f.smoothHeight():h?(a.slides.width(a.computedW), +a.update(a.pagingCount),a.setProps()):m?(a.viewport.height(a.h),a.setProps(a.h,"setTotal")):(c.smoothHeight&&f.smoothHeight(),a.newSlides.width(a.computedW),a.setProps(a.computedW,"setTotal")))},smoothHeight:function(b){if(!m||s){var c=s?a:a.viewport;b?c.animate({height:a.slides.eq(a.animatingTo).height()},b):c.height(a.slides.eq(a.animatingTo).height())}},sync:function(b){var g=d(c.sync).data("flexslider"),e=a.animatingTo;switch(b){case "animate":g.flexAnimate(e,c.pauseOnAction,!1,!0);break;case "play":!g.playing&& +!g.asNav&&g.play();break;case "pause":g.pause()}}};a.flexAnimate=function(b,g,p,j,l){t&&1===a.pagingCount&&(a.direction=a.currentItema.w?2*c.itemMargin:c.itemMargin,b=(a.itemW+b)*a.move*a.animatingTo, +b=b>a.limit&&1!==a.visible?a.limit:b):b=0===a.currentSlide&&b===a.count-1&&c.animationLoop&&"next"!==a.direction?n?(a.count+a.cloneOffset)*r:0:a.currentSlide===a.last&&0===b&&c.animationLoop&&"prev"!==a.direction?n?0:(a.count+1)*r:n?(a.count-1-b+a.cloneOffset)*r:(b+a.cloneOffset)*r;a.setProps(b,"",c.animationSpeed);if(a.transitions){if(!c.animationLoop||!a.atEnd)a.animating=!1,a.currentSlide=a.animatingTo;a.container.unbind("webkitTransitionEnd transitionend");a.container.bind("webkitTransitionEnd transitionend", +function(){a.wrapup(r)})}else a.container.animate(a.args,c.animationSpeed,c.easing,function(){a.wrapup(r)})}c.smoothHeight&&f.smoothHeight(c.animationSpeed)}};a.wrapup=function(b){!s&&!h&&(0===a.currentSlide&&a.animatingTo===a.last&&c.animationLoop?a.setProps(b,"jumpEnd"):a.currentSlide===a.last&&(0===a.animatingTo&&c.animationLoop)&&a.setProps(b,"jumpStart"));a.animating=!1;a.currentSlide=a.animatingTo;c.after(a)};a.animateSlides=function(){a.animating||a.flexAnimate(a.getTarget("next"))};a.pause= +function(){clearInterval(a.animatedSlides);a.playing=!1;c.pausePlay&&f.pausePlay.update("play");a.syncExists&&f.sync("pause")};a.play=function(){a.animatedSlides=setInterval(a.animateSlides,c.slideshowSpeed);a.playing=!0;c.pausePlay&&f.pausePlay.update("pause");a.syncExists&&f.sync("play")};a.canAdvance=function(b,g){var d=t?a.pagingCount-1:a.last;return g?!0:t&&a.currentItem===a.count-1&&0===b&&"prev"===a.direction?!0:t&&0===a.currentItem&&b===a.pagingCount-1&&"next"!==a.direction?!1:b===a.currentSlide&& +!t?!1:c.animationLoop?!0:a.atEnd&&0===a.currentSlide&&b===d&&"next"!==a.direction?!1:a.atEnd&&a.currentSlide===d&&0===b&&"next"===a.direction?!1:!0};a.getTarget=function(b){a.direction=b;return"next"===b?a.currentSlide===a.last?0:a.currentSlide+1:0===a.currentSlide?a.last:a.currentSlide-1};a.setProps=function(b,g,d){var e,f=b?b:(a.itemW+c.itemMargin)*a.move*a.animatingTo;e=-1*function(){if(h)return"setTouch"===g?b:n&&a.animatingTo===a.last?0:n?a.limit-(a.itemW+c.itemMargin)*a.move*a.animatingTo:a.animatingTo=== +a.last?a.limit:f;switch(g){case "setTotal":return n?(a.count-1-a.currentSlide+a.cloneOffset)*b:(a.currentSlide+a.cloneOffset)*b;case "setTouch":return b;case "jumpEnd":return n?b:a.count*b;case "jumpStart":return n?a.count*b:b;default:return b}}()+"px";a.transitions&&(e=m?"translate3d(0,"+e+",0)":"translate3d("+e+",0,0)",d=void 0!==d?d/1E3+"s":"0s",a.container.css("-"+a.pfx+"-transition-duration",d));a.args[a.prop]=e;(a.transitions||void 0===d)&&a.container.css(a.args)};a.setup=function(b){if(s)a.slides.css({width:"100%", +"float":"left",marginRight:"-100%",position:"relative"}),"init"===b&&(q?a.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+c.animationSpeed/1E3+"s ease",zIndex:1}).eq(a.currentSlide).css({opacity:1,zIndex:2}):a.slides.eq(a.currentSlide).fadeIn(c.animationSpeed,c.easing)),c.smoothHeight&&f.smoothHeight();else{var g,p;"init"===b&&(a.viewport=d('
    ').css({overflow:"hidden",position:"relative"}).appendTo(a).append(a.container),a.cloneCount=0,a.cloneOffset= +0,n&&(p=d.makeArray(a.slides).reverse(),a.slides=d(p),a.container.empty().append(a.slides)));c.animationLoop&&!h&&(a.cloneCount=2,a.cloneOffset=1,"init"!==b&&a.container.find(".clone").remove(),a.container.append(a.slides.first().clone().addClass("clone")).prepend(a.slides.last().clone().addClass("clone")));a.newSlides=d(c.selector,a);g=n?a.count-1-a.currentSlide+a.cloneOffset:a.currentSlide+a.cloneOffset;m&&!h?(a.container.height(200*(a.count+a.cloneCount)+"%").css("position","absolute").width("100%"), +setTimeout(function(){a.newSlides.css({display:"block"});a.doMath();a.viewport.height(a.h);a.setProps(g*a.h,"init")},"init"===b?100:0)):(a.container.width(200*(a.count+a.cloneCount)+"%"),a.setProps(g*a.computedW,"init"),setTimeout(function(){a.doMath();a.newSlides.css({width:a.computedW,"float":"left",display:"block"});c.smoothHeight&&f.smoothHeight()},"init"===b?100:0))}h||a.slides.removeClass(e+"active-slide").eq(a.currentSlide).addClass(e+"active-slide")};a.doMath=function(){var b=a.slides.first(), +d=c.itemMargin,e=c.minItems,f=c.maxItems;a.w=a.width();a.h=b.height();a.boxPadding=b.outerWidth()-b.width();h?(a.itemT=c.itemWidth+d,a.minW=e?e*a.itemT:a.w,a.maxW=f?f*a.itemT:a.w,a.itemW=a.minW>a.w?(a.w-d*e)/e:a.maxWa.w?a.w:c.itemWidth,a.visible=Math.floor(a.w/(a.itemW+d)),a.move=0a.w?(a.itemW+2*d)*a.count-a.w- +d:(a.itemW+d)*a.count-a.w-d):(a.itemW=a.w,a.pagingCount=a.count,a.last=a.count-1);a.computedW=a.itemW-a.boxPadding};a.update=function(b,d){a.doMath();h||(ba.controlNav.length)f.controlNav.update("add");else if("remove"===d&&!h||a.pagingCounta.last&&(a.currentSlide-=1,a.animatingTo-=1), +f.controlNav.update("remove",a.last);c.directionNav&&f.directionNav.update()};a.addSlide=function(b,e){var f=d(b);a.count+=1;a.last=a.count-1;m&&n?void 0!==e?a.slides.eq(a.count-e).after(f):a.container.prepend(f):void 0!==e?a.slides.eq(e).before(f):a.container.append(f);a.update(e,"add");a.slides=d(c.selector+":not(.clone)",a);a.setup();c.added(a)};a.removeSlide=function(b){var e=isNaN(b)?a.slides.index(d(b)):b;a.count-=1;a.last=a.count-1;isNaN(b)?d(b,a.slides).remove():m&&n?a.slides.eq(a.last).remove(): +a.slides.eq(b).remove();a.doMath();a.update(e,"remove");a.slides=d(c.selector+":not(.clone)",a);a.setup();c.removed(a)};f.init()};d.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7E3,animationSpeed:600,initDelay:0,randomize:!1,pauseOnAction:!0,pauseOnHover:!1,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next", +keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}};d.fn.flexslider=function(j){void 0===j&&(j={});if("object"===typeof j)return this.each(function(){var a=d(this),c=a.find(j.selector?j.selector:".slides > li");1===c.length?(c.fadeIn(400), +j.start&&j.start(a)):void 0==a.data("flexslider")&&new d.flexslider(this,j)});var l=d(this).data("flexslider");switch(j){case "play":l.play();break;case "pause":l.pause();break;case "next":l.flexAnimate(l.getTarget("next"),!0);break;case "prev":case "previous":l.flexAnimate(l.getTarget("prev"),!0);break;default:"number"===typeof j&&l.flexAnimate(j,!0)}}})(jQuery); + + + +/*! + * jQuery Superfish Menu Plugin - v1.7.4 + * Copyright (c) 2013 Joel Birch + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ +;(function(e){"use strict";var s=function(){var s={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},o=function(){var s=/iPhone|iPad|iPod/i.test(navigator.userAgent);return s&&e(window).load(function(){e("body").children().on("click",e.noop)}),s}(),n=function(){var e=document.documentElement.style;return"behavior"in e&&"fill"in e&&/iemobile/i.test(navigator.userAgent)}(),t=function(e,o){var n=s.menuClass;o.cssArrows&&(n+=" "+s.menuArrowClass),e.toggleClass(n)},i=function(o,n){return o.find("li."+n.pathClass).slice(0,n.pathLevels).addClass(n.hoverClass+" "+s.bcClass).filter(function(){return e(this).children(n.popUpSelector).hide().show().length}).removeClass(n.pathClass)},r=function(e){e.children("a").toggleClass(s.anchorClass)},a=function(e){var s=e.css("ms-touch-action");s="pan-y"===s?"auto":"pan-y",e.css("ms-touch-action",s)},l=function(s,t){var i="li:has("+t.popUpSelector+")";e.fn.hoverIntent&&!t.disableHI?s.hoverIntent(u,p,i):s.on("mouseenter.superfish",i,u).on("mouseleave.superfish",i,p);var r="MSPointerDown.superfish";o||(r+=" touchend.superfish"),n&&(r+=" mousedown.superfish"),s.on("focusin.superfish","li",u).on("focusout.superfish","li",p).on(r,"a",t,h)},h=function(s){var o=e(this),n=o.siblings(s.data.popUpSelector);n.length>0&&n.is(":hidden")&&(o.one("click.superfish",!1),"MSPointerDown"===s.type?o.trigger("focus"):e.proxy(u,o.parent("li"))())},u=function(){var s=e(this),o=d(s);clearTimeout(o.sfTimer),s.siblings().superfish("hide").end().superfish("show")},p=function(){var s=e(this),n=d(s);o?e.proxy(f,s,n)():(clearTimeout(n.sfTimer),n.sfTimer=setTimeout(e.proxy(f,s,n),n.delay))},f=function(s){s.retainPath=e.inArray(this[0],s.$path)>-1,this.superfish("hide"),this.parents("."+s.hoverClass).length||(s.onIdle.call(c(this)),s.$path.length&&e.proxy(u,s.$path)())},c=function(e){return e.closest("."+s.menuClass)},d=function(e){return c(e).data("sf-options")};return{hide:function(s){if(this.length){var o=this,n=d(o);if(!n)return this;var t=n.retainPath===!0?n.$path:"",i=o.find("li."+n.hoverClass).add(this).not(t).removeClass(n.hoverClass).children(n.popUpSelector),r=n.speedOut;s&&(i.show(),r=0),n.retainPath=!1,n.onBeforeHide.call(i),i.stop(!0,!0).animate(n.animationOut,r,function(){var s=e(this);n.onHide.call(s)})}return this},show:function(){var e=d(this);if(!e)return this;var s=this.addClass(e.hoverClass),o=s.children(e.popUpSelector);return e.onBeforeShow.call(o),o.stop(!0,!0).animate(e.animation,e.speed,function(){e.onShow.call(o)}),this},destroy:function(){return this.each(function(){var o,n=e(this),i=n.data("sf-options");return i?(o=n.find(i.popUpSelector).parent("li"),clearTimeout(i.sfTimer),t(n,i),r(o),a(n),n.off(".superfish").off(".hoverIntent"),o.children(i.popUpSelector).attr("style",function(e,s){return s.replace(/display[^;]+;?/g,"")}),i.$path.removeClass(i.hoverClass+" "+s.bcClass).addClass(i.pathClass),n.find("."+i.hoverClass).removeClass(i.hoverClass),i.onDestroy.call(n),n.removeData("sf-options"),void 0):!1})},init:function(o){return this.each(function(){var n=e(this);if(n.data("sf-options"))return!1;var h=e.extend({},e.fn.superfish.defaults,o),u=n.find(h.popUpSelector).parent("li");h.$path=i(n,h),n.data("sf-options",h),t(n,h),r(u),a(n),l(n,h),u.not("."+s.bcClass).superfish("hide",!0),h.onInit.call(this)})}}}();e.fn.superfish=function(o){return s[o]?s[o].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof o&&o?e.error("Method "+o+" does not exist on jQuery.fn.superfish"):s.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop},e.fn.extend({hideSuperfishUl:s.hide,showSuperfishUl:s.show})})(jQuery); + + + +/*! + * jQuery MeanMenu v2.0.6 + * @Copyright (C) 2012-2013 Chris Wharton (https://github.com/weare2ndfloor/meanMenu) + */ +!function(e){"use strict";e.fn.meanmenu=function(n){var a={meanMenuTarget:jQuery(this),meanMenuContainer:"body",meanMenuClose:"",meanMenuCloseSize:"18px",meanMenuOpen:"",meanRevealPosition:"right",meanRevealPositionDistance:"0",meanRevealColour:"",meanRevealHoverColour:"",meanScreenWidth:"767",meanNavPush:"",meanShowChildren:!0,meanExpandableChildren:!0,meanExpand:"",meanContract:"",meanRemoveAttrs:!1,onePage:!1,removeElements:""},n=e.extend(a,n),t=window.innerWidth||document.documentElement.clientWidth;return this.each(function(){function e(){if("center"==c){var e=window.innerWidth||document.documentElement.clientWidth,n=e/2-22+"px";P="left:"+n+";right:auto;",A?jQuery(".meanmenu-reveal").animate({left:n}):jQuery(".meanmenu-reveal").css("left",n)}}function a(){jQuery(W).is(".meanmenu-reveal.meanclose")?W.html(o):W.html(s)}function r(){jQuery(".mean-bar,.mean-push").remove(),jQuery(m).removeClass("mean-container"),jQuery(u).show(),E=!1,M=!1,jQuery(x).removeClass("mean-remove")}function i(){if(d>=t){jQuery(x).addClass("mean-remove"),M=!0,jQuery(m).addClass("mean-container"),jQuery(".mean-container").prepend('');var e=jQuery(u).html();jQuery(".mean-nav").html(e),C&&jQuery("nav.mean-nav ul, nav.mean-nav ul *").each(function(){jQuery(this).removeAttr("class"),jQuery(this).removeAttr("id")}),jQuery(u).before('
    '),jQuery(".mean-push").css("margin-top",y),jQuery(u).hide(),jQuery(".meanmenu-reveal").show(),jQuery(j).html(s),W=jQuery(j),jQuery(".mean-nav ul").hide(),Q?f?(jQuery(".mean-nav ul ul").each(function(){jQuery(this).children().length&&jQuery(this,"li:first").parent().append(''+g+"")}),jQuery(".mean-expand").on("click",function(e){e.preventDefault(),jQuery(this).hasClass("mean-clicked")?(jQuery(this).text(g),jQuery(this).prev("ul").slideUp(300,function(){})):(jQuery(this).text(p),jQuery(this).prev("ul").slideDown(300,function(){})),jQuery(this).toggleClass("mean-clicked")})):jQuery(".mean-nav ul ul").show():jQuery(".mean-nav ul ul").hide(),jQuery(".mean-nav ul li").last().addClass("mean-last"),W.removeClass("meanclose"),jQuery(W).click(function(e){e.preventDefault(),0==E?(W.css("text-align","center"),W.css("text-indent","0"),W.css("font-size",l),jQuery(".mean-nav ul:first").slideDown(),E=!0):(jQuery(".mean-nav ul:first").slideUp(),E=!1),W.toggleClass("meanclose"),a(),jQuery(x).addClass("mean-remove")}),w&&jQuery(".mean-nav ul > li > a:first-child").on("click",function(){jQuery(".mean-nav ul:first").slideUp(),E=!1,jQuery(W).toggleClass("meanclose").html(s)})}else r()}var u=n.meanMenuTarget,m=n.meanMenuContainer;n.meanReveal;var o=n.meanMenuClose,l=n.meanMenuCloseSize,s=n.meanMenuOpen,c=n.meanRevealPosition,v=n.meanRevealPositionDistance,h=n.meanRevealColour;n.meanRevealHoverColour;var d=n.meanScreenWidth,y=n.meanNavPush,j=".meanmenu-reveal",Q=n.meanShowChildren,f=n.meanExpandableChildren,g=n.meanExpand,p=n.meanContract,C=n.meanRemoveAttrs,w=n.onePage,x=n.removeElements;if(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/Blackberry/i)||navigator.userAgent.match(/Windows Phone/i))var A=!0;(navigator.userAgent.match(/MSIE 8/i)||navigator.userAgent.match(/MSIE 7/i))&&jQuery("html").css("overflow-y","scroll");var E=!1,M=!1;if("right"==c&&(P="right:"+v+";left:auto;"),"left"==c)var P="left:"+v+";right:auto;";e();var R="background:"+h+";color:"+h+";"+P,W="";A||jQuery(window).resize(function(){t=window.innerWidth||document.documentElement.clientWidth,t>d?r():r(),d>=t?(i(),e()):r()}),window.onorientationchange=function(){e(),t=window.innerWidth||document.documentElement.clientWidth,t>=d&&r(),d>=t&&0==M&&i()},i()})}}(jQuery); \ No newline at end of file diff --git a/wp-content/themes/acute/assets/js/custom.js b/wp-content/themes/acute/assets/js/custom.js new file mode 100644 index 0000000..0ee892e --- /dev/null +++ b/wp-content/themes/acute/assets/js/custom.js @@ -0,0 +1,171 @@ +// IF JS IS ENABLED, REMOVE 'no-js' AND ADD 'js' CLASS +jQuery('html').removeClass('no-js').addClass('js'); + +jQuery(document).ready(function($) { + //FITVIDS + $("body").fitVids(); + + //AUTOHEIGHT TEXTAREA + jQuery('textarea.auto-height').flexText(); + + //FORM VALIDATION + if (jQuery().validate) { jQuery("#commentform").validate(); } + + //DROPDOWNS - SUPERFISH + $('#primary-nav > ul') + .superfish({ + delay: 200, + animation: {opacity:'show', height:'show'}, + speed: 'fast', + disableHI: true, + cssArrows: false, + }); + + //RESPONSIVE MENU + $('header nav').meanmenu(); + + //IPAD PANEL TRIGGER TOUCH + //CLICK EVENTS + var ua = navigator.userAgent, + clickevent = (ua.match(/iPad/i) || ua.match(/iPhone/i) || ua.match(/Android/i)) ? "touchstart" : "click"; + console.log(clickevent); + + //TOGGLES + $(document).on(clickevent, '.toggle', function(event){ + event.preventDefault(); + if ($('#panel').hasClass('panel-open')) { + closeMenu(); + } else { + openMenu(); + } + }); + + //OPEN + function openMenu(){ + $('#panel').addClass('panel-open'); + } + + //CLOSE + function closeMenu(){ + $('#panel').removeClass('panel-open'); + } + + //UI TO TOP + jQuery().UItoTop({ + text: '', + easingType: 'easeOutQuart' + }); + + //ISOTOPE MAIN + var $container = $('#isotope-container'); + $container.imagesLoaded( function(){ + $container.isotope({ + itemSelector: '.isotope-item', + layoutMode : 'fitRows', + resizesContainer: true + }); + + //ISOTOPE FILTER + $(function(){ + var $container = $('#isotope-container'); + optionFilter = jQuery('#filter'), + optionFilterLinks = optionFilter.find('a'); + + optionFilterLinks.attr('href', '#'); + + optionFilterLinks.click(function(){ + var selector = jQuery(this).attr('data-filter'); + $container.imagesLoaded( function(){ + $container.isotope({ + filter : '.' + selector, + itemSelector : '.isotope-item', + resizesContainer: true, + }); + }); + optionFilterLinks.removeClass('active'); + jQuery(this).addClass('active'); + return false; + }); + }); + + }); + +}); + +/*=================================*/ +/* ADD CLASS TO EACH CHARACTER - FOOTER COUNTER +/*=================================*/ +(function ($) { + $.fn.CharIterator = function (options) { + var defaults = { + skip_spaces: true, + before: '', + after: '' + }; + + var opts = $.extend({}, defaults, options); + + var trim = function (text) { + return text.replace(/^\s+/g, '').replace(/\s+$/g, ''); + }; + + return this.each(function () { + var $this = $(this); + + var chars = jQuery.map($this.text().split(''), function (c) { + if (trim(c) != '' || !opts.skip_spaces) { + return opts.before + c + opts.after; + } + return c; + }); + $this.html(chars.join('')); + }); + }; +})(jQuery); + +(function ($) { + $('span.numbers').CharIterator({}); +})(jQuery); + + +/* ---------------------------------------------------------------------- */ +/* BEAN ANNOUNCEMENT BAR - THEME OPTIONS +/* ---------------------------------------------------------------------- */ +jQuery(document).ready(function($) { + if( $.cookie('bean_announcement_cookie') == null && $("#bean_announcement").hasClass('load-announcement') ) { + $("#bean_announcement").css({'top' : '0px'}); + $("#header").css({paddingTop : '105px'}); + $("#bean_announcement .close-btn").addClass('open'); + $("#bean_announcement .close-btn").removeClass('closed'); + $("#bean_announcement .close-btn").css("display", "block"); + $("#bean_announcement .openbtn").css("display", "none"); + $("#panel .toggle").addClass('announcement'); + }; + + if($.cookie('bean_announcement_cookie') == 'closed') { + $("#bean_announcement").css({'top' : '-70px'}); + $("#header").css({paddingTop : '40px'}); + $("#bean_announcement .close-btn").addClass('closed'); + $("#bean_announcement .close-btn").removeClass('open'); + $("#bean_announcement .close-btn").css("display", "none"); + }; + + if($.cookie('bean_announcement_cookie') == 'open') { + $("#bean_announcement").css({'top' : '0px'}); + $("#header").css({paddingTop : '70px'}); + $("#bean_announcement .close-btn").addClass('open'); + $("#bean_announcement .close-btn").removeClass('closed'); + $("#bean_announcement .close-btn").css("display", "block"); + }; + + $("#bean_announcement .close-btn").click(function(){ + $("#bean_announcement").animate({'top' : '-70px'}, 200); + $("#header").animate({paddingTop : '40px'}, 200); + $("#panel div.toggle.announcement").animate({'top' : '42px'}, 200); + $("#bean_announcement .close-btn").addClass('closed'); + $("#bean_announcement .close-btn").removeClass('open'); + $(this).css("display", "none"); + $.cookie('bean_announcement_cookie', 'closed', { expires: 1, path: '/' }); + }); + +}); \ No newline at end of file diff --git a/wp-content/themes/acute/assets/js/jplayer.swf b/wp-content/themes/acute/assets/js/jplayer.swf new file mode 100644 index 0000000..4d50c86 Binary files /dev/null and b/wp-content/themes/acute/assets/js/jplayer.swf differ diff --git a/wp-content/themes/acute/assets/js/jquery.fitvids.js b/wp-content/themes/acute/assets/js/jquery.fitvids.js new file mode 100644 index 0000000..a8551f6 --- /dev/null +++ b/wp-content/themes/acute/assets/js/jquery.fitvids.js @@ -0,0 +1,74 @@ +/*global jQuery */ +/*jshint multistr:true browser:true */ +/*! +* FitVids 1.0.3 +* +* Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com +* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ +* Released under the WTFPL license - http://sam.zoy.org/wtfpl/ +* +* Date: Thu Sept 01 18:00:00 2011 -0500 +*/ + +(function( $ ){ + + "use strict"; + + $.fn.fitVids = function( options ) { + var settings = { + customSelector: null + }; + + if(!document.getElementById('fit-vids-style')) { + + var div = document.createElement('div'), + ref = document.getElementsByTagName('base')[0] || document.getElementsByTagName('script')[0], + cssStyles = '­'; + + div.className = 'fit-vids-style'; + div.id = 'fit-vids-style'; + div.style.display = 'none'; + div.innerHTML = cssStyles; + + ref.parentNode.insertBefore(div,ref); + + } + + if ( options ) { + $.extend( settings, options ); + } + + return this.each(function(){ + var selectors = [ + "iframe[src*='player.vimeo.com']", + "iframe[src*='youtube.com']", + "iframe[src*='youtube-nocookie.com']", + "iframe[src*='kickstarter.com'][src*='video.html']", + "object", + "embed" + ]; + + if (settings.customSelector) { + selectors.push(settings.customSelector); + } + + var $allVideos = $(this).find(selectors.join(',')); + $allVideos = $allVideos.not("object object"); // SwfObj conflict patch + + $allVideos.each(function(){ + var $this = $(this); + if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } + var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), + width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), + aspectRatio = height / width; + if(!$this.attr('id')){ + var videoID = 'fitvid' + Math.floor(Math.random()*999999); + $this.attr('id', videoID); + } + $this.wrap('
    ').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+"%"); + $this.removeAttr('height').removeAttr('width'); + }); + }); + }; +// Works with either jQuery or Zepto +})( window.jQuery || window.Zepto ); diff --git a/wp-content/themes/acute/assets/js/jquery.validate.min.js b/wp-content/themes/acute/assets/js/jquery.validate.min.js new file mode 100644 index 0000000..edd6452 --- /dev/null +++ b/wp-content/themes/acute/assets/js/jquery.validate.min.js @@ -0,0 +1,51 @@ +/** + * jQuery Validation Plugin 1.9.0 + * + * http://bassistance.de/jquery-plugins/jquery-plugin-validation/ + * http://docs.jquery.com/Plugins/Validation + * + * Copyright (c) 2006 - 2011 Jörn Zaefferer + * + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ +(function(c){c.extend(c.fn,{validate:function(a){if(this.length){var b=c.data(this[0],"validator");if(b)return b;this.attr("novalidate","novalidate");b=new c.validator(a,this[0]);c.data(this[0],"validator",b);if(b.settings.onsubmit){a=this.find("input, button");a.filter(".cancel").click(function(){b.cancelSubmit=true});b.settings.submitHandler&&a.filter(":submit").click(function(){b.submitButton=this});this.submit(function(d){function e(){if(b.settings.submitHandler){if(b.submitButton)var f=c("").attr("name", +b.submitButton.name).val(b.submitButton.value).appendTo(b.currentForm);b.settings.submitHandler.call(b,b.currentForm);b.submitButton&&f.remove();return false}return true}b.settings.debug&&d.preventDefault();if(b.cancelSubmit){b.cancelSubmit=false;return e()}if(b.form()){if(b.pendingRequest){b.formSubmitted=true;return false}return e()}else{b.focusInvalid();return false}})}return b}else a&&a.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(c(this[0]).is("form"))return this.validate().form(); +else{var a=true,b=c(this[0].form).validate();this.each(function(){a&=b.element(this)});return a}},removeAttrs:function(a){var b={},d=this;c.each(a.split(/\s/),function(e,f){b[f]=d.attr(f);d.removeAttr(f)});return b},rules:function(a,b){var d=this[0];if(a){var e=c.data(d.form,"validator").settings,f=e.rules,g=c.validator.staticRules(d);switch(a){case "add":c.extend(g,c.validator.normalizeRule(b));f[d.name]=g;if(b.messages)e.messages[d.name]=c.extend(e.messages[d.name],b.messages);break;case "remove":if(!b){delete f[d.name]; +return g}var h={};c.each(b.split(/\s/),function(j,i){h[i]=g[i];delete g[i]});return h}}d=c.validator.normalizeRules(c.extend({},c.validator.metadataRules(d),c.validator.classRules(d),c.validator.attributeRules(d),c.validator.staticRules(d)),d);if(d.required){e=d.required;delete d.required;d=c.extend({required:e},d)}return d}});c.extend(c.expr[":"],{blank:function(a){return!c.trim(""+a.value)},filled:function(a){return!!c.trim(""+a.value)},unchecked:function(a){return!a.checked}});c.validator=function(a, +b){this.settings=c.extend(true,{},c.validator.defaults,a);this.currentForm=b;this.init()};c.validator.format=function(a,b){if(arguments.length==1)return function(){var d=c.makeArray(arguments);d.unshift(a);return c.validator.format.apply(this,d)};if(arguments.length>2&&b.constructor!=Array)b=c.makeArray(arguments).slice(1);if(b.constructor!=Array)b=[b];c.each(b,function(d,e){a=a.replace(RegExp("\\{"+d+"\\}","g"),e)});return a};c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error", +validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:true,ignore:":hidden",ignoreTitle:false,onfocusin:function(a){this.lastActive=a;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(a)).hide()}},onfocusout:function(a){if(!this.checkable(a)&&(a.name in this.submitted||!this.optional(a)))this.element(a)}, +onkeyup:function(a){if(a.name in this.submitted||a==this.lastElement)this.element(a)},onclick:function(a){if(a.name in this.submitted)this.element(a);else a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(a,b,d){a.type==="radio"?this.findByName(a.name).addClass(b).removeClass(d):c(a).addClass(b).removeClass(d)},unhighlight:function(a,b,d){a.type==="radio"?this.findByName(a.name).removeClass(b).addClass(d):c(a).removeClass(b).addClass(d)}},setDefaults:function(a){c.extend(c.validator.defaults, +a)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:c.validator.format("Please enter no more than {0} characters."), +minlength:c.validator.format("Please enter at least {0} characters."),rangelength:c.validator.format("Please enter a value between {0} and {1} characters long."),range:c.validator.format("Please enter a value between {0} and {1}."),max:c.validator.format("Please enter a value less than or equal to {0}."),min:c.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){function a(e){var f=c.data(this[0].form,"validator"),g="on"+e.type.replace(/^validate/, +"");f.settings[g]&&f.settings[g].call(f,this[0],e)}this.labelContainer=c(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||c(this.currentForm);this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=this.groups={};c.each(this.settings.groups,function(e,f){c.each(f.split(/\s/),function(g,h){b[h]=e})});var d= +this.settings.rules;c.each(d,function(e,f){d[e]=c.validator.normalizeRule(f)});c(this.currentForm).validateDelegate("[type='text'], [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'] ","focusin focusout keyup",a).validateDelegate("[type='radio'], [type='checkbox'], select, option","click", +a);this.settings.invalidHandler&&c(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){this.checkForm();c.extend(this.submitted,this.errorMap);this.invalid=c.extend({},this.errorMap);this.valid()||c(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(a){this.lastElement= +a=this.validationTargetFor(this.clean(a));this.prepareElement(a);this.currentElements=c(a);var b=this.check(a);if(b)delete this.invalid[a.name];else this.invalid[a.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();return b},showErrors:function(a){if(a){c.extend(this.errorMap,a);this.errorList=[];for(var b in a)this.errorList.push({message:a[b],element:this.findByName(b)[0]});this.successList=c.grep(this.successList,function(d){return!(d.name in a)})}this.settings.showErrors? +this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm();this.submitted={};this.lastElement=null;this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0,d;for(d in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()== +0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var a=this.lastActive;return a&&c.grep(this.errorList,function(b){return b.element.name==a.name}).length==1&&a},elements:function(){var a=this,b={};return c(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&& +a.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!a.objectLength(c(this).rules()))return false;return b[this.name]=true})},clean:function(a){return c(a)[0]},errors:function(){return c(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=c([]);this.toHide=c([]);this.currentElements=c([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)}, +prepareElement:function(a){this.reset();this.toHide=this.errorsFor(a)},check:function(a){a=this.validationTargetFor(this.clean(a));var b=c(a).rules(),d=false,e;for(e in b){var f={method:e,parameters:b[e]};try{var g=c.validator.methods[e].call(this,a.value.replace(/\r/g,""),a,f.parameters);if(g=="dependency-mismatch")d=true;else{d=false;if(g=="pending"){this.toHide=this.toHide.not(this.errorsFor(a));return}if(!g){this.formatAndAdd(a,f);return false}}}catch(h){this.settings.debug&&window.console&&console.log("exception occured when checking element "+ +a.id+", check the '"+f.method+"' method",h);throw h;}}if(!d){this.objectLength(b)&&this.successList.push(a);return true}},customMetaMessage:function(a,b){if(c.metadata){var d=this.settings.meta?c(a).metadata()[this.settings.meta]:c(a).metadata();return d&&d.messages&&d.messages[b]}},customMessage:function(a,b){var d=this.settings.messages[a];return d&&(d.constructor==String?d:d[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+a.name+"")},formatAndAdd:function(a,b){var d=this.defaultMessage(a,b.method),e=/\$?\{(\d+)\}/g;if(typeof d=="function")d=d.call(this,b.parameters,a);else if(e.test(d))d=jQuery.format(d.replace(e,"{$1}"),b.parameters);this.errorList.push({message:d,element:a});this.errorMap[a.name]=d;this.submitted[a.name]= +d},addWrapper:function(a){if(this.settings.wrapper)a=a.add(a.parent(this.settings.wrapper));return a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]); +if(this.settings.unhighlight){a=0;for(b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass)}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return c(this.errorList).map(function(){return this.element})},showLabel:function(a,b){var d=this.errorsFor(a);if(d.length){d.removeClass(this.settings.validClass).addClass(this.settings.errorClass); +d.attr("generated")&&d.html(b)}else{d=c("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(a),generated:true}).addClass(this.settings.errorClass).html(b||"");if(this.settings.wrapper)d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,c(a)):d.insertAfter(a))}if(!b&&this.settings.success){d.text("");typeof this.settings.success=="string"?d.addClass(this.settings.success):this.settings.success(d)}this.toShow= +this.toShow.add(d)},errorsFor:function(a){var b=this.idOrName(a);return this.errors().filter(function(){return c(this).attr("for")==b})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(a){if(this.checkable(a))a=this.findByName(a.name).not(this.settings.ignore)[0];return a},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(a){var b=this.currentForm;return c(document.getElementsByName(a)).map(function(d, +e){return e.form==b&&e.name==a&&e||null})},getLength:function(a,b){switch(b.nodeName.toLowerCase()){case "select":return c("option:selected",b).length;case "input":if(this.checkable(b))return this.findByName(b.name).filter(":checked").length}return a.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):true},dependTypes:{"boolean":function(a){return a},string:function(a,b){return!!c(a,b.form).length},"function":function(a,b){return a(b)}},optional:function(a){return!c.validator.methods.required.call(this, +c.trim(a.value),a)&&"dependency-mismatch"},startRequest:function(a){if(!this.pending[a.name]){this.pendingRequest++;this.pending[a.name]=true}},stopRequest:function(a,b){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[a.name];if(b&&this.pendingRequest==0&&this.formSubmitted&&this.form()){c(this.currentForm).submit();this.formSubmitted=false}else if(!b&&this.pendingRequest==0&&this.formSubmitted){c(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted= +false}},previousValue:function(a){return c.data(a,"previousValue")||c.data(a,"previousValue",{old:null,valid:true,message:this.defaultMessage(a,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(a,b){a.constructor==String?this.classRuleSettings[a]=b:c.extend(this.classRuleSettings, +a)},classRules:function(a){var b={};(a=c(a).attr("class"))&&c.each(a.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(b,c.validator.classRuleSettings[this])});return b},attributeRules:function(a){var b={};a=c(a);for(var d in c.validator.methods){var e;if(e=d==="required"&&typeof c.fn.prop==="function"?a.prop(d):a.attr(d))b[d]=e;else if(a[0].getAttribute("type")===d)b[d]=true}b.maxlength&&/-1|2147483647|524288/.test(b.maxlength)&&delete b.maxlength;return b},metadataRules:function(a){if(!c.metadata)return{}; +var b=c.data(a.form,"validator").settings.meta;return b?c(a).metadata()[b]:c(a).metadata()},staticRules:function(a){var b={},d=c.data(a.form,"validator");if(d.settings.rules)b=c.validator.normalizeRule(d.settings.rules[a.name])||{};return b},normalizeRules:function(a,b){c.each(a,function(d,e){if(e===false)delete a[d];else if(e.param||e.depends){var f=true;switch(typeof e.depends){case "string":f=!!c(e.depends,b.form).length;break;case "function":f=e.depends.call(b,b)}if(f)a[d]=e.param!==undefined? +e.param:true;else delete a[d]}});c.each(a,function(d,e){a[d]=c.isFunction(e)?e(b):e});c.each(["minlength","maxlength","min","max"],function(){if(a[this])a[this]=Number(a[this])});c.each(["rangelength","range"],function(){if(a[this])a[this]=[Number(a[this][0]),Number(a[this][1])]});if(c.validator.autoCreateRanges){if(a.min&&a.max){a.range=[a.min,a.max];delete a.min;delete a.max}if(a.minlength&&a.maxlength){a.rangelength=[a.minlength,a.maxlength];delete a.minlength;delete a.maxlength}}a.messages&&delete a.messages; +return a},normalizeRule:function(a){if(typeof a=="string"){var b={};c.each(a.split(/\s/),function(){b[this]=true});a=b}return a},addMethod:function(a,b,d){c.validator.methods[a]=b;c.validator.messages[a]=d!=undefined?d:c.validator.messages[a];b.length<3&&c.validator.addClassRules(a,c.validator.normalizeRule(a))},methods:{required:function(a,b,d){if(!this.depend(d,b))return"dependency-mismatch";switch(b.nodeName.toLowerCase()){case "select":return(a=c(b).val())&&a.length>0;case "input":if(this.checkable(b))return this.getLength(a, +b)>0;default:return c.trim(a).length>0}},remote:function(a,b,d){if(this.optional(b))return"dependency-mismatch";var e=this.previousValue(b);this.settings.messages[b.name]||(this.settings.messages[b.name]={});e.originalMessage=this.settings.messages[b.name].remote;this.settings.messages[b.name].remote=e.message;d=typeof d=="string"&&{url:d}||d;if(this.pending[b.name])return"pending";if(e.old===a)return e.valid;e.old=a;var f=this;this.startRequest(b);var g={};g[b.name]=a;c.ajax(c.extend(true,{url:d, +mode:"abort",port:"validate"+b.name,dataType:"json",data:g,success:function(h){f.settings.messages[b.name].remote=e.originalMessage;var j=h===true;if(j){var i=f.formSubmitted;f.prepareElement(b);f.formSubmitted=i;f.successList.push(b);f.showErrors()}else{i={};h=h||f.defaultMessage(b,"remote");i[b.name]=e.message=c.isFunction(h)?h(a):h;f.showErrors(i)}e.valid=j;f.stopRequest(b,j)}},d));return"pending"},minlength:function(a,b,d){return this.optional(b)||this.getLength(c.trim(a),b)>=d},maxlength:function(a, +b,d){return this.optional(b)||this.getLength(c.trim(a),b)<=d},rangelength:function(a,b,d){a=this.getLength(c.trim(a),b);return this.optional(b)||a>=d[0]&&a<=d[1]},min:function(a,b,d){return this.optional(b)||a>=d},max:function(a,b,d){return this.optional(b)||a<=d},range:function(a,b,d){return this.optional(b)||a>=d[0]&&a<=d[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(a)}, +url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)}, +date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 -]+/.test(a))return false;var d=0,e=0,f=false;a=a.replace(/\D/g,"");for(var g=a.length-1;g>= +0;g--){e=a.charAt(g);e=parseInt(e,10);if(f)if((e*=2)>9)e-=9;d+=e;f=!f}return d%10==0},accept:function(a,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||a.match(RegExp(".("+d+")$","i"))},equalTo:function(a,b,d){d=c(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){c(b).valid()});return a==d.val()}}});c.format=c.validator.format})(jQuery); +(function(c){var a={};if(c.ajaxPrefilter)c.ajaxPrefilter(function(d,e,f){e=d.port;if(d.mode=="abort"){a[e]&&a[e].abort();a[e]=f}});else{var b=c.ajax;c.ajax=function(d){var e=("port"in d?d:c.ajaxSettings).port;if(("mode"in d?d:c.ajaxSettings).mode=="abort"){a[e]&&a[e].abort();return a[e]=b.apply(this,arguments)}return b.apply(this,arguments)}}})(jQuery); +(function(c){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)},handler:function(e){arguments[0]=c.event.fix(e);arguments[0].type=b;return c.event.handle.apply(this,arguments)}}});c.extend(c.fn,{validateDelegate:function(a, +b,d){return this.bind(b,function(e){var f=c(e.target);if(f.is(a))return d.apply(f,arguments)})}})})(jQuery); diff --git a/wp-content/themes/acute/assets/js/retina.js b/wp-content/themes/acute/assets/js/retina.js new file mode 100644 index 0000000..a926142 --- /dev/null +++ b/wp-content/themes/acute/assets/js/retina.js @@ -0,0 +1,3 @@ +// retina.js, a high-resolution image swapper (http://retinajs.com), v0.0.2 + +(function(){function t(e){this.path=e;var t=this.path.split("."),n=t.slice(0,t.length-1).join("."),r=t[t.length-1];this.at_2x_path=n+"@2x."+r}function n(e){this.el=e,this.path=new t(this.el.getAttribute("src"));var n=this;this.path.check_2x_variant(function(e){e&&n.swap()})}var e=typeof exports=="undefined"?window:exports;e.RetinaImagePath=t,t.confirmed_paths=[],t.prototype.is_external=function(){return!!this.path.match(/^https?\:/i)&&!this.path.match("//"+document.domain)},t.prototype.check_2x_variant=function(e){var n,r=this;if(this.is_external())return e(!1);if(this.at_2x_path in t.confirmed_paths)return e(!0);n=new XMLHttpRequest,n.open("HEAD",this.at_2x_path),n.onreadystatechange=function(){return n.readyState!=4?e(!1):n.status>=200&&n.status<=399?(t.confirmed_paths.push(r.at_2x_path),e(!0)):e(!1)},n.send()},e.RetinaImage=n,n.prototype.swap=function(e){function n(){t.el.complete?(t.el.setAttribute("width",t.el.offsetWidth),t.el.setAttribute("height",t.el.offsetHeight),t.el.setAttribute("src",e)):setTimeout(n,5)}typeof e=="undefined"&&(e=this.path.at_2x_path);var t=this;n()},e.devicePixelRatio>1&&(window.onload=function(){var e=document.getElementsByTagName("img"),t=[],r,i;for(r=0;r0){var a=l,f,e=s.substring(0,e).replace(H,i);if(e==i||e.charAt(e.length-1)==o)e+="*";try{f=t(e)}catch(k){}if(f){e=0;for(c=f.length;e-1&&(a=a.substring(0,l));if(a.charAt(0)==":")switch(a.slice(1)){case "root":c=function(a){return b?a!=p:a==p};break;case "target":if(m==8){c=function(a){function c(){var d=location.hash,e=d.slice(1);return b?d==i||a.id!=e:d!=i&&a.id==e}k(j,"hashchange",function(){g(a,d,c())});return c()};break}return!1;case "checked":c=function(a){J.test(a.type)&&k(a,"propertychange",function(){event.propertyName=="checked"&&g(a,d,a.checked!==b)});return a.checked!==b};break;case "disabled":b=!b;case "enabled":c=function(c){if(K.test(c.tagName))return k(c,"propertychange",function(){event.propertyName=="$disabled"&&g(c,d,c.a===b)}),q.push(c),c.a=c.disabled,c.disabled===b;return a==":enabled"?b:!b};break;case "focus":e="focus",f="blur";case "hover":e||(e="mouseenter",f="mouseleave");c=function(a){k(a,b?f:e,function(){g(a,d,!0)});k(a,b?e:f,function(){g(a,d,!1)});return b};break;default:if(!L.test(a))return!1}return{className:d,b:c}}function w(a){return M+"-"+(m==6&&N?O++:a.replace(P,function(a){return a.charCodeAt(0)}))}function D(a){return a.replace(x,h).replace(Q,o)}function g(a,c,d){var b=a.className,c=u(b,c,d);if(c!=b)a.className=c,a.parentNode.className+=i}function u(a,c,d){var b=RegExp("(^|\\s)"+c+"(\\s|$)"),e=b.test(a);return d?e?a:a+o+c:e?a.replace(b,h).replace(x,h):a}function k(a,c,d){a.attachEvent("on"+c,d)}function r(a,c){if(/^https?:\/\//i.test(a))return c.substring(0,c.indexOf("/",8))==a.substring(0,a.indexOf("/",8))?a:null;if(a.charAt(0)=="/")return c.substring(0,c.indexOf("/",8))+a;var d=c.split(/[?#]/)[0];a.charAt(0)!="?"&&d.charAt(d.length-1)!="/"&&(d=d.substring(0,d.lastIndexOf("/")+1));return d+a}function y(a){if(a)return n.open("GET",a,!1),n.send(),(n.status==200?n.responseText:i).replace(R,i).replace(S,function(c,d,b,e,f){return y(r(b||f,a))}).replace(T,function(c,d,b){d=d||i;return" url("+d+r(b,a)+d+") "});return i}function U(){var a,c;a=f.getElementsByTagName("BASE");for(var d=a.length>0?a[0].href:f.location.href,b=0;b0&&setInterval(function(){for(var a=0,c=q.length;a8||!n)){var z={NW:"*.Dom.select",MooTools:"$$",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",Sizzle:"*",jQuery:"*",dojo:"*.query"},t,q=[],O=0,N=!0,M="slvzr",R=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,S=/@import\s*(?:(?:(?:url\(\s*(['"]?)(.*)\1)\s*\))|(?:(['"])(.*)\3))[^;]*;/g,T=/\burl\(\s*(["']?)(?!data:)([^"')]+)\1\s*\)/g,L=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/,B=/:(:first-(?:line|letter))/g,C=/(^|})\s*([^\{]*?[\[:][^{]+)/g,G=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g,H=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g,P=/[^\w-]/g,K=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/,J=/^(checkbox|radio)$/,v=m>6?/[\$\^*]=(['"])\1/:null,E=/([(\[+~])\s+/g,F=/\s+([)\]+~])/g,Q=/\s+/g,x=/^\s*((?:[\S\s]*\S)?)\s*$/,i="",o=" ",h="$1";(function(a,c){function d(){try{p.doScroll("left")}catch(a){setTimeout(d,50);return}b("poll")}function b(d){if(!(d.type=="readystatechange"&&f.readyState!="complete")&&((d.type=="load"?a:f).detachEvent("on"+d.type,b,!1),!e&&(e=!0)))c.call(a,d.type||d)}var e=!1,g=!0;if(f.readyState=="complete")c.call(a,i);else{if(f.createEventObject&&p.doScroll){try{g=!a.frameElement}catch(h){}g&&d()}k(f,"readystatechange",b);k(a,"load",b)}})(j,function(){for(var a in z){var c,d,b=j;if(j[a]){for(c=z[a].replace("*",a).split(".");(d=c.shift())&&(b=b[d]););if(typeof b=="function"){t=b;U();break}}}})}}})(this); \ No newline at end of file diff --git a/wp-content/themes/acute/assets/js/theme-customizer.js b/wp-content/themes/acute/assets/js/theme-customizer.js new file mode 100644 index 0000000..dd2e174 --- /dev/null +++ b/wp-content/themes/acute/assets/js/theme-customizer.js @@ -0,0 +1,30 @@ +/** + * This file adds some LIVE to the Theme Customizer live preview. To leverage + * this, set your custom settings to 'postMessage' and then add your handling + * here. Your javascript should grab settings from customizer controls, and + * then make any necessary changes to the page using jQuery. + */ +( function( $ ) { + + // Update the site title in real time... + wp.customize( 'blogname', function( value ) { + value.bind( function( newval ) { + $( '#logo_text' ).html( newval ); + } ); + } ); + + //Update the site description in real time... + wp.customize( 'header_tagline', function( value ) { + value.bind( function( newval ) { + $( '.header-tagline' ).html( newval ); + } ); + } ); + + //Update the site description in real time... + wp.customize( 'footer_copyright', function( value ) { + value.bind( function( newval ) { + $( '.copyright' ).html( newval ); + } ); + } ); + +} )( jQuery ); diff --git a/wp-content/themes/acute/changelog.txt b/wp-content/themes/acute/changelog.txt new file mode 100644 index 0000000..f0da3a8 --- /dev/null +++ b/wp-content/themes/acute/changelog.txt @@ -0,0 +1,157 @@ +/*===================================================================*/ +/* ACUTE CHANGELOG - DEMO.THEMEBEANS.COM/ACUTE +/*===================================================================*/ + +DEC 13 2013 - Version 2.0.1 + *WP 3.8 Patches + -lib/functions/theme-functions.php (custom login logo fix - line 121) + *Bean Tweets 2.0 Compatibility + -style.css (lines 3273-3348) + -assets/css/mobile.css (line 630, 649-650) + -lib/functions/customizer-css.php (line 63) + *Performance & Maintenance + -style.css (version number) + +NOV 14 2013 - Version 2.0 + *This is a major update to Acute - please backup and update with caution! This is not an incremental update, as the framework and theme as a whole has been brought up to meet web standards of today. + - There have been about 68 changed files, 2447 additions and 8651 deletions. + - Theme Customizer implementation (for colors and custom CSS) - no longer in the Options Panel + - Added JS validation on post comments + - New Contact Template (JS Validation) + - New Contact w/ Sidebar Templates (Standard, Right and Left Templates) + - Removed the built in forms plugin (Too many complications with WP 3.7+) + - Added support for Contact Form 7 Plugin (So much better!) + - Brand new mobile menu system that is yields a much higher performance. + - Post thumbnail updates so you can have any height of an image without any trouble. + - Added support for separate portfolio pages based on tags + - WP Editor CSS styles support + - Bean Pricing Table Compatibility + - Removed Social Widget in lieu of Bean Social Plugin Compatibility + - Enhanced menus with SuperFish + - Updated Fitvids for responsive embedded videos + - All stylesheets reflect updated browser requirements + - Updated some styles to reflect changing trends in design since April's launch + +OCT 7 2013 - Version 1.4.2 + *Bean Social Plugin Compatibility + -style.css (2871) + *Performance & Maintenance + -style.css (version number) + -screenshot.png (updated branding) + +AUG 3 2013 - Version 1.4.1 + *Retina.js compatibility + -assets/js/retina.js (NEW) + -lib/functions/theme-setup.php (line 22) + *iPad/Tablet panel trigger touch override <- cool stuff + -assets/js/custom.js (lines 32-57) + -style.css (line 786) + *Portfolio archives query improvement + -archive-portfolio.php (lines 11-20) + *Performance & Maintenance + -style.css (version number) + -lib/functions/theme-setup.php (line 16 - child theme fix) + +JULY 30 2013 - Version 1.4 + *Added Bean Portfolio Plugin Compatibility! <- Heck yea!! + -page-portfolio.php (NEW) + -single-portfolio.php (NEW) + -archive-portfolio.php (NEW) + -taxonomy-portfolio_category.php (NEW) + -lib/functions/portfolio.php (NEW) + -lib/metaboxes/meta-portfolio.php (NEW) + -functions.php (line 188 & 207) + -lib/content/content-header.php (lines 4-14 - portfolio header) + -style.css (lines 172, 929-930, 1056-1171 - portfolio styles) + -assets/css/mobile.css (lines 321-349 - portfolio responsive styles) + -assets/js/custom-libraries.js (lines 321-349 - portfolio responsive styles) + -lib/admin/metaboxes/css/style.css (updated Isotope to v1.5.25) + -lib/functions/theme-setup.php (lines 54, 55, 146, 148 - portfolio thumbnails/accent color) + -Download Bean Portfolios Plugin at http://themebeans.com/plugin/portfolio-wordpress-plugin + *Fixed gallery post format re-ordering bug + -lib/functions/media.php (line 227) + *Performance & Maintenance + -style.css (version number) + +JUNE 18 2013 - Version 1.3 + *Removed Twitter Widget (in lieu of Bean Tweets Plugin) + -/assets/js/twitter-widget.js (REMOVED) + -/lib/widgets/widget-twitter.php (REMOVED) + -/functions.php (REMOVED - include(.../widget-twitter.php' ) ) + -/lib/functions/core-functions.php (Bean Tweets Plugin Admin Notice) + -Download Tweets Plugin at http://themebeans.com/plugins/bean-tweets-plugin + *Bean Shortcodes Plugin Compatibility + -functions.php (removed shortcodes references) + -lib/functions/theme-setup.php + -lib/assets/js/custom.js (removed shortcodes jquery) + -ib/assets/js/custom-libraries.js (removed shortcodes jquery) + -lib/shortcodes (REMOVED) + -assets/images/shortcodes (REMOVED) + -Download Bean Shortcodes Plugin at http://themebeans.com/plugins/bean-shortcodes-plugin + *Performance & Maintenance + -style.css (version number) + -widget-skills.php (description typo) + -assets/images/apple-touch-icon.png (updated branding) + -lib/admin/options/assets/js/options.js (faster theme options panel) + +MAY 2 2013 - Version 1.2.5 + *Retina update (now supporting FF 2.0) + -assets/css/mobile.css (line 582) + -assets/css/shortcodes.css (line 870) + *Twitter widget mobile bug fix + -lib/widgets/widget-twitter.php + -assets/js/twitter-widget.js (new) + *SEO Title Update/Touch-up + -header.php (title) + *Performance & Maintenance + -style.css (version number) + -screenshot.png (updated branding) + +APRIL 30 2013 - Version 1.2 + *Added scrolling panel theme option + -lib/functions/theme-setup.php + -lib/functions/theme-options.php + *Bean form builder enhancements & error animation + -lib/admin/forms.php + -style.css (lines 314-327 & BeanErrorFall CSS Animation) + -assets/css/framework.css (line 485) + *JPlayer update / bug fix + -lib/content/content-audio.php (line 13) + -lib/functions/media.php (line 307-313) + *Image inserted in post fix + -style.css (line 1548) + *YouTube footer icon link bug fix + -lib/functions/theme-options.php (lines 477-483) + -lib/functions/theme-functions.php (lines 876-885) + *404 Page Error Improvements - Full Screen + -404.php + -footer.php (line 11 & 141) + -style.css (404 Page Template Section) + -style.css (Bean404Bounce CSS Animation) + -lib/functions/theme-options.php (lines 333-338) + -lib/functions/theme-setup.php (lines 235-247) + *Post Sharing Buttons (FB & Twitter) + -style.css (Post Sharing Buttons Section) + -single.php (lines 26-36) + -lib/functions/theme-options.php (post_share) + *Performance & Maintenance + -style.css (version number) + +APRIL 18 2013 - Version 1.1 + *Headings touch up + -style.css (line 117 & line 121) + *Performance & Maintenance + -style.css (version number) + +APRIL 10 2013 - Version 1.0.5 + *Post Meta if tags display touch up + -lib/functions/theme-functions.php (line 535) + *Header SEO - Yoast adjustment + -header.php (line 16) + *Google Analytics bug fix + -lib/functions/theme-options.php (line 80 & line 243) + *Performance & Maintenance + -style.css (version number) + +APRIL 1 2013 - Version 1.0 + *First Release \ No newline at end of file diff --git a/wp-content/themes/acute/comments.php b/wp-content/themes/acute/comments.php new file mode 100644 index 0000000..2661860 --- /dev/null +++ b/wp-content/themes/acute/comments.php @@ -0,0 +1,152 @@ + + +
    + + post_password) ) : + if ( $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password ) : ?> +
    + + +
    + +
    + +
    1 ? __('%d Comments', 'bean') : __('One Comment', 'bean'), $comment_count) ?>
    + +
    + +
    + + + + 1 ) : ?> + +
    + + + +
    + + +
      + +
    + 1 ) : ?> + +
    + + + +
    + + + +
    + +
    + + + +
    + +
    + +
    + + + +
    + +
    + +
    + + + +
      + +
    + +
    + +
    + + + +
    + +

    + + + +
    + + + +
    \ No newline at end of file diff --git a/wp-content/themes/acute/custom-editor-style.css b/wp-content/themes/acute/custom-editor-style.css new file mode 100644 index 0000000..ddc45d4 --- /dev/null +++ b/wp-content/themes/acute/custom-editor-style.css @@ -0,0 +1,7 @@ +/*--------------------------------------------------------------------*/ +/* STYLES FOR THE POST/PAGE EDITOR +/*--------------------------------------------------------------------*/ + +@import url( 'style.css' ); + +body { padding: 8px; background: #FFF; } \ No newline at end of file diff --git a/wp-content/themes/acute/footer.php b/wp-content/themes/acute/footer.php new file mode 100644 index 0000000..1260c4c --- /dev/null +++ b/wp-content/themes/acute/footer.php @@ -0,0 +1,223 @@ + + +
    + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-content/themes/acute/functions.php b/wp-content/themes/acute/functions.php new file mode 100644 index 0000000..b732e5a --- /dev/null +++ b/wp-content/themes/acute/functions.php @@ -0,0 +1,194 @@ + array( + 'forms' => false, + 'meta' => true, + 'menu' => true, + 'responsive' => true, + 'skins' => true, + 'widgets' => true, + ), + + 'comments' => array( + 'pages' => false, + 'posts' => true, + ) + + ); + + return apply_filters( 'bean_theme_config_args', $args ); +} + +add_action('bean_init', 'bean_feature_setup'); + + +function bean_theme_supports( $group, $feature ) { + $setup = bean_feature_setup(); + if( isset( $setup[$group][$feature] ) && $setup[$group][$feature] ) + return true; + else + return false; +} + + + + +/*===================================================================*/ +/* +/* LOAD CONSTANTS +/* +/*===================================================================*/ +function bean_constants() { + + /* DEFINE THEME DIRECTORY LOCATION CONSTANTS */ + define( 'PARENT_DIR', get_template_directory() ); + define( 'CHILD_DIR', get_stylesheet_directory() ); + + /* DEFINE THEME URL LOCATION CONSTANTS */ + define( 'PARENT_URL', get_template_directory_uri() ); + define( 'CHILD_URL', get_stylesheet_directory_uri() ); + + /* DEFINE THEME INFO CONSTANTS */ + $theme = wp_get_theme(); + $theme_title = $theme->name; + $theme_version = $theme->version; + + define( 'BEAN_THEME_SLUG', get_template() ); + define( 'BEAN_THEME_NAME', $theme_title ); + define( 'BEAN_THEME_VER', $theme_version ); + + + /*===================================================================*/ + /* DEFINE GENERAL CONSTANTS + /*===================================================================*/ + define( 'BEAN_IMAGES_DIR', PARENT_DIR . '/assets/images' ); + define( 'BEAN_LIB_DIR', PARENT_DIR . '/lib' ); + define( 'BEAN_JS_DIR', PARENT_DIR . '/assets/js' ); + define( 'BEAN_CSS_DIR', PARENT_DIR . '/assets/css' ); + define( 'BEAN_FUNCTIONS_DIR', BEAN_LIB_DIR . '/functions' ); + define( 'BEAN_CONTENT_DIR', BEAN_LIB_DIR . '/content' ); + define( 'BEAN_LANGUAGES_DIR', BEAN_LIB_DIR . '/languages' ); + define( 'BEAN_CPT_DIR', BEAN_LIB_DIR . '/custom-post-types' ); + + define( 'BEAN_STYLES_URL', PARENT_URL . '/assets/styles' ); + define( 'BEAN_IMAGES_URL', PARENT_URL . '/assets/images' ); + define( 'BEAN_LIB_URL', PARENT_URL . '/lib' ); + define( 'BEAN_JS_URL', PARENT_URL . '/assets/js' ); + define( 'BEAN_CSS_URL', PARENT_URL . '/assets/css' ); + define( 'BEAN_FUNCTIONS_URL', BEAN_LIB_URL . '/functions' ); + define( 'BEAN_CPT_URL', BEAN_LIB_URL . '/custom-post-types' ); + + + /*===================================================================*/ + /* DEFINE ADMIN CONSTANTS + /*===================================================================*/ + define( 'BEAN_ADMIN_DIR', BEAN_LIB_DIR . '/admin' ); + define( 'BEAN_ADMIN_IMAGES_DIR', BEAN_LIB_DIR . '/admin/assets/images' ); + define( 'BEAN_ADMIN_CSS_DIR', BEAN_LIB_DIR . '/admin/assets/css' ); + define( 'BEAN_ADMIN_JS_DIR', BEAN_LIB_DIR . '/admin/assets/js' ); + + define( 'BEAN_ADMIN_URL', BEAN_LIB_URL . '/admin' ); + define( 'BEAN_ADMIN_IMAGES_URL', BEAN_LIB_URL . '/admin/assets/images' ); + define( 'BEAN_ADMIN_CSS_URL', BEAN_LIB_URL . '/admin/assets/css' ); + define( 'BEAN_ADMIN_JS_URL', BEAN_LIB_URL . '/admin/assets/js' ); + + define( 'BEAN_FRAMEWORK_VERSION', '2.0' ); + define( 'BEAN_DOCUMENTATION_URL', 'http://support.themebeans.com' ); + define( 'BEAN_SUPPORT_URL', 'http://support.themebeans.com' ); + + /* DEVELOPMENT MODE */ + define('DEV_MODE', false); + + /* CONDITIONALLY LOADED, THEME SPECIFIC */ + if( bean_theme_supports( 'primary', 'widgets' ) ){ + define( 'BEAN_WIDGETS_DIR', BEAN_LIB_DIR . '/widgets' ); + define( 'BEAN_WIDGETS_URL', BEAN_LIB_URL . '/widgets' ); + } +} + +add_action( 'bean_init', 'bean_constants' ); + + + + +/*===================================================================*/ +/* +/* FRAMEWORK LOADER +/* +/*===================================================================*/ +function bean_load_framework() { + + do_action( 'bean_pre_framework' ); + + /*===================================================================*/ + /* LOAD GENERAL FUNCTIONS - THESE ARE PRETTY IMPORTANT + /*===================================================================*/ + require( BEAN_FUNCTIONS_DIR . '/theme-setup.php' ); + require( BEAN_FUNCTIONS_DIR . '/core-functions.php' ); + require( BEAN_FUNCTIONS_DIR . '/theme-functions.php' ); + require( BEAN_FUNCTIONS_DIR . '/customizer.php' ); + require( BEAN_FUNCTIONS_DIR . '/customizer-css.php' ); + require( BEAN_FUNCTIONS_DIR . '/i18n.php' ); + + if( bean_theme_supports( 'primary', 'meta' ) ) + require_once (BEAN_ADMIN_DIR . '/metaboxes/metaboxes-init.php'); + + /*===================================================================*/ + /* LOAD THEME WIDGETS + /*===================================================================*/ + if( bean_theme_supports( 'primary', 'widgets' ) ){ + include_once(BEAN_ADMIN_DIR . '/sidebars/sidebars.php' ); + + include( BEAN_WIDGETS_DIR . '/widget-init.php' ); + include( BEAN_WIDGETS_DIR . '/widget-dribbble.php' ); + include( BEAN_WIDGETS_DIR . '/widget-flickr.php' ); + include( BEAN_WIDGETS_DIR . '/widget-newsletter.php' ); + include( BEAN_WIDGETS_DIR . '/widget-skills.php' ); + include( BEAN_WIDGETS_DIR . '/widget-popular.php' ); + include( BEAN_WIDGETS_DIR . '/widget-social-counter.php' ); + } + + if( is_admin() ) { + /*===================================================================*/ + /* LOAD THEME OPTIONS + /*===================================================================*/ + require( BEAN_ADMIN_DIR . '/admin-init.php' ); + require( BEAN_ADMIN_DIR . '/options/options-init.php' ); + require( BEAN_FUNCTIONS_DIR . '/theme-options.php' ); + + /*===================================================================*/ + /* LOAD CUSTOM META FIELDS + /*===================================================================*/ + if( bean_theme_supports( 'primary', 'meta' ) ) { + + include( BEAN_LIB_DIR . '/metaboxes/metaboxes-init.php'); + include( BEAN_LIB_DIR . '/metaboxes/meta-post.php'); + include( BEAN_LIB_DIR . '/metaboxes/meta-portfolio.php'); + } + /*===================================================================*/ + /* LOAD THEME EXTRAS + /*===================================================================*/ + } else { + + include( BEAN_FUNCTIONS_DIR . '/pagination.php' ); + include( BEAN_FUNCTIONS_DIR . '/comments.php' ); + require( BEAN_FUNCTIONS_DIR . '/media.php' ); + } + } + +add_action( 'bean_init', 'bean_load_framework' ); + +/* RUN THE BEAN_INIT HOOK */ +do_action( 'bean_init' ); + +/* RUN THE BEAN_INIT HOOK */ +do_action( 'bean_setup' ); \ No newline at end of file diff --git a/wp-content/themes/acute/header.php b/wp-content/themes/acute/header.php new file mode 100644 index 0000000..76c931a --- /dev/null +++ b/wp-content/themes/acute/header.php @@ -0,0 +1,132 @@ + + + + +> + + + + + + + + <?php if ( defined('WPSEO_VERSION') ) { wp_title(''); } else { if(is_home() OR is_404() OR is_search() ) { echo bloginfo("name"); echo " | "; echo bloginfo("description"); } else { echo bloginfo("name"); echo " | "; echo get_the_title(); } } ?> + + + + + + + + + + + + + + + + + + +> + + + +
    + +
    + + + + + + + + + + + +
    \ No newline at end of file diff --git a/wp-content/themes/acute/image.php b/wp-content/themes/acute/image.php new file mode 100644 index 0000000..967d11f --- /dev/null +++ b/wp-content/themes/acute/image.php @@ -0,0 +1,101 @@ + + +
    + +
    + + + +
    > + +
    + +
    + +
    + + $post->post_parent, + 'post_status' => 'inherit', + 'post_type' => 'attachment', + 'post_mime_type' => 'image', + 'order' => 'ASC', + 'orderby' => 'menu_order ID' + ) + ) + ); + + foreach ( $attachments as $k => $attachment ) { + if ( $attachment->ID == $post->ID ) + break; + } + $k++; + // If there is more than 1 attachment in a gallery + if ( count( $attachments ) > 1 ) { + if ( isset( $attachments[ $k ] ) ) + // get the URL of the next image attachment + $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); + else + // or get the URL of the first image attachment + $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); + } else { + // or, if there's only 1 image, get the URL of the image + $next_attachment_url = wp_get_attachment_url(); + } + ?> + + ID, array( $attachment_size, 1024 ) ); // filterable image width with 1024px limit for image height. + ?> + + + post_excerpt ) ) : ?> + +
    + + + +
    + + + +
    + +
    + +
    + + + + '' ) ); ?> + +
    + +
    + +
    + + + + + +
    + +
    + + \ No newline at end of file diff --git a/wp-content/themes/acute/index.php b/wp-content/themes/acute/index.php new file mode 100644 index 0000000..1db89bb --- /dev/null +++ b/wp-content/themes/acute/index.php @@ -0,0 +1,31 @@ + + + + +
    + + + +
    + + \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/admin-init.php b/wp-content/themes/acute/lib/admin/admin-init.php new file mode 100644 index 0000000..e69de29 diff --git a/wp-content/themes/acute/lib/admin/assets/images/index.php b/wp-content/themes/acute/lib/admin/assets/images/index.php new file mode 100644 index 0000000..e568b13 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/assets/images/index.php @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/assets/images/loader.gif b/wp-content/themes/acute/lib/admin/assets/images/loader.gif new file mode 100644 index 0000000..d50f4af Binary files /dev/null and b/wp-content/themes/acute/lib/admin/assets/images/loader.gif differ diff --git a/wp-content/themes/acute/lib/admin/assets/images/white-grad-active.png b/wp-content/themes/acute/lib/admin/assets/images/white-grad-active.png new file mode 100644 index 0000000..0478015 Binary files /dev/null and b/wp-content/themes/acute/lib/admin/assets/images/white-grad-active.png differ diff --git a/wp-content/themes/acute/lib/admin/assets/images/white-grad.png b/wp-content/themes/acute/lib/admin/assets/images/white-grad.png new file mode 100644 index 0000000..aaf57aa Binary files /dev/null and b/wp-content/themes/acute/lib/admin/assets/images/white-grad.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/color.css b/wp-content/themes/acute/lib/admin/metaboxes/css/color.css new file mode 100644 index 0000000..b2390cd --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/color.css @@ -0,0 +1,7 @@ +.rwmb-color-picker { + display: none; /* Hidden by default */ + z-index: 100; + background: rgb(238, 238, 238); + border: 1px solid rgb(204, 204, 204); + position: absolute; +} \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/gallery.css b/wp-content/themes/acute/lib/admin/metaboxes/css/gallery.css new file mode 100644 index 0000000..9ec1b62 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/gallery.css @@ -0,0 +1,31 @@ +/* Uploaded image */ +.rwmb-galleries { + overflow: hidden; +} +.rwmb-galleries li { + margin: 0 10px 10px 0; + float: left; + width: 150px; + height: 150px; + text-align: center; + border: 3px solid #ccc; + cursor: move; + position: relative; +} +.rwmb-galleries img { + width: 150px; + height: 150px; +} +.rwmb-image-bar { + color: #fff; + font-weight: bold; + background: #000; + position: absolute; + bottom: 0; + right: 0; + padding: 5px; +} +.rwmb-image-bar a { + color: #fff; + font-weight: bold; +} \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/image.css b/wp-content/themes/acute/lib/admin/metaboxes/css/image.css new file mode 100644 index 0000000..21bd3f7 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/image.css @@ -0,0 +1,60 @@ +/* Uploaded image */ +a.button.rwmb-thickbox-upload { + margin-top: -10px; +} + +._radium_bgimage label{ +line-height: 36px; +} + + +div.rwmb-field.rwmb-thickbox_image-wrapper._radium_bgimage { + margin: 10px 0 22px 0; +} + + + +.rwmb-images { + overflow: hidden; + margin-top: 0px; + } + +.rwmb-images li { + margin: 0 10px 10px 0; + float: left; + width: 310; + height: 95px; + text-align: center; + cursor: move; + position: relative; + } + +.rwmb-images img { + width: 310px; + height: 95px; + } + +.rwmb-image-bar { + color: #fff; + font-weight: bold; + background: #000; + position: absolute; + bottom: 0; + right: 0; + padding: 5px; + text-decoration: none; + } + +.rwmb-image-bar a { + color: #fff; + font-weight: bold; + text-decoration: none; + } + +.rwmb-add-file.button{ + margin-top: 5px; + } + +.file-input { + margin: 5px 0; + } \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery-ui-timepicker-addon.css b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery-ui-timepicker-addon.css new file mode 100644 index 0000000..71e4c46 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery-ui-timepicker-addon.css @@ -0,0 +1,6 @@ +.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; } +.ui-timepicker-div dl { text-align: left; } +.ui-timepicker-div dl dt { height: 25px; } +.ui-timepicker-div dl dd { margin: -25px 10px 10px 65px; } +.ui-timepicker-div td { font-size: 90%; } +.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.core.css b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.core.css new file mode 100644 index 0000000..c438c57 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.core.css @@ -0,0 +1,44 @@ +/* + * jQuery UI CSS Framework 1.8.17 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + */ + +/* Layout helpers +----------------------------------*/ +.ui-helper-hidden { display: none; } +.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); } +.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } +.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; } +.ui-helper-clearfix:after { clear: both; } +.ui-helper-clearfix { zoom: 1; } +.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } + + +/* Interaction Cues +----------------------------------*/ +.ui-state-disabled { cursor: default !important; } + + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { + display: block; + text-indent: 100%; + white-space: nowrap; + overflow: hidden; + background-repeat: no-repeat; + } + + +/* Misc visuals +----------------------------------*/ + +/* Overlays */ +.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.datepicker.css b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.datepicker.css new file mode 100644 index 0000000..6cb5aef --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.datepicker.css @@ -0,0 +1,68 @@ +/* + * jQuery UI Datepicker 1.8.17 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Datepicker#theming + */ +.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; } +.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; } +.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; } +.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; } +.ui-datepicker .ui-datepicker-prev { left:2px; } +.ui-datepicker .ui-datepicker-next { right:2px; } +.ui-datepicker .ui-datepicker-prev-hover { left:1px; } +.ui-datepicker .ui-datepicker-next-hover { right:1px; } +.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; } +.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; } +.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; } +.ui-datepicker select.ui-datepicker-month-year {width: 100%;} +.ui-datepicker select.ui-datepicker-month, +.ui-datepicker select.ui-datepicker-year { width: 49%;} +.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; } +.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; } +.ui-datepicker td { border: 0; padding: 1px; } +.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; } +.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; } +.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; } +.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; } + +/* with multiple calendars */ +.ui-datepicker.ui-datepicker-multi { width:auto; } +.ui-datepicker-multi .ui-datepicker-group { float:left; } +.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; } +.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; } +.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; } +.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; } +.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; } +.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; } +.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; } + +/* RTL support */ +.ui-datepicker-rtl { direction: rtl; } +.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; } +.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; } +.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; } +.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; } +.ui-datepicker-rtl .ui-datepicker-group { float:right; } +.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; } +.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; } + +/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */ +.ui-datepicker-cover { + display: none; /*sorry for IE5*/ + display/**/: block; /*sorry for IE5*/ + position: absolute; /*must have*/ + z-index: -1; /*must have*/ + filter: mask(); /*must have*/ + top: -4px; /*must have*/ + left: -4px; /*must have*/ + width: 200px; /*must have*/ + height: 200px; /*must have*/ +} \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.slider.css b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.slider.css new file mode 100644 index 0000000..4cc5481 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.slider.css @@ -0,0 +1,24 @@ +/* + * jQuery UI Slider 1.8.17 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Slider#theming + */ +.ui-slider { position: relative; text-align: left; } +.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; } +.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; } + +.ui-slider-horizontal { height: .8em; } +.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; } +.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; } +.ui-slider-horizontal .ui-slider-range-min { left: 0; } +.ui-slider-horizontal .ui-slider-range-max { right: 0; } + +.ui-slider-vertical { width: .8em; height: 100px; } +.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; } +.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; } +.ui-slider-vertical .ui-slider-range-min { bottom: 0; } +.ui-slider-vertical .ui-slider-range-max { top: 0; } \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.theme.css b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.theme.css new file mode 100644 index 0000000..c26f824 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/jqueryui/jquery.ui.theme.css @@ -0,0 +1,249 @@ + + +/* + * jQuery UI CSS Framework 1.8.17 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + * + * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px + */ + + +/* Component containers +----------------------------------*/ +.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; } +.ui-widget .ui-widget { font-size: 1em; } +.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; } +.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(../../img/jqueryui/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; } +.ui-widget-content a { color: #222222; } +.ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(../../img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; } +.ui-widget-header a { color: #222222; } + +/* Interaction states +----------------------------------*/ +.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(../../img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; } +.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; } +.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999; background: #dadada url(../../img/jqueryui/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; } +.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; } +.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(../../img/jqueryui/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; } +.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; } +.ui-widget :active { outline: none; } + +/* Interaction Cues +----------------------------------*/ +.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fcefa1; background: #fbf9ee url(../../img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; } +.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; } +.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(../../img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; } +.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; } +.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; } +.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; } +.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; } +.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; } + +/* Icons +----------------------------------*/ + +/* states and images */ +.ui-icon { width: 16px; height: 16px; background-image: url(../../img/jqueryui/ui-icons_222222_256x240.png); } +.ui-widget-content .ui-icon {background-image: url(../../img/jqueryui/ui-icons_222222_256x240.png); } +.ui-widget-header .ui-icon {background-image: url(../../img/jqueryui/ui-icons_222222_256x240.png); } +.ui-state-default .ui-icon { background-image: url(../../img/jqueryui/ui-icons_888888_256x240.png); } +.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(../../img/jqueryui/ui-icons_454545_256x240.png); } +.ui-state-active .ui-icon {background-image: url(../../img/jqueryui/ui-icons_454545_256x240.png); } +.ui-state-highlight .ui-icon {background-image: url(../../img/jqueryui/ui-icons_2e83ff_256x240.png); } +.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(../../img/jqueryui/ui-icons_cd0a0a_256x240.png); } + +/* positioning */ +.ui-icon-carat-1-n { background-position: 0 0; } +.ui-icon-carat-1-ne { background-position: -16px 0; } +.ui-icon-carat-1-e { background-position: -32px 0; } +.ui-icon-carat-1-se { background-position: -48px 0; } +.ui-icon-carat-1-s { background-position: -64px 0; } +.ui-icon-carat-1-sw { background-position: -80px 0; } +.ui-icon-carat-1-w { background-position: -96px 0; } +.ui-icon-carat-1-nw { background-position: -112px 0; } +.ui-icon-carat-2-n-s { background-position: -128px 0; } +.ui-icon-carat-2-e-w { background-position: -144px 0; } +.ui-icon-triangle-1-n { background-position: 0 -16px; } +.ui-icon-triangle-1-ne { background-position: -16px -16px; } +.ui-icon-triangle-1-e { background-position: -32px -16px; } +.ui-icon-triangle-1-se { background-position: -48px -16px; } +.ui-icon-triangle-1-s { background-position: -64px -16px; } +.ui-icon-triangle-1-sw { background-position: -80px -16px; } +.ui-icon-triangle-1-w { background-position: -96px -16px; } +.ui-icon-triangle-1-nw { background-position: -112px -16px; } +.ui-icon-triangle-2-n-s { background-position: -128px -16px; } +.ui-icon-triangle-2-e-w { background-position: -144px -16px; } +.ui-icon-arrow-1-n { background-position: 0 -32px; } +.ui-icon-arrow-1-ne { background-position: -16px -32px; } +.ui-icon-arrow-1-e { background-position: -32px -32px; } +.ui-icon-arrow-1-se { background-position: -48px -32px; } +.ui-icon-arrow-1-s { background-position: -64px -32px; } +.ui-icon-arrow-1-sw { background-position: -80px -32px; } +.ui-icon-arrow-1-w { background-position: -96px -32px; } +.ui-icon-arrow-1-nw { background-position: -112px -32px; } +.ui-icon-arrow-2-n-s { background-position: -128px -32px; } +.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; } +.ui-icon-arrow-2-e-w { background-position: -160px -32px; } +.ui-icon-arrow-2-se-nw { background-position: -176px -32px; } +.ui-icon-arrowstop-1-n { background-position: -192px -32px; } +.ui-icon-arrowstop-1-e { background-position: -208px -32px; } +.ui-icon-arrowstop-1-s { background-position: -224px -32px; } +.ui-icon-arrowstop-1-w { background-position: -240px -32px; } +.ui-icon-arrowthick-1-n { background-position: 0 -48px; } +.ui-icon-arrowthick-1-ne { background-position: -16px -48px; } +.ui-icon-arrowthick-1-e { background-position: -32px -48px; } +.ui-icon-arrowthick-1-se { background-position: -48px -48px; } +.ui-icon-arrowthick-1-s { background-position: -64px -48px; } +.ui-icon-arrowthick-1-sw { background-position: -80px -48px; } +.ui-icon-arrowthick-1-w { background-position: -96px -48px; } +.ui-icon-arrowthick-1-nw { background-position: -112px -48px; } +.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; } +.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; } +.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; } +.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; } +.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; } +.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; } +.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; } +.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; } +.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; } +.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; } +.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; } +.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; } +.ui-icon-arrowreturn-1-w { background-position: -64px -64px; } +.ui-icon-arrowreturn-1-n { background-position: -80px -64px; } +.ui-icon-arrowreturn-1-e { background-position: -96px -64px; } +.ui-icon-arrowreturn-1-s { background-position: -112px -64px; } +.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; } +.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; } +.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; } +.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; } +.ui-icon-arrow-4 { background-position: 0 -80px; } +.ui-icon-arrow-4-diag { background-position: -16px -80px; } +.ui-icon-extlink { background-position: -32px -80px; } +.ui-icon-newwin { background-position: -48px -80px; } +.ui-icon-refresh { background-position: -64px -80px; } +.ui-icon-shuffle { background-position: -80px -80px; } +.ui-icon-transfer-e-w { background-position: -96px -80px; } +.ui-icon-transferthick-e-w { background-position: -112px -80px; } +.ui-icon-folder-collapsed { background-position: 0 -96px; } +.ui-icon-folder-open { background-position: -16px -96px; } +.ui-icon-document { background-position: -32px -96px; } +.ui-icon-document-b { background-position: -48px -96px; } +.ui-icon-note { background-position: -64px -96px; } +.ui-icon-mail-closed { background-position: -80px -96px; } +.ui-icon-mail-open { background-position: -96px -96px; } +.ui-icon-suitcase { background-position: -112px -96px; } +.ui-icon-comment { background-position: -128px -96px; } +.ui-icon-person { background-position: -144px -96px; } +.ui-icon-print { background-position: -160px -96px; } +.ui-icon-trash { background-position: -176px -96px; } +.ui-icon-locked { background-position: -192px -96px; } +.ui-icon-unlocked { background-position: -208px -96px; } +.ui-icon-bookmark { background-position: -224px -96px; } +.ui-icon-tag { background-position: -240px -96px; } +.ui-icon-home { background-position: 0 -112px; } +.ui-icon-flag { background-position: -16px -112px; } +.ui-icon-calendar { background-position: -32px -112px; } +.ui-icon-cart { background-position: -48px -112px; } +.ui-icon-pencil { background-position: -64px -112px; } +.ui-icon-clock { background-position: -80px -112px; } +.ui-icon-disk { background-position: -96px -112px; } +.ui-icon-calculator { background-position: -112px -112px; } +.ui-icon-zoomin { background-position: -128px -112px; } +.ui-icon-zoomout { background-position: -144px -112px; } +.ui-icon-search { background-position: -160px -112px; } +.ui-icon-wrench { background-position: -176px -112px; } +.ui-icon-gear { background-position: -192px -112px; } +.ui-icon-heart { background-position: -208px -112px; } +.ui-icon-star { background-position: -224px -112px; } +.ui-icon-link { background-position: -240px -112px; } +.ui-icon-cancel { background-position: 0 -128px; } +.ui-icon-plus { background-position: -16px -128px; } +.ui-icon-plusthick { background-position: -32px -128px; } +.ui-icon-minus { background-position: -48px -128px; } +.ui-icon-minusthick { background-position: -64px -128px; } +.ui-icon-close { background-position: -80px -128px; } +.ui-icon-closethick { background-position: -96px -128px; } +.ui-icon-key { background-position: -112px -128px; } +.ui-icon-lightbulb { background-position: -128px -128px; } +.ui-icon-scissors { background-position: -144px -128px; } +.ui-icon-clipboard { background-position: -160px -128px; } +.ui-icon-copy { background-position: -176px -128px; } +.ui-icon-contact { background-position: -192px -128px; } +.ui-icon-image { background-position: -208px -128px; } +.ui-icon-video { background-position: -224px -128px; } +.ui-icon-script { background-position: -240px -128px; } +.ui-icon-alert { background-position: 0 -144px; } +.ui-icon-info { background-position: -16px -144px; } +.ui-icon-notice { background-position: -32px -144px; } +.ui-icon-help { background-position: -48px -144px; } +.ui-icon-check { background-position: -64px -144px; } +.ui-icon-bullet { background-position: -80px -144px; } +.ui-icon-radio-off { background-position: -96px -144px; } +.ui-icon-radio-on { background-position: -112px -144px; } +.ui-icon-pin-w { background-position: -128px -144px; } +.ui-icon-pin-s { background-position: -144px -144px; } +.ui-icon-play { background-position: 0 -160px; } +.ui-icon-pause { background-position: -16px -160px; } +.ui-icon-seek-next { background-position: -32px -160px; } +.ui-icon-seek-prev { background-position: -48px -160px; } +.ui-icon-seek-end { background-position: -64px -160px; } +.ui-icon-seek-start { background-position: -80px -160px; } +/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */ +.ui-icon-seek-first { background-position: -80px -160px; } +.ui-icon-stop { background-position: -96px -160px; } +.ui-icon-eject { background-position: -112px -160px; } +.ui-icon-volume-off { background-position: -128px -160px; } +.ui-icon-volume-on { background-position: -144px -160px; } +.ui-icon-power { background-position: 0 -176px; } +.ui-icon-signal-diag { background-position: -16px -176px; } +.ui-icon-signal { background-position: -32px -176px; } +.ui-icon-battery-0 { background-position: -48px -176px; } +.ui-icon-battery-1 { background-position: -64px -176px; } +.ui-icon-battery-2 { background-position: -80px -176px; } +.ui-icon-battery-3 { background-position: -96px -176px; } +.ui-icon-circle-plus { background-position: 0 -192px; } +.ui-icon-circle-minus { background-position: -16px -192px; } +.ui-icon-circle-close { background-position: -32px -192px; } +.ui-icon-circle-triangle-e { background-position: -48px -192px; } +.ui-icon-circle-triangle-s { background-position: -64px -192px; } +.ui-icon-circle-triangle-w { background-position: -80px -192px; } +.ui-icon-circle-triangle-n { background-position: -96px -192px; } +.ui-icon-circle-arrow-e { background-position: -112px -192px; } +.ui-icon-circle-arrow-s { background-position: -128px -192px; } +.ui-icon-circle-arrow-w { background-position: -144px -192px; } +.ui-icon-circle-arrow-n { background-position: -160px -192px; } +.ui-icon-circle-zoomin { background-position: -176px -192px; } +.ui-icon-circle-zoomout { background-position: -192px -192px; } +.ui-icon-circle-check { background-position: -208px -192px; } +.ui-icon-circlesmall-plus { background-position: 0 -208px; } +.ui-icon-circlesmall-minus { background-position: -16px -208px; } +.ui-icon-circlesmall-close { background-position: -32px -208px; } +.ui-icon-squaresmall-plus { background-position: -48px -208px; } +.ui-icon-squaresmall-minus { background-position: -64px -208px; } +.ui-icon-squaresmall-close { background-position: -80px -208px; } +.ui-icon-grip-dotted-vertical { background-position: 0 -224px; } +.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; } +.ui-icon-grip-solid-vertical { background-position: -32px -224px; } +.ui-icon-grip-solid-horizontal { background-position: -48px -224px; } +.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; } +.ui-icon-grip-diagonal-se { background-position: -80px -224px; } + + +/* Misc visuals +----------------------------------*/ + +/* Corner radius */ +.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; } +.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; } +.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; } +.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } + +/* Overlays */ +.ui-widget-overlay { background: #aaaaaa url(../../img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); } +.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(../../img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; } \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/plupload-image.css b/wp-content/themes/acute/lib/admin/metaboxes/css/plupload-image.css new file mode 100644 index 0000000..9d6f664 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/plupload-image.css @@ -0,0 +1,41 @@ +div.rwmb-drag-drop { + border: 4px dashed #ddd; + height: 200px; + } + +div.rwmb-drag-drop-inside { + margin: 50px auto; + } + +div.rwmb-drag-drop-inside p { + text-align: center; + display: block; + font-size: 20px; + margin: 5px 0; + color: #aaa; + } + +div.rwmb-image-uploading-bar { + position: absolute; + width: 100%; + height: 0%; + bottom: 0; + background:#666; + } + +div.rwmb-image-uploading-status { + position: absolute; + } + +li.rwmb-image-error { + border: 3px solid #c00; + background: #903838; + } + +.rwmb-image-uploading-status .rwmb-loader { + width: 64px; + height: 64px; + top: 43px; + left: 43px; + position: relative; + } diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/select.css b/wp-content/themes/acute/lib/admin/metaboxes/css/select.css new file mode 100644 index 0000000..926fc7e --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/select.css @@ -0,0 +1,3 @@ +#post-body .rwmb-select { + height: 28px; + } \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/style.css b/wp-content/themes/acute/lib/admin/metaboxes/css/style.css new file mode 100644 index 0000000..1c07c06 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/style.css @@ -0,0 +1,167 @@ +.rwmb-input label { + margin-right: 25px; + } + +.rwmb-label-radio-image { + margin-right: 0px!important; + } + +input.rwmb-radio { + margin-right: 4px; + } + + +/* =Styles for 'normal' meta boxes +-------------------------------------------------------------- */ +.rwmb-field { + padding: 20px 0; + border-bottom: 1px solid #dfdfdf; + border-top: 1px solid #FFF; + } + +.rwmb-field:first-of-type { + border-top: none; + border-top-width: 0px; + } + +.rwmb-field:last-of-type { + border-bottom: none; + border-bottom-width: 0px; + } + +.rwmb-label, +.rwmb-input { + display: inline-block; + vertical-align: top; + } + +.rwmb-label { + width: 19%; + } + +.rwmb-label label { + font-weight: bold; + } + +/* 75% if field has label, 100% if no label */ +.rwmb-input { + width: 100%; + } + +.rwmb-label ~ .rwmb-input { + width: 80%; + } + +.rwmb-input h4 { + margin-top: 0; + } + +.rwmb-input p.help, +.rwmb-input p.description, +.rwmb-input span.description, +.rwmb-input .form-wrap p{ + font-style: normal; + display: block; + color: #999; + margin: 6px 0 0 0; + line-height: 18px; + text-shadow: white 0 1px 0; + } + +.rwmb-select { + width: auto; + } + +.rwmb-text { + width: 60%; + } + +.rwmb-textarea { + resize: vertical; + width: 99%; + } + +.rwmb-clone { + min-height: 24px; + } + +.rwmb-clone > input[type="radio"], +.rwmb-clone > input[type="checkbox"] { + margin: 6px 0 0 4px; + } + +/* fix width to not overlap button for cloned sliders */ +.rwmb-clone .rwmb-slider { + width: 80%; + margin: 6px 0 0; + } + +/* fix buttons after sliders */ +.clearfix + .rwmb-button { + margin-top: -16px; + } + +.rwmb-button { + display: inline; + float: right; + } + +/* Hidden labels, :input fields, buttons */ +.rwmb-label.hidden, +.rwmb-input.hidden, +.hidden .rwmb-button { + display: none; + } + +/* Fix empty block below admin footer (issue #24) */ +#ui-datepicker-div { + display: none; + } + +/* =Styles for 'side' meta boxes +-------------------------------------------------------------- */ + +#side-sortables .rwmb-label, +#side-sortables .rwmb-input { + width: 100%; + } + +#side-sortables .rwmb-input .rwmb-text { + width: 100%; +} +/* =Styles for 'radio-image' meta boxes +-------------------------------------------------------------- */ + +.rwmb-label-radio-image img { + border: 1px solid #f5f6f5; + padding: 5px 5px 5px 5px; + height: 62px; + width: 62px; + margin: 0 5px 0 0; + cursor: pointer; + -webkit-border-radius: 3px; + -moz-border-radius: 3px; + border-radius: 3px; + } + +.rwmb-label-radio-image.selected img { background-color: #FFF; border: 1px solid #DFDFDF; } + +.rwmb-radio-image { display: none; } + +/* =Style for 'checkbox' meta boxes +-------------------------------------------------------------- */ + +input.rwmb-checkbox{ + float: left; + margin: 9px 5px 0 0; + } + + +/* =Inner Sidebar Styling +-------------------------------------------------------------- +.inner-sidebar #side-sortables .rwmb-label, + +.inner-sidebar #side-sortables .rwmb-input { + width: 49%; + } +*/ \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/taxonomy.css b/wp-content/themes/acute/lib/admin/metaboxes/css/taxonomy.css new file mode 100644 index 0000000..383fefe --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/taxonomy.css @@ -0,0 +1,11 @@ +li ul.rw-taxonomy-tree { + margin-left: 15px; + margin-top: 5px; +} + +.rw-taxonomy-tree.active{ + display:inline-block; +} +.rw-taxonomy-tree.disabled{ + display:none; +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/css/wysiwyg.css b/wp-content/themes/acute/lib/admin/metaboxes/css/wysiwyg.css new file mode 100644 index 0000000..5f8698d --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/css/wysiwyg.css @@ -0,0 +1,3 @@ +.rwmb-field .mceIframeContainer { + background: #fff; +} \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png new file mode 100644 index 0000000..5b5dab2 Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_flat_0_aaaaaa_40x100.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png new file mode 100644 index 0000000..ac8b229 Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png new file mode 100644 index 0000000..ad3d634 Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png new file mode 100644 index 0000000..42ccba2 Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_65_ffffff_1x400.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_75_dadada_1x400.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_75_dadada_1x400.png new file mode 100644 index 0000000..5a46b47 Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_75_dadada_1x400.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png new file mode 100644 index 0000000..86c2baa Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png new file mode 100644 index 0000000..4443fdc Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png new file mode 100644 index 0000000..7c9fa6c Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_222222_256x240.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_222222_256x240.png new file mode 100644 index 0000000..b273ff1 Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_222222_256x240.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_2e83ff_256x240.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_2e83ff_256x240.png new file mode 100644 index 0000000..09d1cdc Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_2e83ff_256x240.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_454545_256x240.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_454545_256x240.png new file mode 100644 index 0000000..59bd45b Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_454545_256x240.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_888888_256x240.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_888888_256x240.png new file mode 100644 index 0000000..6d02426 Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_888888_256x240.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_cd0a0a_256x240.png b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_cd0a0a_256x240.png new file mode 100644 index 0000000..2ab019b Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/jqueryui/ui-icons_cd0a0a_256x240.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/white-grad-active.png b/wp-content/themes/acute/lib/admin/metaboxes/img/white-grad-active.png new file mode 100644 index 0000000..0478015 Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/white-grad-active.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/img/white-grad.png b/wp-content/themes/acute/lib/admin/metaboxes/img/white-grad.png new file mode 100644 index 0000000..aaf57aa Binary files /dev/null and b/wp-content/themes/acute/lib/admin/metaboxes/img/white-grad.png differ diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/classes/meta-box.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/classes/meta-box.php new file mode 100644 index 0000000..3aca0d3 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/classes/meta-box.php @@ -0,0 +1,647 @@ +meta_box = self::normalize( $meta_box ); + $this->fields = &$this->meta_box['fields']; + $this->validation = &$this->meta_box['validation']; + + // Enqueue common styles and scripts + add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) ); + + // Add additional actions for fields + foreach ( $this->fields as $field ) + { + $class = self::get_class_name( $field ); + + if ( method_exists( $class, 'add_actions' ) ) + call_user_func( array( $class, 'add_actions' ) ); + } + + // Add meta box + foreach ( $this->meta_box['pages'] as $page ) + { + add_action( "add_meta_boxes_{$page}", array( $this, 'add_meta_boxes' ) ); + } + + // Save post meta + add_action( 'save_post', array( $this, 'save_post' ) ); + } + + /** + * Enqueue common styles + * + * @return void + */ + function admin_enqueue_scripts() + { + $screen = get_current_screen(); + + // Enqueue scripts and styles for registered pages (post types) only + if ( 'post' != $screen->base || ! in_array( $screen->post_type, $this->meta_box['pages'] ) ) + return; + + wp_enqueue_style( 'rwmb', RWMB_CSS_URL . 'style.css', RWMB_VER ); + + // Load clone script conditionally + $has_clone = false; + foreach ( $this->fields as $field ) + { + if ( $field['clone'] ) + $has_clone = true; + + // Enqueue scripts and styles for fields + $class = self::get_class_name( $field ); + if ( method_exists( $class, 'admin_enqueue_scripts' ) ) + call_user_func( array( $class, 'admin_enqueue_scripts' ) ); + } + + if ( $has_clone ) + wp_enqueue_script( 'rwmb-clone', RWMB_JS_URL . 'clone.js', array( 'jquery' ), RWMB_VER, true ); + + if ( $this->validation ) + { + wp_enqueue_script( 'jquery-validate', RWMB_JS_URL . 'jquery.validate.min.js', array( 'jquery' ), RWMB_VER, true ); + wp_enqueue_script( 'rwmb-validate', RWMB_JS_URL . 'validate.js', array( 'jquery-validate' ), RWMB_VER, true ); + } + } + + /************************************************** + SHOW META BOX + **************************************************/ + + /** + * Add meta box for multiple post types + * + * @return void + */ + function add_meta_boxes() + { + foreach ( $this->meta_box['pages'] as $page ) + { + // Allow users to show/hide meta boxes + // 1st action applies to all meta boxes + // 2nd action applies to only current meta box + $show = true; + $show = apply_filters( 'rwmb_show', $show, $this->meta_box ); + $show = apply_filters( "rwmb_show_{$this->meta_box['id']}", $show, $this->meta_box ); + if ( !$show ) + continue; + + add_meta_box( + $this->meta_box['id'], + $this->meta_box['title'], + array( $this, 'show' ), + $page, + $this->meta_box['context'], + $this->meta_box['priority'] + ); + } + } + + /** + * Callback function to show fields in meta box + * + * @return void + */ + public function show() + { + global $post; + + $saved = self::has_been_saved( $post->ID, $this->fields ); + + wp_nonce_field( "rwmb-save-{$this->meta_box['id']}", "nonce_{$this->meta_box['id']}" ); + + // Allow users to add custom code before meta box content + // 1st action applies to all meta boxes + // 2nd action applies to only current meta box + do_action( 'rwmb_before' ); + do_action( "rwmb_before_{$this->meta_box['id']}" ); + + foreach ( $this->fields as $field ) + { + $group = ''; // Empty the clone-group field + $type = $field['type']; + $id = $field['id']; + $meta = self::apply_field_class_filters( $field, 'meta', '', $post->ID, $saved ); + $meta = apply_filters( "rwmb_{$type}_meta", $meta ); + $meta = apply_filters( "rwmb_{$id}_meta", $meta ); + + $begin = self::apply_field_class_filters( $field, 'begin_html', '', $meta ); + + // Apply filter to field begin HTML + // 1st filter applies to all fields + // 2nd filter applies to all fields with the same type + // 3rd filter applies to current field only + $begin = apply_filters( 'rwmb_begin_html', $begin, $field, $meta ); + $begin = apply_filters( "rwmb_{$type}_begin_html", $begin, $field, $meta ); + $begin = apply_filters( "rwmb_{$id}_begin_html", $begin, $field, $meta ); + + // Separate code for cloneable and non-cloneable fields to make easy to maintain + + // Cloneable fields + if ( $field['clone'] ) + { + if ( isset( $field['clone-group'] ) ) + $group = " clone-group='{$field['clone-group']}'"; + + $meta = (array) $meta; + + $field_html = ''; + + foreach ( $meta as $index => $meta_data ) + { + $sub_field = $field; + $sub_field['field_name'] = $field['field_name'] . "[{$index}]"; + if ( $field['multiple'] ) + $sub_field['field_name'] .= '[]'; + + add_filter( "rwmb_{$id}_html", array( $this, 'add_clone_buttons' ), 10, 3 ); + + // Wrap field HTML in a div with class="rwmb-clone" if needed + $input_html = '
    '; + + // Call separated methods for displaying each type of field + $input_html .= self::apply_field_class_filters( $sub_field, 'html', '', $meta_data ); + + // Apply filter to field HTML + // 1st filter applies to all fields with the same type + // 2nd filter applies to current field only + $input_html = apply_filters( "rwmb_{$type}_html", $input_html, $field, $meta_data ); + $input_html = apply_filters( "rwmb_{$id}_html", $input_html, $field, $meta_data ); + + $input_html .= '
    '; + + $field_html .= $input_html; + } + } + // Non-cloneable fields + else + { + // Call separated methods for displaying each type of field + $field_html = self::apply_field_class_filters( $field, 'html', '', $meta ); + + // Apply filter to field HTML + // 1st filter applies to all fields with the same type + // 2nd filter applies to current field only + $field_html = apply_filters( "rwmb_{$type}_html", $field_html, $field, $meta ); + $field_html = apply_filters( "rwmb_{$id}_html", $field_html, $field, $meta ); + } + + $end = self::apply_field_class_filters( $field, 'end_html', '', $meta ); + + // Apply filter to field end HTML + // 1st filter applies to all fields + // 2nd filter applies to all fields with the same type + // 3rd filter applies to current field only + $end = apply_filters( 'rwmb_end_html', $end, $field, $meta ); + $end = apply_filters( "rwmb_{$type}_end_html", $end, $field, $meta ); + $end = apply_filters( "rwmb_{$id}_end_html", $end, $field, $meta ); + + // Apply filter to field wrapper + // This allow users to change whole HTML markup of the field wrapper (i.e. table row) + // 1st filter applies to all fields with the same type + // 2nd filter applies to current field only + $html = apply_filters( "rwmb_{$type}_wrapper_html", "{$begin}{$field_html}{$end}", $field, $meta ); + $html = apply_filters( "rwmb_{$id}_wrapper_html", $html, $field, $meta ); + + // Display label and input in DIV and allow user-defined classes to be appended + $classes = array( 'rwmb-field', "rwmb-{$field['type']}-wrapper" ); + if ( 'hidden' === $field['type'] ) + $classes[] = 'hidden'; + if ( !empty( $field['required'] ) ) + $classes[] = 'required'; + if ( !empty( $field['class'] ) ) + $classes[] = $field['class']; + + $classes[] =$field['id']; + + printf( + '
    %s
    ', + implode( ' ', $classes ), + $group, + $html + ); + } + + // Include validation settings for this meta-box + if ( isset( $this->validation ) && $this->validation ) + { + echo ' + + '; + } + + // Allow users to add custom code after meta box content + // 1st action applies to all meta boxes + // 2nd action applies to only current meta box + do_action( 'rwmb_after' ); + do_action( "rwmb_after_{$this->meta_box['id']}" ); + } + + /** + * Show begin HTML markup for fields + * + * @param string $html + * @param mixed $meta + * @param array $field + * + * @return string + */ + static function begin_html( $html, $meta, $field ) + { + if ( empty( $field['name'] ) ) + return '
    '; + + return sprintf( + '
    + +
    +
    ', + $field['id'], + $field['name'] + ); + } + + /** + * Show end HTML markup for fields + * + * @param string $html + * @param mixed $meta + * @param array $field + * + * @return string + */ + static function end_html( $html, $meta, $field ) + { + $id = $field['id']; + + $button = ''; + if ( $field['clone'] ) + $button = '' . __( '+', 'bean' ) . ''; + + $desc = ! empty( $field['desc'] ) ? "

    {$field['desc']}

    " : ''; + + // Closes the container + $html = "{$button}{$desc}
    "; + + return $html; + } + + /** + * Callback function to add clone buttons on demand + * Hooks on the flight into the "rwmb_{$field_id}_html" filter before the closing div + * + * @param string $html + * @param array $field + * @param mixed $meta_data + * + * @return string $html + */ + static function add_clone_buttons( $html, $field, $meta_data ) + { + $button = '' . __( '–', 'bean' ) . ''; + + return "{$html}{$button}"; + } + + /** + * Standard meta retrieval + * + * @param mixed $meta + * @param int $post_id + * @param array $field + * @param bool $saved + * + * @return mixed + */ + static function meta( $meta, $post_id, $saved, $field ) + { + $meta = get_post_meta( $post_id, $field['id'], !$field['multiple'] ); + + // Use $field['std'] only when the meta box hasn't been saved (i.e. the first time we run) + $meta = ( !$saved && '' === $meta || array() === $meta ) ? $field['std'] : $meta; + + // Escape attributes for non-wysiwyg fields + if ( 'wysiwyg' !== $field['type'] ) + $meta = is_array( $meta ) ? array_map( 'esc_attr', $meta ) : esc_attr( $meta ); + + return $meta; + } + + /************************************************** + SAVE META BOX + **************************************************/ + + /** + * Save data from meta box + * + * @param int $post_id Post ID + * + * @return int|void + */ + function save_post( $post_id ) + { + global $post_type; + $post_type_object = get_post_type_object( $post_type ); + + // Check whether: + // - the post is autosaved + // - the post is a revision + // - current post type is supported + // - user has proper capability + if ( + ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) + || ( ! isset( $_POST['post_ID'] ) || $post_id != $_POST['post_ID'] ) + || ( ! in_array( $post_type, $this->meta_box['pages'] ) ) + || ( ! current_user_can( $post_type_object->cap->edit_post, $post_id ) ) + ) + { + return $post_id; + } + + // Verify nonce + check_admin_referer( "rwmb-save-{$this->meta_box['id']}", "nonce_{$this->meta_box['id']}" ); + + foreach ( $this->fields as $field ) + { + $name = $field['id']; + $old = get_post_meta( $post_id, $name, !$field['multiple'] ); + $new = isset( $_POST[$name] ) ? $_POST[$name] : ( $field['multiple'] ? array() : '' ); + + // Allow field class change the value + $new = self::apply_field_class_filters( $field, 'value', $new, $old, $post_id ); + + // Use filter to change field value + // 1st filter applies to all fields with the same type + // 2nd filter applies to current field only + $new = apply_filters( "rwmb_{$field['type']}_value", $new, $field, $old ); + $new = apply_filters( "rwmb_{$name}_value", $new, $field, $old ); + + // Call defined method to save meta value, if there's no methods, call common one + self::do_field_class_actions( $field, 'save', $new, $old, $post_id ); + } + } + + /** + * Common functions for saving field + * + * @param mixed $new + * @param mixed $old + * @param int $post_id + * @param array $field + * + * @return void + */ + static function save( $new, $old, $post_id, $field ) + { + $name = $field['id']; + + delete_post_meta( $post_id, $name ); + if ( '' === $new || array() === $new ) + return; + + if ( $field['multiple'] ) + { + foreach ( $new as $add_new ) + { + add_post_meta( $post_id, $name, $add_new, false ); + } + } + else + { + update_post_meta( $post_id, $name, $new ); + } + } + + /************************************************** + HELPER FUNCTIONS + **************************************************/ + + /** + * Normalize parameters for meta box + * + * @param array $meta_box Meta box definition + * + * @return array $meta_box Normalized meta box + */ + static function normalize( $meta_box ) + { + // Set default values for meta box + $meta_box = wp_parse_args( + $meta_box, array( + 'id' => sanitize_title( $meta_box['title'] ), + 'context' => 'normal', + 'priority' => 'high', + 'pages' => array( 'post' ) + ) + ); + + // Set default values for fields + foreach ( $meta_box['fields'] as &$field ) + { + $field = wp_parse_args( + $field, array( + 'multiple' => false, + 'clone' => false, + 'std' => '', + 'desc' => '', + 'format' => '', + ) + ); + + // Allow field class add/change default field values + $field = self::apply_field_class_filters( $field, 'normalize_field', $field ); + + // Allow field class to manually change field_name + // @see taxonomy.php for example + if ( ! isset( $field['field_name'] ) ) + $field['field_name'] = $field['id']; + } + + return $meta_box; + } + + /** + * Get field class name + * + * @param array $field Field array + * + * @return bool|string Field class name OR false on failure + */ + static function get_class_name( $field ) + { + $type = ucwords( $field['type'] ); + $class = "RWMB_{$type}_Field"; + + if ( class_exists( $class ) ) + return $class; + + return false; + } + + /** + * Apply filters by field class, fallback to RW_Meta_Box method + * + * @param array $field + * @param string $method_name + * @param mixed $value + * + * @return mixed $value + */ + static function apply_field_class_filters( $field, $method_name, $value ) + { + $args = array_slice( func_get_args(), 2 ); + $args[] = $field; + + // Call: field class method + // Fallback: RW_Meta_Box method + $class = self::get_class_name( $field ); + if ( method_exists( $class, $method_name ) ) + { + $value = call_user_func_array( array( $class, $method_name ), $args ); + } + elseif ( method_exists( __CLASS__, $method_name ) ) + { + $value = call_user_func_array( array( __CLASS__, $method_name ), $args ); + } + + return $value; + } + + /** + * Call field class method for actions, fallback to RW_Meta_Box method + * + * @param array $field + * @param string $method_name + * + * @return mixed + */ + static function do_field_class_actions( $field, $method_name ) + { + $args = array_slice( func_get_args(), 2 ); + $args[] = $field; + + // Call: field class method + // Fallback: RW_Meta_Box method + $class = self::get_class_name( $field ); + if ( method_exists( $class, $method_name ) ) + { + call_user_func_array( array( $class, $method_name ), $args ); + } + elseif ( method_exists( __CLASS__, $method_name ) ) + { + call_user_func_array( array( __CLASS__, $method_name ), $args ); + } + } + + /** + * Format Ajax response + * + * @param string $message + * @param string $status + * + * @return void + */ + static function ajax_response( $message, $status ) + { + $response = array( 'what' => 'meta-box' ); + $response['data'] = 'error' === $status ? new WP_Error( 'error', $message ) : $message; + $x = new WP_Ajax_Response( $response ); + $x->send(); + } + + /** + * Check if meta box has been saved + * This helps saving empty value in meta fields (for text box, check box, etc.) + * + * @param int $post_id + * @param array $fields + * + * @return bool + */ + static function has_been_saved( $post_id, $fields ) + { + $saved = false; + foreach ( $fields as $field ) + { + if ( get_post_meta( $post_id, $field['id'], !$field['multiple'] ) ) + { + $saved = true; + break; + } + } + return $saved; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/checkbox-list.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/checkbox-list.php new file mode 100644 index 0000000..a6ced86 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/checkbox-list.php @@ -0,0 +1,51 @@ + %s'; + + foreach ( $field['options'] as $value => $label ) + { + $html[] = sprintf( + $tpl, + $field['field_name'], + $value, + checked( in_array( $value, $meta ), 1, false ), + $label + ); + } + return implode( '
    ', $html ); + } + + /** + * Normalize parameters for field + * + * @param array $field + * + * @return array + */ + static function normalize_field( $field ) + { + $field['multiple'] = true; + $field['field_name'] = "{$field['id']}[]"; + return $field; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/checkbox.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/checkbox.php new file mode 100644 index 0000000..339ac63 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/checkbox.php @@ -0,0 +1,46 @@ +', + $field['field_name'], + $field['id'], + checked( !empty( $meta ), 1, false ) + ); + } + + /** + * Set the value of checkbox to 1 or 0 instead of 'checked' and empty string + * This prevents using default value once the checkbox has been unchecked + * + * @link https://github.com/rilwis/meta-box/issues/6 + * + * @param mixed $new + * @param mixed $old + * @param int $post_id + * @param array $field + * + * @return int + */ + static function value( $new, $old, $post_id, $field ) + { + return empty( $new ) ? 0 : 1; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/color.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/color.php new file mode 100644 index 0000000..2b303d8 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/color.php @@ -0,0 +1,72 @@ + +
    ', + $field['field_name'], + empty( $field['clone'] ) ? $field['id'] : '', + $meta, + $field['size'] + ); + } + + /** + * Don't save '#' when no color is chosen + * + * @param mixed $new + * @param mixed $old + * @param int $post_id + * @param array $field + * + * @return int + */ + static function value( $new, $old, $post_id, $field ) + { + return '#' === $new ? '' : $new; + } + + /** + * Normalize parameters for field + * + * @param array $field + * + * @return array + */ + static function normalize_field( $field ) + { + $field = wp_parse_args( $field, array( + 'size' => 7, + ) ); + + return $field; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/date.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/date.php new file mode 100644 index 0000000..8615b21 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/date.php @@ -0,0 +1,71 @@ +', + $field['field_name'], + $meta, + isset( $field['clone'] ) && $field['clone'] ? '' : $field['id'], + $field['size'], + esc_attr( json_encode( $field['js_options'] ) ) + ); + } + + /** + * Normalize parameters for field + * + * @param array $field + * + * @return array + */ + static function normalize_field( $field ) + { + $field = wp_parse_args( $field, array( + 'size' => 30, + 'js_options' => array(), + ) ); + + // Deprecate 'format', but keep it for backward compatible + // Use 'js_options' instead + $field['js_options'] = wp_parse_args( $field['js_options'], array( + 'dateFormat' => empty( $field['format'] ) ? 'yy-mm-dd' : $field['format'], + 'showButtonPanel' => true, + ) ); + + return $field; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/datetime.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/datetime.php new file mode 100644 index 0000000..cd14c3b --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/datetime.php @@ -0,0 +1,76 @@ +', + $field['field_name'], + $meta, + isset( $field['clone'] ) && $field['clone'] ? '' : $field['id'], + $field['size'], + esc_attr( json_encode( $field['js_options'] ) ) + ); + } + + /** + * Normalize parameters for field + * + * @param array $field + * + * @return array + */ + static function normalize_field( $field ) + { + $field = wp_parse_args( $field, array( + 'size' => 30, + 'js_options' => array(), + ) ); + + // Deprecate 'format', but keep it for backward compatible + // Use 'js_options' instead + $field['js_options'] = wp_parse_args( $field['js_options'], array( + 'dateFormat' => empty( $field['format'] ) ? 'yy-mm-dd' : $field['format'], + 'timeFormat' => 'hh:mm', + 'showButtonPanel' => true, + ) ); + + return $field; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/file.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/file.php new file mode 100644 index 0000000..4fde204 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/file.php @@ -0,0 +1,202 @@ +"; + + // Uploaded files + if ( ! empty( $meta ) ) + { + $html .= '
      '; + $li = '
    1. %s (%s)
    2. '; + + foreach ( $meta as $attachment_id ) + { + $attachment = wp_get_attachment_link( $attachment_id ); + $html .= sprintf( + $li, + $attachment, + $i18n_delete, + $attachment_id, + $i18n_delete + ); + } + + $html .= '
    '; + } + + // Show form upload + $html .= sprintf( + '

    %s

    +
    +
    + %s +
    ', + $i18n_title, + $field['id'], + $i18n_more + ); + + return $html; + } + + /** + * Save file field + * + * @param mixed $new + * @param mixed $old + * @param int $post_id + * @param array $field + */ + static function save( $new, $old, $post_id, $field ) + { + $name = $field['id']; + if ( empty( $_FILES[ $name ] ) ) + return; + + $files = self::fix_file_array( $_FILES[ $name ] ); + + foreach ( $files as $file_item ) + { + $file = wp_handle_upload( $file_item, array( 'test_form' => false ) ); + + if ( ! isset( $file['file'] ) ) + continue; + + $file_name = $file['file']; + + $attachment = array( + 'post_mime_type' => $file['type'], + 'guid' => $file['url'], + 'post_parent' => $post_id, + 'post_title' => preg_replace( '/\.[^.]+$/', '', basename( $file_name ) ), + 'post_content' => '', + ); + $id = wp_insert_attachment( $attachment, $file_name, $post_id ); + + if ( ! is_wp_error( $id ) ) + { + wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file_name ) ); + + // Save file ID in meta field + add_post_meta( $post_id, $name, $id, false ); + } + } + } + + /** + * Fixes the odd indexing of multiple file uploads from the format: + * $_FILES['field']['key']['index'] + * To the more standard and appropriate: + * $_FILES['field']['index']['key'] + * + * @param array $files + * + * @return array + */ + static function fix_file_array( $files ) + { + $output = array(); + foreach ( $files as $key => $list ) + { + foreach ( $list as $index => $value ) + { + $output[$index][$key] = $value; + } + } + return $output; + } + + /** + * Normalize parameters for field + * + * @param array $field + * + * @return array + */ + static function normalize_field( $field ) + { + $field['multiple'] = true; + $field['std'] = empty( $field['std'] ) ? array() : $field['std']; + return $field; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/gallery.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/gallery.php new file mode 100644 index 0000000..f48a60c --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/gallery.php @@ -0,0 +1,71 @@ +ID; + $thumb_ID = get_post_thumbnail_id( $post_id ); + + $arrImages = get_children( + array( + 'post_type' => 'attachment', + 'post_mime_type' => 'image', + 'post_parent' => $post_id, + 'order' => 'DESC', + 'orderby' => 'ID', + 'exclude' => $thumb_ID //Exclude featured image from list + ) + ); + + $i18n_title = _x( '', 'image upload', 'bean' ); + + $html = wp_nonce_field( "rwmb-delete-file_{$field['id']}", "nonce-delete-file_{$field['id']}", false, false ); + $html .= wp_nonce_field( "rwmb-reorder-galleries_{$field['id']}", "nonce-reorder-galleries_{$field['id']}", false, false ); + $html .= ""; + + // Show form upload + $html .= " + +

    {$i18n_title}

    + + " . __('Add Images', 'bean') . "

    "; + + //TOD - Add image drag and drop ordering + foreach($arrImages as $image){ + $html .= ""; + } + + return $html; + } + + } +} \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/hidden.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/hidden.php new file mode 100644 index 0000000..a4ce6f3 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/hidden.php @@ -0,0 +1,28 @@ +', + $field['field_name'], + $field['id'], + $meta + ); + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/image.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/image.php new file mode 100644 index 0000000..8be8c12 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/image.php @@ -0,0 +1,179 @@ + $item, + 'menu_order' => $order++, + ) + ); + } + + RW_Meta_Box::ajax_response( __( 'Order saved', 'bean' ), 'success' ); + } + + /** + * Get field HTML + * + * @param string $html + * @param mixed $meta + * @param array $field + * + * @return string + */ + static function html( $html, $meta, $field ) + { + $i18n_title = _x( 'Upload Image', 'image upload', 'bean' ); + $i18n_more = _x( '+ Add new image', 'image upload', 'bean' ); + + $html = wp_nonce_field( "rwmb-delete-file_{$field['id']}", "nonce-delete-file_{$field['id']}", false, false ); + $html .= wp_nonce_field( "rwmb-reorder-images_{$field['id']}", "nonce-reorder-images_{$field['id']}", false, false ); + $html .= ""; + + // Uploaded images + if ( ! empty( $meta ) ) + $html .= self::get_uploaded_images( $meta ); + + // Show form upload + $html .= sprintf( + '

    %s

    +
    +
    + %s +
    ', + $i18n_title, + $field['id'], + $i18n_more + ); + + return $html; + } + + /** + * Get HTML markup for uploaded images + * + * @param array $images + * + * @return string + */ + static function get_uploaded_images( $images ) + { + $i18n_delete = _x( 'Delete', 'image upload', 'bean' ); + $i18n_edit = _x( 'Edit', 'image upload', 'bean' ); + + $html = ''; + + return $html; + } + + /** + * Standard meta retrieval + * + * @param mixed $meta + * @param int $post_id + * @param array $field + * @param bool $saved + * + * @return mixed + */ + static function meta( $meta, $post_id, $saved, $field ) + { + global $wpdb; + + $meta = RW_Meta_Box::meta( $meta, $post_id, $saved, $field ); + + if ( empty( $meta ) ) + return array(); + + $meta = implode( ',' , $meta ); + + // Re-arrange images with 'menu_order' + $meta = $wpdb->get_col( " + SELECT ID FROM {$wpdb->posts} + WHERE post_type = 'attachment' + AND ID in ({$meta}) + ORDER BY menu_order ASC + " ); + + return (array) $meta; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/password.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/password.php new file mode 100644 index 0000000..27b5f02 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/password.php @@ -0,0 +1,45 @@ +', + $field['field_name'], + $field['id'], + $meta, + $field['size'] + ); + } + + /** + * Normalize parameters for field + * + * @param array $field + * + * @return array + */ + static function normalize_field( $field ) + { + $field = wp_parse_args( $field, array( + 'size' => 30, + ) ); + + return $field; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/plupload-image.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/plupload-image.php new file mode 100644 index 0000000..cf9b250 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/plupload-image.php @@ -0,0 +1,169 @@ + true, + 'action' => 'plupload_image_upload', + ) + ); + $attachment = array( + 'guid' => $file_attr['url'], + 'post_mime_type' => $file_attr['type'], + 'post_title' => preg_replace( '/\.[^.]+$/', '', basename( $file['name'] ) ), + 'post_content' => '', + 'post_status' => 'inherit', + ); + + // Adds file as attachment to WordPress + $id = wp_insert_attachment( $attachment, $file_attr['file'], $post_id ); + if ( ! is_wp_error( $id ) ) + { + wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file_attr['file'] ) ); + + // Save file ID in meta field + if ( isset( $_REQUEST['field_id'] ) ) + add_post_meta( $post_id, $_REQUEST['field_id'], $id, false ); + + $response = new WP_Ajax_Response(); + $response->add( + array( + 'what' => 'rwmb_image_response', + 'data' => self::img_html( $id ), + ) + ); + $response->send(); + } + + exit; + } + + /** + * Enqueue scripts and styles + * + * @return void + */ + static function admin_enqueue_scripts() + { + + // Enqueue same scripts and styles as for file field + parent::admin_enqueue_scripts(); + wp_enqueue_style( 'rwmb-plupload-image', RWMB_CSS_URL . 'plupload-image.css', array( 'wp-admin' ), RWMB_VER ); + wp_enqueue_script( 'rwmb-plupload-image', RWMB_JS_URL . 'plupload-image.js', array( 'jquery-ui-sortable', 'wp-ajax-response', 'plupload-all' ), RWMB_VER, true ); + wp_localize_script( 'rwmb-plupload-image', 'RWMB', array( 'url' => RWMB_URL ) ); + wp_localize_script( + 'rwmb-plupload-image', 'rwmb_plupload_defaults', array( + 'runtimes' => 'html5,silverlight,flash,html4', + 'file_data_name' => 'async-upload', + 'multiple_queues' => true, + 'max_file_size' => wp_max_upload_size() . 'b', + 'url' => admin_url( 'admin-ajax.php' ), + 'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ), + 'silverlight_xap_url' => includes_url( 'js/plupload/plupload.silverlight.xap' ), + 'filters' => array( + array( + 'title' => _x( 'Allowed Image Files', 'image upload', 'bean' ), + 'extensions' => 'jpg,jpeg,gif,png', + ), + ), + 'multipart' => true, + 'urlstream_upload' => true, + ) + ); + } + + /** + * Get field HTML + * + * @param string $html + * @param mixed $meta + * @param array $field + * + * @return string + */ + static function html( $html, $meta, $field ) + { + if ( ! is_array( $meta ) ) + $meta = ( array ) $meta; + + // Filter to change the drag & drop box background string + $i18n_drop = apply_filters( 'rwmb_upload_drop_string', _x( 'Drop images here', 'image upload', 'bean' ) ); + $i18n_or = _x( 'or', 'image upload', 'bean' ); + $i18n_select = _x( 'Select Files', 'image upload', 'bean' ); + $img_prefix = $field['id']; + + $html = wp_nonce_field( "rwmb-delete-file_{$field['id']}", "nonce-delete-file_{$field['id']}", false, false ); + $html .= wp_nonce_field( "rwmb-reorder-images_{$field['id']}", "nonce-reorder-images_{$field['id']}", false, false ); + $html .= wp_nonce_field( "rwmb-upload-images_{$field['id']}", "nonce-upload-images_{$field['id']}", false, false ); + $html .= ""; + + // Uploaded images + $html .= "
    "; + + // Check for max_file_uploads + $classes = array( 'rwmb-drag-drop', 'drag-drop', 'hide-if-no-js' ); + if ( ! empty( $field['max_file_uploads'] ) ) + { + $max_file_uploads = (int) $field['max_file_uploads']; + $html .= ""; + if ( count( $meta ) >= $max_file_uploads ) + $classes[] = 'hidden'; + } + + $html .= self::get_uploaded_images( $meta ); + + // Show form upload + $html .= sprintf( + '
    +
    +

    %s

    +

    %s

    +

    +
    +
    ', + $img_prefix, + implode( ' ', $classes ), + $i18n_drop, + $i18n_or, + $img_prefix, + $i18n_select + ); + + $html .= '
    '; + + return $html; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/radio-image.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/radio-image.php new file mode 100644 index 0000000..82ff1bd --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/radio-image.php @@ -0,0 +1,45 @@ + $value ) + { + $checked = checked( $meta, $key, false ); + $selected = $checked ? ' selected' : ''; + $id = strstr( $field['id'], '[]' ) ? str_replace( '[]', "-{$key}[]", $field['id'] ) : $field['id']; + $id = " id='{$id}'"; + $name = "name='{$field['field_name']}'"; + $val = " value='{$key}'"; + $html .= " "; + } + + return $html; + } + } +} \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/radio.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/radio.php new file mode 100644 index 0000000..876b611 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/radio.php @@ -0,0 +1,37 @@ + %s'; + + foreach ( $field['options'] as $value => $label ) + { + $html .= sprintf( + $tpl, + $field['field_name'], + $value, + checked( $value, $meta, false ), + $label + ); + } + + return $html; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/select.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/select.php new file mode 100644 index 0000000..99394b7 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/select.php @@ -0,0 +1,55 @@ +', + $field['field_name'], + $field['id'], + $field['multiple'] ? ' multiple="multiple"' : '' + ); + $option = ''; + + foreach ( $field['options'] as $value => $label ) + { + $html .= sprintf( + $option, + $value, + selected( in_array( $value, $meta ), true, false ), + $label + ); + } + $html .= ''; + + return $html; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/slider.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/slider.php new file mode 100644 index 0000000..6c388d0 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/slider.php @@ -0,0 +1,48 @@ + +
    + +
    ', + $field['format'], + $field['id'], + $field['field_name'], + $meta + ); + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/text.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/text.php new file mode 100644 index 0000000..e9d4823 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/text.php @@ -0,0 +1,44 @@ +', + $field['field_name'], + $field['id'], + $meta, + $field['size'] + ); + } + + /** + * Normalize parameters for field + * + * @param array $field + * + * @return array + */ + static function normalize_field( $field ) + { + $field = wp_parse_args( $field, array( + 'size' => 30, + ) ); + return $field; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/textarea.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/textarea.php new file mode 100644 index 0000000..d802bd1 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/textarea.php @@ -0,0 +1,46 @@ +%s', + $field['field_name'], + $field['id'], + $field['cols'], + $field['rows'], + $meta + ); + } + + /** + * Normalize parameters for field + * + * @param array $field + * + * @return array + */ + static function normalize_field( $field ) + { + $field = wp_parse_args( $field, array( + 'cols' => 60, + 'rows' => 3, + ) ); + return $field; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/thickbox-image.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/thickbox-image.php new file mode 100644 index 0000000..a1123ab --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/thickbox-image.php @@ -0,0 +1,72 @@ +"; + + // Uploaded images + $html .= self::get_uploaded_images( $meta ); + + // Show form upload + $html .= "{$i18n_title}"; + + return $html; + } + + /** + * Save file field + * + * @param mixed $new + * @param mixed $old + * @param int $post_id + * @param array $field + */ + static function save( $new, $old, $post_id, $field ) + { + if ( ! is_array( $new ) || empty( $new ) ) + return; + + $name = $field['id']; + $images = (array) get_post_meta( $post_id, $name, false ); + foreach ( $new as $add_new ) + { + if ( ! in_array( $add_new, $images ) ) + add_post_meta( $post_id, $name, $add_new, false ); + } + } + } +} \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/time.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/time.php new file mode 100644 index 0000000..95f41c3 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/time.php @@ -0,0 +1,76 @@ +', + $field['field_name'], + $meta, + isset( $field['clone'] ) && $field['clone'] ? '' : $field['id'], + $field['size'], + esc_attr( json_encode( $field['js_options'] ) ) + ); + } + + /** + * Normalize parameters for field + * + * @param array $field + * + * @return array + */ + static function normalize_field( $field ) + { + $field = wp_parse_args( $field, array( + 'size' => 30, + 'js_options' => array(), + ) ); + + // Deprecate 'format', but keep it for backward compatible + // Use 'js_options' instead + $field['js_options'] = wp_parse_args( $field['js_options'], array( + 'timeOnly' => true, + 'showButtonPanel' => true, + 'timeFormat' => empty( $field['format'] ) ? 'hh:mm:ss' : $field['format'], + ) ); + + return $field; + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/wysiwyg.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/wysiwyg.php new file mode 100644 index 0000000..04ab33e --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/fields/wysiwyg.php @@ -0,0 +1,87 @@ +%s', + $field['field_name'], + $field['id'], + $meta + ); + } + else + { + // Apply filter to wp_editor() settings + $editor_settings = apply_filters( 'rwmb_wysiwyg_settings', array( 'editor_class' => 'rwmb-wysiwyg' ), 10, 1 ); + // Using output buffering because wp_editor() echos directly + ob_start(); + // Use new wp_editor() since WP 3.3 + wp_editor( $meta, $field['id'], $editor_settings ); + + return ob_get_clean( ); + } + } + } +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/inc/helpers.php b/wp-content/themes/acute/lib/admin/metaboxes/inc/helpers.php new file mode 100644 index 0000000..a6b4171 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/inc/helpers.php @@ -0,0 +1,130 @@ + 'text', + ) ); + + // Set 'multiple' for fields based on 'type' + $args['multiple'] = in_array( $args['type'], array( 'checkbox_list', 'file', 'image', 'plupload_image', 'thickbox_image' ) ); + + $meta = get_post_meta( $post_id, $key, !$args['multiple'] ); + + // Get uploaded files info + if ( 'file' == $args['type'] ) + { + if ( is_array( $meta ) && ! empty( $meta ) ) + { + $files = array(); + foreach ( $meta as $id ) + { + $files[$id] = rwmb_file_info( $id ); + } + $meta = $files; + } + } + + // Get uploaded images info + elseif ( in_array( $args['type'], array( 'image', 'plupload_image', 'thickbox_image' ) ) ) + { + if ( is_array( $meta ) && ! empty( $meta ) ) + { + global $wpdb; + $meta = implode( ',' , $meta ); + + // Re-arrange images with 'menu_order' + $meta = $wpdb->get_col( " + SELECT ID FROM {$wpdb->posts} + WHERE post_type = 'attachment' + AND ID in ({$meta}) + ORDER BY menu_order ASC + " ); + + $images = array(); + foreach ( $meta as $id ) + { + $images[$id] = rwmb_image_info( $id, $args ); + } + $meta = $images; + } + } + + // Get post terms + elseif ( 'taxonomy' == $args['type'] ) + { + $meta = empty( $args['taxonomy'] ) ? array() : wp_get_post_terms( $post_id, $args['taxonomy'] ); + } + + return $meta; +} + +/** + * Get uploaded file information + * + * @param int $id Attachment file ID (post ID). Required. + * + * @return array|bool False if file not found. Array of (id, name, path, url) on success + */ +function rwmb_file_info( $id ) +{ + $path = get_attached_file( $id ); + return array( + 'name' => basename( $path ), + 'path' => $path, + 'url' => wp_get_attachment_url( $id ), + 'title' => get_the_title( $id ), + ); +} + +/** + * Get uploaded image information + * + * @param int $id Attachment image ID (post ID). Required. + * @param array $args Array of arguments (for size). Required. + * + * @return array|bool False if file not found. Array of (id, name, path, url) on success + */ +function rwmb_image_info( $id, $args = array() ) +{ + $args = wp_parse_args( $args, array( + 'size' => 'thumbnail', + ) ); + + $img_src = wp_get_attachment_image_src( $id, $args['size'] ); + if ( empty( $img_src ) ) + return false; + + $attachment = &get_post( $id ); + $path = get_attached_file( $id ); + return array( + 'name' => basename( $path ), + 'path' => $path, + 'url' => $img_src[0], + 'width' => $img_src[1], + 'height' => $img_src[2], + 'full_url' => wp_get_attachment_url( $id ), + 'title' => $attachment->post_title, + 'caption' => $attachment->post_excerpt, + 'description' => $attachment->post_content, + 'alt' => get_post_meta( $id, '_wp_attachment_image_alt', true ), + ); +} diff --git a/wp-content/themes/acute/lib/admin/metaboxes/js/clone.js b/wp-content/themes/acute/lib/admin/metaboxes/js/clone.js new file mode 100644 index 0000000..dcd6478 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/js/clone.js @@ -0,0 +1,132 @@ +jQuery( document ).ready( function ( $ ) +{ + toggle_remove_buttons(); + + function add_cloned_fields( $input ) + { + var $clone_last = $input.find( '.rwmb-clone:last' ), + $clone = $clone_last.clone(), + $input, name; + + $clone.insertAfter( $clone_last ); + $input = $clone.find( ':input' ); + + // Reset value + $input.val( '' ); + + // Get the field name, and increment + name = $input.attr( 'name' ).replace( /\[(\d+)\]/, function ( match, p1 ) + { + return '[' + ( parseInt( p1 ) + 1 ) + ']'; + } ); + + // Update the "name" attribute + $input.attr( 'name', name ); + + // Toggle remove buttons + toggle_remove_buttons( $input ); + + // Fix color picker + if ( 'function' === typeof rwmb_update_color_picker ) + rwmb_update_color_picker(); + + // Fix date picker + if ( 'function' === typeof rwmb_update_date_picker ) + rwmb_update_date_picker(); + + // Fix time picker + if ( 'function' === typeof rwmb_update_time_picker ) + rwmb_update_time_picker(); + + // Fix datetime picker + if ( 'function' === typeof rwmb_update_datetime_picker ) + rwmb_update_datetime_picker(); + } + + // Add more clones + $( '.add-clone' ).click( function () + { + var $input = $( this ).parents( '.rwmb-input' ), + $clone_group = $( this ).parents( '.rwmb-field' ).attr( "clone-group" ); + + // If the field is part of a clone group, get all fields in that + // group and itterate over them + if ( $clone_group ) + { + // Get the parent metabox and then find the matching + // clone-group elements inside + var $metabox = $( this ).parents( '.inside' ); + var $clone_group_list = $metabox.find( 'div[clone-group="' + $clone_group + '"]' ); + + $.each( $clone_group_list.find( '.rwmb-input' ), + function ( key, value ) + { + add_cloned_fields( $( value ) ); + } ); + } + else + add_cloned_fields( $input ); + + toggle_remove_buttons( $input ); + + return false; + } ); + + // Remove clones + $( '.rwmb-input' ).delegate( '.remove-clone', 'click', function () + { + var $this = $( this ), + $input = $this.parents( '.rwmb-input' ), + $clone_group = $( this ).parents( '.rwmb-field' ).attr( 'clone-group' ); + + // Remove clone only if there're 2 or more of them + if ( $input.find( '.rwmb-clone' ).length <= 1 ) + return false; + + if ( $clone_group ) + { + // Get the parent metabox and then find the matching + // clone-group elements inside + var $metabox = $( this ).parents( '.inside' ); + var $clone_group_list = $metabox.find( 'div[clone-group="' + $clone_group + '"]' ); + var $index = $this.parent().index(); + + $.each( $clone_group_list.find( '.rwmb-input' ), + function ( key, value ) + { + $( value ).children( '.rwmb-clone' ).eq( $index ).remove(); + + // Toggle remove buttons + toggle_remove_buttons( $( value ) ); + } ); + } + else + { + $this.parent().remove(); + + // Toggle remove buttons + toggle_remove_buttons( $input ); + } + + return false; + } ); + + /** + * Hide remove buttons when there's only 1 of them + * + * @param $el jQuery element. If not supplied, the function will applies for all fields + * + * @return void + */ + function toggle_remove_buttons( $el ) + { + var $button; + if ( !$el ) + $el = $( '.rwmb-field' ); + $el.each( function () + { + $button = $( this ).find( '.remove-clone' ); + $button.length < 2 ? $button.hide() : $button.show(); + } ); + } +} ); diff --git a/wp-content/themes/acute/lib/admin/metaboxes/js/color.js b/wp-content/themes/acute/lib/admin/metaboxes/js/color.js new file mode 100644 index 0000000..37b2db3 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/js/color.js @@ -0,0 +1,34 @@ +/** + * Update color picker element + * Used for static & dynamic added elements (when clone) + */ +function rwmb_update_color_picker() +{ + var $ = jQuery; + $( '.rwmb-color-picker' ).each( function() + { + var $this = $( this ), + $input = $this.siblings( 'input.rwmb-color' ); + + // Make sure the value is displayed + if ( ! $input.val() ) + $input.val( '#' ); + + $this.farbtastic( $input ); + } ); +} + +jQuery( document ).ready( function($) +{ + $( '.rwmb-input' ).delegate( '.rwmb-color', 'focus', function() + { + $( this ).siblings( '.rwmb-color-picker' ).show(); + return false; + } ).delegate( '.rwmb-color', 'blur', function() + { + $( this ).siblings( '.rwmb-color-picker' ).hide(); + return false; + } ); + + rwmb_update_color_picker(); +} ); diff --git a/wp-content/themes/acute/lib/admin/metaboxes/js/date.js b/wp-content/themes/acute/lib/admin/metaboxes/js/date.js new file mode 100644 index 0000000..df0876a --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/js/date.js @@ -0,0 +1,21 @@ +/** + * Update date picker element + * Used for static & dynamic added elements (when clone) + */ +function rwmb_update_date_picker() +{ + var $ = jQuery; + + $( '.rwmb-date' ).each( function() + { + var $this = $( this ), + options = $this.data( 'options' ); + + $this.removeClass( 'hasDatepicker' ).attr( 'id', '' ).datepicker( options ); + } ); +} + +jQuery( document ).ready( function($) +{ + rwmb_update_date_picker(); +} ); diff --git a/wp-content/themes/acute/lib/admin/metaboxes/js/datetime.js b/wp-content/themes/acute/lib/admin/metaboxes/js/datetime.js new file mode 100644 index 0000000..05a0b19 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/js/datetime.js @@ -0,0 +1,21 @@ +/** + * Update datetime picker element + * Used for static & dynamic added elements (when clone) + */ +function rwmb_update_datetime_picker() +{ + var $ = jQuery; + + $( '.rwmb-datetime' ).each( function() + { + var $this = $( this ), + options = $this.data( 'options' ); + + $this.removeClass( 'hasDatepicker' ).attr( 'id', '' ).datetimepicker( options ); + } ); +} + +jQuery( document ).ready( function($) +{ + rwmb_update_datetime_picker(); +} ); diff --git a/wp-content/themes/acute/lib/admin/metaboxes/js/file.js b/wp-content/themes/acute/lib/admin/metaboxes/js/file.js new file mode 100644 index 0000000..7b05a58 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/js/file.js @@ -0,0 +1,38 @@ +jQuery( document ).ready( function($) +{ + // Add more file + $( '.rwmb-add-file' ).click( function() + { + var $this = $( this ), $first = $this.parent().find( '.file-input:first' ); + + $first.clone().insertBefore( $this ); + + return false; + } ); + + // Delete file via Ajax + $( '.rwmb-uploaded' ).delegate( '.rwmb-delete-file', 'click', function() + { + var $this = $(this), + $parent = $this.closest( 'li' ), + field_id = $this.parents( '.rwmb-field' ).find( '.field-id' ).val(), + data = { + action : 'rwmb_delete_file', + _wpnonce : $('#nonce-delete-file_' + field_id).val(), + post_id : $('#post_ID').val(), + field_id : field_id, + attachment_id: $this.attr('rel') + }; + + $.post( ajaxurl, data, function( r ) + { + var res = wpAjax.parseAjaxResponse( r, 'ajax-response' ); + if ( res.errors ) + alert( res.responses[0].errors[0].message ); + else + $parent.remove(); + }, 'xml' ); + + return false; + } ); +} ); diff --git a/wp-content/themes/acute/lib/admin/metaboxes/js/gallery.js b/wp-content/themes/acute/lib/admin/metaboxes/js/gallery.js new file mode 100644 index 0000000..98c1ee6 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/js/gallery.js @@ -0,0 +1,15 @@ +jQuery( document ).ready( function($) { + + pID = $("#post_ID").val(); + + $(".rw-upload-button").live("click",function(){ + tb_show("", "media-upload.php?post_id="+pID+"&type=image&TB_iframe=true"); + return false; + }); + + $(".eachthumbs").live("click",function(){ + tb_show("", "media-upload.php?post_id="+pID+"&tab=gallery&TB_iframe=true"); + return false; + }); + +}); \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/js/heartcode-canvasloader-min-0.9.1.js b/wp-content/themes/acute/lib/admin/metaboxes/js/heartcode-canvasloader-min-0.9.1.js new file mode 100644 index 0000000..a17ee48 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/js/heartcode-canvasloader-min-0.9.1.js @@ -0,0 +1,12 @@ +(function(w){var k=function(b,c){typeof c=="undefined"&&(c={});this.init(b,c)},a=k.prototype,o,p=["canvas","vml"],f=["oval","spiral","square","rect","roundRect"],x=/^\#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,v=navigator.appVersion.indexOf("MSIE")!==-1&&parseFloat(navigator.appVersion.split("MSIE")[1])===8?true:false,y=!!document.createElement("canvas").getContext,q=true,n=function(b,c,a){var b=document.createElement(b),d;for(d in a)b[d]=a[d];typeof c!=="undefined"&&c.appendChild(b);return b},m=function(b, +c){for(var a in c)b.style[a]=c[a];return b},t=function(b,c){for(var a in c)b.setAttribute(a,c[a]);return b},u=function(b,c,a,d){b.save();b.translate(c,a);b.rotate(d);b.translate(-c,-a);b.beginPath()};a.init=function(b,c){if(typeof c.safeVML==="boolean")q=c.safeVML;try{this.mum=document.getElementById(b)!==void 0?document.getElementById(b):document.body}catch(a){this.mum=document.body}c.id=typeof c.id!=="undefined"?c.id:"canvasLoader";this.cont=n("div",this.mum,{id:c.id});if(y)o=p[0],this.can=n("canvas", +this.cont),this.con=this.can.getContext("2d"),this.cCan=m(n("canvas",this.cont),{display:"none"}),this.cCon=this.cCan.getContext("2d");else{o=p[1];if(typeof k.vmlSheet==="undefined"){document.getElementsByTagName("head")[0].appendChild(n("style"));k.vmlSheet=document.styleSheets[document.styleSheets.length-1];var d=["group","oval","roundrect","fill"],e;for(e in d)k.vmlSheet.addRule(d[e],"behavior:url(#default#VML); position:absolute;")}this.vml=n("group",this.cont)}this.setColor(this.color);this.draw(); +m(this.cont,{display:"none"})};a.cont={};a.can={};a.con={};a.cCan={};a.cCon={};a.timer={};a.activeId=0;a.diameter=40;a.setDiameter=function(b){this.diameter=Math.round(Math.abs(b));this.redraw()};a.getDiameter=function(){return this.diameter};a.cRGB={};a.color="#000000";a.setColor=function(b){this.color=x.test(b)?b:"#000000";this.cRGB=this.getRGB(this.color);this.redraw()};a.getColor=function(){return this.color};a.shape=f[0];a.setShape=function(b){for(var c in f)if(b===f[c]){this.shape=b;this.redraw(); +break}};a.getShape=function(){return this.shape};a.density=40;a.setDensity=function(b){this.density=q&&o===p[1]?Math.round(Math.abs(b))<=40?Math.round(Math.abs(b)):40:Math.round(Math.abs(b));if(this.density>360)this.density=360;this.activeId=0;this.redraw()};a.getDensity=function(){return this.density};a.range=1.3;a.setRange=function(b){this.range=Math.abs(b);this.redraw()};a.getRange=function(){return this.range};a.speed=2;a.setSpeed=function(b){this.speed=Math.round(Math.abs(b))};a.getSpeed=function(){return this.speed}; +a.fps=24;a.setFPS=function(b){this.fps=Math.round(Math.abs(b));this.reset()};a.getFPS=function(){return this.fps};a.getRGB=function(b){b=b.charAt(0)==="#"?b.substring(1,7):b;return{r:parseInt(b.substring(0,2),16),g:parseInt(b.substring(2,4),16),b:parseInt(b.substring(4,6),16)}};a.draw=function(){var b=0,c,a,d,e,h,k,j,r=this.density,s=Math.round(r*this.range),l,i,q=0;i=this.cCon;var g=this.diameter;if(o===p[0]){i.clearRect(0,0,1E3,1E3);t(this.can,{width:g,height:g});for(t(this.cCan,{width:g,height:g});b< +r;){l=b<=s?1-1/s*b:l=0;k=270-360/r*b;j=k/180*Math.PI;i.fillStyle="rgba("+this.cRGB.r+","+this.cRGB.g+","+this.cRGB.b+","+l.toString()+")";switch(this.shape){case f[0]:case f[1]:c=g*0.07;e=g*0.47+Math.cos(j)*(g*0.47-c)-g*0.47;h=g*0.47+Math.sin(j)*(g*0.47-c)-g*0.47;i.beginPath();this.shape===f[1]?i.arc(g*0.5+e,g*0.5+h,c*l,0,Math.PI*2,false):i.arc(g*0.5+e,g*0.5+h,c,0,Math.PI*2,false);break;case f[2]:c=g*0.12;e=Math.cos(j)*(g*0.47-c)+g*0.5;h=Math.sin(j)*(g*0.47-c)+g*0.5;u(i,e,h,j);i.fillRect(e,h-c*0.5, +c,c);break;case f[3]:case f[4]:a=g*0.3,d=a*0.27,e=Math.cos(j)*(d+(g-d)*0.13)+g*0.5,h=Math.sin(j)*(d+(g-d)*0.13)+g*0.5,u(i,e,h,j),this.shape===f[3]?i.fillRect(e,h-d*0.5,a,d):(c=d*0.55,i.moveTo(e+c,h-d*0.5),i.lineTo(e+a-c,h-d*0.5),i.quadraticCurveTo(e+a,h-d*0.5,e+a,h-d*0.5+c),i.lineTo(e+a,h-d*0.5+d-c),i.quadraticCurveTo(e+a,h-d*0.5+d,e+a-c,h-d*0.5+d),i.lineTo(e+c,h-d*0.5+d),i.quadraticCurveTo(e,h-d*0.5+d,e,h-d*0.5+d-c),i.lineTo(e,h-d*0.5+c),i.quadraticCurveTo(e,h-d*0.5,e+c,h-d*0.5))}i.closePath();i.fill(); +i.restore();++b}}else{m(this.cont,{width:g,height:g});m(this.vml,{width:g,height:g});switch(this.shape){case f[0]:case f[1]:j="oval";c=140;break;case f[2]:j="roundrect";c=120;break;case f[3]:case f[4]:j="roundrect",c=300}a=d=c;e=500-d;for(h=-d*0.5;b=1;)b.removeChild(b.firstChild)}};a.redraw=function(){this.clean();this.draw()};a.reset=function(){typeof this.timer=== +"number"&&(this.hide(),this.show())};a.tick=function(b){var a=this.con,f=this.diameter;b||(this.activeId+=360/this.density*this.speed);o===p[0]?(a.clearRect(0,0,f,f),u(a,f*0.5,f*0.5,this.activeId/180*Math.PI),a.drawImage(this.cCan,0,0,f,f),a.restore()):(this.activeId>=360&&(this.activeId-=360),m(this.vml,{rotation:this.activeId}))};a.show=function(){if(typeof this.timer!=="number"){var a=this;this.timer=self.setInterval(function(){a.tick()},Math.round(1E3/this.fps));m(this.cont,{display:"block"})}}; +a.hide=function(){typeof this.timer==="number"&&(clearInterval(this.timer),delete this.timer,m(this.cont,{display:"none"}))};a.kill=function(){var a=this.cont;typeof this.timer==="number"&&this.hide();o===p[0]?(a.removeChild(this.can),a.removeChild(this.cCan)):a.removeChild(this.vml);for(var c in this)delete this[c]};w.CanvasLoader=k})(window); \ No newline at end of file diff --git a/wp-content/themes/acute/lib/admin/metaboxes/js/image.js b/wp-content/themes/acute/lib/admin/metaboxes/js/image.js new file mode 100644 index 0000000..ac5d494 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/js/image.js @@ -0,0 +1,30 @@ +jQuery( document ).ready( function($) +{ + // Reorder images + $( '.rwmb-images' ).each( function() + { + var $this = $(this), + field_id = $this.parents( '.rwmb-field' ).find( '.field-id' ).val(), + data = { + action : 'rwmb_reorder_images', + _wpnonce: $('#nonce-reorder-images_' + field_id).val(), + post_id : $('#post_ID').val(), + field_id: field_id + }; + $this.sortable( + { + placeholder: 'ui-state-highlight', + items: 'li', + update: function () { + data.order = $this.sortable( 'serialize' ); + + $.post( ajaxurl, data, function( r ) + { + var res = wpAjax.parseAjaxResponse( r, 'ajax-response' ); + if ( res.errors ) + alert( res.responses[0].errors[0].message ); + }, 'xml' ); + } + } ); + } ); +} ); diff --git a/wp-content/themes/acute/lib/admin/metaboxes/js/jqueryui/jquery-ui-timepicker-addon.js b/wp-content/themes/acute/lib/admin/metaboxes/js/jqueryui/jquery-ui-timepicker-addon.js new file mode 100644 index 0000000..1df6448 --- /dev/null +++ b/wp-content/themes/acute/lib/admin/metaboxes/js/jqueryui/jquery-ui-timepicker-addon.js @@ -0,0 +1,71 @@ +/* +* jQuery timepicker addon +* By: Trent Richardson [http://trentrichardson.com] +* Version 0.9.7 +* Last Modified: 10/02/2011 +* +* Copyright 2011 Trent Richardson +* Dual licensed under the MIT and GPL licenses. +* http://trentrichardson.com/Impromptu/GPL-LICENSE.txt +* http://trentrichardson.com/Impromptu/MIT-LICENSE.txt +* +* HERES THE CSS: +* .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; } +* .ui-timepicker-div dl { text-align: left; } +* .ui-timepicker-div dl dt { height: 25px; } +* .ui-timepicker-div dl dd { margin: -25px 10px 10px 65px; } +* .ui-timepicker-div td { font-size: 90%; } +* .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } +*/ + +(function(e){function m(){this.regional=[];this.regional[""]={currentText:"Now",closeText:"Done",ampm:false,amNames:["AM","A"],pmNames:["PM","P"],timeFormat:"hh:mm tt",timeSuffix:"",timeOnlyTitle:"Choose Time",timeText:"Time",hourText:"Hour",minuteText:"Minute",secondText:"Second",millisecText:"Millisecond",timezoneText:"Time Zone"};this._defaults={showButtonPanel:true,timeOnly:false,showHour:true,showMinute:true,showSecond:false,showMillisec:false,showTimezone:false,showTime:true,stepHour:0.05,stepMinute:0.05, +stepSecond:0.05,stepMillisec:0.5,hour:0,minute:0,second:0,millisec:0,timezone:"+0000",hourMin:0,minuteMin:0,secondMin:0,millisecMin:0,hourMax:23,minuteMax:59,secondMax:59,millisecMax:999,minDateTime:null,maxDateTime:null,onSelect:null,hourGrid:0,minuteGrid:0,secondGrid:0,millisecGrid:0,alwaysSetTime:true,separator:" ",altFieldTimeOnly:true,showTimepicker:true,timezoneIso8609:false,timezoneList:null};e.extend(this._defaults,this.regional[""])}e.extend(e.ui,{timepicker:{version:"0.9.7"}});e.extend(m.prototype, +{$input:null,$altInput:null,$timeObj:null,inst:null,hour_slider:null,minute_slider:null,second_slider:null,millisec_slider:null,timezone_select:null,hour:0,minute:0,second:0,millisec:0,timezone:"+0000",hourMinOriginal:null,minuteMinOriginal:null,secondMinOriginal:null,millisecMinOriginal:null,hourMaxOriginal:null,minuteMaxOriginal:null,secondMaxOriginal:null,millisecMaxOriginal:null,ampm:"",formattedDate:"",formattedTime:"",formattedDateTime:"",timezoneList:null,setDefaults:function(c){var a=this._defaults, +c=c||{};e.extend(a,c);for(var b in c)if(c[b]===null||c[b]===void 0)a[b]=c[b];return this},_newInst:function(c,a){var b=new m,d={},f;for(f in this._defaults){var g=c.attr("time:"+f);if(g)try{d[f]=eval(g)}catch(j){d[f]=g}}b._defaults=e.extend({},this._defaults,d,a,{beforeShow:function(c,d){e.isFunction(a.beforeShow)&&a.beforeShow(c,d,b)},onChangeMonthYear:function(d,f,g){b._updateDateTime(g);e.isFunction(a.onChangeMonthYear)&&a.onChangeMonthYear.call(c[0],d,f,g,b)},onClose:function(d,f){b.timeDefined=== +true&&c.val()!=""&&b._updateDateTime(f);e.isFunction(a.onClose)&&a.onClose.call(c[0],d,f,b)},timepicker:b});b.amNames=e.map(b._defaults.amNames,function(a){return a.toUpperCase()});b.pmNames=e.map(b._defaults.pmNames,function(a){return a.toUpperCase()});if(b._defaults.timezoneList===null){d=[];for(f=-11;f<=12;f++)d.push((f>=0?"+":"-")+("0"+Math.abs(f).toString()).slice(-2)+"00");b._defaults.timezoneIso8609&&(d=e.map(d,function(a){return a=="+0000"?"Z":a.substring(0,3)+":"+a.substring(3)}));b._defaults.timezoneList= +d}b.hour=b._defaults.hour;b.minute=b._defaults.minute;b.second=b._defaults.second;b.millisec=b._defaults.millisec;b.ampm="";b.$input=c;if(a.altField)b.$altInput=e(a.altField).css({cursor:"pointer"}).focus(function(){c.trigger("focus")});if(b._defaults.minDate==0||b._defaults.minDateTime==0)b._defaults.minDate=new Date;if(b._defaults.maxDate==0||b._defaults.maxDateTime==0)b._defaults.maxDate=new Date;if(b._defaults.minDate!==void 0&&b._defaults.minDate instanceof Date)b._defaults.minDateTime=new Date(b._defaults.minDate.getTime()); +if(b._defaults.minDateTime!==void 0&&b._defaults.minDateTime instanceof Date)b._defaults.minDate=new Date(b._defaults.minDateTime.getTime());if(b._defaults.maxDate!==void 0&&b._defaults.maxDate instanceof Date)b._defaults.maxDateTime=new Date(b._defaults.maxDate.getTime());if(b._defaults.maxDateTime!==void 0&&b._defaults.maxDateTime instanceof Date)b._defaults.maxDate=new Date(b._defaults.maxDateTime.getTime());return b},_addTimePicker:function(c){this.timeDefined=this._parseTime(this.$altInput&& +this._defaults.altFieldTimeOnly?this.$input.val()+" "+this.$altInput.val():this.$input.val());this._limitMinMaxDateTime(c,false);this._injectTimePicker()},_parseTime:function(c,a){var b=this._defaults.timeFormat.toString().replace(/h{1,2}/ig,"(\\d?\\d)").replace(/m{1,2}/ig,"(\\d?\\d)").replace(/s{1,2}/ig,"(\\d?\\d)").replace(/l{1}/ig,"(\\d?\\d?\\d)").replace(/t{1,2}/ig,this._getPatternAmpm()).replace(/z{1}/ig,"(z|[-+]\\d\\d:?\\d\\d)?").replace(/\s/g,"\\s?")+this._defaults.timeSuffix+"$",d=this._getFormatPositions(), +f="";if(!this.inst)this.inst=e.datepicker._getInst(this.$input[0]);if(a||!this._defaults.timeOnly)b=".{"+e.datepicker._get(this.inst,"dateFormat").length+",}"+this._defaults.separator.replace(RegExp("[.*+?|()\\[\\]{}\\\\]","g"),"\\$&")+b;if(b=c.match(RegExp(b,"i"))){if(d.t!==-1)b[d.t]===void 0||b[d.t].length===0?this.ampm=f="":(f=e.inArray(b[d.t].toUpperCase(),this.amNames)!==-1?"AM":"PM",this.ampm=this._defaults[f=="AM"?"amNames":"pmNames"][0]);if(d.h!==-1)this.hour=f=="AM"&&b[d.h]=="12"?0:f=="PM"&& +b[d.h]!="12"?(parseFloat(b[d.h])+12).toFixed(0):Number(b[d.h]);if(d.m!==-1)this.minute=Number(b[d.m]);if(d.s!==-1)this.second=Number(b[d.s]);if(d.l!==-1)this.millisec=Number(b[d.l]);if(d.z!==-1&&b[d.z]!==void 0){d=b[d.z].toUpperCase();switch(d.length){case 1:d=this._defaults.timezoneIso8609?"Z":"+0000";break;case 5:this._defaults.timezoneIso8609&&(d=d.substring(1)=="0000"?"Z":d.substring(0,3)+":"+d.substring(3));break;case 6:this._defaults.timezoneIso8609?d.substring(1)=="00:00"&&(d="Z"):d=d=="Z"|| +d.substring(1)=="00:00"?"+0000":d.replace(/:/,"")}this.timezone=d}return true}return false},_getPatternAmpm:function(){var c=[];o=this._defaults;o.amNames&&e.merge(c,o.amNames);o.pmNames&&e.merge(c,o.pmNames);c=e.map(c,function(a){return a.replace(/[.*+?|()\[\]{}\\]/g,"\\$&")});return"("+c.join("|")+")?"},_getFormatPositions:function(){var c=this._defaults.timeFormat.toLowerCase().match(/(h{1,2}|m{1,2}|s{1,2}|l{1}|t{1,2}|z)/g),a={h:-1,m:-1,s:-1,l:-1,t:-1,z:-1};if(c)for(var b=0;b
    ",q=0,r=0,m=0,s=0,l;if(a.showHour&&a.hourGrid>0){i+='
    ';for(var k=a.hourMin;k<=d;k+=parseInt(a.hourGrid,10)){q++;var n=a.ampm&&k>12?k-12:k;n<10&&(n="0"+n);a.ampm&&(k==0?n="12a":n+=k<12?"a":"p");i+=""}i+="
    "+n+"
    "}else i+='";i+='";if(a.showMinute&&a.minuteGrid>0){i+='
    ';for(k=a.minuteMin;k<=f;k+=parseInt(a.minuteGrid,10))r++,i+="";i+="
    "+(k<10?"0":"")+k+"
    "}else i+='";i+='";if(a.showSecond&&a.secondGrid>0){i+='
    ';for(var p=a.secondMin;p<=g;p+=parseInt(a.secondGrid,10))m++,i+="";i+="
    "+ +(p<10?"0":"")+p+"
    "}else i+='";i+='";if(a.showMillisec&&a.millisecGrid>0){i+='
    ';for(k=a.millisecMin;k<=j;k+=parseInt(a.millisecGrid,10))s++,i+="";i+="
    "+(k<10?"0":"")+p+"
    "}else i+='";i+='";i+='";i+="
    ";$tp=e(i);a.timeOnly===true&&($tp.prepend('
    '+a.timeOnlyTitle+"
    "),c.find(".ui-datepicker-header, .ui-datepicker-calendar").hide());this.hour_slider=$tp.find("#ui_tpicker_hour_"+h).slider({orientation:"horizontal",value:this.hour,min:a.hourMin,max:d,step:a.stepHour,slide:function(a,c){b.hour_slider.slider("option","value", +c.value);b._onTimeChange()}});this.minute_slider=$tp.find("#ui_tpicker_minute_"+h).slider({orientation:"horizontal",value:this.minute,min:a.minuteMin,max:f,step:a.stepMinute,slide:function(a,c){b.minute_slider.slider("option","value",c.value);b._onTimeChange()}});this.second_slider=$tp.find("#ui_tpicker_second_"+h).slider({orientation:"horizontal",value:this.second,min:a.secondMin,max:g,step:a.stepSecond,slide:function(a,c){b.second_slider.slider("option","value",c.value);b._onTimeChange()}});this.millisec_slider= +$tp.find("#ui_tpicker_millisec_"+h).slider({orientation:"horizontal",value:this.millisec,min:a.millisecMin,max:j,step:a.stepMillisec,slide:function(a,c){b.millisec_slider.slider("option","value",c.value);b._onTimeChange()}});this.timezone_select=$tp.find("#ui_tpicker_timezone_"+h).append("").find("select");e.fn.append.apply(this.timezone_select,e.map(a.timezoneList,function(a){return e("