commit 220112614ff50ac9577b4db1cc2f8b1f63ab4157 Author: bmen Date: Sun Sep 22 09:36:54 2019 +0200 Initial commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..158246f --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# Pyramidengarten Berlin +Die Website des Gemeinschaftsgartens in Berlin Neukölln läuft auf der Basis von Wordpress mit dem Front-End Builder Beaverbuilder. + + + + + + + + + + + + + + +
Auftraggeber:Multikultureller Nachbarschaftsgarten Neukölln e.V.
Juli 2016Start des Projekts
September 2018Veröffentlichung der Website
+ +## Theme +* generatepress +* generatepress-pyramidengarten (Child-Theme) + +## Plugins +* Beaverbuilder Pro https://www.wpbeaverbuilder.com/ +* Events-Manager https://de.wordpress.org/plugins/events-manager/ +* the-events-calendar https://de.wordpress.org/plugins/the-events-calendar/ diff --git a/wp-themes/generatepress-pyramidengarten/functions.php b/wp-themes/generatepress-pyramidengarten/functions.php new file mode 100644 index 0000000..80d6468 --- /dev/null +++ b/wp-themes/generatepress-pyramidengarten/functions.php @@ -0,0 +1,8 @@ + + +
> +
> + + +
+ + + +
+

+
+ + + +
+ ' . apply_filters( 'generate_404_text', __( 'It looks like nothing was found at this location. Maybe try searching?', 'generatepress' ) ) . '

'; // WPCS: XSS OK. + + get_search_form(); + ?> +
+ + + +
+ + +
+
+ + + +
> +
> + +
+
+ + +
+ + +

+ ' . get_the_title() . '' + ); + } else { + printf( // WPCS: XSS OK. + /* translators: 1: number of comments, 2: post title */ + esc_html( _nx( + '%1$s thought on “%2$s”', + '%1$s thoughts on “%2$s”', + $comments_number, + 'comments title', + 'generatepress' + ) ), + number_format_i18n( $comments_number ), + '' . get_the_title() . '' + ); + } + ?> +

+ + 1 && get_option( 'page_comments' ) ) : ?> + + + +
    + 'generate_comment', + ) ); + ?> +
+ + 1 && get_option( 'page_comments' ) ) : ?> + + +

+ '

', + 'comment_notes_before' => null, + 'comment_notes_after' => null, + 'id_form' => 'commentform', + 'id_submit' => 'submit', + 'title_reply' => apply_filters( 'generate_leave_comment', __( 'Leave a Comment', 'generatepress' ) ), + 'label_submit' => apply_filters( 'generate_post_comment', __( 'Post Comment', 'generatepress' ) ), + ); + + comment_form( $defaults ); + ?> + +
diff --git a/wp-themes/generatepress/content-link.php b/wp-themes/generatepress/content-link.php new file mode 100644 index 0000000..3acf00c --- /dev/null +++ b/wp-themes/generatepress/content-link.php @@ -0,0 +1,96 @@ + + +
> +
+ + +
+ ', esc_url( generate_get_link_url() ) ), '' ); + + /** + * generate_after_entry_title hook. + * + * @since 0.1 + * + * @hooked generate_post_meta - 10 + */ + do_action( 'generate_after_entry_title' ); + ?> +
+ + + +
+ +
+ + + +
+ '', + ) ); + ?> +
+ + +
+
diff --git a/wp-themes/generatepress/content-page.php b/wp-themes/generatepress/content-page.php new file mode 100644 index 0000000..6dabbd1 --- /dev/null +++ b/wp-themes/generatepress/content-page.php @@ -0,0 +1,63 @@ + + +
> +
+ + +
+ ', '' ); ?> +
+ + + +
+ '', + ) ); + ?> +
+ + +
+
diff --git a/wp-themes/generatepress/content-single.php b/wp-themes/generatepress/content-single.php new file mode 100644 index 0000000..36dcdee --- /dev/null +++ b/wp-themes/generatepress/content-single.php @@ -0,0 +1,90 @@ + + +
> +
+ + +
+ ', '' ); + } + + /** + * generate_after_entry_title hook. + * + * @since 0.1 + * + * @hooked generate_post_meta - 10 + */ + do_action( 'generate_after_entry_title' ); + ?> +
+ + + +
+ '', + ) ); + ?> +
+ + +
+
diff --git a/wp-themes/generatepress/content.php b/wp-themes/generatepress/content.php new file mode 100644 index 0000000..f6dbb2d --- /dev/null +++ b/wp-themes/generatepress/content.php @@ -0,0 +1,95 @@ + +
> +
+ + +
+ ', esc_url( get_permalink() ) ), '' ); + + /** + * generate_after_entry_title hook. + * + * @since 0.1 + * + * @hooked generate_post_meta - 10 + */ + do_action( 'generate_after_entry_title' ); + ?> +
+ + + +
+ +
+ + + +
+ '', + ) ); + ?> +
+ + +
+
diff --git a/wp-themes/generatepress/css/admin/editor-style.css b/wp-themes/generatepress/css/admin/editor-style.css new file mode 100644 index 0000000..8c68846 --- /dev/null +++ b/wp-themes/generatepress/css/admin/editor-style.css @@ -0,0 +1,65 @@ +img { + max-width: 100%; + height: auto; +} + +pre { + background: rgba(0, 0, 0, 0.05); + font-family: inherit; + font-size: inherit; + line-height: normal; + margin-bottom: 1.5em; + padding: 20px; + overflow: auto; + max-width: 100%; +} + +blockquote { + border-left: 5px solid rgba(0, 0, 0, 0.05); + padding: 20px; + font-size: 1.2em; + font-style:italic; + margin: 0 0 1.5em; + position: relative; +} + +blockquote p:last-child { + margin: 0; +} + +table, th, td { + border: 1px solid rgba(0, 0, 0, 0.1); +} +table { + border-collapse: separate; + border-spacing: 0; + border-width: 1px 0 0 1px; + margin: 0 0 1.5em; + table-layout: fixed; + width: 100%; +} +th, +td { + padding: 8px; +} +th { + border-width: 0 1px 1px 0; +} +td { + border-width: 0 1px 1px 0; +} + +hr { + background-color: rgba(0, 0, 0, 0.1); + border: 0; + height: 1px; + margin-bottom: 40px; + margin-top: 40px; +} + +/* Make sure embeds and iframes fit their containers */ +embed, +iframe, +object { + max-width: 100%; +} \ No newline at end of file diff --git a/wp-themes/generatepress/css/admin/meta-box.css b/wp-themes/generatepress/css/admin/meta-box.css new file mode 100644 index 0000000..4b12686 --- /dev/null +++ b/wp-themes/generatepress/css/admin/meta-box.css @@ -0,0 +1,77 @@ +.generate-meta-box-content > div { + padding: 12px; +} +#generate_layout_options_meta_box .inside { + padding: 0; + margin:0; +} +#generate-meta-box-container .generate-meta-box-menu { + position: relative; + float: left; + list-style: none; + width: 180px; + line-height: 1em; + margin: 0 0 -1px 0; + padding: 0; + background-color: #fafafa; + border-right: 1px solid #eee; + box-sizing: border-box; +} + +#generate-meta-box-container .generate-meta-box-menu li { + display: block; + position: relative; + margin: 0; + padding: 0; + line-height: 20px; +} + +#generate-meta-box-container .generate-meta-box-menu li a { + display: block; + margin: 0; + padding: 10px; + line-height: 20px !important; + text-decoration: none; + border-bottom: 1px solid #eee; + box-shadow: none; +} + +#generate-meta-box-container .generate-meta-box-content { + float: left; + width: calc( 100% - 180px ); + margin-left: -1px; + border-left: 1px solid #eee; +} + +#generate-meta-box-container { + overflow: hidden; + background: #fff; + background: linear-gradient( 90deg, #fafafa 0%, #fafafa 180px, #fff 180px, #fff 100% ); +} + +#generate-meta-box-container .current { + position: relative; + font-weight: bold; + background-color: #e0e0e0; +} + +#generate-meta-box-container .current a { + color: #555; +} + +#generate-meta-box-container label { + font-weight: 400; + display: inline-block; + margin-bottom: 3px; +} + + +.generate-meta-box-menu li { + display: inline-block; +} + +#side-sortables #generate-meta-box-container .generate-meta-box-menu, +#side-sortables #generate-meta-box-container .generate-meta-box-content { + float: none; + width: 100%; +} diff --git a/wp-themes/generatepress/css/admin/style.css b/wp-themes/generatepress/css/admin/style.css new file mode 100644 index 0000000..aee5abd --- /dev/null +++ b/wp-themes/generatepress/css/admin/style.css @@ -0,0 +1,211 @@ +.js .generate-metabox.postbox .hndle { + cursor: inherit; +} + +.generate-metabox .clear { + padding-top: 10px; + margin-bottom: 10px; + border-bottom: 1px solid #DDD; +} + +.generate-metabox .clear:after { + content: ""; + display: table; + clear: both; +} + +.customize-button a.button, +.customize-button a.button:visited { + font-size: 25px; + padding: 10px 20px; + line-height: normal; + height: auto; + width: 100%; + text-align: center; + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; +} + +.customize-button { + margin-bottom: 40px; +} + +.addon-container:before, +.addon-container:after { + content: "."; + display: block; + overflow: hidden; + visibility: hidden; + font-size: 0; + line-height: 0; + width: 0; + height: 0; +} +.addon-container:after { + clear: both; +} +.premium-addons .gp-clear { + margin: 0 !important; + border: 0; + padding: 0 !important; +} +.premium-addons .add-on.gp-clear { + padding: 15px !important; + margin: 0 !important; + -moz-box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1) inset; + -webkit-box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1) inset; + box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1) inset; +} +.premium-addons .add-on:last-child { + border: 0 !important; +} +.addon-action { + float: right; + clear: right; +} +.addon-name { + float: left; +} + +.addon-name a { + text-decoration: none; + font-weight: bold; +} + +/* New admin */ +.clearfix:after, +.clearfix:before { + content: "."; + display: block; + overflow: hidden; + visibility: hidden; + font-size: 0; + line-height: 0; + width: 0; + height: 0; +} + +.clearfix:after { + clear: both; +} + +.gp-container { + max-width: 1200px; + margin: 0 auto; + padding: 0 20px; + box-sizing: border-box; +} + +.gp-container a { + text-decoration: none; +} + +.appearance_page_generate-options #wpcontent, +.appearance_page_generate-options #wpbody-content .metabox-holder { + padding: 0; +} + +.appearance_page_generate-options .wrap { + margin-top: 0; + margin-left: 0; + margin-right: 0; +} + +.gp-masthead { + background-color: #fff; + text-align: center; + box-shadow: 0 1px 0 rgba(200,215,225,0.5), 0 1px 2px #DDD; + margin-bottom: 40px; + padding: 20px; +} + +.gp-container .postbox { + box-shadow: 0 0 0 1px rgba(200, 215, 225, 0.5), 0 1px 2px #DDD; + border: 0; + min-width: initial; + margin-bottom: 40px; +} + +.gp-masthead .gp-title { + float: left; +} + +.gp-masthead .gp-title a { + font-size: 20px; + color: #000; + font-weight: 500; +} + +.gp-masthead .gp-masthead-links { + float: right; +} + +.gp-masthead-links a { + display: inline-block; + margin: 0 10px; +} + +.gp-masthead .gp-version { + display: inline-block; + background: #EFEFEF; + padding: 1px 3px; + border-radius: 2px; + font-size: 11px; + vertical-align: top; + margin-left: 5px; +} + +.gp-options-footer { + text-align: center; +} + +.popular-articles ul { + list-style-type: disc; + margin-left: 20px; + margin-bottom: 0; +} + +.popular-articles .hndle a { + float:right; + font-size:13px; +} + +@media (min-width: 768px) { + .hide-on-desktop { + display: none; + } + + .grid-70 { + float: left; + width: 70%; + box-sizing: border-box; + padding-right: 20px; + } + + .grid-30 { + float: left; + width: 30%; + box-sizing: border-box; + padding-left: 20px; + } + + .grid-parent { + padding-left: 0; + padding-right: 0; + } +} + +@media (max-width: 767px) { + .hide-on-mobile { + display: none; + } + .gp-masthead .gp-masthead-links, + .gp-masthead .gp-title { + float: none; + text-align: center; + } + .gp-masthead .gp-title { + margin-bottom: 20px; + } +} \ No newline at end of file diff --git a/wp-themes/generatepress/css/font-awesome.css b/wp-themes/generatepress/css/font-awesome.css new file mode 100644 index 0000000..fbc0a62 --- /dev/null +++ b/wp-themes/generatepress/css/font-awesome.css @@ -0,0 +1,2337 @@ +/*! + * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */ +/* FONT PATH + * -------------------------- */ +@font-face { + font-family: 'FontAwesome'; + src: url('../fonts/fontawesome-webfont.eot'); + src: url('../fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2') format('woff2'), url('../fonts/fontawesome-webfont.woff') format('woff'), url('../fonts/fontawesome-webfont.ttf') format('truetype'), url('../fonts/fontawesome-webfont.svg#fontawesomeregular') format('svg'); + font-weight: normal; + font-style: normal; +} +.fa { + display: inline-block; + font: normal normal normal 14px/1 FontAwesome; + font-size: inherit; + text-rendering: auto; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} +/* makes the font 33% larger relative to the icon container */ +.fa-lg { + font-size: 1.33333333em; + line-height: 0.75em; + vertical-align: -15%; +} +.fa-2x { + font-size: 2em; +} +.fa-3x { + font-size: 3em; +} +.fa-4x { + font-size: 4em; +} +.fa-5x { + font-size: 5em; +} +.fa-fw { + width: 1.28571429em; + text-align: center; +} +.fa-ul { + padding-left: 0; + margin-left: 2.14285714em; + list-style-type: none; +} +.fa-ul > li { + position: relative; +} +.fa-li { + position: absolute; + left: -2.14285714em; + width: 2.14285714em; + top: 0.14285714em; + text-align: center; +} +.fa-li.fa-lg { + left: -1.85714286em; +} +.fa-border { + padding: .2em .25em .15em; + border: solid 0.08em #eeeeee; + border-radius: .1em; +} +.fa-pull-left { + float: left; +} +.fa-pull-right { + float: right; +} +.fa.fa-pull-left { + margin-right: .3em; +} +.fa.fa-pull-right { + margin-left: .3em; +} +/* Deprecated as of 4.4.0 */ +.pull-right { + float: right; +} +.pull-left { + float: left; +} +.fa.pull-left { + margin-right: .3em; +} +.fa.pull-right { + margin-left: .3em; +} +.fa-spin { + -webkit-animation: fa-spin 2s infinite linear; + animation: fa-spin 2s infinite linear; +} +.fa-pulse { + -webkit-animation: fa-spin 1s infinite steps(8); + animation: fa-spin 1s infinite steps(8); +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(359deg); + transform: rotate(359deg); + } +} +.fa-rotate-90 { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"; + -webkit-transform: rotate(90deg); + -ms-transform: rotate(90deg); + transform: rotate(90deg); +} +.fa-rotate-180 { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"; + -webkit-transform: rotate(180deg); + -ms-transform: rotate(180deg); + transform: rotate(180deg); +} +.fa-rotate-270 { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; + -webkit-transform: rotate(270deg); + -ms-transform: rotate(270deg); + transform: rotate(270deg); +} +.fa-flip-horizontal { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"; + -webkit-transform: scale(-1, 1); + -ms-transform: scale(-1, 1); + transform: scale(-1, 1); +} +.fa-flip-vertical { + -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"; + -webkit-transform: scale(1, -1); + -ms-transform: scale(1, -1); + transform: scale(1, -1); +} +:root .fa-rotate-90, +:root .fa-rotate-180, +:root .fa-rotate-270, +:root .fa-flip-horizontal, +:root .fa-flip-vertical { + filter: none; +} +.fa-stack { + position: relative; + display: inline-block; + width: 2em; + height: 2em; + line-height: 2em; + vertical-align: middle; +} +.fa-stack-1x, +.fa-stack-2x { + position: absolute; + left: 0; + width: 100%; + text-align: center; +} +.fa-stack-1x { + line-height: inherit; +} +.fa-stack-2x { + font-size: 2em; +} +.fa-inverse { + color: #ffffff; +} +/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen + readers do not read off random characters that represent icons */ +.fa-glass:before { + content: "\f000"; +} +.fa-music:before { + content: "\f001"; +} +.fa-search:before { + content: "\f002"; +} +.fa-envelope-o:before { + content: "\f003"; +} +.fa-heart:before { + content: "\f004"; +} +.fa-star:before { + content: "\f005"; +} +.fa-star-o:before { + content: "\f006"; +} +.fa-user:before { + content: "\f007"; +} +.fa-film:before { + content: "\f008"; +} +.fa-th-large:before { + content: "\f009"; +} +.fa-th:before { + content: "\f00a"; +} +.fa-th-list:before { + content: "\f00b"; +} +.fa-check:before { + content: "\f00c"; +} +.fa-remove:before, +.fa-close:before, +.fa-times:before { + content: "\f00d"; +} +.fa-search-plus:before { + content: "\f00e"; +} +.fa-search-minus:before { + content: "\f010"; +} +.fa-power-off:before { + content: "\f011"; +} +.fa-signal:before { + content: "\f012"; +} +.fa-gear:before, +.fa-cog:before { + content: "\f013"; +} +.fa-trash-o:before { + content: "\f014"; +} +.fa-home:before { + content: "\f015"; +} +.fa-file-o:before { + content: "\f016"; +} +.fa-clock-o:before { + content: "\f017"; +} +.fa-road:before { + content: "\f018"; +} +.fa-download:before { + content: "\f019"; +} +.fa-arrow-circle-o-down:before { + content: "\f01a"; +} +.fa-arrow-circle-o-up:before { + content: "\f01b"; +} +.fa-inbox:before { + content: "\f01c"; +} +.fa-play-circle-o:before { + content: "\f01d"; +} +.fa-rotate-right:before, +.fa-repeat:before { + content: "\f01e"; +} +.fa-refresh:before { + content: "\f021"; +} +.fa-list-alt:before { + content: "\f022"; +} +.fa-lock:before { + content: "\f023"; +} +.fa-flag:before { + content: "\f024"; +} +.fa-headphones:before { + content: "\f025"; +} +.fa-volume-off:before { + content: "\f026"; +} +.fa-volume-down:before { + content: "\f027"; +} +.fa-volume-up:before { + content: "\f028"; +} +.fa-qrcode:before { + content: "\f029"; +} +.fa-barcode:before { + content: "\f02a"; +} +.fa-tag:before { + content: "\f02b"; +} +.fa-tags:before { + content: "\f02c"; +} +.fa-book:before { + content: "\f02d"; +} +.fa-bookmark:before { + content: "\f02e"; +} +.fa-print:before { + content: "\f02f"; +} +.fa-camera:before { + content: "\f030"; +} +.fa-font:before { + content: "\f031"; +} +.fa-bold:before { + content: "\f032"; +} +.fa-italic:before { + content: "\f033"; +} +.fa-text-height:before { + content: "\f034"; +} +.fa-text-width:before { + content: "\f035"; +} +.fa-align-left:before { + content: "\f036"; +} +.fa-align-center:before { + content: "\f037"; +} +.fa-align-right:before { + content: "\f038"; +} +.fa-align-justify:before { + content: "\f039"; +} +.fa-list:before { + content: "\f03a"; +} +.fa-dedent:before, +.fa-outdent:before { + content: "\f03b"; +} +.fa-indent:before { + content: "\f03c"; +} +.fa-video-camera:before { + content: "\f03d"; +} +.fa-photo:before, +.fa-image:before, +.fa-picture-o:before { + content: "\f03e"; +} +.fa-pencil:before { + content: "\f040"; +} +.fa-map-marker:before { + content: "\f041"; +} +.fa-adjust:before { + content: "\f042"; +} +.fa-tint:before { + content: "\f043"; +} +.fa-edit:before, +.fa-pencil-square-o:before { + content: "\f044"; +} +.fa-share-square-o:before { + content: "\f045"; +} +.fa-check-square-o:before { + content: "\f046"; +} +.fa-arrows:before { + content: "\f047"; +} +.fa-step-backward:before { + content: "\f048"; +} +.fa-fast-backward:before { + content: "\f049"; +} +.fa-backward:before { + content: "\f04a"; +} +.fa-play:before { + content: "\f04b"; +} +.fa-pause:before { + content: "\f04c"; +} +.fa-stop:before { + content: "\f04d"; +} +.fa-forward:before { + content: "\f04e"; +} +.fa-fast-forward:before { + content: "\f050"; +} +.fa-step-forward:before { + content: "\f051"; +} +.fa-eject:before { + content: "\f052"; +} +.fa-chevron-left:before { + content: "\f053"; +} +.fa-chevron-right:before { + content: "\f054"; +} +.fa-plus-circle:before { + content: "\f055"; +} +.fa-minus-circle:before { + content: "\f056"; +} +.fa-times-circle:before { + content: "\f057"; +} +.fa-check-circle:before { + content: "\f058"; +} +.fa-question-circle:before { + content: "\f059"; +} +.fa-info-circle:before { + content: "\f05a"; +} +.fa-crosshairs:before { + content: "\f05b"; +} +.fa-times-circle-o:before { + content: "\f05c"; +} +.fa-check-circle-o:before { + content: "\f05d"; +} +.fa-ban:before { + content: "\f05e"; +} +.fa-arrow-left:before { + content: "\f060"; +} +.fa-arrow-right:before { + content: "\f061"; +} +.fa-arrow-up:before { + content: "\f062"; +} +.fa-arrow-down:before { + content: "\f063"; +} +.fa-mail-forward:before, +.fa-share:before { + content: "\f064"; +} +.fa-expand:before { + content: "\f065"; +} +.fa-compress:before { + content: "\f066"; +} +.fa-plus:before { + content: "\f067"; +} +.fa-minus:before { + content: "\f068"; +} +.fa-asterisk:before { + content: "\f069"; +} +.fa-exclamation-circle:before { + content: "\f06a"; +} +.fa-gift:before { + content: "\f06b"; +} +.fa-leaf:before { + content: "\f06c"; +} +.fa-fire:before { + content: "\f06d"; +} +.fa-eye:before { + content: "\f06e"; +} +.fa-eye-slash:before { + content: "\f070"; +} +.fa-warning:before, +.fa-exclamation-triangle:before { + content: "\f071"; +} +.fa-plane:before { + content: "\f072"; +} +.fa-calendar:before { + content: "\f073"; +} +.fa-random:before { + content: "\f074"; +} +.fa-comment:before { + content: "\f075"; +} +.fa-magnet:before { + content: "\f076"; +} +.fa-chevron-up:before { + content: "\f077"; +} +.fa-chevron-down:before { + content: "\f078"; +} +.fa-retweet:before { + content: "\f079"; +} +.fa-shopping-cart:before { + content: "\f07a"; +} +.fa-folder:before { + content: "\f07b"; +} +.fa-folder-open:before { + content: "\f07c"; +} +.fa-arrows-v:before { + content: "\f07d"; +} +.fa-arrows-h:before { + content: "\f07e"; +} +.fa-bar-chart-o:before, +.fa-bar-chart:before { + content: "\f080"; +} +.fa-twitter-square:before { + content: "\f081"; +} +.fa-facebook-square:before { + content: "\f082"; +} +.fa-camera-retro:before { + content: "\f083"; +} +.fa-key:before { + content: "\f084"; +} +.fa-gears:before, +.fa-cogs:before { + content: "\f085"; +} +.fa-comments:before { + content: "\f086"; +} +.fa-thumbs-o-up:before { + content: "\f087"; +} +.fa-thumbs-o-down:before { + content: "\f088"; +} +.fa-star-half:before { + content: "\f089"; +} +.fa-heart-o:before { + content: "\f08a"; +} +.fa-sign-out:before { + content: "\f08b"; +} +.fa-linkedin-square:before { + content: "\f08c"; +} +.fa-thumb-tack:before { + content: "\f08d"; +} +.fa-external-link:before { + content: "\f08e"; +} +.fa-sign-in:before { + content: "\f090"; +} +.fa-trophy:before { + content: "\f091"; +} +.fa-github-square:before { + content: "\f092"; +} +.fa-upload:before { + content: "\f093"; +} +.fa-lemon-o:before { + content: "\f094"; +} +.fa-phone:before { + content: "\f095"; +} +.fa-square-o:before { + content: "\f096"; +} +.fa-bookmark-o:before { + content: "\f097"; +} +.fa-phone-square:before { + content: "\f098"; +} +.fa-twitter:before { + content: "\f099"; +} +.fa-facebook-f:before, +.fa-facebook:before { + content: "\f09a"; +} +.fa-github:before { + content: "\f09b"; +} +.fa-unlock:before { + content: "\f09c"; +} +.fa-credit-card:before { + content: "\f09d"; +} +.fa-feed:before, +.fa-rss:before { + content: "\f09e"; +} +.fa-hdd-o:before { + content: "\f0a0"; +} +.fa-bullhorn:before { + content: "\f0a1"; +} +.fa-bell:before { + content: "\f0f3"; +} +.fa-certificate:before { + content: "\f0a3"; +} +.fa-hand-o-right:before { + content: "\f0a4"; +} +.fa-hand-o-left:before { + content: "\f0a5"; +} +.fa-hand-o-up:before { + content: "\f0a6"; +} +.fa-hand-o-down:before { + content: "\f0a7"; +} +.fa-arrow-circle-left:before { + content: "\f0a8"; +} +.fa-arrow-circle-right:before { + content: "\f0a9"; +} +.fa-arrow-circle-up:before { + content: "\f0aa"; +} +.fa-arrow-circle-down:before { + content: "\f0ab"; +} +.fa-globe:before { + content: "\f0ac"; +} +.fa-wrench:before { + content: "\f0ad"; +} +.fa-tasks:before { + content: "\f0ae"; +} +.fa-filter:before { + content: "\f0b0"; +} +.fa-briefcase:before { + content: "\f0b1"; +} +.fa-arrows-alt:before { + content: "\f0b2"; +} +.fa-group:before, +.fa-users:before { + content: "\f0c0"; +} +.fa-chain:before, +.fa-link:before { + content: "\f0c1"; +} +.fa-cloud:before { + content: "\f0c2"; +} +.fa-flask:before { + content: "\f0c3"; +} +.fa-cut:before, +.fa-scissors:before { + content: "\f0c4"; +} +.fa-copy:before, +.fa-files-o:before { + content: "\f0c5"; +} +.fa-paperclip:before { + content: "\f0c6"; +} +.fa-save:before, +.fa-floppy-o:before { + content: "\f0c7"; +} +.fa-square:before { + content: "\f0c8"; +} +.fa-navicon:before, +.fa-reorder:before, +.fa-bars:before { + content: "\f0c9"; +} +.fa-list-ul:before { + content: "\f0ca"; +} +.fa-list-ol:before { + content: "\f0cb"; +} +.fa-strikethrough:before { + content: "\f0cc"; +} +.fa-underline:before { + content: "\f0cd"; +} +.fa-table:before { + content: "\f0ce"; +} +.fa-magic:before { + content: "\f0d0"; +} +.fa-truck:before { + content: "\f0d1"; +} +.fa-pinterest:before { + content: "\f0d2"; +} +.fa-pinterest-square:before { + content: "\f0d3"; +} +.fa-google-plus-square:before { + content: "\f0d4"; +} +.fa-google-plus:before { + content: "\f0d5"; +} +.fa-money:before { + content: "\f0d6"; +} +.fa-caret-down:before { + content: "\f0d7"; +} +.fa-caret-up:before { + content: "\f0d8"; +} +.fa-caret-left:before { + content: "\f0d9"; +} +.fa-caret-right:before { + content: "\f0da"; +} +.fa-columns:before { + content: "\f0db"; +} +.fa-unsorted:before, +.fa-sort:before { + content: "\f0dc"; +} +.fa-sort-down:before, +.fa-sort-desc:before { + content: "\f0dd"; +} +.fa-sort-up:before, +.fa-sort-asc:before { + content: "\f0de"; +} +.fa-envelope:before { + content: "\f0e0"; +} +.fa-linkedin:before { + content: "\f0e1"; +} +.fa-rotate-left:before, +.fa-undo:before { + content: "\f0e2"; +} +.fa-legal:before, +.fa-gavel:before { + content: "\f0e3"; +} +.fa-dashboard:before, +.fa-tachometer:before { + content: "\f0e4"; +} +.fa-comment-o:before { + content: "\f0e5"; +} +.fa-comments-o:before { + content: "\f0e6"; +} +.fa-flash:before, +.fa-bolt:before { + content: "\f0e7"; +} +.fa-sitemap:before { + content: "\f0e8"; +} +.fa-umbrella:before { + content: "\f0e9"; +} +.fa-paste:before, +.fa-clipboard:before { + content: "\f0ea"; +} +.fa-lightbulb-o:before { + content: "\f0eb"; +} +.fa-exchange:before { + content: "\f0ec"; +} +.fa-cloud-download:before { + content: "\f0ed"; +} +.fa-cloud-upload:before { + content: "\f0ee"; +} +.fa-user-md:before { + content: "\f0f0"; +} +.fa-stethoscope:before { + content: "\f0f1"; +} +.fa-suitcase:before { + content: "\f0f2"; +} +.fa-bell-o:before { + content: "\f0a2"; +} +.fa-coffee:before { + content: "\f0f4"; +} +.fa-cutlery:before { + content: "\f0f5"; +} +.fa-file-text-o:before { + content: "\f0f6"; +} +.fa-building-o:before { + content: "\f0f7"; +} +.fa-hospital-o:before { + content: "\f0f8"; +} +.fa-ambulance:before { + content: "\f0f9"; +} +.fa-medkit:before { + content: "\f0fa"; +} +.fa-fighter-jet:before { + content: "\f0fb"; +} +.fa-beer:before { + content: "\f0fc"; +} +.fa-h-square:before { + content: "\f0fd"; +} +.fa-plus-square:before { + content: "\f0fe"; +} +.fa-angle-double-left:before { + content: "\f100"; +} +.fa-angle-double-right:before { + content: "\f101"; +} +.fa-angle-double-up:before { + content: "\f102"; +} +.fa-angle-double-down:before { + content: "\f103"; +} +.fa-angle-left:before { + content: "\f104"; +} +.fa-angle-right:before { + content: "\f105"; +} +.fa-angle-up:before { + content: "\f106"; +} +.fa-angle-down:before { + content: "\f107"; +} +.fa-desktop:before { + content: "\f108"; +} +.fa-laptop:before { + content: "\f109"; +} +.fa-tablet:before { + content: "\f10a"; +} +.fa-mobile-phone:before, +.fa-mobile:before { + content: "\f10b"; +} +.fa-circle-o:before { + content: "\f10c"; +} +.fa-quote-left:before { + content: "\f10d"; +} +.fa-quote-right:before { + content: "\f10e"; +} +.fa-spinner:before { + content: "\f110"; +} +.fa-circle:before { + content: "\f111"; +} +.fa-mail-reply:before, +.fa-reply:before { + content: "\f112"; +} +.fa-github-alt:before { + content: "\f113"; +} +.fa-folder-o:before { + content: "\f114"; +} +.fa-folder-open-o:before { + content: "\f115"; +} +.fa-smile-o:before { + content: "\f118"; +} +.fa-frown-o:before { + content: "\f119"; +} +.fa-meh-o:before { + content: "\f11a"; +} +.fa-gamepad:before { + content: "\f11b"; +} +.fa-keyboard-o:before { + content: "\f11c"; +} +.fa-flag-o:before { + content: "\f11d"; +} +.fa-flag-checkered:before { + content: "\f11e"; +} +.fa-terminal:before { + content: "\f120"; +} +.fa-code:before { + content: "\f121"; +} +.fa-mail-reply-all:before, +.fa-reply-all:before { + content: "\f122"; +} +.fa-star-half-empty:before, +.fa-star-half-full:before, +.fa-star-half-o:before { + content: "\f123"; +} +.fa-location-arrow:before { + content: "\f124"; +} +.fa-crop:before { + content: "\f125"; +} +.fa-code-fork:before { + content: "\f126"; +} +.fa-unlink:before, +.fa-chain-broken:before { + content: "\f127"; +} +.fa-question:before { + content: "\f128"; +} +.fa-info:before { + content: "\f129"; +} +.fa-exclamation:before { + content: "\f12a"; +} +.fa-superscript:before { + content: "\f12b"; +} +.fa-subscript:before { + content: "\f12c"; +} +.fa-eraser:before { + content: "\f12d"; +} +.fa-puzzle-piece:before { + content: "\f12e"; +} +.fa-microphone:before { + content: "\f130"; +} +.fa-microphone-slash:before { + content: "\f131"; +} +.fa-shield:before { + content: "\f132"; +} +.fa-calendar-o:before { + content: "\f133"; +} +.fa-fire-extinguisher:before { + content: "\f134"; +} +.fa-rocket:before { + content: "\f135"; +} +.fa-maxcdn:before { + content: "\f136"; +} +.fa-chevron-circle-left:before { + content: "\f137"; +} +.fa-chevron-circle-right:before { + content: "\f138"; +} +.fa-chevron-circle-up:before { + content: "\f139"; +} +.fa-chevron-circle-down:before { + content: "\f13a"; +} +.fa-html5:before { + content: "\f13b"; +} +.fa-css3:before { + content: "\f13c"; +} +.fa-anchor:before { + content: "\f13d"; +} +.fa-unlock-alt:before { + content: "\f13e"; +} +.fa-bullseye:before { + content: "\f140"; +} +.fa-ellipsis-h:before { + content: "\f141"; +} +.fa-ellipsis-v:before { + content: "\f142"; +} +.fa-rss-square:before { + content: "\f143"; +} +.fa-play-circle:before { + content: "\f144"; +} +.fa-ticket:before { + content: "\f145"; +} +.fa-minus-square:before { + content: "\f146"; +} +.fa-minus-square-o:before { + content: "\f147"; +} +.fa-level-up:before { + content: "\f148"; +} +.fa-level-down:before { + content: "\f149"; +} +.fa-check-square:before { + content: "\f14a"; +} +.fa-pencil-square:before { + content: "\f14b"; +} +.fa-external-link-square:before { + content: "\f14c"; +} +.fa-share-square:before { + content: "\f14d"; +} +.fa-compass:before { + content: "\f14e"; +} +.fa-toggle-down:before, +.fa-caret-square-o-down:before { + content: "\f150"; +} +.fa-toggle-up:before, +.fa-caret-square-o-up:before { + content: "\f151"; +} +.fa-toggle-right:before, +.fa-caret-square-o-right:before { + content: "\f152"; +} +.fa-euro:before, +.fa-eur:before { + content: "\f153"; +} +.fa-gbp:before { + content: "\f154"; +} +.fa-dollar:before, +.fa-usd:before { + content: "\f155"; +} +.fa-rupee:before, +.fa-inr:before { + content: "\f156"; +} +.fa-cny:before, +.fa-rmb:before, +.fa-yen:before, +.fa-jpy:before { + content: "\f157"; +} +.fa-ruble:before, +.fa-rouble:before, +.fa-rub:before { + content: "\f158"; +} +.fa-won:before, +.fa-krw:before { + content: "\f159"; +} +.fa-bitcoin:before, +.fa-btc:before { + content: "\f15a"; +} +.fa-file:before { + content: "\f15b"; +} +.fa-file-text:before { + content: "\f15c"; +} +.fa-sort-alpha-asc:before { + content: "\f15d"; +} +.fa-sort-alpha-desc:before { + content: "\f15e"; +} +.fa-sort-amount-asc:before { + content: "\f160"; +} +.fa-sort-amount-desc:before { + content: "\f161"; +} +.fa-sort-numeric-asc:before { + content: "\f162"; +} +.fa-sort-numeric-desc:before { + content: "\f163"; +} +.fa-thumbs-up:before { + content: "\f164"; +} +.fa-thumbs-down:before { + content: "\f165"; +} +.fa-youtube-square:before { + content: "\f166"; +} +.fa-youtube:before { + content: "\f167"; +} +.fa-xing:before { + content: "\f168"; +} +.fa-xing-square:before { + content: "\f169"; +} +.fa-youtube-play:before { + content: "\f16a"; +} +.fa-dropbox:before { + content: "\f16b"; +} +.fa-stack-overflow:before { + content: "\f16c"; +} +.fa-instagram:before { + content: "\f16d"; +} +.fa-flickr:before { + content: "\f16e"; +} +.fa-adn:before { + content: "\f170"; +} +.fa-bitbucket:before { + content: "\f171"; +} +.fa-bitbucket-square:before { + content: "\f172"; +} +.fa-tumblr:before { + content: "\f173"; +} +.fa-tumblr-square:before { + content: "\f174"; +} +.fa-long-arrow-down:before { + content: "\f175"; +} +.fa-long-arrow-up:before { + content: "\f176"; +} +.fa-long-arrow-left:before { + content: "\f177"; +} +.fa-long-arrow-right:before { + content: "\f178"; +} +.fa-apple:before { + content: "\f179"; +} +.fa-windows:before { + content: "\f17a"; +} +.fa-android:before { + content: "\f17b"; +} +.fa-linux:before { + content: "\f17c"; +} +.fa-dribbble:before { + content: "\f17d"; +} +.fa-skype:before { + content: "\f17e"; +} +.fa-foursquare:before { + content: "\f180"; +} +.fa-trello:before { + content: "\f181"; +} +.fa-female:before { + content: "\f182"; +} +.fa-male:before { + content: "\f183"; +} +.fa-gittip:before, +.fa-gratipay:before { + content: "\f184"; +} +.fa-sun-o:before { + content: "\f185"; +} +.fa-moon-o:before { + content: "\f186"; +} +.fa-archive:before { + content: "\f187"; +} +.fa-bug:before { + content: "\f188"; +} +.fa-vk:before { + content: "\f189"; +} +.fa-weibo:before { + content: "\f18a"; +} +.fa-renren:before { + content: "\f18b"; +} +.fa-pagelines:before { + content: "\f18c"; +} +.fa-stack-exchange:before { + content: "\f18d"; +} +.fa-arrow-circle-o-right:before { + content: "\f18e"; +} +.fa-arrow-circle-o-left:before { + content: "\f190"; +} +.fa-toggle-left:before, +.fa-caret-square-o-left:before { + content: "\f191"; +} +.fa-dot-circle-o:before { + content: "\f192"; +} +.fa-wheelchair:before { + content: "\f193"; +} +.fa-vimeo-square:before { + content: "\f194"; +} +.fa-turkish-lira:before, +.fa-try:before { + content: "\f195"; +} +.fa-plus-square-o:before { + content: "\f196"; +} +.fa-space-shuttle:before { + content: "\f197"; +} +.fa-slack:before { + content: "\f198"; +} +.fa-envelope-square:before { + content: "\f199"; +} +.fa-wordpress:before { + content: "\f19a"; +} +.fa-openid:before { + content: "\f19b"; +} +.fa-institution:before, +.fa-bank:before, +.fa-university:before { + content: "\f19c"; +} +.fa-mortar-board:before, +.fa-graduation-cap:before { + content: "\f19d"; +} +.fa-yahoo:before { + content: "\f19e"; +} +.fa-google:before { + content: "\f1a0"; +} +.fa-reddit:before { + content: "\f1a1"; +} +.fa-reddit-square:before { + content: "\f1a2"; +} +.fa-stumbleupon-circle:before { + content: "\f1a3"; +} +.fa-stumbleupon:before { + content: "\f1a4"; +} +.fa-delicious:before { + content: "\f1a5"; +} +.fa-digg:before { + content: "\f1a6"; +} +.fa-pied-piper-pp:before { + content: "\f1a7"; +} +.fa-pied-piper-alt:before { + content: "\f1a8"; +} +.fa-drupal:before { + content: "\f1a9"; +} +.fa-joomla:before { + content: "\f1aa"; +} +.fa-language:before { + content: "\f1ab"; +} +.fa-fax:before { + content: "\f1ac"; +} +.fa-building:before { + content: "\f1ad"; +} +.fa-child:before { + content: "\f1ae"; +} +.fa-paw:before { + content: "\f1b0"; +} +.fa-spoon:before { + content: "\f1b1"; +} +.fa-cube:before { + content: "\f1b2"; +} +.fa-cubes:before { + content: "\f1b3"; +} +.fa-behance:before { + content: "\f1b4"; +} +.fa-behance-square:before { + content: "\f1b5"; +} +.fa-steam:before { + content: "\f1b6"; +} +.fa-steam-square:before { + content: "\f1b7"; +} +.fa-recycle:before { + content: "\f1b8"; +} +.fa-automobile:before, +.fa-car:before { + content: "\f1b9"; +} +.fa-cab:before, +.fa-taxi:before { + content: "\f1ba"; +} +.fa-tree:before { + content: "\f1bb"; +} +.fa-spotify:before { + content: "\f1bc"; +} +.fa-deviantart:before { + content: "\f1bd"; +} +.fa-soundcloud:before { + content: "\f1be"; +} +.fa-database:before { + content: "\f1c0"; +} +.fa-file-pdf-o:before { + content: "\f1c1"; +} +.fa-file-word-o:before { + content: "\f1c2"; +} +.fa-file-excel-o:before { + content: "\f1c3"; +} +.fa-file-powerpoint-o:before { + content: "\f1c4"; +} +.fa-file-photo-o:before, +.fa-file-picture-o:before, +.fa-file-image-o:before { + content: "\f1c5"; +} +.fa-file-zip-o:before, +.fa-file-archive-o:before { + content: "\f1c6"; +} +.fa-file-sound-o:before, +.fa-file-audio-o:before { + content: "\f1c7"; +} +.fa-file-movie-o:before, +.fa-file-video-o:before { + content: "\f1c8"; +} +.fa-file-code-o:before { + content: "\f1c9"; +} +.fa-vine:before { + content: "\f1ca"; +} +.fa-codepen:before { + content: "\f1cb"; +} +.fa-jsfiddle:before { + content: "\f1cc"; +} +.fa-life-bouy:before, +.fa-life-buoy:before, +.fa-life-saver:before, +.fa-support:before, +.fa-life-ring:before { + content: "\f1cd"; +} +.fa-circle-o-notch:before { + content: "\f1ce"; +} +.fa-ra:before, +.fa-resistance:before, +.fa-rebel:before { + content: "\f1d0"; +} +.fa-ge:before, +.fa-empire:before { + content: "\f1d1"; +} +.fa-git-square:before { + content: "\f1d2"; +} +.fa-git:before { + content: "\f1d3"; +} +.fa-y-combinator-square:before, +.fa-yc-square:before, +.fa-hacker-news:before { + content: "\f1d4"; +} +.fa-tencent-weibo:before { + content: "\f1d5"; +} +.fa-qq:before { + content: "\f1d6"; +} +.fa-wechat:before, +.fa-weixin:before { + content: "\f1d7"; +} +.fa-send:before, +.fa-paper-plane:before { + content: "\f1d8"; +} +.fa-send-o:before, +.fa-paper-plane-o:before { + content: "\f1d9"; +} +.fa-history:before { + content: "\f1da"; +} +.fa-circle-thin:before { + content: "\f1db"; +} +.fa-header:before { + content: "\f1dc"; +} +.fa-paragraph:before { + content: "\f1dd"; +} +.fa-sliders:before { + content: "\f1de"; +} +.fa-share-alt:before { + content: "\f1e0"; +} +.fa-share-alt-square:before { + content: "\f1e1"; +} +.fa-bomb:before { + content: "\f1e2"; +} +.fa-soccer-ball-o:before, +.fa-futbol-o:before { + content: "\f1e3"; +} +.fa-tty:before { + content: "\f1e4"; +} +.fa-binoculars:before { + content: "\f1e5"; +} +.fa-plug:before { + content: "\f1e6"; +} +.fa-slideshare:before { + content: "\f1e7"; +} +.fa-twitch:before { + content: "\f1e8"; +} +.fa-yelp:before { + content: "\f1e9"; +} +.fa-newspaper-o:before { + content: "\f1ea"; +} +.fa-wifi:before { + content: "\f1eb"; +} +.fa-calculator:before { + content: "\f1ec"; +} +.fa-paypal:before { + content: "\f1ed"; +} +.fa-google-wallet:before { + content: "\f1ee"; +} +.fa-cc-visa:before { + content: "\f1f0"; +} +.fa-cc-mastercard:before { + content: "\f1f1"; +} +.fa-cc-discover:before { + content: "\f1f2"; +} +.fa-cc-amex:before { + content: "\f1f3"; +} +.fa-cc-paypal:before { + content: "\f1f4"; +} +.fa-cc-stripe:before { + content: "\f1f5"; +} +.fa-bell-slash:before { + content: "\f1f6"; +} +.fa-bell-slash-o:before { + content: "\f1f7"; +} +.fa-trash:before { + content: "\f1f8"; +} +.fa-copyright:before { + content: "\f1f9"; +} +.fa-at:before { + content: "\f1fa"; +} +.fa-eyedropper:before { + content: "\f1fb"; +} +.fa-paint-brush:before { + content: "\f1fc"; +} +.fa-birthday-cake:before { + content: "\f1fd"; +} +.fa-area-chart:before { + content: "\f1fe"; +} +.fa-pie-chart:before { + content: "\f200"; +} +.fa-line-chart:before { + content: "\f201"; +} +.fa-lastfm:before { + content: "\f202"; +} +.fa-lastfm-square:before { + content: "\f203"; +} +.fa-toggle-off:before { + content: "\f204"; +} +.fa-toggle-on:before { + content: "\f205"; +} +.fa-bicycle:before { + content: "\f206"; +} +.fa-bus:before { + content: "\f207"; +} +.fa-ioxhost:before { + content: "\f208"; +} +.fa-angellist:before { + content: "\f209"; +} +.fa-cc:before { + content: "\f20a"; +} +.fa-shekel:before, +.fa-sheqel:before, +.fa-ils:before { + content: "\f20b"; +} +.fa-meanpath:before { + content: "\f20c"; +} +.fa-buysellads:before { + content: "\f20d"; +} +.fa-connectdevelop:before { + content: "\f20e"; +} +.fa-dashcube:before { + content: "\f210"; +} +.fa-forumbee:before { + content: "\f211"; +} +.fa-leanpub:before { + content: "\f212"; +} +.fa-sellsy:before { + content: "\f213"; +} +.fa-shirtsinbulk:before { + content: "\f214"; +} +.fa-simplybuilt:before { + content: "\f215"; +} +.fa-skyatlas:before { + content: "\f216"; +} +.fa-cart-plus:before { + content: "\f217"; +} +.fa-cart-arrow-down:before { + content: "\f218"; +} +.fa-diamond:before { + content: "\f219"; +} +.fa-ship:before { + content: "\f21a"; +} +.fa-user-secret:before { + content: "\f21b"; +} +.fa-motorcycle:before { + content: "\f21c"; +} +.fa-street-view:before { + content: "\f21d"; +} +.fa-heartbeat:before { + content: "\f21e"; +} +.fa-venus:before { + content: "\f221"; +} +.fa-mars:before { + content: "\f222"; +} +.fa-mercury:before { + content: "\f223"; +} +.fa-intersex:before, +.fa-transgender:before { + content: "\f224"; +} +.fa-transgender-alt:before { + content: "\f225"; +} +.fa-venus-double:before { + content: "\f226"; +} +.fa-mars-double:before { + content: "\f227"; +} +.fa-venus-mars:before { + content: "\f228"; +} +.fa-mars-stroke:before { + content: "\f229"; +} +.fa-mars-stroke-v:before { + content: "\f22a"; +} +.fa-mars-stroke-h:before { + content: "\f22b"; +} +.fa-neuter:before { + content: "\f22c"; +} +.fa-genderless:before { + content: "\f22d"; +} +.fa-facebook-official:before { + content: "\f230"; +} +.fa-pinterest-p:before { + content: "\f231"; +} +.fa-whatsapp:before { + content: "\f232"; +} +.fa-server:before { + content: "\f233"; +} +.fa-user-plus:before { + content: "\f234"; +} +.fa-user-times:before { + content: "\f235"; +} +.fa-hotel:before, +.fa-bed:before { + content: "\f236"; +} +.fa-viacoin:before { + content: "\f237"; +} +.fa-train:before { + content: "\f238"; +} +.fa-subway:before { + content: "\f239"; +} +.fa-medium:before { + content: "\f23a"; +} +.fa-yc:before, +.fa-y-combinator:before { + content: "\f23b"; +} +.fa-optin-monster:before { + content: "\f23c"; +} +.fa-opencart:before { + content: "\f23d"; +} +.fa-expeditedssl:before { + content: "\f23e"; +} +.fa-battery-4:before, +.fa-battery:before, +.fa-battery-full:before { + content: "\f240"; +} +.fa-battery-3:before, +.fa-battery-three-quarters:before { + content: "\f241"; +} +.fa-battery-2:before, +.fa-battery-half:before { + content: "\f242"; +} +.fa-battery-1:before, +.fa-battery-quarter:before { + content: "\f243"; +} +.fa-battery-0:before, +.fa-battery-empty:before { + content: "\f244"; +} +.fa-mouse-pointer:before { + content: "\f245"; +} +.fa-i-cursor:before { + content: "\f246"; +} +.fa-object-group:before { + content: "\f247"; +} +.fa-object-ungroup:before { + content: "\f248"; +} +.fa-sticky-note:before { + content: "\f249"; +} +.fa-sticky-note-o:before { + content: "\f24a"; +} +.fa-cc-jcb:before { + content: "\f24b"; +} +.fa-cc-diners-club:before { + content: "\f24c"; +} +.fa-clone:before { + content: "\f24d"; +} +.fa-balance-scale:before { + content: "\f24e"; +} +.fa-hourglass-o:before { + content: "\f250"; +} +.fa-hourglass-1:before, +.fa-hourglass-start:before { + content: "\f251"; +} +.fa-hourglass-2:before, +.fa-hourglass-half:before { + content: "\f252"; +} +.fa-hourglass-3:before, +.fa-hourglass-end:before { + content: "\f253"; +} +.fa-hourglass:before { + content: "\f254"; +} +.fa-hand-grab-o:before, +.fa-hand-rock-o:before { + content: "\f255"; +} +.fa-hand-stop-o:before, +.fa-hand-paper-o:before { + content: "\f256"; +} +.fa-hand-scissors-o:before { + content: "\f257"; +} +.fa-hand-lizard-o:before { + content: "\f258"; +} +.fa-hand-spock-o:before { + content: "\f259"; +} +.fa-hand-pointer-o:before { + content: "\f25a"; +} +.fa-hand-peace-o:before { + content: "\f25b"; +} +.fa-trademark:before { + content: "\f25c"; +} +.fa-registered:before { + content: "\f25d"; +} +.fa-creative-commons:before { + content: "\f25e"; +} +.fa-gg:before { + content: "\f260"; +} +.fa-gg-circle:before { + content: "\f261"; +} +.fa-tripadvisor:before { + content: "\f262"; +} +.fa-odnoklassniki:before { + content: "\f263"; +} +.fa-odnoklassniki-square:before { + content: "\f264"; +} +.fa-get-pocket:before { + content: "\f265"; +} +.fa-wikipedia-w:before { + content: "\f266"; +} +.fa-safari:before { + content: "\f267"; +} +.fa-chrome:before { + content: "\f268"; +} +.fa-firefox:before { + content: "\f269"; +} +.fa-opera:before { + content: "\f26a"; +} +.fa-internet-explorer:before { + content: "\f26b"; +} +.fa-tv:before, +.fa-television:before { + content: "\f26c"; +} +.fa-contao:before { + content: "\f26d"; +} +.fa-500px:before { + content: "\f26e"; +} +.fa-amazon:before { + content: "\f270"; +} +.fa-calendar-plus-o:before { + content: "\f271"; +} +.fa-calendar-minus-o:before { + content: "\f272"; +} +.fa-calendar-times-o:before { + content: "\f273"; +} +.fa-calendar-check-o:before { + content: "\f274"; +} +.fa-industry:before { + content: "\f275"; +} +.fa-map-pin:before { + content: "\f276"; +} +.fa-map-signs:before { + content: "\f277"; +} +.fa-map-o:before { + content: "\f278"; +} +.fa-map:before { + content: "\f279"; +} +.fa-commenting:before { + content: "\f27a"; +} +.fa-commenting-o:before { + content: "\f27b"; +} +.fa-houzz:before { + content: "\f27c"; +} +.fa-vimeo:before { + content: "\f27d"; +} +.fa-black-tie:before { + content: "\f27e"; +} +.fa-fonticons:before { + content: "\f280"; +} +.fa-reddit-alien:before { + content: "\f281"; +} +.fa-edge:before { + content: "\f282"; +} +.fa-credit-card-alt:before { + content: "\f283"; +} +.fa-codiepie:before { + content: "\f284"; +} +.fa-modx:before { + content: "\f285"; +} +.fa-fort-awesome:before { + content: "\f286"; +} +.fa-usb:before { + content: "\f287"; +} +.fa-product-hunt:before { + content: "\f288"; +} +.fa-mixcloud:before { + content: "\f289"; +} +.fa-scribd:before { + content: "\f28a"; +} +.fa-pause-circle:before { + content: "\f28b"; +} +.fa-pause-circle-o:before { + content: "\f28c"; +} +.fa-stop-circle:before { + content: "\f28d"; +} +.fa-stop-circle-o:before { + content: "\f28e"; +} +.fa-shopping-bag:before { + content: "\f290"; +} +.fa-shopping-basket:before { + content: "\f291"; +} +.fa-hashtag:before { + content: "\f292"; +} +.fa-bluetooth:before { + content: "\f293"; +} +.fa-bluetooth-b:before { + content: "\f294"; +} +.fa-percent:before { + content: "\f295"; +} +.fa-gitlab:before { + content: "\f296"; +} +.fa-wpbeginner:before { + content: "\f297"; +} +.fa-wpforms:before { + content: "\f298"; +} +.fa-envira:before { + content: "\f299"; +} +.fa-universal-access:before { + content: "\f29a"; +} +.fa-wheelchair-alt:before { + content: "\f29b"; +} +.fa-question-circle-o:before { + content: "\f29c"; +} +.fa-blind:before { + content: "\f29d"; +} +.fa-audio-description:before { + content: "\f29e"; +} +.fa-volume-control-phone:before { + content: "\f2a0"; +} +.fa-braille:before { + content: "\f2a1"; +} +.fa-assistive-listening-systems:before { + content: "\f2a2"; +} +.fa-asl-interpreting:before, +.fa-american-sign-language-interpreting:before { + content: "\f2a3"; +} +.fa-deafness:before, +.fa-hard-of-hearing:before, +.fa-deaf:before { + content: "\f2a4"; +} +.fa-glide:before { + content: "\f2a5"; +} +.fa-glide-g:before { + content: "\f2a6"; +} +.fa-signing:before, +.fa-sign-language:before { + content: "\f2a7"; +} +.fa-low-vision:before { + content: "\f2a8"; +} +.fa-viadeo:before { + content: "\f2a9"; +} +.fa-viadeo-square:before { + content: "\f2aa"; +} +.fa-snapchat:before { + content: "\f2ab"; +} +.fa-snapchat-ghost:before { + content: "\f2ac"; +} +.fa-snapchat-square:before { + content: "\f2ad"; +} +.fa-pied-piper:before { + content: "\f2ae"; +} +.fa-first-order:before { + content: "\f2b0"; +} +.fa-yoast:before { + content: "\f2b1"; +} +.fa-themeisle:before { + content: "\f2b2"; +} +.fa-google-plus-circle:before, +.fa-google-plus-official:before { + content: "\f2b3"; +} +.fa-fa:before, +.fa-font-awesome:before { + content: "\f2b4"; +} +.fa-handshake-o:before { + content: "\f2b5"; +} +.fa-envelope-open:before { + content: "\f2b6"; +} +.fa-envelope-open-o:before { + content: "\f2b7"; +} +.fa-linode:before { + content: "\f2b8"; +} +.fa-address-book:before { + content: "\f2b9"; +} +.fa-address-book-o:before { + content: "\f2ba"; +} +.fa-vcard:before, +.fa-address-card:before { + content: "\f2bb"; +} +.fa-vcard-o:before, +.fa-address-card-o:before { + content: "\f2bc"; +} +.fa-user-circle:before { + content: "\f2bd"; +} +.fa-user-circle-o:before { + content: "\f2be"; +} +.fa-user-o:before { + content: "\f2c0"; +} +.fa-id-badge:before { + content: "\f2c1"; +} +.fa-drivers-license:before, +.fa-id-card:before { + content: "\f2c2"; +} +.fa-drivers-license-o:before, +.fa-id-card-o:before { + content: "\f2c3"; +} +.fa-quora:before { + content: "\f2c4"; +} +.fa-free-code-camp:before { + content: "\f2c5"; +} +.fa-telegram:before { + content: "\f2c6"; +} +.fa-thermometer-4:before, +.fa-thermometer:before, +.fa-thermometer-full:before { + content: "\f2c7"; +} +.fa-thermometer-3:before, +.fa-thermometer-three-quarters:before { + content: "\f2c8"; +} +.fa-thermometer-2:before, +.fa-thermometer-half:before { + content: "\f2c9"; +} +.fa-thermometer-1:before, +.fa-thermometer-quarter:before { + content: "\f2ca"; +} +.fa-thermometer-0:before, +.fa-thermometer-empty:before { + content: "\f2cb"; +} +.fa-shower:before { + content: "\f2cc"; +} +.fa-bathtub:before, +.fa-s15:before, +.fa-bath:before { + content: "\f2cd"; +} +.fa-podcast:before { + content: "\f2ce"; +} +.fa-window-maximize:before { + content: "\f2d0"; +} +.fa-window-minimize:before { + content: "\f2d1"; +} +.fa-window-restore:before { + content: "\f2d2"; +} +.fa-times-rectangle:before, +.fa-window-close:before { + content: "\f2d3"; +} +.fa-times-rectangle-o:before, +.fa-window-close-o:before { + content: "\f2d4"; +} +.fa-bandcamp:before { + content: "\f2d5"; +} +.fa-grav:before { + content: "\f2d6"; +} +.fa-etsy:before { + content: "\f2d7"; +} +.fa-imdb:before { + content: "\f2d8"; +} +.fa-ravelry:before { + content: "\f2d9"; +} +.fa-eercast:before { + content: "\f2da"; +} +.fa-microchip:before { + content: "\f2db"; +} +.fa-snowflake-o:before { + content: "\f2dc"; +} +.fa-superpowers:before { + content: "\f2dd"; +} +.fa-wpexplorer:before { + content: "\f2de"; +} +.fa-meetup:before { + content: "\f2e0"; +} +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + border: 0; +} +.sr-only-focusable:active, +.sr-only-focusable:focus { + position: static; + width: auto; + height: auto; + margin: 0; + overflow: visible; + clip: auto; +} diff --git a/wp-themes/generatepress/css/font-awesome.min.css b/wp-themes/generatepress/css/font-awesome.min.css new file mode 100644 index 0000000..0077fd3 --- /dev/null +++ b/wp-themes/generatepress/css/font-awesome.min.css @@ -0,0 +1 @@ +@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot');src:url('../fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2') format('woff2'),url('../fonts/fontawesome-webfont.woff') format('woff'),url('../fonts/fontawesome-webfont.ttf') format('truetype'),url('../fonts/fontawesome-webfont.svg#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.fa-handshake-o:before{content:"\f2b5"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-o:before{content:"\f2b7"}.fa-linode:before{content:"\f2b8"}.fa-address-book:before{content:"\f2b9"}.fa-address-book-o:before{content:"\f2ba"}.fa-vcard:before,.fa-address-card:before{content:"\f2bb"}.fa-vcard-o:before,.fa-address-card-o:before{content:"\f2bc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-circle-o:before{content:"\f2be"}.fa-user-o:before{content:"\f2c0"}.fa-id-badge:before{content:"\f2c1"}.fa-drivers-license:before,.fa-id-card:before{content:"\f2c2"}.fa-drivers-license-o:before,.fa-id-card-o:before{content:"\f2c3"}.fa-quora:before{content:"\f2c4"}.fa-free-code-camp:before{content:"\f2c5"}.fa-telegram:before{content:"\f2c6"}.fa-thermometer-4:before,.fa-thermometer:before,.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-3:before,.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-thermometer-2:before,.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-1:before,.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-0:before,.fa-thermometer-empty:before{content:"\f2cb"}.fa-shower:before{content:"\f2cc"}.fa-bathtub:before,.fa-s15:before,.fa-bath:before{content:"\f2cd"}.fa-podcast:before{content:"\f2ce"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-times-rectangle:before,.fa-window-close:before{content:"\f2d3"}.fa-times-rectangle-o:before,.fa-window-close-o:before{content:"\f2d4"}.fa-bandcamp:before{content:"\f2d5"}.fa-grav:before{content:"\f2d6"}.fa-etsy:before{content:"\f2d7"}.fa-imdb:before{content:"\f2d8"}.fa-ravelry:before{content:"\f2d9"}.fa-eercast:before{content:"\f2da"}.fa-microchip:before{content:"\f2db"}.fa-snowflake-o:before{content:"\f2dc"}.fa-superpowers:before{content:"\f2dd"}.fa-wpexplorer:before{content:"\f2de"}.fa-meetup:before{content:"\f2e0"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto} diff --git a/wp-themes/generatepress/css/mobile.css b/wp-themes/generatepress/css/mobile.css new file mode 100644 index 0000000..cd889e5 --- /dev/null +++ b/wp-themes/generatepress/css/mobile.css @@ -0,0 +1,260 @@ +button.menu-toggle { + background-color: transparent; + width: 100%; + border: 0; + text-align: center; +} + +.nav-search-enabled .main-navigation .menu-toggle { + text-align: left; +} + +.mobile-bar-items { + display: none; + position: absolute; + right: 0; + top: 0; + z-index: 21; + list-style-type: none; +} + +.mobile-bar-items a { + display: inline-block; +} + +.mobile-bar-items .search-item.active { + transition: opacity 300ms ease-in-out; +} + +.main-navigation.toggled ul ul { + transition: 0s; +} + +nav.toggled ul ul.sub-menu { + width: 100%; +} + +.dropdown-hover .main-navigation.toggled ul li:hover > ul, +.dropdown-hover .main-navigation.toggled ul li.sfHover > ul { + transition-delay: 0s; +} + +.toggled .menu-item-has-children .dropdown-menu-toggle { + padding-left: 20px; +} + +.main-navigation.toggled ul ul { + visibility: hidden; +} + +.main-navigation.toggled ul ul.toggled-on { + visibility: visible; +} + +.main-navigation.toggled .main-nav > ul { + display: block; +} + +.main-navigation.toggled .main-nav ul ul.toggled-on { + position: relative; + top: 0; + left: auto !important; + right: auto !important; + width: 100%; + pointer-events: auto; + height: auto; + opacity: 1; + display: block; +} + +.main-navigation.toggled .main-nav li { + float: none; + clear: both; + display: block !important; + text-align: left !important; +} + +.main-navigation.toggled .main-nav li.hide-on-mobile { + display: none !important; +} + +.main-navigation.toggled .dropdown-menu-toggle:before { + content: "\f107" !important; +} + +.main-navigation.toggled .sfHover > a .dropdown-menu-toggle:before { + content: "\f106" !important; +} + +.main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle { + float: right; +} + +.main-navigation.toggled .menu li.search-item { + display: none !important; +} + +.main-navigation.toggled .sf-menu > li.menu-item-float-right { + float: none !important; + display: inline-block !important; +} + +@media (max-width: 768px) { + .top-bar.top-bar-align-left, + .top-bar.top-bar-align-right { + text-align: center; + } + + .top-bar .widget { + float: none !important; + margin: 0 10px !important; + } + + .top-bar .widget_nav_menu li { + float: none; + display: inline-block; + padding: 5px 0; + } + + .sidebar, + .content-area, + .inside-footer-widgets > div { + float: none; + width: 100%; + left: 0; + right: 0; + } + + .inside-footer-widgets > div:not(:last-child) { + margin-bottom: 40px; + } + + .one-container .sidebar { + margin-top: 40px; + } + + .separate-containers #left-sidebar + #right-sidebar .inside-right-sidebar { + margin-top: 0; + } + + a, body, button, input, select, textarea { + -webkit-transition: all 0s ease-in-out; + -moz-transition: all 0s ease-in-out; + -o-transition: all 0s ease-in-out; + transition: all 0s ease-in-out; + } + + .inside-header > *:not(:last-child):not(.main-navigation) { + margin-bottom: 20px; + } + + /* Start mobile navigation */ + .main-navigation .menu-toggle, + .main-navigation .mobile-bar-items, + .sidebar-nav-mobile:not(#sticky-placeholder) { + display: block; + } + + .main-navigation ul, + .gen-sidebar-nav { + display: none; + } + + [class*="nav-float-"] .site-header .inside-header > * { + float: none; + clear: both; + } + /* End mobile navigation */ + + .both-right.separate-containers .inside-left-sidebar, + .both-left.separate-containers .inside-left-sidebar, + .both-right.separate-containers .inside-right-sidebar, + .both-left.separate-containers .inside-right-sidebar { + margin-right: 0; + margin-left: 0; + } + + .site-main { + margin-left: 0 !important; + margin-right: 0 !important; + } + + body:not(.no-sidebar) .site-main { + margin-bottom: 0 !important; + } + + .fluid-header .inside-header { + text-align: center; + } + + .header-widget { + float: none; + max-width: 100%; + text-align: center; + } + + .alignleft, + .alignright { + float: none; + display: block; + margin-left: auto; + margin-right: auto; + } + + .post-image-aligned-left .post-image, + .post-image-aligned-right .post-image { + float: none; + margin: 2em 0; + text-align: center; + } + + .site-info { + padding-left: 10px; + padding-right: 10px; + } + + .site-info { + text-align: center; + } + + .copyright-bar { + float: none !important; + text-align: center !important; + } + + .footer-bar { + float: none !important; + text-align: center !important; + margin-bottom: 20px; + } + + .footer-bar .widget_nav_menu li { + float: none; + display: inline-block; + padding: 5px 0; + } + + .site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets { + margin: 0; + } + + .site-footer .footer-widgets .footer-widgets-container .inner-padding { + padding: 0; + } + + .comment .children { + padding-left: 10px; + margin-left: 0; + } + + .edd_download { + display: block; + float: none !important; + margin-bottom: 1.5em; + width: 100% !important; + } + + .entry-meta { + font-size: inherit; + } +} diff --git a/wp-themes/generatepress/css/mobile.min.css b/wp-themes/generatepress/css/mobile.min.css new file mode 100644 index 0000000..00040de --- /dev/null +++ b/wp-themes/generatepress/css/mobile.min.css @@ -0,0 +1 @@ +button.menu-toggle{background-color:transparent;width:100%;border:0;text-align:center}.nav-search-enabled .main-navigation .menu-toggle{text-align:left}.mobile-bar-items{display:none;position:absolute;right:0;top:0;z-index:21;list-style-type:none}.mobile-bar-items a{display:inline-block}.mobile-bar-items .search-item.active{transition:opacity 300ms ease-in-out}.main-navigation.toggled ul ul{transition:0s;visibility:hidden}nav.toggled ul ul.sub-menu{width:100%}.dropdown-hover .main-navigation.toggled ul li.sfHover>ul,.dropdown-hover .main-navigation.toggled ul li:hover>ul{transition-delay:0s}.toggled .menu-item-has-children .dropdown-menu-toggle{padding-left:20px}.main-navigation.toggled ul ul.toggled-on{visibility:visible}.main-navigation.toggled .main-nav>ul{display:block}.main-navigation.toggled .main-nav ul ul.toggled-on{position:relative;top:0;left:auto!important;right:auto!important;width:100%;pointer-events:auto;height:auto;opacity:1;display:block}.main-navigation.toggled .main-nav li{float:none;clear:both;display:block!important;text-align:left!important}.main-navigation.toggled .main-nav li.hide-on-mobile,.main-navigation.toggled .menu li.search-item{display:none!important}.main-navigation.toggled .dropdown-menu-toggle:before{content:"\f107"!important}.main-navigation.toggled .sfHover>a .dropdown-menu-toggle:before{content:"\f106"!important}.main-navigation.toggled .menu-item-has-children .dropdown-menu-toggle{float:right}.main-navigation.toggled .sf-menu>li.menu-item-float-right{float:none!important;display:inline-block!important}@media (max-width:768px){.top-bar.top-bar-align-left,.top-bar.top-bar-align-right{text-align:center}.top-bar .widget{float:none!important;margin:0 10px!important}.footer-bar .widget_nav_menu li,.top-bar .widget_nav_menu li{float:none;display:inline-block;padding:5px 0}.content-area,.inside-footer-widgets>div,.sidebar{float:none;width:100%;left:0;right:0}.inside-footer-widgets>div:not(:last-child){margin-bottom:40px}.one-container .sidebar{margin-top:40px}.separate-containers #left-sidebar+#right-sidebar .inside-right-sidebar{margin-top:0}a,body,button,input,select,textarea{-webkit-transition:all 0s ease-in-out;-moz-transition:all 0s ease-in-out;-o-transition:all 0s ease-in-out;transition:all 0s ease-in-out}.inside-header>:not(:last-child):not(.main-navigation){margin-bottom:20px}.main-navigation .menu-toggle,.main-navigation .mobile-bar-items,.sidebar-nav-mobile:not(#sticky-placeholder){display:block}.gen-sidebar-nav,.main-navigation ul{display:none}[class*=nav-float-] .site-header .inside-header>*{float:none;clear:both}.both-left.separate-containers .inside-left-sidebar,.both-left.separate-containers .inside-right-sidebar,.both-right.separate-containers .inside-left-sidebar,.both-right.separate-containers .inside-right-sidebar{margin-right:0;margin-left:0}.site-main{margin-left:0!important;margin-right:0!important}body:not(.no-sidebar) .site-main{margin-bottom:0!important}.fluid-header .inside-header,.header-widget{text-align:center}.header-widget{float:none;max-width:100%}.alignleft,.alignright{float:none;display:block;margin-left:auto;margin-right:auto}.post-image-aligned-left .post-image,.post-image-aligned-right .post-image{float:none;margin:2em 0;text-align:center}.site-info{padding-left:10px;padding-right:10px;text-align:center}.copyright-bar,.footer-bar{float:none!important;text-align:center!important}.footer-bar{margin-bottom:20px}.site-footer .footer-widgets .footer-widgets-container .inside-footer-widgets{margin:0}.site-footer .footer-widgets .footer-widgets-container .inner-padding{padding:0}.comment .children{padding-left:10px;margin-left:0}.edd_download{display:block;float:none!important;margin-bottom:1.5em;width:100%!important}.entry-meta{font-size:inherit}} diff --git a/wp-themes/generatepress/css/unsemantic-grid.css b/wp-themes/generatepress/css/unsemantic-grid.css new file mode 100644 index 0000000..bffe8ac --- /dev/null +++ b/wp-themes/generatepress/css/unsemantic-grid.css @@ -0,0 +1,1467 @@ +/* ================================================================== */ +/* This file has a mobile-to-tablet, and tablet-to-desktop breakpoint */ +/* ================================================================== */ +@-ms-viewport { + width: auto; +} + +.clear { + clear: both; + display: block; + overflow: hidden; + visibility: hidden; + width: 0; + height: 0; +} + +.grid-container:before, .grid-5:before, .grid-10:before, .grid-15:before, .grid-20:before, .grid-25:before, .grid-30:before, .grid-35:before, .grid-40:before, .grid-45:before, .grid-50:before, .grid-55:before, .grid-60:before, .grid-65:before, .grid-70:before, .grid-75:before, .grid-80:before, .grid-85:before, .grid-90:before, .grid-95:before, .grid-100:before, .grid-33:before, .grid-66:before, [class*="mobile-grid-"]:before,[class*="tablet-grid-"]:before, .clearfix:before, +.grid-container:after, +.grid-5:after, +.grid-10:after, +.grid-15:after, +.grid-20:after, +.grid-25:after, +.grid-30:after, +.grid-35:after, +.grid-40:after, +.grid-45:after, +.grid-50:after, +.grid-55:after, +.grid-60:after, +.grid-65:after, +.grid-70:after, +.grid-75:after, +.grid-80:after, +.grid-85:after, +.grid-90:after, +.grid-95:after, +.grid-100:after, +.grid-33:after, +.grid-66:after, +[class*="mobile-grid-"]:after, +[class*="tablet-grid-"]:after, +.clearfix:after { + content: "."; + display: block; + overflow: hidden; + visibility: hidden; + font-size: 0; + line-height: 0; + width: 0; + height: 0; +} + +.grid-container:after, .grid-5:after, .grid-10:after, .grid-15:after, .grid-20:after, .grid-25:after, .grid-30:after, .grid-35:after, .grid-40:after, .grid-45:after, .grid-50:after, .grid-55:after, .grid-60:after, .grid-65:after, .grid-70:after, .grid-75:after, .grid-80:after, .grid-85:after, .grid-90:after, .grid-95:after, .grid-100:after, .grid-33:after, .grid-66:after, [class*="mobile-grid-"]:after, [class*="tablet-grid-"]:after, .clearfix:after { + clear: both; +} + +.grid-container { + margin-left: auto; + margin-right: auto; + max-width: 1200px; + padding-left: 10px; + padding-right: 10px; +} + +.grid-5, .grid-10, .grid-15, .grid-20, .grid-25, .grid-30, .grid-35, .grid-40, .grid-45, .grid-50, .grid-55, .grid-60, .grid-65, .grid-70, .grid-75, .grid-80, .grid-85, .grid-90, .grid-95, .grid-100, .grid-33, .grid-66, [class*="mobile-grid-"], [class*="tablet-grid-"] { + -moz-box-sizing: border-box; + -webkit-box-sizing: border-box; + box-sizing: border-box; + padding-left: 10px; + padding-right: 10px; +} + +.grid-parent { + padding-left: 0; + padding-right: 0; +} + +@media (max-width: 767px) { + [class*="mobile-push-"], + [class*="mobile-pull-"] { + position: relative; + } + + .hide-on-mobile { + display: none !important; + } + + .mobile-grid-5 { + float: left; + width: 5%; + } + + .mobile-prefix-5 { + margin-left: 5%; + } + + .mobile-suffix-5 { + margin-right: 5%; + } + + .mobile-push-5 { + left: 5%; + } + + .mobile-pull-5 { + left: -5%; + } + + .mobile-grid-10 { + float: left; + width: 10%; + } + + .mobile-prefix-10 { + margin-left: 10%; + } + + .mobile-suffix-10 { + margin-right: 10%; + } + + .mobile-push-10 { + left: 10%; + } + + .mobile-pull-10 { + left: -10%; + } + + .mobile-grid-15 { + float: left; + width: 15%; + } + + .mobile-prefix-15 { + margin-left: 15%; + } + + .mobile-suffix-15 { + margin-right: 15%; + } + + .mobile-push-15 { + left: 15%; + } + + .mobile-pull-15 { + left: -15%; + } + + .mobile-grid-20 { + float: left; + width: 20%; + } + + .mobile-prefix-20 { + margin-left: 20%; + } + + .mobile-suffix-20 { + margin-right: 20%; + } + + .mobile-push-20 { + left: 20%; + } + + .mobile-pull-20 { + left: -20%; + } + + .mobile-grid-25 { + float: left; + width: 25%; + } + + .mobile-prefix-25 { + margin-left: 25%; + } + + .mobile-suffix-25 { + margin-right: 25%; + } + + .mobile-push-25 { + left: 25%; + } + + .mobile-pull-25 { + left: -25%; + } + + .mobile-grid-30 { + float: left; + width: 30%; + } + + .mobile-prefix-30 { + margin-left: 30%; + } + + .mobile-suffix-30 { + margin-right: 30%; + } + + .mobile-push-30 { + left: 30%; + } + + .mobile-pull-30 { + left: -30%; + } + + .mobile-grid-35 { + float: left; + width: 35%; + } + + .mobile-prefix-35 { + margin-left: 35%; + } + + .mobile-suffix-35 { + margin-right: 35%; + } + + .mobile-push-35 { + left: 35%; + } + + .mobile-pull-35 { + left: -35%; + } + + .mobile-grid-40 { + float: left; + width: 40%; + } + + .mobile-prefix-40 { + margin-left: 40%; + } + + .mobile-suffix-40 { + margin-right: 40%; + } + + .mobile-push-40 { + left: 40%; + } + + .mobile-pull-40 { + left: -40%; + } + + .mobile-grid-45 { + float: left; + width: 45%; + } + + .mobile-prefix-45 { + margin-left: 45%; + } + + .mobile-suffix-45 { + margin-right: 45%; + } + + .mobile-push-45 { + left: 45%; + } + + .mobile-pull-45 { + left: -45%; + } + + .mobile-grid-50 { + float: left; + width: 50%; + } + + .mobile-prefix-50 { + margin-left: 50%; + } + + .mobile-suffix-50 { + margin-right: 50%; + } + + .mobile-push-50 { + left: 50%; + } + + .mobile-pull-50 { + left: -50%; + } + + .mobile-grid-55 { + float: left; + width: 55%; + } + + .mobile-prefix-55 { + margin-left: 55%; + } + + .mobile-suffix-55 { + margin-right: 55%; + } + + .mobile-push-55 { + left: 55%; + } + + .mobile-pull-55 { + left: -55%; + } + + .mobile-grid-60 { + float: left; + width: 60%; + } + + .mobile-prefix-60 { + margin-left: 60%; + } + + .mobile-suffix-60 { + margin-right: 60%; + } + + .mobile-push-60 { + left: 60%; + } + + .mobile-pull-60 { + left: -60%; + } + + .mobile-grid-65 { + float: left; + width: 65%; + } + + .mobile-prefix-65 { + margin-left: 65%; + } + + .mobile-suffix-65 { + margin-right: 65%; + } + + .mobile-push-65 { + left: 65%; + } + + .mobile-pull-65 { + left: -65%; + } + + .mobile-grid-70 { + float: left; + width: 70%; + } + + .mobile-prefix-70 { + margin-left: 70%; + } + + .mobile-suffix-70 { + margin-right: 70%; + } + + .mobile-push-70 { + left: 70%; + } + + .mobile-pull-70 { + left: -70%; + } + + .mobile-grid-75 { + float: left; + width: 75%; + } + + .mobile-prefix-75 { + margin-left: 75%; + } + + .mobile-suffix-75 { + margin-right: 75%; + } + + .mobile-push-75 { + left: 75%; + } + + .mobile-pull-75 { + left: -75%; + } + + .mobile-grid-80 { + float: left; + width: 80%; + } + + .mobile-prefix-80 { + margin-left: 80%; + } + + .mobile-suffix-80 { + margin-right: 80%; + } + + .mobile-push-80 { + left: 80%; + } + + .mobile-pull-80 { + left: -80%; + } + + .mobile-grid-85 { + float: left; + width: 85%; + } + + .mobile-prefix-85 { + margin-left: 85%; + } + + .mobile-suffix-85 { + margin-right: 85%; + } + + .mobile-push-85 { + left: 85%; + } + + .mobile-pull-85 { + left: -85%; + } + + .mobile-grid-90 { + float: left; + width: 90%; + } + + .mobile-prefix-90 { + margin-left: 90%; + } + + .mobile-suffix-90 { + margin-right: 90%; + } + + .mobile-push-90 { + left: 90%; + } + + .mobile-pull-90 { + left: -90%; + } + + .mobile-grid-95 { + float: left; + width: 95%; + } + + .mobile-prefix-95 { + margin-left: 95%; + } + + .mobile-suffix-95 { + margin-right: 95%; + } + + .mobile-push-95 { + left: 95%; + } + + .mobile-pull-95 { + left: -95%; + } + + .mobile-grid-33 { + float: left; + width: 33.33333%; + } + + .mobile-prefix-33 { + margin-left: 33.33333%; + } + + .mobile-suffix-33 { + margin-right: 33.33333%; + } + + .mobile-push-33 { + left: 33.33333%; + } + + .mobile-pull-33 { + left: -33.33333%; + } + + .mobile-grid-66 { + float: left; + width: 66.66667%; + } + + .mobile-prefix-66 { + margin-left: 66.66667%; + } + + .mobile-suffix-66 { + margin-right: 66.66667%; + } + + .mobile-push-66 { + left: 66.66667%; + } + + .mobile-pull-66 { + left: -66.66667%; + } + + .mobile-grid-100 { + clear: both; + width: 100%; + } +} +@media (min-width: 768px) and (max-width: 1024px) { + [class*="tablet-push-"], + [class*="tablet-pull-"] { + position: relative; + } + + .hide-on-tablet { + display: none !important; + } + + .tablet-grid-5 { + float: left; + width: 5%; + } + + .tablet-prefix-5 { + margin-left: 5%; + } + + .tablet-suffix-5 { + margin-right: 5%; + } + + .tablet-push-5 { + left: 5%; + } + + .tablet-pull-5 { + left: -5%; + } + + .tablet-grid-10 { + float: left; + width: 10%; + } + + .tablet-prefix-10 { + margin-left: 10%; + } + + .tablet-suffix-10 { + margin-right: 10%; + } + + .tablet-push-10 { + left: 10%; + } + + .tablet-pull-10 { + left: -10%; + } + + .tablet-grid-15 { + float: left; + width: 15%; + } + + .tablet-prefix-15 { + margin-left: 15%; + } + + .tablet-suffix-15 { + margin-right: 15%; + } + + .tablet-push-15 { + left: 15%; + } + + .tablet-pull-15 { + left: -15%; + } + + .tablet-grid-20 { + float: left; + width: 20%; + } + + .tablet-prefix-20 { + margin-left: 20%; + } + + .tablet-suffix-20 { + margin-right: 20%; + } + + .tablet-push-20 { + left: 20%; + } + + .tablet-pull-20 { + left: -20%; + } + + .tablet-grid-25 { + float: left; + width: 25%; + } + + .tablet-prefix-25 { + margin-left: 25%; + } + + .tablet-suffix-25 { + margin-right: 25%; + } + + .tablet-push-25 { + left: 25%; + } + + .tablet-pull-25 { + left: -25%; + } + + .tablet-grid-30 { + float: left; + width: 30%; + } + + .tablet-prefix-30 { + margin-left: 30%; + } + + .tablet-suffix-30 { + margin-right: 30%; + } + + .tablet-push-30 { + left: 30%; + } + + .tablet-pull-30 { + left: -30%; + } + + .tablet-grid-35 { + float: left; + width: 35%; + } + + .tablet-prefix-35 { + margin-left: 35%; + } + + .tablet-suffix-35 { + margin-right: 35%; + } + + .tablet-push-35 { + left: 35%; + } + + .tablet-pull-35 { + left: -35%; + } + + .tablet-grid-40 { + float: left; + width: 40%; + } + + .tablet-prefix-40 { + margin-left: 40%; + } + + .tablet-suffix-40 { + margin-right: 40%; + } + + .tablet-push-40 { + left: 40%; + } + + .tablet-pull-40 { + left: -40%; + } + + .tablet-grid-45 { + float: left; + width: 45%; + } + + .tablet-prefix-45 { + margin-left: 45%; + } + + .tablet-suffix-45 { + margin-right: 45%; + } + + .tablet-push-45 { + left: 45%; + } + + .tablet-pull-45 { + left: -45%; + } + + .tablet-grid-50 { + float: left; + width: 50%; + } + + .tablet-prefix-50 { + margin-left: 50%; + } + + .tablet-suffix-50 { + margin-right: 50%; + } + + .tablet-push-50 { + left: 50%; + } + + .tablet-pull-50 { + left: -50%; + } + + .tablet-grid-55 { + float: left; + width: 55%; + } + + .tablet-prefix-55 { + margin-left: 55%; + } + + .tablet-suffix-55 { + margin-right: 55%; + } + + .tablet-push-55 { + left: 55%; + } + + .tablet-pull-55 { + left: -55%; + } + + .tablet-grid-60 { + float: left; + width: 60%; + } + + .tablet-prefix-60 { + margin-left: 60%; + } + + .tablet-suffix-60 { + margin-right: 60%; + } + + .tablet-push-60 { + left: 60%; + } + + .tablet-pull-60 { + left: -60%; + } + + .tablet-grid-65 { + float: left; + width: 65%; + } + + .tablet-prefix-65 { + margin-left: 65%; + } + + .tablet-suffix-65 { + margin-right: 65%; + } + + .tablet-push-65 { + left: 65%; + } + + .tablet-pull-65 { + left: -65%; + } + + .tablet-grid-70 { + float: left; + width: 70%; + } + + .tablet-prefix-70 { + margin-left: 70%; + } + + .tablet-suffix-70 { + margin-right: 70%; + } + + .tablet-push-70 { + left: 70%; + } + + .tablet-pull-70 { + left: -70%; + } + + .tablet-grid-75 { + float: left; + width: 75%; + } + + .tablet-prefix-75 { + margin-left: 75%; + } + + .tablet-suffix-75 { + margin-right: 75%; + } + + .tablet-push-75 { + left: 75%; + } + + .tablet-pull-75 { + left: -75%; + } + + .tablet-grid-80 { + float: left; + width: 80%; + } + + .tablet-prefix-80 { + margin-left: 80%; + } + + .tablet-suffix-80 { + margin-right: 80%; + } + + .tablet-push-80 { + left: 80%; + } + + .tablet-pull-80 { + left: -80%; + } + + .tablet-grid-85 { + float: left; + width: 85%; + } + + .tablet-prefix-85 { + margin-left: 85%; + } + + .tablet-suffix-85 { + margin-right: 85%; + } + + .tablet-push-85 { + left: 85%; + } + + .tablet-pull-85 { + left: -85%; + } + + .tablet-grid-90 { + float: left; + width: 90%; + } + + .tablet-prefix-90 { + margin-left: 90%; + } + + .tablet-suffix-90 { + margin-right: 90%; + } + + .tablet-push-90 { + left: 90%; + } + + .tablet-pull-90 { + left: -90%; + } + + .tablet-grid-95 { + float: left; + width: 95%; + } + + .tablet-prefix-95 { + margin-left: 95%; + } + + .tablet-suffix-95 { + margin-right: 95%; + } + + .tablet-push-95 { + left: 95%; + } + + .tablet-pull-95 { + left: -95%; + } + + .tablet-grid-33 { + float: left; + width: 33.33333%; + } + + .tablet-prefix-33 { + margin-left: 33.33333%; + } + + .tablet-suffix-33 { + margin-right: 33.33333%; + } + + .tablet-push-33 { + left: 33.33333%; + } + + .tablet-pull-33 { + left: -33.33333%; + } + + .tablet-grid-66 { + float: left; + width: 66.66667%; + } + + .tablet-prefix-66 { + margin-left: 66.66667%; + } + + .tablet-suffix-66 { + margin-right: 66.66667%; + } + + .tablet-push-66 { + left: 66.66667%; + } + + .tablet-pull-66 { + left: -66.66667%; + } + + .tablet-grid-100 { + clear: both; + width: 100%; + } + + /* GP specific grid */ + .inside-footer-widgets > div { + margin-bottom: 50px; + } + + .inside-footer-widgets > div:nth-child(odd) { + clear: both; + } + + .active-footer-widgets-1 .footer-widget-1, + .active-footer-widgets-3 .footer-widget-3, + .active-footer-widgets-5 .footer-widget-5 { + width: 100%; + margin-bottom: 0; + } + + .active-footer-widgets-2 .inside-footer-widgets > div, + .active-footer-widgets-4 .footer-widget-3, + .active-footer-widgets-4 .footer-widget-4 { + margin-bottom: 0; + } +} +@media (min-width: 1025px) { + .push-5, .pull-5, .push-10, .pull-10, .push-15, .pull-15, .push-20, .pull-20, .push-25, .pull-25, .push-30, .pull-30, .push-35, .pull-35, .push-40, .pull-40, .push-45, .pull-45, .push-50, .pull-50, .push-55, .pull-55, .push-60, .pull-60, .push-65, .pull-65, .push-70, .pull-70, .push-75, .pull-75, .push-80, .pull-80, .push-85, .pull-85, .push-90, .pull-90, .push-95, .pull-95, .push-33, .pull-33, .push-66, .pull-66 { + position: relative; + } + + .hide-on-desktop { + display: none !important; + } + + .grid-5 { + float: left; + width: 5%; + } + + .prefix-5 { + margin-left: 5%; + } + + .suffix-5 { + margin-right: 5%; + } + + .push-5 { + left: 5%; + } + + .pull-5 { + left: -5%; + } + + .grid-10 { + float: left; + width: 10%; + } + + .prefix-10 { + margin-left: 10%; + } + + .suffix-10 { + margin-right: 10%; + } + + .push-10 { + left: 10%; + } + + .pull-10 { + left: -10%; + } + + .grid-15 { + float: left; + width: 15%; + } + + .prefix-15 { + margin-left: 15%; + } + + .suffix-15 { + margin-right: 15%; + } + + .push-15 { + left: 15%; + } + + .pull-15 { + left: -15%; + } + + .grid-20 { + float: left; + width: 20%; + } + + .prefix-20 { + margin-left: 20%; + } + + .suffix-20 { + margin-right: 20%; + } + + .push-20 { + left: 20%; + } + + .pull-20 { + left: -20%; + } + + .grid-25 { + float: left; + width: 25%; + } + + .prefix-25 { + margin-left: 25%; + } + + .suffix-25 { + margin-right: 25%; + } + + .push-25 { + left: 25%; + } + + .pull-25 { + left: -25%; + } + + .grid-30 { + float: left; + width: 30%; + } + + .prefix-30 { + margin-left: 30%; + } + + .suffix-30 { + margin-right: 30%; + } + + .push-30 { + left: 30%; + } + + .pull-30 { + left: -30%; + } + + .grid-35 { + float: left; + width: 35%; + } + + .prefix-35 { + margin-left: 35%; + } + + .suffix-35 { + margin-right: 35%; + } + + .push-35 { + left: 35%; + } + + .pull-35 { + left: -35%; + } + + .grid-40 { + float: left; + width: 40%; + } + + .prefix-40 { + margin-left: 40%; + } + + .suffix-40 { + margin-right: 40%; + } + + .push-40 { + left: 40%; + } + + .pull-40 { + left: -40%; + } + + .grid-45 { + float: left; + width: 45%; + } + + .prefix-45 { + margin-left: 45%; + } + + .suffix-45 { + margin-right: 45%; + } + + .push-45 { + left: 45%; + } + + .pull-45 { + left: -45%; + } + + .grid-50 { + float: left; + width: 50%; + } + + .prefix-50 { + margin-left: 50%; + } + + .suffix-50 { + margin-right: 50%; + } + + .push-50 { + left: 50%; + } + + .pull-50 { + left: -50%; + } + + .grid-55 { + float: left; + width: 55%; + } + + .prefix-55 { + margin-left: 55%; + } + + .suffix-55 { + margin-right: 55%; + } + + .push-55 { + left: 55%; + } + + .pull-55 { + left: -55%; + } + + .grid-60 { + float: left; + width: 60%; + } + + .prefix-60 { + margin-left: 60%; + } + + .suffix-60 { + margin-right: 60%; + } + + .push-60 { + left: 60%; + } + + .pull-60 { + left: -60%; + } + + .grid-65 { + float: left; + width: 65%; + } + + .prefix-65 { + margin-left: 65%; + } + + .suffix-65 { + margin-right: 65%; + } + + .push-65 { + left: 65%; + } + + .pull-65 { + left: -65%; + } + + .grid-70 { + float: left; + width: 70%; + } + + .prefix-70 { + margin-left: 70%; + } + + .suffix-70 { + margin-right: 70%; + } + + .push-70 { + left: 70%; + } + + .pull-70 { + left: -70%; + } + + .grid-75 { + float: left; + width: 75%; + } + + .prefix-75 { + margin-left: 75%; + } + + .suffix-75 { + margin-right: 75%; + } + + .push-75 { + left: 75%; + } + + .pull-75 { + left: -75%; + } + + .grid-80 { + float: left; + width: 80%; + } + + .prefix-80 { + margin-left: 80%; + } + + .suffix-80 { + margin-right: 80%; + } + + .push-80 { + left: 80%; + } + + .pull-80 { + left: -80%; + } + + .grid-85 { + float: left; + width: 85%; + } + + .prefix-85 { + margin-left: 85%; + } + + .suffix-85 { + margin-right: 85%; + } + + .push-85 { + left: 85%; + } + + .pull-85 { + left: -85%; + } + + .grid-90 { + float: left; + width: 90%; + } + + .prefix-90 { + margin-left: 90%; + } + + .suffix-90 { + margin-right: 90%; + } + + .push-90 { + left: 90%; + } + + .pull-90 { + left: -90%; + } + + .grid-95 { + float: left; + width: 95%; + } + + .prefix-95 { + margin-left: 95%; + } + + .suffix-95 { + margin-right: 95%; + } + + .push-95 { + left: 95%; + } + + .pull-95 { + left: -95%; + } + + .grid-33 { + float: left; + width: 33.33333%; + } + + .prefix-33 { + margin-left: 33.33333%; + } + + .suffix-33 { + margin-right: 33.33333%; + } + + .push-33 { + left: 33.33333%; + } + + .pull-33 { + left: -33.33333%; + } + + .grid-66 { + float: left; + width: 66.66667%; + } + + .prefix-66 { + margin-left: 66.66667%; + } + + .suffix-66 { + margin-right: 66.66667%; + } + + .push-66 { + left: 66.66667%; + } + + .pull-66 { + left: -66.66667%; + } + + .grid-100 { + clear: both; + width: 100%; + } +} \ No newline at end of file diff --git a/wp-themes/generatepress/css/unsemantic-grid.min.css b/wp-themes/generatepress/css/unsemantic-grid.min.css new file mode 100644 index 0000000..703797d --- /dev/null +++ b/wp-themes/generatepress/css/unsemantic-grid.min.css @@ -0,0 +1 @@ +.clear,.clearfix:after,.grid-100:after,.grid-10:after,.grid-15:after,.grid-20:after,.grid-25:after,.grid-30:after,.grid-33:after,.grid-35:after,.grid-40:after,.grid-45:after,.grid-50:after,.grid-55:after,.grid-5:after,.grid-60:after,.grid-65:after,.grid-66:after,.grid-70:after,.grid-75:after,.grid-80:after,.grid-85:after,.grid-90:after,.grid-95:after,.grid-container:after,[class*=mobile-grid-]:after,[class*=tablet-grid-]:after{clear:both}@-ms-viewport{width:auto}.clear{display:block;overflow:hidden;visibility:hidden;width:0;height:0}.clearfix:after,.clearfix:before,.grid-100:after,.grid-100:before,.grid-10:after,.grid-10:before,.grid-15:after,.grid-15:before,.grid-20:after,.grid-20:before,.grid-25:after,.grid-25:before,.grid-30:after,.grid-30:before,.grid-33:after,.grid-33:before,.grid-35:after,.grid-35:before,.grid-40:after,.grid-40:before,.grid-45:after,.grid-45:before,.grid-50:after,.grid-50:before,.grid-55:after,.grid-55:before,.grid-5:after,.grid-5:before,.grid-60:after,.grid-60:before,.grid-65:after,.grid-65:before,.grid-66:after,.grid-66:before,.grid-70:after,.grid-70:before,.grid-75:after,.grid-75:before,.grid-80:after,.grid-80:before,.grid-85:after,.grid-85:before,.grid-90:after,.grid-90:before,.grid-95:after,.grid-95:before,.grid-container:after,.grid-container:before,[class*=mobile-grid-]:after,[class*=mobile-grid-]:before,[class*=tablet-grid-]:after,[class*=tablet-grid-]:before{content:".";display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0}.grid-container{margin-left:auto;margin-right:auto;max-width:1200px;padding-left:10px;padding-right:10px}.grid-10,.grid-100,.grid-15,.grid-20,.grid-25,.grid-30,.grid-33,.grid-35,.grid-40,.grid-45,.grid-5,.grid-50,.grid-55,.grid-60,.grid-65,.grid-66,.grid-70,.grid-75,.grid-80,.grid-85,.grid-90,.grid-95,[class*=mobile-grid-],[class*=tablet-grid-]{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:10px;padding-right:10px}.grid-parent{padding-left:0;padding-right:0}@media (max-width:767px){[class*=mobile-push-],[class*=mobile-pull-]{position:relative}.hide-on-mobile{display:none!important}.mobile-grid-5{float:left;width:5%}.mobile-prefix-5{margin-left:5%}.mobile-suffix-5{margin-right:5%}.mobile-push-5{left:5%}.mobile-pull-5{left:-5%}.mobile-grid-10{float:left;width:10%}.mobile-prefix-10{margin-left:10%}.mobile-suffix-10{margin-right:10%}.mobile-push-10{left:10%}.mobile-pull-10{left:-10%}.mobile-grid-15{float:left;width:15%}.mobile-prefix-15{margin-left:15%}.mobile-suffix-15{margin-right:15%}.mobile-push-15{left:15%}.mobile-pull-15{left:-15%}.mobile-grid-20{float:left;width:20%}.mobile-prefix-20{margin-left:20%}.mobile-suffix-20{margin-right:20%}.mobile-push-20{left:20%}.mobile-pull-20{left:-20%}.mobile-grid-25{float:left;width:25%}.mobile-prefix-25{margin-left:25%}.mobile-suffix-25{margin-right:25%}.mobile-push-25{left:25%}.mobile-pull-25{left:-25%}.mobile-grid-30{float:left;width:30%}.mobile-prefix-30{margin-left:30%}.mobile-suffix-30{margin-right:30%}.mobile-push-30{left:30%}.mobile-pull-30{left:-30%}.mobile-grid-35{float:left;width:35%}.mobile-prefix-35{margin-left:35%}.mobile-suffix-35{margin-right:35%}.mobile-push-35{left:35%}.mobile-pull-35{left:-35%}.mobile-grid-40{float:left;width:40%}.mobile-prefix-40{margin-left:40%}.mobile-suffix-40{margin-right:40%}.mobile-push-40{left:40%}.mobile-pull-40{left:-40%}.mobile-grid-45{float:left;width:45%}.mobile-prefix-45{margin-left:45%}.mobile-suffix-45{margin-right:45%}.mobile-push-45{left:45%}.mobile-pull-45{left:-45%}.mobile-grid-50{float:left;width:50%}.mobile-prefix-50{margin-left:50%}.mobile-suffix-50{margin-right:50%}.mobile-push-50{left:50%}.mobile-pull-50{left:-50%}.mobile-grid-55{float:left;width:55%}.mobile-prefix-55{margin-left:55%}.mobile-suffix-55{margin-right:55%}.mobile-push-55{left:55%}.mobile-pull-55{left:-55%}.mobile-grid-60{float:left;width:60%}.mobile-prefix-60{margin-left:60%}.mobile-suffix-60{margin-right:60%}.mobile-push-60{left:60%}.mobile-pull-60{left:-60%}.mobile-grid-65{float:left;width:65%}.mobile-prefix-65{margin-left:65%}.mobile-suffix-65{margin-right:65%}.mobile-push-65{left:65%}.mobile-pull-65{left:-65%}.mobile-grid-70{float:left;width:70%}.mobile-prefix-70{margin-left:70%}.mobile-suffix-70{margin-right:70%}.mobile-push-70{left:70%}.mobile-pull-70{left:-70%}.mobile-grid-75{float:left;width:75%}.mobile-prefix-75{margin-left:75%}.mobile-suffix-75{margin-right:75%}.mobile-push-75{left:75%}.mobile-pull-75{left:-75%}.mobile-grid-80{float:left;width:80%}.mobile-prefix-80{margin-left:80%}.mobile-suffix-80{margin-right:80%}.mobile-push-80{left:80%}.mobile-pull-80{left:-80%}.mobile-grid-85{float:left;width:85%}.mobile-prefix-85{margin-left:85%}.mobile-suffix-85{margin-right:85%}.mobile-push-85{left:85%}.mobile-pull-85{left:-85%}.mobile-grid-90{float:left;width:90%}.mobile-prefix-90{margin-left:90%}.mobile-suffix-90{margin-right:90%}.mobile-push-90{left:90%}.mobile-pull-90{left:-90%}.mobile-grid-95{float:left;width:95%}.mobile-prefix-95{margin-left:95%}.mobile-suffix-95{margin-right:95%}.mobile-push-95{left:95%}.mobile-pull-95{left:-95%}.mobile-grid-33{float:left;width:33.33333%}.mobile-prefix-33{margin-left:33.33333%}.mobile-suffix-33{margin-right:33.33333%}.mobile-push-33{left:33.33333%}.mobile-pull-33{left:-33.33333%}.mobile-grid-66{float:left;width:66.66667%}.mobile-prefix-66{margin-left:66.66667%}.mobile-suffix-66{margin-right:66.66667%}.mobile-push-66{left:66.66667%}.mobile-pull-66{left:-66.66667%}.mobile-grid-100{clear:both;width:100%}}@media (min-width:768px) and (max-width:1024px){[class*=tablet-push-],[class*=tablet-pull-]{position:relative}.hide-on-tablet{display:none!important}.tablet-grid-5{float:left;width:5%}.tablet-prefix-5{margin-left:5%}.tablet-suffix-5{margin-right:5%}.tablet-push-5{left:5%}.tablet-pull-5{left:-5%}.tablet-grid-10{float:left;width:10%}.tablet-prefix-10{margin-left:10%}.tablet-suffix-10{margin-right:10%}.tablet-push-10{left:10%}.tablet-pull-10{left:-10%}.tablet-grid-15{float:left;width:15%}.tablet-prefix-15{margin-left:15%}.tablet-suffix-15{margin-right:15%}.tablet-push-15{left:15%}.tablet-pull-15{left:-15%}.tablet-grid-20{float:left;width:20%}.tablet-prefix-20{margin-left:20%}.tablet-suffix-20{margin-right:20%}.tablet-push-20{left:20%}.tablet-pull-20{left:-20%}.tablet-grid-25{float:left;width:25%}.tablet-prefix-25{margin-left:25%}.tablet-suffix-25{margin-right:25%}.tablet-push-25{left:25%}.tablet-pull-25{left:-25%}.tablet-grid-30{float:left;width:30%}.tablet-prefix-30{margin-left:30%}.tablet-suffix-30{margin-right:30%}.tablet-push-30{left:30%}.tablet-pull-30{left:-30%}.tablet-grid-35{float:left;width:35%}.tablet-prefix-35{margin-left:35%}.tablet-suffix-35{margin-right:35%}.tablet-push-35{left:35%}.tablet-pull-35{left:-35%}.tablet-grid-40{float:left;width:40%}.tablet-prefix-40{margin-left:40%}.tablet-suffix-40{margin-right:40%}.tablet-push-40{left:40%}.tablet-pull-40{left:-40%}.tablet-grid-45{float:left;width:45%}.tablet-prefix-45{margin-left:45%}.tablet-suffix-45{margin-right:45%}.tablet-push-45{left:45%}.tablet-pull-45{left:-45%}.tablet-grid-50{float:left;width:50%}.tablet-prefix-50{margin-left:50%}.tablet-suffix-50{margin-right:50%}.tablet-push-50{left:50%}.tablet-pull-50{left:-50%}.tablet-grid-55{float:left;width:55%}.tablet-prefix-55{margin-left:55%}.tablet-suffix-55{margin-right:55%}.tablet-push-55{left:55%}.tablet-pull-55{left:-55%}.tablet-grid-60{float:left;width:60%}.tablet-prefix-60{margin-left:60%}.tablet-suffix-60{margin-right:60%}.tablet-push-60{left:60%}.tablet-pull-60{left:-60%}.tablet-grid-65{float:left;width:65%}.tablet-prefix-65{margin-left:65%}.tablet-suffix-65{margin-right:65%}.tablet-push-65{left:65%}.tablet-pull-65{left:-65%}.tablet-grid-70{float:left;width:70%}.tablet-prefix-70{margin-left:70%}.tablet-suffix-70{margin-right:70%}.tablet-push-70{left:70%}.tablet-pull-70{left:-70%}.tablet-grid-75{float:left;width:75%}.tablet-prefix-75{margin-left:75%}.tablet-suffix-75{margin-right:75%}.tablet-push-75{left:75%}.tablet-pull-75{left:-75%}.tablet-grid-80{float:left;width:80%}.tablet-prefix-80{margin-left:80%}.tablet-suffix-80{margin-right:80%}.tablet-push-80{left:80%}.tablet-pull-80{left:-80%}.tablet-grid-85{float:left;width:85%}.tablet-prefix-85{margin-left:85%}.tablet-suffix-85{margin-right:85%}.tablet-push-85{left:85%}.tablet-pull-85{left:-85%}.tablet-grid-90{float:left;width:90%}.tablet-prefix-90{margin-left:90%}.tablet-suffix-90{margin-right:90%}.tablet-push-90{left:90%}.tablet-pull-90{left:-90%}.tablet-grid-95{float:left;width:95%}.tablet-prefix-95{margin-left:95%}.tablet-suffix-95{margin-right:95%}.tablet-push-95{left:95%}.tablet-pull-95{left:-95%}.tablet-grid-33{float:left;width:33.33333%}.tablet-prefix-33{margin-left:33.33333%}.tablet-suffix-33{margin-right:33.33333%}.tablet-push-33{left:33.33333%}.tablet-pull-33{left:-33.33333%}.tablet-grid-66{float:left;width:66.66667%}.tablet-prefix-66{margin-left:66.66667%}.tablet-suffix-66{margin-right:66.66667%}.tablet-push-66{left:66.66667%}.tablet-pull-66{left:-66.66667%}.tablet-grid-100{clear:both;width:100%}.inside-footer-widgets>div{margin-bottom:50px}.inside-footer-widgets>div:nth-child(odd){clear:both}.active-footer-widgets-1 .footer-widget-1,.active-footer-widgets-3 .footer-widget-3,.active-footer-widgets-5 .footer-widget-5{width:100%;margin-bottom:0}.active-footer-widgets-2 .inside-footer-widgets>div,.active-footer-widgets-4 .footer-widget-3,.active-footer-widgets-4 .footer-widget-4{margin-bottom:0}}@media (min-width:1025px){.grid-10,.grid-15,.grid-20,.grid-25,.grid-30,.grid-33,.grid-35,.grid-40,.grid-45,.grid-5,.grid-50,.grid-60,.grid-65,.grid-66,.grid-70,.grid-75,.grid-80,.grid-85,.grid-90,.grid-95{float:left}.pull-10,.pull-15,.pull-20,.pull-25,.pull-30,.pull-33,.pull-35,.pull-40,.pull-45,.pull-5,.pull-50,.pull-55,.pull-60,.pull-65,.pull-66,.pull-70,.pull-75,.pull-80,.pull-85,.pull-90,.pull-95,.push-10,.push-15,.push-20,.push-25,.push-30,.push-33,.push-35,.push-40,.push-45,.push-5,.push-50,.push-55,.push-60,.push-65,.push-66,.push-70,.push-75,.push-80,.push-85,.push-90,.push-95{position:relative}.hide-on-desktop{display:none!important}.grid-5{width:5%}.prefix-5{margin-left:5%}.suffix-5{margin-right:5%}.push-5{left:5%}.pull-5{left:-5%}.grid-10{width:10%}.prefix-10{margin-left:10%}.suffix-10{margin-right:10%}.push-10{left:10%}.pull-10{left:-10%}.grid-15{width:15%}.prefix-15{margin-left:15%}.suffix-15{margin-right:15%}.push-15{left:15%}.pull-15{left:-15%}.grid-20{width:20%}.prefix-20{margin-left:20%}.suffix-20{margin-right:20%}.push-20{left:20%}.pull-20{left:-20%}.grid-25{width:25%}.prefix-25{margin-left:25%}.suffix-25{margin-right:25%}.push-25{left:25%}.pull-25{left:-25%}.grid-30{width:30%}.prefix-30{margin-left:30%}.suffix-30{margin-right:30%}.push-30{left:30%}.pull-30{left:-30%}.grid-35{width:35%}.prefix-35{margin-left:35%}.suffix-35{margin-right:35%}.push-35{left:35%}.pull-35{left:-35%}.grid-40{width:40%}.prefix-40{margin-left:40%}.suffix-40{margin-right:40%}.push-40{left:40%}.pull-40{left:-40%}.grid-45{width:45%}.prefix-45{margin-left:45%}.suffix-45{margin-right:45%}.push-45{left:45%}.pull-45{left:-45%}.grid-50{width:50%}.prefix-50{margin-left:50%}.suffix-50{margin-right:50%}.push-50{left:50%}.pull-50{left:-50%}.grid-55{float:left;width:55%}.prefix-55{margin-left:55%}.suffix-55{margin-right:55%}.push-55{left:55%}.pull-55{left:-55%}.grid-60{width:60%}.prefix-60{margin-left:60%}.suffix-60{margin-right:60%}.push-60{left:60%}.pull-60{left:-60%}.grid-65{width:65%}.prefix-65{margin-left:65%}.suffix-65{margin-right:65%}.push-65{left:65%}.pull-65{left:-65%}.grid-70{width:70%}.prefix-70{margin-left:70%}.suffix-70{margin-right:70%}.push-70{left:70%}.pull-70{left:-70%}.grid-75{width:75%}.prefix-75{margin-left:75%}.suffix-75{margin-right:75%}.push-75{left:75%}.pull-75{left:-75%}.grid-80{width:80%}.prefix-80{margin-left:80%}.suffix-80{margin-right:80%}.push-80{left:80%}.pull-80{left:-80%}.grid-85{width:85%}.prefix-85{margin-left:85%}.suffix-85{margin-right:85%}.push-85{left:85%}.pull-85{left:-85%}.grid-90{width:90%}.prefix-90{margin-left:90%}.suffix-90{margin-right:90%}.push-90{left:90%}.pull-90{left:-90%}.grid-95{width:95%}.prefix-95{margin-left:95%}.suffix-95{margin-right:95%}.push-95{left:95%}.pull-95{left:-95%}.grid-33{width:33.33333%}.prefix-33{margin-left:33.33333%}.suffix-33{margin-right:33.33333%}.push-33{left:33.33333%}.pull-33{left:-33.33333%}.grid-66{width:66.66667%}.prefix-66{margin-left:66.66667%}.suffix-66{margin-right:66.66667%}.push-66{left:66.66667%}.pull-66{left:-66.66667%}.grid-100{clear:both;width:100%}} \ No newline at end of file diff --git a/wp-themes/generatepress/fonts/FontAwesome.otf b/wp-themes/generatepress/fonts/FontAwesome.otf new file mode 100644 index 0000000..401ec0f Binary files /dev/null and b/wp-themes/generatepress/fonts/FontAwesome.otf differ diff --git a/wp-themes/generatepress/fonts/fontawesome-webfont.eot b/wp-themes/generatepress/fonts/fontawesome-webfont.eot new file mode 100644 index 0000000..e9f60ca Binary files /dev/null and b/wp-themes/generatepress/fonts/fontawesome-webfont.eot differ diff --git a/wp-themes/generatepress/fonts/fontawesome-webfont.svg b/wp-themes/generatepress/fonts/fontawesome-webfont.svg new file mode 100644 index 0000000..855c845 --- /dev/null +++ b/wp-themes/generatepress/fonts/fontawesome-webfont.svg @@ -0,0 +1,2671 @@ + + + + +Created by FontForge 20120731 at Mon Oct 24 17:37:40 2016 + By ,,, +Copyright Dave Gandy 2016. All rights reserved. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wp-themes/generatepress/fonts/fontawesome-webfont.ttf b/wp-themes/generatepress/fonts/fontawesome-webfont.ttf new file mode 100644 index 0000000..35acda2 Binary files /dev/null and b/wp-themes/generatepress/fonts/fontawesome-webfont.ttf differ diff --git a/wp-themes/generatepress/fonts/fontawesome-webfont.woff b/wp-themes/generatepress/fonts/fontawesome-webfont.woff new file mode 100644 index 0000000..400014a Binary files /dev/null and b/wp-themes/generatepress/fonts/fontawesome-webfont.woff differ diff --git a/wp-themes/generatepress/fonts/fontawesome-webfont.woff2 b/wp-themes/generatepress/fonts/fontawesome-webfont.woff2 new file mode 100644 index 0000000..4d13fc6 Binary files /dev/null and b/wp-themes/generatepress/fonts/fontawesome-webfont.woff2 differ diff --git a/wp-themes/generatepress/fonts/generatepress.eot b/wp-themes/generatepress/fonts/generatepress.eot new file mode 100644 index 0000000..194bb2e Binary files /dev/null and b/wp-themes/generatepress/fonts/generatepress.eot differ diff --git a/wp-themes/generatepress/fonts/generatepress.svg b/wp-themes/generatepress/fonts/generatepress.svg new file mode 100644 index 0000000..fc31923 --- /dev/null +++ b/wp-themes/generatepress/fonts/generatepress.svg @@ -0,0 +1,20 @@ + + + +Generated by IcoMoon + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/wp-themes/generatepress/fonts/generatepress.ttf b/wp-themes/generatepress/fonts/generatepress.ttf new file mode 100644 index 0000000..1735c3c Binary files /dev/null and b/wp-themes/generatepress/fonts/generatepress.ttf differ diff --git a/wp-themes/generatepress/fonts/generatepress.woff b/wp-themes/generatepress/fonts/generatepress.woff new file mode 100644 index 0000000..546bdaa Binary files /dev/null and b/wp-themes/generatepress/fonts/generatepress.woff differ diff --git a/wp-themes/generatepress/fonts/generatepress.woff2 b/wp-themes/generatepress/fonts/generatepress.woff2 new file mode 100644 index 0000000..49c1459 Binary files /dev/null and b/wp-themes/generatepress/fonts/generatepress.woff2 differ diff --git a/wp-themes/generatepress/footer.php b/wp-themes/generatepress/footer.php new file mode 100644 index 0000000..2193b65 --- /dev/null +++ b/wp-themes/generatepress/footer.php @@ -0,0 +1,65 @@ + + + + + + + +
> + +
+ + + + + diff --git a/wp-themes/generatepress/functions.php b/wp-themes/generatepress/functions.php new file mode 100644 index 0000000..883d1b5 --- /dev/null +++ b/wp-themes/generatepress/functions.php @@ -0,0 +1,94 @@ + 70, + 'width' => 350, + 'flex-height' => true, + 'flex-width' => true, + ) ); + + // Register primary menu. + register_nav_menus( array( + 'primary' => __( 'Primary Menu', 'generatepress' ), + ) ); + + /** + * Set the content width to something large + * We set a more accurate width in generate_smart_content_width() + */ + global $content_width; + if ( ! isset( $content_width ) ) { + $content_width = 1200; /* pixels */ + } + + // This theme styles the visual editor to resemble the theme style. + add_editor_style( 'css/admin/editor-style.css' ); + } +} + +/** + * Get all necessary theme files + */ +require get_template_directory() . '/inc/theme-functions.php'; +require get_template_directory() . '/inc/defaults.php'; +require get_template_directory() . '/inc/class-css.php'; +require get_template_directory() . '/inc/css-output.php'; +require get_template_directory() . '/inc/general.php'; +require get_template_directory() . '/inc/customizer.php'; +require get_template_directory() . '/inc/markup.php'; +require get_template_directory() . '/inc/element-classes.php'; +require get_template_directory() . '/inc/typography.php'; +require get_template_directory() . '/inc/plugin-compat.php'; +require get_template_directory() . '/inc/migrate.php'; +require get_template_directory() . '/inc/deprecated.php'; + +if ( is_admin() ) { + require get_template_directory() . '/inc/meta-box.php'; + require get_template_directory() . '/inc/dashboard.php'; +} + +/** + * Load our theme structure + */ +require get_template_directory() . '/inc/structure/archives.php'; +require get_template_directory() . '/inc/structure/comments.php'; +require get_template_directory() . '/inc/structure/featured-images.php'; +require get_template_directory() . '/inc/structure/footer.php'; +require get_template_directory() . '/inc/structure/header.php'; +require get_template_directory() . '/inc/structure/navigation.php'; +require get_template_directory() . '/inc/structure/post-meta.php'; +require get_template_directory() . '/inc/structure/sidebars.php'; diff --git a/wp-themes/generatepress/header.php b/wp-themes/generatepress/header.php new file mode 100644 index 0000000..17f3441 --- /dev/null +++ b/wp-themes/generatepress/header.php @@ -0,0 +1,61 @@ + +> + + + + + + + + > + + +
+
+ _selector !== '' ) { + $this->add_selector_rules_to_output(); + } + + $this->_selector = $selector; + return $this; + } + + /** + * Adds a css property with value to the css output + * + * @access public + * @since 1.0 + * + * @param string $property - the css property + * @param string $value - the value to be placed with the property + * @param string $og_default - check to see if the value matches the default + * @param string $unit - the unit for the value (px) + * @return $this + */ + public function add_property( $property, $value, $og_default = false, $unit = false ) { + // Add our unit to our value if it exists. + if ( $unit && '' !== $unit ) { + $value = $value . $unit; + if ( '' !== $og_default ) { + $og_default = $og_default . $unit; + } + } + + // If we don't have a value or our value is the same as our og default, bail. + if ( empty( $value ) || $og_default == $value ) { + return false; + } + + $this->_css .= $property . ':' . $value . ';'; + return $this; + } + + /** + * Sets a media query in the class + * + * @since 1.1 + * @param string $value + * @return $this + */ + public function start_media_query( $value ) { + // Add the current rules to the output. + $this->add_selector_rules_to_output(); + + // Add any previous media queries to the output. + if ( ! empty( $this->_media_query ) ) { + $this->add_media_query_rules_to_output(); + } + + // Set the new media query. + $this->_media_query = $value; + return $this; + } + + /** + * Stops using a media query. + * + * @see start_media_query() + * + * @since 1.1 + * @return $this + */ + public function stop_media_query() { + return $this->start_media_query( null ); + } + + /** + * Adds the current media query's rules to the class' output variable + * + * @since 1.1 + * @return $this + */ + private function add_media_query_rules_to_output() { + if ( ! empty( $this->_media_query_output ) ) { + $this->_output .= sprintf( '@media %1$s{%2$s}', $this->_media_query, $this->_media_query_output ); + + // Reset the media query output string. + $this->_media_query_output = ''; + } + + return $this; + } + + /** + * Adds the current selector rules to the output variable + * + * @access private + * @since 1.0 + * + * @return $this + */ + private function add_selector_rules_to_output() { + if ( ! empty( $this->_css ) ) { + $this->_selector_output = $this->_selector; + $selector_output = sprintf( '%1$s{%2$s}', $this->_selector_output, $this->_css ); + + // Add our CSS to the output. + if ( ! empty( $this->_media_query ) ) { + $this->_media_query_output .= $selector_output; + $this->_css = ''; + } else { + $this->_output .= $selector_output; + } + + // Reset the css. + $this->_css = ''; + } + + return $this; + } + + /** + * Returns the minified css in the $_output variable + * + * @access public + * @since 1.0 + * + * @return string + */ + public function css_output() { + // Add current selector's rules to output. + $this->add_selector_rules_to_output(); + + // Output minified css. + return $this->_output; + } + + } +} diff --git a/wp-themes/generatepress/inc/css-output.php b/wp-themes/generatepress/inc/css-output.php new file mode 100644 index 0000000..66d2bd6 --- /dev/null +++ b/wp-themes/generatepress/inc/css-output.php @@ -0,0 +1,786 @@ + section using the Theme Customizer. + * + * @since 0.1 + */ + function generate_base_css() { + // Get our settings + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + + // Initiate our class + $css = new GeneratePress_CSS; + + // Body + $css->set_selector( 'body' ); + $css->add_property( 'background-color', esc_attr( $generate_settings['background_color'] ) ); + $css->add_property( 'color', esc_attr( $generate_settings['text_color'] ) ); + + // Links + $css->set_selector( 'a, a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['link_color'] ) ); + $css->add_property( 'text-decoration', 'none' ); // Temporary until people can get their browser caches cleared + + // Visited links + $css->set_selector( 'a:visited' )->add_property( 'color', esc_attr( $generate_settings['link_color_visited'] ) ); + + // Hover/focused links + $css->set_selector( 'a:hover, a:focus, a:active' ); + $css->add_property( 'color', esc_attr( $generate_settings['link_color_hover'] ) ); + $css->add_property( 'text-decoration', 'none' ); // Temporary until people can get their browser caches cleared + + // Container width + $css->set_selector( 'body .grid-container' )->add_property( 'max-width', absint( $generate_settings['container_width'] ), false, 'px' ); + + // Allow us to hook CSS into our output + do_action( 'generate_base_css', $css ); + + return apply_filters( 'generate_base_css_output', $css->css_output() ); + } +} + +if ( ! function_exists( 'generate_advanced_css' ) ) { + /** + * Generate the CSS in the section using the Theme Customizer. + * + * @since 0.1 + */ + function generate_advanced_css() { + // Get our settings + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_color_defaults() + ); + + // Initiate our CSS class + $css = new GeneratePress_CSS; + + // Top bar + $css->set_selector( '.top-bar' ); + $css->add_property( 'background-color', esc_attr( $generate_settings['top_bar_background_color'] ) ); + $css->add_property( 'color', esc_attr( $generate_settings['top_bar_text_color'] ) ); + + // Top bar link + $css->set_selector( '.top-bar a,.top-bar a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['top_bar_link_color'] ) ); + + // Top bar link hover + $css->set_selector( '.top-bar a:hover' ); + $css->add_property( 'color', esc_attr( $generate_settings['top_bar_link_color_hover'] ) ); + + // Header + $css->set_selector( '.site-header' ); + $css->add_property( 'background-color', esc_attr( $generate_settings['header_background_color'] ) ); + $css->add_property( 'color', esc_attr( $generate_settings['header_text_color'] ) ); + + // Header link + $css->set_selector( '.site-header a,.site-header a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['header_link_color'] ) ); + + // Header link hover + $css->set_selector( '.site-header a:hover' ); + $css->add_property( 'color', esc_attr( $generate_settings['header_link_hover_color'] ) ); + + // Site title + $css->set_selector( '.main-title a,.main-title a:hover,.main-title a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['site_title_color'] ) ); + + // Site description + $css->set_selector( '.site-description' ); + $css->add_property( 'color', esc_attr( $generate_settings['site_tagline_color'] ) ); + + // Navigation background + $css->set_selector( '.main-navigation,.main-navigation ul ul' ); + $css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_color'] ) ); + + // Navigation text + $css->set_selector( '.main-navigation .main-nav ul li a,.menu-toggle' ); + $css->add_property( 'color', esc_attr( $generate_settings['navigation_text_color'] ) ); + + // Navigation background/text on hover + $css->set_selector( '.main-navigation .main-nav ul li:hover > a,.main-navigation .main-nav ul li:focus > a, .main-navigation .main-nav ul li.sfHover > a' ); + $css->add_property( 'color', esc_attr( $generate_settings['navigation_text_hover_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_hover_color'] ) ); + + // Mobile button text + $css->set_selector( 'button.menu-toggle:hover,button.menu-toggle:focus,.main-navigation .mobile-bar-items a,.main-navigation .mobile-bar-items a:hover,.main-navigation .mobile-bar-items a:focus' ); + $css->add_property( 'color', esc_attr( $generate_settings['navigation_text_color'] ) ); + + // Navigation background/text current + $css->set_selector( '.main-navigation .main-nav ul li[class*="current-menu-"] > a' ); + $css->add_property( 'color', esc_attr( $generate_settings['navigation_text_current_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_current_color'] ) ); + + // Navigation background text current text hover + $css->set_selector( '.main-navigation .main-nav ul li[class*="current-menu-"] > a:hover,.main-navigation .main-nav ul li[class*="current-menu-"].sfHover > a' ); + $css->add_property( 'color', esc_attr( $generate_settings['navigation_text_current_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_current_color'] ) ); + + // Navigation search input + $css->set_selector( '.navigation-search input[type="search"],.navigation-search input[type="search"]:active' ); + $css->add_property( 'color', esc_attr( $generate_settings['navigation_background_hover_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_hover_color'] ) ); + + // Navigation search input on focus + $css->set_selector( '.navigation-search input[type="search"]:focus' ); + $css->add_property( 'color', esc_attr( $generate_settings['navigation_text_hover_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['navigation_background_hover_color'] ) ); + + // Sub-navigation background + $css->set_selector( '.main-navigation ul ul' ); + $css->add_property( 'background-color', esc_attr( $generate_settings['subnavigation_background_color'] ) ); + + // Sub-navigation text + $css->set_selector( '.main-navigation .main-nav ul ul li a' ); + $css->add_property( 'color', esc_attr( $generate_settings['subnavigation_text_color'] ) ); + + // Sub-Navigation background/text on hover + $css->set_selector( '.main-navigation .main-nav ul ul li:hover > a,.main-navigation .main-nav ul ul li:focus > a,.main-navigation .main-nav ul ul li.sfHover > a' ); + $css->add_property( 'color', esc_attr( $generate_settings['subnavigation_text_hover_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['subnavigation_background_hover_color'] ) ); + + // Sub-Navigation background / text current + $css->set_selector( '.main-navigation .main-nav ul ul li[class*="current-menu-"] > a' ); + $css->add_property( 'color', esc_attr( $generate_settings['subnavigation_text_current_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['subnavigation_background_current_color'] ) ); + + // Sub-Navigation current background / text current + $css->set_selector( '.main-navigation .main-nav ul ul li[class*="current-menu-"] > a:hover,.main-navigation .main-nav ul ul li[class*="current-menu-"].sfHover > a' ); + $css->add_property( 'color', esc_attr( $generate_settings['subnavigation_text_current_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['subnavigation_background_current_color'] ) ); + + // Content + $css->set_selector( '.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .one-container .container, .separate-containers .paging-navigation, .inside-page-header' ); + $css->add_property( 'color', esc_attr( $generate_settings['content_text_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['content_background_color'] ) ); + + // Content links + $css->set_selector( '.inside-article a,.inside-article a:visited,.paging-navigation a,.paging-navigation a:visited,.comments-area a,.comments-area a:visited,.page-header a,.page-header a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['content_link_color'] ) ); + + // Content links on hover + $css->set_selector( '.inside-article a:hover,.paging-navigation a:hover,.comments-area a:hover,.page-header a:hover' ); + $css->add_property( 'color', esc_attr( $generate_settings['content_link_hover_color'] ) ); + + // Entry header + $css->set_selector( '.entry-header h1,.page-header h1' ); + $css->add_property( 'color', esc_attr( $generate_settings['content_title_color'] ) ); + + // Blog post title + $css->set_selector( '.entry-title a,.entry-title a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['blog_post_title_color'] ) ); + + // Blog post title on hover + $css->set_selector( '.entry-title a:hover' ); + $css->add_property( 'color', esc_attr( $generate_settings['blog_post_title_hover_color'] ) ); + + // Entry meta text + $css->set_selector( '.entry-meta' ); + $css->add_property( 'color', esc_attr( $generate_settings['entry_meta_text_color'] ) ); + + // Entry meta links + $css->set_selector( '.entry-meta a,.entry-meta a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['entry_meta_link_color'] ) ); + + // Entry meta links on hover + $css->set_selector( '.entry-meta a:hover' ); + $css->add_property( 'color', esc_attr( $generate_settings['entry_meta_link_color_hover'] ) ); + + // H1 color + $css->set_selector( 'h1' ); + $css->add_property( 'color', esc_attr( $generate_settings['h1_color'] ) ); + + // H2 color + $css->set_selector( 'h2' ); + $css->add_property( 'color', esc_attr( $generate_settings['h2_color'] ) ); + + // H3 color + $css->set_selector( 'h3' ); + $css->add_property( 'color', esc_attr( $generate_settings['h3_color'] ) ); + + // H4 color + $css->set_selector( 'h4' ); + $css->add_property( 'color', esc_attr( $generate_settings['h4_color'] ) ); + + // H5 color + $css->set_selector( 'h5' ); + $css->add_property( 'color', esc_attr( $generate_settings['h5_color'] ) ); + + // H6 color + $css->set_selector( 'h6' ); + $css->add_property( 'color', esc_attr( $generate_settings['h6_color'] ) ); + + // Sidebar widget + $css->set_selector( '.sidebar .widget' ); + $css->add_property( 'color', esc_attr( $generate_settings['sidebar_widget_text_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['sidebar_widget_background_color'] ) ); + + // Sidebar widget links + $css->set_selector( '.sidebar .widget a,.sidebar .widget a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['sidebar_widget_link_color'] ) ); + + // Sidebar widget links on hover + $css->set_selector( '.sidebar .widget a:hover' ); + $css->add_property( 'color', esc_attr( $generate_settings['sidebar_widget_link_hover_color'] ) ); + + // Sidebar widget title + $css->set_selector( '.sidebar .widget .widget-title' ); + $css->add_property( 'color', esc_attr( $generate_settings['sidebar_widget_title_color'] ) ); + + // Footer widget + $css->set_selector( '.footer-widgets' ); + $css->add_property( 'color', esc_attr( $generate_settings['footer_widget_text_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['footer_widget_background_color'] ) ); + + // Footer widget links + $css->set_selector( '.footer-widgets a,.footer-widgets a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['footer_widget_link_color'] ) ); + + // Footer widget links on hover + $css->set_selector( '.footer-widgets a:hover' ); + $css->add_property( 'color', esc_attr( $generate_settings['footer_widget_link_hover_color'] ) ); + + // Footer widget title + $css->set_selector( '.footer-widgets .widget-title' ); + $css->add_property( 'color', esc_attr( $generate_settings['footer_widget_title_color'] ) ); + + // Footer + $css->set_selector( '.site-info' ); + $css->add_property( 'color', esc_attr( $generate_settings['footer_text_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['footer_background_color'] ) ); + + // Footer links + $css->set_selector( '.site-info a,.site-info a:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['footer_link_color'] ) ); + + // Footer links on hover + $css->set_selector( '.site-info a:hover' ); + $css->add_property( 'color', esc_attr( $generate_settings['footer_link_hover_color'] ) ); + + // Footer bar widget menu + $css->set_selector( '.footer-bar .widget_nav_menu .current-menu-item a' ); + $css->add_property( 'color', esc_attr( $generate_settings['footer_link_hover_color'] ) ); + + // Form input + $css->set_selector( 'input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="tel"],input[type="number"],textarea,select' ); + $css->add_property( 'color', esc_attr( $generate_settings['form_text_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['form_background_color'] ) ); + $css->add_property( 'border-color', esc_attr( $generate_settings['form_border_color'] ) ); + + // Form input on focus + $css->set_selector( 'input[type="text"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="password"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="number"]:focus,textarea:focus,select:focus' ); + $css->add_property( 'color', esc_attr( $generate_settings['form_text_color_focus'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['form_background_color_focus'] ) ); + $css->add_property( 'border-color', esc_attr( $generate_settings['form_border_color_focus'] ) ); + + // Form button + $css->set_selector( 'button,html input[type="button"],input[type="reset"],input[type="submit"],a.button,a.button:visited' ); + $css->add_property( 'color', esc_attr( $generate_settings['form_button_text_color'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['form_button_background_color'] ) ); + + // Form button on hover + $css->set_selector( 'button:hover,html input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover,a.button:hover,button:focus,html input[type="button"]:focus,input[type="reset"]:focus,input[type="submit"]:focus,a.button:focus' ); + $css->add_property( 'color', esc_attr( $generate_settings['form_button_text_color_hover'] ) ); + $css->add_property( 'background-color', esc_attr( $generate_settings['form_button_background_color_hover'] ) ); + + // Back to top button + $css->set_selector( '.generate-back-to-top,.generate-back-to-top:visited' ); + $css->add_property( 'background-color', esc_attr( $generate_settings['back_to_top_background_color'] ) ); + $css->add_property( 'color', esc_attr( $generate_settings['back_to_top_text_color'] ) ); + + $css->set_selector( '.generate-back-to-top:hover,.generate-back-to-top:focus' ); + $css->add_property( 'background-color', esc_attr( $generate_settings['back_to_top_background_color_hover'] ) ); + $css->add_property( 'color', esc_attr( $generate_settings['back_to_top_text_color_hover'] ) ); + + // Allow us to hook CSS into our output + do_action( 'generate_colors_css', $css ); + + // Return our dynamic CSS + return apply_filters( 'generate_colors_css_output', $css->css_output() ); + } +} + +if ( ! function_exists( 'generate_font_css' ) ) { + /** + * Generate the CSS in the section using the Theme Customizer. + * + * @since 0.1 + */ + function generate_font_css() { + + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_default_fonts() + ); + + $og_defaults = generate_get_default_fonts( false ); + + $css = new GeneratePress_CSS; + + // Get our sub-navigation font size + $subnav_font_size = $generate_settings['navigation_font_size'] >= 17 ? $generate_settings['navigation_font_size'] - 3 : $generate_settings['navigation_font_size'] - 1; + + // Create all of our font family entries + $body_family = generate_get_font_family_css( 'font_body', 'generate_settings', generate_get_default_fonts() ); + $top_bar_family = generate_get_font_family_css( 'font_top_bar', 'generate_settings', generate_get_default_fonts() ); + $site_title_family = generate_get_font_family_css( 'font_site_title', 'generate_settings', generate_get_default_fonts() ); + $site_tagline_family = generate_get_font_family_css( 'font_site_tagline', 'generate_settings', generate_get_default_fonts() ); + $navigation_family = generate_get_font_family_css( 'font_navigation', 'generate_settings', generate_get_default_fonts() ); + $widget_family = generate_get_font_family_css( 'font_widget_title', 'generate_settings', generate_get_default_fonts() ); + $h1_family = generate_get_font_family_css( 'font_heading_1', 'generate_settings', generate_get_default_fonts() ); + $h2_family = generate_get_font_family_css( 'font_heading_2', 'generate_settings', generate_get_default_fonts() ); + $h3_family = generate_get_font_family_css( 'font_heading_3', 'generate_settings', generate_get_default_fonts() ); + $h4_family = generate_get_font_family_css( 'font_heading_4', 'generate_settings', generate_get_default_fonts() ); + $h5_family = generate_get_font_family_css( 'font_heading_5', 'generate_settings', generate_get_default_fonts() ); + $h6_family = generate_get_font_family_css( 'font_heading_6', 'generate_settings', generate_get_default_fonts() ); + $footer_family = generate_get_font_family_css( 'font_footer', 'generate_settings', generate_get_default_fonts() ); + $buttons_family = generate_get_font_family_css( 'font_buttons', 'generate_settings', generate_get_default_fonts() ); + + // Body + $css->set_selector( 'body, button, input, select, textarea' ); + $css->add_property( 'font-family', $body_family ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['body_font_weight'] ), $og_defaults['body_font_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['body_font_transform'] ), $og_defaults['body_font_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['body_font_size'] ), $og_defaults['body_font_size'], 'px' ); + + // Line hieght + $css->set_selector( 'body' ); + $css->add_property( 'line-height', floatval( $generate_settings['body_line_height'] ), $og_defaults['body_line_height'] ); + + // Paragraph margin + $css->set_selector( 'p' ); + $css->add_property( 'margin-bottom', floatval( $generate_settings['paragraph_margin'] ), $og_defaults['paragraph_margin'], 'em' ); + + // Top bar + $css->set_selector( '.top-bar' ); + $css->add_property( 'font-family', $og_defaults['font_top_bar'] !== $generate_settings['font_top_bar'] ? $top_bar_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['top_bar_font_weight'] ), $og_defaults['top_bar_font_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['top_bar_font_transform'] ), $og_defaults['top_bar_font_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['top_bar_font_size'] ), absint( $og_defaults['top_bar_font_size'] ), 'px' ); + + // Site title + $css->set_selector( '.main-title' ); + $css->add_property( 'font-family', $og_defaults['font_site_title'] !== $generate_settings['font_site_title'] ? $site_title_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['site_title_font_weight'] ), $og_defaults['site_title_font_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['site_title_font_transform'] ), $og_defaults['site_title_font_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['site_title_font_size'] ), $og_defaults['site_title_font_size'], 'px' ); + + // Site description + $css->set_selector( '.site-description' ); + $css->add_property( 'font-family', $og_defaults['font_site_tagline'] !== $generate_settings['font_site_tagline'] ? $site_tagline_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['site_tagline_font_weight'] ), $og_defaults['site_tagline_font_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['site_tagline_font_transform'] ), $og_defaults['site_tagline_font_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['site_tagline_font_size'] ), $og_defaults['site_tagline_font_size'], 'px' ); + + // Navigation + $css->set_selector( '.main-navigation a, .menu-toggle' ); + $css->add_property( 'font-family', $og_defaults['font_navigation'] !== $generate_settings['font_navigation'] ? $navigation_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['navigation_font_weight'] ), $og_defaults['navigation_font_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['navigation_font_transform'] ), $og_defaults['navigation_font_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['navigation_font_size'] ), $og_defaults['navigation_font_size'], 'px' ); + + // Sub-navigation font size + $css->set_selector( '.main-navigation .main-nav ul ul li a' ); + $css->add_property( 'font-size', absint( $subnav_font_size ), false, 'px' ); + + // Widget title + $css->set_selector( '.widget-title' ); + $css->add_property( 'font-family', $og_defaults['font_widget_title'] !== $generate_settings['font_widget_title'] ? $widget_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['widget_title_font_weight'] ), $og_defaults['widget_title_font_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['widget_title_font_transform'] ), $og_defaults['widget_title_font_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['widget_title_font_size'] ), $og_defaults['widget_title_font_size'], 'px' ); + $css->add_property( 'margin-bottom', absint( $generate_settings['widget_title_separator'] ), absint( $og_defaults['widget_title_separator'] ), 'px' ); + + // Widget font size + $css->set_selector( '.sidebar .widget, .footer-widgets .widget' ); + $css->add_property( 'font-size', absint( $generate_settings['widget_content_font_size'] ), $og_defaults['widget_content_font_size'], 'px' ); + + // Form button + $css->set_selector( 'button:not(.menu-toggle),html input[type="button"],input[type="reset"],input[type="submit"],.button,.button:visited' ); + $css->add_property( 'font-family', $og_defaults['font_buttons'] !== $generate_settings['font_buttons'] ? $buttons_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['buttons_font_weight'] ), $og_defaults['buttons_font_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['buttons_font_transform'] ), $og_defaults['buttons_font_transform'] ); + + if ( '' !== $generate_settings['buttons_font_size'] ) { + $css->add_property( 'font-size', absint( $generate_settings['buttons_font_size'] ), $og_defaults['buttons_font_size'], 'px' ); + } + + // H1 + $css->set_selector( 'h1' ); + $css->add_property( 'font-family', $og_defaults['font_heading_1'] !== $generate_settings['font_heading_1'] ? $h1_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['heading_1_weight'] ), $og_defaults['heading_1_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['heading_1_transform'] ), $og_defaults['heading_1_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['heading_1_font_size'] ), $og_defaults['heading_1_font_size'], 'px' ); + $css->add_property( 'line-height', floatval( $generate_settings['heading_1_line_height'] ), $og_defaults['heading_1_line_height'], 'em' ); + + // H2 + $css->set_selector( 'h2' ); + $css->add_property( 'font-family', $og_defaults['font_heading_2'] !== $generate_settings['font_heading_2'] ? $h2_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['heading_2_weight'] ), $og_defaults['heading_2_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['heading_2_transform'] ), $og_defaults['heading_2_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['heading_2_font_size'] ), $og_defaults['heading_2_font_size'], 'px' ); + $css->add_property( 'line-height', floatval( $generate_settings['heading_2_line_height'] ), $og_defaults['heading_2_line_height'], 'em' ); + + // H3 + $css->set_selector( 'h3' ); + $css->add_property( 'font-family', $og_defaults['font_heading_3'] !== $generate_settings['font_heading_3'] ? $h3_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['heading_3_weight'] ), $og_defaults['heading_3_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['heading_3_transform'] ), $og_defaults['heading_3_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['heading_3_font_size'] ), $og_defaults['heading_3_font_size'], 'px' ); + $css->add_property( 'line-height', floatval( $generate_settings['heading_3_line_height'] ), $og_defaults['heading_3_line_height'], 'em' ); + + // H4 + $css->set_selector( 'h4' ); + $css->add_property( 'font-family', $og_defaults['font_heading_4'] !== $generate_settings['font_heading_4'] ? $h4_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['heading_4_weight'] ), $og_defaults['heading_4_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['heading_4_transform'] ), $og_defaults['heading_4_transform'] ); + + if ( '' !== $generate_settings['heading_4_font_size'] ) { + $css->add_property( 'font-size', absint( $generate_settings['heading_4_font_size'] ), $og_defaults['heading_4_font_size'], 'px' ); + } + + if ( '' !== $generate_settings['heading_4_line_height'] ) { + $css->add_property( 'line-height', floatval( $generate_settings['heading_4_line_height'] ), $og_defaults['heading_4_line_height'], 'em' ); + } + + // H5 + $css->set_selector( 'h5' ); + $css->add_property( 'font-family', $og_defaults['font_heading_5'] !== $generate_settings['font_heading_5'] ? $h5_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['heading_5_weight'] ), $og_defaults['heading_5_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['heading_5_transform'] ), $og_defaults['heading_5_transform'] ); + + if ( '' !== $generate_settings['heading_5_font_size'] ) { + $css->add_property( 'font-size', absint( $generate_settings['heading_5_font_size'] ), $og_defaults['heading_5_font_size'], 'px' ); + } + + if ( '' !== $generate_settings['heading_5_line_height'] ) { + $css->add_property( 'line-height', floatval( $generate_settings['heading_5_line_height'] ), $og_defaults['heading_5_line_height'], 'em' ); + } + + // H6 + $css->set_selector( 'h6' ); + $css->add_property( 'font-family', $og_defaults['font_heading_6'] !== $generate_settings['font_heading_6'] ? $h6_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['heading_6_weight'] ), $og_defaults['heading_6_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['heading_6_transform'] ), $og_defaults['heading_6_transform'] ); + + if ( '' !== $generate_settings['heading_6_font_size'] ) { + $css->add_property( 'font-size', absint( $generate_settings['heading_6_font_size'] ), $og_defaults['heading_6_font_size'], 'px' ); + } + + if ( '' !== $generate_settings['heading_6_line_height'] ) { + $css->add_property( 'line-height', floatval( $generate_settings['heading_6_line_height'] ), $og_defaults['heading_6_line_height'], 'em' ); + } + + // Footer + $css->set_selector( '.site-info' ); + $css->add_property( 'font-family', $og_defaults['font_footer'] !== $generate_settings['font_footer'] ? $footer_family : null ); + $css->add_property( 'font-weight', esc_attr( $generate_settings['footer_weight'] ), $og_defaults['footer_weight'] ); + $css->add_property( 'text-transform', esc_attr( $generate_settings['footer_transform'] ), $og_defaults['footer_transform'] ); + $css->add_property( 'font-size', absint( $generate_settings['footer_font_size'] ), $og_defaults['footer_font_size'], 'px' ); + + // Mobile + $css->start_media_query( apply_filters( 'generate_mobile_media_query', '(max-width:768px)' ) ); + // Site title + $mobile_site_title = ( isset( $generate_settings['mobile_site_title_font_size'] ) ) ? $generate_settings['mobile_site_title_font_size'] : '30'; + $css->set_selector( '.main-title' ); + $css->add_property( 'font-size', absint( $mobile_site_title ), false, 'px' ); + + // H1 + $mobile_h1 = ( isset( $generate_settings['mobile_heading_1_font_size'] ) ) ? $generate_settings['mobile_heading_1_font_size'] : '30'; + $css->set_selector( 'h1' ); + $css->add_property( 'font-size', absint( $mobile_h1 ), false, 'px' ); + + // H2 + $mobile_h2 = ( isset( $generate_settings['mobile_heading_2_font_size'] ) ) ? $generate_settings['mobile_heading_2_font_size'] : '25'; + $css->set_selector( 'h2' ); + $css->add_property( 'font-size', absint( $mobile_h2 ), false, 'px' ); + $css->stop_media_query(); + + // Allow us to hook CSS into our output + do_action( 'generate_typography_css', $css ); + + return apply_filters( 'generate_typography_css_output', $css->css_output() ); + } +} + +if ( ! function_exists( 'generate_spacing_css' ) ) { + /** + * Write our dynamic CSS. + * + * @since 0.1 + */ + function generate_spacing_css() { + $spacing_settings = wp_parse_args( + get_option( 'generate_spacing_settings', array() ), + generate_spacing_get_defaults() + ); + + $og_defaults = generate_spacing_get_defaults( false ); + $sidebar_layout = generate_get_layout(); + + $css = new GeneratePress_CSS; + + // Top bar padding + $css->set_selector( '.inside-top-bar' ); + $css->add_property( 'padding', generate_padding_css( $spacing_settings['top_bar_top'], $spacing_settings['top_bar_right'], $spacing_settings['top_bar_bottom'], $spacing_settings['top_bar_left'] ), generate_padding_css( $og_defaults['top_bar_top'], $og_defaults['top_bar_right'], $og_defaults['top_bar_bottom'], $og_defaults['top_bar_left'] ) ); + + // Header padding + $css->set_selector( '.inside-header' ); + $css->add_property( 'padding', generate_padding_css( $spacing_settings['header_top'], $spacing_settings['header_right'], $spacing_settings['header_bottom'], $spacing_settings['header_left'] ), generate_padding_css( $og_defaults['header_top'], $og_defaults['header_right'], $og_defaults['header_bottom'], $og_defaults['header_left'] ) ); + + // Content padding + $css->set_selector( '.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .separate-containers .paging-navigation, .one-container .site-content, .inside-page-header' ); + $css->add_property( 'padding', generate_padding_css( $spacing_settings['content_top'], $spacing_settings['content_right'], $spacing_settings['content_bottom'], $spacing_settings['content_left'] ), generate_padding_css( $og_defaults['content_top'], $og_defaults['content_right'], $og_defaults['content_bottom'], $og_defaults['content_left'] ) ); + + // Mobile Content padding + $css->start_media_query( apply_filters( 'generate_mobile_media_query', '(max-width:768px)' ) ); + $css->set_selector( '.separate-containers .inside-article, .separate-containers .comments-area, .separate-containers .page-header, .separate-containers .paging-navigation, .one-container .site-content, .inside-page-header' ); + $css->add_property( 'padding', generate_padding_css( $spacing_settings['mobile_content_top'], $spacing_settings['mobile_content_right'], $spacing_settings['mobile_content_bottom'], $spacing_settings['mobile_content_left'] ) ); + $css->stop_media_query(); + + // One container + $css->set_selector( '.one-container.right-sidebar .site-main,.one-container.both-right .site-main' ); + $css->add_property( 'margin-right', absint( $spacing_settings['content_right'] ), absint( $og_defaults['content_right'] ), 'px' ); + + $css->set_selector( '.one-container.left-sidebar .site-main,.one-container.both-left .site-main' ); + $css->add_property( 'margin-left', absint( $spacing_settings['content_left'] ), absint( $og_defaults['content_left'] ), 'px' ); + + $css->set_selector( '.one-container.both-sidebars .site-main' ); + $css->add_property( 'margin', generate_padding_css( '0', $spacing_settings['content_right'], '0', $spacing_settings['content_left'] ), generate_padding_css( '0', $og_defaults['content_right'], '0', $og_defaults['content_left'] ) ); + + // Separate containers + // Container bottom margins + $css->set_selector( '.separate-containers .widget, .separate-containers .site-main > *, .separate-containers .page-header, .widget-area .main-navigation' ); + $css->add_property( 'margin-bottom', absint( $spacing_settings['separator'] ), absint( $og_defaults['separator'] ), 'px' ); + + // Right sidebar + $css->set_selector( '.right-sidebar.separate-containers .site-main' ); + $css->add_property( 'margin', generate_padding_css( $spacing_settings['separator'], $spacing_settings['separator'], $spacing_settings['separator'], '0' ), generate_padding_css( $og_defaults['separator'], $og_defaults['separator'], $og_defaults['separator'], '0' ) ); + + // Left sidebar + $css->set_selector( '.left-sidebar.separate-containers .site-main' ); + $css->add_property( 'margin', generate_padding_css( $spacing_settings['separator'], '0', $spacing_settings['separator'], $spacing_settings['separator'] ), generate_padding_css( $og_defaults['separator'], '0', $og_defaults['separator'], $og_defaults['separator'] ) ); + + // Both sidebars + $css->set_selector( '.both-sidebars.separate-containers .site-main' ); + $css->add_property( 'margin', absint( $spacing_settings['separator'] ), absint( $og_defaults['separator'] ), 'px' ); + + // Both right sidebar content separating space + $css->set_selector( '.both-right.separate-containers .site-main' ); + $css->add_property( 'margin', generate_padding_css( $spacing_settings['separator'], $spacing_settings['separator'], $spacing_settings['separator'], '0' ), generate_padding_css( $og_defaults['separator'], $og_defaults['separator'], $og_defaults['separator'], '0' ) ); + + // Both right sidebar - left sidebar separating space + $css->set_selector( '.both-right.separate-containers .inside-left-sidebar' ); + $css->add_property( 'margin-right', absint( $spacing_settings['separator'] / 2 ), absint( $og_defaults['separator'] / 2 ), 'px' ); + + // Both right sidebar - right sidebar separating space + $css->set_selector( '.both-right.separate-containers .inside-right-sidebar' ); + $css->add_property( 'margin-left', absint( $spacing_settings['separator'] / 2 ), absint( $og_defaults['separator'] / 2 ), 'px' ); + + // Both left sidebar content separating space + $css->set_selector( '.both-left.separate-containers .site-main' ); + $css->add_property( 'margin', generate_padding_css( $spacing_settings['separator'], '0', $spacing_settings['separator'], $spacing_settings['separator'] ), generate_padding_css( $og_defaults['separator'], '0', $og_defaults['separator'], $og_defaults['separator'] ) ); + + // Both left sidebar - left sidebar separating space + $css->set_selector( '.both-left.separate-containers .inside-left-sidebar' ); + $css->add_property( 'margin-right', absint( $spacing_settings['separator'] / 2 ), absint( $og_defaults['separator'] / 2 ), 'px' ); + + // Both left sidebar - right sidebar separating space + $css->set_selector( '.both-left.separate-containers .inside-right-sidebar' ); + $css->add_property( 'margin-left', absint( $spacing_settings['separator'] / 2 ), absint( $og_defaults['separator'] / 2 ), 'px' ); + + // Site main separators + $css->set_selector( '.separate-containers .site-main' ); + $css->add_property( 'margin-top', absint( $spacing_settings['separator'] ), absint( $og_defaults['separator'] ), 'px' ); + $css->add_property( 'margin-bottom', absint( $spacing_settings['separator'] ), absint( $og_defaults['separator'] ), 'px' ); + + // Page header top margin + $css->set_selector( '.separate-containers .page-header-image, .separate-containers .page-header-contained, .separate-containers .page-header-image-single, .separate-containers .page-header-content-single' ); + $css->add_property( 'margin-top', absint( $spacing_settings['separator'] ), absint( $og_defaults['separator'] ), 'px' ); + + // Sidebar separator + $css->set_selector( '.separate-containers .inside-right-sidebar, .separate-containers .inside-left-sidebar' ); + $css->add_property( 'margin-top', absint( $spacing_settings['separator'] ), absint( $og_defaults['separator'] ), 'px' ); + $css->add_property( 'margin-bottom', absint( $spacing_settings['separator'] ), absint( $og_defaults['separator'] ), 'px' ); + + // Navigation spacing + // Menu item size + $css->set_selector( '.main-navigation .main-nav ul li a,.menu-toggle,.main-navigation .mobile-bar-items a' ); + $css->add_property( 'padding-left', absint( $spacing_settings['menu_item'] ), absint( $og_defaults['menu_item'] ), 'px' ); + $css->add_property( 'padding-right', absint( $spacing_settings['menu_item'] ), absint( $og_defaults['menu_item'] ), 'px' ); + $css->add_property( 'line-height', absint( $spacing_settings['menu_item_height'] ), absint( $og_defaults['menu_item_height'] ), 'px' ); + + // Sub-menu item size + $css->set_selector( '.main-navigation .main-nav ul ul li a' ); + $css->add_property( 'padding', generate_padding_css( $spacing_settings['sub_menu_item_height'], $spacing_settings['menu_item'], $spacing_settings['sub_menu_item_height'], $spacing_settings['menu_item'] ), generate_padding_css( $og_defaults['sub_menu_item_height'], $og_defaults['menu_item'], $og_defaults['sub_menu_item_height'], $og_defaults['menu_item'] ) ); + + // Sub-menu positioning + $css->set_selector( '.main-navigation ul ul' ); + $css->add_property( 'top', 'auto' ); // Added for compatibility purposes on 22/12/2016 + + // Navigation search + $css->set_selector( '.navigation-search, .navigation-search input' ); + $css->add_property( 'height', '100%' ); // Added to give browser caches a chance to clear + + // Dropdown arrow spacing + $css->set_selector( '.rtl .menu-item-has-children .dropdown-menu-toggle' ); + $css->add_property( 'padding-left', absint( $spacing_settings['menu_item'] ), false, 'px' ); + + $css->set_selector( '.menu-item-has-children .dropdown-menu-toggle' ); + $css->add_property( 'padding-right', absint( $spacing_settings['menu_item'] ), absint( $og_defaults['menu_item'] ), 'px' ); + + // Sub-menu dropdown arrow spacing + $css->set_selector( '.menu-item-has-children ul .dropdown-menu-toggle' ); + $css->add_property( 'padding-top', absint( $spacing_settings['sub_menu_item_height'] ), absint( $og_defaults['sub_menu_item_height'] ), 'px' ); + $css->add_property( 'padding-bottom', absint( $spacing_settings['sub_menu_item_height'] ), absint( $og_defaults['sub_menu_item_height'] ), 'px' ); + $css->add_property( 'margin-top', '-' . absint( $spacing_settings['sub_menu_item_height'] ), '-' . absint( $og_defaults['sub_menu_item_height'] ), 'px' ); + + // RTL menu item padding + $css->set_selector( '.rtl .main-navigation .main-nav ul li.menu-item-has-children > a' ); + $css->add_property( 'padding-right', absint( $spacing_settings['menu_item'] ), false, 'px' ); + + // Sidebar widget padding + $css->set_selector( '.widget-area .widget' ); + $css->add_property( 'padding', generate_padding_css( $spacing_settings['widget_top'], $spacing_settings['widget_right'], $spacing_settings['widget_bottom'], $spacing_settings['widget_left'] ), generate_padding_css( $og_defaults['widget_top'], $og_defaults['widget_right'], $og_defaults['widget_bottom'], $og_defaults['widget_left'] ) ); + + // Footer widget padding + $css->set_selector( '.footer-widgets' ); + $css->add_property( 'padding', generate_padding_css( $spacing_settings['footer_widget_container_top'], $spacing_settings['footer_widget_container_right'], $spacing_settings['footer_widget_container_bottom'], $spacing_settings['footer_widget_container_left'] ), generate_padding_css( $og_defaults['footer_widget_container_top'], $og_defaults['footer_widget_container_right'], $og_defaults['footer_widget_container_bottom'], $og_defaults['footer_widget_container_left'] ) ); + + // Footer widget separator + $css->set_selector( '.site-footer .footer-widgets-container .inner-padding' ); + $css->add_property( 'padding', generate_padding_css( '0', '0', '0', $spacing_settings['footer_widget_separator'] ), generate_padding_css( '0', '0', '0', $og_defaults['footer_widget_separator'] ) ); + + $css->set_selector( '.site-footer .footer-widgets-container .inside-footer-widgets' ); + $css->add_property( 'margin-left', '-' . absint( $spacing_settings['footer_widget_separator'] ), '-' . absint( $og_defaults['footer_widget_separator'] ), 'px' ); + + // Footer padding + $css->set_selector( '.site-info' ); + $css->add_property( 'padding', generate_padding_css( $spacing_settings['footer_top'], $spacing_settings['footer_right'], $spacing_settings['footer_bottom'], $spacing_settings['footer_left'] ), generate_padding_css( $og_defaults['footer_top'], $og_defaults['footer_right'], $og_defaults['footer_bottom'], $og_defaults['footer_left'] ) ); + + // Add spacing back where dropdown arrow should be + // Old versions of WP don't get nice things + if ( version_compare( $GLOBALS['wp_version'], '4.4', '<' ) ) { + $css->set_selector( '.main-navigation .main-nav ul li.menu-item-has-children>a, .secondary-navigation .main-nav ul li.menu-item-has-children>a' ); + $css->add_property( 'padding-right', absint( $spacing_settings['menu_item'] ), absint( $og_defaults['menu_item'] ), 'px' ); + } + + $output = ''; + // Get color settings + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_color_defaults() + ); + + // Find out if the content background color and sidebar widget background color is the same + $sidebar = strtoupper( $generate_settings['sidebar_widget_background_color'] ); + $content = strtoupper( $generate_settings['content_background_color'] ); + $colors_match = ( ( $sidebar == $content ) || '' == $sidebar ) ? true : false; + + // If they're all 40 (default), remove the padding when one container is set + // This way, the user can still adjust the padding and it will work (unless they want 40px padding) + // We'll also remove the padding if there's no color difference between the widgets and content background color + if ( ( '40' == $spacing_settings['widget_top'] && '40' == $spacing_settings['widget_right'] && '40' == $spacing_settings['widget_bottom'] && '40' == $spacing_settings['widget_left'] ) && $colors_match ) { + $output .= '.one-container .sidebar .widget{padding:0px;}'; + } + + // Allow us to hook CSS into our output + do_action( 'generate_spacing_css', $css ); + + return apply_filters( 'generate_spacing_css_output', $css->css_output() . $output ); + } +} + +/** + * Generates any CSS that can't be cached (can change from page to page). + * + * @since 2.0 + */ +function generate_no_cache_dynamic_css() { + // Initiate our class. + $css = new GeneratePress_CSS; + + // Content margin if there's no title. + if ( ! generate_show_title() ) { + $css->set_selector( '.page .entry-content' )->add_property( 'margin-top', '0px' ); + + if ( is_single() ) { + if ( ! apply_filters( 'generate_post_author', true ) && ! apply_filters( 'generate_post_date', true ) ) { + $css->set_selector( '.single .entry-content' )->add_property( 'margin-top', '0px' ); + } + } + } + + return $css->css_output(); +} + +add_action( 'wp_enqueue_scripts', 'generate_enqueue_dynamic_css', 50 ); +/** + * Enqueue our dynamic CSS. + * + * @since 2.0 + */ +function generate_enqueue_dynamic_css() { + if ( ! get_option( 'generate_dynamic_css_output', false ) || is_customize_preview() || apply_filters( 'generate_dynamic_css_skip_cache', false ) ) { + $css = generate_base_css() . generate_font_css() . generate_advanced_css() . generate_spacing_css(); + } else { + $css = get_option( 'generate_dynamic_css_output' ) . '/* End cached CSS */'; + } + + $css = $css . generate_no_cache_dynamic_css(); + + wp_add_inline_style( 'generate-style', $css ); +} + +add_action( 'init', 'generate_set_dynamic_css_cache' ); +/** + * Sets our dynamic CSS cache if it doesn't exist. + * + * If the theme version changed, bust the cache. + * + * @since 2.0 + */ +function generate_set_dynamic_css_cache() { + if ( apply_filters( 'generate_dynamic_css_skip_cache', false ) ) { + return; + } + + $cached_css = get_option( 'generate_dynamic_css_output', false ); + $cached_version = get_option( 'generate_dynamic_css_cached_version', '' ); + + if ( ! $cached_css || $cached_version !== GENERATE_VERSION ) { + $css = generate_base_css() . generate_font_css() . generate_advanced_css() . generate_spacing_css(); + + update_option( 'generate_dynamic_css_output', $css ); + update_option( 'generate_dynamic_css_cached_version', GENERATE_VERSION ); + } +} + +add_action( 'customize_save_after', 'generate_update_dynamic_css_cache' ); +/** + * Update our CSS cache when done saving Customizer options. + * + * @since 2.0 + */ +function generate_update_dynamic_css_cache() { + if ( apply_filters( 'generate_dynamic_css_skip_cache', false ) ) { + return; + } + + $css = generate_base_css() . generate_font_css() . generate_advanced_css() . generate_spacing_css(); + update_option( 'generate_dynamic_css_output', $css ); +} diff --git a/wp-themes/generatepress/inc/customizer.php b/wp-themes/generatepress/inc/customizer.php new file mode 100644 index 0000000..4f176e3 --- /dev/null +++ b/wp-themes/generatepress/inc/customizer.php @@ -0,0 +1,1118 @@ +get_control( 'blogdescription' ) ) { + $wp_customize->get_control( 'blogdescription' )->priority = 3; + $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; + } + + if ( $wp_customize->get_control( 'blogname' ) ) { + $wp_customize->get_control( 'blogname' )->priority = 1; + $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; + } + + if ( $wp_customize->get_control( 'custom_logo' ) ) { + $wp_customize->get_setting( 'custom_logo' )->transport = 'refresh'; + } + + // Add control types so controls can be built using JS + if ( method_exists( $wp_customize, 'register_control_type' ) ) { + $wp_customize->register_control_type( 'Generate_Customize_Misc_Control' ); + $wp_customize->register_control_type( 'Generate_Range_Slider_Control' ); + } + + // Add upsell section type + if ( method_exists( $wp_customize, 'register_section_type' ) ) { + $wp_customize->register_section_type( 'GeneratePress_Upsell_Section' ); + } + + // Add selective refresh to site title and description + if ( isset( $wp_customize->selective_refresh ) ) { + $wp_customize->selective_refresh->add_partial( 'blogname', array( + 'selector' => '.main-title a', + 'render_callback' => 'generate_customize_partial_blogname', + ) ); + + $wp_customize->selective_refresh->add_partial( 'blogdescription', array( + 'selector' => '.site-description', + 'render_callback' => 'generate_customize_partial_blogdescription', + ) ); + } + + // Add our upsell section + if ( ! defined( 'GP_PREMIUM_VERSION' ) ) { + $wp_customize->add_section( + new GeneratePress_Upsell_Section( $wp_customize, 'generatepress_upsell_section', + array( + 'pro_text' => __( 'Premium Modules Available', 'generatepress' ), + 'pro_url' => generate_get_premium_url( 'https://generatepress.com/premium' ), + 'capability' => 'edit_theme_options', + 'priority' => 0, + 'type' => 'gp-upsell-section', + ) + ) + ); + } + + // Remove title + $wp_customize->add_setting( + 'generate_settings[hide_title]', + array( + 'default' => $defaults['hide_title'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_checkbox', + ) + ); + + $wp_customize->add_control( + 'generate_settings[hide_title]', + array( + 'type' => 'checkbox', + 'label' => __( 'Hide site title', 'generatepress' ), + 'section' => 'title_tagline', + 'priority' => 2, + ) + ); + + // Remove tagline + $wp_customize->add_setting( + 'generate_settings[hide_tagline]', + array( + 'default' => $defaults['hide_tagline'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_checkbox', + ) + ); + + $wp_customize->add_control( + 'generate_settings[hide_tagline]', + array( + 'type' => 'checkbox', + 'label' => __( 'Hide site tagline', 'generatepress' ), + 'section' => 'title_tagline', + 'priority' => 4, + ) + ); + + // Only show this option if we're not using WordPress 4.5 + if ( ! function_exists( 'the_custom_logo' ) ) { + $wp_customize->add_setting( + 'generate_settings[logo]', + array( + 'default' => $defaults['logo'], + 'type' => 'option', + 'sanitize_callback' => 'esc_url_raw', + ) + ); + + $wp_customize->add_control( + new WP_Customize_Image_Control( + $wp_customize, + 'generate_settings[logo]', + array( + 'label' => __( 'Logo', 'generatepress' ), + 'section' => 'title_tagline', + 'settings' => 'generate_settings[logo]', + ) + ) + ); + } + + $wp_customize->add_setting( + 'generate_settings[retina_logo]', + array( + 'default' => $defaults['retina_logo'], + 'type' => 'option', + 'sanitize_callback' => 'esc_url_raw', + ) + ); + + $wp_customize->add_control( + new WP_Customize_Image_Control( + $wp_customize, + 'generate_settings[retina_logo]', + array( + 'label' => __( 'Retina Logo', 'generatepress' ), + 'section' => 'title_tagline', + 'settings' => 'generate_settings[retina_logo]', + 'active_callback' => 'generate_has_custom_logo_callback', + ) + ) + ); + + $wp_customize->add_section( + 'body_section', + array( + 'title' => $wp_customize->get_panel( 'generate_colors_panel' ) ? __( 'Body', 'generatepress' ) : __( 'Colors', 'generatepress' ), + 'capability' => 'edit_theme_options', + 'priority' => 30, + 'panel' => $wp_customize->get_panel( 'generate_colors_panel' ) ? 'generate_colors_panel' : false, + ) + ); + + $wp_customize->add_setting( + 'generate_settings[background_color]', array( + 'default' => $defaults['background_color'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_hex_color', + 'transport' => 'postMessage', + ) + ); + + $wp_customize->add_control( + new WP_Customize_Color_Control( + $wp_customize, + 'generate_settings[background_color]', + array( + 'label' => __( 'Background Color', 'generatepress' ), + 'section' => 'body_section', + 'settings' => 'generate_settings[background_color]', + ) + ) + ); + + $wp_customize->add_setting( + 'generate_settings[text_color]', array( + 'default' => $defaults['text_color'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_hex_color', + 'transport' => 'postMessage', + ) + ); + + $wp_customize->add_control( + new WP_Customize_Color_Control( + $wp_customize, + 'generate_settings[text_color]', + array( + 'label' => __( 'Text Color', 'generatepress' ), + 'section' => 'body_section', + 'settings' => 'generate_settings[text_color]', + ) + ) + ); + + $wp_customize->add_setting( + 'generate_settings[link_color]', array( + 'default' => $defaults['link_color'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_hex_color', + 'transport' => 'postMessage', + ) + ); + + $wp_customize->add_control( + new WP_Customize_Color_Control( + $wp_customize, + 'generate_settings[link_color]', + array( + 'label' => __( 'Link Color', 'generatepress' ), + 'section' => 'body_section', + 'settings' => 'generate_settings[link_color]', + ) + ) + ); + + $wp_customize->add_setting( + 'generate_settings[link_color_hover]', array( + 'default' => $defaults['link_color_hover'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_hex_color', + 'transport' => 'postMessage', + ) + ); + + $wp_customize->add_control( + new WP_Customize_Color_Control( + $wp_customize, + 'generate_settings[link_color_hover]', + array( + 'label' => __( 'Link Color Hover', 'generatepress' ), + 'section' => 'body_section', + 'settings' => 'generate_settings[link_color_hover]', + ) + ) + ); + + $wp_customize->add_setting( + 'generate_settings[link_color_visited]', array( + 'default' => $defaults['link_color_visited'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_hex_color', + 'transport' => 'refresh', + ) + ); + + $wp_customize->add_control( + new WP_Customize_Color_Control( + $wp_customize, + 'generate_settings[link_color_visited]', + array( + 'label' => __( 'Link Color Visited', 'generatepress' ), + 'section' => 'body_section', + 'settings' => 'generate_settings[link_color_visited]', + ) + ) + ); + + if ( ! function_exists( 'generate_colors_customize_register' ) && ! defined( 'GP_PREMIUM_VERSION' ) ) { + $wp_customize->add_control( + new Generate_Customize_Misc_Control( + $wp_customize, + 'colors_get_addon_desc', + array( + 'section' => 'body_section', + 'type' => 'addon', + 'label' => __( 'Learn More', 'generatepress' ), + 'description' => __( 'More options are available for this section in our premium version.', 'generatepress' ), + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-colors/' ), + 'priority' => 30, + 'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname', + ) + ) + ); + } + + if ( class_exists( 'WP_Customize_Panel' ) ) { + if ( ! $wp_customize->get_panel( 'generate_layout_panel' ) ) { + $wp_customize->add_panel( 'generate_layout_panel', array( + 'priority' => 25, + 'title' => __( 'Layout', 'generatepress' ), + ) ); + } + } + + // Add Layout section + $wp_customize->add_section( + 'generate_layout_container', + array( + 'title' => __( 'Container', 'generatepress' ), + 'priority' => 10, + 'panel' => 'generate_layout_panel', + ) + ); + + // Container width + $wp_customize->add_setting( + 'generate_settings[container_width]', + array( + 'default' => $defaults['container_width'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_integer', + 'transport' => 'postMessage', + ) + ); + + $wp_customize->add_control( + new Generate_Range_Slider_Control( + $wp_customize, + 'generate_settings[container_width]', + array( + 'type' => 'generatepress-range-slider', + 'label' => __( 'Container Width', 'generatepress' ), + 'section' => 'generate_layout_container', + 'settings' => array( + 'desktop' => 'generate_settings[container_width]', + ), + 'choices' => array( + 'desktop' => array( + 'min' => 700, + 'max' => 2000, + 'step' => 5, + 'edit' => true, + 'unit' => 'px', + ), + ), + 'priority' => 0, + ) + ) + ); + + // Add Top Bar section + $wp_customize->add_section( + 'generate_top_bar', + array( + 'title' => __( 'Top Bar', 'generatepress' ), + 'priority' => 15, + 'panel' => 'generate_layout_panel', + ) + ); + + // Add Top Bar width + $wp_customize->add_setting( + 'generate_settings[top_bar_width]', + array( + 'default' => $defaults['top_bar_width'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add Top Bar width control + $wp_customize->add_control( + 'generate_settings[top_bar_width]', + array( + 'type' => 'select', + 'label' => __( 'Top Bar Width', 'generatepress' ), + 'section' => 'generate_top_bar', + 'choices' => array( + 'full' => __( 'Full', 'generatepress' ), + 'contained' => __( 'Contained', 'generatepress' ), + ), + 'settings' => 'generate_settings[top_bar_width]', + 'priority' => 5, + 'active_callback' => 'generate_is_top_bar_active', + ) + ); + + // Add Top Bar inner width + $wp_customize->add_setting( + 'generate_settings[top_bar_inner_width]', + array( + 'default' => $defaults['top_bar_inner_width'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add Top Bar width control + $wp_customize->add_control( + 'generate_settings[top_bar_inner_width]', + array( + 'type' => 'select', + 'label' => __( 'Top Bar Inner Width', 'generatepress' ), + 'section' => 'generate_top_bar', + 'choices' => array( + 'full' => __( 'Full', 'generatepress' ), + 'contained' => __( 'Contained', 'generatepress' ), + ), + 'settings' => 'generate_settings[top_bar_inner_width]', + 'priority' => 10, + 'active_callback' => 'generate_is_top_bar_active', + ) + ); + + // Add top bar alignment + $wp_customize->add_setting( + 'generate_settings[top_bar_alignment]', + array( + 'default' => $defaults['top_bar_alignment'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add navigation control + $wp_customize->add_control( + 'generate_settings[top_bar_alignment]', + array( + 'type' => 'select', + 'label' => __( 'Top Bar Alignment', 'generatepress' ), + 'section' => 'generate_top_bar', + 'choices' => array( + 'left' => __( 'Left', 'generatepress' ), + 'center' => __( 'Center', 'generatepress' ), + 'right' => __( 'Right', 'generatepress' ), + ), + 'settings' => 'generate_settings[top_bar_alignment]', + 'priority' => 15, + 'active_callback' => 'generate_is_top_bar_active', + ) + ); + + // Add Header section + $wp_customize->add_section( + 'generate_layout_header', + array( + 'title' => __( 'Header', 'generatepress' ), + 'priority' => 20, + 'panel' => 'generate_layout_panel', + ) + ); + + // Add Header Layout setting + $wp_customize->add_setting( + 'generate_settings[header_layout_setting]', + array( + 'default' => $defaults['header_layout_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add Header Layout control + $wp_customize->add_control( + 'generate_settings[header_layout_setting]', + array( + 'type' => 'select', + 'label' => __( 'Header Width', 'generatepress' ), + 'section' => 'generate_layout_header', + 'choices' => array( + 'fluid-header' => __( 'Full', 'generatepress' ), + 'contained-header' => __( 'Contained', 'generatepress' ), + ), + 'settings' => 'generate_settings[header_layout_setting]', + 'priority' => 5, + ) + ); + + // Add Inside Header Layout setting + $wp_customize->add_setting( + 'generate_settings[header_inner_width]', + array( + 'default' => $defaults['header_inner_width'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add Header Layout control + $wp_customize->add_control( + 'generate_settings[header_inner_width]', + array( + 'type' => 'select', + 'label' => __( 'Inner Header Width', 'generatepress' ), + 'section' => 'generate_layout_header', + 'choices' => array( + 'contained' => __( 'Contained', 'generatepress' ), + 'full-width' => __( 'Full', 'generatepress' ), + ), + 'settings' => 'generate_settings[header_inner_width]', + 'priority' => 6, + ) + ); + + // Add navigation setting + $wp_customize->add_setting( + 'generate_settings[header_alignment_setting]', + array( + 'default' => $defaults['header_alignment_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add navigation control + $wp_customize->add_control( + 'generate_settings[header_alignment_setting]', + array( + 'type' => 'select', + 'label' => __( 'Header Alignment', 'generatepress' ), + 'section' => 'generate_layout_header', + 'choices' => array( + 'left' => __( 'Left', 'generatepress' ), + 'center' => __( 'Center', 'generatepress' ), + 'right' => __( 'Right', 'generatepress' ), + ), + 'settings' => 'generate_settings[header_alignment_setting]', + 'priority' => 10, + ) + ); + + $wp_customize->add_section( + 'generate_layout_navigation', + array( + 'title' => __( 'Primary Navigation', 'generatepress' ), + 'priority' => 30, + 'panel' => 'generate_layout_panel', + ) + ); + + // Add navigation setting + $wp_customize->add_setting( + 'generate_settings[nav_layout_setting]', + array( + 'default' => $defaults['nav_layout_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add navigation control + $wp_customize->add_control( + 'generate_settings[nav_layout_setting]', + array( + 'type' => 'select', + 'label' => __( 'Navigation Width', 'generatepress' ), + 'section' => 'generate_layout_navigation', + 'choices' => array( + 'fluid-nav' => __( 'Full', 'generatepress' ), + 'contained-nav' => __( 'Contained', 'generatepress' ), + ), + 'settings' => 'generate_settings[nav_layout_setting]', + 'priority' => 15, + ) + ); + + // Add navigation setting + $wp_customize->add_setting( + 'generate_settings[nav_inner_width]', + array( + 'default' => $defaults['nav_inner_width'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add navigation control + $wp_customize->add_control( + 'generate_settings[nav_inner_width]', + array( + 'type' => 'select', + 'label' => __( 'Inner Navigation Width', 'generatepress' ), + 'section' => 'generate_layout_navigation', + 'choices' => array( + 'contained' => __( 'Contained', 'generatepress' ), + 'full-width' => __( 'Full', 'generatepress' ), + ), + 'settings' => 'generate_settings[nav_inner_width]', + 'priority' => 16, + ) + ); + + // Add navigation setting + $wp_customize->add_setting( + 'generate_settings[nav_alignment_setting]', + array( + 'default' => $defaults['nav_alignment_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add navigation control + $wp_customize->add_control( + 'generate_settings[nav_alignment_setting]', + array( + 'type' => 'select', + 'label' => __( 'Navigation Alignment', 'generatepress' ), + 'section' => 'generate_layout_navigation', + 'choices' => array( + 'left' => __( 'Left', 'generatepress' ), + 'center' => __( 'Center', 'generatepress' ), + 'right' => __( 'Right', 'generatepress' ), + ), + 'settings' => 'generate_settings[nav_alignment_setting]', + 'priority' => 20, + ) + ); + + // Add navigation setting + $wp_customize->add_setting( + 'generate_settings[nav_position_setting]', + array( + 'default' => $defaults['nav_position_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => ( '' !== generate_get_setting( 'nav_position_setting' ) ) ? 'postMessage' : 'refresh', + ) + ); + + // Add navigation control + $wp_customize->add_control( + 'generate_settings[nav_position_setting]', + array( + 'type' => 'select', + 'label' => __( 'Navigation Location', 'generatepress' ), + 'section' => 'generate_layout_navigation', + 'choices' => array( + 'nav-below-header' => __( 'Below Header', 'generatepress' ), + 'nav-above-header' => __( 'Above Header', 'generatepress' ), + 'nav-float-right' => __( 'Float Right', 'generatepress' ), + 'nav-float-left' => __( 'Float Left', 'generatepress' ), + 'nav-left-sidebar' => __( 'Left Sidebar', 'generatepress' ), + 'nav-right-sidebar' => __( 'Right Sidebar', 'generatepress' ), + '' => __( 'No Navigation', 'generatepress' ), + ), + 'settings' => 'generate_settings[nav_position_setting]', + 'priority' => 22, + ) + ); + + // Add navigation setting + $wp_customize->add_setting( + 'generate_settings[nav_dropdown_type]', + array( + 'default' => $defaults['nav_dropdown_type'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + ) + ); + + // Add navigation control + $wp_customize->add_control( + 'generate_settings[nav_dropdown_type]', + array( + 'type' => 'select', + 'label' => __( 'Navigation Dropdown', 'generatepress' ), + 'section' => 'generate_layout_navigation', + 'choices' => array( + 'hover' => __( 'Hover', 'generatepress' ), + 'click' => __( 'Click - Menu Item', 'generatepress' ), + 'click-arrow' => __( 'Click - Arrow', 'generatepress' ), + ), + 'settings' => 'generate_settings[nav_dropdown_type]', + 'priority' => 22, + ) + ); + + // Add navigation setting + $wp_customize->add_setting( + 'generate_settings[nav_search]', + array( + 'default' => $defaults['nav_search'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + ) + ); + + // Add navigation control + $wp_customize->add_control( + 'generate_settings[nav_search]', + array( + 'type' => 'select', + 'label' => __( 'Navigation Search', 'generatepress' ), + 'section' => 'generate_layout_navigation', + 'choices' => array( + 'enable' => __( 'Enable', 'generatepress' ), + 'disable' => __( 'Disable', 'generatepress' ), + ), + 'settings' => 'generate_settings[nav_search]', + 'priority' => 23, + ) + ); + + // Add content setting + $wp_customize->add_setting( + 'generate_settings[content_layout_setting]', + array( + 'default' => $defaults['content_layout_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add content control + $wp_customize->add_control( + 'generate_settings[content_layout_setting]', + array( + 'type' => 'select', + 'label' => __( 'Content Layout', 'generatepress' ), + 'section' => 'generate_layout_container', + 'choices' => array( + 'separate-containers' => __( 'Separate Containers', 'generatepress' ), + 'one-container' => __( 'One Container', 'generatepress' ), + ), + 'settings' => 'generate_settings[content_layout_setting]', + 'priority' => 25, + ) + ); + + $wp_customize->add_section( + 'generate_layout_sidebars', + array( + 'title' => __( 'Sidebars', 'generatepress' ), + 'priority' => 40, + 'panel' => 'generate_layout_panel', + ) + ); + + // Add Layout setting + $wp_customize->add_setting( + 'generate_settings[layout_setting]', + array( + 'default' => $defaults['layout_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + ) + ); + + // Add Layout control + $wp_customize->add_control( + 'generate_settings[layout_setting]', + array( + 'type' => 'select', + 'label' => __( 'Sidebar Layout', 'generatepress' ), + 'section' => 'generate_layout_sidebars', + 'choices' => array( + 'left-sidebar' => __( 'Sidebar / Content', 'generatepress' ), + 'right-sidebar' => __( 'Content / Sidebar', 'generatepress' ), + 'no-sidebar' => __( 'Content (no sidebars)', 'generatepress' ), + 'both-sidebars' => __( 'Sidebar / Content / Sidebar', 'generatepress' ), + 'both-left' => __( 'Sidebar / Sidebar / Content', 'generatepress' ), + 'both-right' => __( 'Content / Sidebar / Sidebar', 'generatepress' ), + ), + 'settings' => 'generate_settings[layout_setting]', + 'priority' => 30, + ) + ); + + // Add Layout setting + $wp_customize->add_setting( + 'generate_settings[blog_layout_setting]', + array( + 'default' => $defaults['blog_layout_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + ) + ); + + // Add Layout control + $wp_customize->add_control( + 'generate_settings[blog_layout_setting]', + array( + 'type' => 'select', + 'label' => __( 'Blog Sidebar Layout', 'generatepress' ), + 'section' => 'generate_layout_sidebars', + 'choices' => array( + 'left-sidebar' => __( 'Sidebar / Content', 'generatepress' ), + 'right-sidebar' => __( 'Content / Sidebar', 'generatepress' ), + 'no-sidebar' => __( 'Content (no sidebars)', 'generatepress' ), + 'both-sidebars' => __( 'Sidebar / Content / Sidebar', 'generatepress' ), + 'both-left' => __( 'Sidebar / Sidebar / Content', 'generatepress' ), + 'both-right' => __( 'Content / Sidebar / Sidebar', 'generatepress' ), + ), + 'settings' => 'generate_settings[blog_layout_setting]', + 'priority' => 35, + ) + ); + + // Add Layout setting + $wp_customize->add_setting( + 'generate_settings[single_layout_setting]', + array( + 'default' => $defaults['single_layout_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + ) + ); + + // Add Layout control + $wp_customize->add_control( + 'generate_settings[single_layout_setting]', + array( + 'type' => 'select', + 'label' => __( 'Single Post Sidebar Layout', 'generatepress' ), + 'section' => 'generate_layout_sidebars', + 'choices' => array( + 'left-sidebar' => __( 'Sidebar / Content', 'generatepress' ), + 'right-sidebar' => __( 'Content / Sidebar', 'generatepress' ), + 'no-sidebar' => __( 'Content (no sidebars)', 'generatepress' ), + 'both-sidebars' => __( 'Sidebar / Content / Sidebar', 'generatepress' ), + 'both-left' => __( 'Sidebar / Sidebar / Content', 'generatepress' ), + 'both-right' => __( 'Content / Sidebar / Sidebar', 'generatepress' ), + ), + 'settings' => 'generate_settings[single_layout_setting]', + 'priority' => 36, + ) + ); + + $wp_customize->add_section( + 'generate_layout_footer', + array( + 'title' => __( 'Footer', 'generatepress' ), + 'priority' => 50, + 'panel' => 'generate_layout_panel', + ) + ); + + // Add footer setting + $wp_customize->add_setting( + 'generate_settings[footer_layout_setting]', + array( + 'default' => $defaults['footer_layout_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add content control + $wp_customize->add_control( + 'generate_settings[footer_layout_setting]', + array( + 'type' => 'select', + 'label' => __( 'Footer Width', 'generatepress' ), + 'section' => 'generate_layout_footer', + 'choices' => array( + 'fluid-footer' => __( 'Full', 'generatepress' ), + 'contained-footer' => __( 'Contained', 'generatepress' ), + ), + 'settings' => 'generate_settings[footer_layout_setting]', + 'priority' => 40, + ) + ); + + // Add footer setting + $wp_customize->add_setting( + 'generate_settings[footer_inner_width]', + array( + 'default' => $defaults['footer_inner_width'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add content control + $wp_customize->add_control( + 'generate_settings[footer_inner_width]', + array( + 'type' => 'select', + 'label' => __( 'Inner Footer Width', 'generatepress' ), + 'section' => 'generate_layout_footer', + 'choices' => array( + 'contained' => __( 'Contained', 'generatepress' ), + 'full-width' => __( 'Full', 'generatepress' ), + ), + 'settings' => 'generate_settings[footer_inner_width]', + 'priority' => 41, + ) + ); + + // Add footer widget setting + $wp_customize->add_setting( + 'generate_settings[footer_widget_setting]', + array( + 'default' => $defaults['footer_widget_setting'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + ) + ); + + // Add footer widget control + $wp_customize->add_control( + 'generate_settings[footer_widget_setting]', + array( + 'type' => 'select', + 'label' => __( 'Footer Widgets', 'generatepress' ), + 'section' => 'generate_layout_footer', + 'choices' => array( + '0' => '0', + '1' => '1', + '2' => '2', + '3' => '3', + '4' => '4', + '5' => '5', + ), + 'settings' => 'generate_settings[footer_widget_setting]', + 'priority' => 45, + ) + ); + + // Add footer widget setting + $wp_customize->add_setting( + 'generate_settings[footer_bar_alignment]', + array( + 'default' => $defaults['footer_bar_alignment'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + 'transport' => 'postMessage', + ) + ); + + // Add footer widget control + $wp_customize->add_control( + 'generate_settings[footer_bar_alignment]', + array( + 'type' => 'select', + 'label' => __( 'Footer Bar Alignment', 'generatepress' ), + 'section' => 'generate_layout_footer', + 'choices' => array( + 'left' => __( 'Left','generatepress' ), + 'center' => __( 'Center','generatepress' ), + 'right' => __( 'Right','generatepress' ), + ), + 'settings' => 'generate_settings[footer_bar_alignment]', + 'priority' => 47, + 'active_callback' => 'generate_is_footer_bar_active', + ) + ); + + // Add back to top setting + $wp_customize->add_setting( + 'generate_settings[back_to_top]', + array( + 'default' => $defaults['back_to_top'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_choices', + ) + ); + + // Add content control + $wp_customize->add_control( + 'generate_settings[back_to_top]', + array( + 'type' => 'select', + 'label' => __( 'Back to Top Button', 'generatepress' ), + 'section' => 'generate_layout_footer', + 'choices' => array( + 'enable' => __( 'Enable', 'generatepress' ), + '' => __( 'Disable', 'generatepress' ), + ), + 'settings' => 'generate_settings[back_to_top]', + 'priority' => 50, + ) + ); + + // Add Layout section + $wp_customize->add_section( + 'generate_blog_section', + array( + 'title' => __( 'Blog', 'generatepress' ), + 'priority' => 55, + 'panel' => 'generate_layout_panel', + ) + ); + + // Add Layout setting + $wp_customize->add_setting( + 'generate_settings[post_content]', + array( + 'default' => $defaults['post_content'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_blog_excerpt', + ) + ); + + // Add Layout control + $wp_customize->add_control( + 'blog_content_control', + array( + 'type' => 'select', + 'label' => __( 'Content Type', 'generatepress' ), + 'section' => 'generate_blog_section', + 'choices' => array( + 'full' => __( 'Full', 'generatepress' ), + 'excerpt' => __( 'Excerpt', 'generatepress' ), + ), + 'settings' => 'generate_settings[post_content]', + 'priority' => 10, + ) + ); + + if ( ! function_exists( 'generate_blog_customize_register' ) && ! defined( 'GP_PREMIUM_VERSION' ) ) { + $wp_customize->add_control( + new Generate_Customize_Misc_Control( + $wp_customize, + 'blog_get_addon_desc', + array( + 'section' => 'generate_blog_section', + 'type' => 'addon', + 'label' => __( 'Learn more', 'generatepress' ), + 'description' => __( 'More options are available for this section in our premium version.', 'generatepress' ), + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-blog/' ), + 'priority' => 30, + 'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname', + ) + ) + ); + } + + // Add Performance section + $wp_customize->add_section( + 'generate_general_section', + array( + 'title' => __( 'General', 'generatepress' ), + 'priority' => 99, + ) + ); + + if ( ! apply_filters( 'generate_fontawesome_essentials', false ) ) { + $wp_customize->add_setting( + 'generate_settings[font_awesome_essentials]', + array( + 'default' => $defaults['font_awesome_essentials'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_checkbox', + ) + ); + + $wp_customize->add_control( + 'generate_settings[font_awesome_essentials]', + array( + 'type' => 'checkbox', + 'label' => __( 'Load essential icons only', 'generatepress' ), + 'description' => __( 'Load essential Font Awesome icons instead of the full library.', 'generatepress' ), + 'section' => 'generate_general_section', + 'settings' => 'generate_settings[font_awesome_essentials]', + ) + ); + } + + $wp_customize->add_setting( + 'generate_settings[dynamic_css_cache]', + array( + 'default' => $defaults['dynamic_css_cache'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_checkbox', + ) + ); + + $wp_customize->add_control( + 'generate_settings[dynamic_css_cache]', + array( + 'type' => 'checkbox', + 'label' => __( 'Cache dynamic CSS', 'generatepress' ), + 'description' => __( 'Cache CSS generated by your options to boost performance.', 'generatepress' ), + 'section' => 'generate_general_section', + ) + ); + } +} + +if ( ! function_exists( 'generate_customizer_live_preview' ) ) { + add_action( 'customize_preview_init', 'generate_customizer_live_preview', 100 ); + /** + * Add our live preview scripts + * + * @since 0.1 + */ + function generate_customizer_live_preview() { + wp_enqueue_script( 'generate-themecustomizer', trailingslashit( get_template_directory_uri() ) . 'inc/customizer/controls/js/customizer-live-preview.js', array( 'customize-preview' ), GENERATE_VERSION, true ); + } +} diff --git a/wp-themes/generatepress/inc/customizer/controls/class-deprecated.php b/wp-themes/generatepress/inc/customizer/controls/class-deprecated.php new file mode 100644 index 0000000..28b474b --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/class-deprecated.php @@ -0,0 +1,230 @@ + wp_create_nonce( 'gp_customize_nonce' ) ) ); + } + + public function to_json() { + parent::to_json(); + + $number_of_fonts = apply_filters( 'generate_number_of_fonts', 200 ); + $this->json['link'] = $this->get_link(); + $this->json['value'] = $this->value(); + $this->json['default_fonts_title'] = __( 'Default fonts', 'generatepress' ); + $this->json['google_fonts_title'] = __( 'Google fonts', 'generatepress' ); + $this->json['description'] = __( 'Font family','generatepress' ); + $this->json['google_fonts'] = apply_filters( 'generate_typography_customize_list', generate_get_all_google_fonts( $number_of_fonts ) ); + $this->json['default_fonts'] = generate_typography_default_fonts(); + } + + public function content_template() { + ?> + + choices as $name => $choice ) { + $this->choices[ $name ] = $choice; + } + + $this->json['choices'] = $this->choices; + $this->json['link'] = $this->get_link(); + $this->json['value'] = $this->value(); + + } + + public function content_template() { + ?> + <# if ( ! data.choices ) + return; + #> + + json['link'] = $this->get_link(); + $this->json['value'] = $this->value(); + $this->json['id'] = $this->id; + } + + public function content_template() { + ?> + + + + + + json['choices'][ $device ]['min'] = ( isset( $this->choices[ $device ]['min'] ) ) ? $this->choices[ $device ]['min'] : '0'; + $this->json['choices'][ $device ]['max'] = ( isset( $this->choices[ $device ]['max'] ) ) ? $this->choices[ $device ]['max'] : '100'; + $this->json['choices'][ $device ]['step'] = ( isset( $this->choices[ $device ]['step'] ) ) ? $this->choices[ $device ]['step'] : '1'; + $this->json['choices'][ $device ]['edit'] = ( isset( $this->choices[ $device ]['edit'] ) ) ? $this->choices[ $device ]['edit'] : false; + $this->json['choices'][ $device ]['unit'] = ( isset( $this->choices[ $device ]['unit'] ) ) ? $this->choices[ $device ]['unit'] : false; + } + + foreach ( $this->settings as $setting_key => $setting_id ) { + $this->json[ $setting_key ] = array( + 'link' => $this->get_link( $setting_key ), + 'value' => $this->value( $setting_key ), + 'default' => isset( $setting_id->default ) ? $setting_id->default : '', + ); + } + + $this->json['desktop_label'] = __( 'Desktop','generatepress' ); + $this->json['tablet_label'] = __( 'Tablet','generatepress' ); + $this->json['mobile_label'] = __( 'Mobile','generatepress' ); + $this->json['reset_label'] = __( 'Reset','generatepress' ); + + $this->json['description'] = $this->description; + } + + /** + * Enqueue control related scripts/styles. + * + * @access public + */ + public function enqueue() { + wp_enqueue_script( 'generatepress-range-slider', trailingslashit( get_template_directory_uri() ) . 'inc/customizer/controls/js/slider-control.js', array( 'jquery', 'customize-base', 'jquery-ui-slider' ), false, true ); + wp_enqueue_style( 'generatepress-range-slider-css', trailingslashit( get_template_directory_uri() ) . 'inc/customizer/controls/css/slider-customizer.css', null ); + } + + /** + * An Underscore (JS) template for this control's content (but not its container). + * + * Class variables for this control class are available in the `data` JS object; + * export custom variables by overriding {@see WP_Customize_Control::to_json()}. + * + * @see WP_Customize_Control::print_template() + * + * @access protected + */ + protected function content_template() { + ?> +
+
+ <# if ( data.label || data.description ) { #> +
+ <# if ( data.label ) { #> + {{{ data.label }}} + <# } #> + + <# if ( data.description ) { #> +

{{{ data.description }}}

+ <# } #> +
+ <# } #> + +
+ + <# if ( 'undefined' !== typeof ( data.desktop ) ) { #> + + <# } #> + + <# if ( 'undefined' !== typeof (data.tablet) ) { #> + + <# } #> + + <# if ( 'undefined' !== typeof (data.mobile) ) { #> + + <# } #> + + + +
+
+ +
+ <# if ( 'undefined' !== typeof ( data.desktop ) ) { #> + + <# } #> + + <# if ( 'undefined' !== typeof ( data.tablet ) ) { #> + + <# } #> + + <# if ( 'undefined' !== typeof ( data.mobile ) ) { #> + + <# } #> +
+
+ json['default_fonts_title'] = __( 'System fonts', 'generatepress' ); + $this->json['google_fonts_title'] = __( 'Google fonts', 'generatepress' ); + $this->json['google_fonts'] = apply_filters( 'generate_typography_customize_list', generate_get_all_google_fonts( $number_of_fonts ) ); + $this->json['default_fonts'] = generate_typography_default_fonts(); + $this->json['family_title'] = esc_html__( 'Font family', 'generatepress' ); + $this->json['weight_title'] = esc_html__( 'Font weight', 'generatepress' ); + $this->json['transform_title'] = esc_html__( 'Text transform', 'generatepress' ); + $this->json['category_title'] = ''; + $this->json['variant_title'] = esc_html__( 'Variants', 'generatepress' ); + + foreach ( $this->settings as $setting_key => $setting_id ) { + $this->json[ $setting_key ] = array( + 'link' => $this->get_link( $setting_key ), + 'value' => $this->value( $setting_key ), + 'default' => isset( $setting_id->default ) ? $setting_id->default : '', + 'id' => isset( $setting_id->id ) ? $setting_id->id : '' + ); + + if ( 'weight' === $setting_key ) { + $this->json[ $setting_key ]['choices'] = $this->get_font_weight_choices(); + } + + if ( 'transform' === $setting_key ) { + $this->json[ $setting_key ]['choices'] = $this->get_font_transform_choices(); + } + } + } + + public function content_template() { + ?> + <# if ( '' !== data.label ) { #> + {{ data.label }} + <# } #> + <# if ( 'undefined' !== typeof ( data.family ) ) { #> +
+ +
+ <# } #> + + <# if ( 'undefined' !== typeof ( data.variant ) ) { #> + <# + var id = data.family.value.split(' ').join('_').toLowerCase(); + var font_data = data.google_fonts[id]; + var variants = ''; + if ( typeof font_data !== 'undefined' ) { + variants = font_data.variants; + } + + if ( null === data.variant.value ) { + data.variant.value = data.variant.default; + } + #> +
+ +
+ <# } #> + + <# if ( 'undefined' !== typeof ( data.category ) ) { #> +
+ +
+ <# } #> + + <# if ( 'undefined' !== typeof ( data.weight ) ) { #> +
+ +
+ <# } #> + + <# if ( 'undefined' !== typeof ( data.transform ) ) { #> +
+ +
+ <# } #> + esc_html( 'normal' ), + 'bold' => esc_html( 'bold' ), + '100' => esc_html( '100' ), + '200' => esc_html( '200' ), + '300' => esc_html( '300' ), + '400' => esc_html( '400' ), + '500' => esc_html( '500' ), + '600' => esc_html( '600' ), + '700' => esc_html( '700' ), + '800' => esc_html( '800' ), + '900' => esc_html( '900' ), + ); + } + + public function get_font_transform_choices() { + return array( + 'none' => esc_html( 'none' ), + 'capitalize' => esc_html( 'capitalize' ), + 'uppercase' => esc_html( 'uppercase' ), + 'lowercase' => esc_html( 'lowercase' ), + ); + } + } +} diff --git a/wp-themes/generatepress/inc/customizer/controls/class-upsell-control.php b/wp-themes/generatepress/inc/customizer/controls/class-upsell-control.php new file mode 100644 index 0000000..f017bcc --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/class-upsell-control.php @@ -0,0 +1,43 @@ +json['url'] = esc_url( $this->url ); + } + + public function content_template() { + ?> +

{{{ data.description }}}

+ + {{ data.label }} + + pro_text; + $json['pro_url'] = esc_url( $this->pro_url ); + $json['id'] = $this->id; + return $json; + } + + protected function render_template() { + ?> +
  • +

    {{ data.pro_text }}

    +
  • + .select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[data-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[data-selected]{background-color:#5897fb;color:white}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top, #fff 50%, #eee 100%);background-image:-o-linear-gradient(top, #fff 50%, #eee 100%);background-image:linear-gradient(to bottom, #fff 50%, #eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:bold;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top, #eee 50%, #ccc 100%);background-image:-o-linear-gradient(top, #eee 50%, #ccc 100%);background-image:linear-gradient(to bottom, #eee 50%, #ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent transparent;border-style:solid;border-width:5px 4px 0 4px;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:0;border-top-left-radius:4px;border-bottom-left-radius:4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:transparent;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888 transparent;border-width:0 4px 5px 4px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top, #fff 0%, #eee 50%);background-image:-o-linear-gradient(top, #fff 0%, #eee 50%);background-image:linear-gradient(to bottom, #fff 0%, #eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top, #eee 50%, #fff 100%);background-image:-o-linear-gradient(top, #eee 50%, #fff 100%);background-image:linear-gradient(to bottom, #eee 50%, #fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:white;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:bold;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{float:right}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[data-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb} diff --git a/wp-themes/generatepress/inc/customizer/controls/css/slider-customizer.css b/wp-themes/generatepress/inc/customizer/controls/css/slider-customizer.css new file mode 100644 index 0000000..ced3660 --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/css/slider-customizer.css @@ -0,0 +1,136 @@ +.customize-control-generatepress-range-slider .generatepress-slider { + display: inline-block; + position: relative; + width: calc(100% - 60px); + height: 6px; + margin-top: 12px; + background-color: rgba(0,0,0,.10); + cursor: pointer; + -webkit-transition: background .5s; + -moz-transition: background .5s; + transition: background .5s; +} + +.customize-control-generatepress-range-slider .has-unit .generatepress-slider { + width: calc(100% - 90px); +} + +.customize-control-generatepress-range-slider .gp_range_value.hide-value { + display: none; +} + +.customize-control-generatepress-range-slider .gp_range_value.hide-value + .generatepress-slider { + width: 100%; +} + +.customize-control-generatepress-range-slider .generatepress-slider .ui-slider-handle { + height: 16px; + width: 16px; + background-color: #3498D9; + display: inline-block; + position: absolute; + top: 50%; + -webkit-transform: translateY(-50%) translateX(-4px); + transform: translateY(-50%) translateX(-4px); + border-radius: 50%; + cursor: pointer; +} + +.customize-control-generatepress-range-slider .gp_range_value .unit { + width: 30px; + display:inline-block; +} + +.customize-control-generatepress-range-slider .gp_range_value { + display: inline-block; + font-size: 14px; + padding: 0; + font-weight: 400; + float: right; + width: 50px; +} + +.customize-control-generatepress-range-slider .has-unit .gp_range_value { + width: 80px; +} + +.customize-control-generatepress-range-slider .gp_range_value span.value { + font-size: 12px; + width: calc(100% - 2px); + text-align: center; + height: 22px; + background: #FFF; + line-height: 22px; + border: 1px solid #DDD; +} + +.customize-control-generatepress-range-slider .has-unit .gp_range_value span.value { + width: calc(100% - 32px); + float: left; + display: block; +} + +.customize-control-generatepress-range-slider .gp_range_value .unit { + width: 29px; + display: block; + float: left; + background: #FFF; + height: 22px; + border-top: 1px solid #DDD; + border-bottom: 1px solid #DDD; + border-right: 1px solid #DDD; + text-align: center; + text-transform: uppercase; + font-size: 10px; + line-height: 22px; +} + +.customize-control-generatepress-range-slider .generatepress-range-slider-reset span { + font-size: 16px; + line-height: 22px; +} + +.customize-control-generatepress-range-slider .gp_range_value input { + font-size: 12px; + padding: 0px; + text-align: center; + height: 24px; +} + +.customize-control-generatepress-range-slider .has-unit .gp_range_value input { + width: calc(100% - 30px); + float: left; +} + +.customize-control-generatepress-range-slider .gp-range-title-info { + display: inline-block; +} + +.customize-control-generatepress-range-slider .gp-range-title-area .dashicons { + cursor: pointer; + font-size: 11px; + width: 20px; + height: 20px; + line-height: 20px; + color: #222; + text-align: center; + position: relative; + top: 2px; +} + +.customize-control-generatepress-range-slider .gp-range-title-area .dashicons:hover { + background: #fafafa; +} + +.customize-control-generatepress-range-slider .gp-range-title-area .dashicons.selected { + background: #fff; + color: #222; +} + +.customize-control-generatepress-range-slider .gp-range-slider-controls { + float:right; +} + +.customize-control-generatepress-range-slider .gp-device-controls > span:first-child:last-child { + display: none; +} \ No newline at end of file diff --git a/wp-themes/generatepress/inc/customizer/controls/css/typography-customizer.css b/wp-themes/generatepress/inc/customizer/controls/css/typography-customizer.css new file mode 100644 index 0000000..359af65 --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/css/typography-customizer.css @@ -0,0 +1,33 @@ +.generatepress-font-weight, +.generatepress-font-transform { + float: left; + width: 50% +} + +.generatepress-font-weight select { + border-right: 0; +} + +span.select2-container.select2-container--default.select2-container--open li.select2-results__option { + margin:0; +} + +span.select2-container.select2-container--default.select2-container--open{ + z-index:999999; +} + +.select2-selection__rendered li { + margin-bottom: 0; +} + +.select2-container--default .select2-selection--single, +.select2-container--default.select2-container .select2-selection--multiple, +.select2-dropdown, +.select2-container--default .select2-selection--multiple .select2-selection__choice { + border-color: #ddd; + border-radius: 0; +} + +.select2-container--default .select2-results__option[aria-selected=true] { + color: rgba(0,0,0,0.4); +} \ No newline at end of file diff --git a/wp-themes/generatepress/inc/customizer/controls/css/upsell-customizer.css b/wp-themes/generatepress/inc/customizer/controls/css/upsell-customizer.css new file mode 100644 index 0000000..b5707d7 --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/css/upsell-customizer.css @@ -0,0 +1,54 @@ +.customize-control-addon:before { + content: ""; + height: 1px; + width: 50px; + background: rgba(0,0,0,.10); + display: block; + margin-bottom: 10px; +} + +.customize-control-addon { + margin-top: 10px; +} + +li#accordion-section-generatepress_upsell_section { + border-top: 1px solid #D54E21; + border-bottom: 1px solid #D54E21; +} +.generate-upsell-accordion-section a { + background: #FFF; + display: block; + padding: 10px 10px 11px 14px; + line-height: 21px; + color: #D54E21; + text-decoration: none; +} + +.generate-upsell-accordion-section a:hover { + background:#FAFAFA; +} + +.generate-upsell-accordion-section h3 { + margin: 0; + position: relative; +} + +.generate-upsell-accordion-section h3 a:after { + content: "\f345"; + color: #D54E21; + position: absolute; + top: 11px; + right: 10px; + z-index: 1; + float: right; + border: none; + background: none; + font: normal 20px/1 dashicons; + speak: none; + display: block; + padding: 0; + text-indent: 0; + text-align: center; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} \ No newline at end of file diff --git a/wp-themes/generatepress/inc/customizer/controls/js/customizer-live-preview.js b/wp-themes/generatepress/inc/customizer/controls/js/customizer-live-preview.js new file mode 100644 index 0000000..fe47ee7 --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/js/customizer-live-preview.js @@ -0,0 +1,382 @@ +/** + * Theme Customizer enhancements for a better user experience. + * + * Contains handlers to make Theme Customizer preview reload changes asynchronously. + */ +function generatepress_colors_live_update( id, selector, property, default_value ) { + default_value = typeof default_value !== 'undefined' ? default_value : 'initial'; + wp.customize( 'generate_settings[' + id + ']', function( value ) { + value.bind( function( newval ) { + newval = ( '' !== newval ) ? newval : default_value; + if ( jQuery( 'style#' + id ).length ) { + jQuery( 'style#' + id ).html( selector + '{' + property + ':' + newval + ';}' ); + } else { + jQuery( 'head' ).append( '' ); + setTimeout(function() { + jQuery( 'style#' + id ).not( ':last' ).remove(); + }, 1000); + } + } ); + } ); +} + +function generatepress_classes_live_update( id, classes, selector, prefix ) { + classes = typeof classes !== 'undefined' ? classes : ''; + prefix = typeof prefix !== 'undefined' ? prefix : ''; + wp.customize( 'generate_settings[' + id + ']', function( value ) { + value.bind( function( newval ) { + jQuery.each( classes, function( i, v ) { + jQuery( selector ).removeClass( prefix + v ); + }); + jQuery( selector ).addClass( prefix + newval ); + } ); + } ); +} + +( function( $ ) { + + // Update the site title in real time... + wp.customize( 'blogname', function( value ) { + value.bind( function( newval ) { + $( '.main-title a' ).html( newval ); + } ); + } ); + + //Update the site description in real time... + wp.customize( 'blogdescription', function( value ) { + value.bind( function( newval ) { + $( '.site-description' ).html( newval ); + } ); + } ); + + /** + * Body background color + * Empty: white + */ + generatepress_colors_live_update( 'background_color', 'body', 'background-color', '#FFFFFF' ); + + /** + * Text color + * Empty: black + */ + generatepress_colors_live_update( 'text_color', 'body', 'color', '#000000' ); + + /** + * Link color + * Empty: initial + */ + generatepress_colors_live_update( 'link_color', 'a, a:visited', 'color', 'initial' ); + + /** + * Link color hover + * Empty: initial + */ + generatepress_colors_live_update( 'link_color_hover', 'a:hover', 'color', 'initial' ); + + /** + * Container width + */ + wp.customize( 'generate_settings[container_width]', function( value ) { + value.bind( function( newval ) { + if ( jQuery( 'style#container_width' ).length ) { + jQuery( 'style#container_width' ).html( 'body .grid-container{max-width:' + newval + 'px;}' ); + } else { + jQuery( 'head' ).append( '' ); + setTimeout(function() { + jQuery( 'style#container_width' ).not( ':last' ).remove(); + }, 100); + } + jQuery('body').trigger('generate_spacing_updated'); + } ); + } ); + + /** + * Body font size + */ + wp.customize( 'generate_settings[body_font_size]', function( value ) { + value.bind( function( newval ) { + if ( jQuery( 'style#body_font_size' ).length ) { + jQuery( 'style#body_font_size' ).html( 'body, button, input, select, textarea{font-size:' + newval + 'px;}' ); + } else { + jQuery( 'head' ).append( '' ); + setTimeout(function() { + jQuery( 'style#body_font_size' ).not( ':last' ).remove(); + }, 100); + } + setTimeout("jQuery('body').trigger('generate_spacing_updated');", 1000); + } ); + } ); + + /** + * Body line height + */ + wp.customize( 'generate_settings[body_line_height]', function( value ) { + value.bind( function( newval ) { + if ( jQuery( 'style#body_line_height' ).length ) { + jQuery( 'style#body_line_height' ).html( 'body{line-height:' + newval + ';}' ); + } else { + jQuery( 'head' ).append( '' ); + setTimeout(function() { + jQuery( 'style#body_line_height' ).not( ':last' ).remove(); + }, 100); + } + setTimeout("jQuery('body').trigger('generate_spacing_updated');", 1000); + } ); + } ); + + /** + * Paragraph margin + */ + wp.customize( 'generate_settings[paragraph_margin]', function( value ) { + value.bind( function( newval ) { + if ( jQuery( 'style#paragraph_margin' ).length ) { + jQuery( 'style#paragraph_margin' ).html( 'p{margin-bottom:' + newval + 'em;}' ); + } else { + jQuery( 'head' ).append( '' ); + setTimeout(function() { + jQuery( 'style#paragraph_margin' ).not( ':last' ).remove(); + }, 100); + } + setTimeout("jQuery('body').trigger('generate_spacing_updated');", 1000); + } ); + } ); + + /** + * Body font weight + */ + wp.customize( 'generate_settings[body_font_weight]', function( value ) { + value.bind( function( newval ) { + jQuery( 'head' ).append( '' ); + setTimeout(function() { + jQuery( 'style#body_font_weight' ).not( ':last' ).remove(); + }, 100); + } ); + } ); + + /** + * Body text transform + */ + wp.customize( 'generate_settings[body_font_transform]', function( value ) { + value.bind( function( newval ) { + jQuery( 'head' ).append( '' ); + setTimeout(function() { + jQuery( 'style#body_font_transform' ).not( ':last' ).remove(); + }, 100); + } ); + } ); + + /** + * Content layout + */ + generatepress_classes_live_update( 'content_layout_setting', [ 'one-container', 'separate-containers' ], 'body' ); + + /** + * Top bar width + */ + wp.customize( 'generate_settings[top_bar_width]', function( value ) { + value.bind( function( newval ) { + if ( 'full' == newval ) { + $( '.top-bar' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + if ( 'contained' == wp.customize.value('generate_settings[top_bar_inner_width]')() ) { + $( '.inside-top-bar' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } + } + if ( 'contained' == newval ) { + $( '.top-bar' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + $( '.inside-top-bar' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } + } ); + } ); + + /** + * Inner top bar width + */ + wp.customize( 'generate_settings[top_bar_inner_width]', function( value ) { + value.bind( function( newval ) { + if ( 'full' == newval ) { + $( '.inside-top-bar' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } + if ( 'contained' == newval ) { + $( '.inside-top-bar' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } + } ); + } ); + + /** + * Top bar alignment + */ + generatepress_classes_live_update( 'top_bar_alignment', [ 'left', 'center', 'right' ], '.top-bar', 'top-bar-align-' ); + + /** + * Header layout + */ + wp.customize( 'generate_settings[header_layout_setting]', function( value ) { + value.bind( function( newval ) { + if ( 'fluid-header' == newval ) { + $( '.site-header' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + if ( 'contained' == wp.customize.value('generate_settings[header_inner_width]')() ) { + $( '.inside-header' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } + } + if ( 'contained-header' == newval ) { + $( '.site-header' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + $( '.inside-header' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } + } ); + } ); + + /** + * Inner Header layout + */ + wp.customize( 'generate_settings[header_inner_width]', function( value ) { + value.bind( function( newval ) { + if ( 'full-width' == newval ) { + $( '.inside-header' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } + if ( 'contained' == newval ) { + $( '.inside-header' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } + } ); + } ); + + /** + * Header alignment + */ + generatepress_classes_live_update( 'header_alignment_setting', [ 'left', 'center', 'right' ], 'body', 'header-aligned-' ); + + /** + * Navigation width + */ + wp.customize( 'generate_settings[nav_layout_setting]', function( value ) { + value.bind( function( newval ) { + if ( $( 'body' ).hasClass( 'sticky-enabled' ) ) { + wp.customize.preview.send( 'refresh' ); + } else { + if ( 'fluid-nav' == newval ) { + $( '.main-navigation' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + if ( 'full-width' !== wp.customize.value('generate_settings[nav_inner_width]')() ) { + $( '.main-navigation .inside-navigation' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } + } + if ( 'contained-nav' == newval ) { + $( '.main-navigation' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + $( '.main-navigation .inside-navigation' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } + } + } ); + } ); + + /** + * Inner navigation width + */ + wp.customize( 'generate_settings[nav_inner_width]', function( value ) { + value.bind( function( newval ) { + if ( 'full-width' == newval ) { + $( '.main-navigation .inside-navigation' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } + if ( 'contained' == newval ) { + $( '.main-navigation .inside-navigation' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } + } ); + } ); + + /** + * Navigation position + */ + wp.customize( 'generate_settings[nav_position_setting]', function( value ) { + value.bind( function( newval ) { + jQuery('body').trigger('generate_navigation_location_updated'); + if ( $( '.gen-sidebar-nav' ).length ) { + wp.customize.preview.send( 'refresh' ); + return false; + } + if ( 'nav-left-sidebar' == newval ) { + wp.customize.preview.send( 'refresh' ); + return false; + } + if ( 'nav-right-sidebar' == newval ) { + wp.customize.preview.send( 'refresh' ); + return false; + } + var classes = [ 'nav-below-header', 'nav-above-header', 'nav-float-right', 'nav-float-left', 'nav-left-sidebar', 'nav-right-sidebar' ]; + if ( 'nav-left-sidebar' !== newval && 'nav-right-sidebar' !== newval ) { + $.each( classes, function( i, v ) { + $( 'body' ).removeClass( v ); + }); + } + $( 'body' ).addClass( newval ); + if ( 'nav-below-header' == newval ) { + $( '#site-navigation:first' ).insertAfter( '.site-header' ).show(); + } + if ( 'nav-above-header' == newval ) { + if ( $( '.top-bar:not(.secondary-navigation .top-bar)' ).length ) { + $( '#site-navigation:first' ).insertAfter( '.top-bar' ).show(); + } else { + $( '#site-navigation:first' ).prependTo( 'body' ).show(); + } + } + if ( 'nav-float-right' == newval ) { + $( '#site-navigation:first' ).appendTo( '.inside-header' ).show(); + } + if ( 'nav-float-left' == newval ) { + $( '#site-navigation:first' ).appendTo( '.inside-header' ).show(); + } + if ( '' == newval ) { + if ( $( '.gen-sidebar-nav' ).length ) { + wp.customize.preview.send( 'refresh' ); + } else { + $( '#site-navigation:first' ).hide(); + } + } + } ); + } ); + + /** + * Navigation alignment + */ + generatepress_classes_live_update( 'nav_alignment_setting', [ 'left', 'center', 'right' ], 'body', 'nav-aligned-' ); + + /** + * Footer width + */ + wp.customize( 'generate_settings[footer_layout_setting]', function( value ) { + value.bind( function( newval ) { + if ( 'fluid-footer' == newval ) { + $( '.site-footer' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } + if ( 'contained-footer' == newval ) { + $( '.site-footer' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } + } ); + } ); + + /** + * Inner footer width + */ + wp.customize( 'generate_settings[footer_inner_width]', function( value ) { + value.bind( function( newval ) { + if ( 'full-width' == newval ) { + if ( $( '.footer-widgets-container' ).length ) { + $( '.footer-widgets-container' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } else { + $( '.inside-footer-widgets' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } + $( '.inside-site-info' ).removeClass( 'grid-container' ).removeClass( 'grid-parent' ); + } + if ( 'contained' == newval ) { + if ( $( '.footer-widgets-container' ).length ) { + $( '.footer-widgets-container' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } else { + $( '.inside-footer-widgets' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } + $( '.inside-site-info' ).addClass( 'grid-container' ).addClass( 'grid-parent' ); + } + } ); + } ); + + /** + * Footer bar alignment + */ + generatepress_classes_live_update( 'footer_bar_alignment', [ 'left', 'center', 'right' ], '.site-footer', 'footer-bar-align-' ); + +} )( jQuery ); \ No newline at end of file diff --git a/wp-themes/generatepress/inc/customizer/controls/js/selectWoo.min.js b/wp-themes/generatepress/inc/customizer/controls/js/selectWoo.min.js new file mode 100644 index 0000000..bf9600c --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/js/selectWoo.min.js @@ -0,0 +1 @@ +/*! Select2 1.0.1 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=function(b,c){return void 0===c&&(c="undefined"!=typeof window?require("jquery"):require("jquery")(b)),a(c),c}:a(jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return v.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o=b&&b.split("/"),p=t.map,q=p&&p["*"]||{};if(a){for(a=a.split("/"),g=a.length-1,t.nodeIdCompat&&x.test(a[g])&&(a[g]=a[g].replace(x,"")),"."===a[0].charAt(0)&&o&&(n=o.slice(0,o.length-1),a=n.concat(a)),k=0;k0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}if((o||q)&&p){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),o)for(l=o.length;l>0;l-=1)if((e=p[o.slice(0,l).join("/")])&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=w.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),o.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){r[a]=b}}function j(a){if(e(s,a)){var c=s[a];delete s[a],u[a]=!0,n.apply(b,c)}if(!e(r,a)&&!e(u,a))throw new Error("No "+a);return r[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return a?k(a):[]}function m(a){return function(){return t&&t.config&&t.config[a]||{}}}var n,o,p,q,r={},s={},t={},u={},v=Object.prototype.hasOwnProperty,w=[].slice,x=/\.js$/;p=function(a,b){var c,d=k(a),e=d[0],g=b[1];return a=d[1],e&&(e=f(e,g),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(g)):f(a,g):(a=f(a,g),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},q={require:function(a){return g(a)},exports:function(a){var b=r[a];return void 0!==b?b:r[a]={}},module:function(a){return{id:a,uri:"",exports:r[a],config:m(a)}}},n=function(a,c,d,f){var h,k,m,n,o,t,v,w=[],x=typeof d;if(f=f||a,t=l(f),"undefined"===x||"function"===x){for(c=!c.length&&d.length?["require","exports","module"]:c,o=0;o0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c.isTouchscreen=function(){return void 0===c._isTouchscreenCache&&(c._isTouchscreenCache="ontouchstart"in document.documentElement),c._isTouchscreenCache},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('
      ');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a(''),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()});b.$results.find(".select2-results__option[data-selected]").each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("data-selected","true"):b.attr("data-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"option","data-selected":"false",tabindex:-1};b.disabled&&(delete d["data-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["data-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d["aria-label"]=b.text,delete d["data-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";var i=a(h);this.template(b,h),i.attr("role","presentation");for(var j=[],k=0;k",{class:"select2-results__options select2-results__options--nested",role:"listbox"});n.append(j),g.attr("role","list"),g.append(h),g.append(n)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("data-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[data-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):h-g<0&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[data-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted").attr("aria-selected","true"),d.$results.attr("aria-activedescendant",a.element.attr("id"))}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[data-selected]",function(b){var c=a(this),e=c.data("data");if("true"===c.attr("data-selected"))return void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{}));d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[data-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[data-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),c<=2?this.$results.scrollTop(0):(g>this.$results.outerHeight()||g<0)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id,a.id+"-results");this.options.get("minimumResultsForSearch");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),window.setTimeout(function(){d.$selection.focus()},1),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2");a(".select2.select2-container--open").each(function(){var b=a(this);this!=d[0]&&b.data("element").select2("close")})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){b.find(".selection").append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html(''),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",d),this.$selection.attr("role","combobox"),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("keydown",function(b){!a.isOpen()&&b.which>=48&&b.which<=90&&a.open()}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},e.prototype.selectionContainer=function(){return a("")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('
        '),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(a,b))},d.prototype.selectionContainer=function(){return a('
      • ')},d.prototype.update=function(a){var b=this;if(this.clear(),0!==a.length){for(var d=[],e=0;e1||c)return a.call(this,b);this.clear();var d=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(d)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e0||0===c.length)){var d=a('×');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this,f=b.id+"-results";a.call(this,b,d),b.on("open",function(){e.$search.attr("aria-owns",f),e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.removeAttr("aria-owns"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.data._resultId)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){if(a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented(),a.which===c.BACKSPACE&&""===e.$search.val()){var b=e.$searchContainer.prev(".select2-selection__choice");if(b.length>0){var d=b.data("data");e.searchRemoveChoice(d),a.preventDefault()}}});var g=document.documentMode,h=g&&g<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){if(h)return void e.$selection.off("input.search input.searchcheck");e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(h&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{a=.75*(this.$search.val().length+1)+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({},b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d="";return d+=null!=b?b.id:a.generateChars(4),d+="-result-",d+=a.generateChars(4),null!=c.id?d+="-"+c.id.toString():d+="-"+a.generateChars(4),d},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f),e.container.focusOnActiveElement()},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h0&&b.term.length>this.maximumInputLength)return void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}});a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;if(d.maximumSelectionLength>0&&f>=d.maximumSelectionLength)return void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}});a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this,f=c.id+"-results";b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.attr("aria-owns",f),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.removeAttr("aria-activedescendant"),e.$search.removeAttr("aria-owns"),e.$search.val("")}),c.on("focus",function(){c.isOpen()&&e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){e.showSearch(a)?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}}),c.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.data._resultId)})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){e.$results.offset().top+e.$results.outerHeight(!1)+50>=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1)&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('
      • '),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a(""),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id;this.$container.parents().filter(b.hasScroll).off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.topf.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),null==l.tokenSeparators&&null==l.tokenizer||(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){null==c(d,e.children[g])&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var h=b(e.text).toUpperCase(),i=b(d.term).toUpperCase();return h.indexOf(i)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)},new D}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return e<=0?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;h=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var b=this;this.on("open",function(){b.$container.addClass("select2-container--open")}),this.on("close",function(){b.$container.removeClass("select2-container--open")}),this.on("enable",function(){b.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){b.$container.addClass("select2-container--disabled")}),this.on("blur",function(){b.$container.removeClass("select2-container--focus")}),this.on("query",function(a){b.isOpen()||b.trigger("open",{}),this.dataAdapter.query(a,function(c){b.trigger("results:all",{data:c,query:a})})}),this.on("query:append",function(a){this.dataAdapter.query(a,function(c){b.trigger("results:append",{data:c,query:a})})}),this.on("open",function(){setTimeout(function(){b.focusOnActiveElement()},1)}),a(document).on("keydown",function(a){var c=a.which;if(b.isOpen())if(c===d.ESC||c===d.TAB||c===d.UP&&a.altKey?(b.close(),a.preventDefault()):c===d.ENTER?(b.trigger("results:select",{}),a.preventDefault()):c===d.SPACE&&a.ctrlKey?(b.trigger("results:toggle",{}),a.preventDefault()):c===d.UP?(b.trigger("results:previous",{}),a.preventDefault()):c===d.DOWN&&(b.trigger("results:next",{}),a.preventDefault()),c===d.DOWN||c===d.UP)b.focusOnActiveElement();else{var e=b.$dropdown.find(".select2-search__field");e.length||(e=b.$container.find(".select2-search__field")),e.focus(),setTimeout(function(){b.focusOnActiveElement()},1e3)}else b.hasFocus()&&(c===d.ENTER||c===d.SPACE||c===d.DOWN&&a.altKey)&&(b.open(),a.preventDefault())})},e.prototype.focusOnActiveElement=function(){c.isTouchscreen()||this.$results.find("li.select2-results__option--highlighted").focus()},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=a&&0!==a.length||(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},e.prototype.render=function(){var b=a('');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("jquery-mousewheel",["jquery"],function(a){return a}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.selectWoo){var e=["open","close","destroy"];a.fn.selectWoo=function(b){if("object"==typeof(b=b||{}))return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null!=a.fn.select2&&null!=a.fn.select2.defaults&&(a.fn.selectWoo.defaults=a.fn.select2.defaults),null==a.fn.selectWoo.defaults&&(a.fn.selectWoo.defaults=d),a.fn.select2=a.fn.select2||a.fn.selectWoo,c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,a.fn.selectWoo.amd=b,c}); \ No newline at end of file diff --git a/wp-themes/generatepress/inc/customizer/controls/js/slider-control.js b/wp-themes/generatepress/inc/customizer/controls/js/slider-control.js new file mode 100644 index 0000000..afb97ca --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/js/slider-control.js @@ -0,0 +1,134 @@ +wp.customize.controlConstructor['generatepress-range-slider'] = wp.customize.Control.extend({ + + ready: function() { + + 'use strict'; + + var control = this, + value, + thisInput, + inputDefault, + changeAction, + controlClass = '.customize-control-generatepress-range-slider', + footerActions = jQuery( '#customize-footer-actions' ); + + // Set up the sliders + jQuery( '.generatepress-slider' ).each( function() { + var _this = jQuery( this ); + var _input = _this.closest( 'label' ).find( 'input[type="number"]' ); + var _text = _input.next( '.value' ); + _this.slider({ + value: _input.val(), + min: _this.data( 'min' ), + max: _this.data( 'max' ), + step: _this.data( 'step' ), + slide: function( event, ui ) { + _input.val( ui.value ).change(); + _text.text( ui.value ); + } + }); + }); + + // Update the range value based on the input value + jQuery( controlClass + ' .gp_range_value input[type=number]' ).on( 'input', function() { + value = jQuery( this ).attr( 'value' ); + if ( '' == value ) { + value = -1; + } + jQuery( this ).closest( 'label' ).find( '.generatepress-slider' ).slider( 'value', parseFloat(value)).change(); + }); + + // Handle the reset button + jQuery( controlClass + ' .generatepress-reset' ).on( 'click', function() { + var icon = jQuery( this ), + visible_area = icon.closest( '.gp-range-title-area' ).next( '.gp-range-slider-areas' ).children( 'label:visible' ), + input = visible_area.find( 'input[type=number]' ), + slider_value = visible_area.find( '.generatepress-slider' ), + visual_value = visible_area.find( '.gp_range_value' ), + reset_value = input.attr( 'data-reset_value' ); + + input.val( reset_value ).change(); + visual_value.find( 'input' ).val( reset_value ); + visual_value.find( '.value' ).text( reset_value ); + + if ( '' == reset_value ) { + reset_value = -1; + } + + slider_value.slider( 'value', parseFloat( reset_value ) ); + }); + + // Figure out which device icon to make active on load + jQuery( controlClass + ' .generatepress-range-slider-control' ).each( function() { + var _this = jQuery( this ); + _this.find( '.gp-device-controls' ).children( 'span:first-child' ).addClass( 'selected' ); + _this.find( '.range-option-area:first-child' ).show(); + }); + + // Do stuff when device icons are clicked + jQuery( controlClass + ' .gp-device-controls > span' ).on( 'click', function( event ) { + var device = jQuery( this ).data( 'option' ); + + jQuery( controlClass + ' .gp-device-controls span' ).each( function() { + var _this = jQuery( this ); + if ( device == _this.attr( 'data-option' ) ) { + _this.addClass( 'selected' ); + _this.siblings().removeClass( 'selected' ); + } + }); + + jQuery( controlClass + ' .gp-range-slider-areas label' ).each( function() { + var _this = jQuery( this ); + if ( device == _this.attr( 'data-option' ) ) { + _this.show(); + _this.siblings().hide(); + } + }); + + // Set the device we're currently viewing + wp.customize.previewedDevice.set( jQuery( event.currentTarget ).data( 'option' ) ); + } ); + + // Set the selected devices in our control when the Customizer devices are clicked + footerActions.find( '.devices button' ).on( 'click', function() { + var device = jQuery( this ).data( 'device' ); + jQuery( controlClass + ' .gp-device-controls span' ).each( function() { + var _this = jQuery( this ); + if ( device == _this.attr( 'data-option' ) ) { + _this.addClass( 'selected' ); + _this.siblings().removeClass( 'selected' ); + } + }); + + jQuery( controlClass + ' .gp-range-slider-areas label' ).each( function() { + var _this = jQuery( this ); + if ( device == _this.attr( 'data-option' ) ) { + _this.show(); + _this.siblings().hide(); + } + }); + }); + + // Apply changes when desktop slider is changed + control.container.on( 'input change', '.desktop-range', + function() { + control.settings['desktop'].set( jQuery( this ).val() ); + } + ); + + // Apply changes when tablet slider is changed + control.container.on( 'input change', '.tablet-range', + function() { + control.settings['tablet'].set( jQuery( this ).val() ); + } + ); + + // Apply changes when mobile slider is changed + control.container.on( 'input change', '.mobile-range', + function() { + control.settings['mobile'].set( jQuery( this ).val() ); + } + ); + } + +}); \ No newline at end of file diff --git a/wp-themes/generatepress/inc/customizer/controls/js/typography-customizer.js b/wp-themes/generatepress/inc/customizer/controls/js/typography-customizer.js new file mode 100644 index 0000000..523869a --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/js/typography-customizer.js @@ -0,0 +1,151 @@ +( function( api ) { + + api.controlConstructor['gp-customizer-typography'] = api.Control.extend( { + ready: function() { + var control = this; + + control.container.on( 'change', '.generatepress-font-family select', + function() { + var _this = jQuery( this ), + _value = _this.val(), + _categoryID = _this.attr( 'data-category' ), + _variantsID = _this.attr( 'data-variants' ); + + // Set our font family + control.settings['family'].set( _this.val() ); + + // Bail if our controls don't exist + if ( 'undefined' == typeof control.settings['category'] || 'undefined' == typeof control.settings['variant'] ) { + return; + } + + setTimeout( function() { + // Send our request to the generate_get_all_google_fonts_ajax function + var response = jQuery.getJSON({ + type: 'POST', + url: ajaxurl, + data: { + action: 'generate_get_all_google_fonts_ajax', + gp_customize_nonce: gp_customize.nonce + }, + async: false, + dataType: 'json', + }); + + // Get our response + var fonts = response.responseJSON; + + // Create an ID from our selected font + var id = _value.split(' ').join('_').toLowerCase(); + + // Set our values if we have them + if ( id in fonts ) { + + // Get existing variants if this font is already selected + var got_variants = false; + jQuery( '.generatepress-font-family select' ).not( _this ).each( function( key, select ) { + var parent = jQuery( this ).closest( '.generatepress-font-family' ); + + if ( _value == jQuery( select ).val() && _this.data( 'category' ) !== jQuery( select ).data( 'category' ) ) { + if ( ! got_variants ) { + updated_variants = jQuery( parent.next( '.generatepress-font-variant' ).find( 'select' ) ).val(); + got_variants = true; + } + } + } ); + + // We're using a Google font, so show the variants field + _this.closest( '.generatepress-font-family' ).next( 'div' ).show(); + + // Remove existing variants + jQuery( 'select[name="' + _variantsID + '"]' ).find( 'option' ).remove(); + + // Populate our select input with available variants + jQuery.each( fonts[ id ].variants, function( key, value ) { + jQuery( 'select[name="' + _variantsID + '"]' ).append( jQuery( '' ).attr( 'value', value ).text( value ) ); + } ); + + // Set our variants + if ( ! got_variants ) { + control.settings[ 'variant' ].set( fonts[ id ].variants ); + } else { + control.settings[ 'variant' ].set( updated_variants ); + } + + // Set our font category + control.settings[ 'category' ].set( fonts[ id ].category ); + jQuery( 'input[name="' + _categoryID + '"' ).val( fonts[ id ].category ); + } else { + _this.closest( '.generatepress-font-family' ).next( 'div' ).hide(); + control.settings[ 'category' ].set( '' ) + control.settings[ 'variant' ].set( '' ) + jQuery( 'input[name="' + _categoryID + '"' ).val( '' ); + jQuery( 'select[name="' + _variantsID + '"]' ).find( 'option' ).remove(); + } + }, 25 ); + } + ); + + control.container.on( 'change', '.generatepress-font-variant select', + function() { + var _this = jQuery( this ); + var variants = _this.val(); + + control.settings['variant'].set( variants ); + + jQuery( '.generatepress-font-variant select' ).each( function( key, value ) { + var this_control = jQuery( this ).closest( 'li' ).attr( 'id' ).replace( 'customize-control-', '' ); + var parent = jQuery( this ).closest( '.generatepress-font-variant' ); + var font_val = api.control( this_control ).settings['family'].get(); + + if ( font_val == control.settings['family'].get() && _this.attr( 'name' ) !== jQuery( value ).attr( 'name' ) ) { + jQuery( parent.find( 'select' ) ).not( _this ).val( variants ).triggerHandler( 'change' ); + api.control( this_control ).settings['variant'].set( variants ); + } + } ); + } + ); + + control.container.on( 'change', '.generatepress-font-category input', + function() { + control.settings['category'].set( jQuery( this ).val() ); + } + ); + + control.container.on( 'change', '.generatepress-font-weight select', + function() { + control.settings['weight'].set( jQuery( this ).val() ); + } + ); + + control.container.on( 'change', '.generatepress-font-transform select', + function() { + control.settings['transform'].set( jQuery( this ).val() ); + } + ); + + } + } ); + +} )( wp.customize ); + +jQuery( document ).ready( function($) { + + jQuery( '.generatepress-font-family select' ).selectWoo(); + jQuery( '.generatepress-font-variant' ).each( function( key, value ) { + var _this = $( this ); + var value = _this.data( 'saved-value' ); + if ( value ) { + value = value.toString().split( ',' ); + } + _this.find( 'select' ).selectWoo().val( value ).trigger( 'change.select2' ); + } ); + + $( ".generatepress-font-family" ).each( function( key, value ) { + var _this = $( this ); + if ( $.inArray( _this.find( 'select' ).val(), typography_defaults ) !== -1 ) { + _this.next( '.generatepress-font-variant' ).hide(); + } + }); + +} ); diff --git a/wp-themes/generatepress/inc/customizer/controls/js/upsell-control.js b/wp-themes/generatepress/inc/customizer/controls/js/upsell-control.js new file mode 100644 index 0000000..164312d --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/controls/js/upsell-control.js @@ -0,0 +1,12 @@ +( function( $, api ) { + api.sectionConstructor['gp-upsell-section'] = api.Section.extend( { + + // No events for this type of section. + attachEvents: function () {}, + + // Always make the section active. + isContextuallyActive: function () { + return true; + } + } ); +} )( jQuery, wp.customize ); \ No newline at end of file diff --git a/wp-themes/generatepress/inc/customizer/customizer-helpers.php b/wp-themes/generatepress/inc/customizer/customizer-helpers.php new file mode 100644 index 0000000..c0292ca --- /dev/null +++ b/wp-themes/generatepress/inc/customizer/customizer-helpers.php @@ -0,0 +1,23 @@ + $fam ) { + $font_names[] = $fam['name']; + } + + // Get all non-Google font names + $not_google = generate_typography_default_fonts(); + + // Merge them both into one array + $valid = array_merge( $font_names, $not_google ); + + // Sanitize + if ( in_array( $input, $valid ) ) { + return $input; + } else { + return 'Open Sans'; + } + } +} + +if ( ! function_exists( 'generate_sanitize_font_weight' ) ) { + /** + * Sanitize font weight. + * + * @since 1.1.10 + * @deprecated 1.3.40 + */ + function generate_sanitize_font_weight( $input ) { + + $valid = array( + 'normal', + 'bold', + '100', + '200', + '300', + '400', + '500', + '600', + '700', + '800', + '900', + ); + + if ( in_array( $input, $valid ) ) { + return $input; + } else { + return 'normal'; + } + } +} + +if ( ! function_exists( 'generate_sanitize_text_transform' ) ) { + /** + * Sanitize text transform. + * + * @since 1.1.10 + * @deprecated 1.3.40 + */ + function generate_sanitize_text_transform( $input ) { + + $valid = array( + 'none', + 'capitalize', + 'uppercase', + 'lowercase', + ); + + if ( in_array( $input, $valid ) ) { + return $input; + } else { + return 'none'; + } + } +} + +if ( ! function_exists( 'generate_typography_customize_preview_css' ) ) { + /** + * Hide the hidden input control + * @since 1.3.40 + */ + function generate_typography_customize_preview_css() { + ?> + + +
        + +
        + manager->get_control( $setting->id )->choices; + + // If the input is a valid key, return it; + // otherwise, return the default + return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); + } +} + +/** + * Sanitize our Google Font variants + * + * @since 2.0 + */ +function generate_sanitize_variants( $input ) { + if ( is_array( $input ) ) { + $input = implode( ',', $input ); + } + return sanitize_text_field( $input ); +} + +add_action( 'customize_controls_enqueue_scripts', 'generate_do_control_inline_scripts', 100 ); +/** + * Add misc inline scripts to our controls. + * + * We don't want to add these to the controls themselves, as they will be repeated + * each time the control is initialized. + * + * @since 2.0 + */ +function generate_do_control_inline_scripts() { + wp_localize_script( 'generatepress-typography-customizer', 'gp_customize', + array( + 'nonce' => wp_create_nonce( 'gp_customize_nonce' ) + ) + ); + wp_localize_script( 'generatepress-typography-customizer', 'typography_defaults', generate_typography_default_fonts() ); +} + +/** + * Check to see if we have a logo or not. + * + * Used as an active callback. Calling has_custom_logo creates a PHP notice for + * multisite users. + * + * @since 2.0.1 + */ +function generate_has_custom_logo_callback() { + if ( get_theme_mod( 'custom_logo' ) ) { + return true; + } + + return false; +} diff --git a/wp-themes/generatepress/inc/dashboard.php b/wp-themes/generatepress/inc/dashboard.php new file mode 100644 index 0000000..48edac1 --- /dev/null +++ b/wp-themes/generatepress/inc/dashboard.php @@ -0,0 +1,325 @@ + +
        +
        +
        +
        + + +
        +
        + + + +
        +
        +
        + + + +
        +

        +
        + + +
        + %2$s', + esc_url( admin_url( 'customize.php' ) ), + esc_html__( 'Customize', 'generatepress' ) + ); + ?> +
        + + +
        + + array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-backgrounds/' ), + ), + 'Blog' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-blog/' ), + ), + 'Colors' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-colors/' ), + ), + 'Copyright' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-copyright/' ), + ), + 'Disable Elements' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-disable-elements/' ), + ), + 'Hooks' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-hooks/' ), + ), + 'Import / Export' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-import-export/' ), + ), + 'Menu Plus' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-menu-plus/' ), + ), + 'Page Header' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-page-header/' ), + ), + 'Secondary Nav' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-secondary-nav/' ), + ), + 'Sections' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-sections/' ), + ), + 'Spacing' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-spacing/' ), + ), + 'Typography' => array( + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-typography/' ), + ), + ); + + if ( ! defined( 'GP_PREMIUM_VERSION' ) ) : ?> +
        +

        +
        +
        + $info ) { ?> +
        +
        + +
        +
        + +
        +
        +
        + +
        +
        +
        + +
        + +
        +
        + %2$s', + esc_url( admin_url( 'customize.php' ) ), + esc_html__( 'Customize', 'generatepress' ) + ); + ?> +
        + + + + + +
        +

        +
        +

        +
        +

        +

        + esc_js( $warning ) + ) + ); + ?> +

        + +
        + +
        +
        +
        +
        +
        + +
        +
        +
        + base ) { + return; + } + + if ( isset( $_GET['settings-updated'] ) && 'true' == $_GET['settings-updated'] ) { + add_settings_error( 'generate-notices', 'true', esc_html__( 'Settings saved.', 'generatepress' ), 'updated' ); + } + + if ( isset( $_GET['status'] ) && 'imported' == $_GET['status'] ) { + add_settings_error( 'generate-notices', 'imported', esc_html__( 'Import successful.', 'generatepress' ), 'updated' ); + } + + if ( isset( $_GET['status'] ) && 'reset' == $_GET['status'] ) { + add_settings_error( 'generate-notices', 'reset', esc_html__( 'Settings removed.', 'generatepress' ), 'updated' ); + } + + settings_errors( 'generate-notices' ); + } +} diff --git a/wp-themes/generatepress/inc/defaults.php b/wp-themes/generatepress/inc/defaults.php new file mode 100644 index 0000000..c8d8c9f --- /dev/null +++ b/wp-themes/generatepress/inc/defaults.php @@ -0,0 +1,340 @@ + '', + 'hide_tagline' => '', + 'logo' => '', + 'retina_logo' => '', + 'top_bar_width' => 'full', + 'top_bar_inner_width' => 'contained', + 'top_bar_alignment' => 'right', + 'container_width' => '1100', + 'header_layout_setting' => 'fluid-header', + 'header_inner_width' => 'contained', + 'nav_alignment_setting' => ( is_rtl() ) ? 'right' : 'left', + 'header_alignment_setting' => ( is_rtl() ) ? 'right' : 'left', + 'nav_layout_setting' => 'fluid-nav', + 'nav_inner_width' => 'contained', + 'nav_position_setting' => 'nav-below-header', + 'nav_dropdown_type' => 'hover', + 'nav_search' => 'disable', + 'content_layout_setting' => 'separate-containers', + 'layout_setting' => 'right-sidebar', + 'blog_layout_setting' => 'right-sidebar', + 'single_layout_setting' => 'right-sidebar', + 'post_content' => 'excerpt', + 'footer_layout_setting' => 'fluid-footer', + 'footer_inner_width' => 'contained', + 'footer_widget_setting' => '3', + 'footer_bar_alignment' => 'right', + 'back_to_top' => '', + 'background_color' => '#efefef', + 'text_color' => '#3a3a3a', + 'link_color' => '#1e73be', + 'link_color_hover' => '#000000', + 'link_color_visited' => '', + 'font_awesome_essentials' => true, + 'dynamic_css_cache' => true, + ); + + return apply_filters( 'generate_option_defaults', $generate_defaults ); + } +} + +if ( ! function_exists( 'generate_get_color_defaults' ) ) { + /** + * Set default options + */ + function generate_get_color_defaults() { + $generate_color_defaults = array( + 'top_bar_background_color' => '#636363', + 'top_bar_text_color' => '#ffffff', + 'top_bar_link_color' => '#ffffff', + 'top_bar_link_color_hover' => '#303030', + 'header_background_color' => '#ffffff', + 'header_text_color' => '#3a3a3a', + 'header_link_color' => '#3a3a3a', + 'header_link_hover_color' => '', + 'site_title_color' => '#222222', + 'site_tagline_color' => '#757575', + 'navigation_background_color' => '#222222', + 'navigation_text_color' => '#ffffff', + 'navigation_background_hover_color' => '#3f3f3f', + 'navigation_text_hover_color' => '#ffffff', + 'navigation_background_current_color' => '#3f3f3f', + 'navigation_text_current_color' => '#ffffff', + 'subnavigation_background_color' => '#3f3f3f', + 'subnavigation_text_color' => '#ffffff', + 'subnavigation_background_hover_color' => '#4f4f4f', + 'subnavigation_text_hover_color' => '#ffffff', + 'subnavigation_background_current_color' => '#4f4f4f', + 'subnavigation_text_current_color' => '#ffffff', + 'content_background_color' => '#ffffff', + 'content_text_color' => '', + 'content_link_color' => '', + 'content_link_hover_color' => '', + 'content_title_color' => '', + 'blog_post_title_color' => '', + 'blog_post_title_hover_color' => '', + 'entry_meta_text_color' => '#595959', + 'entry_meta_link_color' => '#595959', + 'entry_meta_link_color_hover' => '#1e73be', + 'h1_color' => '', + 'h2_color' => '', + 'h3_color' => '', + 'h4_color' => '', + 'h5_color' => '', + 'h6_color' => '', + 'sidebar_widget_background_color' => '#ffffff', + 'sidebar_widget_text_color' => '', + 'sidebar_widget_link_color' => '', + 'sidebar_widget_link_hover_color' => '', + 'sidebar_widget_title_color' => '#000000', + 'footer_widget_background_color' => '#ffffff', + 'footer_widget_text_color' => '', + 'footer_widget_link_color' => '', + 'footer_widget_link_hover_color' => '', + 'footer_widget_title_color' => '#000000', + 'footer_background_color' => '#222222', + 'footer_text_color' => '#ffffff', + 'footer_link_color' => '#ffffff', + 'footer_link_hover_color' => '#606060', + 'form_background_color' => '#fafafa', + 'form_text_color' => '#666666', + 'form_background_color_focus' => '#ffffff', + 'form_text_color_focus' => '#666666', + 'form_border_color' => '#cccccc', + 'form_border_color_focus' => '#bfbfbf', + 'form_button_background_color' => '#666666', + 'form_button_background_color_hover' => '#3f3f3f', + 'form_button_text_color' => '#ffffff', + 'form_button_text_color_hover' => '#ffffff', + 'back_to_top_background_color' => 'rgba( 0,0,0,0.4 )', + 'back_to_top_background_color_hover' => 'rgba( 0,0,0,0.6 )', + 'back_to_top_text_color' => '#ffffff', + 'back_to_top_text_color_hover' => '#ffffff', + ); + + return apply_filters( 'generate_color_option_defaults', $generate_color_defaults ); + } +} + +if ( ! function_exists( 'generate_get_default_fonts' ) ) { + /** + * Set default options. + * + * @since 0.1 + * + * @param bool $filter Whether to return the filtered values or original values. + * @return array Option defaults. + */ + function generate_get_default_fonts( $filter = true ) { + $generate_font_defaults = array( + 'font_body' => 'System Stack', + 'font_body_category' => '', + 'font_body_variants' => '', + 'body_font_weight' => 'normal', + 'body_font_transform' => 'none', + 'body_font_size' => '17', + 'body_line_height' => '1.5', // no unit + 'paragraph_margin' => '1.5', // em + 'font_top_bar' => 'inherit', + 'font_top_bar_category' => '', + 'font_top_bar_variants' => '', + 'top_bar_font_weight' => 'normal', + 'top_bar_font_transform' => 'none', + 'top_bar_font_size' => '13', + 'font_site_title' => 'inherit', + 'font_site_title_category' => '', + 'font_site_title_variants' => '', + 'site_title_font_weight' => 'bold', + 'site_title_font_transform' => 'none', + 'site_title_font_size' => '45', + 'mobile_site_title_font_size' => '30', + 'font_site_tagline' => 'inherit', + 'font_site_tagline_category' => '', + 'font_site_tagline_variants' => '', + 'site_tagline_font_weight' => 'normal', + 'site_tagline_font_transform' => 'none', + 'site_tagline_font_size' => '15', + 'font_navigation' => 'inherit', + 'font_navigation_category' => '', + 'font_navigation_variants' => '', + 'navigation_font_weight' => 'normal', + 'navigation_font_transform' => 'none', + 'navigation_font_size' => '15', + 'font_widget_title' => 'inherit', + 'font_widget_title_category' => '', + 'font_widget_title_variants' => '', + 'widget_title_font_weight' => 'normal', + 'widget_title_font_transform' => 'none', + 'widget_title_font_size' => '20', + 'widget_title_separator' => '30', + 'widget_content_font_size' => '17', + 'font_buttons' => 'inherit', + 'font_buttons_category' => '', + 'font_buttons_variants' => '', + 'buttons_font_weight' => 'normal', + 'buttons_font_transform' => 'none', + 'buttons_font_size' => '', + 'font_heading_1' => 'inherit', + 'font_heading_1_category' => '', + 'font_heading_1_variants' => '', + 'heading_1_weight' => '300', + 'heading_1_transform' => 'none', + 'heading_1_font_size' => '40', + 'heading_1_line_height' => '1.2', // em + 'mobile_heading_1_font_size' => '30', + 'font_heading_2' => 'inherit', + 'font_heading_2_category' => '', + 'font_heading_2_variants' => '', + 'heading_2_weight' => '300', + 'heading_2_transform' => 'none', + 'heading_2_font_size' => '30', + 'heading_2_line_height' => '1.2', // em + 'mobile_heading_2_font_size' => '25', + 'font_heading_3' => 'inherit', + 'font_heading_3_category' => '', + 'font_heading_3_variants' => '', + 'heading_3_weight' => 'normal', + 'heading_3_transform' => 'none', + 'heading_3_font_size' => '20', + 'heading_3_line_height' => '1.2', // em + 'font_heading_4' => 'inherit', + 'font_heading_4_category' => '', + 'font_heading_4_variants' => '', + 'heading_4_weight' => 'normal', + 'heading_4_transform' => 'none', + 'heading_4_font_size' => '', + 'heading_4_line_height' => '', // em + 'font_heading_5' => 'inherit', + 'font_heading_5_category' => '', + 'font_heading_5_variants' => '', + 'heading_5_weight' => 'normal', + 'heading_5_transform' => 'none', + 'heading_5_font_size' => '', + 'heading_5_line_height' => '', // em + 'font_heading_6' => 'inherit', + 'font_heading_6_category' => '', + 'font_heading_6_variants' => '', + 'heading_6_weight' => 'normal', + 'heading_6_transform' => 'none', + 'heading_6_font_size' => '', + 'heading_6_line_height' => '', // em + 'font_footer' => 'inherit', + 'font_footer_category' => '', + 'font_footer_variants' => '', + 'footer_weight' => 'normal', + 'footer_transform' => 'none', + 'footer_font_size' => '15', + ); + + if ( $filter ) { + return apply_filters( 'generate_font_option_defaults', $generate_font_defaults ); + } + + return $generate_font_defaults; + } +} + +if ( ! function_exists( 'generate_spacing_get_defaults' ) ) { + /** + * Set the default options. + * + * @since 0.1 + * + * @param bool $filter Whether to return the filtered values or original values. + * @return array Option defaults. + */ + function generate_spacing_get_defaults( $filter = true ) { + $generate_spacing_defaults = array( + 'top_bar_top' => '10', + 'top_bar_right' => '10', + 'top_bar_bottom' => '10', + 'top_bar_left' => '10', + 'header_top' => '40', + 'header_right' => '40', + 'header_bottom' => '40', + 'header_left' => '40', + 'menu_item' => '20', + 'menu_item_height' => '60', + 'sub_menu_item_height' => '10', + 'content_top' => '40', + 'content_right' => '40', + 'content_bottom' => '40', + 'content_left' => '40', + 'mobile_content_top' => '30', + 'mobile_content_right' => '30', + 'mobile_content_bottom' => '30', + 'mobile_content_left' => '30', + 'separator' => '20', + 'left_sidebar_width' => '25', + 'right_sidebar_width' => '25', + 'widget_top' => '40', + 'widget_right' => '40', + 'widget_bottom' => '40', + 'widget_left' => '40', + 'footer_widget_container_top' => '40', + 'footer_widget_container_right' => '40', + 'footer_widget_container_bottom' => '40', + 'footer_widget_container_left' => '40', + 'footer_widget_separator' => '40', + 'footer_top' => '20', + 'footer_right' => '20', + 'footer_bottom' => '20', + 'footer_left' => '20', + ); + + if ( $filter ) { + return apply_filters( 'generate_spacing_option_defaults', $generate_spacing_defaults ); + } + + return $generate_spacing_defaults; + } +} + +if ( ! function_exists( 'generate_typography_default_fonts' ) ) { + /** + * Set the default system fonts. + * + * @since 1.3.40 + */ + function generate_typography_default_fonts() { + $fonts = array( + 'inherit', + 'System Stack', + 'Arial, Helvetica, sans-serif', + 'Century Gothic', + 'Comic Sans MS', + 'Courier New', + 'Georgia, Times New Roman, Times, serif', + 'Helvetica', + 'Impact', + 'Lucida Console', + 'Lucida Sans Unicode', + 'Palatino Linotype', + 'Segoe UI, Helvetica Neue, Helvetica, sans-serif', + 'Tahoma, Geneva, sans-serif', + 'Trebuchet MS, Helvetica, sans-serif', + 'Verdana, Geneva, sans-serif', + ); + + return apply_filters( 'generate_typography_default_fonts', $fonts ); + } +} diff --git a/wp-themes/generatepress/inc/deprecated.php b/wp-themes/generatepress/inc/deprecated.php new file mode 100644 index 0000000..8472c74 --- /dev/null +++ b/wp-themes/generatepress/inc/deprecated.php @@ -0,0 +1,185 @@ + apply_filters( 'generate_pagination_mid_size', 1 ), + 'prev_text' => __( '← Previous', 'generatepress' ), + 'next_text' => __( 'Next →', 'generatepress' ) + ) ); + } + } +} + +if ( ! function_exists( 'generate_additional_spacing' ) ) { + /** + * Add fallback CSS for our mobile search icon color + * @deprecated 1.3.47 + */ + function generate_additional_spacing() { + // No longer needed + } +} + +if ( ! function_exists( 'generate_mobile_search_spacing_fallback_css' ) ) { + /** + * Enqueue our mobile search icon color fallback CSS + * @deprecated 1.3.47 + */ + function generate_mobile_search_spacing_fallback_css() { + // No longer needed + } +} + +if ( ! function_exists( 'generate_addons_available' ) ) { + /** + * Check to see if there's any addons not already activated + * @since 1.0.9 + * @deprecated 1.3.47 + */ + function generate_addons_available() { + if ( defined( 'GP_PREMIUM_VERSION' ) ) { + return false; + } + } +} + +if ( ! function_exists( 'generate_no_addons' ) ) { + /** + * Check to see if no addons are activated + * @since 1.0.9 + * @deprecated 1.3.47 + */ + function generate_no_addons() { + if ( defined( 'GP_PREMIUM_VERSION' ) ) { + return false; + } + } +} + +if ( ! function_exists( 'generate_get_min_suffix' ) ) { + /** + * Figure out if we should use minified scripts or not + * @since 1.3.29 + * @deprecated 2.0 + */ + function generate_get_min_suffix() { + return defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; + } +} + +if ( ! function_exists( 'generate_add_layout_meta_box' ) ) { + function generate_add_layout_meta_box() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' ); + } +} + +if ( ! function_exists( 'generate_show_layout_meta_box' ) ) { + function generate_show_layout_meta_box() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' ); + } +} + +if ( ! function_exists( 'generate_save_layout_meta' ) ) { + function generate_save_layout_meta() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' ); + } +} + +if ( ! function_exists( 'generate_add_footer_widget_meta_box' ) ) { + function generate_add_footer_widget_meta_box() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' ); + } +} + +if ( ! function_exists( 'generate_show_footer_widget_meta_box' ) ) { + function generate_show_footer_widget_meta_box() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' ); + } +} + +if ( ! function_exists( 'generate_save_footer_widget_meta' ) ) { + function generate_save_footer_widget_meta() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' ); + } +} + +if ( ! function_exists( 'generate_add_page_builder_meta_box' ) ) { + function generate_add_page_builder_meta_box() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' ); + } +} + +if ( ! function_exists( 'generate_show_page_builder_meta_box' ) ) { + function generate_show_page_builder_meta_box() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' ); + } +} + +if ( ! function_exists( 'generate_save_page_builder_meta' ) ) { + function generate_save_page_builder_meta() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' ); + } +} + +if ( ! function_exists( 'generate_add_de_meta_box' ) ) { + function generate_add_de_meta_box() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_register_layout_meta_box()' ); + } +} + +if ( ! function_exists( 'generate_show_de_meta_box' ) ) { + function generate_show_de_meta_box() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_do_layout_meta_box()' ); + } +} + +if ( ! function_exists( 'generate_save_de_meta' ) ) { + function generate_save_de_meta() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_save_layout_meta_data()' ); + } +} + +if ( ! function_exists( 'generate_add_base_inline_css' ) ) { + function generate_add_base_inline_css() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' ); + } +} + +if ( ! function_exists( 'generate_color_scripts' ) ) { + function generate_color_scripts() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' ); + } +} + +if ( ! function_exists( 'generate_typography_scripts' ) ) { + function generate_typography_scripts() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' ); + } +} + +if ( ! function_exists( 'generate_spacing_scripts' ) ) { + function generate_spacing_scripts() { + _deprecated_function( __FUNCTION__, '2.0', 'generate_enqueue_dynamic_css()' ); + } +} diff --git a/wp-themes/generatepress/inc/element-classes.php b/wp-themes/generatepress/inc/element-classes.php new file mode 100644 index 0000000..8972359 --- /dev/null +++ b/wp-themes/generatepress/inc/element-classes.php @@ -0,0 +1,455 @@ + container. + * + * @since 1.1.0 + * @param string|array $class One or more classes to add to the class list. + */ + function generate_main_class( $class = '' ) { + // Separates classes with a single space, collates classes for post DIV + echo 'class="' . join( ' ', generate_get_main_class( $class ) ) . '"'; // WPCS: XSS ok, sanitization ok. + } +} + +if ( ! function_exists( 'generate_get_main_class' ) ) { + /** + * Retrieve the classes for the footer. + * + * @since 0.1 + * @param string|array $class One or more classes to add to the class list. + * @return array Array of classes. + */ + function generate_get_main_class( $class = '' ) { + + $classes = array(); + + if ( !empty($class) ) { + if ( !is_array( $class ) ) + $class = preg_split('#\s+#', $class); + $classes = array_merge($classes, $class); + } + + $classes = array_map('esc_attr', $classes); + + return apply_filters('generate_main_class', $classes, $class); + } +} + +if ( ! function_exists( 'generate_footer_class' ) ) { + /** + * Display the classes for the footer. + * + * @since 0.1 + * @param string|array $class One or more classes to add to the class list. + */ + function generate_footer_class( $class = '' ) { + // Separates classes with a single space, collates classes for post DIV + echo 'class="' . join( ' ', generate_get_footer_class( $class ) ) . '"'; // WPCS: XSS ok, sanitization ok. + } +} + +if ( ! function_exists( 'generate_get_footer_class' ) ) { + /** + * Retrieve the classes for the footer. + * + * @since 0.1 + * @param string|array $class One or more classes to add to the class list. + * @return array Array of classes. + */ + function generate_get_footer_class( $class = '' ) { + + $classes = array(); + + if ( !empty($class) ) { + if ( !is_array( $class ) ) + $class = preg_split('#\s+#', $class); + $classes = array_merge($classes, $class); + } + + $classes = array_map('esc_attr', $classes); + + return apply_filters('generate_footer_class', $classes, $class); + } +} + +if ( ! function_exists( 'generate_inside_footer_class' ) ) { + /** + * Display the classes for the footer. + * + * @since 0.1 + * @param string|array $class One or more classes to add to the class list. + */ + function generate_inside_footer_class( $class = '' ) { + $classes = array(); + + if ( !empty($class) ) { + if ( !is_array( $class ) ) + $class = preg_split('#\s+#', $class); + $classes = array_merge($classes, $class); + } + + $classes = array_map('esc_attr', $classes); + + $return = apply_filters( 'generate_inside_footer_class', $classes, $class ); + + // Separates classes with a single space, collates classes for post DIV + echo 'class="' . join( ' ', $return ) . '"'; // WPCS: XSS ok, sanitization ok. + } +} + +if ( ! function_exists( 'generate_top_bar_class' ) ) { + /** + * Display the classes for the top bar. + * + * @since 1.3.45 + * @param string|array $class One or more classes to add to the class list. + */ + function generate_top_bar_class( $class = '' ) { + $classes = array(); + + if ( !empty($class) ) { + if ( !is_array( $class ) ) + $class = preg_split('#\s+#', $class); + $classes = array_merge($classes, $class); + } + + $classes = array_map('esc_attr', $classes); + + $return = apply_filters( 'generate_top_bar_class', $classes, $class ); + + // Separates classes with a single space, collates classes for post DIV + echo 'class="' . join( ' ', $return ) . '"'; // WPCS: XSS ok, sanitization ok. + } +} diff --git a/wp-themes/generatepress/inc/general.php b/wp-themes/generatepress/inc/general.php new file mode 100644 index 0000000..3de5336 --- /dev/null +++ b/wp-themes/generatepress/inc/general.php @@ -0,0 +1,322 @@ + __( 'Right Sidebar', 'generatepress' ), + 'sidebar-2' => __( 'Left Sidebar', 'generatepress' ), + 'header' => __( 'Header', 'generatepress' ), + 'footer-1' => __( 'Footer Widget 1', 'generatepress' ), + 'footer-2' => __( 'Footer Widget 2', 'generatepress' ), + 'footer-3' => __( 'Footer Widget 3', 'generatepress' ), + 'footer-4' => __( 'Footer Widget 4', 'generatepress' ), + 'footer-5' => __( 'Footer Widget 5', 'generatepress' ), + 'footer-bar' => __( 'Footer Bar','generatepress' ), + 'top-bar' => __( 'Top Bar','generatepress' ), + ); + + foreach ( $widgets as $id => $name ) { + register_sidebar( array( + 'name' => $name, + 'id' => $id, + 'before_widget' => '', + 'before_title' => apply_filters( 'generate_start_widget_title', '

        ' ), + 'after_title' => apply_filters( 'generate_end_widget_title', '

        ' ), + ) ); + } + } +} + +if ( ! function_exists( 'generate_smart_content_width' ) ) { + add_action( 'wp', 'generate_smart_content_width' ); + /** + * Set the $content_width depending on layout of current page + * Hook into "wp" so we have the correct layout setting from generate_get_layout() + * Hooking into "after_setup_theme" doesn't get the correct layout setting + */ + function generate_smart_content_width() { + global $content_width; + + $container_width = generate_get_setting( 'container_width' ); + $right_sidebar_width = apply_filters( 'generate_right_sidebar_width', '25' ); + $left_sidebar_width = apply_filters( 'generate_left_sidebar_width', '25' ); + $layout = generate_get_layout(); + + if ( 'left-sidebar' == $layout ) { + $content_width = $container_width * ( ( 100 - $left_sidebar_width ) / 100 ); + } elseif ( 'right-sidebar' == $layout ) { + $content_width = $container_width * ( ( 100 - $right_sidebar_width ) / 100 ); + } elseif ( 'no-sidebar' == $layout ) { + $content_width = $container_width; + } else { + $content_width = $container_width * ( ( 100 - ( $left_sidebar_width + $right_sidebar_width ) ) / 100 ); + } + } +} + +if ( ! function_exists( 'generate_page_menu_args' ) ) { + add_filter( 'wp_page_menu_args', 'generate_page_menu_args' ); + /** + * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. + * + * @since 0.1 + * + * @param array $args The existing menu args. + * @return array Menu args. + */ + function generate_page_menu_args( $args ) { + $args['show_home'] = true; + return $args; + } +} + +if ( ! function_exists( 'generate_disable_title' ) ) { + add_filter( 'generate_show_title', 'generate_disable_title' ); + /** + * Remove our title if set. + * + * @since 1.3.18 + * + * @return bool Whether to display the content title. + */ + function generate_disable_title() { + global $post; + + $disable_headline = ( isset( $post ) ) ? get_post_meta( $post->ID, '_generate-disable-headline', true ) : ''; + + if ( ! empty( $disable_headline ) && false !== $disable_headline ) { + return false; + } + + return true; + } +} + +if ( ! function_exists( 'generate_resource_hints' ) ) { + add_filter( 'wp_resource_hints', 'generate_resource_hints', 10, 2 ); + /** + * Add resource hints to our Google fonts call. + * + * @since 1.3.42 + * + * @param array $urls URLs to print for resource hints. + * @param string $relation_type The relation type the URLs are printed. + * @return array $urls URLs to print for resource hints. + */ + function generate_resource_hints( $urls, $relation_type ) { + if ( wp_style_is( 'generate-fonts', 'queue' ) && 'preconnect' === $relation_type ) { + if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) { + $urls[] = array( + 'href' => 'https://fonts.gstatic.com', + 'crossorigin', + ); + } else { + $urls[] = 'https://fonts.gstatic.com'; + } + } + return $urls; + } +} + +if ( ! function_exists( 'generate_remove_caption_padding' ) ) { + add_filter( 'img_caption_shortcode_width', 'generate_remove_caption_padding' ); + /** + * Remove WordPress's default padding on images with captions + * + * @param int $width Default WP .wp-caption width (image width + 10px) + * @return int Updated width to remove 10px padding + */ + function generate_remove_caption_padding( $width ) { + return $width - 10; + } +} + +if ( ! function_exists( 'generate_enhanced_image_navigation' ) ) { + add_filter( 'attachment_link', 'generate_enhanced_image_navigation', 10, 2 ); + /** + * Filter in a link to a content ID attribute for the next/previous image links on image attachment pages + */ + function generate_enhanced_image_navigation( $url, $id ) { + if ( ! is_attachment() && ! wp_attachment_is_image( $id ) ) { + return $url; + } + + $image = get_post( $id ); + if ( ! empty( $image->post_parent ) && $image->post_parent != $id ) { + $url .= '#main'; + } + + return $url; + } +} + +if ( ! function_exists( 'generate_categorized_blog' ) ) { + /** + * Determine whether blog/site has more than one category. + * + * @since 1.2.5 + * + * @return bool True of there is more than one category, false otherwise. + */ + function generate_categorized_blog() { + if ( false === ( $all_the_cool_cats = get_transient( 'generate_categories' ) ) ) { + // Create an array of all the categories that are attached to posts. + $all_the_cool_cats = get_categories( array( + 'fields' => 'ids', + 'hide_empty' => 1, + + // We only need to know if there is more than one category. + 'number' => 2, + ) ); + + // Count the number of categories that are attached to the posts. + $all_the_cool_cats = count( $all_the_cool_cats ); + + set_transient( 'generate_categories', $all_the_cool_cats ); + } + + if ( $all_the_cool_cats > 1 ) { + // This blog has more than 1 category so twentyfifteen_categorized_blog should return true. + return true; + } else { + // This blog has only 1 category so twentyfifteen_categorized_blog should return false. + return false; + } + } +} + +if ( ! function_exists( 'generate_category_transient_flusher' ) ) { + add_action( 'edit_category', 'generate_category_transient_flusher' ); + add_action( 'save_post', 'generate_category_transient_flusher' ); + /** + * Flush out the transients used in {@see generate_categorized_blog()}. + * + * @since 1.2.5 + */ + function generate_category_transient_flusher() { + // Like, beat it. Dig? + delete_transient( 'generate_categories' ); + } +} + +if ( ! function_exists( 'generate_get_default_color_palettes' ) ) { + /** + * Set up our colors for the color picker palettes and filter them so you can change them. + * + * @since 1.3.42 + */ + function generate_get_default_color_palettes() { + $palettes = array( + '#000000', + '#FFFFFF', + '#F1C40F', + '#E74C3C', + '#1ABC9C', + '#1e72bd', + '#8E44AD', + '#00CC77', + ); + + return apply_filters( 'generate_default_color_palettes', $palettes ); + } +} + +add_filter( 'generate_fontawesome_essentials', 'generate_set_font_awesome_essentials' ); +/** + * Check to see if we should include the full Font Awesome library or not. + * + * @since 2.0 + * + * @param bool $essentials + * @return bool + */ +function generate_set_font_awesome_essentials( $essentials ) { + if ( generate_get_setting( 'font_awesome_essentials' ) ) { + return true; + } + + return $essentials; +} + +add_filter( 'generate_dynamic_css_skip_cache', 'generate_skip_dynamic_css_cache' ); +/** + * Skips caching of the dynamic CSS if set to false. + * + * @since 2.0 + * + * @param bool $cache + * @return bool + */ +function generate_skip_dynamic_css_cache( $cache ) { + if ( ! generate_get_setting( 'dynamic_css_cache' ) ) { + return true; + } + + return $cache; +} diff --git a/wp-themes/generatepress/inc/markup.php b/wp-themes/generatepress/inc/markup.php new file mode 100644 index 0000000..e449b68 --- /dev/null +++ b/wp-themes/generatepress/inc/markup.php @@ -0,0 +1,491 @@ + element. + * + * @since 1.3.15 + */ + function generate_body_schema() { + // Set up blog variable + $blog = ( is_home() || is_archive() || is_attachment() || is_tax() || is_single() ) ? true : false; + + // Set up default itemtype + $itemtype = 'WebPage'; + + // Get itemtype for the blog + $itemtype = ( $blog ) ? 'Blog' : $itemtype; + + // Get itemtype for search results + $itemtype = ( is_search() ) ? 'SearchResultsPage' : $itemtype; + + // Get the result + $result = esc_html( apply_filters( 'generate_body_itemtype', $itemtype ) ); + + // Return our HTML + echo "itemtype='https://schema.org/$result' itemscope='itemscope'"; // WPCS: XSS ok, sanitization ok. + } +} + +if ( ! function_exists( 'generate_article_schema' ) ) { + /** + * Figure out which schema tags to apply to the
        element + * The function determines the itemtype: generate_article_schema( 'BlogPosting' ) + * @since 1.3.15 + */ + function generate_article_schema( $type = 'CreativeWork' ) { + // Get the itemtype + $itemtype = esc_html( apply_filters( 'generate_article_itemtype', $type ) ); + + // Print the results + echo "itemtype='https://schema.org/$itemtype' itemscope='itemscope'"; // WPCS: XSS ok, sanitization ok. + } +} + +if ( ! function_exists( 'generate_body_classes' ) ) { + add_filter( 'body_class', 'generate_body_classes' ); + /** + * Adds custom classes to the array of body classes. + * @since 0.1 + */ + function generate_body_classes( $classes ) { + // Get Customizer settings + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + + // Get the layout + $layout = generate_get_layout(); + + // Get the navigation location + $navigation_location = generate_get_navigation_location(); + + // Get the footer widgets + $widgets = generate_get_footer_widgets(); + + // Full width content + // Used for page builders, sets the content to full width and removes the padding + $full_width = get_post_meta( get_the_ID(), '_generate-full-width-content', true ); + $classes[] = ( '' !== $full_width && false !== $full_width && is_singular() && 'true' == $full_width ) ? 'full-width-content' : ''; + + // Contained content + // Used for page builders, basically just removes the content padding + $classes[] = ( '' !== $full_width && false !== $full_width && is_singular() && 'contained' == $full_width ) ? 'contained-content' : ''; + + // Let us know if a featured image is being used + if ( has_post_thumbnail() ) { + $classes[] = 'featured-image-active'; + } + + // Layout classes + $classes[] = ( $layout ) ? $layout : 'right-sidebar'; + $classes[] = ( $navigation_location ) ? $navigation_location : 'nav-below-header'; + $classes[] = ( $generate_settings['header_layout_setting'] ) ? $generate_settings['header_layout_setting'] : 'fluid-header'; + $classes[] = ( $generate_settings['content_layout_setting'] ) ? $generate_settings['content_layout_setting'] : 'separate-containers'; + $classes[] = ( '' !== $widgets ) ? 'active-footer-widgets-' . $widgets : 'active-footer-widgets-3'; + $classes[] = ( 'enable' == $generate_settings['nav_search'] ) ? 'nav-search-enabled' : ''; + + // Navigation alignment class + if ( $generate_settings['nav_alignment_setting'] == 'left' ) { + $classes[] = 'nav-aligned-left'; + } elseif ( $generate_settings['nav_alignment_setting'] == 'center' ) { + $classes[] = 'nav-aligned-center'; + } elseif ( $generate_settings['nav_alignment_setting'] == 'right' ) { + $classes[] = 'nav-aligned-right'; + } else { + $classes[] = 'nav-aligned-left'; + } + + // Header alignment class + if ( $generate_settings['header_alignment_setting'] == 'left' ) { + $classes[] = 'header-aligned-left'; + } elseif ( $generate_settings['header_alignment_setting'] == 'center' ) { + $classes[] = 'header-aligned-center'; + } elseif ( $generate_settings['header_alignment_setting'] == 'right' ) { + $classes[] = 'header-aligned-right'; + } else { + $classes[] = 'header-aligned-left'; + } + + // Navigation dropdown type + if ( 'click' == $generate_settings['nav_dropdown_type'] ) { + $classes[] = 'dropdown-click'; + $classes[] = 'dropdown-click-menu-item'; + } elseif ( 'click-arrow' == $generate_settings['nav_dropdown_type'] ) { + $classes[] = 'dropdown-click-arrow'; + $classes[] = 'dropdown-click'; + } else { + $classes[] = 'dropdown-hover'; + } + + return $classes; + } +} + +if ( ! function_exists( 'generate_top_bar_classes' ) ) { + add_filter( 'generate_top_bar_class', 'generate_top_bar_classes' ); + /** + * Adds custom classes to the header. + * + * @since 0.1 + */ + function generate_top_bar_classes( $classes ) { + $classes[] = 'top-bar'; + + if ( 'contained' == generate_get_setting( 'top_bar_width' ) ) { + $classes[] = 'grid-container'; + $classes[] = 'grid-parent'; + } + + $classes[] = 'top-bar-align-' . generate_get_setting( 'top_bar_alignment' ); + + return $classes; + } +} + +if ( ! function_exists( 'generate_right_sidebar_classes' ) ) { + add_filter( 'generate_right_sidebar_class', 'generate_right_sidebar_classes' ); + /** + * Adds custom classes to the right sidebar. + * + * @since 0.1 + */ + function generate_right_sidebar_classes( $classes ) { + $right_sidebar_width = apply_filters( 'generate_right_sidebar_width', '25' ); + $left_sidebar_width = apply_filters( 'generate_left_sidebar_width', '25' ); + + $right_sidebar_tablet_width = apply_filters( 'generate_right_sidebar_tablet_width', $right_sidebar_width ); + $left_sidebar_tablet_width = apply_filters( 'generate_left_sidebar_tablet_width', $left_sidebar_width ); + + $classes[] = 'widget-area'; + $classes[] = 'grid-' . $right_sidebar_width; + $classes[] = 'tablet-grid-' . $right_sidebar_tablet_width; + $classes[] = 'grid-parent'; + $classes[] = 'sidebar'; + + // Get the layout + $layout = generate_get_layout(); + + if ( '' !== $layout ) { + switch ( $layout ) { + case 'both-left' : + $total_sidebar_width = $left_sidebar_width + $right_sidebar_width; + $classes[] = 'pull-' . ( 100 - $total_sidebar_width ); + + $total_sidebar_tablet_width = $left_sidebar_tablet_width + $right_sidebar_tablet_width; + $classes[] = 'tablet-pull-' . ( 100 - $total_sidebar_tablet_width ); + break; + } + } + + return $classes; + } +} + +if ( ! function_exists( 'generate_left_sidebar_classes' ) ) { + add_filter( 'generate_left_sidebar_class', 'generate_left_sidebar_classes' ); + /** + * Adds custom classes to the left sidebar. + * + * @since 0.1 + */ + function generate_left_sidebar_classes( $classes ) { + $right_sidebar_width = apply_filters( 'generate_right_sidebar_width', '25' ); + $left_sidebar_width = apply_filters( 'generate_left_sidebar_width', '25' ); + $total_sidebar_width = $left_sidebar_width + $right_sidebar_width; + + $right_sidebar_tablet_width = apply_filters( 'generate_right_sidebar_tablet_width', $right_sidebar_width ); + $left_sidebar_tablet_width = apply_filters( 'generate_left_sidebar_tablet_width', $left_sidebar_width ); + $total_sidebar_tablet_width = $left_sidebar_tablet_width + $right_sidebar_tablet_width; + + $classes[] = 'widget-area'; + $classes[] = 'grid-' . $left_sidebar_width; + $classes[] = 'tablet-grid-' . $left_sidebar_tablet_width; + $classes[] = 'mobile-grid-100'; + $classes[] = 'grid-parent'; + $classes[] = 'sidebar'; + + // Get the layout + $layout = generate_get_layout(); + + if ( '' !== $layout ) { + switch ( $layout ) { + case 'left-sidebar' : + $classes[] = 'pull-' . ( 100 - $left_sidebar_width ); + $classes[] = 'tablet-pull-' . ( 100 - $left_sidebar_tablet_width ); + break; + + case 'both-sidebars' : + case 'both-left' : + $classes[] = 'pull-' . ( 100 - $total_sidebar_width ); + $classes[] = 'tablet-pull-' . ( 100 - $total_sidebar_tablet_width ); + break; + } + } + + return $classes; + } +} + +if ( ! function_exists( 'generate_content_classes' ) ) { + add_filter( 'generate_content_class', 'generate_content_classes' ); + /** + * Adds custom classes to the content container. + * + * @since 0.1 + */ + function generate_content_classes( $classes ) { + $right_sidebar_width = apply_filters( 'generate_right_sidebar_width', '25' ); + $left_sidebar_width = apply_filters( 'generate_left_sidebar_width', '25' ); + $total_sidebar_width = $left_sidebar_width + $right_sidebar_width; + + $right_sidebar_tablet_width = apply_filters( 'generate_right_sidebar_tablet_width', $right_sidebar_width ); + $left_sidebar_tablet_width = apply_filters( 'generate_left_sidebar_tablet_width', $left_sidebar_width ); + $total_sidebar_tablet_width = $left_sidebar_tablet_width + $right_sidebar_tablet_width; + + $classes[] = 'content-area'; + $classes[] = 'grid-parent'; + $classes[] = 'mobile-grid-100'; + + // Get the layout + $layout = generate_get_layout(); + + if ( '' !== $layout ) { + switch ( $layout ) { + + case 'right-sidebar' : + $classes[] = 'grid-' . ( 100 - $right_sidebar_width ); + $classes[] = 'tablet-grid-' . ( 100 - $right_sidebar_tablet_width ); + break; + + case 'left-sidebar' : + $classes[] = 'push-' . $left_sidebar_width; + $classes[] = 'grid-' . ( 100 - $left_sidebar_width ); + $classes[] = 'tablet-push-' . $left_sidebar_tablet_width; + $classes[] = 'tablet-grid-' . ( 100 - $left_sidebar_tablet_width ); + break; + + case 'no-sidebar' : + $classes[] = 'grid-100'; + $classes[] = 'tablet-grid-100'; + break; + + case 'both-sidebars' : + $classes[] = 'push-' . $left_sidebar_width; + $classes[] = 'grid-' . ( 100 - $total_sidebar_width ); + $classes[] = 'tablet-push-' . $left_sidebar_tablet_width; + $classes[] = 'tablet-grid-' . ( 100 - $total_sidebar_tablet_width ); + break; + + case 'both-right' : + $classes[] = 'grid-' . ( 100 - $total_sidebar_width ); + $classes[] = 'tablet-grid-' . ( 100 - $total_sidebar_tablet_width ); + break; + + case 'both-left' : + $classes[] = 'push-' . $total_sidebar_width; + $classes[] = 'grid-' . ( 100 - $total_sidebar_width ); + $classes[] = 'tablet-push-' . $total_sidebar_tablet_width; + $classes[] = 'tablet-grid-' . ( 100 - $total_sidebar_tablet_width ); + break; + } + } + + return $classes; + } +} + +if ( ! function_exists( 'generate_header_classes' ) ) { + add_filter( 'generate_header_class', 'generate_header_classes' ); + /** + * Adds custom classes to the header. + * + * @since 0.1 + */ + function generate_header_classes( $classes ) { + $classes[] = 'site-header'; + + // Get theme options + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + $header_layout = $generate_settings['header_layout_setting']; + + if ( $header_layout == 'contained-header' ) { + $classes[] = 'grid-container'; + $classes[] = 'grid-parent'; + } + + return $classes; + } +} + +if ( ! function_exists( 'generate_inside_header_classes' ) ) { + add_filter( 'generate_inside_header_class', 'generate_inside_header_classes' ); + /** + * Adds custom classes to inside the header. + * + * @since 0.1 + */ + function generate_inside_header_classes( $classes ) { + $classes[] = 'inside-header'; + $inner_header_width = generate_get_setting( 'header_inner_width' ); + + if ( $inner_header_width !== 'full-width' ) { + $classes[] = 'grid-container'; + $classes[] = 'grid-parent'; + } + + return $classes; + } +} + +if ( ! function_exists( 'generate_navigation_classes' ) ) { + add_filter( 'generate_navigation_class', 'generate_navigation_classes' ); + /** + * Adds custom classes to the navigation. + * + * @since 0.1 + */ + function generate_navigation_classes( $classes ) { + $classes[] = 'main-navigation'; + + // Get theme options + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + $nav_layout = $generate_settings['nav_layout_setting']; + + if ( $nav_layout == 'contained-nav' ) { + $classes[] = 'grid-container'; + $classes[] = 'grid-parent'; + } + + return $classes; + } +} + +if ( ! function_exists( 'generate_inside_navigation_classes' ) ) { + add_filter( 'generate_inside_navigation_class', 'generate_inside_navigation_classes' ); + /** + * Adds custom classes to the inner navigation. + * + * @since 1.3.41 + */ + function generate_inside_navigation_classes( $classes ) { + $classes[] = 'inside-navigation'; + $inner_nav_width = generate_get_setting( 'nav_inner_width' ); + + if ( $inner_nav_width !== 'full-width' ) { + $classes[] = 'grid-container'; + $classes[] = 'grid-parent'; + } + + return $classes; + } +} + +if ( ! function_exists( 'generate_menu_classes' ) ) { + add_filter( 'generate_menu_class', 'generate_menu_classes' ); + /** + * Adds custom classes to the menu. + * + * @since 0.1 + */ + function generate_menu_classes( $classes ) { + $classes[] = 'menu'; + $classes[] = 'sf-menu'; + return $classes; + } +} + +if ( ! function_exists( 'generate_footer_classes' ) ) { + add_filter( 'generate_footer_class', 'generate_footer_classes' ); + /** + * Adds custom classes to the footer. + * + * @since 0.1 + */ + function generate_footer_classes( $classes ) { + $classes[] = 'site-footer'; + + // Get theme options + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + $footer_layout = $generate_settings['footer_layout_setting']; + + if ( $footer_layout == 'contained-footer' ) { + $classes[] = 'grid-container'; + $classes[] = 'grid-parent'; + } + + // Footer bar + $classes[] = ( is_active_sidebar( 'footer-bar' ) ) ? 'footer-bar-active' : ''; + $classes[] = ( is_active_sidebar( 'footer-bar' ) ) ? 'footer-bar-align-' . $generate_settings['footer_bar_alignment'] : ''; + + return $classes; + } +} + +if ( ! function_exists( 'generate_inside_footer_classes' ) ) { + add_filter( 'generate_inside_footer_class', 'generate_inside_footer_classes' ); + /** + * Adds custom classes to the footer. + * + * @since 0.1 + */ + function generate_inside_footer_classes( $classes ) { + $classes[] = 'footer-widgets-container'; + $inside_footer_width = generate_get_setting( 'footer_inner_width' ); + + if ( $inside_footer_width !== 'full-width' ) { + $classes[] = 'grid-container'; + $classes[] = 'grid-parent'; + } + + return $classes; + } +} + +if ( ! function_exists( 'generate_main_classes' ) ) { + add_filter( 'generate_main_class', 'generate_main_classes' ); + /** + * Adds custom classes to the
        element + * @since 1.1.0 + */ + function generate_main_classes( $classes ) { + $classes[] = 'site-main'; + return $classes; + } +} + +if ( ! function_exists( 'generate_post_classes' ) ) { + add_filter( 'post_class', 'generate_post_classes' ); + /** + * Adds custom classes to the
        element. + * Remove .hentry class from pages to comply with structural data guidelines. + * + * @since 1.3.39 + */ + function generate_post_classes( $classes ) { + if ( 'page' == get_post_type() ) { + $classes = array_diff( $classes, array( 'hentry' ) ); + } + + return $classes; + } +} diff --git a/wp-themes/generatepress/inc/meta-box.php b/wp-themes/generatepress/inc/meta-box.php new file mode 100644 index 0000000..e1fc9ea --- /dev/null +++ b/wp-themes/generatepress/inc/meta-box.php @@ -0,0 +1,315 @@ + true ) ); + $screen = get_current_screen(); + $post_type = $screen->id; + + if ( in_array( $post_type, ( array ) $post_types ) ) { + wp_enqueue_style( 'generate-layout-metabox', get_template_directory_uri() . '/css/admin/meta-box.css', array(), GENERATE_VERSION ); + } + } +} + +add_action( 'add_meta_boxes', 'generate_register_layout_meta_box' ); +/** + * Generate the layout metabox + * + * @since 2.0 + */ +function generate_register_layout_meta_box() { + if ( ! current_user_can( apply_filters( 'generate_metabox_capability', 'edit_theme_options' ) ) ) { + return; + } + + if ( ! defined( 'GENERATE_LAYOUT_META_BOX' ) ) { + define( 'GENERATE_LAYOUT_META_BOX', true ); + } + + $post_types = get_post_types( array( 'public' => true ) ); + foreach ($post_types as $type) { + if ( 'attachment' !== $type ) { + add_meta_box ( + 'generate_layout_options_meta_box', + esc_html__( 'Layout', 'generatepress' ), + 'generate_do_layout_meta_box', + $type, + 'normal', + 'high' + ); + } + } +} + +/** + * Build our meta box. + * + * @since 2.0 + * + * @param object $post All post information. + */ +function generate_do_layout_meta_box( $post ) { + wp_nonce_field( basename( __FILE__ ), 'generate_layout_nonce' ); + $stored_meta = (array) get_post_meta( $post->ID ); + $stored_meta['_generate-sidebar-layout-meta'][0] = ( isset( $stored_meta['_generate-sidebar-layout-meta'][0] ) ) ? $stored_meta['_generate-sidebar-layout-meta'][0] : ''; + $stored_meta['_generate-footer-widget-meta'][0] = ( isset( $stored_meta['_generate-footer-widget-meta'][0] ) ) ? $stored_meta['_generate-footer-widget-meta'][0] : ''; + $stored_meta['_generate-full-width-content'][0] = ( isset( $stored_meta['_generate-full-width-content'][0] ) ) ? $stored_meta['_generate-full-width-content'][0] : ''; + $stored_meta['_generate-disable-headline'][0] = ( isset( $stored_meta['_generate-disable-headline'][0] ) ) ? $stored_meta['_generate-disable-headline'][0] : ''; + + $tabs = apply_filters( 'generate_metabox_tabs', + array( + 'sidebars' => array( + 'title' => esc_html__( 'Sidebars', 'generatepress' ), + 'target' => '#generate-layout-sidebars', + 'class' => 'current', + ), + 'footer_widgets' => array( + 'title' => esc_html__( 'Footer Widgets', 'generatepress' ), + 'target' => '#generate-layout-footer-widgets', + 'class' => '', + ), + 'disable_elements' => array( + 'title' => esc_html__( 'Disable Elements', 'generatepress' ), + 'target' => '#generate-layout-disable-elements', + 'class' => '', + ), + 'container' => array( + 'title' => esc_html__( 'Page Builder Container', 'generatepress' ), + 'target' => '#generate-layout-page-builder-container', + 'class' => '', + ), + ) + ); + ?> + +
        + +
        +
        +
        + + + + + + + + + + + + + +
        +
        + + + + +
        +
        + 'Open Sans', + ) + ); + + $category = get_theme_mod( 'font_body_category', 'sans-serif' ); + $variants = get_theme_mod( 'font_body_variants', '300,300italic,regular,italic,600,600italic,700,700italic,800,800italic' ); + + if ( 'Open Sans' == $generate_settings['font_body'] ) { + $new_settings['font_body'] = 'Open Sans'; + set_theme_mod( 'font_body_category', $category ); + set_theme_mod( 'font_body_variants', $variants ); + } + } + + // Set blog post content to full content if it hasn't been set otherwise. + if ( ! isset( $migration_settings['blog_post_content_preview'] ) || 'true' !== $migration_settings['blog_post_content_preview'] ) { + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + array( + 'post_content' => 'full', + ) + ); + + if ( 'full' === $generate_settings['post_content'] ) { + $new_settings['post_content'] = 'full'; + } + } + + } + + // Set our flags. + if ( ! isset( $migration_settings['font_awesome_essentials_updated'] ) || 'true' !== $migration_settings['font_awesome_essentials_updated'] ) { + $migrated_flags['font_awesome_essentials_updated'] = 'true'; + } + + if ( ! isset( $migration_settings['skip_dynamic_css_cache'] ) || 'true' !== $migration_settings['skip_dynamic_css_cache'] ) { + $migrated_flags['skip_dynamic_css_cache'] = 'true'; + } + + if ( ! isset( $migration_settings['default_font_updated'] ) || 'true' !== $migration_settings['default_font_updated'] ) { + $migrated_flags['default_font_updated'] = 'true'; + } + + if ( ! isset( $migration_settings['blog_post_content_preview'] ) || 'true' !== $migration_settings['blog_post_content_preview'] ) { + $migrated_flags['blog_post_content_preview'] = 'true'; + } + + // Merge our new settings with our existing settings. + if ( ! empty( $new_settings ) ) { + $update_settings = wp_parse_args( $new_settings, $settings ); + update_option( 'generate_settings', $update_settings ); + } + + // Set our migrated setting flags. + if ( ! empty( $migrated_flags ) ) { + $update_migration_flags = wp_parse_args( $migrated_flags, $migration_settings ); + update_option( 'generate_migration_settings', $update_migration_flags ); + } +} diff --git a/wp-themes/generatepress/inc/plugin-compat.php b/wp-themes/generatepress/inc/plugin-compat.php new file mode 100644 index 0000000..48a0bb8 --- /dev/null +++ b/wp-themes/generatepress/inc/plugin-compat.php @@ -0,0 +1,259 @@ + +
        > +
        > + +
        > +
        + +
        + +
        + +
        +
        + +
        +
        + post_date ); + if ( $post_date < $compare_date ) { + $css = '.fl-builder.no-sidebar .container.grid-container { + max-width: 100%; + } + + .fl-builder.one-container.no-sidebar .site-content { + padding:0; + }'; + $css = str_replace( array( "\r", "\n", "\t" ), '', $css ); + wp_add_inline_style( 'generate-style', $css ); + } + } + } +} diff --git a/wp-themes/generatepress/inc/structure/archives.php b/wp-themes/generatepress/inc/structure/archives.php new file mode 100644 index 0000000..3c5b212 --- /dev/null +++ b/wp-themes/generatepress/inc/structure/archives.php @@ -0,0 +1,105 @@ + +
        + + +

        + +

        + + %s
        ', $term_description ); // WPCS: XSS ok, sanitization ok. + } + + if ( get_the_author_meta( 'description' ) && is_author() ) { + echo '
        ' . get_the_author_meta( 'description' ) . '
        '; // WPCS: XSS ok, sanitization ok. + } + + /** + * generate_after_archive_description hook. + * + * @since 0.1 + */ + do_action( 'generate_after_archive_description' ); ?> + + %2$s', + get_avatar( get_the_author_meta( 'ID' ), 75 ), + get_the_author() + ); + /* + * Since we called the_post() above, we need to + * rewind the loop back to the beginning that way + * we can run the loop properly, in full. + */ + rewind_posts(); + } + + return $title; + + } +} diff --git a/wp-themes/generatepress/inc/structure/comments.php b/wp-themes/generatepress/inc/structure/comments.php new file mode 100644 index 0000000..7ddb490 --- /dev/null +++ b/wp-themes/generatepress/inc/structure/comments.php @@ -0,0 +1,97 @@ +comment_type || 'trackback' == $comment->comment_type ) : ?> + +
      • > +
        + ', '' ); ?> +
        + + + +
      • > +
        +
        + +
        + + + +
        + + comment_approved ) : ?> +

        + +
        + +
        + +
        +
        + ' . esc_html__( 'Name', 'generatepress' ) . ''; + $fields['email'] = ''; + $fields['url'] = ''; + + return $fields; +} diff --git a/wp-themes/generatepress/inc/structure/featured-images.php b/wp-themes/generatepress/inc/structure/featured-images.php new file mode 100644 index 0000000..89f46fe --- /dev/null +++ b/wp-themes/generatepress/inc/structure/featured-images.php @@ -0,0 +1,111 @@ + + + %2$s + +
      • ', + esc_url( get_permalink() ), + get_the_post_thumbnail( + get_the_ID(), + apply_filters( 'generate_page_header_default_size', 'full' ), + array( + 'itemprop' => 'image', + ) + ) + ) ); + } + } +} + +if ( ! function_exists( 'generate_featured_page_header_area' ) ) { + /** + * Build the page header. + * + * @since 1.0.7 + * + * @param string The featured image container class + */ + function generate_featured_page_header_area( $class ) { + // Don't run the function unless we're on a page it applies to. + if ( ! is_singular() ) { + return; + } + + // Don't run the function unless we have a post thumbnail. + if ( ! has_post_thumbnail() ) { + return; + } + ?> +
        + 'image', + 'alt' => the_title_attribute( 'echo=0' ), + ) + ); ?> +
        + + + + + © %1$s %2$s • %4$s ', + date( 'Y' ), + get_bloginfo( 'name' ), + esc_url( 'https://generatepress.com' ), + _x( 'Powered by', 'GeneratePress', 'generatepress' ), + __( 'GeneratePress', 'generatepress' ) + ); + + echo apply_filters( 'generate_copyright', $copyright ); // WPCS: XSS ok. + } +} + +/** + * Build our individual footer widgets. + * Displays a sample widget if no widget is found in the area. + * + * @since 2.0 + * + * @param int $widget_width The width class of our widget. + * @param int $widget The ID of our widget. + */ +function generate_do_footer_widget( $widget_width, $widget ) { + $widget_width = apply_filters( "generate_footer_widget_{$widget}_width", $widget_width ); + $tablet_widget_width = apply_filters( "generate_footer_widget_{$widget}_tablet_width", '50' ); + ?> + + + + + %5$s + ', + esc_attr__( 'Scroll back to top', 'generatepress' ), + absint( apply_filters( 'generate_back_to_top_scroll_speed', 400 ) ), + absint( apply_filters( 'generate_back_to_top_start_scroll', 300 ) ), + esc_attr( apply_filters( 'generate_back_to_top_icon', 'fa-angle-up' ) ), + esc_html__( 'Scroll back to top', 'generatepress' ) + ) ); + } +} diff --git a/wp-themes/generatepress/inc/structure/header.php b/wp-themes/generatepress/inc/structure/header.php new file mode 100644 index 0000000..f09c699 --- /dev/null +++ b/wp-themes/generatepress/inc/structure/header.php @@ -0,0 +1,266 @@ + +
        > +
        > + +
        +
        + 'header-image', + 'alt' => esc_attr( apply_filters( 'generate_logo_title', get_bloginfo( 'name', 'display' ) ) ), + 'src' => $logo_url, + 'title' => esc_attr( apply_filters( 'generate_logo_title', get_bloginfo( 'name', 'display' ) ) ), + ) ); + + if ( '' !== $retina_logo_url ) { + $attr['srcset'] = $logo_url . ' 1x, ' . $retina_logo_url . ' 2x'; + + // Add dimensions to image if retina is set. This fixes a container width bug in Firefox. + if ( function_exists( 'the_custom_logo' ) && get_theme_mod( 'custom_logo' ) ) { + $data = wp_get_attachment_metadata( get_theme_mod( 'custom_logo' ) ); + + if ( ! empty( $data ) ) { + $attr['width'] = $data['width']; + $attr['height'] = $data['height']; + } + } + } + + $attr = array_map( 'esc_attr', $attr ); + + $html_attr = ''; + foreach ( $attr as $name => $value ) { + $html_attr .= " $name=" . '"' . $value . '"'; + } + + // Print our HTML. + echo apply_filters( 'generate_logo_output', sprintf( // WPCS: XSS ok, sanitization ok. + '', + esc_url( apply_filters( 'generate_logo_href' , home_url( '/' ) ) ), + esc_attr( apply_filters( 'generate_logo_title', get_bloginfo( 'name', 'display' ) ) ), + $html_attr + ), $logo_url, $html_attr ); + + /** + * generate_after_logo hook. + * + * @since 0.1 + */ + do_action( 'generate_after_logo' ); + } +} + +if ( ! function_exists( 'generate_construct_site_title' ) ) { + /** + * Build the site title and tagline. + * + * @since 1.3.28 + */ + function generate_construct_site_title() { + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + + // Get the title and tagline. + $title = get_bloginfo( 'title' ); + $tagline = get_bloginfo( 'description' ); + + // If the disable title checkbox is checked, or the title field is empty, return true. + $disable_title = ( '1' == $generate_settings['hide_title'] || '' == $title ) ? true : false; + + // If the disable tagline checkbox is checked, or the tagline field is empty, return true. + $disable_tagline = ( '1' == $generate_settings['hide_tagline'] || '' == $tagline ) ? true : false; + + // Build our site title. + $site_title = apply_filters( 'generate_site_title_output', sprintf( + '<%1$s class="main-title" itemprop="headline"> + + %3$s + + ', + ( is_front_page() && is_home() ) ? 'h1' : 'p', + esc_url( apply_filters( 'generate_site_title_href', home_url( '/' ) ) ), + get_bloginfo( 'name' ) + ) ); + + // Build our tagline. + $site_tagline = apply_filters( 'generate_site_description_output', sprintf( + '

        + %1$s +

        ', + html_entity_decode( get_bloginfo( 'description', 'display' ) ) + ) ); + + // Site title and tagline. + if ( false == $disable_title || false == $disable_tagline ) { + echo apply_filters( 'generate_site_branding_output', sprintf( // WPCS: XSS ok, sanitization ok. + '
        + %1$s + %2$s +
        ', + ( ! $disable_title ) ? $site_title : '', + ( ! $disable_tagline ) ? $site_tagline : '' + ) ); + } + } +} + +if ( ! function_exists( 'generate_construct_header_widget' ) ) { + /** + * Build the header widget. + * + * @since 1.3.28 + */ + function generate_construct_header_widget() { + if ( is_active_sidebar( 'header' ) ) : ?> +
        + +
        + +
        > +
        + +
        +
        + ' . "\n", esc_url( get_bloginfo( 'pingback_url' ) ) ); + } + } +} + +if ( ! function_exists( 'generate_add_viewport' ) ) { + add_action( 'wp_head', 'generate_add_viewport' ); + /** + * Add viewport to wp_head. + * + * @since 1.1.0 + */ + function generate_add_viewport() { + echo apply_filters( 'generate_meta_viewport', '' ); // WPCS: XSS ok. + } +} + +add_action( 'generate_before_header', 'generate_do_skip_to_content_link', 2 ); +/** + * Add skip to content link before the header. + * + * @since 2.0 + */ +function generate_do_skip_to_content_link() { + printf( '', + esc_attr__( 'Skip to content', 'generatepress' ), + esc_html__( 'Skip to content', 'generatepress' ) + ); +} diff --git a/wp-themes/generatepress/inc/structure/navigation.php b/wp-themes/generatepress/inc/structure/navigation.php new file mode 100644 index 0000000..d354ed9 --- /dev/null +++ b/wp-themes/generatepress/inc/structure/navigation.php @@ -0,0 +1,360 @@ + + + + + '; + generate_navigation_position(); + echo ''; + } + } +} + +if ( ! function_exists( 'generate_add_navigation_before_left_sidebar' ) ) { + add_action( 'generate_before_left_sidebar_content', 'generate_add_navigation_before_left_sidebar', 5 ); + function generate_add_navigation_before_left_sidebar() { + if ( 'nav-left-sidebar' == generate_get_navigation_location() ) { + echo '
        '; + generate_navigation_position(); + echo '
        '; + } + } +} + +if ( ! class_exists( 'Generate_Page_Walker' ) && class_exists( 'Walker_Page' ) ) { + /** + * Add current-menu-item to the current item if no theme location is set + * This means we don't have to duplicate CSS properties for current_page_item and current-menu-item + * + * @since 1.3.21 + */ + class Generate_Page_Walker extends Walker_Page { + function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) { + $css_class = array( 'page_item', 'page-item-' . $page->ID ); + $button = ''; + + if ( isset( $args['pages_with_children'][ $page->ID ] ) ) { + $css_class[] = 'menu-item-has-children'; + $button = ''; + } + + if ( ! empty( $current_page ) ) { + $_current_page = get_post( $current_page ); + if ( $_current_page && in_array( $page->ID, $_current_page->ancestors ) ) { + $css_class[] = 'current-menu-ancestor'; + } + if ( $page->ID == $current_page ) { + $css_class[] = 'current-menu-item'; + } elseif ( $_current_page && $page->ID == $_current_page->post_parent ) { + $css_class[] = 'current-menu-parent'; + } + } elseif ( $page->ID == get_option( 'page_for_posts' ) ) { + $css_class[] = 'current-menu-parent'; + } + + $css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) ); + + $args['link_before'] = empty( $args['link_before'] ) ? '' : $args['link_before']; + $args['link_after'] = empty( $args['link_after'] ) ? '' : $args['link_after']; + + $output .= sprintf( + '
      • %s%s%s%s', + $css_classes, + get_permalink( $page->ID ), + $args['link_before'], + apply_filters( 'the_title', $page->post_title, $page->ID ), + $args['link_after'], + $button + ); + } + } +} + +if ( ! function_exists( 'generate_dropdown_icon_to_menu_link' ) ) { + add_filter( 'nav_menu_item_title', 'generate_dropdown_icon_to_menu_link', 10, 4 ); + /** + * Add dropdown icon if menu item has children. + * + * @since 1.3.42 + * + * @param string $title The menu item title. + * @param WP_Post $item All of our menu item data. + * @param stdClass $args All of our menu item args. + * @param int $dept Depth of menu item. + * @return string The menu item. + */ + function generate_dropdown_icon_to_menu_link( $title, $item, $args, $depth ) { + + $role = 'presentation'; + $tabindex = ''; + + if ( 'click-arrow' === generate_get_setting( 'nav_dropdown_type' ) ) { + $role = 'button'; + $tabindex = ' tabindex="0"'; + } + + // Loop through our menu items and add our dropdown icons. + if ( 'main-nav' === $args->container_class ) { + foreach ( $item->classes as $value ) { + if ( 'menu-item-has-children' === $value ) { + $title = $title . ''; + } + } + } + + // Return our title. + return $title; + } +} + +if ( ! function_exists( 'generate_navigation_search' ) ) { + add_action( 'generate_inside_navigation', 'generate_navigation_search' ); + /** + * Add the search bar to the navigation. + * + * @since 1.1.4 + */ + function generate_navigation_search() { + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + + if ( 'enable' !== $generate_settings['nav_search'] ) { + return; + } + + echo apply_filters( 'generate_navigation_search_output', sprintf( // WPCS: XSS ok, sanitization ok. + '', + esc_url( home_url( '/' ) ), + esc_attr( get_search_query() ), + esc_attr_x( 'Search', 'label', 'generatepress' ) + )); + } +} + +if ( ! function_exists( 'generate_menu_search_icon' ) ) { + add_filter( 'wp_nav_menu_items', 'generate_menu_search_icon', 10, 2 ); + /** + * Add search icon to primary menu if set + * + * @since 1.2.9.7 + * + * @param string $nav The HTML list content for the menu items. + * @param stdClass $args An object containing wp_nav_menu() arguments. + * @return string The search icon menu item. + */ + function generate_menu_search_icon( $nav, $args ) { + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + + // If the search icon isn't enabled, return the regular nav. + if ( 'enable' !== $generate_settings['nav_search'] ) { + return $nav; + } + + // If our primary menu is set, add the search icon. + if ( $args->theme_location == 'primary' ) { + return $nav . '
      • ' . _x( 'Search', 'submit button', 'generatepress' ) . '
      • '; + } + + // Our primary menu isn't set, return the regular nav. + // In this case, the search icon is added to the generate_menu_fallback() function in navigation.php. + return $nav; + } +} + +if ( ! function_exists( 'generate_mobile_menu_search_icon' ) ) { + add_action( 'generate_inside_navigation', 'generate_mobile_menu_search_icon' ); + /** + * Add search icon to mobile menu bar + * + * @since 1.3.12 + */ + function generate_mobile_menu_search_icon() { + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + + // If the search icon isn't enabled, return the regular nav. + if ( 'enable' !== $generate_settings['nav_search'] ) { + return; + } + + ?> +
        + + + + + + +
        + + + post_parent ) : get_adjacent_post( false, '', true ); + $next = get_adjacent_post( false, '', false ); + + if ( ! $next && ! $previous ) { + return; + } + } + + // Don't print empty markup in archives if there's only one page. + if ( $wp_query->max_num_pages < 2 && ( is_home() || is_archive() || is_search() ) ) { + return; + } + + $nav_class = ( is_single() ) ? 'post-navigation' : 'paging-navigation'; + $category_specific = apply_filters( 'generate_category_post_navigation', false ); + ?> + + %3$s'; + } + + return $template; + } +} + +if ( ! function_exists( 'generate_posted_on' ) ) { + /** + * Prints HTML with meta information for the current post-date/time and author. + * + * @since 0.1 + */ + function generate_posted_on() { + $date = apply_filters( 'generate_post_date', true ); + $author = apply_filters( 'generate_post_author', true ); + + $time_string = ''; + if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { + $time_string = '' . $time_string; + } + + $time_string = sprintf( $time_string, + esc_attr( get_the_date( 'c' ) ), + esc_html( get_the_date() ), + esc_attr( get_the_modified_date( 'c' ) ), + esc_html( get_the_modified_date() ) + ); + + // If our date is enabled, show it. + if ( $date ) { + echo apply_filters( 'generate_post_date_output', sprintf( '%1$s', // WPCS: XSS ok, sanitization ok. + sprintf( '%3$s', + esc_url( get_permalink() ), + esc_attr( get_the_time() ), + $time_string + ) + ), $time_string ); + } + + // If our author is enabled, show it. + if ( $author ) { + echo apply_filters( 'generate_post_author_output', sprintf( ' %1$s', // WPCS: XSS ok, sanitization ok. + sprintf( '', + __( 'by', 'generatepress' ), + esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), + /* translators: 1: Author name */ + esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ), + esc_html( get_the_author() ) + ) + ) ); + } + } +} + +if ( ! function_exists( 'generate_entry_meta' ) ) { + /** + * Prints HTML with meta information for the categories, tags. + * + * @since 1.2.5 + */ + function generate_entry_meta() { + $categories = apply_filters( 'generate_show_categories', true ); + $tags = apply_filters( 'generate_show_tags', true ); + $comments = apply_filters( 'generate_show_comments', true ); + + $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'generatepress' ) ); + if ( $categories_list && $categories ) { + echo apply_filters( 'generate_category_list_output', sprintf( '%1$s %2$s', // WPCS: XSS ok, sanitization ok. + esc_html_x( 'Categories', 'Used before category names.', 'generatepress' ), + $categories_list + ) ); + } + + $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'generatepress' ) ); + if ( $tags_list && $tags ) { + echo apply_filters( 'generate_tag_list_output', sprintf( '%1$s %2$s', // WPCS: XSS ok, sanitization ok. + esc_html_x( 'Tags', 'Used before tag names.', 'generatepress' ), + $tags_list + ) ); + } + + if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) && $comments ) { + echo ''; + comments_popup_link( __( 'Leave a comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) ); + echo ''; + } + } +} + +if ( ! function_exists( 'generate_excerpt_more' ) ) { + add_filter( 'excerpt_more', 'generate_excerpt_more' ); + /** + * Prints the read more HTML to post excerpts. + * + * @since 0.1 + * + * @param string $more The string shown within the more link. + * @return string The HTML for the more link. + */ + function generate_excerpt_more( $more ) { + return apply_filters( 'generate_excerpt_more_output', sprintf( ' ... %3$s%4$s', + the_title_attribute( 'echo=0' ), + esc_url( get_permalink( get_the_ID() ) ), + __( 'Read more', 'generatepress' ), + '' . get_the_title() . '' + ) ); + } +} + +if ( ! function_exists( 'generate_content_more' ) ) { + add_filter( 'the_content_more_link', 'generate_content_more' ); + /** + * Prints the read more HTML to post content using the more tag. + * + * @since 0.1 + * + * @param string $more The string shown within the more link. + * @return string The HTML for the more link + */ + function generate_content_more( $more ) { + return apply_filters( 'generate_content_more_link_output', sprintf( '

        %3$s%4$s

        ', + the_title_attribute( 'echo=0' ), + esc_url( get_permalink( get_the_ID() ) . apply_filters( 'generate_more_jump','#more-' . get_the_ID() ) ), + __( 'Read more', 'generatepress' ), + '' . get_the_title() . '' + ) ); + } +} + +if ( ! function_exists( 'generate_post_meta' ) ) { + add_action( 'generate_after_entry_title', 'generate_post_meta' ); + /** + * Build the post meta. + * + * @since 1.3.29 + */ + function generate_post_meta() { + if ( 'post' == get_post_type() ) : ?> +
        + +
        + + + ID, '_generate-sidebar-layout-meta', true ) : ''; + + // Set up BuddyPress variable + $buddypress = false; + if ( function_exists( 'is_buddypress' ) ) { + $buddypress = ( is_buddypress() ) ? true : false; + } + + // If we're on the single post page + // And if we're not on a BuddyPress page - fixes a bug where BP thinks is_single() is true + if ( is_single() && ! $buddypress ) { + $layout = null; + $layout = $generate_settings['single_layout_setting']; + } + + // If the metabox is set, use it instead of the global settings + if ( '' !== $layout_meta && false !== $layout_meta ) { + $layout = $layout_meta; + } + + // If we're on the blog, archive, attachment etc.. + if ( is_home() || is_archive() || is_search() || is_tax() ) { + $layout = null; + $layout = $generate_settings['blog_layout_setting']; + } + + // Finally, return the layout + return apply_filters( 'generate_sidebar_layout', $layout ); + } +} + +if ( ! function_exists( 'generate_get_footer_widgets' ) ) { + /** + * Get the footer widgets for the current page + * + * @since 0.1 + * + * @return int The number of footer widgets. + */ + function generate_get_footer_widgets() { + // Get current post + global $post; + + // Get Customizer options + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + + // Set up the footer widget variable + $widgets = $generate_settings['footer_widget_setting']; + + // Get the individual footer widget metabox value + $widgets_meta = ( isset( $post ) ) ? get_post_meta( $post->ID, '_generate-footer-widget-meta', true ) : ''; + + // If we're not on a single page or post, the metabox hasn't been set + if ( ! is_singular() ) { + $widgets_meta = ''; + } + + // If we have a metabox option set, use it + if ( '' !== $widgets_meta && false !== $widgets_meta ) { + $widgets = $widgets_meta; + } + + // Finally, return the layout + return apply_filters( 'generate_footer_widgets', $widgets ); + } +} + +if ( ! function_exists( 'generate_show_excerpt' ) ) { + /** + * Figure out if we should show the blog excerpts or full posts + * @since 1.3.15 + */ + function generate_show_excerpt() { + // Get current post + global $post; + + // Get Customizer settings + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_defaults() + ); + + // Check to see if the more tag is being used + $more_tag = apply_filters( 'generate_more_tag', strpos( $post->post_content, '' ) ); + + // Check the post format + $format = ( false !== get_post_format() ) ? get_post_format() : 'standard'; + + // Get the excerpt setting from the Customizer + $show_excerpt = ( 'excerpt' == $generate_settings['post_content'] ) ? true : false; + + // If our post format isn't standard, show the full content + $show_excerpt = ( 'standard' !== $format ) ? false : $show_excerpt; + + // If the more tag is found, show the full content + $show_excerpt = ( $more_tag ) ? false : $show_excerpt; + + // If we're on a search results page, show the excerpt + $show_excerpt = ( is_search() ) ? true : $show_excerpt; + + // Return our value + return apply_filters( 'generate_show_excerpt', $show_excerpt ); + } +} + +if ( ! function_exists( 'generate_show_title' ) ) { + /** + * Check to see if we should show our page/post title or not. + * + * @since 1.3.18 + * + * @return bool Whether to show the content title. + */ + function generate_show_title() { + return apply_filters( 'generate_show_title', true ); + } +} + +if ( ! function_exists( 'generate_get_premium_url' ) ) { + /** + * Generate a URL to our premium add-ons. + * Allows the use of a referral ID and campaign. + * + * @since 1.3.42 + * + * @param string $url URL to premium page. + * @return string The URL to generatepress.com. + */ + function generate_get_premium_url( $url = 'https://generatepress.com/premium' ) { + $url = trailingslashit( $url ); + + $args = apply_filters( 'generate_premium_url_args', array( + 'ref' => null, + 'campaign' => null, + ) ); + + // Set up our URL if we have an ID + if ( isset( $args['ref'] ) ) { + $url = add_query_arg( 'ref', absint( $args['ref'] ), $url ); + } + + // Set up our URL if we have a campaign + if ( isset( $args['campaign'] ) ) { + $url = add_query_arg( 'campaign', sanitize_text_field( $args['campaign'] ), $url ); + } + + return esc_url( $url ); + } +} + +if ( ! function_exists( 'generate_padding_css' ) ) { + /** + * Shorten our padding/margin values into shorthand form. + * + * @since 0.1 + * + * @param int $top Top spacing. + * @param int $right Right spacing. + * @param int $bottom Bottom spacing. + * @param int $left Left spacing. + * @return string Element spacing values. + */ + function generate_padding_css( $top, $right, $bottom, $left ) { + $padding_top = ( isset( $top ) && '' !== $top ) ? absint( $top ) . 'px ' : '0px '; + $padding_right = ( isset( $right ) && '' !== $right ) ? absint( $right ) . 'px ' : '0px '; + $padding_bottom = ( isset( $bottom ) && '' !== $bottom ) ? absint( $bottom ) . 'px ' : '0px '; + $padding_left = ( isset( $left ) && '' !== $left ) ? absint( $left ) . 'px' : '0px'; + + // If all of our values are the same, we can return one value only + if ( ( absint( $padding_top ) === absint( $padding_right ) ) && ( absint( $padding_right ) === absint( $padding_bottom ) ) && ( absint( $padding_bottom ) === absint( $padding_left ) ) ) { + return $padding_left; + } + + return $padding_top . $padding_right . $padding_bottom . $padding_left; + } +} + +if ( ! function_exists( 'generate_get_link_url' ) ) { + /** + * Return the post URL. + * + * Falls back to the post permalink if no URL is found in the post. + * + * @since 1.2.5 + * + * @see get_url_in_content() + * @return string The Link format URL. + */ + function generate_get_link_url() { + $has_url = get_url_in_content( get_the_content() ); + + return $has_url ? $has_url : apply_filters( 'the_permalink', get_permalink() ); + } +} + +if ( ! function_exists( 'generate_get_navigation_location' ) ) { + /** + * Get the location of the navigation and filter it. + * + * @since 1.3.41 + * + * @return string The primary menu location. + */ + function generate_get_navigation_location() { + return apply_filters( 'generate_navigation_location', generate_get_setting( 'nav_position_setting' ) ); + } +} diff --git a/wp-themes/generatepress/inc/typography.php b/wp-themes/generatepress/inc/typography.php new file mode 100644 index 0000000..a01b785 --- /dev/null +++ b/wp-themes/generatepress/inc/typography.php @@ -0,0 +1,650 @@ +register_control_type( 'Generate_Typography_Customize_Control' ); + $wp_customize->register_control_type( 'Generate_Range_Slider_Control' ); + } + + $wp_customize->add_section( + 'font_section', + array( + 'title' => __( 'Typography', 'generatepress' ), + 'capability' => 'edit_theme_options', + 'description' => '', + 'priority' => 30, + ) + ); + + $wp_customize->add_setting( + 'generate_settings[font_body]', + array( + 'default' => $defaults['font_body'], + 'type' => 'option', + 'sanitize_callback' => 'sanitize_text_field', + ) + ); + + $wp_customize->add_setting( + 'font_body_category', + array( + 'default' => $defaults['font_body_category'], + 'sanitize_callback' => 'sanitize_text_field', + ) + ); + + $wp_customize->add_setting( + 'font_body_variants', + array( + 'default' => $defaults['font_body_variants'], + 'sanitize_callback' => 'generate_sanitize_variants', + ) + ); + + $wp_customize->add_setting( + 'generate_settings[body_font_weight]', + array( + 'default' => $defaults['body_font_weight'], + 'type' => 'option', + 'sanitize_callback' => 'sanitize_key', + 'transport' => 'postMessage', + ) + ); + + $wp_customize->add_setting( + 'generate_settings[body_font_transform]', + array( + 'default' => $defaults['body_font_transform'], + 'type' => 'option', + 'sanitize_callback' => 'sanitize_key', + 'transport' => 'postMessage', + + ) + ); + + $wp_customize->add_control( + new Generate_Typography_Customize_Control( + $wp_customize, + 'body_typography', + array( + 'section' => 'font_section', + 'priority' => 1, + 'settings' => array( + 'family' => 'generate_settings[font_body]', + 'variant' => 'font_body_variants', + 'category' => 'font_body_category', + 'weight' => 'generate_settings[body_font_weight]', + 'transform' => 'generate_settings[body_font_transform]', + ), + ) + ) + ); + + $wp_customize->add_setting( + 'generate_settings[body_font_size]', + array( + 'default' => $defaults['body_font_size'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_integer', + 'transport' => 'postMessage', + ) + ); + + $wp_customize->add_control( + new Generate_Range_Slider_Control( + $wp_customize, + 'generate_settings[body_font_size]', + array( + 'type' => 'generatepress-range-slider', + 'description' => __( 'Font size', 'generatepress' ), + 'section' => 'font_section', + 'settings' => array( + 'desktop' => 'generate_settings[body_font_size]', + ), + 'choices' => array( + 'desktop' => array( + 'min' => 6, + 'max' => 25, + 'step' => 1, + 'edit' => true, + 'unit' => 'px', + ), + ), + 'priority' => 40, + ) + ) + ); + + $wp_customize->add_setting( + 'generate_settings[body_line_height]', + array( + 'default' => $defaults['body_line_height'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_decimal_integer', + 'transport' => 'postMessage', + ) + ); + + $wp_customize->add_control( + new Generate_Range_Slider_Control( + $wp_customize, + 'generate_settings[body_line_height]', + array( + 'type' => 'generatepress-range-slider', + 'description' => __( 'Line height', 'generatepress' ), + 'section' => 'font_section', + 'settings' => array( + 'desktop' => 'generate_settings[body_line_height]', + ), + 'choices' => array( + 'desktop' => array( + 'min' => 1, + 'max' => 3, + 'step' => .1, + 'edit' => true, + 'unit' => '', + ), + ), + 'priority' => 45, + ) + ) + ); + + $wp_customize->add_setting( + 'generate_settings[paragraph_margin]', + array( + 'default' => $defaults['paragraph_margin'], + 'type' => 'option', + 'sanitize_callback' => 'generate_sanitize_decimal_integer', + 'transport' => 'postMessage', + ) + ); + + $wp_customize->add_control( + new Generate_Range_Slider_Control( + $wp_customize, + 'generate_settings[paragraph_margin]', + array( + 'type' => 'generatepress-range-slider', + 'description' => __( 'Paragraph margin', 'generatepress' ), + 'section' => 'font_section', + 'settings' => array( + 'desktop' => 'generate_settings[paragraph_margin]', + ), + 'choices' => array( + 'desktop' => array( + 'min' => 0, + 'max' => 5, + 'step' => .1, + 'edit' => true, + 'unit' => 'em', + ), + ), + 'priority' => 47, + ) + ) + ); + + if ( ! function_exists( 'generate_fonts_customize_register' ) && ! defined( 'GP_PREMIUM_VERSION' ) ) { + $wp_customize->add_control( + new Generate_Customize_Misc_Control( + $wp_customize, + 'typography_get_addon_desc', + array( + 'section' => 'font_section', + 'type' => 'addon', + 'label' => __( 'Learn more','generatepress' ), + 'description' => __( 'More options are available for this section in our premium version.', 'generatepress' ), + 'url' => generate_get_premium_url( 'https://generatepress.com/downloads/generate-typography/' ), + 'priority' => 50, + 'settings' => ( isset( $wp_customize->selective_refresh ) ) ? array() : 'blogname', + ) + ) + ); + } + } +} + +if ( ! function_exists( 'generate_get_all_google_fonts' ) ) { + /** + * Return an array of all of our Google Fonts. + * + * @since 1.3.0 + * @param string $amount How many fonts to return. + * @return array The list of Google Fonts. + */ + function generate_get_all_google_fonts( $amount = 'all' ) { + // Our big list Google Fonts + // We use json_decode to reduce PHP memory usage + // Adding them as a PHP array seems to use quite a bit more memory + $content = json_decode( '[{"family":"Roboto","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"]},{"family":"Open Sans","category":"sans-serif","variants":["300","300italic","regular","italic","600","600italic","700","700italic","800","800italic"]},{"family":"Lato","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"]},{"family":"Slabo 27px","category":"serif","variants":["regular"]},{"family":"Oswald","category":"sans-serif","variants":["200","300","regular","500","600","700"]},{"family":"Roboto Condensed","category":"sans-serif","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Source Sans Pro","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900","900italic"]},{"family":"Montserrat","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Raleway","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"PT Sans","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Roboto Slab","category":"serif","variants":["100","300","regular","700"]},{"family":"Merriweather","category":"serif","variants":["300","300italic","regular","italic","700","700italic","900","900italic"]},{"family":"Open Sans Condensed","category":"sans-serif","variants":["300","300italic","700"]},{"family":"Droid Sans","category":"sans-serif","variants":["regular","700"]},{"family":"Lora","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Ubuntu","category":"sans-serif","variants":["300","300italic","regular","italic","500","500italic","700","700italic"]},{"family":"Droid Serif","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Playfair Display","category":"serif","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Arimo","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Noto Sans","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"PT Serif","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Titillium Web","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"]},{"family":"PT Sans Narrow","category":"sans-serif","variants":["regular","700"]},{"family":"Muli","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Indie Flower","category":"handwriting","variants":["regular"]},{"family":"Bitter","category":"serif","variants":["regular","italic","700"]},{"family":"Poppins","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Inconsolata","category":"monospace","variants":["regular","700"]},{"family":"Dosis","category":"sans-serif","variants":["200","300","regular","500","600","700","800"]},{"family":"Fjalla One","category":"sans-serif","variants":["regular"]},{"family":"Oxygen","category":"sans-serif","variants":["300","regular","700"]},{"family":"Hind","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Cabin","category":"sans-serif","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Anton","category":"sans-serif","variants":["regular"]},{"family":"Arvo","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Noto Serif","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Crimson Text","category":"serif","variants":["regular","italic","600","600italic","700","700italic"]},{"family":"Lobster","category":"display","variants":["regular"]},{"family":"Yanone Kaffeesatz","category":"sans-serif","variants":["200","300","regular","700"]},{"family":"Nunito","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Bree Serif","category":"serif","variants":["regular"]},{"family":"Catamaran","category":"sans-serif","variants":["100","200","300","regular","500","600","700","800","900"]},{"family":"Libre Baskerville","category":"serif","variants":["regular","italic","700"]},{"family":"Abel","category":"sans-serif","variants":["regular"]},{"family":"Josefin Sans","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"]},{"family":"Fira Sans","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Gloria Hallelujah","category":"handwriting","variants":["regular"]},{"family":"Abril Fatface","category":"display","variants":["regular"]},{"family":"Exo 2","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Merriweather Sans","category":"sans-serif","variants":["300","300italic","regular","italic","700","700italic","800","800italic"]},{"family":"Pacifico","category":"handwriting","variants":["regular"]},{"family":"Roboto Mono","category":"monospace","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic"]},{"family":"Varela Round","category":"sans-serif","variants":["regular"]},{"family":"Asap","category":"sans-serif","variants":["regular","italic","500","500italic","700","700italic"]},{"family":"Amatic SC","category":"handwriting","variants":["regular","700"]},{"family":"Quicksand","category":"sans-serif","variants":["300","regular","500","700"]},{"family":"Karla","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Ubuntu Condensed","category":"sans-serif","variants":["regular"]},{"family":"Signika","category":"sans-serif","variants":["300","regular","600","700"]},{"family":"Alegreya","category":"serif","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Questrial","category":"sans-serif","variants":["regular"]},{"family":"Rubik","category":"sans-serif","variants":["300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"]},{"family":"Shadows Into Light","category":"handwriting","variants":["regular"]},{"family":"PT Sans Caption","category":"sans-serif","variants":["regular","700"]},{"family":"Archivo Narrow","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Play","category":"sans-serif","variants":["regular","700"]},{"family":"Cuprum","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Dancing Script","category":"handwriting","variants":["regular","700"]},{"family":"Rokkitt","category":"serif","variants":["100","200","300","regular","500","600","700","800","900"]},{"family":"Work Sans","category":"sans-serif","variants":["100","200","300","regular","500","600","700","800","900"]},{"family":"Francois One","category":"sans-serif","variants":["regular"]},{"family":"Vollkorn","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Source Code Pro","category":"monospace","variants":["200","300","regular","500","600","700","900"]},{"family":"Exo","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Maven Pro","category":"sans-serif","variants":["regular","500","700","900"]},{"family":"Architects Daughter","category":"handwriting","variants":["regular"]},{"family":"Orbitron","category":"sans-serif","variants":["regular","500","700","900"]},{"family":"Pathway Gothic One","category":"sans-serif","variants":["regular"]},{"family":"Acme","category":"sans-serif","variants":["regular"]},{"family":"Ropa Sans","category":"sans-serif","variants":["regular","italic"]},{"family":"Patua One","category":"display","variants":["regular"]},{"family":"EB Garamond","category":"serif","variants":["regular"]},{"family":"Lobster Two","category":"display","variants":["regular","italic","700","700italic"]},{"family":"Crete Round","category":"serif","variants":["regular","italic"]},{"family":"Cinzel","category":"serif","variants":["regular","700","900"]},{"family":"Josefin Slab","category":"serif","variants":["100","100italic","300","300italic","regular","italic","600","600italic","700","700italic"]},{"family":"Source Serif Pro","category":"serif","variants":["regular","600","700"]},{"family":"Alegreya Sans","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},{"family":"Comfortaa","category":"display","variants":["300","regular","700"]},{"family":"Russo One","category":"sans-serif","variants":["regular"]},{"family":"News Cycle","category":"sans-serif","variants":["regular","700"]},{"family":"ABeeZee","category":"sans-serif","variants":["regular","italic"]},{"family":"Yellowtail","category":"handwriting","variants":["regular"]},{"family":"Noticia Text","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Monda","category":"sans-serif","variants":["regular","700"]},{"family":"Quattrocento Sans","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Hammersmith One","category":"sans-serif","variants":["regular"]},{"family":"Libre Franklin","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Satisfy","category":"handwriting","variants":["regular"]},{"family":"Pontano Sans","category":"sans-serif","variants":["regular"]},{"family":"Righteous","category":"display","variants":["regular"]},{"family":"Poiret One","category":"display","variants":["regular"]},{"family":"BenchNine","category":"sans-serif","variants":["300","regular","700"]},{"family":"Arapey","category":"serif","variants":["regular","italic"]},{"family":"Kaushan Script","category":"handwriting","variants":["regular"]},{"family":"Economica","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Kanit","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Old Standard TT","category":"serif","variants":["regular","italic","700"]},{"family":"Sanchez","category":"serif","variants":["regular","italic"]},{"family":"Courgette","category":"handwriting","variants":["regular"]},{"family":"Quattrocento","category":"serif","variants":["regular","700"]},{"family":"Domine","category":"serif","variants":["regular","700"]},{"family":"Gudea","category":"sans-serif","variants":["regular","italic","700"]},{"family":"Permanent Marker","category":"handwriting","variants":["regular"]},{"family":"Armata","category":"sans-serif","variants":["regular"]},{"family":"Cantarell","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Archivo Black","category":"sans-serif","variants":["regular"]},{"family":"Istok Web","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Cardo","category":"serif","variants":["regular","italic","700"]},{"family":"Playfair Display SC","category":"serif","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Passion One","category":"display","variants":["regular","700","900"]},{"family":"Tinos","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Cookie","category":"handwriting","variants":["regular"]},{"family":"Cormorant Garamond","category":"serif","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Philosopher","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Yantramanav","category":"sans-serif","variants":["100","300","regular","500","700","900"]},{"family":"Chewy","category":"display","variants":["regular"]},{"family":"Antic Slab","category":"serif","variants":["regular"]},{"family":"Handlee","category":"handwriting","variants":["regular"]},{"family":"Teko","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Boogaloo","category":"display","variants":["regular"]},{"family":"Vidaloka","category":"serif","variants":["regular"]},{"family":"Audiowide","category":"display","variants":["regular"]},{"family":"Coming Soon","category":"handwriting","variants":["regular"]},{"family":"Alfa Slab One","category":"display","variants":["regular"]},{"family":"Cabin Condensed","category":"sans-serif","variants":["regular","500","600","700"]},{"family":"Ruda","category":"sans-serif","variants":["regular","700","900"]},{"family":"Ek Mukta","category":"sans-serif","variants":["200","300","regular","500","600","700","800"]},{"family":"Changa One","category":"display","variants":["regular","italic"]},{"family":"Tangerine","category":"handwriting","variants":["regular","700"]},{"family":"Great Vibes","category":"handwriting","variants":["regular"]},{"family":"Sintony","category":"sans-serif","variants":["regular","700"]},{"family":"Khand","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Bevan","category":"display","variants":["regular"]},{"family":"Kalam","category":"handwriting","variants":["300","regular","700"]},{"family":"Days One","category":"sans-serif","variants":["regular"]},{"family":"Bangers","category":"display","variants":["regular"]},{"family":"Rajdhani","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Droid Sans Mono","category":"monospace","variants":["regular"]},{"family":"Kreon","category":"serif","variants":["300","regular","700"]},{"family":"Rambla","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Shrikhand","category":"display","variants":["regular"]},{"family":"Fredoka One","category":"display","variants":["regular"]},{"family":"Shadows Into Light Two","category":"handwriting","variants":["regular"]},{"family":"Playball","category":"display","variants":["regular"]},{"family":"Neuton","category":"serif","variants":["200","300","regular","italic","700","800"]},{"family":"Copse","category":"serif","variants":["regular"]},{"family":"Didact Gothic","category":"sans-serif","variants":["regular"]},{"family":"Signika Negative","category":"sans-serif","variants":["300","regular","600","700"]},{"family":"Amiri","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Gentium Book Basic","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Glegoo","category":"serif","variants":["regular","700"]},{"family":"Oleo Script","category":"display","variants":["regular","700"]},{"family":"Voltaire","category":"sans-serif","variants":["regular"]},{"family":"Actor","category":"sans-serif","variants":["regular"]},{"family":"Amaranth","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Paytone One","category":"sans-serif","variants":["regular"]},{"family":"Volkhov","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Sorts Mill Goudy","category":"serif","variants":["regular","italic"]},{"family":"Bad Script","category":"handwriting","variants":["regular"]},{"family":"Coda","category":"display","variants":["regular","800"]},{"family":"Damion","category":"handwriting","variants":["regular"]},{"family":"Sacramento","category":"handwriting","variants":["regular"]},{"family":"Squada One","category":"display","variants":["regular"]},{"family":"Rock Salt","category":"handwriting","variants":["regular"]},{"family":"Adamina","category":"serif","variants":["regular"]},{"family":"Alice","category":"serif","variants":["regular"]},{"family":"Cantata One","category":"serif","variants":["regular"]},{"family":"Luckiest Guy","category":"display","variants":["regular"]},{"family":"Rochester","category":"handwriting","variants":["regular"]},{"family":"Covered By Your Grace","category":"handwriting","variants":["regular"]},{"family":"Heebo","category":"sans-serif","variants":["100","300","regular","500","700","800","900"]},{"family":"VT323","category":"monospace","variants":["regular"]},{"family":"Nothing You Could Do","category":"handwriting","variants":["regular"]},{"family":"Patrick Hand","category":"handwriting","variants":["regular"]},{"family":"Gentium Basic","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Nobile","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Rancho","category":"handwriting","variants":["regular"]},{"family":"Marck Script","category":"handwriting","variants":["regular"]},{"family":"Special Elite","category":"display","variants":["regular"]},{"family":"Julius Sans One","category":"sans-serif","variants":["regular"]},{"family":"Varela","category":"sans-serif","variants":["regular"]},{"family":"PT Mono","category":"monospace","variants":["regular"]},{"family":"Alex Brush","category":"handwriting","variants":["regular"]},{"family":"Homemade Apple","category":"handwriting","variants":["regular"]},{"family":"Scada","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Jura","category":"sans-serif","variants":["300","regular","500","600"]},{"family":"Antic","category":"sans-serif","variants":["regular"]},{"family":"Gochi Hand","category":"handwriting","variants":["regular"]},{"family":"Sarala","category":"sans-serif","variants":["regular","700"]},{"family":"Electrolize","category":"sans-serif","variants":["regular"]},{"family":"Sigmar One","category":"display","variants":["regular"]},{"family":"Candal","category":"sans-serif","variants":["regular"]},{"family":"Prata","category":"serif","variants":["regular"]},{"family":"Homenaje","category":"sans-serif","variants":["regular"]},{"family":"Pinyon Script","category":"handwriting","variants":["regular"]},{"family":"Unica One","category":"display","variants":["regular"]},{"family":"Basic","category":"sans-serif","variants":["regular"]},{"family":"Neucha","category":"handwriting","variants":["regular"]},{"family":"Convergence","category":"sans-serif","variants":["regular"]},{"family":"Molengo","category":"sans-serif","variants":["regular"]},{"family":"Caveat Brush","category":"handwriting","variants":["regular"]},{"family":"Monoton","category":"display","variants":["regular"]},{"family":"Calligraffitti","category":"handwriting","variants":["regular"]},{"family":"Kameron","category":"serif","variants":["regular","700"]},{"family":"Share","category":"display","variants":["regular","italic","700","700italic"]},{"family":"Alegreya Sans SC","category":"sans-serif","variants":["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},{"family":"Enriqueta","category":"serif","variants":["regular","700"]},{"family":"Martel","category":"serif","variants":["200","300","regular","600","700","800","900"]},{"family":"Black Ops One","category":"display","variants":["regular"]},{"family":"Just Another Hand","category":"handwriting","variants":["regular"]},{"family":"Caveat","category":"handwriting","variants":["regular","700"]},{"family":"PT Serif Caption","category":"serif","variants":["regular","italic"]},{"family":"Ultra","category":"serif","variants":["regular"]},{"family":"Ubuntu Mono","category":"monospace","variants":["regular","italic","700","700italic"]},{"family":"Carme","category":"sans-serif","variants":["regular"]},{"family":"Cousine","category":"monospace","variants":["regular","italic","700","700italic"]},{"family":"Cherry Cream Soda","category":"display","variants":["regular"]},{"family":"Reenie Beanie","category":"handwriting","variants":["regular"]},{"family":"Hind Siliguri","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Bubblegum Sans","category":"display","variants":["regular"]},{"family":"Aldrich","category":"sans-serif","variants":["regular"]},{"family":"Lustria","category":"serif","variants":["regular"]},{"family":"Alef","category":"sans-serif","variants":["regular","700"]},{"family":"Freckle Face","category":"display","variants":["regular"]},{"family":"Fanwood Text","category":"serif","variants":["regular","italic"]},{"family":"Advent Pro","category":"sans-serif","variants":["100","200","300","regular","500","600","700"]},{"family":"Allura","category":"handwriting","variants":["regular"]},{"family":"Ceviche One","category":"display","variants":["regular"]},{"family":"Press Start 2P","category":"display","variants":["regular"]},{"family":"Overlock","category":"display","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Niconne","category":"handwriting","variants":["regular"]},{"family":"Limelight","category":"display","variants":["regular"]},{"family":"Frank Ruhl Libre","category":"sans-serif","variants":["300","regular","500","700","900"]},{"family":"Allerta Stencil","category":"sans-serif","variants":["regular"]},{"family":"Marcellus","category":"serif","variants":["regular"]},{"family":"Pragati Narrow","category":"sans-serif","variants":["regular","700"]},{"family":"Michroma","category":"sans-serif","variants":["regular"]},{"family":"Fauna One","category":"serif","variants":["regular"]},{"family":"Syncopate","category":"sans-serif","variants":["regular","700"]},{"family":"Telex","category":"sans-serif","variants":["regular"]},{"family":"Marvel","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Cabin Sketch","category":"display","variants":["regular","700"]},{"family":"Hanuman","category":"serif","variants":["regular","700"]},{"family":"Cairo","category":"sans-serif","variants":["200","300","regular","600","700","900"]},{"family":"Chivo","category":"sans-serif","variants":["300","300italic","regular","italic","700","700italic","900","900italic"]},{"family":"Allerta","category":"sans-serif","variants":["regular"]},{"family":"Fugaz One","category":"display","variants":["regular"]},{"family":"Viga","category":"sans-serif","variants":["regular"]},{"family":"Ruslan Display","category":"display","variants":["regular"]},{"family":"Nixie One","category":"display","variants":["regular"]},{"family":"Marmelad","category":"sans-serif","variants":["regular"]},{"family":"Average","category":"serif","variants":["regular"]},{"family":"Spinnaker","category":"sans-serif","variants":["regular"]},{"family":"Leckerli One","category":"handwriting","variants":["regular"]},{"family":"Judson","category":"serif","variants":["regular","italic","700"]},{"family":"Lusitana","category":"serif","variants":["regular","700"]},{"family":"Montserrat Alternates","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Contrail One","category":"display","variants":["regular"]},{"family":"Oranienbaum","category":"serif","variants":["regular"]},{"family":"Hind Vadodara","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Rufina","category":"serif","variants":["regular","700"]},{"family":"Quantico","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Concert One","category":"display","variants":["regular"]},{"family":"Marcellus SC","category":"serif","variants":["regular"]},{"family":"Jockey One","category":"sans-serif","variants":["regular"]},{"family":"Parisienne","category":"handwriting","variants":["regular"]},{"family":"Carter One","category":"display","variants":["regular"]},{"family":"Arbutus Slab","category":"serif","variants":["regular"]},{"family":"Slabo 13px","category":"serif","variants":["regular"]},{"family":"Tauri","category":"sans-serif","variants":["regular"]},{"family":"Goudy Bookletter 1911","category":"serif","variants":["regular"]},{"family":"Carrois Gothic","category":"sans-serif","variants":["regular"]},{"family":"Sue Ellen Francisco","category":"handwriting","variants":["regular"]},{"family":"Walter Turncoat","category":"handwriting","variants":["regular"]},{"family":"Annie Use Your Telescope","category":"handwriting","variants":["regular"]},{"family":"Puritan","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Grand Hotel","category":"handwriting","variants":["regular"]},{"family":"Yesteryear","category":"handwriting","variants":["regular"]},{"family":"Jaldi","category":"sans-serif","variants":["regular","700"]},{"family":"Khula","category":"sans-serif","variants":["300","regular","600","700","800"]},{"family":"Cinzel Decorative","category":"display","variants":["regular","700","900"]},{"family":"Crafty Girls","category":"handwriting","variants":["regular"]},{"family":"Merienda","category":"handwriting","variants":["regular","700"]},{"family":"Hind Guntur","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Cutive","category":"serif","variants":["regular"]},{"family":"Prompt","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Coustard","category":"serif","variants":["regular","900"]},{"family":"Arima Madurai","category":"display","variants":["100","200","300","regular","500","700","800","900"]},{"family":"Doppio One","category":"sans-serif","variants":["regular"]},{"family":"Radley","category":"serif","variants":["regular","italic"]},{"family":"Fontdiner Swanky","category":"display","variants":["regular"]},{"family":"Iceland","category":"display","variants":["regular"]},{"family":"Alegreya SC","category":"serif","variants":["regular","italic","700","700italic","900","900italic"]},{"family":"Halant","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Schoolbell","category":"handwriting","variants":["regular"]},{"family":"Waiting for the Sunrise","category":"handwriting","variants":["regular"]},{"family":"Italianno","category":"handwriting","variants":["regular"]},{"family":"Fredericka the Great","category":"display","variants":["regular"]},{"family":"Average Sans","category":"sans-serif","variants":["regular"]},{"family":"Rosario","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Mr Dafoe","category":"handwriting","variants":["regular"]},{"family":"Port Lligat Slab","category":"serif","variants":["regular"]},{"family":"Aclonica","category":"sans-serif","variants":["regular"]},{"family":"Graduate","category":"display","variants":["regular"]},{"family":"Racing Sans One","category":"display","variants":["regular"]},{"family":"Berkshire Swash","category":"handwriting","variants":["regular"]},{"family":"Forum","category":"display","variants":["regular"]},{"family":"Anonymous Pro","category":"monospace","variants":["regular","italic","700","700italic"]},{"family":"Love Ya Like A Sister","category":"display","variants":["regular"]},{"family":"Nunito Sans","category":"sans-serif","variants":["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Magra","category":"sans-serif","variants":["regular","700"]},{"family":"Lateef","category":"handwriting","variants":["regular"]},{"family":"Assistant","category":"sans-serif","variants":["200","300","regular","600","700","800"]},{"family":"Six Caps","category":"sans-serif","variants":["regular"]},{"family":"Gilda Display","category":"serif","variants":["regular"]},{"family":"Oregano","category":"display","variants":["regular","italic"]},{"family":"Metrophobic","category":"sans-serif","variants":["regular"]},{"family":"Lalezar","category":"display","variants":["regular"]},{"family":"Caudex","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Kelly Slab","category":"display","variants":["regular"]},{"family":"Reem Kufi","category":"sans-serif","variants":["regular"]},{"family":"Cambay","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Gruppo","category":"display","variants":["regular"]},{"family":"Give You Glory","category":"handwriting","variants":["regular"]},{"family":"GFS Didot","category":"serif","variants":["regular"]},{"family":"Duru Sans","category":"sans-serif","variants":["regular"]},{"family":"Andika","category":"sans-serif","variants":["regular"]},{"family":"Tenor Sans","category":"sans-serif","variants":["regular"]},{"family":"Knewave","category":"display","variants":["regular"]},{"family":"Averia Serif Libre","category":"display","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Eczar","category":"serif","variants":["regular","500","600","700","800"]},{"family":"Inder","category":"sans-serif","variants":["regular"]},{"family":"Martel Sans","category":"sans-serif","variants":["200","300","regular","600","700","800","900"]},{"family":"Trocchi","category":"serif","variants":["regular"]},{"family":"Wire One","category":"sans-serif","variants":["regular"]},{"family":"Petit Formal Script","category":"handwriting","variants":["regular"]},{"family":"Mako","category":"sans-serif","variants":["regular"]},{"family":"Frijole","category":"display","variants":["regular"]},{"family":"Zeyada","category":"handwriting","variants":["regular"]},{"family":"Slackey","category":"display","variants":["regular"]},{"family":"Karma","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Mate","category":"serif","variants":["regular","italic"]},{"family":"Belleza","category":"sans-serif","variants":["regular"]},{"family":"Montez","category":"handwriting","variants":["regular"]},{"family":"Quando","category":"serif","variants":["regular"]},{"family":"Capriola","category":"sans-serif","variants":["regular"]},{"family":"Lilita One","category":"display","variants":["regular"]},{"family":"Trirong","category":"serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Lekton","category":"sans-serif","variants":["regular","italic","700"]},{"family":"Just Me Again Down Here","category":"handwriting","variants":["regular"]},{"family":"Bowlby One SC","category":"display","variants":["regular"]},{"family":"The Girl Next Door","category":"handwriting","variants":["regular"]},{"family":"Happy Monkey","category":"display","variants":["regular"]},{"family":"Merienda One","category":"handwriting","variants":["regular"]},{"family":"Alike","category":"serif","variants":["regular"]},{"family":"Chelsea Market","category":"display","variants":["regular"]},{"family":"Unkempt","category":"display","variants":["regular","700"]},{"family":"Anaheim","category":"sans-serif","variants":["regular"]},{"family":"Strait","category":"sans-serif","variants":["regular"]},{"family":"Brawler","category":"serif","variants":["regular"]},{"family":"Clicker Script","category":"handwriting","variants":["regular"]},{"family":"Delius","category":"handwriting","variants":["regular"]},{"family":"Mouse Memoirs","category":"sans-serif","variants":["regular"]},{"family":"IM Fell Double Pica","category":"serif","variants":["regular","italic"]},{"family":"Crushed","category":"display","variants":["regular"]},{"family":"Rammetto One","category":"display","variants":["regular"]},{"family":"Prosto One","category":"display","variants":["regular"]},{"family":"Kranky","category":"display","variants":["regular"]},{"family":"IM Fell English","category":"serif","variants":["regular","italic"]},{"family":"Aladin","category":"handwriting","variants":["regular"]},{"family":"Mr De Haviland","category":"handwriting","variants":["regular"]},{"family":"NTR","category":"sans-serif","variants":["regular"]},{"family":"Londrina Solid","category":"display","variants":["regular"]},{"family":"Skranji","category":"display","variants":["regular","700"]},{"family":"Allan","category":"display","variants":["regular","700"]},{"family":"Baumans","category":"display","variants":["regular"]},{"family":"Ovo","category":"serif","variants":["regular"]},{"family":"Changa","category":"sans-serif","variants":["200","300","regular","500","600","700","800"]},{"family":"Lemon","category":"display","variants":["regular"]},{"family":"Federo","category":"sans-serif","variants":["regular"]},{"family":"Herr Von Muellerhoff","category":"handwriting","variants":["regular"]},{"family":"Arizonia","category":"handwriting","variants":["regular"]},{"family":"Bowlby One","category":"display","variants":["regular"]},{"family":"Orienta","category":"sans-serif","variants":["regular"]},{"family":"Short Stack","category":"handwriting","variants":["regular"]},{"family":"Bungee Inline","category":"display","variants":["regular"]},{"family":"Andada","category":"serif","variants":["regular"]},{"family":"Baloo Paaji","category":"display","variants":["regular"]},{"family":"Oxygen Mono","category":"monospace","variants":["regular"]},{"family":"Yeseva One","category":"display","variants":["regular"]},{"family":"UnifrakturMaguntia","category":"display","variants":["regular"]},{"family":"Bentham","category":"serif","variants":["regular"]},{"family":"Londrina Outline","category":"display","variants":["regular"]},{"family":"Pompiere","category":"display","variants":["regular"]},{"family":"Gabriela","category":"serif","variants":["regular"]},{"family":"Qwigley","category":"handwriting","variants":["regular"]},{"family":"Nova Square","category":"display","variants":["regular"]},{"family":"Poly","category":"serif","variants":["regular","italic"]},{"family":"Sniglet","category":"display","variants":["regular","800"]},{"family":"Patrick Hand SC","category":"handwriting","variants":["regular"]},{"family":"Gravitas One","category":"display","variants":["regular"]},{"family":"Khmer","category":"display","variants":["regular"]},{"family":"Shojumaru","category":"display","variants":["regular"]},{"family":"Kurale","category":"serif","variants":["regular"]},{"family":"Gafata","category":"sans-serif","variants":["regular"]},{"family":"Biryani","category":"sans-serif","variants":["200","300","regular","600","700","800","900"]},{"family":"Cambo","category":"serif","variants":["regular"]},{"family":"Titan One","category":"display","variants":["regular"]},{"family":"Carrois Gothic SC","category":"sans-serif","variants":["regular"]},{"family":"La Belle Aurore","category":"handwriting","variants":["regular"]},{"family":"Holtwood One SC","category":"serif","variants":["regular"]},{"family":"Oleo Script Swash Caps","category":"display","variants":["regular","700"]},{"family":"Headland One","category":"serif","variants":["regular"]},{"family":"Cherry Swash","category":"display","variants":["regular","700"]},{"family":"Belgrano","category":"serif","variants":["regular"]},{"family":"Norican","category":"handwriting","variants":["regular"]},{"family":"Mountains of Christmas","category":"display","variants":["regular","700"]},{"family":"Julee","category":"handwriting","variants":["regular"]},{"family":"Ramabhadra","category":"sans-serif","variants":["regular"]},{"family":"Mallanna","category":"sans-serif","variants":["regular"]},{"family":"Kristi","category":"handwriting","variants":["regular"]},{"family":"Imprima","category":"sans-serif","variants":["regular"]},{"family":"Lily Script One","category":"display","variants":["regular"]},{"family":"Chau Philomene One","category":"sans-serif","variants":["regular","italic"]},{"family":"Bilbo Swash Caps","category":"handwriting","variants":["regular"]},{"family":"Finger Paint","category":"display","variants":["regular"]},{"family":"Voces","category":"display","variants":["regular"]},{"family":"Itim","category":"handwriting","variants":["regular"]},{"family":"Megrim","category":"display","variants":["regular"]},{"family":"Simonetta","category":"display","variants":["regular","italic","900","900italic"]},{"family":"Cutive Mono","category":"monospace","variants":["regular"]},{"family":"Stardos Stencil","category":"display","variants":["regular","700"]},{"family":"IM Fell DW Pica","category":"serif","variants":["regular","italic"]},{"family":"Unna","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Loved by the King","category":"handwriting","variants":["regular"]},{"family":"Prociono","category":"serif","variants":["regular"]},{"family":"Corben","category":"display","variants":["regular","700"]},{"family":"Amiko","category":"sans-serif","variants":["regular","600","700"]},{"family":"Denk One","category":"sans-serif","variants":["regular"]},{"family":"Palanquin","category":"sans-serif","variants":["100","200","300","regular","500","600","700"]},{"family":"Baloo","category":"display","variants":["regular"]},{"family":"Fondamento","category":"handwriting","variants":["regular","italic"]},{"family":"Seaweed Script","category":"display","variants":["regular"]},{"family":"Shanti","category":"sans-serif","variants":["regular"]},{"family":"Wendy One","category":"sans-serif","variants":["regular"]},{"family":"Raleway Dots","category":"display","variants":["regular"]},{"family":"Amethysta","category":"serif","variants":["regular"]},{"family":"Vast Shadow","category":"display","variants":["regular"]},{"family":"Stalemate","category":"handwriting","variants":["regular"]},{"family":"Fira Mono","category":"monospace","variants":["regular","500","700"]},{"family":"Expletus Sans","category":"display","variants":["regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Scheherazade","category":"serif","variants":["regular","700"]},{"family":"Fenix","category":"serif","variants":["regular"]},{"family":"Delius Swash Caps","category":"handwriting","variants":["regular"]},{"family":"Rouge Script","category":"handwriting","variants":["regular"]},{"family":"Life Savers","category":"display","variants":["regular","700"]},{"family":"IM Fell English SC","category":"serif","variants":["regular"]},{"family":"Meddon","category":"handwriting","variants":["regular"]},{"family":"Tienne","category":"serif","variants":["regular","700","900"]},{"family":"Over the Rainbow","category":"handwriting","variants":["regular"]},{"family":"Share Tech Mono","category":"monospace","variants":["regular"]},{"family":"Abhaya Libre","category":"serif","variants":["regular","500","600","700","800"]},{"family":"Kotta One","category":"serif","variants":["regular"]},{"family":"Pridi","category":"serif","variants":["200","300","regular","500","600","700"]},{"family":"Euphoria Script","category":"handwriting","variants":["regular"]},{"family":"Engagement","category":"handwriting","variants":["regular"]},{"family":"Podkova","category":"serif","variants":["regular","500","600","700","800"]},{"family":"Salsa","category":"display","variants":["regular"]},{"family":"Sofia","category":"handwriting","variants":["regular"]},{"family":"Suranna","category":"serif","variants":["regular"]},{"family":"Mada","category":"sans-serif","variants":["300","regular","500","900"]},{"family":"Chonburi","category":"display","variants":["regular"]},{"family":"Ledger","category":"serif","variants":["regular"]},{"family":"Italiana","category":"serif","variants":["regular"]},{"family":"Dawning of a New Day","category":"handwriting","variants":["regular"]},{"family":"Nokora","category":"serif","variants":["regular","700"]},{"family":"Angkor","category":"display","variants":["regular"]},{"family":"Medula One","category":"display","variants":["regular"]},{"family":"Taviraj","category":"serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Vampiro One","category":"display","variants":["regular"]},{"family":"Englebert","category":"sans-serif","variants":["regular"]},{"family":"Nova Mono","category":"monospace","variants":["regular"]},{"family":"Dorsa","category":"sans-serif","variants":["regular"]},{"family":"Averia Sans Libre","category":"display","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Cedarville Cursive","category":"handwriting","variants":["regular"]},{"family":"Geo","category":"sans-serif","variants":["regular","italic"]},{"family":"Rationale","category":"sans-serif","variants":["regular"]},{"family":"Balthazar","category":"serif","variants":["regular"]},{"family":"Sunshiney","category":"handwriting","variants":["regular"]},{"family":"Aguafina Script","category":"handwriting","variants":["regular"]},{"family":"Mystery Quest","category":"display","variants":["regular"]},{"family":"Fjord One","category":"serif","variants":["regular"]},{"family":"Fira Sans Extra Condensed","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Kadwa","category":"serif","variants":["regular","700"]},{"family":"McLaren","category":"display","variants":["regular"]},{"family":"Rye","category":"display","variants":["regular"]},{"family":"Sail","category":"display","variants":["regular"]},{"family":"Athiti","category":"sans-serif","variants":["200","300","regular","500","600","700"]},{"family":"Rosarivo","category":"serif","variants":["regular","italic"]},{"family":"Kite One","category":"sans-serif","variants":["regular"]},{"family":"Odor Mean Chey","category":"display","variants":["regular"]},{"family":"Numans","category":"sans-serif","variants":["regular"]},{"family":"Artifika","category":"serif","variants":["regular"]},{"family":"Poller One","category":"display","variants":["regular"]},{"family":"Gurajada","category":"serif","variants":["regular"]},{"family":"Inika","category":"serif","variants":["regular","700"]},{"family":"Mandali","category":"sans-serif","variants":["regular"]},{"family":"Bungee Shade","category":"display","variants":["regular"]},{"family":"Suwannaphum","category":"display","variants":["regular"]},{"family":"Mate SC","category":"serif","variants":["regular"]},{"family":"Creepster","category":"display","variants":["regular"]},{"family":"Arsenal","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Montserrat Subrayada","category":"sans-serif","variants":["regular","700"]},{"family":"Metamorphous","category":"display","variants":["regular"]},{"family":"Palanquin Dark","category":"sans-serif","variants":["regular","500","600","700"]},{"family":"Coda Caption","category":"sans-serif","variants":["800"]},{"family":"Dynalight","category":"display","variants":["regular"]},{"family":"Maitree","category":"serif","variants":["200","300","regular","500","600","700"]},{"family":"IM Fell French Canon","category":"serif","variants":["regular","italic"]},{"family":"Amarante","category":"display","variants":["regular"]},{"family":"Quintessential","category":"handwriting","variants":["regular"]},{"family":"Codystar","category":"display","variants":["300","regular"]},{"family":"Cantora One","category":"sans-serif","variants":["regular"]},{"family":"Aref Ruqaa","category":"serif","variants":["regular","700"]},{"family":"Griffy","category":"display","variants":["regular"]},{"family":"Revalia","category":"display","variants":["regular"]},{"family":"Buenard","category":"serif","variants":["regular","700"]},{"family":"Donegal One","category":"serif","variants":["regular"]},{"family":"IM Fell DW Pica SC","category":"serif","variants":["regular"]},{"family":"Habibi","category":"serif","variants":["regular"]},{"family":"Share Tech","category":"sans-serif","variants":["regular"]},{"family":"Flamenco","category":"display","variants":["300","regular"]},{"family":"Mitr","category":"sans-serif","variants":["200","300","regular","500","600","700"]},{"family":"Maiden Orange","category":"display","variants":["regular"]},{"family":"Diplomata SC","category":"display","variants":["regular"]},{"family":"Cormorant","category":"serif","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Delius Unicase","category":"handwriting","variants":["regular","700"]},{"family":"Stoke","category":"serif","variants":["300","regular"]},{"family":"Vibur","category":"handwriting","variants":["regular"]},{"family":"Sarpanch","category":"sans-serif","variants":["regular","500","600","700","800","900"]},{"family":"Baloo Bhaina","category":"display","variants":["regular"]},{"family":"Baloo Tamma","category":"display","variants":["regular"]},{"family":"Averia Libre","category":"display","variants":["300","300italic","regular","italic","700","700italic"]},{"family":"Esteban","category":"serif","variants":["regular"]},{"family":"Battambang","category":"display","variants":["regular","700"]},{"family":"Bokor","category":"display","variants":["regular"]},{"family":"Wallpoet","category":"display","variants":["regular"]},{"family":"IM Fell Great Primer","category":"serif","variants":["regular","italic"]},{"family":"Tulpen One","category":"display","variants":["regular"]},{"family":"Proza Libre","category":"sans-serif","variants":["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},{"family":"IM Fell French Canon SC","category":"serif","variants":["regular"]},{"family":"Vesper Libre","category":"serif","variants":["regular","500","700","900"]},{"family":"Rozha One","category":"serif","variants":["regular"]},{"family":"Sansita","category":"sans-serif","variants":["regular","italic","700","700italic","800","800italic","900","900italic"]},{"family":"Kavoon","category":"display","variants":["regular"]},{"family":"Della Respira","category":"serif","variants":["regular"]},{"family":"Milonga","category":"display","variants":["regular"]},{"family":"Condiment","category":"handwriting","variants":["regular"]},{"family":"Junge","category":"serif","variants":["regular"]},{"family":"New Rocker","category":"display","variants":["regular"]},{"family":"Chicle","category":"display","variants":["regular"]},{"family":"Mrs Saint Delafield","category":"handwriting","variants":["regular"]},{"family":"League Script","category":"handwriting","variants":["regular"]},{"family":"Miniver","category":"display","variants":["regular"]},{"family":"Galindo","category":"display","variants":["regular"]},{"family":"Moul","category":"display","variants":["regular"]},{"family":"Amatica SC","category":"display","variants":["regular","700"]},{"family":"Stint Ultra Expanded","category":"display","variants":["regular"]},{"family":"Yrsa","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Stint Ultra Condensed","category":"display","variants":["regular"]},{"family":"Suez One","category":"serif","variants":["regular"]},{"family":"Text Me One","category":"sans-serif","variants":["regular"]},{"family":"Buda","category":"display","variants":["300"]},{"family":"Ruluko","category":"sans-serif","variants":["regular"]},{"family":"Sonsie One","category":"display","variants":["regular"]},{"family":"Krona One","category":"sans-serif","variants":["regular"]},{"family":"Elsie","category":"display","variants":["regular","900"]},{"family":"Pangolin","category":"handwriting","variants":["regular"]},{"family":"Linden Hill","category":"serif","variants":["regular","italic"]},{"family":"Secular One","category":"sans-serif","variants":["regular"]},{"family":"IM Fell Double Pica SC","category":"serif","variants":["regular"]},{"family":"Alike Angular","category":"serif","variants":["regular"]},{"family":"Sancreek","category":"display","variants":["regular"]},{"family":"Bilbo","category":"handwriting","variants":["regular"]},{"family":"Antic Didone","category":"serif","variants":["regular"]},{"family":"Paprika","category":"display","variants":["regular"]},{"family":"Asul","category":"sans-serif","variants":["regular","700"]},{"family":"David Libre","category":"serif","variants":["regular","500","700"]},{"family":"Almendra","category":"serif","variants":["regular","italic","700","700italic"]},{"family":"Sriracha","category":"handwriting","variants":["regular"]},{"family":"Miriam Libre","category":"sans-serif","variants":["regular","700"]},{"family":"Ribeye","category":"display","variants":["regular"]},{"family":"Swanky and Moo Moo","category":"handwriting","variants":["regular"]},{"family":"Trade Winds","category":"display","variants":["regular"]},{"family":"Overlock SC","category":"display","variants":["regular"]},{"family":"Nova Round","category":"display","variants":["regular"]},{"family":"Cagliostro","category":"sans-serif","variants":["regular"]},{"family":"Glass Antiqua","category":"display","variants":["regular"]},{"family":"Offside","category":"display","variants":["regular"]},{"family":"El Messiri","category":"sans-serif","variants":["regular","500","600","700"]},{"family":"Bigshot One","category":"display","variants":["regular"]},{"family":"IM Fell Great Primer SC","category":"serif","variants":["regular"]},{"family":"Akronim","category":"display","variants":["regular"]},{"family":"Fira Sans Condensed","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Nosifer","category":"display","variants":["regular"]},{"family":"Autour One","category":"display","variants":["regular"]},{"family":"Pirata One","category":"display","variants":["regular"]},{"family":"Port Lligat Sans","category":"sans-serif","variants":["regular"]},{"family":"Scope One","category":"serif","variants":["regular"]},{"family":"Sumana","category":"serif","variants":["regular","700"]},{"family":"Lemonada","category":"display","variants":["300","regular","600","700"]},{"family":"Montaga","category":"serif","variants":["regular"]},{"family":"Iceberg","category":"display","variants":["regular"]},{"family":"Ruthie","category":"handwriting","variants":["regular"]},{"family":"Content","category":"display","variants":["regular","700"]},{"family":"Henny Penny","category":"display","variants":["regular"]},{"family":"Nova Slim","category":"display","variants":["regular"]},{"family":"Hind Madurai","category":"sans-serif","variants":["300","regular","500","600","700"]},{"family":"Harmattan","category":"sans-serif","variants":["regular"]},{"family":"UnifrakturCook","category":"display","variants":["700"]},{"family":"Sarina","category":"display","variants":["regular"]},{"family":"Bubbler One","category":"sans-serif","variants":["regular"]},{"family":"Dekko","category":"handwriting","variants":["regular"]},{"family":"Redressed","category":"handwriting","variants":["regular"]},{"family":"Laila","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Faster One","category":"display","variants":["regular"]},{"family":"Arya","category":"sans-serif","variants":["regular","700"]},{"family":"Peralta","category":"display","variants":["regular"]},{"family":"Meie Script","category":"handwriting","variants":["regular"]},{"family":"Overpass","category":"sans-serif","variants":["100","100italic","200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","800","800italic","900","900italic"]},{"family":"Monsieur La Doulaise","category":"handwriting","variants":["regular"]},{"family":"Bungee","category":"display","variants":["regular"]},{"family":"Snippet","category":"sans-serif","variants":["regular"]},{"family":"Emilys Candy","category":"display","variants":["regular"]},{"family":"Trykker","category":"serif","variants":["regular"]},{"family":"MedievalSharp","category":"display","variants":["regular"]},{"family":"Space Mono","category":"monospace","variants":["regular","italic","700","700italic"]},{"family":"Croissant One","category":"display","variants":["regular"]},{"family":"Monofett","category":"display","variants":["regular"]},{"family":"Lovers Quarrel","category":"handwriting","variants":["regular"]},{"family":"Oldenburg","category":"display","variants":["regular"]},{"family":"Galdeano","category":"sans-serif","variants":["regular"]},{"family":"Spicy Rice","category":"display","variants":["regular"]},{"family":"Wellfleet","category":"display","variants":["regular"]},{"family":"Germania One","category":"display","variants":["regular"]},{"family":"GFS Neohellenic","category":"sans-serif","variants":["regular","italic","700","700italic"]},{"family":"Baloo Thambi","category":"display","variants":["regular"]},{"family":"Jolly Lodger","category":"display","variants":["regular"]},{"family":"Rubik Mono One","category":"sans-serif","variants":["regular"]},{"family":"Pattaya","category":"sans-serif","variants":["regular"]},{"family":"Joti One","category":"display","variants":["regular"]},{"family":"Siemreap","category":"display","variants":["regular"]},{"family":"Ranga","category":"display","variants":["regular","700"]},{"family":"Chango","category":"display","variants":["regular"]},{"family":"Miltonian Tattoo","category":"display","variants":["regular"]},{"family":"Koulen","category":"display","variants":["regular"]},{"family":"Eagle Lake","category":"handwriting","variants":["regular"]},{"family":"Nova Flat","category":"display","variants":["regular"]},{"family":"Petrona","category":"serif","variants":["regular"]},{"family":"Jacques Francois","category":"serif","variants":["regular"]},{"family":"Amita","category":"handwriting","variants":["regular","700"]},{"family":"Plaster","category":"display","variants":["regular"]},{"family":"Ramaraja","category":"serif","variants":["regular"]},{"family":"Sura","category":"serif","variants":["regular","700"]},{"family":"Kenia","category":"display","variants":["regular"]},{"family":"Fresca","category":"sans-serif","variants":["regular"]},{"family":"Jomhuria","category":"display","variants":["regular"]},{"family":"Lancelot","category":"display","variants":["regular"]},{"family":"Pavanam","category":"sans-serif","variants":["regular"]},{"family":"Rum Raisin","category":"sans-serif","variants":["regular"]},{"family":"Almendra SC","category":"serif","variants":["regular"]},{"family":"Purple Purse","category":"display","variants":["regular"]},{"family":"Kumar One","category":"display","variants":["regular"]},{"family":"Modern Antiqua","category":"display","variants":["regular"]},{"family":"Piedra","category":"display","variants":["regular"]},{"family":"Irish Grover","category":"display","variants":["regular"]},{"family":"Molle","category":"handwriting","variants":["italic"]},{"family":"Cormorant Infant","category":"serif","variants":["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},{"family":"Margarine","category":"display","variants":["regular"]},{"family":"Sahitya","category":"serif","variants":["regular","700"]},{"family":"Mukta Vaani","category":"sans-serif","variants":["200","300","regular","500","600","700","800"]},{"family":"Astloch","category":"display","variants":["regular","700"]},{"family":"Snowburst One","category":"display","variants":["regular"]},{"family":"Rhodium Libre","category":"serif","variants":["regular"]},{"family":"Smythe","category":"display","variants":["regular"]},{"family":"Asset","category":"display","variants":["regular"]},{"family":"Ewert","category":"display","variants":["regular"]},{"family":"Keania One","category":"display","variants":["regular"]},{"family":"Ranchers","category":"display","variants":["regular"]},{"family":"Gorditas","category":"display","variants":["regular","700"]},{"family":"Sirin Stencil","category":"display","variants":["regular"]},{"family":"Averia Gruesa Libre","category":"display","variants":["regular"]},{"family":"Trochut","category":"display","variants":["regular","italic","700"]},{"family":"Baloo Chettan","category":"display","variants":["regular"]},{"family":"Kdam Thmor","category":"display","variants":["regular"]},{"family":"Timmana","category":"sans-serif","variants":["regular"]},{"family":"Original Surfer","category":"display","variants":["regular"]},{"family":"Supermercado One","category":"display","variants":["regular"]},{"family":"Mirza","category":"display","variants":["regular","500","600","700"]},{"family":"Passero One","category":"display","variants":["regular"]},{"family":"Nova Oval","category":"display","variants":["regular"]},{"family":"Caesar Dressing","category":"display","variants":["regular"]},{"family":"Taprom","category":"display","variants":["regular"]},{"family":"Fascinate","category":"display","variants":["regular"]},{"family":"Seymour One","category":"sans-serif","variants":["regular"]},{"family":"Freehand","category":"display","variants":["regular"]},{"family":"Ravi Prakash","category":"display","variants":["regular"]},{"family":"Coiny","category":"display","variants":["regular"]},{"family":"Atomic Age","category":"display","variants":["regular"]},{"family":"Jacques Francois Shadow","category":"display","variants":["regular"]},{"family":"Diplomata","category":"display","variants":["regular"]},{"family":"Dr Sugiyama","category":"handwriting","variants":["regular"]},{"family":"Miltonian","category":"display","variants":["regular"]},{"family":"Ribeye Marrow","category":"display","variants":["regular"]},{"family":"Elsie Swash Caps","category":"display","variants":["regular","900"]},{"family":"Felipa","category":"handwriting","variants":["regular"]},{"family":"Galada","category":"display","variants":["regular"]},{"family":"Nova Script","category":"display","variants":["regular"]},{"family":"Bayon","category":"display","variants":["regular"]},{"family":"Underdog","category":"display","variants":["regular"]},{"family":"Devonshire","category":"handwriting","variants":["regular"]},{"family":"Atma","category":"display","variants":["300","regular","500","600","700"]},{"family":"Londrina Shadow","category":"display","variants":["regular"]},{"family":"Sofadi One","category":"display","variants":["regular"]},{"family":"Tillana","category":"handwriting","variants":["regular","500","600","700","800"]},{"family":"Inknut Antiqua","category":"serif","variants":["300","regular","500","600","700","800","900"]},{"family":"Goblin One","category":"display","variants":["regular"]},{"family":"Rakkas","category":"display","variants":["regular"]},{"family":"Metal","category":"display","variants":["regular"]},{"family":"Farsan","category":"display","variants":["regular"]},{"family":"Londrina Sketch","category":"display","variants":["regular"]},{"family":"Nova Cut","category":"display","variants":["regular"]},{"family":"BioRhyme","category":"serif","variants":["200","300","regular","700","800"]},{"family":"Warnes","category":"display","variants":["regular"]},{"family":"Romanesco","category":"handwriting","variants":["regular"]},{"family":"Fascinate Inline","category":"display","variants":["regular"]},{"family":"Mrs Sheppards","category":"handwriting","variants":["regular"]},{"family":"Princess Sofia","category":"handwriting","variants":["regular"]},{"family":"Modak","category":"display","variants":["regular"]},{"family":"Spirax","category":"display","variants":["regular"]},{"family":"Cormorant Upright","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Geostar Fill","category":"display","variants":["regular"]},{"family":"Cormorant SC","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Baloo Bhai","category":"display","variants":["regular"]},{"family":"Sree Krushnadevaraya","category":"serif","variants":["regular"]},{"family":"Smokum","category":"display","variants":["regular"]},{"family":"Arbutus","category":"display","variants":["regular"]},{"family":"Fruktur","category":"display","variants":["regular"]},{"family":"Geostar","category":"display","variants":["regular"]},{"family":"Marko One","category":"serif","variants":["regular"]},{"family":"Erica One","category":"display","variants":["regular"]},{"family":"Yatra One","category":"display","variants":["regular"]},{"family":"Uncial Antiqua","category":"display","variants":["regular"]},{"family":"Combo","category":"display","variants":["regular"]},{"family":"Gidugu","category":"sans-serif","variants":["regular"]},{"family":"Aubrey","category":"display","variants":["regular"]},{"family":"Jim Nightshade","category":"handwriting","variants":["regular"]},{"family":"Butterfly Kids","category":"handwriting","variants":["regular"]},{"family":"Metal Mania","category":"display","variants":["regular"]},{"family":"Macondo","category":"display","variants":["regular"]},{"family":"Chenla","category":"display","variants":["regular"]},{"family":"Miss Fajardose","category":"handwriting","variants":["regular"]},{"family":"Macondo Swash Caps","category":"display","variants":["regular"]},{"family":"Barrio","category":"display","variants":["regular"]},{"family":"Sevillana","category":"display","variants":["regular"]},{"family":"Bigelow Rules","category":"display","variants":["regular"]},{"family":"Rasa","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Risque","category":"display","variants":["regular"]},{"family":"Federant","category":"display","variants":["regular"]},{"family":"Dangrek","category":"display","variants":["regular"]},{"family":"Chathura","category":"sans-serif","variants":["100","300","regular","700","800"]},{"family":"Almendra Display","category":"display","variants":["regular"]},{"family":"Chela One","category":"display","variants":["regular"]},{"family":"Bonbon","category":"handwriting","variants":["regular"]},{"family":"Stalinist One","category":"display","variants":["regular"]},{"family":"Mr Bedfort","category":"handwriting","variants":["regular"]},{"family":"Eater","category":"display","variants":["regular"]},{"family":"Fasthand","category":"serif","variants":["regular"]},{"family":"Mogra","category":"display","variants":["regular"]},{"family":"Padauk","category":"sans-serif","variants":["regular","700"]},{"family":"Preahvihear","category":"display","variants":["regular"]},{"family":"Flavors","category":"display","variants":["regular"]},{"family":"Ruge Boogie","category":"handwriting","variants":["regular"]},{"family":"Tenali Ramakrishna","category":"sans-serif","variants":["regular"]},{"family":"Unlock","category":"display","variants":["regular"]},{"family":"Butcherman","category":"display","variants":["regular"]},{"family":"Baloo Da","category":"display","variants":["regular"]},{"family":"Lakki Reddy","category":"handwriting","variants":["regular"]},{"family":"Cormorant Unicase","category":"serif","variants":["300","regular","500","600","700"]},{"family":"Katibeh","category":"display","variants":["regular"]},{"family":"Asar","category":"serif","variants":["regular"]},{"family":"Emblema One","category":"display","variants":["regular"]},{"family":"Moulpali","category":"display","variants":["regular"]},{"family":"Meera Inimai","category":"sans-serif","variants":["regular"]},{"family":"Kantumruy","category":"sans-serif","variants":["300","regular","700"]},{"family":"Suravaram","category":"serif","variants":["regular"]},{"family":"Bungee Hairline","category":"display","variants":["regular"]},{"family":"Overpass Mono","category":"monospace","variants":["300","regular","600","700"]},{"family":"Peddana","category":"serif","variants":["regular"]},{"family":"Bahiana","category":"display","variants":["regular"]},{"family":"Kumar One Outline","category":"display","variants":["regular"]},{"family":"Hanalei Fill","category":"display","variants":["regular"]},{"family":"Dhurjati","category":"sans-serif","variants":["regular"]},{"family":"Hanalei","category":"display","variants":["regular"]},{"family":"Kavivanar","category":"handwriting","variants":["regular"]},{"family":"Bungee Outline","category":"display","variants":["regular"]},{"family":"BioRhyme Expanded","category":"serif","variants":["200","300","regular","700","800"]}]' ); + + // Loop through them and put what we need into our fonts array + $fonts = array(); + foreach ( $content as $item ) { + + // Grab what we need from our big list + $atts = array( + 'name' => $item->family, + 'category' => $item->category, + 'variants' => $item->variants, + ); + + // Create an ID using our font family name + $id = strtolower( str_replace( ' ', '_', $item->family ) ); + + // Add our attributes to our new array + $fonts[ $id ] = $atts; + } + + if ( 'all' !== $amount ) { + $fonts = array_slice( $fonts, 0, $amount ); + } + + // Alphabetize our fonts + if ( apply_filters( 'generate_alphabetize_google_fonts', true ) ) { + asort( $fonts ); + } + + // Filter to allow us to modify the fonts array + return apply_filters( 'generate_google_fonts_array', $fonts ); + } +} + +if ( ! function_exists( 'generate_get_all_google_fonts_ajax' ) ) { + add_action( 'wp_ajax_generate_get_all_google_fonts_ajax', 'generate_get_all_google_fonts_ajax' ); + /** + * Return an array of all of our Google Fonts. + * + * @since 1.3.0 + */ + function generate_get_all_google_fonts_ajax() { + // Bail if the nonce doesn't check out + if ( ! isset( $_POST['gp_customize_nonce'] ) || ! wp_verify_nonce( sanitize_key( $_POST['gp_customize_nonce'] ), 'gp_customize_nonce' ) ) { + wp_die(); + } + + // Do another nonce check + check_ajax_referer( 'gp_customize_nonce', 'gp_customize_nonce' ); + + // Bail if user can't edit theme options + if ( ! current_user_can( 'edit_theme_options' ) ) { + wp_die(); + } + + // Get all of our fonts + $fonts = generate_get_all_google_fonts(); + + // Send all of our fonts in JSON format + echo wp_json_encode( $fonts ); + + // Exit + die(); + } +} + +if ( ! function_exists( 'generate_get_google_font_variants' ) ) { + /** + * Wrapper function to find variants for chosen Google Fonts + * Example: generate_get_google_font_variation( 'Open Sans' ) + * @since 1.3.0 + */ + function generate_get_google_font_variants( $font, $key = '' ) { + // Don't need variants if we're using a system font + if ( in_array( $font, generate_typography_default_fonts() ) ) { + return; + } + + // Return if we have our variants saved + if ( '' !== $key && get_theme_mod( $key . '_variants' ) ) { + return get_theme_mod( $key . '_variants' ); + } + + // Get our defaults + $defaults = generate_get_default_fonts(); + + // If our default font is selected and the category isn't saved, we already know the category + if ( $defaults[ $key ] == $font ) { + return $defaults[ $key . '_variants' ]; + } + + // Grab all of our fonts + // It's a big list, so hopefully we're not even still reading + $fonts = generate_get_all_google_fonts(); + + // Get the ID from our font + $id = strtolower( str_replace( ' ', '_', $font ) ); + + // If the ID doesn't exist within our fonts, we can bail + if ( ! array_key_exists( $id, $fonts ) ) { + return; + } + + // Grab all of the variants associated with our font + $variants = $fonts[ $id ]['variants']; + + // Loop through them and put them into an array, then turn them into a comma separated list + $output = array(); + if ( $variants ) { + foreach ( $variants as $variant ) { + $output[] = $variant; + } + return implode( ',', apply_filters( 'generate_typography_variants', $output ) ); + } + } +} + +if ( ! function_exists( 'generate_get_google_font_category' ) ) { + /** + * Wrapper function to find the category for chosen Google Font + * Example: generate_get_google_font_category( 'Open Sans' ) + * + * @since 1.3.0 + * + * @param string $font The name of our font. + * @param string $key The ID of the font setting. + * @return string The category of our font. + */ + function generate_get_google_font_category( $font, $key = '' ) { + // Don't need a category if we're using a system font + if ( in_array( $font, generate_typography_default_fonts() ) ) { + return; + } + + // Return if we have our variants saved + if ( '' !== $key && get_theme_mod( $key . '_category' ) ) { + return ', ' . get_theme_mod( $key . '_category' ); + } + + // Get our defaults + $defaults = generate_get_default_fonts(); + + // If our default font is selected and the category isn't saved, we already know the category + if ( $defaults[ $key ] == $font ) { + return ', ' . $defaults[ $key . '_category' ]; + } + + // Grab all of our fonts + // It's a big list, so hopefully we're not even still reading + $fonts = generate_get_all_google_fonts(); + + // Get the ID from our font + $id = strtolower( str_replace( ' ', '_', $font ) ); + + // If the ID doesn't exist within our fonts, we can bail + if ( ! array_key_exists( $id, $fonts ) ) { + return; + } + + // Let's grab our category to go with our font + $category = ! empty( $fonts[ $id ]['category'] ) ? ', ' . $fonts[ $id ]['category'] : ''; + + // Return it to be used by our function + return $category; + + } +} + + + +if ( ! function_exists( 'generate_get_font_family_css' ) ) { + /** + * Wrapper function to create font-family value for CSS. + * + * @since 1.3.0 + * + * @param string $font The name of our font. + * @param string $settings The ID of the settings we're looking up. + * @param array $default The defaults for our $settings. + * @return string The CSS value for our font family. + */ + function generate_get_font_family_css( $font, $settings, $default ) { + $generate_settings = wp_parse_args( + get_option( $settings, array() ), + $default + ); + + // We don't want to wrap quotes around these values + $no_quotes = array( + 'inherit', + 'Arial, Helvetica, sans-serif', + 'Georgia, Times New Roman, Times, serif', + 'Helvetica', + 'Impact', + 'Segoe UI, Helvetica Neue, Helvetica, sans-serif', + 'Tahoma, Geneva, sans-serif', + 'Trebuchet MS, Helvetica, sans-serif', + 'Verdana, Geneva, sans-serif', + apply_filters( 'generate_typography_system_stack', '-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' ), + ); + + // Get our font + $font_family = $generate_settings[ $font ]; + + if ( 'System Stack' == $font_family ) { + $font_family = apply_filters( 'generate_typography_system_stack', '-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"' ); + } + + // If our value is still using the old format, fix it + if ( strpos( $font_family, ':' ) !== false ) { + $font_family = current( explode( ':', $font_family ) ); + } + + // Set up our wrapper + if ( in_array( $font_family, $no_quotes ) ) { + $wrapper_start = null; + $wrapper_end = null; + } else { + $wrapper_start = '"'; + $wrapper_end = '"' . generate_get_google_font_category( $font_family, $font ); + } + + // Output the CSS + $output = ( 'inherit' == $font_family ) ? '' : $wrapper_start . $font_family . $wrapper_end; + return $output; + } +} + +if ( ! function_exists( 'generate_add_to_font_customizer_list' ) ) { + add_filter( 'generate_typography_customize_list', 'generate_add_to_font_customizer_list' ); + /** + * This function makes sure your selected typography option exists in the Customizer list + * Why wouldn't it? Originally, all 800+ fonts were in each list. This has been reduced to 200. + * This functions makes sure that if you were using a font that is now not included in the 200, you won't lose it. + * + * @since 1.3.40 + */ + function generate_add_to_font_customizer_list( $fonts ) { + // Bail if we don't have our defaults + if ( ! function_exists( 'generate_get_default_fonts' ) ) { + return; + } + + $generate_settings = wp_parse_args( + get_option( 'generate_settings', array() ), + generate_get_default_fonts() + ); + + $font_settings = array( + 'font_body', + 'font_top_bar', + 'font_site_title', + 'font_site_tagline', + 'font_navigation', + 'font_widget_title', + 'font_heading_1', + 'font_heading_2', + 'font_heading_3', + ); + + $all_fonts = generate_get_all_google_fonts(); + $select_fonts = generate_get_all_google_fonts( apply_filters( 'generate_number_of_fonts', 200 ) ); + + foreach ( $font_settings as $setting ) { + // If we don't have a setting, keep going + if ( ! isset( $generate_settings[ $setting ] ) ) { + continue; + } + + $id = strtolower( str_replace( ' ', '_', $generate_settings[ $setting ] ) ); + + if ( array_key_exists( $id, $select_fonts ) || in_array( $generate_settings[ $setting ], generate_typography_default_fonts() ) ) { + continue; + } + + $fonts[ strtolower( str_replace( ' ', '_', $generate_settings[ $setting ] ) ) ] = array( + 'name' => $generate_settings[ $setting ], + 'variants' => array_key_exists( $id, $all_fonts ) ? $all_fonts[ $id ]['variants'] : array(), + 'category' => array_key_exists( $id, $all_fonts ) ? $all_fonts[ $id ]['category'] : 'sans-serif', + ); + } + + if ( function_exists( 'generate_secondary_nav_get_defaults' ) ) { + $secondary_nav_settings = wp_parse_args( + get_option( 'generate_secondary_nav_settings', array() ), + generate_secondary_nav_get_defaults() + ); + + $secondary_nav_id = strtolower( str_replace( ' ', '_', $secondary_nav_settings['font_secondary_navigation'] ) ); + + if ( ! array_key_exists( $secondary_nav_id, $select_fonts ) && ! in_array( $secondary_nav_settings['font_secondary_navigation'], generate_typography_default_fonts() ) ) { + $fonts[ strtolower( str_replace( ' ', '_', $secondary_nav_settings['font_secondary_navigation'] ) ) ] = array( + 'name' => $secondary_nav_settings['font_secondary_navigation'], + 'variants' => array_key_exists( $secondary_nav_id, $all_fonts ) ? $all_fonts[ $secondary_nav_id ]['variants'] : array(), + 'category' => array_key_exists( $secondary_nav_id, $all_fonts ) ? $all_fonts[ $secondary_nav_id ]['category'] : 'sans-serif', + ); + } + } + + return $fonts; + } +} diff --git a/wp-themes/generatepress/index.php b/wp-themes/generatepress/index.php new file mode 100644 index 0000000..bb4098c --- /dev/null +++ b/wp-themes/generatepress/index.php @@ -0,0 +1,70 @@ + + +
        > +
        > + +
        +
        + + element contents in IE8 + !!style_element.styleSheet ? style_element.styleSheet.cssText = css_text : style_element.innerHTML = css_text; + } + ; + + d.getElementsByTagName('HEAD')[0].appendChild(style_element); + + // Using mousedown instead of mouseover, so that previously focused elements don't lose focus ring on mouse move + add_event_listener('mousedown', function(){ + set_css(':focus{outline:0}::-moz-focus-inner{border:0;}'); + }); + + add_event_listener('keydown', function(){ + set_css(''); + }); + +})(document); + +( function() { + 'use strict'; + + if ( 'querySelector' in document && 'addEventListener' in window && document.body.classList.contains( 'dropdown-hover' ) ) { + var navLinks = document.querySelectorAll( 'nav ul a' ), + parentElements = document.querySelectorAll( '.sf-menu .menu-item-has-children' ); + + /** + * Make menu items tab accessible when using the hover dropdown type + */ + var toggleFocus = function() { + if ( this.closest( 'nav' ).classList.contains( 'toggled' ) || this.closest( 'nav' ).classList.contains( 'slideout-navigation' ) ) { + return; + } + + var self = this; + + while ( -1 === self.className.indexOf( 'main-nav' ) ) { + + if ( 'li' === self.tagName.toLowerCase() ) { + if ( -1 !== self.className.indexOf( 'sfHover' ) ) { + self.className = self.className.replace( ' sfHover', '' ); + } else { + self.className += ' sfHover'; + } + } + + self = self.parentElement; + } + } + + for ( var i = 0; i < navLinks.length; i++ ) { + navLinks[i].addEventListener( 'focus', toggleFocus ); + navLinks[i].addEventListener( 'blur', toggleFocus ); + } + } + + /** + * Make hover dropdown touch-friendly. + */ + if ( 'touchend' in document.documentElement ) { + for ( var i = 0; i < parentElements.length; i++ ) { + parentElements[i].addEventListener( 'touchend', function( e ) { + // Bail on mobile + if ( parentElements[i].closest( 'nav' ).classList.contains( 'toggled' ) ) { + return; + } + + if ( e.touches.length === 1 ) { + // Prevent touch events within dropdown bubbling down to document + e.stopPropagation(); + + // Toggle hover + if ( ! this.classList.contains( 'sfHover' ) ) { + // Prevent link on first touch + if ( e.target === this || e.target.parentNode === this ) { + e.preventDefault(); + } + + // Close other sub-menus + var openedSubMenus = parentElements[i].closest( 'nav' ).querySelectorAll( 'ul.toggled-on' ); + if ( openedSubMenus && ! this.closest( 'ul' ).classList.contains( 'toggled-on' ) && ! this.closest( 'li' ).classList.contains( 'sfHover' ) ) { + for ( var o = 0; o < openedSubMenus.length; o++ ) { + openedSubMenus[o].classList.remove( 'toggled-on' ); + openedSubMenus[o].closest( 'li' ).classList.remove( 'sfHover' ); + } + } + + this.classList.add( 'sfHover' ); + + // Hide dropdown on touch outside + document.addEventListener( 'touchend', closeDropdown = function(e) { + e.stopPropagation(); + + this.classList.remove( 'sfHover' ); + document.removeEventListener( 'touchend', closeDropdown ); + } ); + } + } + }, true ); + } + } + +})(); diff --git a/wp-themes/generatepress/js/a11y.min.js b/wp-themes/generatepress/js/a11y.min.js new file mode 100644 index 0000000..7625ab4 --- /dev/null +++ b/wp-themes/generatepress/js/a11y.min.js @@ -0,0 +1 @@ +/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener("hashchange",function(){var e,t=location.hash.substring(1);/^[A-z0-9_-]+$/.test(t)&&(e=document.getElementById(t))&&(/^(?:a|select|input|button|textarea)$/i.test(e.tagName)||(e.tabIndex=-1),e.focus())},!1),function(e){var t=e.createElement("STYLE"),n="addEventListener"in e,s=function(t,s){n?e.addEventListener(t,s):e.attachEvent("on"+t,s)},o=function(e){t.styleSheet?t.styleSheet.cssText=e:t.innerHTML=e};e.getElementsByTagName("HEAD")[0].appendChild(t),s("mousedown",function(){o(":focus{outline:0}::-moz-focus-inner{border:0;}")}),s("keydown",function(){o("")})}(document),function(){"use strict";if("querySelector"in document&&"addEventListener"in window&&document.body.classList.contains("dropdown-hover"))for(var e=document.querySelectorAll("nav ul a"),t=document.querySelectorAll(".sf-menu .menu-item-has-children"),n=function(){if(!this.closest("nav").classList.contains("toggled")&&!this.closest("nav").classList.contains("slideout-navigation"))for(var e=this;-1===e.className.indexOf("main-nav");)"li"===e.tagName.toLowerCase()&&(-1!==e.className.indexOf("sfHover")?e.className=e.className.replace(" sfHover",""):e.className+=" sfHover"),e=e.parentElement},s=0;s coords ) { + goTopBtn.style.opacity = '1'; + goTopBtn.style.visibility = 'visible'; + } + + if (scrolled < coords) { + goTopBtn.style.opacity = '0'; + goTopBtn.style.visibility = 'hidden'; + } + }; + + // Function to animate the scroll + var smoothScroll = function (anchor, duration) { + // Calculate how far and how fast to scroll + var startLocation = window.pageYOffset; + var endLocation = document.body.offsetTop; + var distance = endLocation - startLocation; + var increments = distance/(duration/16); + var stopAnimation; + + // Scroll the page by an increment, and check if it's time to stop + var animateScroll = function () { + window.scrollBy(0, increments); + stopAnimation(); + }; + + // Stop animation when you reach the anchor OR the top of the page + stopAnimation = function () { + var travelled = window.pageYOffset; + if ( travelled <= (endLocation || 0) ) { + clearInterval(runAnimation); + } + }; + + // Loop the animation function + var runAnimation = setInterval(animateScroll, 16); + }; + + if ( goTopBtn ) { + // Show the button when scrolling down. + window.addEventListener( 'scroll', trackScroll ); + + // Scroll back to top when clicked. + goTopBtn.addEventListener( 'click', function( e ) { + e.preventDefault(); + smoothScroll( document.body, goTopBtn.getAttribute( 'data-scroll-speed' ) || 400 ); + }, false ); + } + + } + + } )(); diff --git a/wp-themes/generatepress/js/back-to-top.min.js b/wp-themes/generatepress/js/back-to-top.min.js new file mode 100644 index 0000000..3c76a1d --- /dev/null +++ b/wp-themes/generatepress/js/back-to-top.min.js @@ -0,0 +1 @@ +!function(){"use strict";if("querySelector"in document&&"addEventListener"in window){var t=document.querySelector(".generate-back-to-top");t&&(window.addEventListener("scroll",function(){var e=window.pageYOffset,i=t.getAttribute("data-start-scroll");e>i&&(t.style.opacity="1",t.style.visibility="visible"),ee;e++)if(e in this&&this[e]===t)return e;return-1},a=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},c=function(t,e){if(""===e)throw new a("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new a("INVALID_CHARACTER_ERR","String contains an invalid character");return o.call(t,e)},l=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,s=n.length;s>i;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",""+this)}},u=l[n]=[],h=function(){return new l(this)};if(a[n]=Error[n],u.item=function(t){return this[t]||null},u.contains=function(t){return t+="",-1!==c(this,t)},u.add=function(){var t,e=arguments,n=0,i=e.length,s=!1;do t=e[n]+"",-1===c(this,t)&&(this.push(t),s=!0);while(++nn;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}()); diff --git a/wp-themes/generatepress/js/dropdown-click.js b/wp-themes/generatepress/js/dropdown-click.js new file mode 100644 index 0000000..b2f1abe --- /dev/null +++ b/wp-themes/generatepress/js/dropdown-click.js @@ -0,0 +1,113 @@ +( function() { + 'use strict'; + + if ( 'querySelector' in document && 'addEventListener' in window ) { + var body = document.body; + /** + * Dropdown click + * + * @param e The event. + * @param _this The clicked item. + */ + var dropdownClick = function( e, _this ) { + e.preventDefault(); + e.stopPropagation(); + + if ( ! _this ) { + var _this = this; + } + + var closestLi = _this.closest( 'li' ); + + // Close other sub-menus + var openedSubMenus = _this.closest( 'nav' ).querySelectorAll( 'ul.toggled-on' ); + if ( openedSubMenus && ! _this.closest( 'ul' ).classList.contains( 'toggled-on' ) && ! _this.closest( 'li' ).classList.contains( 'sfHover' ) ) { + for ( var o = 0; o < openedSubMenus.length; o++ ) { + openedSubMenus[o].classList.remove( 'toggled-on' ); + openedSubMenus[o].closest( 'li' ).classList.remove( 'sfHover' ); + } + } + + // Add sfHover class to parent li + closestLi.classList.toggle( 'sfHover' ); + + // Set aria-expanded on arrow + var dropdownToggle = closestLi.querySelector( '.dropdown-menu-toggle' ); + if ( 'false' == dropdownToggle.getAttribute( 'aria-expanded' ) ) { + dropdownToggle.setAttribute( 'aria-expanded', 'true' ); + } else { + dropdownToggle.setAttribute( 'aria-expanded', 'false' ); + } + + // Open the sub-menu + if ( body.classList.contains( 'dropdown-click-menu-item' ) ) { + _this.parentNode.querySelector( '.sub-menu' ).classList.toggle( 'toggled-on' ); + } else if ( body.classList.contains( 'dropdown-click-arrow' ) ) { + closestLi.querySelector( '.sub-menu' ).classList.toggle( 'toggled-on' ); + } + } + + // Do stuff if click dropdown if enabled + var parentElementLinks = document.querySelectorAll( '.main-nav .menu-item-has-children > a' ); + + // Open the sub-menu by clicking on the entire link element + if ( body.classList.contains( 'dropdown-click-menu-item' ) ) { + for ( var i = 0; i < parentElementLinks.length; i++ ) { + parentElementLinks[i].addEventListener( 'click', dropdownClick, true ); + } + } + + // Open the sub-menu by clicking on a dropdown arrow + if ( body.classList.contains( 'dropdown-click-arrow' ) ) { + // Add a class to sub-menu items that are set to # + for ( var i = 0; i < document.querySelectorAll( '.main-nav .menu-item-has-children > a' ).length; i++ ) { + if ( '#' == document.querySelectorAll( '.main-nav .menu-item-has-children > a' )[i].getAttribute( 'href' ) ) { + document.querySelectorAll( '.main-nav .menu-item-has-children > a' )[i].classList.add( 'menu-item-dropdown-click' ); + } + } + + var dropdownToggleLinks = document.querySelectorAll( '.main-nav .menu-item-has-children > a .dropdown-menu-toggle' ); + for ( var i = 0; i < dropdownToggleLinks.length; i++ ) { + dropdownToggleLinks[i].addEventListener( 'click', dropdownClick, false ); + + dropdownToggleLinks[i].addEventListener( 'keydown', function( e ) { + var _this = this; + var key = e.which || e.keyCode; + if ( key === 13 ) { // 13 is enter + dropdownClick( e, _this ); + } + }, false ); + } + + for ( var i = 0; i < document.querySelectorAll( '.main-nav .menu-item-has-children > a.menu-item-dropdown-click' ).length; i++ ) { + document.querySelectorAll( '.main-nav .menu-item-has-children > a.menu-item-dropdown-click' )[i].addEventListener( 'click', dropdownClick, false ); + } + } + + var closeSubMenus = function() { + if ( document.querySelector( 'nav ul .toggled-on' ) ) { + var activeSubMenus = document.querySelectorAll( 'nav ul .toggled-on' ); + for ( var i = 0; i < activeSubMenus.length; i++ ) { + activeSubMenus[i].classList.remove( 'toggled-on' ); + activeSubMenus[i].closest( '.sfHover' ).classList.remove( 'sfHover' ); + } + } + } + + // Close sub-menus when clicking elsewhere + document.addEventListener( 'click', function ( event ) { + if ( ! event.target.closest( '.sfHover' ) ) { + closeSubMenus(); + } + }, false); + + // Close sub-menus on escape key + document.addEventListener( 'keydown', function( e ) { + var key = e.which || e.keyCode; + if ( key === 27 ) { // 27 is esc + closeSubMenus(); + } + }, false ); + } + +})(); \ No newline at end of file diff --git a/wp-themes/generatepress/js/dropdown-click.min.js b/wp-themes/generatepress/js/dropdown-click.min.js new file mode 100644 index 0000000..e663197 --- /dev/null +++ b/wp-themes/generatepress/js/dropdown-click.min.js @@ -0,0 +1 @@ +!function(){"use strict";if("querySelector"in document&&"addEventListener"in window){var e=document.body,n=function(n,t){if(n.preventDefault(),n.stopPropagation(),!t)var t=this;var o=t.closest("li"),l=t.closest("nav").querySelectorAll("ul.toggled-on");if(l&&!t.closest("ul").classList.contains("toggled-on")&&!t.closest("li").classList.contains("sfHover"))for(var c=0;c a");if(e.classList.contains("dropdown-click-menu-item"))for(l=0;l a").length;l++)"#"==document.querySelectorAll(".main-nav .menu-item-has-children > a")[l].getAttribute("href")&&document.querySelectorAll(".main-nav .menu-item-has-children > a")[l].classList.add("menu-item-dropdown-click");for(var o=document.querySelectorAll(".main-nav .menu-item-has-children > a .dropdown-menu-toggle"),l=0;l a.menu-item-dropdown-click").length;l++)document.querySelectorAll(".main-nav .menu-item-has-children > a.menu-item-dropdown-click")[l].addEventListener("click",n,!1)}var c=function(){if(document.querySelector("nav ul .toggled-on"))for(var e=document.querySelectorAll("nav ul .toggled-on"),n=0;n + +
        +
        + + +
        +

        +
        + + + +
        + + + +

        + Get started here.', 'generatepress' ), + esc_url( admin_url( 'post-new.php' ) ) + ); + ?> +

        + + + +

        + + + + +

        + + + + +
        + + +
        +
        diff --git a/wp-themes/generatepress/page.php b/wp-themes/generatepress/page.php new file mode 100644 index 0000000..e3f3333 --- /dev/null +++ b/wp-themes/generatepress/page.php @@ -0,0 +1,64 @@ + + +
        > +
        > + + +
        + +
        + + +
        +
        + + Themes > Add New" +1. Search for "GeneratePress" +1. Install and activate + +== Frequently Asked Questions == + += Is GeneratePress Free? = +Yes! GeneratePress is a free theme, and always will be. + += Does GeneratePress have a pro version? = +It does! GeneratePress has a premium plugin which extends the available options in the theme. + +You can learn more about GP Premium [here](https://generatepress.com/premium). + += Where can I find documentation? = +GeneratePress has extensive documentation you can find [here](https://docs.generatepress.com). + += Do you offer support? = +Definitely. We offer support for the free theme in the [WordPress.org forums](https://wordpress.org/support/theme/generatepress). + +Premium customers have access to our very own [support forum](https://generatepress.com/support). + +We try to answer all questions - free or premium - within 24 hours. + += Where can I find the theme options? = +All of our options can be found in the Customizer in 'Appearance > Customize'. + += Does GeneratePress have any widget areas? = +GeneratePress has up to 9 widget areas which you can add widgets to in Appearance > Widgets. + += How can I make my site look like your screenshot? = +If you want to replicate the screenshot you see on WordPress.org, please refer to [this article](https://docs.generatepress.com/article/replicating-the-screenshot/). + +== License == + +GeneratePress is licensed under the GNU General Public License v2 or later + +More details [here](http://www.gnu.org/licenses/gpl-2.0.html). + += Unsemantic Framework = + +http://opensource.org/licenses/mit-license.php +http://www.gnu.org/licenses/gpl.html + += Font Awesome = + +Font License: SIL OFL 1.1 - http://scripts.sil.org/OFL +Code License: MIT License - http://opensource.org/licenses/mit-license.html + += classList = + +By Eli Grey, http://eligrey.com +License: Dedicated to the public domain. +See https://github.com/eligrey/classList.js/blob/master/LICENSE.md + += selectWoo = + +MIT License: https://github.com/woocommerce/selectWoo/blob/master/LICENSE.md + +== Changelog == + += 2.1.4 = + +Release date: August 21, 2018 + +* Tweak: Update theme screenshot to be within new WordPress.org rules + += 2.1.3 = + +Release date: July 3, 2018 + +* Tweak: Set blog index content to show excerpts by default +* Tweak: Darken default post meta colors for better contrast (a11y) +* Tweak: Darken default site tagline color for better contrast (a11y) +* Tweak: Add slight opacity to post meta icons +* Tweak: Set post meta font size to 100% on mobile (SEO) +* Tweak: Various WP Coding Standard tweaks +* Tweak: Update default copyright message +* Tweak: Reduce author archives avatar margin + += 2.1.2 = + +Release date: May 16, 2018 + +* Tweak: Add support for new comment cookie checkbox in WP 4.9.6 + += 2.1.1 = + +Release date: May 7, 2018 + +* Tweak: Improve baseline of theme icons +* Tweak: Prevent JS error if back to top button HTML doesn't exist +* Fix: Mobile menu item alignment on RTL sites +* Fix: Clearing issue in full width footer bar areas + += 2.1 = + +Release date: May 2, 2018 + +* New: Structured data to comments +* New: aria-label to sidebar navigation mobile menu +* New: Update all theme icons +* New: generate_metabox_tabs filter +* New: generate_after_footer hook +* New: generate_before_comments_container hook +* Tweak: Simplify mobile menu CSS +* Tweak: Load updated date before published date +* Tweak: Force array in Layout metabox to prevent PHP notices +* Tweak: Use https for schema.org references +* Tweak: Replace wildcard CSS selectors with specific selectors +* Tweak: Remove list item bullets in sidebar and footer widgets only +* Tweak: Make button/input line height consistent with link buttons +* Tweak: Add version to database for future migrations +* Tweak: Move back to top button to generate_after_footer +* Tweak: Remove focus class from menu items on click if leaving site +* Tweak: Keep tab focus inside navigation search when open +* Tweak: Remove roles from sidebars +* Fix: Sidebar sub-menu positioning after click +* Fix: Rare Customizer JS error related to typography +* Fix: Various small W3 errors +* Fix: Navigation aria-hidden issue +* Remove: Font Awesome Essentials HTTP request +* Remove: dropdown.js HTTP request +* Remove: IE6 CSS +* Remove: Secondary navigation CSS added to GPP 1.6 +* Remove: Secondary navigation JS + += 2.0.2 = + +Release date: January 17, 2018 + +* Fix: Double tap issue in sub-menus on iOS devices +* Fix: Secondary nav sub-menu positioning in sidebars + += 2.0.1 = + +Release date: December 14, 2017 + +* Fix: PHP notice in Customizer using multisite +* Fix: Retina logo container width in Firefox +* Fix: RTL dropdown menu issue +* Fix: undefined .closest() error +* Fix: Mobile sub-menu issue when no theme location is set +* Fix: Various small dropdown menu issues + += 2.0 = + +Release date: December 6, 2017 + +* New: Full web accessibility +* New: All jQuery replaced with vanilla javascript +* New: System stack font set to default +* New: H6 typography options +* New: Option to turn on Font Awesome essentials +* New: Font Awesome set to essentials by default +* New: Retina logo option +* New: Cache dynamic CSS +* New: Option to enable/disable dynamic CSS caching +* New: Merge all separate metaboxes into one master metabox +* New: generate_dashboard_page_capability filter +* New: generate_dashboard_inside_container hook +* New: generate_dashboard_after_header hook +* New: generate_after_primary_content_area hook +* New: generate_show_post_navigation filter +* Tweak: PHP performance profiled and improved +* Tweak: generate_sidebars hook removed ** Update your child themes * +* Tweak: Style select inputs the same as other inputs +* Tweak: Archive titles same font size as other h1 elements +* Tweak: Add accessibility to read more links +* Tweak: Add alt tag to featured images +* Tweak: Remove title tag from featured images +* Tweak: Make mobile menu keyboard accessible +* Tweak: Make dropdown menu types keyboard accessible +* Tweak: Make dropdown toggle arrow larger on mobile +* Tweak: Load style.min.css instead of style.css +* Tweak: Clean up minified Font Awesome file +* Tweak: Comments title screen reader text set to h2 +* Tweak: Remove margin from last author info paragraph +* Tweak: Adjust mobile menu icon position +* Tweak: Load admin-specific files in the admin only +* Tweak: Move skip to content link into hook and remove from header.php +* Tweak: Add screen reader labels to comment form fields +* Tweak: Change widget titles to h2 elements +* Tweak: Remove existing separate meta boxes +* Tweak: File structure completely re-organized +* Tweak: Code re-written to adhere to WordPress coding standards +* Tweak: Fix mobile nav search position on RTL sites +* Tweak: Make footer bar menu widget RTL compatible +* Tweak: Set comment website field as URL input type +* Tweak: Set comment email field as email input type +* Tweak: Use WP defaults for comment must_log_in and logged_in_as messages +* Tweak: Fix admin notice position in GP Dashboard +* Tweak: Let WP figure out featured image alt attribute +* Fix: Button text color in content when content link is set +* Fix: Left aligned footer bar alignment +* Fix: Spacing when sticky nav is activated +* Fix: Header alignment in RTL languages +* Fix: Tablet/desktop grid bug +* Fix: Header inner width live preview bug +* Deprecated: generate_get_min_suffix() +* Deprecated: generate_add_layout_meta_box() +* Deprecated: generate_show_layout_meta_box() +* Deprecated: generate_save_layout_meta() +* Deprecated: generate_add_footer_widget_meta_box() +* Deprecated: generate_show_footer_widget_meta_box() +* Deprecated: generate_save_footer_widget_meta() +* Deprecated: generate_add_page_builder_meta_box() +* Deprecated: generate_show_page_builder_meta_box() +* Deprecated: generate_save_page_builder_meta() +* Deprecated: generate_add_de_meta_box() +* Deprecated: generate_show_de_meta_box() +* Deprecated: generate_save_de_meta() +* Deprecated: generate_add_base_inline_css() +* Deprecated: generate_color_scripts() +* Deprecated: generate_typography_scripts() +* Deprecated: generate_spacing_scripts() +* Deprecated: generate_leave_reply +* Deprecated: generate_cancel_reply + += Earlier versions = + +For the changelog of earlier versions, please refer to our [development log](https://generatepress.com/category/development/). diff --git a/wp-themes/generatepress/rtl.css b/wp-themes/generatepress/rtl.css new file mode 100644 index 0000000..222fedb --- /dev/null +++ b/wp-themes/generatepress/rtl.css @@ -0,0 +1,201 @@ +caption, +td, +th { + text-align: right; +} +.main-navigation ul ul { + float: right; + left: auto; + right: 0; + text-align: right; +} +.main-navigation ul ul ul { + left: auto; + right: 100%; +} + +.menu-item-has-children .dropdown-menu-toggle { + float: left !important; +} + +.rtl .main-navigation ul ul, .rtl .secondary-navigation ul ul.sub-menu { + right: -999999px; +} + +.rtl.dropdown-hover .main-navigation ul li.sfHover > ul, +.rtl.dropdown-hover .main-navigation ul li:hover > ul, +.rtl.dropdown-hover .secondary-navigation ul li.sfHover > ul, +.rtl.dropdown-hover .secondary-navigation ul li:hover > ul { + right: 0; +} + +.rtl.dropdown-hover .main-navigation ul ul li.sfHover > ul, +.rtl.dropdown-hover .main-navigation ul ul li:hover > ul, +.rtl.dropdown-hover .secondary-navigation ul ul li.sfHover > ul, +.rtl.dropdown-hover .secondary-navigation ul ul li:hover > ul { + right: 100%; +} + +.alignleft { + float: right; + margin-left: 1.5em; +} +.alignright { + float: left; + margin-right: 1.5em; +} +.main-navigation li { + float: right; +} +.main-navigation li.search-item { + float: left; +} +.nav-left-sidebar .main-navigation li.search-item.current-menu-item, +.nav-right-sidebar .main-navigation li.search-item.current-menu-item { + float: left; +} +.sidebar .menu-item-has-children .dropdown-menu-toggle, +nav ul ul .menu-item-has-children .dropdown-menu-toggle { + float: left; +} +.comment-meta .avatar { + float: right; + margin-left: 10px; +} +.page-header .avatar { + float: right; + margin-left: 1.5em; +} +.header-widget { + float: left; +} +.sf-menu>li.menu-item-float-right { + float: left!important; +} +.slideout-navigation .menu-item-has-children .dropdown-menu-toggle { + float: left; +} +.dropdown-click #generate-slideout-menu .slideout-menu .menu-item-has-children>a:first-child, +.slideout-desktop.dropdown-hover #generate-slideout-menu .slideout-menu .menu-item-has-children>a:first-child { + padding-left: 0; +} +.comment .children { + padding-right: 30px; + border-right: 1px solid rgba(0, 0, 0, .05); +} +.main-navigation .main-nav ul li.menu-item-has-children>a, +.secondary-navigation .main-nav ul li.menu-item-has-children>a { + padding-left: 0; +} +nav:not(.toggled) ul ul .menu-item-has-children .dropdown-menu-toggle { + padding-left: 15px; +} +nav:not(.toggled) .menu-item-has-children .dropdown-menu-toggle { + padding-right: 10px; +} +.main-navigation ul, +.menu-toggle li.search-item { + padding-right: 0; +} +ol, +ul { + margin: 0 3em 1.5em 0; +} +li>ol, +li>ul { + margin-right: 1.5em; +} +.menu-toggle .mobile-menu { + margin-right: 5px; + margin-left: 0; +} +.widget_categories .children { + margin-right: 1.5em; +} +.right-sidebar .site-main { + margin: 30px 0 30px 30px; +} +.left-sidebar .site-main { + margin: 30px 30px 30px 0; +} +.both-right.separate-containers .site-main { + margin: 30px 0 30px 30px; +} +.both-left.separate-containers .site-main { + margin: 30px 30px 30px 0; +} +.both-left .inside-left-sidebar, +.both-right .inside-left-sidebar { + margin-left: 15px; +} +.both-left .inside-right-sidebar, +.both-right .inside-right-sidebar { + margin-right: 15px; +} +.one-container.both-right .site-main, +.one-container.right-sidebar .site-main { + margin-left: 60px; +} +.one-container.both-left .site-main, +.one-container.left-sidebar .site-main { + margin-right: 60px; +} +.widget_nav_menu ul ul, +.widget_pages ul ul { + margin-right: 1em; +} +.cat-links:before, +.comments-link:before, +.nav-next .next:before, +.nav-previous .prev:before, +.tags-links:before, +footer.entry-meta .author:before, +footer.entry-meta .posted-on:before { + margin-left: 5px; +} + +.menu-toggle, +.nav-search-enabled .main-navigation .menu-toggle { + text-align: right; +} + +.main-navigation .mobile-bar-items { + float: left; + left: 0; + right: auto; +} + +.rtl .navigation-search { + left: auto; + right: -999999px; +} + +.rtl .navigation-search.nav-search-active { + right: 0; +} + +.rtl .footer-bar .widget_nav_menu li { + direction: rtl; + float: right; +} + +.main-navigation.toggled .main-nav li { + text-align: right !important; +} + +@media (max-width: 768px) { + .rtl .mobile-bar-items { + position: absolute; + left: 0; + top: 0; + } +} + +@media (min-width: 768px) { + .inside-footer-widgets > div { + float: right; + } + .menu-item-has-children ul .dropdown-menu-toggle { + transform: rotate(180deg); + } +} diff --git a/wp-themes/generatepress/screenshot.png b/wp-themes/generatepress/screenshot.png new file mode 100644 index 0000000..8c70935 Binary files /dev/null and b/wp-themes/generatepress/screenshot.png differ diff --git a/wp-themes/generatepress/search.php b/wp-themes/generatepress/search.php new file mode 100644 index 0000000..1556f64 --- /dev/null +++ b/wp-themes/generatepress/search.php @@ -0,0 +1,72 @@ + + +
        > +
        > + + + + + +
        +
        + + +
        + + +
        diff --git a/wp-themes/generatepress/sidebar-left.php b/wp-themes/generatepress/sidebar-left.php new file mode 100644 index 0000000..12f4092 --- /dev/null +++ b/wp-themes/generatepress/sidebar-left.php @@ -0,0 +1,64 @@ + + diff --git a/wp-themes/generatepress/sidebar.php b/wp-themes/generatepress/sidebar.php new file mode 100644 index 0000000..0975c21 --- /dev/null +++ b/wp-themes/generatepress/sidebar.php @@ -0,0 +1,64 @@ + + diff --git a/wp-themes/generatepress/single.php b/wp-themes/generatepress/single.php new file mode 100644 index 0000000..6141d8e --- /dev/null +++ b/wp-themes/generatepress/single.php @@ -0,0 +1,67 @@ + + +
        > +
        > + + +
        + +
        + + +
        +
        + + ul, +li > ol { + margin-bottom: 0; + margin-left: 1.5em; +} + +dt { + font-weight: bold; +} + +dd { + margin: 0 1.5em 1.5em; +} + +b, strong { + font-weight: bold; +} + +dfn, cite, em, i { + font-style: italic; +} + +blockquote { + margin: 0 1.5em 1.5em; +} + +address { + margin: 0 0 1.5em; +} + +pre { + background: #eee; + font-family: "Courier 10 Pitch", Courier, monospace; + font-size: 15px; + font-size: 1.5rem; + line-height: 1.6; + margin-bottom: 1.6em; + padding: 1.6em; + overflow: auto; + max-width: 100%; +} + +code, kbd, tt, var { + font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} + +abbr, acronym { + border-bottom: 1px dotted #666; + cursor: help; +} + +mark, ins { + text-decoration: none; +} + +sup, +sub { + font-size: 75%; + height: 0; + line-height: 0; + position: relative; + vertical-align: baseline; +} + +sup { + bottom: 1ex; +} + +sub { + top: .5ex; +} + +small { + font-size: 75%; +} + +big { + font-size: 125%; +} + +figure { + margin: 0; +} + +table { + margin: 0 0 1.5em; + width: 100%; +} + +th { + font-weight: bold; +} + +img { + height: auto; /* Make sure images are scaled correctly. */ + max-width: 100%; /* Adhere to container width. */ +} + +button, +input, +select, +textarea { + font-size: 100%; /* Corrects font size not being inherited in all browsers */ + margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */ + vertical-align: baseline; /* Improves appearance and consistency in all browsers */ + *vertical-align: middle; /* Improves appearance and consistency in all browsers */ +} + +button, +html input[type="button"], +input[type="reset"], +input[type="submit"] { + border: 1px solid transparent; + background: #666; + cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */ + -webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */ + padding: 10px 20px; + color: #FFF; +} + +button:hover, +html input[type="button"]:hover, +input[type="reset"]:hover, +input[type="submit"]:hover { + background: #606060; +} + +button:focus, +html input[type="button"]:focus, +input[type="reset"]:focus, +input[type="submit"]:focus, +button:active, +html input[type="button"]:active, +input[type="reset"]:active, +input[type="submit"]:active { + background: #606060; +} + +.button { + padding: 10px 20px; + display: inline-block; +} + +input[type="checkbox"], +input[type="radio"] { + box-sizing: border-box; /* Addresses box sizing set to content-box in IE8/9 */ + padding: 0; /* Addresses excess padding in IE8/9 */ +} + +input[type="search"] { + -webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */ + box-sizing: content-box; +} + +input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */ + -webkit-appearance: none; +} + +button::-moz-focus-inner, +input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */ + border: 0; + padding: 0; +} + +input[type="text"], +input[type="email"], +input[type="url"], +input[type="password"], +input[type="search"], +input[type="tel"], +input[type="number"], +textarea, +select { + background: #FAFAFA; + color: #666; + border: 1px solid #ccc; + border-radius: 0px; + padding: 10px 15px; + box-sizing: border-box; + max-width: 100%; +} + +input[type="text"]:focus, +input[type="email"]:focus, +input[type="url"]:focus, +input[type="password"]:focus, +input[type="tel"]:focus, +input[type="search"]:focus, +input[type="number"]:focus, +textarea:focus, +select:focus { + color: #111; + background: #FFF; +} + +textarea { + overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */ + vertical-align: top; /* Improves readability and alignment in all browsers */ + width: 100%; +} + +input[type="file"] { + max-width: 100%; + box-sizing: border-box; +} + +/* Alignment */ +.alignleft { + display: inline; + float: left; + margin-right: 1.5em; +} + +.alignright { + display: inline; + float: right; + margin-left: 1.5em; +} + +.aligncenter { + clear: both; + display: block; + margin: 0 auto; +} + +.size-auto, +.size-full, +.size-large, +.size-medium, +.size-thumbnail { + max-width: 100%; + height: auto; +} + +/* Text meant only for screen readers */ +.screen-reader-text, +.screen-reader-text span, +.screen-reader-shortcut { + position: absolute !important; + clip: rect(0, 0, 0, 0); + height: 1px; + width: 1px; + border: 0; + overflow: hidden; +} + +.screen-reader-text:focus, +.screen-reader-shortcut:focus { + clip: auto !important; + height: auto; + width: auto; + display: block; + font-size: 1em; + font-weight: bold; + padding: 15px 23px 14px; + color: #333; + background: #fff; + z-index: 100000; /* Above WP toolbar. */ + text-decoration: none; + box-shadow: 0 0 2px 2px rgba(0,0,0,.6); +} + +/* Clearing */ +.clear:before, +.clear:after, +.entry-content:before, +.entry-content:after, +.comment-content:before, +.comment-content:after, +.site-header:before, +.site-header:after, +.site-content:before, +.site-content:after, +.site-footer:before, +.site-footer:after, +.site-info:before, +.site-info:after { + content: ""; + display: table; +} + +.clear:after, +.entry-content:after, +.comment-content:after, +.site-header:after, +.site-content:after, +.site-footer:after, +.site-info:after { + clear: both; +} + + +/* =Menu +----------------------------------------------- */ +.main-navigation { + z-index: 100; + padding: 0; + clear: both; + display: block; +} + +.main-navigation ul li a { + display: block; +} + +.menu-toggle { + margin: 0; + padding: 0; +} + +.menu-toggle:before { + content: "\f0c9"; + font-family: GeneratePress; + + width: 1.28571429em; + text-align: center; + display: inline-block; +} + +.toggled .menu-toggle:before { + content: "\f00d"; +} + +.menu-toggle .mobile-menu { + padding-left: 3px; +} + +.menu-toggle .mobile-menu:empty { + display: none; +} + +.main-navigation .main-nav ul ul li a { + line-height: normal; + padding: 10px 20px; +} + +.inside-navigation { + position: relative; +} + +.main-navigation ul, +.menu-toggle li.search-item { + list-style: none; + margin: 0; + padding-left: 0; +} + +li.search-item a:before, +span.search-item a:before { + content: "\f002"; + font-family: GeneratePress; + + width: 1.28571429em; + text-align: center; + display: inline-block; +} + +li.search-item.close-search a:before, +span.search-item.close-search a:before { + content: "\f00d"; +} + +.search-item .screen-reader-text { + top: 0; + right: 0; + left: auto; +} + +.main-navigation li { + float: left; + position: relative; +} + +.main-navigation a { + display: block; + text-decoration: none; +} + +.main-navigation ul ul { + display: block; + box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1); + float: left; + position: absolute; + left: -99999px; + opacity: 0; + z-index: 99999; + width:200px; + text-align:left; + top: auto; + transition: opacity 80ms linear; + transition-delay: 0s; + pointer-events: none; + height: 0; + overflow: hidden; +} + +.main-navigation ul ul a { + display: block; +} + +.main-navigation ul ul li { + width:100%; +} + +.dropdown-hover .main-navigation:not(.toggled) ul li:hover > ul, +.dropdown-hover .main-navigation:not(.toggled) ul li.sfHover > ul { + left: auto; + opacity: 1; + transition-delay: 150ms; + pointer-events: auto; + height: auto; + overflow: visible; +} + +.dropdown-hover .main-navigation:not(.toggled) ul ul li:hover > ul, +.dropdown-hover .main-navigation:not(.toggled) ul ul li.sfHover > ul { + left: 100%; + top: 0; +} + +.dropdown-click .main-navigation ul ul { + visibility: hidden; +} + +.dropdown-click .main-navigation ul.toggled-on, +.dropdown-click .main-navigation ul li.sfHover > ul.toggled-on { + left: auto; + opacity: 1; + visibility: visible; + pointer-events: auto; + height: auto; + overflow: visible; +} + +.dropdown-click nav ul ul ul { + background-color: transparent; +} + +.nav-float-right .inside-header .main-navigation { + float:right; + clear: right; +} + +.nav-float-left .inside-header .main-navigation { + float: left; + clear: left; +} + +.nav-float-left .inside-header .site-branding, +.nav-float-left .inside-header .site-logo { + float: right; + clear: right; +} + +.nav-float-left .inside-header:after { + clear: both; + content: ''; + display: table; +} + +.nav-float-right .inside-header .site-branding { + display: inline-block; +} + +.site-header { + position:relative; +} + +.header-aligned-left .site-header { + text-align: left; +} + +.header-aligned-center .site-header { + text-align: center; +} + +.header-aligned-right .site-header { + text-align: right; +} + +.site-header .header-image { + vertical-align: middle; +} + +.main-navigation .main-nav ul ul li a, +.nav-float-right .main-navigation .main-nav ul ul li a { + line-height: normal; +} + +.nav-float-right .main-navigation ul ul ul{ + top: 0 +} + +.main-navigation li.search-item { + float: right; + z-index: 21; +} + +.rtl .main-navigation li.search-item, +.rtl.nav-aligned-right.nav-below-header .main-navigation .menu > li.search-item { + float: left; +} + +li.search-item.active { + transition: opacity 100ms ease-in-out; +} + +.navigation-search { + position: absolute; + left: -99999px; + pointer-events: none; + visibility: hidden; + z-index: 20; + width: 100%; + top: 0; + transition: opacity 100ms ease-in-out; + opacity: 0; +} + +.navigation-search.nav-search-active { + left: 0; + right: 0; + pointer-events: auto; + visibility: visible; + opacity: 1; +} + +.gen-sidebar-nav .navigation-search { + top: auto; + bottom: 0; +} + +.navigation-search input { + border: 0; + vertical-align: bottom; + line-height: 0; + opacity: 0.9; + width: 100%; + z-index: 20; + border-radius: 0; + -webkit-appearance: none; +} + +.navigation-search input::-ms-clear { + display: none; + width: 0; + height: 0; +} + +.navigation-search input::-ms-reveal { + display: none; + width: 0; + height: 0; +} + +.navigation-search input::-webkit-search-decoration, +.navigation-search input::-webkit-search-cancel-button, +.navigation-search input::-webkit-search-results-button, +.navigation-search input::-webkit-search-results-decoration { + display: none; +} + +.nav-left-sidebar .main-navigation li.search-item, +.nav-right-sidebar .main-navigation li.search-item { + width: auto; + display: inline-block; +} + +.nav-left-sidebar .main-navigation li.search-item.current-menu-item, +.nav-right-sidebar .main-navigation li.search-item.current-menu-item { + float: right; +} + +.nav-aligned-right.nav-below-header .main-navigation .menu > li, +.nav-aligned-right.nav-above-header .main-navigation .menu > li, +.nav-aligned-center.nav-below-header .main-navigation .menu > li, +.nav-aligned-center.nav-above-header .main-navigation .menu > li { + float: none; + display: inline-block; +} + +.nav-aligned-right .main-navigation ul, +.nav-aligned-center .main-navigation ul { + letter-spacing: -0.31em; + font-size: 1em; +} + +.nav-aligned-right .main-navigation ul li, +.nav-aligned-center .main-navigation ul li { + letter-spacing: normal; +} + +.nav-aligned-left.nav-below-header .main-navigation, +.nav-aligned-left.nav-above-header .main-navigation { + text-align: left; +} + +.nav-aligned-center.nav-below-header .main-navigation, +.nav-aligned-center.nav-above-header .main-navigation { + text-align: center; +} + +.nav-aligned-right.nav-below-header .main-navigation, +.nav-aligned-right.nav-above-header .main-navigation { + text-align: right; +} + +.menu-item-has-children .dropdown-menu-toggle { + display: inline-block; + height: 100%; + clear: both; + padding-left: 10px; +} + +nav ul ul .menu-item-has-children .dropdown-menu-toggle { + float: right; +} + +.sidebar .menu-item-has-children .dropdown-menu-toggle { + float: right; +} + +.dropdown-menu-toggle:before { + content: "\f107"; + font-family: GeneratePress; +} + +.dropdown-click .menu-item-has-children.sfHover > a .dropdown-menu-toggle:before { + content: "\f106"; +} + +.dropdown-hover .sub-menu .dropdown-menu-toggle:before, +.dropdown-hover .children .dropdown-menu-toggle:before { + content: "\f105"; +} + +.dropdown-hover.both-right .inside-left-sidebar .dropdown-menu-toggle:before, +.dropdown-hover .inside-right-sidebar .dropdown-menu-toggle:before { + content: "\f104"; +} + +.dropdown-hover.both-left .inside-right-sidebar .dropdown-menu-toggle:before, +.dropdown-hover .inside-left-sidebar .dropdown-menu-toggle:before { + content: "\f105"; +} + +.dropdown-click .main-navigation ul ul ul.toggled-on { + left: 0; + top: auto; + position: relative; +} + +.dropdown-click .widget-area .main-navigation ul ul { + top: auto; + position: absolute; + float: none; + width: 100%; + left: -99999px; +} + +.dropdown-click .widget-area .main-navigation ul ul.toggled-on { + position: relative; + left: 0; + right: 0; +} + +.main-navigation .main-nav ul li.menu-item-has-children > a { + padding-right: 0; + position: relative; +} + +.widget-area .main-navigation li { + float: none; + display: block; + width:100%; + padding: 0; + margin: 0; +} + +.dropdown-hover .widget-area .main-navigation ul li:hover ul, +.dropdown-hover .widget-area .main-navigation ul li.sfHover > ul { + top: 0; + left: 100%; + width:220px; +} + +.dropdown-hover.both-right .widget-area .main-navigation ul li:hover ul, +.dropdown-hover.both-right .widget-area .main-navigation ul li.sfHover ul, +.dropdown-hover.right-sidebar .widget-area .main-navigation ul li:hover ul, +.dropdown-hover.right-sidebar .widget-area .main-navigation ul li.sfHover ul, +.dropdown-hover.both-sidebars .widget-area .inside-right-sidebar .main-navigation ul li:hover ul, +.dropdown-hover.both-sidebars .widget-area .inside-right-sidebar .main-navigation ul li.sfHover ul { + right: 100%; + left: auto; +} + +.slideout-navigation .dropdown-menu-toggle:before { + content: "\f107" !important; +} + +.slideout-navigation .sfHover > a .dropdown-menu-toggle:before { + content: "\f106" !important; +} + +/* =Content +----------------------------------------------- */ +.sticky{} + +.post { + margin: 0 0 2em; +} + +.posted-on .updated { + display: none; +} + +.byline { + display: inline; +} + +.single .byline, +.group-blog .byline { + display: inline; +} + +.page-content, +.entry-content, +.entry-summary { + margin: 2em 0 0; +} + +.page-links { + clear: both; + margin: 0 0 1.5em; +} + +.blog .format-status .entry-title, +.archive .format-status .entry-title, +.blog .format-aside .entry-header, +.archive .format-aside .entry-header, +.blog .format-status .entry-header, +.archive .format-status .entry-header, +.blog .format-status .entry-meta, +.archive .format-status .entry-meta { + display: none; +} + +.blog .format-aside .entry-content, +.archive .format-aside .entry-content, +.blog .format-status .entry-content, +.archive .format-status .entry-content { + margin-top: 0; +} + +.blog .format-status .entry-content p:last-child, +.archive .format-status .entry-content p:last-child { + margin-bottom: 0; +} + +/* =Media +----------------------------------------------- */ +.page-content img.wp-smiley, +.entry-content img.wp-smiley, +.comment-content img.wp-smiley { + border: none; + margin-bottom: 0; + margin-top: 0; + padding: 0; +} + +.wp-caption { + margin-bottom: 1.5em; + max-width: 100%; + position:relative; +} + +.wp-caption img[class*="wp-image-"] { + display: block; + margin: 0 auto 0; + max-width: 100%; +} + +.wp-caption .wp-caption-text { + font-size: 75%; + padding-top: 5px; + opacity: 0.8; +} + +.wp-caption img { + position: relative; + vertical-align: bottom; +} + +/*-------------------------------------------------------------- +## Galleries +--------------------------------------------------------------*/ +.gallery { + margin-bottom: 1.5em; +} + +.gallery-item { + display: inline-block; + text-align: center; + vertical-align: top; + width: 100%; +} + +.gallery-columns-2 .gallery-item { + max-width: 50%; +} + +.gallery-columns-3 .gallery-item { + max-width: 33.33%; +} + +.gallery-columns-4 .gallery-item { + max-width: 25%; +} + +.gallery-columns-5 .gallery-item { + max-width: 20%; +} + +.gallery-columns-6 .gallery-item { + max-width: 16.66%; +} + +.gallery-columns-7 .gallery-item { + max-width: 14.28%; +} + +.gallery-columns-8 .gallery-item { + max-width: 12.5%; +} + +.gallery-columns-9 .gallery-item { + max-width: 11.11%; +} + +.gallery-caption { + display: block; +} + +/* Make sure embeds and iframes fit their containers */ +embed, +iframe, +object { + max-width: 100%; +} + +/* =Navigation +----------------------------------------------- */ +.site-main .comment-navigation, +.site-main .posts-navigation, +.site-main .post-navigation { + margin: 0 0 2em; + overflow: hidden; +} + +/* =Comments +----------------------------------------------- */ +.comment-content a { + word-wrap: break-word; +} + +.bypostauthor {} + +.comment, +.comment-list { + list-style-type: none; + padding: 0; + margin: 0; +} + +.comment-author-info { + display: inline-block; + vertical-align:middle; +} + +.comment-meta .avatar { + float: left; + margin-right: 10px; + -moz-border-radius: 50%; + -webkit-border-radius: 50%; + border-radius: 50%; +} + +.comment-author cite { + font-style: normal; + font-weight: bold; +} + +.entry-meta.comment-metadata { + margin-top: 0; +} + +.comment-content { + margin-top: 1.5em; +} + +.comment-respond { + margin-top: 1.5em; +} +.comment-form > .form-submit { + margin-bottom: 0; +} + +.comment-form input, +.comment-form-comment { + margin-bottom: 10px; +} + +.comment-form #author, +.comment-form #email, +.comment-form #url { + display: block; +} + +.comment-metadata .edit-link:before { + display: none; +} + +.comment-body { + padding: 30px 0; +} + +.comment-content { + padding: 30px; + border: 1px solid rgba(0, 0, 0, 0.05); +} + +.depth-1.parent > .children { + border-bottom: 1px solid rgba(0, 0, 0, 0.05); +} + +.comment .children { + padding-left: 30px; + margin-top: -30px; + border-left: 1px solid rgba(0, 0, 0, 0.05); +} + +.pingback .comment-body, +.trackback .comment-body { + border-bottom: 1px solid rgba(0, 0, 0, 0.05); +} + +.pingback .edit-link { + font-size: 13px; +} + +.comment-content p:last-child { + margin-bottom: 0; +} + +.comment-list > .comment:first-child { + padding-top:0; + margin-top:0; + border-top: 0; +} + +ol.comment-list { + margin-bottom: 1.5em; +} + +#wp-comment-cookies-consent { + margin-right: 7px; +} + +/* =Widgets +----------------------------------------------- */ +.widget { + margin: 0 0 30px; +} + +/* Make sure select elements fit in widgets */ +.widget select { + max-width: 100%; +} + +/* Search widget */ +.widget_search .search-submit { + display: none; +} + +/* Categories widget */ +.widget_categories .children { + margin-left: 1.5em; + padding-top: 5px; +} + +.widget_categories .children li:last-child { + padding-bottom: 0; +} + +/* =Infinite Scroll +----------------------------------------------- */ +/* Globally hidden elements when Infinite Scroll is supported and in use. */ +.infinite-scroll .paging-navigation, /* Older / Newer Posts Navigation (always hidden) */ +.infinite-scroll.neverending .site-footer { /* Theme Footer (when set to scrolling) */ + display: none; +} + +/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before */ +.infinity-end.neverending .site-footer { + display: block; +} + +/* =Start custom CSS +----------------------------------------------- */ +body { + font-size: 15px; +} + +a, +button, +input { + transition:color 0.1s ease-in-out, background-color 0.1s ease-in-out; +} + +a, a:visited, a:hover, a:focus { + text-decoration: none; +} + +.main-title { + word-wrap: break-word; +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: inherit; + font-size: 100%; + font-style: inherit; + font-weight: inherit; +} + +pre { + background: rgba(0, 0, 0, 0.05); + font-family: inherit; + font-size: inherit; + line-height: normal; + margin-bottom: 1.5em; + padding: 20px; + overflow: auto; + max-width: 100%; +} + +blockquote { + border-left: 5px solid rgba(0, 0, 0, 0.05); + padding: 20px; + font-size: 1.2em; + font-style:italic; + margin: 0 0 1.5em; + position: relative; +} + +blockquote p:last-child { + margin: 0; +} + +table, th, td { + border: 1px solid rgba(0, 0, 0, 0.1); +} + +table { + border-collapse: separate; + border-spacing: 0; + border-width: 1px 0 0 1px; + margin: 0 0 1.5em; + width: 100%; +} + +th, +td { + padding: 8px; +} + +th { + border-width: 0 1px 1px 0; +} + +td { + border-width: 0 1px 1px 0; +} + +hr { + background-color: rgba(0, 0, 0, 0.1); + border: 0; + height: 1px; + margin-bottom: 40px; + margin-top: 40px; +} + +fieldset { + padding: 0; + border: 0; + min-width: inherit; +} + +fieldset legend { + padding: 0; + margin-bottom: 1.5em; +} + +.site-main .gallery { + margin-bottom: 1.5em; +} + +.gallery-item img { + vertical-align: bottom; +} + +.gallery-icon { + padding: 5px; +} + +.one-container .comments-area { + margin-top: 1.5em; +} + +h1 { + font-size: 35px; + margin-bottom: 20px; + line-height: 1.2em; +} + +h2 { + font-size: 25px; + margin-bottom: 20px; + line-height: 1.2em; +} + +h3 { + font-size: 20px; + margin-bottom: 20px; + line-height: 1.2em; +} + +h4, h5, h6 { + margin-bottom: 20px; +} + +/* Full width inner elements */ +.inside-navigation:not(.grid-container):after, +.inside-navigation:not(.grid-container):before, +.inside-header:not(.grid-container):after, +.inside-header:not(.grid-container):before, +.inside-footer-widgets:not(.grid-container):after, +.inside-footer-widgets:not(.grid-container):before { + content: "."; + display: block; + overflow: hidden; + visibility: hidden; + font-size: 0; + line-height: 0; + width: 0; + height: 0; + clear: both; +} + +/* Layout spacing */ +.one-container.both-left .inside-left-sidebar { + margin-right: 15px; +} + +.one-container.both-left .inside-right-sidebar { + margin-left: 15px; +} + +.one-container.both-right .inside-left-sidebar { + margin-right: 15px; +} + +.one-container.both-right .inside-right-sidebar { + margin-left: 15px; +} + +.site-content { + word-wrap: break-word; +} + +.separate-containers .site-main > *:last-child, +.one-container .site-main > *:last-child { + margin-bottom: 0; +} + +.one-container .site-main { + margin-top: 0; + margin-bottom: 0; +} + +.one-container .site-main { + margin-top: 0; + margin-left: 0; + margin-right: 0; +} + +.one-container .inside-right-sidebar, +.one-container .inside-left-sidebar { + margin-top: 0; +} + +.one-container .inside-article { + padding: 0 0 30px 0; +} + +.one-container.page .inside-article { + padding-bottom: 0; +} + +.page-content > *:last-child, +.entry-content > *:last-child, +.entry-summary > *:last-child { + margin-bottom: 0; +} + +/* Widget styling */ +.sidebar .widget *:last-child, +.footer-widgets .widget *:last-child { + margin-bottom: 0; +} + +.widget { + box-sizing: border-box; +} + +.widget-title { + margin-bottom: 30px; + font-size: 20px; + line-height: 1.5; +} + +.widget ul, +.widget ol { + margin: 0; +} + +div:not(.entry-content) .widget ul li { + list-style-type: none; + position:relative; + padding-bottom: 5px; +} + +div:not(.entry-content) .widget ul li ul li:before { + opacity:.7; +} + +.widget .search-field { + width: 100%; +} + +.widget:last-child, +.separate-containers .widget:last-child { + margin-bottom: 0; +} + +.widget_nav_menu ul ul, +.widget_pages ul ul { + margin-left: 1em; + margin-top: 5px; +} + +.widget ul li.menu-item-has-children, +.widget ul li.page_item_has_children { + padding-bottom:0; +} + +.header-widget .widget-title { + margin-bottom: 15px; +} + +#wp-calendar { + table-layout: fixed; + font-size: 80%; +} + +#wp-calendar #prev, +#wp-calendar #prev + .pad { + border-right: 0; +} + +.sidebar .grid-container { + max-width:100%; + width:100%; +} + +.footer-widgets { + padding: 40px 0; +} + +.inside-footer-widgets .inner-padding { + padding: 0 40px; +} + +.site-info { + text-align: center; +} + +/* Footer bar */ +.footer-bar-active .footer-bar .widget { + padding: 0; +} + +.footer-bar .widget_nav_menu > div > ul { + display: inline-block; + vertical-align: top; +} + +.footer-bar .textwidget p:last-child { + margin: 0; +} + +/* Footer bar aligned right */ +.footer-bar-align-right .copyright-bar { + float: left; +} + +.footer-bar-align-right .footer-bar { + float: right; + text-align: right; +} + +/* Footer bar aligned left */ +.footer-bar-align-left .copyright-bar { + float: right; + text-align: right; +} + +.footer-bar-align-left .footer-bar { + float: left; + text-align: left; +} + +/* Footer bar aligned center */ +.footer-bar-align-center .copyright-bar { + float: none; + text-align: center; +} + +.footer-bar-align-center .footer-bar { + float: none; + text-align: center; + margin-bottom: 10px; +} + +.footer-bar .widget-title { + display: none; +} + +/* Footer bar menu */ +.footer-bar .widget_nav_menu li { + margin: 0 10px; + float: left; + padding: 0; +} + +.footer-bar .widget_nav_menu li:first-child { + margin-left: 0; +} + +.footer-bar .widget_nav_menu li:last-child { + margin-right: 0; +} + +.footer-bar .widget_nav_menu li ul { + display: none; +} + +/* Posts */ +.entry-title { + margin-bottom: 0; +} + +.entry-header { + word-wrap: break-word; +} + +.page-header { + margin-bottom: 30px; +} + +.page-header .avatar { + float: left; + margin-right: 20px; +} + +.page-header .author-info { + overflow: hidden; +} + +.page-header > *:last-child, +.page-header .author-info > *:last-child { + margin-bottom:0; +} + +.entry-meta { + font-size: 85%; + margin-top: .5em; + line-height: 1.5; +} + +footer.entry-meta { + margin-top: 2em; +} + +footer.entry-meta .author:before, +footer.entry-meta .posted-on:before, +.cat-links:before, +.tags-links:before, +.comments-link:before, +.nav-previous .prev:before, +.nav-next .next:before { + font-family: GeneratePress; + text-decoration: inherit; + position: relative; + margin-right: 0.6em; + width: 13px; + text-align: center; + display: inline-block; +} + +footer.entry-meta .author:before { + content: "\f007"; +} + +footer.entry-meta .posted-on:before { + content: "\f073"; +} +.cat-links:before { + content: "\f07b"; +} + +.tags-links:before { + content: "\f02c"; +} + +.comments-link:before { + content: "\f086"; +} + +.nav-previous .prev:before { + content: "\f104"; +} + +.nav-next .next:before { + content: "\f105"; +} + +.cat-links, +.tags-links, +.comments-link, +footer.entry-meta .posted-on, +footer.entry-meta .byline { + display: block; +} + +.taxonomy-description p:last-child { + margin-bottom: 0; +} + +.paging-navigation:before, +.paging-navigation:after { + content: "."; + display: block; + overflow: hidden; + visibility: hidden; + font-size: 0; + line-height: 0; + width: 0; + height: 0; +} + +.paging-navigation:after { + clear: both; +} + +.paging-navigation .nav-previous, +.paging-navigation .nav-next { + display: none; +} + +/* Only for WordPress < 4.4 */ +.site-main .paging-navigation .navigation { + margin: 0; +} + +.comment-respond { + margin-top: 0; +} + +.read-more-container { + margin-bottom: 0; +} + +.site-main .post-navigation { + margin-bottom: 0; +} + +/* Site header */ + +.main-title { + margin: 0; + font-size: 50px; + line-height: 1.2em; +} + +.site-logo { + display: inline-block; + max-width: 100%; +} + +.site-description { + margin: 0; + line-height: 1.5; +} + +.header-widget { + float: right; + overflow: hidden; + max-width: 50%; +} + +.header-widget .widget { + padding: 0 0 20px; + margin-bottom: 0; +} + +.header-widget .widget:last-child { + padding-bottom:0; +} + +.nav-float-right .header-widget .widget { + padding: 0 0 10px; +} + +.nav-float-right .header-widget .widget:last-child { + padding-bottom: 0; +} + +.nav-float-right .header-widget { + position:relative; + top: -10px; +} + +.post-image { + margin: 2em 0 0; +} + +/* Page Header Add-on */ +.page-header-image, +.page-header-image-single { + line-height: 0; /* no more weird spacing */ +} + +.separate-containers .page-header-image, +.separate-containers .page-header-content { + margin-top: 30px; +} + +.separate-containers .inside-article > [class*="page-header-"], +.one-container .inside-article > [class*="page-header-"] { + margin-bottom: 2em; + margin-top: 0; +} + +.inside-article .page-header-image-single.page-header-below-title { + margin-top: 2em; +} + +/* Temporary clearing until GPP 1.6.3 */ +.page-header-content-container:before, +.page-header-content-container:after { + content: ""; + display: table; +} + +.page-header-content-container:after { + clear: both; +} + +/* Full width template */ +.full-width-content .container.grid-container { + max-width: 100%; +} + +.full-width-content.no-sidebar.separate-containers .site-main { + margin: 0; +} + +.full-width-content.separate-containers .inside-article, +.full-width-content.one-container .site-content { + padding: 0; +} + +/* Remove content padding */ +.contained-content.separate-containers .inside-article, +.contained-content.one-container .site-content { + padding: 0; +} + +/* Top bar */ +.top-bar .inside-top-bar .widget { + padding: 0; + display: inline-block; + margin: 0; +} + +.top-bar .inside-top-bar .textwidget p:last-child { + margin: 0; +} + +.top-bar-align-center { + text-align: center; +} + +.top-bar-align-right { + text-align: right; +} + +.top-bar-align-right .inside-top-bar >.widget:nth-child(even) { + float: left; + margin-right: 10px; +} + +.top-bar-align-right .inside-top-bar >.widget:nth-child(odd) { + margin-left: 10px; +} + +.top-bar-align-left .inside-top-bar >.widget:nth-child(even) { + margin-left: 10px; + float: right; +} + +.top-bar-align-left .inside-top-bar > .widget:nth-child(odd) { + float: left; + margin-right: 10px; +} + +.top-bar-align-center .inside-top-bar .widget:not(:first-child) { + margin-left: 10px; +} + +.top-bar-align-center .inside-top-bar .widget:first-child:last-child { + display: block +} + +.inside-top-bar:not(.grid-container):after, +.inside-top-bar:not(.grid-container):before { + content: "."; + display: block; + overflow: hidden; + visibility: hidden; + font-size: 0; + line-height: 0; + width: 0; + height: 0; + clear: both; +} + +.top-bar .widget-title { + display: none; +} + +/* Top bar menu */ +.top-bar .widget_nav_menu li { + margin: 0 10px; + float: left; + padding: 0; +} + +.top-bar .widget_nav_menu li:first-child { + margin-left: 0; +} + +.top-bar .widget_nav_menu li:last-child { + margin-right: 0; +} + +.top-bar .widget_nav_menu li ul { + display: none; +} + +.top-bar .widget_nav_menu > div > ul { + display: inline-block; + vertical-align: top; +} + +/* SiteOrigin Page Builder */ +.so-panel.widget { + padding: 0; +} + +/* MailChimp CSS */ +#mc_embed_signup .clear { + display: block; + height: auto; + visibility: visible; + width: auto; +} + +/* Bootstrap fix */ +.container.grid-container { + width: auto; +} + +/* Menu class for items to float right */ +.sf-menu > li.menu-item-float-right { + float: right !important; +} + +/* Back to top icon */ +.generate-back-to-top:before { + content: "\f106"; + font-family: GeneratePress; +} + +.generate-back-to-top, +.generate-back-to-top:visited { + font-size: 20px; + border-radius: 3px; + position: fixed; + bottom: 30px; + right: 30px; + line-height: 40px; + width: 40px; + text-align: center; + z-index: 10; + transition: opacity 300ms ease-in-out; +} + +.generate-back-to-top .screen-reader-text { + left: 0; +} + +/* Mobile menu */ +.menu-toggle, +.mobile-bar-items { + display: none; + cursor: pointer; +} + +.sidebar-nav-mobile { + display: none; +} + +/* Spacing */ +.inside-top-bar { + padding: 10px; +} + +.inside-header { + padding: 40px; +} + +.separate-containers .inside-article, +.separate-containers .comments-area, +.separate-containers .page-header, +.separate-containers .paging-navigation, +.one-container .site-content, +.inside-page-header { + padding: 40px; +} + +.one-container.right-sidebar .site-main, +.one-container.both-right .site-main { + margin-right: 40px; +} + +.one-container.left-sidebar .site-main, +.one-container.both-left .site-main { + margin-left: 40px; +} + +.one-container.both-sidebars .site-main { + margin: 0px 40px 0px 40px; +} + +.separate-containers .widget, +.separate-containers .site-main > *, +.separate-containers .page-header, +.widget-area .main-navigation { + margin-bottom: 20px; +} + +.right-sidebar.separate-containers .site-main { + margin: 20px 20px 20px 0px; +} + +.left-sidebar.separate-containers .site-main { + margin: 20px 0px 20px 20px; +} + +.both-sidebars.separate-containers .site-main { + margin: 20px; +} + +.both-right.separate-containers .site-main { + margin: 20px 20px 20px 0px; +} + +.both-right.separate-containers .inside-left-sidebar { + margin-right: 10px; +} + +.both-right.separate-containers .inside-right-sidebar { + margin-left: 10px; +} + +.both-left.separate-containers .site-main { + margin: 20px 0px 20px 20px; +} + +.both-left.separate-containers .inside-left-sidebar { + margin-right: 10px; +} + +.both-left.separate-containers .inside-right-sidebar { + margin-left: 10px; +} + +.separate-containers .site-main { + margin-top: 20px; + margin-bottom: 20px; +} + +.separate-containers .page-header-image, +.separate-containers .page-header-contained, +.separate-containers .page-header-image-single, +.separate-containers .page-header-content-single { + margin-top: 20px; +} + +.separate-containers .inside-right-sidebar, +.separate-containers .inside-left-sidebar { + margin-top: 20px; + margin-bottom: 20px; +} + +.main-navigation .main-nav ul li a, +.menu-toggle, +.main-navigation .mobile-bar-items a { + padding-left: 20px; + padding-right: 20px; + line-height: 60px; +} + +.main-navigation .main-nav ul ul li a { + padding: 10px 20px 10px 20px; +} + +.navigation-search, +.navigation-search input { + height: 100%; +} + +.menu-item-has-children .dropdown-menu-toggle { + padding-right: 20px; +} + +.menu-item-has-children ul .dropdown-menu-toggle { + padding-top: 10px; + padding-bottom: 10px; + margin-top: -10px; +} + +.widget-area .widget { + padding: 40px; +} + +.footer-widgets { + padding: 40px; +} + +.site-footer .footer-widgets-container .inner-padding { + padding: 0px 0px 0px 40px; +} + +.site-footer .footer-widgets-container .inside-footer-widgets { + margin-left: -40px; +} + +.site-info { + padding: 20px; +} + +/* Typography */ +body, +button, +input, +select, +textarea { + font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-weight: normal; + text-transform: none; + font-size: 17px; +} + +body { + line-height: 1.5; +} + +p { + margin-bottom: 1.5em; +} + +.top-bar { + font-weight: normal; + text-transform: none; + font-size: 13px; +} + +.main-title { + font-weight: bold; + text-transform: none; + font-size: 45px; +} + +.site-description { + font-weight: normal; + text-transform: none; + font-size: 15px; +} + +.main-navigation a, +.menu-toggle { + font-weight: normal; + text-transform: none; + font-size: 15px; +} + +.main-navigation .main-nav ul ul li a { + font-size: 14px; +} + +.widget-title { + font-weight: normal; + text-transform: none; + font-size: 20px; +} + +.sidebar .widget, +.footer-widgets .widget { + font-size: 17px; +} + +h1 { + font-weight: 300; + text-transform: none; + font-size: 40px; +} + +h2 { + font-weight: 300; + text-transform: none; + font-size: 30px; +} + +h3 { + font-weight: normal; + text-transform: none; + font-size: 20px; +} + +.site-info { + font-size: 15px; +} + +/* + * Icons + */ +@font-face { + font-family: 'GeneratePress'; + src: url('fonts/generatepress.eot'); + src: url('fonts/generatepress.eot#iefix') format('embedded-opentype'), + url('fonts/generatepress.woff2') format('woff2'), + url('fonts/generatepress.woff') format('woff'), + url('fonts/generatepress.ttf') format('truetype'), + url('fonts/generatepress.svg#GeneratePress') format('svg'); + font-weight: normal; + font-style: normal; +} + +.menu-toggle:before, +li.search-item a:before, +span.search-item a:before, +.dropdown-menu-toggle:before, +footer.entry-meta .author:before, +footer.entry-meta .posted-on:before, +.cat-links:before, +.tags-links:before, +.comments-link:before, +.nav-previous .prev:before, +.nav-next .next:before, +.generate-back-to-top:before { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-style: normal; + font-variant: normal; + text-rendering: auto; + line-height: 1; + speak: none; +} + +.cat-links:before, +.tags-links:before, +.comments-link:before, +.nav-previous .prev:before, +.nav-next .next:before { + opacity: 0.7; +} + +/* + * Backwards compatibility until Slideout is updated + * GP Premium 1.6 + */ +.main-navigation .slideout-toggle a:before, +.slide-opened .slideout-overlay .slideout-exit:before { + font-family: GeneratePress; +} diff --git a/wp-themes/generatepress/style.min.css b/wp-themes/generatepress/style.min.css new file mode 100644 index 0000000..14b24ca --- /dev/null +++ b/wp-themes/generatepress/style.min.css @@ -0,0 +1 @@ +a,abbr,acronym,applet,big,body,cite,code,del,dfn,div,dl,dt,em,font,form,html,iframe,ins,kbd,label,legend,li,object,q,s,samp,small,span,strike,strong,sub,sup,tbody,tfoot,thead,tr,tt,var{border:0;margin:0;padding:0}address,dd,h1,h2,h3,h4,h5,h6,ol,p,table,ul{border:0;padding:0}blockquote,pre{border:0}fieldset{margin:0}caption,td,th{border:0;margin:0}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}.main-navigation ul li a,article,aside,details,figcaption,figure,footer,header,main,nav,section{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}caption{padding:5px}caption,td,th{text-align:left}caption,td{font-weight:400}blockquote:after,blockquote:before,q:after,q:before{content:""}blockquote,q{quotes:"" ""}.dropdown-click nav ul ul ul,a{background-color:transparent}a img,hr{border:0}body,button,input,select,textarea{font-family:sans-serif;font-size:1.6rem}button,input,select,textarea{line-height:1.5}hr{background-color:#ccc;background-color:rgba(0,0,0,.1);height:1px;margin-bottom:40px;margin-top:40px}ol,ul{margin:0 0 1.5em 3em}ul{list-style:disc}ol{list-style:decimal}li>ol,li>ul{margin-bottom:0;margin-left:1.5em}b,dt,strong,th{font-weight:700}dd{margin:0 1.5em 1.5em}cite,dfn,em,i{font-style:italic}address,p{margin:0 0 1.5em}img,pre{max-width:100%}pre{background:#eee;font-size:1.5rem;background:rgba(0,0,0,.05);font-family:inherit;font-size:inherit;line-height:normal;margin:0 0 1.5em;padding:20px;overflow:auto}code,kbd,tt,var{font:15px Monaco,Consolas,"Andale Mono","DejaVu Sans Mono",monospace}abbr,acronym{border-bottom:1px dotted #666;cursor:help}ins,mark{text-decoration:none}sub,sup{font-size:75%;height:0;line-height:0;position:relative;vertical-align:baseline}sup{bottom:1ex}sub{top:.5ex}small{font-size:75%}big{font-size:125%}figure{margin:0}img{height:auto}button,input,select{vertical-align:baseline}button,input,select,textarea{margin:0;*vertical-align:middle}button,html input[type=button],input[type=reset],input[type=submit]{border:1px solid transparent;background:#666;cursor:pointer;-webkit-appearance:button;padding:10px 20px;color:#fff}button:hover,html input[type=button]:hover,input[type=reset]:hover,input[type=submit]:hover{background:#606060}button:active,button:focus,html input[type=button]:active,html input[type=button]:focus,input[type=reset]:active,input[type=reset]:focus,input[type=submit]:active,input[type=submit]:focus{background:#606060}.button{padding:10px 20px;display:inline-block}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=search]{-webkit-appearance:textfield}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{background:#fafafa;color:#666;border:1px solid #ccc;border-radius:0;padding:10px 15px;box-sizing:border-box;max-width:100%}input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{color:#111;background:#fff}textarea{overflow:auto;vertical-align:top;width:100%}input[type=file]{max-width:100%;box-sizing:border-box}.alignleft{display:inline;float:left;margin-right:1.5em}.alignright{display:inline;float:right;margin-left:1.5em}.aligncenter{clear:both;display:block;margin:0 auto}.size-auto,.size-full,.size-large,.size-medium,.size-thumbnail{max-width:100%;height:auto}.screen-reader-shortcut,.screen-reader-text,.screen-reader-text span{position:absolute!important;clip:rect(0,0,0,0);height:1px;width:1px;border:0;overflow:hidden}.screen-reader-shortcut:focus,.screen-reader-text:focus{clip:auto!important;height:auto;width:auto;display:block;font-size:1em;font-weight:700;padding:15px 23px 14px;color:#333;background:#fff;z-index:100000;text-decoration:none;box-shadow:0 0 2px 2px rgba(0,0,0,.6)}.clear:after,.clear:before,.comment-content:after,.comment-content:before,.entry-content:after,.entry-content:before,.site-content:after,.site-content:before,.site-footer:after,.site-footer:before,.site-header:after,.site-header:before,.site-info:after,.site-info:before{content:"";display:table}.clear:after,.comment-content:after,.entry-content:after,.site-content:after,.site-footer:after,.site-header:after,.site-info:after{clear:both}.main-navigation{z-index:100;padding:0;clear:both;display:block}.menu-toggle{margin:0;padding:0}.menu-toggle:before{content:"\f0c9";font-family:GeneratePress;width:1.28571429em;text-align:center;display:inline-block}.toggled .menu-toggle:before,li.search-item.close-search a:before,span.search-item.close-search a:before{content:"\f00d"}.menu-toggle .mobile-menu{padding-left:3px}.menu-toggle .mobile-menu:empty{display:none}.inside-navigation,.site-header{position:relative}.main-navigation ul,.menu-toggle li.search-item{list-style:none;margin:0;padding-left:0}li.search-item a:before,span.search-item a:before{content:"\f002";font-family:GeneratePress;width:1.28571429em;text-align:center;display:inline-block}.search-item .screen-reader-text{top:0;right:0;left:auto}.main-navigation li{float:left;position:relative}.main-navigation a{display:block;text-decoration:none}.main-navigation ul ul{display:block;box-shadow:0 2px 2px rgba(0,0,0,.1);float:left;position:absolute;left:-99999px;opacity:0;z-index:99999;width:200px;text-align:left;top:auto;transition:opacity 80ms linear;transition-delay:0s;pointer-events:none;height:0;overflow:hidden}.main-navigation ul ul a{display:block}.main-navigation ul ul li{width:100%}.dropdown-hover .main-navigation:not(.toggled) ul li.sfHover>ul,.dropdown-hover .main-navigation:not(.toggled) ul li:hover>ul{left:auto;opacity:1;transition-delay:150ms;pointer-events:auto;height:auto;overflow:visible}.dropdown-hover .main-navigation:not(.toggled) ul ul li.sfHover>ul,.dropdown-hover .main-navigation:not(.toggled) ul ul li:hover>ul{left:100%;top:0}.dropdown-click .main-navigation ul ul{visibility:hidden}.dropdown-click .main-navigation ul li.sfHover>ul.toggled-on,.dropdown-click .main-navigation ul.toggled-on{left:auto;opacity:1;visibility:visible;pointer-events:auto;height:auto;overflow:visible}.nav-float-right .inside-header .main-navigation{float:right;clear:right}.nav-float-left .inside-header .main-navigation{float:left;clear:left}.nav-float-left .inside-header .site-branding,.nav-float-left .inside-header .site-logo{float:right;clear:right}.nav-float-left .inside-header:after{clear:both;content:'';display:table}.nav-float-right .inside-header .site-branding{display:inline-block}.header-aligned-left .site-header,.nav-aligned-left.nav-above-header .main-navigation,.nav-aligned-left.nav-below-header .main-navigation{text-align:left}.header-aligned-center .site-header,.nav-aligned-center.nav-above-header .main-navigation,.nav-aligned-center.nav-below-header .main-navigation{text-align:center}.header-aligned-right .site-header,.nav-aligned-right.nav-above-header .main-navigation,.nav-aligned-right.nav-below-header .main-navigation{text-align:right}.site-header .header-image{vertical-align:middle}.main-navigation .main-nav ul ul li a,.nav-float-right .main-navigation .main-nav ul ul li a{line-height:normal}.nav-float-right .main-navigation ul ul ul{top:0}.main-navigation li.search-item{float:right;z-index:21}.rtl .main-navigation li.search-item,.rtl.nav-aligned-right.nav-below-header .main-navigation .menu>li.search-item{float:left}.navigation-search,li.search-item.active{transition:opacity 100ms ease-in-out}.navigation-search{position:absolute;left:-99999px;pointer-events:none;visibility:hidden;z-index:20;width:100%;top:0;opacity:0}.navigation-search.nav-search-active{left:0;right:0;pointer-events:auto;visibility:visible;opacity:1}.gen-sidebar-nav .navigation-search{top:auto;bottom:0}.navigation-search input{border:0;vertical-align:bottom;line-height:0;opacity:.9;width:100%;z-index:20;border-radius:0;-webkit-appearance:none}.navigation-search input::-ms-clear{display:none;width:0;height:0}.navigation-search input::-ms-reveal{display:none;width:0;height:0}.navigation-search input::-webkit-search-cancel-button,.navigation-search input::-webkit-search-decoration,.navigation-search input::-webkit-search-results-button,.navigation-search input::-webkit-search-results-decoration{display:none}.nav-left-sidebar .main-navigation li.search-item,.nav-right-sidebar .main-navigation li.search-item{width:auto;display:inline-block}.nav-left-sidebar .main-navigation li.search-item.current-menu-item,.nav-right-sidebar .main-navigation li.search-item.current-menu-item,.sidebar .menu-item-has-children .dropdown-menu-toggle,nav ul ul .menu-item-has-children .dropdown-menu-toggle{float:right}.nav-aligned-center.nav-above-header .main-navigation .menu>li,.nav-aligned-center.nav-below-header .main-navigation .menu>li,.nav-aligned-right.nav-above-header .main-navigation .menu>li,.nav-aligned-right.nav-below-header .main-navigation .menu>li{float:none;display:inline-block}.nav-aligned-center .main-navigation ul,.nav-aligned-right .main-navigation ul{letter-spacing:-.31em;font-size:1em}.nav-aligned-center .main-navigation ul li,.nav-aligned-right .main-navigation ul li{letter-spacing:normal}.menu-item-has-children .dropdown-menu-toggle{display:inline-block;height:100%;clear:both;padding-left:10px}.dropdown-menu-toggle:before{content:"\f107";font-family:GeneratePress}.dropdown-click .menu-item-has-children.sfHover>a .dropdown-menu-toggle:before{content:"\f106"}.dropdown-hover .children .dropdown-menu-toggle:before,.dropdown-hover .sub-menu .dropdown-menu-toggle:before{content:"\f105"}.dropdown-hover .inside-right-sidebar .dropdown-menu-toggle:before,.dropdown-hover.both-right .inside-left-sidebar .dropdown-menu-toggle:before{content:"\f104"}.dropdown-hover .inside-left-sidebar .dropdown-menu-toggle:before,.dropdown-hover.both-left .inside-right-sidebar .dropdown-menu-toggle:before{content:"\f105"}.dropdown-click .main-navigation ul ul ul.toggled-on{left:0;top:auto;position:relative}.dropdown-click .widget-area .main-navigation ul ul{top:auto;position:absolute;float:none;width:100%;left:-99999px}.dropdown-click .widget-area .main-navigation ul ul.toggled-on{position:relative;left:0;right:0}.main-navigation .main-nav ul li.menu-item-has-children>a{padding-right:0;position:relative}.widget-area .main-navigation li{float:none;display:block;width:100%;padding:0;margin:0}.dropdown-hover .widget-area .main-navigation ul li.sfHover>ul,.dropdown-hover .widget-area .main-navigation ul li:hover ul{top:0;left:100%;width:220px}.dropdown-hover.both-right .widget-area .main-navigation ul li.sfHover ul,.dropdown-hover.both-right .widget-area .main-navigation ul li:hover ul,.dropdown-hover.both-sidebars .widget-area .inside-right-sidebar .main-navigation ul li.sfHover ul,.dropdown-hover.both-sidebars .widget-area .inside-right-sidebar .main-navigation ul li:hover ul,.dropdown-hover.right-sidebar .widget-area .main-navigation ul li.sfHover ul,.dropdown-hover.right-sidebar .widget-area .main-navigation ul li:hover ul{right:100%;left:auto}.slideout-navigation .dropdown-menu-toggle:before{content:"\f107"!important}.slideout-navigation .sfHover>a .dropdown-menu-toggle:before{content:"\f106"!important}.post{margin:0 0 2em}.archive .format-aside .entry-header,.archive .format-status .entry-header,.archive .format-status .entry-meta,.archive .format-status .entry-title,.blog .format-aside .entry-header,.blog .format-status .entry-header,.blog .format-status .entry-meta,.blog .format-status .entry-title,.comment-metadata .edit-link:before,.posted-on .updated{display:none}.byline,.group-blog .byline,.single .byline{display:inline}.entry-content,.entry-summary,.page-content{margin:2em 0 0}.page-links{clear:both;margin:0 0 1.5em}.archive .format-aside .entry-content,.archive .format-status .entry-content,.blog .format-aside .entry-content,.blog .format-status .entry-content{margin-top:0}.archive .format-status .entry-content p:last-child,.blog .format-status .entry-content p:last-child,.comment-content p:last-child{margin-bottom:0}.comment-content img.wp-smiley,.entry-content img.wp-smiley,.page-content img.wp-smiley{border:0;margin-bottom:0;margin-top:0;padding:0}.wp-caption{max-width:100%;position:relative}.wp-caption img[class*=wp-image-]{display:block;margin:0 auto;max-width:100%}.wp-caption .wp-caption-text{font-size:75%;padding-top:5px;opacity:.8}.wp-caption img{position:relative;vertical-align:bottom}.gallery,.wp-caption,ol.comment-list{margin-bottom:1.5em}.gallery-item{display:inline-block;text-align:center;vertical-align:top;width:100%}.gallery-columns-2 .gallery-item{max-width:50%}.gallery-columns-3 .gallery-item{max-width:33.33%}.gallery-columns-4 .gallery-item{max-width:25%}.gallery-columns-5 .gallery-item{max-width:20%}.gallery-columns-6 .gallery-item{max-width:16.66%}.gallery-columns-7 .gallery-item{max-width:14.28%}.gallery-columns-8 .gallery-item{max-width:12.5%}.gallery-columns-9 .gallery-item{max-width:11.11%}.comment-form #author,.comment-form #email,.comment-form #url,.gallery-caption{display:block}.widget select,embed,iframe,object{max-width:100%}.site-main .comment-navigation,.site-main .post-navigation,.site-main .posts-navigation{margin:0 0 2em;overflow:hidden}.comment-content a{word-wrap:break-word}.comment,.comment-list{list-style-type:none;padding:0;margin:0}.comment-author-info{display:inline-block;vertical-align:middle}.comment-meta .avatar{float:left;margin-right:10px;-moz-border-radius:50%;-webkit-border-radius:50%;border-radius:50%}.comment-author cite{font-style:normal;font-weight:700}.entry-meta.comment-metadata{margin-top:0}.comment-content{margin-top:1.5em}.comment-form>.form-submit{margin-bottom:0}.comment-form input,.comment-form-comment{margin-bottom:10px}.comment-body{padding:30px 0}.comment-content{padding:30px;border:1px solid rgba(0,0,0,.05)}.comment .children{padding-left:30px;margin-top:-30px;border-left:1px solid rgba(0,0,0,.05)}.depth-1.parent>.children,.pingback .comment-body,.trackback .comment-body{border-bottom:1px solid rgba(0,0,0,.05)}.pingback .edit-link{font-size:13px}.comment-list>.comment:first-child{padding-top:0;margin-top:0;border-top:0}#wp-comment-cookies-consent{margin-right:7px}.widget{margin:0 0 30px}.widget_search .search-submit{display:none}.widget_categories .children{margin-left:1.5em;padding-top:5px}.widget_categories .children li:last-child{padding-bottom:0}.infinite-scroll .paging-navigation,.infinite-scroll.neverending .site-footer{display:none}.infinity-end.neverending .site-footer{display:block}a,button,input{transition:color .1s ease-in-out,background-color .1s ease-in-out}a,a:focus,a:hover,a:visited{text-decoration:none}.main-title{word-wrap:break-word}h1,h2,h3,h4,h5,h6{font-family:inherit;font-style:inherit}h4,h5,h6{font-size:100%;font-weight:inherit}blockquote{border-left:5px solid rgba(0,0,0,.05);padding:20px;font-size:1.2em;font-style:italic;margin:0 0 1.5em;position:relative}.footer-bar .textwidget p:last-child,.top-bar .inside-top-bar .textwidget p:last-child,blockquote p:last-child{margin:0}table,td,th{border:1px solid rgba(0,0,0,.1)}table{border-collapse:separate;border-spacing:0;border-width:1px 0 0 1px;margin:0 0 1.5em;width:100%}td,th{padding:8px;border-width:0 1px 1px 0}fieldset{border:0;min-width:inherit}fieldset,fieldset legend{padding:0}.site-main .gallery,fieldset legend,p{margin-bottom:1.5em}.gallery-item img{vertical-align:bottom}.gallery-icon{padding:5px}.one-container .comments-area{margin-top:1.5em}h1,h2{font-weight:300;text-transform:none;font-size:40px}h2{font-size:30px}h1,h2,h3{line-height:1.2em}h1,h2,h3,h4,h5,h6{margin:0 0 20px}.inside-footer-widgets:not(.grid-container):after,.inside-footer-widgets:not(.grid-container):before,.inside-header:not(.grid-container):after,.inside-header:not(.grid-container):before,.inside-navigation:not(.grid-container):after,.inside-navigation:not(.grid-container):before{content:".";display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0;clear:both}.one-container.both-left .inside-left-sidebar{margin-right:15px}.one-container.both-left .inside-right-sidebar{margin-left:15px}.one-container.both-right .inside-left-sidebar{margin-right:15px}.one-container.both-right .inside-right-sidebar{margin-left:15px}.site-content{word-wrap:break-word}.one-container .site-main>:last-child,.separate-containers .site-main>:last-child{margin-bottom:0}.one-container .site-main{margin:0}.one-container .inside-left-sidebar,.one-container .inside-right-sidebar{margin-top:0}.one-container .inside-article{padding:0 0 30px}.one-container.page .inside-article,.widget ul li.menu-item-has-children,.widget ul li.page_item_has_children{padding-bottom:0}.entry-content>:last-child,.entry-summary>:last-child,.footer-widgets .widget :last-child,.page-content>:last-child,.sidebar .widget :last-child{margin-bottom:0}.widget{box-sizing:border-box}.widget-title{margin-bottom:30px;line-height:1.5}.widget ol,.widget ul{margin:0}div:not(.entry-content) .widget ul li{list-style-type:none;position:relative;padding-bottom:5px}div:not(.entry-content) .widget ul li ul li:before{opacity:.7}.widget .search-field{width:100%}.separate-containers .widget:last-child,.widget:last-child{margin-bottom:0}.widget_nav_menu ul ul,.widget_pages ul ul{margin-left:1em;margin-top:5px}.header-widget .widget-title{margin-bottom:15px}#wp-calendar{table-layout:fixed;font-size:80%}#wp-calendar #prev,#wp-calendar #prev+.pad{border-right:0}.sidebar .grid-container{max-width:100%;width:100%}.inside-footer-widgets .inner-padding{padding:0 40px}.site-info{text-align:center}.footer-bar-active .footer-bar .widget{padding:0}.footer-bar .widget_nav_menu>div>ul{display:inline-block;vertical-align:top}.footer-bar-align-right .copyright-bar{float:left}.footer-bar-align-left .copyright-bar,.footer-bar-align-right .footer-bar{float:right;text-align:right}.footer-bar-align-left .footer-bar{float:left;text-align:left}.footer-bar-align-center .copyright-bar{float:none;text-align:center}.footer-bar-align-center .footer-bar{float:none;text-align:center;margin-bottom:10px}.footer-bar .widget-title,.footer-bar .widget_nav_menu li ul{display:none}.footer-bar .widget_nav_menu li,.top-bar .widget_nav_menu li{margin:0 10px;float:left;padding:0}.footer-bar .widget_nav_menu li:first-child{margin-left:0}.footer-bar .widget_nav_menu li:last-child{margin-right:0}.entry-title{margin-bottom:0}.entry-header{word-wrap:break-word}.page-header{margin-bottom:30px}.page-header .avatar{float:left;margin-right:20px}.page-header .author-info{overflow:hidden}.page-header .author-info>:last-child,.page-header>:last-child,.taxonomy-description p:last-child{margin-bottom:0}.entry-meta{font-size:85%;margin-top:.5em;line-height:1.5}footer.entry-meta{margin-top:2em}.cat-links:before,.comments-link:before,.nav-next .next:before,.nav-previous .prev:before,.tags-links:before,footer.entry-meta .author:before,footer.entry-meta .posted-on:before{font-family:GeneratePress;text-decoration:inherit;position:relative;margin-right:.6em;width:13px;text-align:center;display:inline-block}footer.entry-meta .author:before{content:"\f007"}footer.entry-meta .posted-on:before{content:"\f073"}.cat-links:before{content:"\f07b"}.tags-links:before{content:"\f02c"}.comments-link:before{content:"\f086"}.nav-previous .prev:before{content:"\f104"}.nav-next .next:before{content:"\f105"}.cat-links,.comments-link,.tags-links,footer.entry-meta .byline,footer.entry-meta .posted-on{display:block}.paging-navigation:after,.paging-navigation:before{content:".";display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0}.paging-navigation:after{clear:both}.paging-navigation .nav-next,.paging-navigation .nav-previous{display:none}.site-main .paging-navigation .navigation{margin:0}.comment-respond{margin-top:0}.read-more-container,.site-main .post-navigation{margin-bottom:0}.main-title{margin:0;line-height:1.2em}.site-logo{display:inline-block;max-width:100%}.site-description{margin:0;line-height:1.5}.header-widget{float:right;overflow:hidden;max-width:50%}.header-widget .widget{padding:0 0 20px;margin-bottom:0}.header-widget .widget:last-child,.nav-float-right .header-widget .widget:last-child{padding-bottom:0}.nav-float-right .header-widget .widget{padding:0 0 10px}.nav-float-right .header-widget{position:relative;top:-10px}.post-image{margin:2em 0 0}.page-header-image,.page-header-image-single{line-height:0}.separate-containers .page-header-content{margin-top:30px}.one-container .inside-article>[class*=page-header-],.separate-containers .inside-article>[class*=page-header-]{margin-bottom:2em;margin-top:0}.inside-article .page-header-image-single.page-header-below-title{margin-top:2em}.page-header-content-container:after,.page-header-content-container:before{content:"";display:table}.page-header-content-container:after{clear:both}.full-width-content .container.grid-container{max-width:100%}.full-width-content.no-sidebar.separate-containers .site-main{margin:0}.contained-content.one-container .site-content,.contained-content.separate-containers .inside-article,.full-width-content.one-container .site-content,.full-width-content.separate-containers .inside-article{padding:0}.top-bar .inside-top-bar .widget{padding:0;display:inline-block;margin:0}.top-bar-align-center{text-align:center}.top-bar-align-right{text-align:right}.top-bar-align-right .inside-top-bar>.widget:nth-child(even){float:left;margin-right:10px}.top-bar-align-right .inside-top-bar>.widget:nth-child(odd){margin-left:10px}.top-bar-align-left .inside-top-bar>.widget:nth-child(even){margin-left:10px;float:right}.top-bar-align-left .inside-top-bar>.widget:nth-child(odd){float:left;margin-right:10px}.top-bar-align-center .inside-top-bar .widget:not(:first-child){margin-left:10px}.top-bar-align-center .inside-top-bar .widget:first-child:last-child{display:block}.inside-top-bar:not(.grid-container):after,.inside-top-bar:not(.grid-container):before{content:".";display:block;overflow:hidden;visibility:hidden;font-size:0;line-height:0;width:0;height:0;clear:both}.top-bar .widget-title,.top-bar .widget_nav_menu li ul{display:none}.top-bar .widget_nav_menu li:first-child{margin-left:0}.top-bar .widget_nav_menu li:last-child{margin-right:0}.top-bar .widget_nav_menu>div>ul{display:inline-block;vertical-align:top}.so-panel.widget{padding:0}#mc_embed_signup .clear{display:block;height:auto;visibility:visible;width:auto}.container.grid-container{width:auto}.sf-menu>li.menu-item-float-right{float:right!important}.generate-back-to-top:before{content:"\f106";font-family:GeneratePress}.generate-back-to-top,.generate-back-to-top:visited{font-size:20px;border-radius:3px;position:fixed;bottom:30px;right:30px;line-height:40px;width:40px;text-align:center;z-index:10;transition:opacity 300ms ease-in-out}.generate-back-to-top .screen-reader-text{left:0}.menu-toggle,.mobile-bar-items{display:none;cursor:pointer}.sidebar-nav-mobile{display:none}.inside-top-bar{padding:10px}.inside-header,.inside-page-header,.one-container .site-content,.separate-containers .comments-area,.separate-containers .inside-article,.separate-containers .page-header,.separate-containers .paging-navigation{padding:40px}.one-container.both-right .site-main,.one-container.right-sidebar .site-main{margin-right:40px}.one-container.both-left .site-main,.one-container.left-sidebar .site-main{margin-left:40px}.one-container.both-sidebars .site-main{margin:0 40px}.separate-containers .page-header,.separate-containers .site-main>*,.separate-containers .widget,.widget-area .main-navigation{margin-bottom:20px}.right-sidebar.separate-containers .site-main{margin:20px 20px 20px 0}.left-sidebar.separate-containers .site-main{margin:20px 0 20px 20px}.both-sidebars.separate-containers .site-main{margin:20px}.both-right.separate-containers .site-main{margin:20px 20px 20px 0}.both-right.separate-containers .inside-left-sidebar{margin-right:10px}.both-right.separate-containers .inside-right-sidebar{margin-left:10px}.both-left.separate-containers .site-main{margin:20px 0 20px 20px}.both-left.separate-containers .inside-left-sidebar{margin-right:10px}.both-left.separate-containers .inside-right-sidebar{margin-left:10px}.separate-containers .site-main{margin-top:20px;margin-bottom:20px}.separate-containers .page-header-contained,.separate-containers .page-header-content-single,.separate-containers .page-header-image,.separate-containers .page-header-image-single{margin-top:20px}.separate-containers .inside-left-sidebar,.separate-containers .inside-right-sidebar{margin-top:20px;margin-bottom:20px}.main-navigation .main-nav ul li a,.main-navigation .mobile-bar-items a,.menu-toggle{padding-left:20px;padding-right:20px;line-height:60px}.main-navigation .main-nav ul ul li a{padding:10px 20px;font-size:14px}.navigation-search,.navigation-search input{height:100%}.menu-item-has-children .dropdown-menu-toggle{padding-right:20px}.menu-item-has-children ul .dropdown-menu-toggle{padding-top:10px;padding-bottom:10px;margin-top:-10px}.footer-widgets,.widget-area .widget{padding:40px}.site-footer .footer-widgets-container .inner-padding{padding:0 0 0 40px}.site-footer .footer-widgets-container .inside-footer-widgets{margin-left:-40px}.site-info{padding:20px}body,button,input,select,textarea{font-family:-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-weight:400;text-transform:none;font-size:17px}body{line-height:1.5}.main-title,.top-bar{font-weight:400;text-transform:none;font-size:13px}.main-title{font-weight:700;font-size:45px}.main-navigation a,.menu-toggle,.site-description,.widget-title,h3{font-weight:400;text-transform:none;font-size:15px}.widget-title,h3{font-size:20px}.footer-widgets .widget,.sidebar .widget{font-size:17px}.site-info{font-size:15px}@font-face{font-family:'GeneratePress';src:url(fonts/generatepress.eot);src:url(fonts/generatepress.eot#iefix) format('embedded-opentype'),url(fonts/generatepress.woff2) format('woff2'),url(fonts/generatepress.woff) format('woff'),url(fonts/generatepress.ttf) format('truetype'),url(fonts/generatepress.svg#GeneratePress) format('svg');font-weight:400;font-style:normal}.cat-links:before,.comments-link:before,.dropdown-menu-toggle:before,.generate-back-to-top:before,.menu-toggle:before,.nav-next .next:before,.nav-previous .prev:before,.tags-links:before,footer.entry-meta .author:before,footer.entry-meta .posted-on:before,li.search-item a:before,span.search-item a:before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1;speak:none}.cat-links:before,.comments-link:before,.nav-next .next:before,.nav-previous .prev:before,.tags-links:before{opacity:.7}.main-navigation .slideout-toggle a:before,.slide-opened .slideout-overlay .slideout-exit:before{font-family:GeneratePress} diff --git a/wp-themes/index.php b/wp-themes/index.php new file mode 100644 index 0000000..6220032 --- /dev/null +++ b/wp-themes/index.php @@ -0,0 +1,2 @@ +