diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..e9463d5 --- /dev/null +++ b/.htaccess @@ -0,0 +1,95 @@ +# BEGIN LSCACHE +## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## + +RewriteEngine on +CacheLookup on +RewriteRule .* - [E=Cache-Control:no-autoflush] +RewriteRule \.litespeed_conf\.dat - [F,L] + +### marker ASYNC start ### +RewriteCond %{REQUEST_URI} /wp-admin/admin-ajax\.php +RewriteCond %{QUERY_STRING} action=async_litespeed +RewriteRule .* - [E=noabort:1] +### marker ASYNC end ### + +### marker MOBILE start ### +RewriteCond %{HTTP_USER_AGENT} Mobile|Android|Silk/|Kindle|BlackBerry|Opera\ Mini|Opera\ Mobi [NC] +RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+ismobile] +### marker MOBILE end ### + +### marker CACHE RESOURCE start ### +RewriteRule wp-content/.*/[^/]*(responsive|css|js|dynamic|loader|fonts)\.php - [E=cache-control:max-age=3600] +### marker CACHE RESOURCE end ### + +### marker WEBP start ### +RewriteCond %{HTTP_ACCEPT} "image/webp" +RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp] +RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari +RewriteCond %1 >13 +RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp] +### marker WEBP end ### + +### marker DROPQS start ### +CacheKeyModify -qs:fbclid +CacheKeyModify -qs:gclid +CacheKeyModify -qs:utm* +CacheKeyModify -qs:_ga +### marker DROPQS end ### + + +## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## +# END LSCACHE +# BEGIN NON_LSCACHE +## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## +### marker BROWSER CACHE start ### + +ExpiresActive on +ExpiresByType application/pdf A31557600 +ExpiresByType image/x-icon A31557600 +ExpiresByType image/vnd.microsoft.icon A31557600 +ExpiresByType image/svg+xml A31557600 + +ExpiresByType image/jpg A31557600 +ExpiresByType image/jpeg A31557600 +ExpiresByType image/png A31557600 +ExpiresByType image/gif A31557600 +ExpiresByType image/webp A31557600 + +ExpiresByType video/ogg A31557600 +ExpiresByType audio/ogg A31557600 +ExpiresByType video/mp4 A31557600 +ExpiresByType video/webm A31557600 + +ExpiresByType text/css A31557600 +ExpiresByType text/javascript A31557600 +ExpiresByType application/javascript A31557600 +ExpiresByType application/x-javascript A31557600 + +ExpiresByType application/x-font-ttf A31557600 +ExpiresByType application/x-font-woff A31557600 +ExpiresByType application/font-woff A31557600 +ExpiresByType application/font-woff2 A31557600 +ExpiresByType application/vnd.ms-fontobject A31557600 +ExpiresByType font/ttf A31557600 +ExpiresByType font/otf A31557600 +ExpiresByType font/woff A31557600 +ExpiresByType font/woff2 A31557600 + + +### marker BROWSER CACHE end ### + +## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## +# END NON_LSCACHE +# BEGIN WordPress +# Dyrektywy zawarte między "BEGIN WordPress" oraz "END WordPress" +# są generowane dynamicznie i powinny być modyfikowane tylko za pomocą +# filtrów WordPressa. Zmiany dokonane bezpośrednio tutaj będą nadpisywane. + +RewriteEngine On +RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] +RewriteBase / +RewriteRule ^index\.php$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /index.php [L] + \ No newline at end of file diff --git a/.htaccess.bk b/.htaccess.bk new file mode 100644 index 0000000..2945d71 --- /dev/null +++ b/.htaccess.bk @@ -0,0 +1,13 @@ +# BEGIN WordPress +# Dyrektywy zawarte między "BEGIN WordPress" oraz "END WordPress" +# są generowane dynamicznie i powinny być modyfikowane tylko za pomocą +# filtrów WordPressa. Zmiany dokonane bezpośrednio tutaj będą nadpisywane. + +RewriteEngine On +RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] +RewriteBase / +RewriteRule ^index\.php$ - [L] +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /index.php [L] + \ No newline at end of file diff --git a/.vscode/ftp-kr.json b/.vscode/ftp-kr.json index b2e74cd..b832f6b 100644 --- a/.vscode/ftp-kr.json +++ b/.vscode/ftp-kr.json @@ -6,7 +6,7 @@ "protocol": "ftp", "port": 0, "fileNameEncoding": "utf8", - "autoUpload": false, + "autoUpload": true, "autoDelete": false, "autoDownload": false, "ignoreRemoteModification": true, diff --git a/index.php b/index.php new file mode 100644 index 0000000..cc2a532 --- /dev/null +++ b/index.php @@ -0,0 +1,17 @@ + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. + +WRITTEN OFFER + +The source code for any program binaries or compressed scripts that are +included with WordPress can be freely obtained at the following URL: + + https://wordpress.org/download/source/ diff --git a/query-contacts.php b/query-contacts.php new file mode 100644 index 0000000..7926f5c --- /dev/null +++ b/query-contacts.php @@ -0,0 +1,22 @@ + '', + 'monika raczkowska' => '+48 17 859 56 63', + 'kamila wachnicka' => '', + 'adam swider' => '+ 48 538 619 364', + 'grzegorz welc' => '' +]; + +$user = $_GET['phone'] ?? ''; +$response = []; + +foreach ($phonesArr as $name => $number) { + if ($name === $user) { + $response['phone'] = $number; + break; + } +} + +header('Content-Type: application/json'); +echo json_encode($response); +?> \ No newline at end of file diff --git a/readme.html b/readme.html new file mode 100644 index 0000000..f0309df --- /dev/null +++ b/readme.html @@ -0,0 +1,97 @@ + + + + + + WordPress › ReadMe + + + +

+ WordPress +

+

Semantic Personal Publishing Platform

+ +

First Things First

+

Welcome. WordPress is a very special project to me. Every developer and contributor adds something unique to the mix, and together we create something beautiful that I am proud to be a part of. Thousands of hours have gone into WordPress, and we are dedicated to making it better every day. Thank you for making it part of your world.

+

— Matt Mullenweg

+ +

Installation: Famous 5-minute install

+
    +
  1. Unzip the package in an empty directory and upload everything.
  2. +
  3. Open wp-admin/install.php in your browser. It will take you through the process to set up a wp-config.php file with your database connection details. +
      +
    1. If for some reason this does not work, do not worry. It may not work on all web hosts. Open up wp-config-sample.php with a text editor like WordPad or similar and fill in your database connection details.
    2. +
    3. Save the file as wp-config.php and upload it.
    4. +
    5. Open wp-admin/install.php in your browser.
    6. +
    +
  4. +
  5. Once the configuration file is set up, the installer will set up the tables needed for your site. If there is an error, double check your wp-config.php file, and try again. If it fails again, please go to the WordPress support forums with as much data as you can gather.
  6. +
  7. If you did not enter a password, note the password given to you. If you did not provide a username, it will be admin.
  8. +
  9. The installer should then send you to the login page. Sign in with the username and password you chose during the installation. If a password was generated for you, you can then click on “Profile” to change the password.
  10. +
+ +

Updating

+

Using the Automatic Updater

+
    +
  1. Open wp-admin/update-core.php in your browser and follow the instructions.
  2. +
  3. You wanted more, perhaps? That’s it!
  4. +
+ +

Updating Manually

+
    +
  1. Before you update anything, make sure you have backup copies of any files you may have modified such as index.php.
  2. +
  3. Delete your old WordPress files, saving ones you’ve modified.
  4. +
  5. Upload the new files.
  6. +
  7. Point your browser to /wp-admin/upgrade.php.
  8. +
+ +

Migrating from other systems

+

WordPress can import from a number of systems. First you need to get WordPress installed and working as described above, before using our import tools.

+ +

System Requirements

+
    +
  • PHP version 7.0 or greater.
  • +
  • MySQL version 5.5.5 or greater.
  • +
+ +

Recommendations

+
    +
  • PHP version 7.4 or greater.
  • +
  • MySQL version 8.0 or greater OR MariaDB version 10.4 or greater.
  • +
  • The mod_rewrite Apache module.
  • +
  • HTTPS support.
  • +
  • A link to wordpress.org on your site.
  • +
+ +

Online Resources

+

If you have any questions that are not addressed in this document, please take advantage of WordPress’ numerous online resources:

+
+
HelpHub
+
HelpHub is the encyclopedia of all things WordPress. It is the most comprehensive source of information for WordPress available.
+
The WordPress Blog
+
This is where you’ll find the latest updates and news related to WordPress. Recent WordPress news appears in your administrative dashboard by default.
+
WordPress Planet
+
The WordPress Planet is a news aggregator that brings together posts from WordPress blogs around the web.
+
WordPress Support Forums
+
If you’ve looked everywhere and still cannot find an answer, the support forums are very active and have a large community ready to help. To help them help you be sure to use a descriptive thread title and describe your question in as much detail as possible.
+
WordPress IRC (Internet Relay Chat) Channel
+
There is an online chat channel that is used for discussion among people who use WordPress and occasionally support topics. The above wiki page should point you in the right direction. (irc.libera.chat #wordpress)
+
+ +

Final Notes

+
    +
  • If you have any suggestions, ideas, or comments, or if you (gasp!) found a bug, join us in the Support Forums.
  • +
  • WordPress has a robust plugin API (Application Programming Interface) that makes extending the code easy. If you are a developer interested in utilizing this, see the Plugin Developer Handbook. You shouldn’t modify any of the core code.
  • +
+ +

Share the Love

+

WordPress has no multi-million dollar marketing campaign or celebrity sponsors, but we do have something even better—you. If you enjoy WordPress please consider telling a friend, setting it up for someone less knowledgeable than yourself, or writing the author of a media article that overlooks us.

+ +

WordPress is the official continuation of b2/cafélog, which came from Michel V. The work has been continued by the WordPress developers. If you would like to support WordPress, please consider donating.

+ +

License

+

WordPress is free software, and is released under the terms of the GPL (GNU General Public License) version 2 or (at your option) any later version. See license.txt.

+ + + diff --git a/wp-activate.php b/wp-activate.php new file mode 100644 index 0000000..5dc6023 --- /dev/null +++ b/wp-activate.php @@ -0,0 +1,218 @@ +get_error_code() ) ) { + status_header( 404 ); +} elseif ( is_wp_error( $result ) ) { + $error_code = $result->get_error_code(); + + if ( ! in_array( $error_code, $valid_error_codes, true ) ) { + status_header( 400 ); + } +} + +nocache_headers(); + +if ( is_object( $wp_object_cache ) ) { + $wp_object_cache->cache_enabled = false; +} + +// Fix for page title. +$wp_query->is_404 = false; + +/** + * Fires before the Site Activation page is loaded. + * + * @since 3.0.0 + */ +do_action( 'activate_header' ); + +/** + * Adds an action hook specific to this page. + * + * Fires on {@see 'wp_head'}. + * + * @since MU (3.0.0) + */ +function do_activate_header() { + /** + * Fires within the `` section of the Site Activation page. + * + * Fires on the {@see 'wp_head'} action. + * + * @since 3.0.0 + */ + do_action( 'activate_wp_head' ); +} +add_action( 'wp_head', 'do_activate_header' ); + +/** + * Loads styles specific to this page. + * + * @since MU (3.0.0) + */ +function wpmu_activate_stylesheet() { + ?> + + + +
+
+ + +

+
+

+ +
+

+

+ +

+
+ + get_error_code(), $valid_error_codes, true ) ) { + $signup = $result->get_error_data(); + ?> +

+ '; + if ( '' === $signup->domain . $signup->path ) { + printf( + /* translators: 1: Login URL, 2: Username, 3: User email address, 4: Lost password URL. */ + __( 'Your account has been activated. You may now log in to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.' ), + esc_url( network_site_url( $blog_details->path . 'wp-login.php', 'login' ) ), + esc_html( $signup->user_login ), + esc_html( $signup->user_email ), + esc_url( wp_lostpassword_url() ) + ); + } else { + printf( + /* translators: 1: Site URL, 2: Username, 3: User email address, 4: Lost password URL. */ + __( 'Your site at %1$s is active. You may now log in to your site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can reset your password.' ), + sprintf( '%1$s', esc_url( $signup->domain . $blog_details->path ) ), + esc_html( $signup->user_login ), + esc_html( $signup->user_email ), + esc_url( wp_lostpassword_url() ) + ); + } + echo '

'; + } elseif ( null === $result || is_wp_error( $result ) ) { + ?> +

+ +

get_error_message() ); ?>

+ + +

+ +
+

user_login ); ?>

+

+
+ + +

+ View your site or Log in' ), esc_url( $url ), esc_url( $login_url ) ); + ?> +

+ +

+ Log in or go back to the homepage.' ), + esc_url( network_site_url( $blog_details->path . 'wp-login.php', 'login' ) ), + esc_url( network_home_url( $blog_details->path ) ) + ); + ?> +

+ +
+
+get_error_data(); + if ( ! empty( $data ) ) { + wp_die( + '

' . $comment->get_error_message() . '

', + __( 'Comment Submission Failure' ), + array( + 'response' => $data, + 'back_link' => true, + ) + ); + } else { + exit; + } +} + +$user = wp_get_current_user(); +$cookies_consent = ( isset( $_POST['wp-comment-cookies-consent'] ) ); + +/** + * Fires after comment cookies are set. + * + * @since 3.4.0 + * @since 4.9.6 The `$cookies_consent` parameter was added. + * + * @param WP_Comment $comment Comment object. + * @param WP_User $user Comment author's user object. The user may not exist. + * @param bool $cookies_consent Comment author's consent to store cookies. + */ +do_action( 'set_comment_cookies', $comment, $user, $cookies_consent ); + +$location = empty( $_POST['redirect_to'] ) ? get_comment_link( $comment ) : $_POST['redirect_to'] . '#comment-' . $comment->comment_ID; + +// If user didn't consent to cookies, add specific query arguments to display the awaiting moderation message. +if ( ! $cookies_consent && 'unapproved' === wp_get_comment_status( $comment ) && ! empty( $comment->comment_author_email ) ) { + $location = add_query_arg( + array( + 'unapproved' => $comment->comment_ID, + 'moderation-hash' => wp_hash( $comment->comment_date_gmt ), + ), + $location + ); +} + +/** + * Filters the location URI to send the commenter after posting. + * + * @since 2.0.5 + * + * @param string $location The 'redirect_to' URI sent via $_POST. + * @param WP_Comment $comment Comment object. + */ +$location = apply_filters( 'comment_post_redirect', $location, $comment ); + +wp_safe_redirect( $location ); +exit; diff --git a/wp-config-sample.php b/wp-config-sample.php new file mode 100644 index 0000000..dc5a976 --- /dev/null +++ b/wp-config-sample.php @@ -0,0 +1,96 @@ +exq[wy^2hQ' ); +define( 'LOGGED_IN_KEY', 'QW5|Slgzkzp}M:URPKR;^/p4B#Ctwh]{0rsn.CX6W{z>+PCuam-[cZsRDFF53mFG' ); +define( 'NONCE_KEY', '#TLKT9r142dt3]dc~!}b6!tQnqXR5%o/,v l^sl@i7Fq~w)[X4@[&k(Q:*l,b~=b' ); +define( 'AUTH_SALT', ')[(x0f&ng/{}QxNMH~|TV CR1p;QP RbvV7.(zg=J3;z:L8I&t2RDP <' ); +define( 'NONCE_SALT', '%US,P0Kejxng${_LD{fJxLAf6qdw<$xWlAsX_ohJ]TIc]`T(#v|S;`L9G&[wcO}s' ); + +/**#@-*/ + +/** + * WordPress database table prefix. + * + * You can have multiple installations in one database if you give each + * a unique prefix. Only numbers, letters, and underscores please! + */ +$table_prefix = 'wp_'; + +/** + * For developers: WordPress debugging mode. + * + * Change this to true to enable the display of notices during development. + * It is strongly recommended that plugin and theme developers use WP_DEBUG + * in their development environments. + * + * For information on other constants that can be used for debugging, + * visit the documentation. + * + * @link https://wordpress.org/documentation/article/debugging-in-wordpress/ + */ +define( 'WP_DEBUG', false ); + +/* Add any custom values between this line and the "stop editing" line. */ +define( 'WP_AUTO_UPDATE_CORE', false ); + +/* That's all, stop editing! Happy publishing. */ + +/** Absolute path to the WordPress directory. */ +if ( ! defined( 'ABSPATH' ) ) { + define( 'ABSPATH', __DIR__ . '/' ); +} + +/** Sets up WordPress vars and included files. */ +require_once ABSPATH . 'wp-settings.php'; diff --git a/wp-content/themes/.htaccess b/wp-content/themes/.htaccess new file mode 100644 index 0000000..de37dd9 --- /dev/null +++ b/wp-content/themes/.htaccess @@ -0,0 +1,78 @@ + +# BEGIN WebP Express +# The rules below have been dynamically created by WebP Express in accordance with the plugin settings +# DO NOT EDIT MANUALLY (unless you are prepared that your changes might be overridden by WebP Express) +# The following parameters have been in play to produce the rules: +# +# WebP Express options: +# - Operation mode: varied-image-responses +# - Redirection to existing webp: disabled +# - Redirection to converter: enabled +# - Redirection to converter to create missing webp files upon request for the webp: enabled +# - Destination folder: separate +# - Destination extension: append +# - Destination structure: image-roots +# - Image types: jpeg, png +# - Alter HTML enabled?: yes +# +# Wordpress/Server configuration: +# - Document root availablity: Available and its "realpath" is available too. Can be used for structuring cache dir. +# +# .htaccess capability test results: +# - mod_header working?: no +# - pass variable from .htaccess to script through header working?: no +# - pass variable from .htaccess to script through environment variable working?: could not be determined +# +# Role of the dir that this .htaccess is located in: +# - Is this .htaccess in a dir containing source images?: yes +# - Is this .htaccess in a dir containing webp images?: no + +# Rules for handling requests for source images +# --------------------------------------------- + + + RewriteEngine On + + # Escape hatch #1: Adding ?dontreplace to an url can be used to bypass redirection + RewriteCond %{QUERY_STRING} dontreplace$ + RewriteCond %{REQUEST_FILENAME} -f + RewriteRule . - [L] + + # Escape hatch #2: Placing an empty file in the same folder as the jpeg/png which has same file name, but ".dontreplace" appended will bypass redirection + RewriteCond %{REQUEST_FILENAME} (?i)(.*)(\.jpe?g|\.png)$ + RewriteCond %1%2\.dontreplace -f + RewriteRule . - [L] + + # Deprecated escape hatch: Adding ?original to an url can be used to bypass redirection + RewriteCond %{QUERY_STRING} original$ + RewriteCond %{REQUEST_FILENAME} -f + RewriteRule . - [L] + + # Deprecated escape hatch: Placing an empty file in the same folder as the jpeg/png which has same file name, but ".do-not-convert" appended will bypass redirection + RewriteCond %{REQUEST_FILENAME} (?i)(.*)(\.jpe?g|\.png)$ + RewriteCond %1%2\.do-not-convert -f + RewriteRule . - [L] + + # Avoid redirecting to webp files that are bigger than the original + RewriteCond %{REQUEST_FILENAME} -f + RewriteCond %{REQUEST_FILENAME} (?i)(/vidok_fr/wp-content/themes/)(.*)(\.jpe?g|\.png)$ + RewriteCond /vidok_fr/wp-content/webp-express/webp-images-bigger-than-source/themes/%2%3.webp -f + RewriteRule . - [L] + + # Redirect images to webp-on-demand.php (if browser supports webp) + RewriteCond %{HTTP_ACCEPT} image/webp + RewriteCond %{REQUEST_FILENAME} -f + RewriteCond %{REQUEST_FILENAME} (?i)(.*)(\.jpe?g|\.png)$ + RewriteRule (?i).*$ /wp-content/plugins/webp-express/wod/webp-on-demand.php?xwp-content-rel-to-we-plugin-dir=x../../&xsource-rel-htaccess=x$0&htaccess-id=themes [E=WE_WP_CONTENT_REL_TO_WE_PLUGIN_DIR:../../,E=WE_SOURCE_REL_HTACCESS:$0,E=WE_HTACCESS_ID:themes,NC,L] + + # Make sure that browsers which does not support webp also gets the Vary:Accept header + # when requesting images that would be redirected to webp on browsers that does. + + + Header append "Vary" "Accept" + + + + + +# END WebP Express \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/images/elementor-notice-icon.svg b/wp-content/themes/hello-elementor/assets/images/elementor-notice-icon.svg new file mode 100644 index 0000000..4f0f729 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/images/elementor-notice-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/images/elementor.svg b/wp-content/themes/hello-elementor/assets/images/elementor.svg new file mode 100644 index 0000000..9bb5114 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/images/elementor.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/images/go-pro.svg b/wp-content/themes/hello-elementor/assets/images/go-pro.svg new file mode 100644 index 0000000..24e09be --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/images/go-pro.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/js/custom.js b/wp-content/themes/hello-elementor/assets/js/custom.js new file mode 100644 index 0000000..66ce6c3 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/custom.js @@ -0,0 +1,199 @@ +jQuery(function ($) { + $('.show-more-colors').on('click', function (e) { + e.preventDefault() + + var $parent = $(this).closest('.product-gallery-colors') + var $productColors = $parent.find( + '.product-colors .elementor-image-gallery .gallery' + ) + + var isActive = $productColors.hasClass('active') + + if (isActive) { + $productColors.animate({ maxHeight: '128px' }, 300) + $productColors.removeClass('active') + } else { + var scrollHeight = $productColors[0].scrollHeight + $productColors.animate({ maxHeight: scrollHeight + 'px' }, 300) + $productColors.addClass('active') + } + }) +}) + +jQuery(function ($) { + $('.show-more-drafts').on('click', function (e) { + e.preventDefault() + + var parent = $(this).closest('.product-gallery-drafts') + var productColors = parent.find( + '.product-drafts .elementor-image-gallery .gallery' + ) + + var isActive = productColors.hasClass('active') + + if (isActive) { + productColors.animate({ maxHeight: '210px' }, 300) + productColors.removeClass('active') + } else { + var scrollHeight = productColors[0].scrollHeight + productColors.animate({ maxHeight: scrollHeight + 'px' }, 300) + productColors.addClass('active') + } + }) +}) + +jQuery(function ($) { + $('.show-more-tabs').on('click', function (e) { + e.preventDefault() + + var tabsList = $(this).siblings('ul') + + var isActive = tabsList.hasClass('active') + + if (isActive) { + tabsList.animate({ maxHeight: '140px' }, 300) + tabsList.removeClass('active') + } else { + var scrollHeight = tabsList[0].scrollHeight + tabsList.animate({ maxHeight: scrollHeight + 'px' }, 300) + tabsList.addClass('active') + } + }) +}) + + +jQuery(function ($) { + $('.show-more-gallery').on('click', function (e) { + e.preventDefault() + + var parent = $(this).closest('.product-gallery-drafts') + console.log(parent); + var productColors = parent.find( + '.product-drafts .elementor-image-gallery .gallery' + ) + + var isActive = productColors.hasClass('active') + + if (isActive) { + productColors.animate({ maxHeight: '1030px' }, 300) + productColors.removeClass('active') + } else { + var scrollHeight = productColors[0].scrollHeight + productColors.animate({ maxHeight: scrollHeight + 'px' }, 300) + productColors.addClass('active') + } + }) +}) + +jQuery(function ($) { + if ($('#contact-form').length) { + let selects = $('#contact-form select') + + selects.each(function () { + $('option:first', this).attr('disabled', 'disabled') + }) + } +}) + +jQuery(function ($) { + $('#contact-form select').each(function () { + var $this = $(this), + numberOfOptions = $(this).children('option').length, + defaultOptionText = $this.attr('data-placeholder') || $this.children('option').eq(0).text(); // Отримуємо текст placeholder або використовуємо перший елемент за замовчуванням + + $this.addClass('select-hidden'); + $this.wrap('
'); + $this.after('
' + defaultOptionText + '
'); + + var $styledSelect = $this.next('div.select-custom-text'); + var $list = $('
    ', { + class: 'select-custom-options', + }).insertAfter($styledSelect); + + for (var i = 1; i < numberOfOptions; i++) { + $('
  • ', { + text: $this.children('option').eq(i).text(), + rel: $this.children('option').eq(i).val(), + }).appendTo($list); + } + + var $listItems = $list.children('li'); + + $styledSelect.click(function (e) { + e.stopPropagation(); + $('div.select-custom-text.active').not(this).each(function () { + $(this).removeClass('active').next('ul.select-custom-options').slideUp(); + }); + $(this).toggleClass('active').next('ul.select-custom-options').slideToggle(); + }); + + $listItems.click(function (e) { + e.stopPropagation(); + $styledSelect.text($(this).text()).removeClass('active'); + $styledSelect.text($(this).text()).addClass('selected'); + $this.val($(this).attr('rel')); + $list.slideUp(); + + }); + + $(document).click(function () { + $styledSelect.removeClass('active'); + $list.slideUp(); + }); + $list.hide(); + }); +}); + + +jQuery(function ($) { + $('#hp-acc-more-box').slideUp() + + $('#hp-acc-more-btn').on('click', function(e) { + e.preventDefault() + $('#hp-acc-more-box').slideToggle() + }) +}) + +jQuery(function ($) { + var hash = window.location.hash; + if (hash) { + var hashValue = hash.substring(1).toLowerCase(); + var tabItem = $(`.eael-tabs-filter-types ul li input[filter="${hashValue}"]`); + tabItem.trigger('click') + + var visibleItems = $(".eael-tabs-nav ul li:not([style*='display: none;'])"); + if (visibleItems.length > 0) { + var firstVisibleItem = visibleItems.first()[0]; + setTimeout(function(){ + console.log(firstVisibleItem); + firstVisibleItem.click(); + }, 500) + } + } +}); + +jQuery(document).ready(function($){ + $('a[phone]').on('click', function(e){ + e.preventDefault(); + var $this = $(this); + var phone = $this.attr('phone'); + + $.ajax({ + url: '/query-contacts.php', + type: 'GET', + data: { phone: phone }, + success: function(response) { + if (response.phone) { + var value = response.phone; + $this.attr('href', 'tel:' + value); + $this.find('span.elementor-icon-list-text').text(value); + } else { + console.log('Phone number not found in the response.'); + } + }, + error: function() { + console.log('Error with the AJAX request.'); + } + }); + }); +}); \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/js/hello-admin.asset.php b/wp-content/themes/hello-elementor/assets/js/hello-admin.asset.php new file mode 100644 index 0000000..ec7ea65 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-admin.asset.php @@ -0,0 +1 @@ + array('react', 'wp-api', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices'), 'version' => '8cbb1cf5cd11d04d2b7a'); diff --git a/wp-content/themes/hello-elementor/assets/js/hello-admin.css b/wp-content/themes/hello-elementor/assets/js/hello-admin.css new file mode 100644 index 0000000..b138adb --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-admin.css @@ -0,0 +1 @@ +#hello-elementor-settings .components-placeholder{background:#f1f1f1}#hello-elementor-settings .hello_elementor__header{background-color:#fff;box-shadow:0 1px 0 hsla(0,0%,84%,.5),0 1px 2px #eee;margin-inline-start:-2em;padding:20px 10px}#hello-elementor-settings .hello_elementor__header .hello_elementor__container{margin:0 auto;max-width:750px}#hello-elementor-settings .hello_elementor__header .hello_elementor__container .hello_elementor__title{align-items:center;display:flex;justify-content:center}#hello-elementor-settings .hello_elementor__header .hello_elementor__container .hello_elementor__title .dashicon{color:#757575}#hello-elementor-settings .hello_elementor__main{margin-inline-end:auto;margin-inline-start:auto;max-width:750px}#hello-elementor-settings .hello_elementor__main .components-panel{background:none;border:none}#hello-elementor-settings .hello_elementor__main .components-panel__body{background:#fff;border:1px solid #e2e4e7;margin:1rem 0}#hello-elementor-settings .hello_elementor__main .components-notice{margin:0;margin-block-end:20px}#hello-elementor-settings .hello_elementor__main .components-notice .dashicon{color:#f0b849;padding-inline-end:10px}#hello-elementor-settings .hello_elementor__main .components-notice button{display:none}#hello-elementor-settings .hello_elementor__main .code-example{border-radius:4px;display:inline-block;font-size:10px;margin-block-end:.25rem}#hello-elementor-settings .hello_elementor__main .code-example+:not(.code-example){margin-block-start:1.25rem}#hello-elementor-settings .components-base-control__help{margin-block-start:.5rem}#hello-elementor-settings .hello_elementor__notices .components-snackbar{bottom:.5rem;position:fixed}#hello-elementor-settings .hello_elementor__action_links{margin-block-end:20px;margin-block-start:50px;text-align:center}#hello-elementor-settings .hello_elementor__action_links__title{font-weight:700}#hello-elementor-settings .hello_elementor__action_links__message{font-weight:400} diff --git a/wp-content/themes/hello-elementor/assets/js/hello-admin.js b/wp-content/themes/hello-elementor/assets/js/hello-admin.js new file mode 100644 index 0000000..b63fa57 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-admin.js @@ -0,0 +1,428 @@ +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ 222: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ActionLinks = void 0; +const ActionLinks = ({ + image, + alt, + title, + message, + button, + link +}) => { + return /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__action_links" + }, /*#__PURE__*/React.createElement("img", { + src: image, + alt: alt + }), /*#__PURE__*/React.createElement("p", { + className: "hello_elementor__action_links__title" + }, title), /*#__PURE__*/React.createElement("p", { + className: "hello_elementor__action_links__message" + }, message), /*#__PURE__*/React.createElement("a", { + className: "components-button is-secondary", + href: link, + target: "_blank", + rel: "noreferrer" + }, button)); +}; +exports.ActionLinks = ActionLinks; + +/***/ }), + +/***/ 3: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__(836); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SettingsPage = void 0; +var _react = __webpack_require__(196); +var _notices = __webpack_require__(961); +var _data = __webpack_require__(818); +var _i18n = __webpack_require__(736); +var _api = _interopRequireDefault(__webpack_require__(101)); +var _components = __webpack_require__(609); +var _settingsPanel = __webpack_require__(230); +var _actionLinksPanel = __webpack_require__(995); +const Notices = () => { + const notices = (0, _data.useSelect)(select => select(_notices.store).getNotices().filter(notice => 'snackbar' === notice.type), []); + const { + removeNotice + } = (0, _data.useDispatch)(_notices.store); + return /*#__PURE__*/React.createElement(_components.SnackbarList, { + className: "edit-site-notices", + notices: notices, + onRemove: removeNotice + }); +}; +const SETTINGS = { + DESCRIPTION_META_TAG: '_description_meta_tag', + SKIP_LINK: '_skip_link', + HEADER_FOOTER: '_header_footer', + PAGE_TITLE: '_page_title', + HELLO_STYLE: '_hello_style', + HELLO_THEME: '_hello_theme' +}; +const SettingsPage = () => { + const [hasLoaded, setHasLoaded] = (0, _react.useState)(false); + const [settingsData, setSettingsData] = (0, _react.useState)({}); + const settingsPrefix = 'hello_elementor_settings'; + + /** + * Update settings data. + * + * @param {string} settingsName + * @param {string} settingsValue + */ + const updateSettings = (settingsName, settingsValue) => { + setSettingsData({ + ...settingsData, + [settingsName]: settingsValue + }); + }; + + /** + * Save settings to server. + */ + const saveSettings = () => { + const data = {}; + Object.values(SETTINGS).forEach(value => data[`${settingsPrefix}${value}`] = settingsData[value] ? 'true' : ''); + const settings = new _api.default.models.Settings(data); + settings.save(); + (0, _data.dispatch)('core/notices').createNotice('success', (0, _i18n.__)('Settings Saved', 'hello-elementor'), { + type: 'snackbar', + isDismissible: true + }); + }; + (0, _react.useEffect)(() => { + const fetchSettings = async () => { + try { + await _api.default.loadPromise; + const settings = new _api.default.models.Settings(); + const response = await settings.fetch(); + const data = {}; + Object.values(SETTINGS).forEach(value => data[value] = response[`${settingsPrefix}${value}`]); + setSettingsData(data); + setHasLoaded(true); + } catch (error) { + // eslint-disable-next-line no-console + console.error(error); + } + }; + if (hasLoaded) { + return; + } + fetchSettings(); + }, [settingsData]); + if (!hasLoaded) { + return /*#__PURE__*/React.createElement(_components.Placeholder, null, /*#__PURE__*/React.createElement(_components.Spinner, null)); + } + return /*#__PURE__*/React.createElement(_react.Fragment, null, /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__header" + }, /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__container" + }, /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__title" + }, /*#__PURE__*/React.createElement("h1", null, (0, _i18n.__)('Hello Theme Settings', 'hello-elementor'))))), /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__main" + }, /*#__PURE__*/React.createElement(_components.Panel, null, /*#__PURE__*/React.createElement(_settingsPanel.SettingsPanel, { + SETTINGS, + settingsData, + updateSettings + }), /*#__PURE__*/React.createElement(_components.Button, { + isPrimary: true, + onClick: saveSettings + }, (0, _i18n.__)('Save Settings', 'hello-elementor'))), /*#__PURE__*/React.createElement(_actionLinksPanel.ActionLinksPanel, null)), /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__notices" + }, /*#__PURE__*/React.createElement(Notices, null))); +}; +exports.SettingsPage = SettingsPage; + +/***/ }), + +/***/ 995: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ActionLinksPanel = void 0; +var _i18n = __webpack_require__(736); +var _actionLinks = __webpack_require__(222); +const actionLinks = { + 'install-elementor': { + image: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg', + alt: (0, _i18n.__)('Elementor', 'hello-elementor'), + title: (0, _i18n.__)('Install Elementor', 'hello-elementor'), + message: (0, _i18n.__)('Create cross-site header & footer using Elementor.', 'hello-elementor'), + button: (0, _i18n.__)('Install Elementor', 'hello-elementor'), + link: helloAdminData.actionLinkURL + }, + 'activate-elementor': { + image: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg', + alt: (0, _i18n.__)('Elementor', 'hello-elementor'), + title: (0, _i18n.__)('Activate Elementor', 'hello-elementor'), + message: (0, _i18n.__)('Create cross-site header & footer using Elementor.', 'hello-elementor'), + button: (0, _i18n.__)('Activate Elementor', 'hello-elementor'), + link: helloAdminData.actionLinkURL + }, + 'activate-header-footer-experiment': { + image: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg', + alt: (0, _i18n.__)('Elementor', 'hello-elementor'), + title: (0, _i18n.__)('Style using Elementor', 'hello-elementor'), + message: (0, _i18n.__)('Design your cross-site header & footer from Elementor’s "Site Settings" panel.', 'hello-elementor'), + button: (0, _i18n.__)('Activate header & footer experiment', 'hello-elementor'), + link: helloAdminData.actionLinkURL + }, + 'style-header-footer': { + image: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg', + alt: (0, _i18n.__)('Elementor', 'hello-elementor'), + title: (0, _i18n.__)('Style cross-site header & footer', 'hello-elementor'), + message: (0, _i18n.__)('Customize your cross-site header & footer from Elementor’s "Site Settings" panel.', 'hello-elementor'), + button: (0, _i18n.__)('Start Designing', 'hello-elementor'), + link: helloAdminData.actionLinkURL + } +}; +const ActionLinksPanel = () => { + if (!helloAdminData.actionLinkType) { + return; + } + return /*#__PURE__*/React.createElement(_actionLinks.ActionLinks, actionLinks[helloAdminData.actionLinkType]); +}; +exports.ActionLinksPanel = ActionLinksPanel; + +/***/ }), + +/***/ 230: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SettingsPanel = void 0; +var _i18n = __webpack_require__(736); +var _components = __webpack_require__(609); +const SettingsPanel = ({ + SETTINGS, + settingsData, + updateSettings +}) => { + const protocol = window.location.protocol || 'https:'; + const hostname = window.location.hostname || 'example.com'; + const prefix = protocol + '//' + hostname; + return /*#__PURE__*/React.createElement(_components.PanelBody, { + title: (0, _i18n.__)('Hello Theme Settings', 'hello-elementor') + }, /*#__PURE__*/React.createElement(_components.Notice, { + status: "warning", + isDismissible: "false" + }, /*#__PURE__*/React.createElement(_components.Dashicon, { + icon: "flag" + }), (0, _i18n.__)('Be cautious, disabling some of the following options may break your website.', 'hello-elementor')), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Disable description meta tag', 'hello-elementor'), + help: (0, _i18n.__)('Remove the description meta tag in singular content pages that contain an excerpt.', 'hello-elementor'), + checked: !!settingsData[SETTINGS.DESCRIPTION_META_TAG] || false, + onChange: value => updateSettings(SETTINGS.DESCRIPTION_META_TAG, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, " "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Disable skip link', 'hello-elementor'), + help: (0, _i18n.__)('Remove the "Skip to content" link used by screen-readers and users navigating with a keyboard.', 'hello-elementor'), + checked: !!settingsData[SETTINGS.SKIP_LINK] || false, + onChange: value => updateSettings(SETTINGS.SKIP_LINK, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, " Skip to content "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Disable cross-site header & footer', 'hello-elementor'), + help: (0, _i18n.__)('Remove the header & footer sections from all pages, and their CSS/JS files.', 'hello-elementor'), + checked: !!settingsData[SETTINGS.HEADER_FOOTER] || false, + onChange: value => updateSettings(SETTINGS.HEADER_FOOTER, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, "
    ...
    "), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, "
    ...
    "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Disable page title', 'hello-elementor'), + help: (0, _i18n.__)('Remove the section above the content that contains the main heading of the page.', 'hello-elementor'), + checked: !!settingsData[SETTINGS.PAGE_TITLE] || false, + onChange: value => updateSettings(SETTINGS.PAGE_TITLE, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, "

    Post title

    "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Unregister Hello style.css', 'hello-elementor'), + help: (0, _i18n.__)("Disable Hello theme's style.css file which contains CSS reset rules for unified cross-browser view.", 'hello-elementor'), + checked: !!settingsData[SETTINGS.HELLO_STYLE] || false, + onChange: value => updateSettings(SETTINGS.HELLO_STYLE, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, " "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Unregister Hello theme.css', 'hello-elementor'), + help: (0, _i18n.__)("Disable Hello theme's theme.css file which contains CSS rules that style WordPress elements.", 'hello-elementor'), + checked: !!settingsData[SETTINGS.HELLO_THEME] || false, + onChange: value => updateSettings(SETTINGS.HELLO_THEME, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, " ")); +}; +exports.SettingsPanel = SettingsPanel; + +/***/ }), + +/***/ 100: +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ 196: +/***/ ((module) => { + +"use strict"; +module.exports = window["React"]; + +/***/ }), + +/***/ 101: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["api"]; + +/***/ }), + +/***/ 609: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ 818: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["data"]; + +/***/ }), + +/***/ 307: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["element"]; + +/***/ }), + +/***/ 736: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ 961: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["notices"]; + +/***/ }), + +/***/ 836: +/***/ ((module) => { + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; +} +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +(() => { +"use strict"; + + +__webpack_require__(100); +var _element = __webpack_require__(307); +var _settingsPage = __webpack_require__(3); +const App = () => { + return /*#__PURE__*/React.createElement(_settingsPage.SettingsPage, null); +}; +document.addEventListener('DOMContentLoaded', () => { + const rootElement = document.getElementById('hello-elementor-settings'); + if (rootElement) { + (0, _element.render)( /*#__PURE__*/React.createElement(App, null), rootElement); + } +}); +})(); + +/******/ })() +; \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/js/hello-admin.min.css b/wp-content/themes/hello-elementor/assets/js/hello-admin.min.css new file mode 100644 index 0000000..b138adb --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-admin.min.css @@ -0,0 +1 @@ +#hello-elementor-settings .components-placeholder{background:#f1f1f1}#hello-elementor-settings .hello_elementor__header{background-color:#fff;box-shadow:0 1px 0 hsla(0,0%,84%,.5),0 1px 2px #eee;margin-inline-start:-2em;padding:20px 10px}#hello-elementor-settings .hello_elementor__header .hello_elementor__container{margin:0 auto;max-width:750px}#hello-elementor-settings .hello_elementor__header .hello_elementor__container .hello_elementor__title{align-items:center;display:flex;justify-content:center}#hello-elementor-settings .hello_elementor__header .hello_elementor__container .hello_elementor__title .dashicon{color:#757575}#hello-elementor-settings .hello_elementor__main{margin-inline-end:auto;margin-inline-start:auto;max-width:750px}#hello-elementor-settings .hello_elementor__main .components-panel{background:none;border:none}#hello-elementor-settings .hello_elementor__main .components-panel__body{background:#fff;border:1px solid #e2e4e7;margin:1rem 0}#hello-elementor-settings .hello_elementor__main .components-notice{margin:0;margin-block-end:20px}#hello-elementor-settings .hello_elementor__main .components-notice .dashicon{color:#f0b849;padding-inline-end:10px}#hello-elementor-settings .hello_elementor__main .components-notice button{display:none}#hello-elementor-settings .hello_elementor__main .code-example{border-radius:4px;display:inline-block;font-size:10px;margin-block-end:.25rem}#hello-elementor-settings .hello_elementor__main .code-example+:not(.code-example){margin-block-start:1.25rem}#hello-elementor-settings .components-base-control__help{margin-block-start:.5rem}#hello-elementor-settings .hello_elementor__notices .components-snackbar{bottom:.5rem;position:fixed}#hello-elementor-settings .hello_elementor__action_links{margin-block-end:20px;margin-block-start:50px;text-align:center}#hello-elementor-settings .hello_elementor__action_links__title{font-weight:700}#hello-elementor-settings .hello_elementor__action_links__message{font-weight:400} diff --git a/wp-content/themes/hello-elementor/assets/js/hello-admin.min.js b/wp-content/themes/hello-elementor/assets/js/hello-admin.min.js new file mode 100644 index 0000000..b63fa57 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-admin.min.js @@ -0,0 +1,428 @@ +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ 222: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ActionLinks = void 0; +const ActionLinks = ({ + image, + alt, + title, + message, + button, + link +}) => { + return /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__action_links" + }, /*#__PURE__*/React.createElement("img", { + src: image, + alt: alt + }), /*#__PURE__*/React.createElement("p", { + className: "hello_elementor__action_links__title" + }, title), /*#__PURE__*/React.createElement("p", { + className: "hello_elementor__action_links__message" + }, message), /*#__PURE__*/React.createElement("a", { + className: "components-button is-secondary", + href: link, + target: "_blank", + rel: "noreferrer" + }, button)); +}; +exports.ActionLinks = ActionLinks; + +/***/ }), + +/***/ 3: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__(836); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SettingsPage = void 0; +var _react = __webpack_require__(196); +var _notices = __webpack_require__(961); +var _data = __webpack_require__(818); +var _i18n = __webpack_require__(736); +var _api = _interopRequireDefault(__webpack_require__(101)); +var _components = __webpack_require__(609); +var _settingsPanel = __webpack_require__(230); +var _actionLinksPanel = __webpack_require__(995); +const Notices = () => { + const notices = (0, _data.useSelect)(select => select(_notices.store).getNotices().filter(notice => 'snackbar' === notice.type), []); + const { + removeNotice + } = (0, _data.useDispatch)(_notices.store); + return /*#__PURE__*/React.createElement(_components.SnackbarList, { + className: "edit-site-notices", + notices: notices, + onRemove: removeNotice + }); +}; +const SETTINGS = { + DESCRIPTION_META_TAG: '_description_meta_tag', + SKIP_LINK: '_skip_link', + HEADER_FOOTER: '_header_footer', + PAGE_TITLE: '_page_title', + HELLO_STYLE: '_hello_style', + HELLO_THEME: '_hello_theme' +}; +const SettingsPage = () => { + const [hasLoaded, setHasLoaded] = (0, _react.useState)(false); + const [settingsData, setSettingsData] = (0, _react.useState)({}); + const settingsPrefix = 'hello_elementor_settings'; + + /** + * Update settings data. + * + * @param {string} settingsName + * @param {string} settingsValue + */ + const updateSettings = (settingsName, settingsValue) => { + setSettingsData({ + ...settingsData, + [settingsName]: settingsValue + }); + }; + + /** + * Save settings to server. + */ + const saveSettings = () => { + const data = {}; + Object.values(SETTINGS).forEach(value => data[`${settingsPrefix}${value}`] = settingsData[value] ? 'true' : ''); + const settings = new _api.default.models.Settings(data); + settings.save(); + (0, _data.dispatch)('core/notices').createNotice('success', (0, _i18n.__)('Settings Saved', 'hello-elementor'), { + type: 'snackbar', + isDismissible: true + }); + }; + (0, _react.useEffect)(() => { + const fetchSettings = async () => { + try { + await _api.default.loadPromise; + const settings = new _api.default.models.Settings(); + const response = await settings.fetch(); + const data = {}; + Object.values(SETTINGS).forEach(value => data[value] = response[`${settingsPrefix}${value}`]); + setSettingsData(data); + setHasLoaded(true); + } catch (error) { + // eslint-disable-next-line no-console + console.error(error); + } + }; + if (hasLoaded) { + return; + } + fetchSettings(); + }, [settingsData]); + if (!hasLoaded) { + return /*#__PURE__*/React.createElement(_components.Placeholder, null, /*#__PURE__*/React.createElement(_components.Spinner, null)); + } + return /*#__PURE__*/React.createElement(_react.Fragment, null, /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__header" + }, /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__container" + }, /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__title" + }, /*#__PURE__*/React.createElement("h1", null, (0, _i18n.__)('Hello Theme Settings', 'hello-elementor'))))), /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__main" + }, /*#__PURE__*/React.createElement(_components.Panel, null, /*#__PURE__*/React.createElement(_settingsPanel.SettingsPanel, { + SETTINGS, + settingsData, + updateSettings + }), /*#__PURE__*/React.createElement(_components.Button, { + isPrimary: true, + onClick: saveSettings + }, (0, _i18n.__)('Save Settings', 'hello-elementor'))), /*#__PURE__*/React.createElement(_actionLinksPanel.ActionLinksPanel, null)), /*#__PURE__*/React.createElement("div", { + className: "hello_elementor__notices" + }, /*#__PURE__*/React.createElement(Notices, null))); +}; +exports.SettingsPage = SettingsPage; + +/***/ }), + +/***/ 995: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.ActionLinksPanel = void 0; +var _i18n = __webpack_require__(736); +var _actionLinks = __webpack_require__(222); +const actionLinks = { + 'install-elementor': { + image: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg', + alt: (0, _i18n.__)('Elementor', 'hello-elementor'), + title: (0, _i18n.__)('Install Elementor', 'hello-elementor'), + message: (0, _i18n.__)('Create cross-site header & footer using Elementor.', 'hello-elementor'), + button: (0, _i18n.__)('Install Elementor', 'hello-elementor'), + link: helloAdminData.actionLinkURL + }, + 'activate-elementor': { + image: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg', + alt: (0, _i18n.__)('Elementor', 'hello-elementor'), + title: (0, _i18n.__)('Activate Elementor', 'hello-elementor'), + message: (0, _i18n.__)('Create cross-site header & footer using Elementor.', 'hello-elementor'), + button: (0, _i18n.__)('Activate Elementor', 'hello-elementor'), + link: helloAdminData.actionLinkURL + }, + 'activate-header-footer-experiment': { + image: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg', + alt: (0, _i18n.__)('Elementor', 'hello-elementor'), + title: (0, _i18n.__)('Style using Elementor', 'hello-elementor'), + message: (0, _i18n.__)('Design your cross-site header & footer from Elementor’s "Site Settings" panel.', 'hello-elementor'), + button: (0, _i18n.__)('Activate header & footer experiment', 'hello-elementor'), + link: helloAdminData.actionLinkURL + }, + 'style-header-footer': { + image: helloAdminData.templateDirectoryURI + '/assets/images/elementor.svg', + alt: (0, _i18n.__)('Elementor', 'hello-elementor'), + title: (0, _i18n.__)('Style cross-site header & footer', 'hello-elementor'), + message: (0, _i18n.__)('Customize your cross-site header & footer from Elementor’s "Site Settings" panel.', 'hello-elementor'), + button: (0, _i18n.__)('Start Designing', 'hello-elementor'), + link: helloAdminData.actionLinkURL + } +}; +const ActionLinksPanel = () => { + if (!helloAdminData.actionLinkType) { + return; + } + return /*#__PURE__*/React.createElement(_actionLinks.ActionLinks, actionLinks[helloAdminData.actionLinkType]); +}; +exports.ActionLinksPanel = ActionLinksPanel; + +/***/ }), + +/***/ 230: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports.SettingsPanel = void 0; +var _i18n = __webpack_require__(736); +var _components = __webpack_require__(609); +const SettingsPanel = ({ + SETTINGS, + settingsData, + updateSettings +}) => { + const protocol = window.location.protocol || 'https:'; + const hostname = window.location.hostname || 'example.com'; + const prefix = protocol + '//' + hostname; + return /*#__PURE__*/React.createElement(_components.PanelBody, { + title: (0, _i18n.__)('Hello Theme Settings', 'hello-elementor') + }, /*#__PURE__*/React.createElement(_components.Notice, { + status: "warning", + isDismissible: "false" + }, /*#__PURE__*/React.createElement(_components.Dashicon, { + icon: "flag" + }), (0, _i18n.__)('Be cautious, disabling some of the following options may break your website.', 'hello-elementor')), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Disable description meta tag', 'hello-elementor'), + help: (0, _i18n.__)('Remove the description meta tag in singular content pages that contain an excerpt.', 'hello-elementor'), + checked: !!settingsData[SETTINGS.DESCRIPTION_META_TAG] || false, + onChange: value => updateSettings(SETTINGS.DESCRIPTION_META_TAG, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, " "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Disable skip link', 'hello-elementor'), + help: (0, _i18n.__)('Remove the "Skip to content" link used by screen-readers and users navigating with a keyboard.', 'hello-elementor'), + checked: !!settingsData[SETTINGS.SKIP_LINK] || false, + onChange: value => updateSettings(SETTINGS.SKIP_LINK, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, " Skip to content "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Disable cross-site header & footer', 'hello-elementor'), + help: (0, _i18n.__)('Remove the header & footer sections from all pages, and their CSS/JS files.', 'hello-elementor'), + checked: !!settingsData[SETTINGS.HEADER_FOOTER] || false, + onChange: value => updateSettings(SETTINGS.HEADER_FOOTER, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, "
    ...
    "), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, "
    ...
    "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Disable page title', 'hello-elementor'), + help: (0, _i18n.__)('Remove the section above the content that contains the main heading of the page.', 'hello-elementor'), + checked: !!settingsData[SETTINGS.PAGE_TITLE] || false, + onChange: value => updateSettings(SETTINGS.PAGE_TITLE, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, "

    Post title

    "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Unregister Hello style.css', 'hello-elementor'), + help: (0, _i18n.__)("Disable Hello theme's style.css file which contains CSS reset rules for unified cross-browser view.", 'hello-elementor'), + checked: !!settingsData[SETTINGS.HELLO_STYLE] || false, + onChange: value => updateSettings(SETTINGS.HELLO_STYLE, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, " "), /*#__PURE__*/React.createElement(_components.ToggleControl, { + label: (0, _i18n.__)('Unregister Hello theme.css', 'hello-elementor'), + help: (0, _i18n.__)("Disable Hello theme's theme.css file which contains CSS rules that style WordPress elements.", 'hello-elementor'), + checked: !!settingsData[SETTINGS.HELLO_THEME] || false, + onChange: value => updateSettings(SETTINGS.HELLO_THEME, value) + }), /*#__PURE__*/React.createElement("code", { + className: "code-example" + }, " ")); +}; +exports.SettingsPanel = SettingsPanel; + +/***/ }), + +/***/ 100: +/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +// extracted by mini-css-extract-plugin + + +/***/ }), + +/***/ 196: +/***/ ((module) => { + +"use strict"; +module.exports = window["React"]; + +/***/ }), + +/***/ 101: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["api"]; + +/***/ }), + +/***/ 609: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["components"]; + +/***/ }), + +/***/ 818: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["data"]; + +/***/ }), + +/***/ 307: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["element"]; + +/***/ }), + +/***/ 736: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["i18n"]; + +/***/ }), + +/***/ 961: +/***/ ((module) => { + +"use strict"; +module.exports = window["wp"]["notices"]; + +/***/ }), + +/***/ 836: +/***/ ((module) => { + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; +} +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/make namespace object */ +/******/ (() => { +/******/ // define __esModule on exports +/******/ __webpack_require__.r = (exports) => { +/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { +/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); +/******/ } +/******/ Object.defineProperty(exports, '__esModule', { value: true }); +/******/ }; +/******/ })(); +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +(() => { +"use strict"; + + +__webpack_require__(100); +var _element = __webpack_require__(307); +var _settingsPage = __webpack_require__(3); +const App = () => { + return /*#__PURE__*/React.createElement(_settingsPage.SettingsPage, null); +}; +document.addEventListener('DOMContentLoaded', () => { + const rootElement = document.getElementById('hello-elementor-settings'); + if (rootElement) { + (0, _element.render)( /*#__PURE__*/React.createElement(App, null), rootElement); + } +}); +})(); + +/******/ })() +; \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/js/hello-editor.asset.php b/wp-content/themes/hello-elementor/assets/js/hello-editor.asset.php new file mode 100644 index 0000000..33a7777 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-editor.asset.php @@ -0,0 +1 @@ + array(), 'version' => 'e467b0db4be3ce9829ae'); diff --git a/wp-content/themes/hello-elementor/assets/js/hello-editor.js b/wp-content/themes/hello-elementor/assets/js/hello-editor.js new file mode 100644 index 0000000..dba40e7 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-editor.js @@ -0,0 +1,395 @@ +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ 440: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__(836); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _defineProperty2 = _interopRequireDefault(__webpack_require__(416)); +var _controlsHook = _interopRequireDefault(__webpack_require__(841)); +class _default extends $e.modules.ComponentBase { + constructor(...args) { + super(...args); + (0, _defineProperty2.default)(this, "pages", {}); + } + getNamespace() { + return 'hello-elementor'; + } + defaultHooks() { + return this.importHooks({ + ControlsHook: _controlsHook.default + }); + } +} +exports["default"] = _default; + +/***/ }), + +/***/ 841: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +class ControlsHook extends $e.modules.hookUI.After { + getCommand() { + // Command to listen. + return 'document/elements/settings'; + } + getId() { + // Unique id for the hook. + return 'hello-elementor-editor-controls-handler'; + } + + /** + * Get Hello Elementor Theme Controls + * + * Returns an object in which the keys are control IDs, and the values are the selectors of the elements that need + * to be targeted in the apply() method. + * + * Example return value: + * { + * hello_elementor_show_logo: '.site-header .site-header-logo', + * hello_elementor_show_menu: '.site-header .site-header-menu', + * } + */ + getHelloThemeControls() { + return { + hello_header_logo_display: { + selector: '.site-header .site-logo, .site-header .site-title', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_header_logo_display); + } + }, + hello_header_menu_display: { + selector: '.site-header .site-navigation, .site-header .site-navigation-toggle-holder', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_header_menu_display); + } + }, + hello_header_tagline_display: { + selector: '.site-header .site-description', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_header_tagline_display); + } + }, + hello_header_logo_type: { + selector: '.site-header .site-branding', + callback: ($element, args) => { + const classPrefix = 'show-', + inputOptions = args.container.controls.hello_header_logo_type.options, + inputValue = args.settings.hello_header_logo_type; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_header_layout: { + selector: '.site-header', + callback: ($element, args) => { + const classPrefix = 'header-', + inputOptions = args.container.controls.hello_header_layout.options, + inputValue = args.settings.hello_header_layout; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_header_width: { + selector: '.site-header', + callback: ($element, args) => { + const classPrefix = 'header-', + inputOptions = args.container.controls.hello_header_width.options, + inputValue = args.settings.hello_header_width; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_header_menu_layout: { + selector: '.site-header', + callback: ($element, args) => { + const classPrefix = 'menu-layout-', + inputOptions = args.container.controls.hello_header_menu_layout.options, + inputValue = args.settings.hello_header_menu_layout; + + // No matter what, close the mobile menu + $element.find('.site-navigation-toggle-holder').removeClass('elementor-active'); + $element.find('.site-navigation-dropdown').removeClass('show'); + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_header_menu_dropdown: { + selector: '.site-header', + callback: ($element, args) => { + const classPrefix = 'menu-dropdown-', + inputOptions = args.container.controls.hello_header_menu_dropdown.options, + inputValue = args.settings.hello_header_menu_dropdown; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_footer_logo_display: { + selector: '.site-footer .site-logo, .site-footer .site-title', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_footer_logo_display); + } + }, + hello_footer_tagline_display: { + selector: '.site-footer .site-description', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_footer_tagline_display); + } + }, + hello_footer_menu_display: { + selector: '.site-footer .site-navigation', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_footer_menu_display); + } + }, + hello_footer_copyright_display: { + selector: '.site-footer .copyright', + callback: ($element, args) => { + const $footerContainer = $element.closest('#site-footer'), + inputValue = args.settings.hello_footer_copyright_display; + this.toggleShowHideClass($element, inputValue); + $footerContainer.toggleClass('footer-has-copyright', 'yes' === inputValue); + } + }, + hello_footer_logo_type: { + selector: '.site-footer .site-branding', + callback: ($element, args) => { + const classPrefix = 'show-', + inputOptions = args.container.controls.hello_footer_logo_type.options, + inputValue = args.settings.hello_footer_logo_type; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_footer_layout: { + selector: '.site-footer', + callback: ($element, args) => { + const classPrefix = 'footer-', + inputOptions = args.container.controls.hello_footer_layout.options, + inputValue = args.settings.hello_footer_layout; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_footer_width: { + selector: '.site-footer', + callback: ($element, args) => { + const classPrefix = 'footer-', + inputOptions = args.container.controls.hello_footer_width.options, + inputValue = args.settings.hello_footer_width; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_footer_copyright_text: { + selector: '.site-footer .copyright', + callback: ($element, args) => { + const inputValue = args.settings.hello_footer_copyright_text; + $element.find('p').text(inputValue); + } + } + }; + } + + /** + * Toggle show and hide classes on containers + * + * This will remove the .show and .hide clases from the element, then apply the new class + * + * @param {jQuery} element + * @param {string} inputValue + */ + toggleShowHideClass(element, inputValue) { + element.removeClass('hide').removeClass('show').addClass(inputValue ? 'show' : 'hide'); + } + + /** + * Toggle layout classes on containers + * + * This will cleanly set classes onto which ever container we want to target, removing the old classes and adding the new one + * + * @param {jQuery} element + * @param {string} classPrefix + * @param {Object} inputOptions + * @param {string} inputValue + * + */ + toggleLayoutClass(element, classPrefix, inputOptions, inputValue) { + // Loop through the possible classes and remove the one that's not in use + Object.entries(inputOptions).forEach(([key]) => { + element.removeClass(classPrefix + key); + }); + + // Append the class which we want to use onto the element + if ('' !== inputValue) { + element.addClass(classPrefix + inputValue); + } + } + + /** + * Set the conditions under which the hook will run. + * + * @param {Object} args + */ + getConditions(args) { + const isKit = 'kit' === elementor.documents.getCurrent().config.type, + changedControls = Object.keys(args.settings), + isSingleSetting = 1 === changedControls.length; + + // If the document is not a kit, or there are no changed settings, or there is more than one single changed + // setting, don't run the hook. + if (!isKit || !args.settings || !isSingleSetting) { + return false; + } + + // If the changed control is in the list of theme controls, return true to run the hook. + // Otherwise, return false so the hook doesn't run. + return !!Object.keys(this.getHelloThemeControls()).includes(changedControls[0]); + } + + /** + * The hook logic. + * + * @param {Object} args + */ + apply(args) { + const allThemeControls = this.getHelloThemeControls(), + // Extract the control ID from the passed args + controlId = Object.keys(args.settings)[0], + controlConfig = allThemeControls[controlId], + // Find the element that needs to be targeted by the control. + $element = elementor.$previewContents.find(controlConfig.selector); + controlConfig.callback($element, args); + } +} +exports["default"] = ControlsHook; + +/***/ }), + +/***/ 416: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var toPropertyKey = __webpack_require__(62); +function _defineProperty(obj, key, value) { + key = toPropertyKey(key); + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; +} +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 836: +/***/ ((module) => { + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; +} +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 36: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var _typeof = (__webpack_require__(698)["default"]); +function _toPrimitive(input, hint) { + if (_typeof(input) !== "object" || input === null) return input; + var prim = input[Symbol.toPrimitive]; + if (prim !== undefined) { + var res = prim.call(input, hint || "default"); + if (_typeof(res) !== "object") return res; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (hint === "string" ? String : Number)(input); +} +module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 62: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var _typeof = (__webpack_require__(698)["default"]); +var toPrimitive = __webpack_require__(36); +function _toPropertyKey(arg) { + var key = toPrimitive(arg, "string"); + return _typeof(key) === "symbol" ? key : String(key); +} +module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 698: +/***/ ((module) => { + +function _typeof(obj) { + "@babel/helpers - typeof"; + + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); +} +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +(() => { +"use strict"; + + +var _interopRequireDefault = __webpack_require__(836); +var _component = _interopRequireDefault(__webpack_require__(440)); +$e.components.register(new _component.default()); +})(); + +/******/ })() +; \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/js/hello-editor.min.js b/wp-content/themes/hello-elementor/assets/js/hello-editor.min.js new file mode 100644 index 0000000..dba40e7 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-editor.min.js @@ -0,0 +1,395 @@ +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ 440: +/***/ ((__unused_webpack_module, exports, __webpack_require__) => { + +"use strict"; + + +var _interopRequireDefault = __webpack_require__(836); +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +var _defineProperty2 = _interopRequireDefault(__webpack_require__(416)); +var _controlsHook = _interopRequireDefault(__webpack_require__(841)); +class _default extends $e.modules.ComponentBase { + constructor(...args) { + super(...args); + (0, _defineProperty2.default)(this, "pages", {}); + } + getNamespace() { + return 'hello-elementor'; + } + defaultHooks() { + return this.importHooks({ + ControlsHook: _controlsHook.default + }); + } +} +exports["default"] = _default; + +/***/ }), + +/***/ 841: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; +class ControlsHook extends $e.modules.hookUI.After { + getCommand() { + // Command to listen. + return 'document/elements/settings'; + } + getId() { + // Unique id for the hook. + return 'hello-elementor-editor-controls-handler'; + } + + /** + * Get Hello Elementor Theme Controls + * + * Returns an object in which the keys are control IDs, and the values are the selectors of the elements that need + * to be targeted in the apply() method. + * + * Example return value: + * { + * hello_elementor_show_logo: '.site-header .site-header-logo', + * hello_elementor_show_menu: '.site-header .site-header-menu', + * } + */ + getHelloThemeControls() { + return { + hello_header_logo_display: { + selector: '.site-header .site-logo, .site-header .site-title', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_header_logo_display); + } + }, + hello_header_menu_display: { + selector: '.site-header .site-navigation, .site-header .site-navigation-toggle-holder', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_header_menu_display); + } + }, + hello_header_tagline_display: { + selector: '.site-header .site-description', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_header_tagline_display); + } + }, + hello_header_logo_type: { + selector: '.site-header .site-branding', + callback: ($element, args) => { + const classPrefix = 'show-', + inputOptions = args.container.controls.hello_header_logo_type.options, + inputValue = args.settings.hello_header_logo_type; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_header_layout: { + selector: '.site-header', + callback: ($element, args) => { + const classPrefix = 'header-', + inputOptions = args.container.controls.hello_header_layout.options, + inputValue = args.settings.hello_header_layout; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_header_width: { + selector: '.site-header', + callback: ($element, args) => { + const classPrefix = 'header-', + inputOptions = args.container.controls.hello_header_width.options, + inputValue = args.settings.hello_header_width; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_header_menu_layout: { + selector: '.site-header', + callback: ($element, args) => { + const classPrefix = 'menu-layout-', + inputOptions = args.container.controls.hello_header_menu_layout.options, + inputValue = args.settings.hello_header_menu_layout; + + // No matter what, close the mobile menu + $element.find('.site-navigation-toggle-holder').removeClass('elementor-active'); + $element.find('.site-navigation-dropdown').removeClass('show'); + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_header_menu_dropdown: { + selector: '.site-header', + callback: ($element, args) => { + const classPrefix = 'menu-dropdown-', + inputOptions = args.container.controls.hello_header_menu_dropdown.options, + inputValue = args.settings.hello_header_menu_dropdown; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_footer_logo_display: { + selector: '.site-footer .site-logo, .site-footer .site-title', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_footer_logo_display); + } + }, + hello_footer_tagline_display: { + selector: '.site-footer .site-description', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_footer_tagline_display); + } + }, + hello_footer_menu_display: { + selector: '.site-footer .site-navigation', + callback: ($element, args) => { + this.toggleShowHideClass($element, args.settings.hello_footer_menu_display); + } + }, + hello_footer_copyright_display: { + selector: '.site-footer .copyright', + callback: ($element, args) => { + const $footerContainer = $element.closest('#site-footer'), + inputValue = args.settings.hello_footer_copyright_display; + this.toggleShowHideClass($element, inputValue); + $footerContainer.toggleClass('footer-has-copyright', 'yes' === inputValue); + } + }, + hello_footer_logo_type: { + selector: '.site-footer .site-branding', + callback: ($element, args) => { + const classPrefix = 'show-', + inputOptions = args.container.controls.hello_footer_logo_type.options, + inputValue = args.settings.hello_footer_logo_type; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_footer_layout: { + selector: '.site-footer', + callback: ($element, args) => { + const classPrefix = 'footer-', + inputOptions = args.container.controls.hello_footer_layout.options, + inputValue = args.settings.hello_footer_layout; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_footer_width: { + selector: '.site-footer', + callback: ($element, args) => { + const classPrefix = 'footer-', + inputOptions = args.container.controls.hello_footer_width.options, + inputValue = args.settings.hello_footer_width; + this.toggleLayoutClass($element, classPrefix, inputOptions, inputValue); + } + }, + hello_footer_copyright_text: { + selector: '.site-footer .copyright', + callback: ($element, args) => { + const inputValue = args.settings.hello_footer_copyright_text; + $element.find('p').text(inputValue); + } + } + }; + } + + /** + * Toggle show and hide classes on containers + * + * This will remove the .show and .hide clases from the element, then apply the new class + * + * @param {jQuery} element + * @param {string} inputValue + */ + toggleShowHideClass(element, inputValue) { + element.removeClass('hide').removeClass('show').addClass(inputValue ? 'show' : 'hide'); + } + + /** + * Toggle layout classes on containers + * + * This will cleanly set classes onto which ever container we want to target, removing the old classes and adding the new one + * + * @param {jQuery} element + * @param {string} classPrefix + * @param {Object} inputOptions + * @param {string} inputValue + * + */ + toggleLayoutClass(element, classPrefix, inputOptions, inputValue) { + // Loop through the possible classes and remove the one that's not in use + Object.entries(inputOptions).forEach(([key]) => { + element.removeClass(classPrefix + key); + }); + + // Append the class which we want to use onto the element + if ('' !== inputValue) { + element.addClass(classPrefix + inputValue); + } + } + + /** + * Set the conditions under which the hook will run. + * + * @param {Object} args + */ + getConditions(args) { + const isKit = 'kit' === elementor.documents.getCurrent().config.type, + changedControls = Object.keys(args.settings), + isSingleSetting = 1 === changedControls.length; + + // If the document is not a kit, or there are no changed settings, or there is more than one single changed + // setting, don't run the hook. + if (!isKit || !args.settings || !isSingleSetting) { + return false; + } + + // If the changed control is in the list of theme controls, return true to run the hook. + // Otherwise, return false so the hook doesn't run. + return !!Object.keys(this.getHelloThemeControls()).includes(changedControls[0]); + } + + /** + * The hook logic. + * + * @param {Object} args + */ + apply(args) { + const allThemeControls = this.getHelloThemeControls(), + // Extract the control ID from the passed args + controlId = Object.keys(args.settings)[0], + controlConfig = allThemeControls[controlId], + // Find the element that needs to be targeted by the control. + $element = elementor.$previewContents.find(controlConfig.selector); + controlConfig.callback($element, args); + } +} +exports["default"] = ControlsHook; + +/***/ }), + +/***/ 416: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var toPropertyKey = __webpack_require__(62); +function _defineProperty(obj, key, value) { + key = toPropertyKey(key); + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; +} +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 836: +/***/ ((module) => { + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; +} +module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 36: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var _typeof = (__webpack_require__(698)["default"]); +function _toPrimitive(input, hint) { + if (_typeof(input) !== "object" || input === null) return input; + var prim = input[Symbol.toPrimitive]; + if (prim !== undefined) { + var res = prim.call(input, hint || "default"); + if (_typeof(res) !== "object") return res; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + return (hint === "string" ? String : Number)(input); +} +module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 62: +/***/ ((module, __unused_webpack_exports, __webpack_require__) => { + +var _typeof = (__webpack_require__(698)["default"]); +var toPrimitive = __webpack_require__(36); +function _toPropertyKey(arg) { + var key = toPrimitive(arg, "string"); + return _typeof(key) === "symbol" ? key : String(key); +} +module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }), + +/***/ 698: +/***/ ((module) => { + +function _typeof(obj) { + "@babel/helpers - typeof"; + + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); +} +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be in strict mode. +(() => { +"use strict"; + + +var _interopRequireDefault = __webpack_require__(836); +var _component = _interopRequireDefault(__webpack_require__(440)); +$e.components.register(new _component.default()); +})(); + +/******/ })() +; \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/js/hello-frontend.asset.php b/wp-content/themes/hello-elementor/assets/js/hello-frontend.asset.php new file mode 100644 index 0000000..c4ad3f7 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-frontend.asset.php @@ -0,0 +1 @@ + array(), 'version' => 'ac1edb44e0c7550dfdd9'); diff --git a/wp-content/themes/hello-elementor/assets/js/hello-frontend.js b/wp-content/themes/hello-elementor/assets/js/hello-frontend.js new file mode 100644 index 0000000..ba7aca2 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-frontend.js @@ -0,0 +1,75 @@ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +var __webpack_exports__ = {}; + + +class elementorHelloThemeHandler { + constructor() { + this.initSettings(); + this.initElements(); + this.bindEvents(); + } + initSettings() { + this.settings = { + selectors: { + menuToggle: '.site-header .site-navigation-toggle', + menuToggleHolder: '.site-header .site-navigation-toggle-holder', + dropdownMenu: '.site-header .site-navigation-dropdown' + } + }; + } + initElements() { + this.elements = { + window, + menuToggle: document.querySelector(this.settings.selectors.menuToggle), + menuToggleHolder: document.querySelector(this.settings.selectors.menuToggleHolder), + dropdownMenu: document.querySelector(this.settings.selectors.dropdownMenu) + }; + } + bindEvents() { + var _this$elements$menuTo; + if (!this.elements.menuToggleHolder || (_this$elements$menuTo = this.elements.menuToggleHolder) !== null && _this$elements$menuTo !== void 0 && _this$elements$menuTo.classList.contains('hide')) { + return; + } + this.elements.menuToggle.addEventListener('click', () => this.handleMenuToggle()); + this.elements.menuToggle.addEventListener('keyup', event => { + const ENTER_KEY = 13; + const SPACE_KEY = 32; + if (ENTER_KEY === event.keyCode || SPACE_KEY === event.keyCode) { + event.currentTarget.click(); + } + }); + this.elements.dropdownMenu.querySelectorAll('.menu-item-has-children > a').forEach(anchorElement => anchorElement.addEventListener('click', event => this.handleMenuChildren(event))); + } + closeMenuItems() { + this.elements.menuToggleHolder.classList.remove('elementor-active'); + this.elements.window.removeEventListener('resize', () => this.closeMenuItems()); + } + handleMenuToggle() { + const isDropdownVisible = !this.elements.menuToggleHolder.classList.contains('elementor-active'); + this.elements.menuToggle.setAttribute('aria-expanded', isDropdownVisible); + this.elements.dropdownMenu.setAttribute('aria-hidden', !isDropdownVisible); + this.elements.menuToggleHolder.classList.toggle('elementor-active', isDropdownVisible); + + // Always close all sub active items. + this.elements.dropdownMenu.querySelectorAll('.elementor-active').forEach(item => item.classList.remove('elementor-active')); + if (isDropdownVisible) { + this.elements.window.addEventListener('resize', () => this.closeMenuItems()); + } else { + this.elements.window.removeEventListener('resize', () => this.closeMenuItems()); + } + } + handleMenuChildren(event) { + const anchor = event.currentTarget; + const parentLi = anchor.parentElement; + if (!(parentLi !== null && parentLi !== void 0 && parentLi.classList)) { + return; + } + parentLi.classList.toggle('elementor-active'); + } +} +document.addEventListener('DOMContentLoaded', () => { + new elementorHelloThemeHandler(); +}); +/******/ })() +; \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/js/hello-frontend.min.js b/wp-content/themes/hello-elementor/assets/js/hello-frontend.min.js new file mode 100644 index 0000000..ba7aca2 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/js/hello-frontend.min.js @@ -0,0 +1,75 @@ +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +var __webpack_exports__ = {}; + + +class elementorHelloThemeHandler { + constructor() { + this.initSettings(); + this.initElements(); + this.bindEvents(); + } + initSettings() { + this.settings = { + selectors: { + menuToggle: '.site-header .site-navigation-toggle', + menuToggleHolder: '.site-header .site-navigation-toggle-holder', + dropdownMenu: '.site-header .site-navigation-dropdown' + } + }; + } + initElements() { + this.elements = { + window, + menuToggle: document.querySelector(this.settings.selectors.menuToggle), + menuToggleHolder: document.querySelector(this.settings.selectors.menuToggleHolder), + dropdownMenu: document.querySelector(this.settings.selectors.dropdownMenu) + }; + } + bindEvents() { + var _this$elements$menuTo; + if (!this.elements.menuToggleHolder || (_this$elements$menuTo = this.elements.menuToggleHolder) !== null && _this$elements$menuTo !== void 0 && _this$elements$menuTo.classList.contains('hide')) { + return; + } + this.elements.menuToggle.addEventListener('click', () => this.handleMenuToggle()); + this.elements.menuToggle.addEventListener('keyup', event => { + const ENTER_KEY = 13; + const SPACE_KEY = 32; + if (ENTER_KEY === event.keyCode || SPACE_KEY === event.keyCode) { + event.currentTarget.click(); + } + }); + this.elements.dropdownMenu.querySelectorAll('.menu-item-has-children > a').forEach(anchorElement => anchorElement.addEventListener('click', event => this.handleMenuChildren(event))); + } + closeMenuItems() { + this.elements.menuToggleHolder.classList.remove('elementor-active'); + this.elements.window.removeEventListener('resize', () => this.closeMenuItems()); + } + handleMenuToggle() { + const isDropdownVisible = !this.elements.menuToggleHolder.classList.contains('elementor-active'); + this.elements.menuToggle.setAttribute('aria-expanded', isDropdownVisible); + this.elements.dropdownMenu.setAttribute('aria-hidden', !isDropdownVisible); + this.elements.menuToggleHolder.classList.toggle('elementor-active', isDropdownVisible); + + // Always close all sub active items. + this.elements.dropdownMenu.querySelectorAll('.elementor-active').forEach(item => item.classList.remove('elementor-active')); + if (isDropdownVisible) { + this.elements.window.addEventListener('resize', () => this.closeMenuItems()); + } else { + this.elements.window.removeEventListener('resize', () => this.closeMenuItems()); + } + } + handleMenuChildren(event) { + const anchor = event.currentTarget; + const parentLi = anchor.parentElement; + if (!(parentLi !== null && parentLi !== void 0 && parentLi.classList)) { + return; + } + parentLi.classList.toggle('elementor-active'); + } +} +document.addEventListener('DOMContentLoaded', () => { + new elementorHelloThemeHandler(); +}); +/******/ })() +; \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/styles/custom.css b/wp-content/themes/hello-elementor/assets/styles/custom.css new file mode 100644 index 0000000..f2d7224 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/styles/custom.css @@ -0,0 +1,765 @@ +.overflow { + overflow: hidden; +} + +input[id^=eael-tabs-filter-type-] { + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + position: relative; + width: 18px; + min-width: 18px; + height: 18px; + border: 1px solid #000; + overflow: hidden; +} +input[id^=eael-tabs-filter-type-]::before { + content: ""; + position: absolute; + top: -8px; + left: 19px; + width: 11px; + height: 1.5px; + background: #000; + transform: rotate(-45deg); + transition: all 250ms ease-in-out; +} +input[id^=eael-tabs-filter-type-]::after { + content: ""; + position: absolute; + top: -6px; + left: -13px; + width: 5px; + height: 1.5px; + background: #000; + transform: rotate(45deg); + transition: all 250ms ease-in-out; +} +input[id^=eael-tabs-filter-type-]:checked::before { + top: 7px; + left: 4px; +} +input[id^=eael-tabs-filter-type-]:checked::after { + top: 9px; + left: 2px; +} + +.eael-tabs-filter .eael-tabs-filter-types label { + padding-top: 3px; +} + +.eael-tabs-nav.eael-tabs-nav-custom { + -moz-column-gap: 50px; + column-gap: 50px; + display: grid; + grid-template-areas: "tabs-name tabs-list" "tabs-name tabs-toggle"; + grid-template-columns: auto 1fr; +} +.eael-tabs-nav.eael-tabs-nav-custom .tabs-category-name { + grid-area: tabs-name; +} +.eael-tabs-nav.eael-tabs-nav-custom ul[role=tablist] { + grid-area: tabs-list; + flex: 1; + gap: 24px; + flex-wrap: wrap; +} +.eael-tabs-nav.eael-tabs-nav-custom ul[role=tablist].limit { + overflow: hidden; + max-height: 140px; +} +.eael-tabs-nav.eael-tabs-nav-custom .show-more-tabs { + grid-area: tabs-toggle; + position: relative; + color: #000; + font-size: 16px; + font-weight: 700; + font-family: "Manrope", Sans-serif; + text-transform: uppercase; + letter-spacing: 0.6px; + margin-top: 50px; + width: -moz-fit-content; + width: fit-content; +} +.eael-tabs-nav.eael-tabs-nav-custom .show-more-tabs::before { + content: "\e65a"; + color: #000; + font-family: "themify"; + position: absolute; + left: calc(100% + 10px); + top: calc(50% - 3px); + width: 30px; + height: 30px; + border-radius: 100%; + transform: translateY(-50%) rotate(90deg); + display: flex; + align-items: center; + justify-content: center; + font-size: 24px; +} +.eael-tabs-nav > ul { + display: grid !important; + grid-template-columns: repeat(auto-fit, 194px); +} +.eael-tabs-nav > ul li { + height: 100%; +} + +.color-anchor { + position: relative; + height: 100px; + display: flex; + align-items: center; +} +.color-anchor::before { + content: "\e65a"; + color: #000; + font-family: "themify"; + position: absolute; + left: calc(100% - 20px); + top: 50%; + width: 100px; + height: 100px; + background: #f4f4f4; + border-radius: 100%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + font-size: 28px; +} +.color-anchor > .elementor-widget-container { + position: relative; + height: -moz-fit-content !important; + height: fit-content !important; + z-index: 1; +} + +.anchor-arrow .elementor-icon { + position: relative; + display: flex; + align-items: center; + justify-content: center; + width: 100px; + height: 100px; + border-radius: 100%; + background: #f4f4f4; + margin-left: -20px; +} + +.quality-box { + position: relative; +} +.quality-box::before { + content: ""; + position: absolute; + background-image: url("/wp-content/uploads/2024/04/quality-bg.svg"); + mix-blend-mode: multiply; + background-position: center; + background-repeat: no-repeat; + background-size: cover; + opacity: 0.4; + top: 0; + bottom: 0; + right: 0; + left: auto; + width: 320px; + z-index: 1; +} +.quality-box .quality-item { + position: relative; + z-index: 1; +} +.quality-box .quality-item .elementor-icon-box-wrapper .elementor-icon-box-content { + position: relative; + padding-left: 24px; +} +.quality-box .quality-item .elementor-icon-box-wrapper .elementor-icon-box-content::before { + content: ""; + position: absolute; + left: 0; + top: 6px; + bottom: 6px; + width: 2px; + background: #000; +} + +.numeric-list ol { + padding: 0; + margin: 0; + counter-reset: number; + list-style-type: none; +} +.numeric-list ol li { + position: relative; + counter-increment: number; + padding-left: 55px; +} +.numeric-list ol li:not(:last-child) { + margin-bottom: 20px; +} +.numeric-list ol li:before { + content: counter(number); + position: absolute; + left: 0; + top: 0; + width: 32px; + height: 32px; + border-radius: 100%; + background: #f4f4f4; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + font-weight: 700; + letter-spacing: 0.6px; +} + +.home-nasze-produkty .premium-carousel-wrapper .premium-carousel-inner .carousel-arrow { + position: absolute; + top: -108px; + padding: 0; + border: none; + margin: 0 !important; +} +.home-nasze-produkty .premium-carousel-wrapper .premium-carousel-inner .carousel-arrow:hover { + background: transparent; +} +.home-nasze-produkty .premium-carousel-wrapper .premium-carousel-inner .carousel-arrow.carousel-next { + right: 50px; +} +.home-nasze-produkty .premium-carousel-wrapper .premium-carousel-inner .carousel-arrow.carousel-prev { + right: 130px; + left: auto; +} + +.home-gallery .elementor-widget-container .swiper .elementor-swiper-button { + top: -92px; +} +.home-gallery .elementor-widget-container .swiper .elementor-swiper-button.elementor-swiper-button-prev { + left: auto; + right: 130px; + left: auto; +} +.home-gallery .elementor-widget-container .swiper .elementor-swiper-button.elementor-swiper-button-next { + right: 50px; +} + +.home-numbers-1 { + position: relative; +} +.home-numbers-1::before { + content: ""; + position: absolute; + left: 0; + top: -115px; + width: 495px; + height: 495px; + transform: translateX(-50%); + background-image: url("/wp-content/uploads/2024/04/V.svg"); + background-repeat: no-repeat; + background-size: contain; + background-position: center; +} + +.home-troska { + position: relative; +} +.home-troska .home-troska-left { + position: relative; +} +.home-troska .home-troska-left::before { + content: ""; + position: absolute; + left: 10px; + top: 0; + bottom: 0; + transform: translateX(-50%); + background-image: url("/wp-content/uploads/2024/04/V.svg"); + background-repeat: no-repeat; + background-size: contain; + background-position: center; +} + +#home-hero-slider { + width: 100%; + max-width: 1920px; + margin-left: auto; + margin-right: auto; + overflow: hidden; +} +#home-hero-slider .premium-carousel-inner .slick-dots { + display: flex; + justify-content: flex-end; + left: 72%; + position: absolute; + bottom: 7.8%; + counter-reset: list; + list-style-type: none; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li { + position: relative; + counter-increment: list; + width: auto; + margin: 0 10px; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:before { + content: "0" counter(list); + color: #000; + font-size: 24px; + font-weight: 700; + font-family: "Manrope", Sans-serif; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:first-child::after { + content: ""; + position: absolute; + top: 50%; + right: calc(100% + 17px); + width: 100vw; + height: 2px; + background: #000; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:last-child::after { + content: ""; + position: absolute; + top: 50%; + left: calc(100% + 17px); + width: 100vw; + height: 2px; + background: #000; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:last-child.slick-active { + margin: 0 10px 0 53px; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:last-child.slick-active .dot-helper { + position: relative; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:last-child.slick-active .dot-helper::before { + content: ""; + position: absolute; + width: 33px; + height: 2px; + right: 47px; + background: #000; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:first-child.slick-active { + margin: 0 53px 0 10px; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:first-child.slick-active .dot-helper { + position: relative; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:first-child.slick-active .dot-helper::after { + content: ""; + position: absolute; + width: 33px; + height: 2px; + left: 15px; + background: #000; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:not(:last-child, :first-child).slick-active { + margin: 0 53px; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:not(:last-child, :first-child).slick-active .dot-helper { + position: relative; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:not(:last-child, :first-child).slick-active .dot-helper::before { + content: ""; + position: absolute; + width: 33px; + height: 2px; + right: 47px; + background: #000; +} +#home-hero-slider .premium-carousel-inner .slick-dots > li:not(:last-child, :first-child).slick-active .dot-helper::after { + content: ""; + position: absolute; + width: 33px; + height: 2px; + left: 15px; + background: #000; +} + +.product-gallery-colors .show-more-colors .premium-button-text-icon-wrapper { + display: flex; + align-items: center; +} +.product-gallery-colors .show-more-colors .premium-button-text-icon-wrapper span { + padding-top: 5px; +} + +.product-colors .elementor-image-gallery .gallery { + display: flex; + flex-wrap: wrap; + gap: 32px; + max-height: 128px; + overflow: hidden; +} +.product-colors .elementor-image-gallery .gallery .gallery-item { + display: flex; + flex-direction: row; + align-items: center; + gap: 13px; + width: calc(50% - 16px); +} +.product-colors .elementor-image-gallery .gallery .gallery-item .gallery-icon { + width: 48px; + min-width: 48px; + height: 48px; +} +.product-colors .elementor-image-gallery .gallery .gallery-item .gallery-icon img { + height: 100%; + width: 100%; + -o-object-fit: cover; + object-fit: cover; +} +.product-colors .elementor-image-gallery .gallery .gallery-item .gallery-caption { + padding: 0; +} + +.product-gallery-drafts .show-more-drafts .premium-button-text-icon-wrapper { + display: flex; + align-items: center; +} +.product-gallery-drafts .show-more-drafts .premium-button-text-icon-wrapper span { + padding-top: 5px; +} + +.product-drafts .elementor-image-gallery .gallery { + max-height: 210px; + overflow: hidden; +} +.product-drafts .elementor-image-gallery .gallery .gallery-item .gallery-caption { + padding: 0; +} + +.product-gallery-drafts .elementor-image-gallery .gallery { + max-height: 1030px; + overflow: hidden; +} + +.product-catalog-bg { + position: relative; +} +.product-catalog-bg::before { + content: ""; + position: absolute; + left: 30px; + top: 0; + width: 495px; + height: 495px; + transform: translateX(-50%); + background-image: url("/wp-content/uploads/2024/04/V.svg"); + background-repeat: no-repeat; + background-size: contain; + background-position: center; +} + +#footer-data { + position: relative; + overflow: hidden; +} +#footer-data::before { + content: ""; + position: absolute; + top: 115px; + height: 2px; + width: 100vw; + background: #f4f4f4; +} + +body.page-id-729 .custom-bg-v .elementor-widget-container { + position: relative; +} +body.page-id-729 .custom-bg-v .elementor-widget-container::before { + content: ""; + position: absolute; + left: calc(100% - 5px); + top: 50%; + width: 495px; + height: 495px; + transform: translate(-50%, -50%); + background-image: url("/wp-content/uploads/2024/04/Group-371.svg"); + background-repeat: no-repeat; + background-size: contain; + background-position: center; +} + +#quote-box .carousel-arrow { + left: auto; +} +#quote-box .carousel-arrow.carousel-prev { + top: -60px; + right: 100px; +} +#quote-box .carousel-arrow.carousel-next { + top: -60px; + right: 0px; +} + +#contact-form select.wpcf7-select { + visibility: hidden; + opacity: 0; + display: none; +} +#contact-form .select-custom-text { + position: relative; + padding: 15px 24px; + border: 1px solid #000; + font-family: "League Spartan", Sans-serif; + letter-spacing: 0.6px; + font-weight: 400; +} +#contact-form .select-custom-text.selected { + color: #000; +} +#contact-form .select-custom-text.active::before { + transform: translateY(-50%) scale(-1); +} +#contact-form .select-custom-text::before { + content: "3"; + position: absolute; + top: 50%; + right: 24px; + transform: translateY(-50%); + transition: all 250ms ease-in-out; + font-family: "ElegantIcons"; + font-size: 26px; + color: #000; +} +#contact-form .select-custom-options { + list-style: none; + padding: 15px 24px; + border-left: 1px solid #000; + border-right: 1px solid #000; + border-bottom: 1px solid #000; +} +#contact-form .select-custom-options li { + color: #000; + font-family: "League Spartan", Sans-serif; + letter-spacing: 0.6px; + font-weight: 400; + cursor: pointer; +} +#contact-form .select-custom-options li:not(:last-child) { + margin-bottom: 10px; +} +#contact-form .wpcf7-list-item { + margin-left: 0; +} +#contact-form .wpcf7-list-item label { + display: flex; + flex-direction: row; + gap: 10px; + cursor: pointer; +} +#contact-form input[type=checkbox] { + position: relative; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + width: 14px; + min-width: 14px; + height: 14px; + border-radius: 100%; + border: 1px solid #000; + overflow: hidden; + margin-top: 2px; +} +#contact-form input[type=checkbox]:checked::before { + top: 6px; + left: 4px; +} +#contact-form input[type=checkbox]:checked::after { + top: 7px; + left: 3px; +} +#contact-form input[type=checkbox]::before { + content: ""; + position: absolute; + top: -4px; + left: 14px; + width: 6px; + height: 1px; + background: #000; + transform: rotate(-45deg); + transition: all 250ms ease-in-out; +} +#contact-form input[type=checkbox]::after { + content: ""; + position: absolute; + top: -3px; + left: -7px; + width: 3px; + height: 1px; + background: #000; + transform: rotate(45deg); + transition: all 250ms ease-in-out; +} +#contact-form input[type=text]::-moz-placeholder, #contact-form input[type=tel]::-moz-placeholder, #contact-form input[type=email]::-moz-placeholder { + color: #a8a8a8; +} +#contact-form input[type=text]::placeholder, #contact-form input[type=tel]::placeholder, #contact-form input[type=email]::placeholder { + color: #a8a8a8; +} +#contact-form textarea::-moz-placeholder { + color: #a8a8a8; +} +#contact-form textarea::placeholder { + color: #a8a8a8; +} +#contact-form p { + color: #a8a8a8; + font-size: 16px; + font-family: "League Spartan" sans-serif; + letter-spacing: 0.6px; + font-weight: 400; +} +#contact-form .form-submit-btn { + position: relative; + width: -moz-fit-content; + width: fit-content; + margin: 20px 0 0 auto; + padding-right: 60px; +} +#contact-form .form-submit-btn::before { + content: "\e65a"; + color: #000; + font-family: "themify"; + position: absolute; + right: 0; + top: 0; + width: 100px; + height: 100px; + background: #f4f4f4; + border-radius: 100%; + display: flex; + align-items: center; + justify-content: center; + font-size: 28px; +} +#contact-form .form-submit-btn input.wpcf7-submit { + position: relative; + height: 100px; + display: flex; + align-items: center; +} +#contact-form .wpcf7-spinner { + display: block; +} + +#contact-form.contact-form-2 .row { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 20px; +} +#contact-form.contact-form-2 .row .col-6 p { + width: 100%; +} +#contact-form.contact-form-2 .row .col-6 textarea { + max-height: 208px; +} + +.customized-shapes-box { + position: relative; +} +.customized-shapes-box::before { + content: ""; + position: absolute; + background-image: url("/wp-content/uploads/2024/04/quality-bg.svg"); + mix-blend-mode: multiply; + background-position: center; + background-repeat: no-repeat; + background-size: cover; + opacity: 0.4; + top: 0; + bottom: 0; + right: 0; + left: auto; + width: 320px; + z-index: 1; +} + +#accessories-head::before { + content: ""; + position: absolute; + background-image: url("/wp-content/uploads/2024/05/Group-373.svg"); + mix-blend-mode: multiply; + background-position: center; + background-repeat: no-repeat; + background-size: cover; + opacity: 0.5; + top: 0; + bottom: 0; + right: auto; + left: 20px; + width: 100px; + z-index: 1; +} + +.box-bg-v::before { + content: ""; + position: absolute; + right: 0px; + left: auto; + top: 50%; + width: 495px; + height: 495px; + transform: translate(50%, -50%); + background-image: url("/wp-content/uploads/2024/04/V.svg"); + background-repeat: no-repeat; + background-size: contain; + background-position: center; + z-index: 1; + opacity: 0.5; +} + +body.elementor-page > div[data-elementor-type=single-page] { + overflow: hidden; +} + +#checkbox-btn.active a::before { + content: ""; + position: absolute; + top: 7px; + left: 4px; + width: 11px; + height: 6px; + transform: rotate(-45deg); + transition: all 250ms ease-in-out; + border-bottom: 1.5px solid #000; + border-left: 1.5px solid #000; +} +#checkbox-btn a { + position: relative; + padding-left: 30px; + width: -moz-fit-content; + width: fit-content; + display: block; +} +#checkbox-btn a::after { + content: ""; + position: absolute; + top: 2px; + left: 0px; + width: 18px; + height: 18px; + border: 1px solid #000; +} + +.product-list-icon-desc .elementor-icon-box-icon { + position: relative; + padding-right: 20px; +} +.product-list-icon-desc .elementor-icon-box-icon::before { + content: ""; + position: absolute; + right: 0; + top: 50%; + transform: translateY(-50%); + width: 2px; + height: 40px; + background: #000; +} +.product-list-icon-desc .elementor-icon-box-title { + margin: 0; +}/*# sourceMappingURL=custom.css.map */ \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/styles/custom.css.map b/wp-content/themes/hello-elementor/assets/styles/custom.css.map new file mode 100644 index 0000000..4228a9c --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/styles/custom.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["custom.scss","custom.css"],"names":[],"mappings":"AAAA;EACC,gBAAA;ACCD;;ADEA;EACC,wBAAA;KAAA,qBAAA;UAAA,gBAAA;EACA,kBAAA;EACA,WAAA;EACA,eAAA;EACA,YAAA;EACA,sBAAA;EACA,gBAAA;ACCD;ADCC;EACC,WAAA;EACA,kBAAA;EACA,SAAA;EACA,UAAA;EACA,WAAA;EACA,aAAA;EACA,gBAAA;EACA,yBAAA;EACA,iCAAA;ACCF;ADEC;EACC,WAAA;EACA,kBAAA;EACA,SAAA;EACA,WAAA;EACA,UAAA;EACA,aAAA;EACA,gBAAA;EACA,wBAAA;EACA,iCAAA;ACAF;ADIE;EACC,QAAA;EACA,SAAA;ACFH;ADIE;EACC,QAAA;EACA,SAAA;ACFH;;ADQE;EACC,gBAAA;ACLH;;ADWC;EAGC,qBAAA;OAAA,gBAAA;EAEA,aAAA;EACA,kEACC;EAED,+BAAA;ACbF;ADeE;EACC,oBAAA;ACbH;ADgBE;EACC,oBAAA;EACA,OAAA;EACA,SAAA;EACA,eAAA;ACdH;ADgBG;EACC,gBAAA;EACA,iBAAA;ACdJ;ADkBE;EACC,sBAAA;EACA,kBAAA;EACA,WAAA;EACA,eAAA;EACA,gBAAA;EACA,kCAAA;EACA,yBAAA;EACA,qBAAA;EACA,gBAAA;EACA,uBAAA;EAAA,kBAAA;AChBH;ADkBG;EACC,gBAAA;EACA,WAAA;EACA,sBAAA;EACA,kBAAA;EACA,uBAAA;EACA,oBAAA;EACA,WAAA;EACA,YAAA;EACA,mBAAA;EACA,yCAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,eAAA;AChBJ;ADqBC;EACC,wBAAA;EACA,8CAAA;ACnBF;ADqBE;EACC,YAAA;ACnBH;;ADwBA;EACC,kBAAA;EACA,aAAA;EACA,aAAA;EACA,mBAAA;ACrBD;ADuBC;EACC,gBAAA;EACA,WAAA;EACA,sBAAA;EACA,kBAAA;EACA,uBAAA;EACA,QAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,2BAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,eAAA;ACrBF;ADwBC;EACC,kBAAA;EACA,mCAAA;EAAA,8BAAA;EACA,UAAA;ACtBF;;AD2BC;EACC,kBAAA;EACA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,kBAAA;ACxBF;;AD4BA;EACC,kBAAA;ACzBD;AD2BC;EACC,WAAA;EACA,kBAAA;EACA,mEAAA;EACA,wBAAA;EACA,2BAAA;EACA,4BAAA;EACA,sBAAA;EACA,YAAA;EACA,MAAA;EACA,SAAA;EACA,QAAA;EACA,UAAA;EACA,YAAA;EACA,UAAA;ACzBF;AD2BC;EACC,kBAAA;EACA,UAAA;ACzBF;AD4BG;EACC,kBAAA;EACA,kBAAA;AC1BJ;AD4BI;EACC,WAAA;EACA,kBAAA;EACA,OAAA;EACA,QAAA;EACA,WAAA;EACA,UAAA;EACA,gBAAA;AC1BL;;ADkCC;EACC,UAAA;EACA,SAAA;EACA,qBAAA;EACA,qBAAA;AC/BF;ADiCE;EACC,kBAAA;EACA,yBAAA;EACA,kBAAA;AC/BH;ADgCG;EACC,mBAAA;AC9BJ;ADiCG;EACC,wBAAA;EACA,kBAAA;EACA,OAAA;EACA,MAAA;EACA,WAAA;EACA,YAAA;EACA,mBAAA;EACA,mBAAA;EAEA,aAAA;EACA,mBAAA;EACA,uBAAA;EAEA,eAAA;EACA,gBAAA;EACA,qBAAA;ACjCJ;;AD0CG;EACC,kBAAA;EACA,WAAA;EACA,UAAA;EACA,YAAA;EACA,oBAAA;ACvCJ;ADyCI;EACC,uBAAA;ACvCL;AD0CI;EACC,WAAA;ACxCL;AD0CI;EACC,YAAA;EACA,UAAA;ACxCL;;ADkDG;EACC,UAAA;AC/CJ;ADgDI;EACC,UAAA;EACA,YAAA;EACA,UAAA;AC9CL;ADgDI;EACC,WAAA;AC9CL;;ADqDA;EACC,kBAAA;AClDD;ADoDC;EACC,WAAA;EACA,kBAAA;EACA,OAAA;EACA,WAAA;EACA,YAAA;EACA,aAAA;EACA,2BAAA;EACA,0DAAA;EACA,4BAAA;EACA,wBAAA;EACA,2BAAA;AClDF;;ADsDA;EACC,kBAAA;ACnDD;ADqDC;EACC,kBAAA;ACnDF;ADqDE;EACC,WAAA;EACA,kBAAA;EACA,UAAA;EACA,MAAA;EACA,SAAA;EACA,2BAAA;EACA,0DAAA;EACA,4BAAA;EACA,wBAAA;EACA,2BAAA;ACnDH;;ADwDA;EACC,WAAA;EACA,iBAAA;EACA,iBAAA;EACA,kBAAA;EACA,gBAAA;ACrDD;ADwDE;EACC,aAAA;EACA,yBAAA;EACA,SAAA;EAEA,kBAAA;EACA,YAAA;EAIA,mBAAA;EACA,qBAAA;AC1DH;AD4DG;EACC,kBAAA;EACA,uBAAA;EACA,WAAA;EACA,cAAA;AC1DJ;AD4DI;EACC,0BAAA;EACA,WAAA;EACA,eAAA;EACA,gBAAA;EACA,kCAAA;AC1DL;AD8DK;EACC,WAAA;EACA,kBAAA;EACA,QAAA;EACA,wBAAA;EACA,YAAA;EACA,WAAA;EACA,gBAAA;AC5DN;ADiEK;EACC,WAAA;EACA,kBAAA;EACA,QAAA;EACA,uBAAA;EACA,YAAA;EACA,WAAA;EACA,gBAAA;AC/DN;ADoEK;EACC,qBAAA;AClEN;ADmEM;EACC,kBAAA;ACjEP;ADmEO;EACC,WAAA;EACA,kBAAA;EACA,WAAA;EACA,WAAA;EACA,WAAA;EACA,gBAAA;ACjER;ADuEK;EACC,qBAAA;ACrEN;ADuEM;EACC,kBAAA;ACrEP;ADuEO;EACC,WAAA;EACA,kBAAA;EACA,WAAA;EACA,WAAA;EACA,UAAA;EACA,gBAAA;ACrER;AD2EK;EACC,cAAA;ACzEN;AD0EM;EACC,kBAAA;ACxEP;AD0EO;EACC,WAAA;EACA,kBAAA;EACA,WAAA;EACA,WAAA;EACA,WAAA;EACA,gBAAA;ACxER;AD0EO;EACC,WAAA;EACA,kBAAA;EACA,WAAA;EACA,WAAA;EACA,UAAA;EACA,gBAAA;ACxER;;ADoFE;EACC,aAAA;EACA,mBAAA;ACjFH;ADmFG;EACC,gBAAA;ACjFJ;;ADwFE;EACC,aAAA;EACA,eAAA;EACA,SAAA;EACA,iBAAA;EACA,gBAAA;ACrFH;ADuFG;EACC,aAAA;EACA,mBAAA;EACA,mBAAA;EACA,SAAA;EACA,uBAAA;ACrFJ;ADuFI;EACC,WAAA;EACA,eAAA;EACA,YAAA;ACrFL;ADuFK;EACC,YAAA;EACA,WAAA;EACA,oBAAA;KAAA,iBAAA;ACrFN;ADwFI;EACC,UAAA;ACtFL;;AD+FE;EACC,aAAA;EACA,mBAAA;AC5FH;AD8FG;EACC,gBAAA;AC5FJ;;ADmGE;EACC,iBAAA;EACA,gBAAA;AChGH;ADmGI;EACC,UAAA;ACjGL;;AD0GE;EACC,kBAAA;EACA,gBAAA;ACvGH;;AD4GA;EACC,kBAAA;ACzGD;AD2GC;EACC,WAAA;EACA,kBAAA;EACA,UAAA;EACA,MAAA;EACA,YAAA;EACA,aAAA;EACA,2BAAA;EACA,0DAAA;EACA,4BAAA;EACA,wBAAA;EACA,2BAAA;ACzGF;;AD6GA;EACC,kBAAA;EACA,gBAAA;AC1GD;AD4GC;EACC,WAAA;EACA,kBAAA;EACA,UAAA;EACA,WAAA;EACA,YAAA;EACA,mBAAA;AC1GF;;ADiHE;EACC,kBAAA;AC9GH;ADgHG;EACC,WAAA;EACA,kBAAA;EACA,sBAAA;EACA,QAAA;EACA,YAAA;EACA,aAAA;EACA,gCAAA;EACA,kEAAA;EACA,4BAAA;EACA,wBAAA;EACA,2BAAA;AC9GJ;;ADqHC;EACC,UAAA;AClHF;ADoHE;EACC,UAAA;EACA,YAAA;AClHH;ADoHE;EACC,UAAA;EACA,UAAA;AClHH;;ADyHE;EACC,kBAAA;EACA,UAAA;EACA,aAAA;ACtHH;AD0HC;EACC,kBAAA;EACA,kBAAA;EACA,sBAAA;EAEA,yCAAA;EACA,qBAAA;EACA,gBAAA;ACzHF;AD2HE;EACC,WAAA;ACzHH;AD6HG;EACC,qCAAA;AC3HJ;AD8HE;EACC,YAAA;EACA,kBAAA;EACA,QAAA;EACA,WAAA;EACA,2BAAA;EACA,iCAAA;EACA,2BAAA;EACA,eAAA;EACA,WAAA;AC5HH;ADgIC;EACC,gBAAA;EACA,kBAAA;EACA,2BAAA;EACA,4BAAA;EACA,6BAAA;AC9HF;ADgIE;EACC,WAAA;EACA,yCAAA;EACA,qBAAA;EACA,gBAAA;EACA,eAAA;AC9HH;ADgIG;EACC,mBAAA;AC9HJ;ADmIC;EACC,cAAA;ACjIF;ADmIE;EACC,aAAA;EACA,mBAAA;EACA,SAAA;EACA,eAAA;ACjIH;ADsIE;EACC,kBAAA;EACA,wBAAA;KAAA,qBAAA;UAAA,gBAAA;EACA,WAAA;EACA,eAAA;EACA,YAAA;EACA,mBAAA;EACA,sBAAA;EACA,gBAAA;EACA,eAAA;ACpIH;ADuII;EACC,QAAA;EACA,SAAA;ACrIL;ADuII;EACC,QAAA;EACA,SAAA;ACrIL;ADyIG;EACC,WAAA;EACA,kBAAA;EACA,SAAA;EACA,UAAA;EACA,UAAA;EACA,WAAA;EACA,gBAAA;EACA,yBAAA;EACA,iCAAA;ACvIJ;ADyIG;EACC,WAAA;EACA,kBAAA;EACA,SAAA;EACA,UAAA;EACA,UAAA;EACA,WAAA;EACA,gBAAA;EACA,wBAAA;EACA,iCAAA;ACvIJ;AD6IG;EACC,cAAA;AC3IJ;AD0IG;EACC,cAAA;AC3IJ;ADgJE;EACC,cAAA;AC9IH;AD6IE;EACC,cAAA;AC9IH;ADkJC;EACC,cAAA;EACA,eAAA;EACA,wCAAA;EACA,qBAAA;EACA,gBAAA;AChJF;ADmJC;EACC,kBAAA;EACA,uBAAA;EAAA,kBAAA;EACA,qBAAA;EACA,mBAAA;ACjJF;ADmJE;EACC,gBAAA;EACA,WAAA;EACA,sBAAA;EACA,kBAAA;EACA,QAAA;EACA,MAAA;EACA,YAAA;EACA,aAAA;EACA,mBAAA;EACA,mBAAA;EAEA,aAAA;EACA,mBAAA;EACA,uBAAA;EACA,eAAA;AClJH;ADsJG;EACC,kBAAA;EACA,aAAA;EACA,aAAA;EACA,mBAAA;ACpJJ;ADyJC;EACC,cAAA;ACvJF;;AD2JC;EACC,aAAA;EACA,8BAAA;EACA,SAAA;ACxJF;AD2JG;EACC,WAAA;ACzJJ;AD4JG;EACC,iBAAA;AC1JJ;;ADgKA;EACC,kBAAA;AC7JD;AD+JC;EACC,WAAA;EACA,kBAAA;EACA,mEAAA;EACA,wBAAA;EACA,2BAAA;EACA,4BAAA;EACA,sBAAA;EACA,YAAA;EACA,MAAA;EACA,SAAA;EACA,QAAA;EACA,UAAA;EACA,YAAA;EACA,UAAA;AC7JF;;ADkKC;EACC,WAAA;EACA,kBAAA;EACA,kEAAA;EACA,wBAAA;EACA,2BAAA;EACA,4BAAA;EACA,sBAAA;EACA,YAAA;EACA,MAAA;EACA,SAAA;EACA,WAAA;EACA,UAAA;EACA,YAAA;EACA,UAAA;AC/JF;;ADoKC;EACC,WAAA;EACA,kBAAA;EACA,UAAA;EACA,UAAA;EACA,QAAA;EACA,YAAA;EACA,aAAA;EACA,+BAAA;EACA,0DAAA;EACA,4BAAA;EACA,wBAAA;EACA,2BAAA;EACA,UAAA;EACA,YAAA;ACjKF;;ADsKC;EACC,gBAAA;ACnKF;;AD0KG;EACC,WAAA;EACA,kBAAA;EACA,QAAA;EACA,SAAA;EACA,WAAA;EACA,WAAA;EACA,yBAAA;EACA,iCAAA;EACA,+BAAA;EACA,6BAAA;ACvKJ;AD2KC;EACC,kBAAA;EACA,kBAAA;EACA,uBAAA;EAAA,kBAAA;EACA,cAAA;ACzKF;AD2KE;EACC,WAAA;EACA,kBAAA;EACA,QAAA;EACA,SAAA;EACA,WAAA;EACA,YAAA;EACA,sBAAA;ACzKH;;AD+KC;EACC,kBAAA;EACA,mBAAA;AC5KF;AD8KE;EACC,WAAA;EACA,kBAAA;EACA,QAAA;EACA,QAAA;EACA,2BAAA;EACA,UAAA;EACA,YAAA;EACA,gBAAA;AC5KH;AD+KC;EACC,SAAA;AC7KF","file":"custom.css"} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/assets/styles/custom.scss b/wp-content/themes/hello-elementor/assets/styles/custom.scss new file mode 100644 index 0000000..dc58923 --- /dev/null +++ b/wp-content/themes/hello-elementor/assets/styles/custom.scss @@ -0,0 +1,924 @@ +.overflow { + overflow: hidden; +} + +input[id^='eael-tabs-filter-type-'] { + appearance: none; + position: relative; + width: 18px; + min-width: 18px; + height: 18px; + border: 1px solid #000; + overflow: hidden; + + &::before { + content: ''; + position: absolute; + top: -8px; + left: 19px; + width: 11px; + height: 1.5px; + background: #000; + transform: rotate(-45deg); + transition: all 250ms ease-in-out; + } + + &::after { + content: ''; + position: absolute; + top: -6px; + left: -13px; + width: 5px; + height: 1.5px; + background: #000; + transform: rotate(45deg); + transition: all 250ms ease-in-out; + } + + &:checked { + &::before { + top: 7px; + left: 4px; + } + &::after { + top: 9px; + left: 2px; + } + } +} +.eael-tabs-filter { + .eael-tabs-filter-types { + label { + padding-top: 3px; + } + } +} + +.eael-tabs-nav { + &.eael-tabs-nav-custom { + // display: flex; + // flex-direction: row; + column-gap: 50px; + + display: grid; + grid-template-areas: + 'tabs-name tabs-list' + 'tabs-name tabs-toggle'; + grid-template-columns: auto 1fr; + + .tabs-category-name { + grid-area: tabs-name; + } + + ul[role='tablist'] { + grid-area: tabs-list; + flex: 1; + gap: 24px; + flex-wrap: wrap; + + &.limit { + overflow: hidden; + max-height: 140px; + } + } + + .show-more-tabs { + grid-area: tabs-toggle; + position: relative; + color: #000; + font-size: 16px; + font-weight: 700; + font-family: 'Manrope', Sans-serif; + text-transform: uppercase; + letter-spacing: 0.6px; + margin-top: 50px; + width: fit-content; + + &::before { + content: '\e65a'; + color: #000; + font-family: 'themify'; + position: absolute; + left: calc(100% + 10px); + top: calc(50% - 3px); + width: 30px; + height: 30px; + border-radius: 100%; + transform: translateY(-50%) rotate(90deg); + display: flex; + align-items: center; + justify-content: center; + font-size: 24px; + } + } + } + + > ul { + display: grid !important; + grid-template-columns: repeat(auto-fit, 194px); + + li { + height: 100%; + } + } +} + +.color-anchor { + position: relative; + height: 100px; + display: flex; + align-items: center; + + &::before { + content: '\e65a'; + color: #000; + font-family: 'themify'; + position: absolute; + left: calc(100% - 20px); + top: 50%; + width: 100px; + height: 100px; + background: #f4f4f4; + border-radius: 100%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + font-size: 28px; + } + + > .elementor-widget-container { + position: relative; + height: fit-content !important; + z-index: 1; + } +} + +.anchor-arrow { + .elementor-icon { + position: relative; + display: flex; + align-items: center; + justify-content: center; + width: 100px; + height: 100px; + border-radius: 100%; + background: #f4f4f4; + margin-left: -20px; + } +} + +.quality-box { + position: relative; + + &::before { + content: ''; + position: absolute; + background-image: url('/wp-content/uploads/2024/04/quality-bg.svg'); + mix-blend-mode: multiply; + background-position: center; + background-repeat: no-repeat; + background-size: cover; + opacity: 0.4; + top: 0; + bottom: 0; + right: 0; + left: auto; + width: 320px; + z-index: 1; + } + .quality-item { + position: relative; + z-index: 1; + + .elementor-icon-box-wrapper { + .elementor-icon-box-content { + position: relative; + padding-left: 24px; + + &::before { + content: ''; + position: absolute; + left: 0; + top: 6px; + bottom: 6px; + width: 2px; + background: #000; + } + } + } + } +} + +.numeric-list { + ol { + padding: 0; + margin: 0; + counter-reset: number; + list-style-type: none; + + li { + position: relative; + counter-increment: number; + padding-left: 55px; + &:not(:last-child) { + margin-bottom: 20px; + } + + &:before { + content: counter(number); + position: absolute; + left: 0; + top: 0; + width: 32px; + height: 32px; + border-radius: 100%; + background: #f4f4f4; + + display: flex; + align-items: center; + justify-content: center; + + font-size: 18px; + font-weight: 700; + letter-spacing: 0.6px; + } + } + } +} + +.home-nasze-produkty { + .premium-carousel-wrapper { + .premium-carousel-inner { + .carousel-arrow { + position: absolute; + top: -108px; + padding: 0; + border: none; + margin: 0 !important; + + &:hover { + background: transparent; + } + + &.carousel-next { + right: 50px; + } + &.carousel-prev { + right: 130px; + left: auto; + } + } + } + } +} + +.home-gallery { + .elementor-widget-container { + .swiper { + .elementor-swiper-button { + top: -92px; + &.elementor-swiper-button-prev { + left: auto; + right: 130px; + left: auto; + } + &.elementor-swiper-button-next { + right: 50px; + } + } + } + } +} + +.home-numbers-1 { + position: relative; + + &::before { + content: ''; + position: absolute; + left: 0; + top: -115px; + width: 495px; + height: 495px; + transform: translateX(-50%); + background-image: url('/wp-content/uploads/2024/04/V.svg'); + background-repeat: no-repeat; + background-size: contain; + background-position: center; + } +} + +.home-troska { + position: relative; + + .home-troska-left { + position: relative; + + &::before { + content: ''; + position: absolute; + left: 10px; + top: 0; + bottom: 0; + transform: translateX(-50%); + background-image: url('/wp-content/uploads/2024/04/V.svg'); + background-repeat: no-repeat; + background-size: contain; + background-position: center; + } + } +} + +#home-hero-slider { + width: 100%; + max-width: 1920px; + margin-left: auto; + margin-right: auto; + overflow: hidden; + + .premium-carousel-inner { + .slick-dots { + display: flex; + justify-content: flex-end; + left: 72%; + + position: absolute; + bottom: 7.8%; + // left: 0; + // right: 0; + + counter-reset: list; + list-style-type: none; + + & > li { + position: relative; + counter-increment: list; + width: auto; + margin: 0 10px; + + &:before { + content: '0' counter(list); + color: #000; + font-size: 24px; + font-weight: 700; + font-family: 'Manrope', Sans-serif; + } + + &:first-child { + &::after { + content: ''; + position: absolute; + top: 50%; + right: calc(100% + 17px); + width: 100vw; + height: 2px; + background: #000; + } + } + + &:last-child { + &::after { + content: ''; + position: absolute; + top: 50%; + left: calc(100% + 17px); + width: 100vw; + height: 2px; + background: #000; + } + } + + &:last-child { + &.slick-active { + margin: 0 10px 0 53px; + .dot-helper { + position: relative; + + &::before { + content: ''; + position: absolute; + width: 33px; + height: 2px; + right: 47px; + background: #000; + } + } + } + } + &:first-child { + &.slick-active { + margin: 0 53px 0 10px; + + .dot-helper { + position: relative; + + &::after { + content: ''; + position: absolute; + width: 33px; + height: 2px; + left: 15px; + background: #000; + } + } + } + } + &:not(:last-child, :first-child) { + &.slick-active { + margin: 0 53px; + .dot-helper { + position: relative; + + &::before { + content: ''; + position: absolute; + width: 33px; + height: 2px; + right: 47px; + background: #000; + } + &::after { + content: ''; + position: absolute; + width: 33px; + height: 2px; + left: 15px; + background: #000; + } + } + } + } + } + } + } +} + +.product-gallery-colors { + .show-more-colors { + .premium-button-text-icon-wrapper { + display: flex; + align-items: center; + + span { + padding-top: 5px; + } + } + } +} +.product-colors { + .elementor-image-gallery { + .gallery { + display: flex; + flex-wrap: wrap; + gap: 32px; + max-height: 128px; + overflow: hidden; + + .gallery-item { + display: flex; + flex-direction: row; + align-items: center; + gap: 13px; + width: calc(50% - 16px); + + .gallery-icon { + width: 48px; + min-width: 48px; + height: 48px; + + img { + height: 100%; + width: 100%; + object-fit: cover; + } + } + .gallery-caption { + padding: 0; + } + } + } + } +} + +.product-gallery-drafts { + .show-more-drafts { + .premium-button-text-icon-wrapper { + display: flex; + align-items: center; + + span { + padding-top: 5px; + } + } + } +} +.product-drafts { + .elementor-image-gallery { + .gallery { + max-height: 210px; + overflow: hidden; + + .gallery-item { + .gallery-caption { + padding: 0; + } + } + } + } +} + +.product-gallery-drafts { + .elementor-image-gallery { + .gallery { + max-height: 1030px; + overflow: hidden; + } + } +} + +.product-catalog-bg { + position: relative; + + &::before { + content: ''; + position: absolute; + left: 30px; + top: 0; + width: 495px; + height: 495px; + transform: translateX(-50%); + background-image: url('/wp-content/uploads/2024/04/V.svg'); + background-repeat: no-repeat; + background-size: contain; + background-position: center; + } +} + +#footer-data { + position: relative; + overflow: hidden; + + &::before { + content: ''; + position: absolute; + top: 115px; + height: 2px; + width: 100vw; + background: #f4f4f4; + } +} + +//* Okna drewniane +body.page-id-729 { + .custom-bg-v { + .elementor-widget-container { + position: relative; + + &::before { + content: ''; + position: absolute; + left: calc(100% - 5px); + top: 50%; + width: 495px; + height: 495px; + transform: translate(-50%, -50%); + background-image: url('/wp-content/uploads/2024/04/Group-371.svg'); + background-repeat: no-repeat; + background-size: contain; + background-position: center; + } + } + } +} + +#quote-box { + .carousel-arrow { + left: auto; + + &.carousel-prev { + top: -60px; + right: 100px; + } + &.carousel-next { + top: -60px; + right: 0px; + } + } +} + +#contact-form { + select { + &.wpcf7-select { + visibility: hidden; + opacity: 0; + display: none; + } + } + + .select-custom-text { + position: relative; + padding: 15px 24px; + border: 1px solid #000; + + font-family: 'League Spartan', Sans-serif; + letter-spacing: 0.6px; + font-weight: 400; + + &.selected { + color: #000; + } + + &.active { + &::before { + transform: translateY(-50%) scale(-1); + } + } + &::before { + content: '\33'; + position: absolute; + top: 50%; + right: 24px; + transform: translateY(-50%); + transition: all 250ms ease-in-out; + font-family: 'ElegantIcons'; + font-size: 26px; + color: #000; + } + } + + .select-custom-options { + list-style: none; + padding: 15px 24px; + border-left: 1px solid #000; + border-right: 1px solid #000; + border-bottom: 1px solid #000; + + li { + color: #000; + font-family: 'League Spartan', Sans-serif; + letter-spacing: 0.6px; + font-weight: 400; + cursor: pointer; + + &:not(:last-child) { + margin-bottom: 10px; + } + } + } + + .wpcf7-list-item { + margin-left: 0; + + label { + display: flex; + flex-direction: row; + gap: 10px; + cursor: pointer; + } + } + + input { + &[type='checkbox'] { + position: relative; + appearance: none; + width: 14px; + min-width: 14px; + height: 14px; + border-radius: 100%; + border: 1px solid #000; + overflow: hidden; + margin-top: 2px; + + &:checked { + &::before { + top: 6px; + left: 4px; + } + &::after { + top: 7px; + left: 3px; + } + } + + &::before { + content: ''; + position: absolute; + top: -4px; + left: 14px; + width: 6px; + height: 1px; + background: #000; + transform: rotate(-45deg); + transition: all 250ms ease-in-out; + } + &::after { + content: ''; + position: absolute; + top: -3px; + left: -7px; + width: 3px; + height: 1px; + background: #000; + transform: rotate(45deg); + transition: all 250ms ease-in-out; + } + } + &[type='text'], + &[type='tel'], + &[type='email'] { + &::placeholder { + color: #a8a8a8; + } + } + } + textarea { + &::placeholder { + color: #a8a8a8; + } + } + + p { + color: #a8a8a8; + font-size: 16px; + font-family: 'League Spartan' sans-serif; + letter-spacing: 0.6px; + font-weight: 400; + } + + .form-submit-btn { + position: relative; + width: fit-content; + margin: 20px 0 0 auto; + padding-right: 60px; + + &::before { + content: '\e65a'; + color: #000; + font-family: 'themify'; + position: absolute; + right: 0; + top: 0; + width: 100px; + height: 100px; + background: #f4f4f4; + border-radius: 100%; + // transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + font-size: 28px; + } + + input { + &.wpcf7-submit { + position: relative; + height: 100px; + display: flex; + align-items: center; + } + } + } + + .wpcf7-spinner { + display: block; + } +} +#contact-form.contact-form-2 { + .row { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 20px; + + .col-6 { + p { + width: 100%; + } + + textarea { + max-height: 208px; + } + } + } +} + +.customized-shapes-box { + position: relative; + + &::before { + content: ''; + position: absolute; + background-image: url('/wp-content/uploads/2024/04/quality-bg.svg'); + mix-blend-mode: multiply; + background-position: center; + background-repeat: no-repeat; + background-size: cover; + opacity: 0.4; + top: 0; + bottom: 0; + right: 0; + left: auto; + width: 320px; + z-index: 1; + } +} + +#accessories-head { + &::before { + content: ''; + position: absolute; + background-image: url('/wp-content/uploads/2024/05/Group-373.svg'); + mix-blend-mode: multiply; + background-position: center; + background-repeat: no-repeat; + background-size: cover; + opacity: 0.5; + top: 0; + bottom: 0; + right: auto; + left: 20px; + width: 100px; + z-index: 1; + } +} + +.box-bg-v { + &::before { + content: ''; + position: absolute; + right: 0px; + left: auto; + top: 50%; + width: 495px; + height: 495px; + transform: translate(50%, -50%); + background-image: url('/wp-content/uploads/2024/04/V.svg'); + background-repeat: no-repeat; + background-size: contain; + background-position: center; + z-index: 1; + opacity: 0.5; + } +} + +body.elementor-page { + > div[data-elementor-type='single-page'] { + overflow: hidden; + } +} + +#checkbox-btn { + &.active { + a { + &::before { + content: ''; + position: absolute; + top: 7px; + left: 4px; + width: 11px; + height: 6px; + transform: rotate(-45deg); + transition: all 250ms ease-in-out; + border-bottom: 1.5px solid #000; + border-left: 1.5px solid #000; + } + } + } + a { + position: relative; + padding-left: 30px; + width: fit-content; + display: block; + + &::after { + content: ''; + position: absolute; + top: 2px; + left: 0px; + width: 18px; + height: 18px; + border: 1px solid #000; + } + } +} + +.product-list-icon-desc { + .elementor-icon-box-icon { + position: relative; + padding-right: 20px; + + &::before { + content: ''; + position: absolute; + right: 0; + top: 50%; + transform: translateY(-50%); + width: 2px; + height: 40px; + background: #000; + } + } + .elementor-icon-box-title { + margin: 0; + } +} diff --git a/wp-content/themes/hello-elementor/classic-editor.css b/wp-content/themes/hello-elementor/classic-editor.css new file mode 100644 index 0000000..a6bcd96 --- /dev/null +++ b/wp-content/themes/hello-elementor/classic-editor.css @@ -0,0 +1,41 @@ +/** + * Classic editor styling + */ +/** + * Loading first in the style.scss & classic-editor.scss + */ +p { + margin-block-end: 0.75rem; +} + +img { + max-width: 100%; + height: auto; + vertical-align: middle; + border-style: none; +} + +pre { + font-family: monospace; + font-size: 1em; + white-space: pre-wrap; +} + +code, +kbd, +pre, +samp { + font-size: 1rem; +} + +code, +kbd, +pre, +samp { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; + font-size: 1rem; +} + +blockquote { + font-style: italic; +} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/classic-editor.min.css b/wp-content/themes/hello-elementor/classic-editor.min.css new file mode 100644 index 0000000..b3187f0 --- /dev/null +++ b/wp-content/themes/hello-elementor/classic-editor.min.css @@ -0,0 +1 @@ +p{margin-block-end:.75rem}img{max-width:100%;height:auto;vertical-align:middle;border-style:none}pre{font-family:monospace;font-size:1em;white-space:pre-wrap}code,kbd,pre,samp{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:1rem}blockquote{font-style:italic} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/comments.php b/wp-content/themes/hello-elementor/comments.php new file mode 100644 index 0000000..b589f7a --- /dev/null +++ b/wp-content/themes/hello-elementor/comments.php @@ -0,0 +1,80 @@ + +
    + + +

    + +

    + + + +
      + 'ol', + 'short_ping' => true, + 'avatar_size' => 42, + ] + ); + ?> +
    + + + + + + '

    ', + 'title_reply_after' => '

    ', + ] +); +?> + +
    diff --git a/wp-content/themes/hello-elementor/customizer.css b/wp-content/themes/hello-elementor/customizer.css new file mode 100644 index 0000000..059eef5 --- /dev/null +++ b/wp-content/themes/hello-elementor/customizer.css @@ -0,0 +1,21 @@ +/** + * Style for your Customizer editor. + */ +#accordion-section-hello-options .accordion-section-title { + color: #c36; +} +#accordion-section-hello-options .accordion-section-title:after { + color: #c36; +} + +#customize-control-hello-header-footer .hello-action-links { + margin: 15px auto; + text-align: center; +} +#customize-control-hello-header-footer .hello-action-links-title { + font-weight: 600; + margin: 10px 0; +} +#customize-control-hello-header-footer .hello-action-links-message { + margin: 0 0 20px; +} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/customizer.min.css b/wp-content/themes/hello-elementor/customizer.min.css new file mode 100644 index 0000000..3be2038 --- /dev/null +++ b/wp-content/themes/hello-elementor/customizer.min.css @@ -0,0 +1 @@ +#accordion-section-hello-options .accordion-section-title,#accordion-section-hello-options .accordion-section-title:after{color:#c36}#customize-control-hello-header-footer .hello-action-links{margin:15px auto;text-align:center}#customize-control-hello-header-footer .hello-action-links-title{font-weight:600;margin:10px 0}#customize-control-hello-header-footer .hello-action-links-message{margin:0 0 20px} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/editor.css b/wp-content/themes/hello-elementor/editor.css new file mode 100644 index 0000000..c0a7382 --- /dev/null +++ b/wp-content/themes/hello-elementor/editor.css @@ -0,0 +1,12 @@ +/** + * Elementor editor styling + */ +.hello-elementor.elementor-nerd-box .elementor-nerd-box-title { + margin-block-start: 24px; +} +.hello-elementor.elementor-nerd-box .elementor-nerd-box-message { + margin-block-start: 12px; +} +.hello-elementor.elementor-nerd-box .elementor-nerd-box-link { + margin-block-start: 24px; +} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/editor.min.css b/wp-content/themes/hello-elementor/editor.min.css new file mode 100644 index 0000000..dae01b9 --- /dev/null +++ b/wp-content/themes/hello-elementor/editor.min.css @@ -0,0 +1 @@ +.hello-elementor.elementor-nerd-box .elementor-nerd-box-title{margin-block-start:24px}.hello-elementor.elementor-nerd-box .elementor-nerd-box-message{margin-block-start:12px}.hello-elementor.elementor-nerd-box .elementor-nerd-box-link{margin-block-start:24px} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/footer.php b/wp-content/themes/hello-elementor/footer.php new file mode 100644 index 0000000..06fcc8c --- /dev/null +++ b/wp-content/themes/hello-elementor/footer.php @@ -0,0 +1,28 @@ + + + + + + diff --git a/wp-content/themes/hello-elementor/functions.php b/wp-content/themes/hello-elementor/functions.php new file mode 100644 index 0000000..fa48439 --- /dev/null +++ b/wp-content/themes/hello-elementor/functions.php @@ -0,0 +1,274 @@ + esc_html__( 'Header', 'hello-elementor' ) ] ); + register_nav_menus( [ 'menu-2' => esc_html__( 'Footer', 'hello-elementor' ) ] ); + } + + if ( apply_filters( 'hello_elementor_post_type_support', true ) ) { + add_post_type_support( 'page', 'excerpt' ); + } + + if ( apply_filters( 'hello_elementor_add_theme_support', true ) ) { + add_theme_support( 'post-thumbnails' ); + add_theme_support( 'automatic-feed-links' ); + add_theme_support( 'title-tag' ); + add_theme_support( + 'html5', + [ + 'search-form', + 'comment-form', + 'comment-list', + 'gallery', + 'caption', + 'script', + 'style', + ] + ); + add_theme_support( + 'custom-logo', + [ + 'height' => 100, + 'width' => 350, + 'flex-height' => true, + 'flex-width' => true, + ] + ); + + /* + * Editor Style. + */ + add_editor_style( 'classic-editor.css' ); + + /* + * Gutenberg wide images. + */ + add_theme_support( 'align-wide' ); + + /* + * WooCommerce. + */ + if ( apply_filters( 'hello_elementor_add_woocommerce_support', true ) ) { + // WooCommerce in general. + add_theme_support( 'woocommerce' ); + // Enabling WooCommerce product gallery features (are off by default since WC 3.0.0). + // zoom. + add_theme_support( 'wc-product-gallery-zoom' ); + // lightbox. + add_theme_support( 'wc-product-gallery-lightbox' ); + // swipe. + add_theme_support( 'wc-product-gallery-slider' ); + } + } + } +} +add_action( 'after_setup_theme', 'hello_elementor_setup' ); + +function hello_maybe_update_theme_version_in_db() { + $theme_version_option_name = 'hello_theme_version'; + // The theme version saved in the database. + $hello_theme_db_version = get_option( $theme_version_option_name ); + + // If the 'hello_theme_version' option does not exist in the DB, or the version needs to be updated, do the update. + if ( ! $hello_theme_db_version || version_compare( $hello_theme_db_version, HELLO_ELEMENTOR_VERSION, '<' ) ) { + update_option( $theme_version_option_name, HELLO_ELEMENTOR_VERSION ); + } +} + +if ( ! function_exists( 'hello_elementor_display_header_footer' ) ) { + /** + * Check whether to display header footer. + * + * @return bool + */ + function hello_elementor_display_header_footer() { + $hello_elementor_header_footer = true; + + return apply_filters( 'hello_elementor_header_footer', $hello_elementor_header_footer ); + } +} + +if ( ! function_exists( 'hello_elementor_scripts_styles' ) ) { + /** + * Theme Scripts & Styles. + * + * @return void + */ + function hello_elementor_scripts_styles() { + $min_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; + + if ( apply_filters( 'hello_elementor_enqueue_style', true ) ) { + wp_enqueue_style( + 'hello-elementor', + get_template_directory_uri() . '/style' . $min_suffix . '.css', + [], + HELLO_ELEMENTOR_VERSION + ); + } + + if ( apply_filters( 'hello_elementor_enqueue_theme_style', true ) ) { + wp_enqueue_style( + 'hello-elementor-theme-style', + get_template_directory_uri() . '/theme' . $min_suffix . '.css', + [], + HELLO_ELEMENTOR_VERSION + ); + } + + if ( hello_elementor_display_header_footer() ) { + wp_enqueue_style( + 'hello-elementor-header-footer', + get_template_directory_uri() . '/header-footer' . $min_suffix . '.css', + [], + HELLO_ELEMENTOR_VERSION + ); + } + } +} +add_action( 'wp_enqueue_scripts', 'hello_elementor_scripts_styles' ); + +if ( ! function_exists( 'hello_elementor_register_elementor_locations' ) ) { + /** + * Register Elementor Locations. + * + * @param ElementorPro\Modules\ThemeBuilder\Classes\Locations_Manager $elementor_theme_manager theme manager. + * + * @return void + */ + function hello_elementor_register_elementor_locations( $elementor_theme_manager ) { + if ( apply_filters( 'hello_elementor_register_elementor_locations', true ) ) { + $elementor_theme_manager->register_all_core_location(); + } + } +} +add_action( 'elementor/theme/register_locations', 'hello_elementor_register_elementor_locations' ); + +if ( ! function_exists( 'hello_elementor_content_width' ) ) { + /** + * Set default content width. + * + * @return void + */ + function hello_elementor_content_width() { + $GLOBALS['content_width'] = apply_filters( 'hello_elementor_content_width', 800 ); + } +} +add_action( 'after_setup_theme', 'hello_elementor_content_width', 0 ); + +if ( ! function_exists( 'hello_elementor_add_description_meta_tag' ) ) { + /** + * Add description meta tag with excerpt text. + * + * @return void + */ + function hello_elementor_add_description_meta_tag() { + if ( ! apply_filters( 'hello_elementor_description_meta_tag', true ) ) { + return; + } + + if ( ! is_singular() ) { + return; + } + + $post = get_queried_object(); + if ( empty( $post->post_excerpt ) ) { + return; + } + + echo '' . "\n"; + } +} +add_action( 'wp_head', 'hello_elementor_add_description_meta_tag' ); + +// Admin notice +if ( is_admin() ) { + require get_template_directory() . '/includes/admin-functions.php'; +} + +// Settings page +require get_template_directory() . '/includes/settings-functions.php'; + +// Header & footer styling option, inside Elementor +require get_template_directory() . '/includes/elementor-functions.php'; + +if ( ! function_exists( 'hello_elementor_customizer' ) ) { + // Customizer controls + function hello_elementor_customizer() { + if ( ! is_customize_preview() ) { + return; + } + + if ( ! hello_elementor_display_header_footer() ) { + return; + } + + require get_template_directory() . '/includes/customizer-functions.php'; + } +} +add_action( 'init', 'hello_elementor_customizer' ); + +if ( ! function_exists( 'hello_elementor_check_hide_title' ) ) { + /** + * Check whether to display the page title. + * + * @param bool $val default value. + * + * @return bool + */ + function hello_elementor_check_hide_title( $val ) { + if ( defined( 'ELEMENTOR_VERSION' ) ) { + $current_doc = Elementor\Plugin::instance()->documents->get( get_the_ID() ); + if ( $current_doc && 'yes' === $current_doc->get_settings( 'hide_title' ) ) { + $val = false; + } + } + return $val; + } +} +add_filter( 'hello_elementor_page_title', 'hello_elementor_check_hide_title' ); + +/** + * BC: + * In v2.7.0 the theme removed the `hello_elementor_body_open()` from `header.php` replacing it with `wp_body_open()`. + * The following code prevents fatal errors in child themes that still use this function. + */ +if ( ! function_exists( 'hello_elementor_body_open' ) ) { + function hello_elementor_body_open() { + wp_body_open(); + } +} + +function enqueue_custom_styles() { + wp_enqueue_style( 'custom-style', get_template_directory_uri() . '/assets/styles/custom.css' ); +} +add_action( 'wp_enqueue_scripts', 'enqueue_custom_styles', 9999); +function enqueue_custom_scripts() { + wp_enqueue_script( 'custom-script', get_template_directory_uri() . '/assets/js/custom.js', array(), '1.0', true ); +} +add_action( 'wp_enqueue_scripts', 'enqueue_custom_scripts' ); diff --git a/wp-content/themes/hello-elementor/header-footer.css b/wp-content/themes/hello-elementor/header-footer.css new file mode 100644 index 0000000..34cb377 --- /dev/null +++ b/wp-content/themes/hello-elementor/header-footer.css @@ -0,0 +1,360 @@ +@charset "UTF-8"; +/** + * Loading first in the style.scss & classic-editor.scss + */ +/** + * Header styling and layout + */ +.site-header { + /* Backwards compat for Hello 2.3.0 */ + display: flex; + flex-wrap: wrap; + justify-content: space-between; + padding-block-start: 1rem; + padding-block-end: 1rem; + position: relative; +} +.site-header .site-navigation { + justify-content: flex-end; +} +.site-header .site-branding { + display: flex; + flex-direction: column; + justify-content: center; +} +.site-header .header-inner { + display: flex; + flex-wrap: wrap; + justify-content: space-between; +} +.site-header .header-inner .custom-logo-link { + display: block; +} +.site-header .header-inner .site-branding .site-title, +.site-header .header-inner .site-branding .site-description { + margin: 0; +} +.site-header .header-inner .site-branding.show-title .site-logo { + display: none !important; +} +.site-header .header-inner .site-branding.show-logo .site-title { + display: none !important; +} +.site-header:not(.header-stacked) .header-inner .site-branding { + max-width: 30%; +} +.site-header:not(.header-stacked) .header-inner .site-navigation { + max-width: 70%; +} +.site-header.header-inverted .header-inner { + flex-direction: row-reverse; +} +.site-header.header-inverted .header-inner .site-branding { + text-align: right; +} +.site-header.header-inverted .header-inner .site-navigation { + justify-content: start; +} +.site-header.header-stacked .header-inner { + align-items: center; + flex-direction: column; + text-align: center; +} + +@media (max-width: 576px) { + .site-header .header-inner:not(.header-stacked) .site-branding { + max-width: 80%; + } +} +/** + * Footer styling and layout + */ +.site-footer { + padding-block-start: 1rem; + padding-block-end: 1rem; + position: relative; +} +.site-footer .footer-inner { + display: flex; + flex-wrap: wrap; + justify-content: space-between; +} +.site-footer .footer-inner .custom-logo-link { + display: block; +} +.site-footer .footer-inner .site-navigation { + justify-content: flex-end; +} +.site-footer .footer-inner .site-branding { + display: flex; + flex-direction: column; + justify-content: center; +} +.site-footer .footer-inner .site-branding .site-title, +.site-footer .footer-inner .site-branding .site-description { + margin: 0; +} +.site-footer .footer-inner .site-branding.show-title .site-logo { + display: none !important; +} +.site-footer .footer-inner .site-branding.show-logo .site-title { + display: none !important; +} +.site-footer .footer-inner .copyright { + align-items: center; + display: flex; + justify-content: flex-end; +} +.site-footer .footer-inner .copyright p { + margin: 0; +} +.site-footer.footer-inverted .footer-inner { + flex-direction: row-reverse; +} +.site-footer.footer-inverted .footer-inner .site-branding { + text-align: right; +} +.site-footer.footer-inverted .footer-inner .site-navigation { + justify-content: flex-start; +} +.site-footer.footer-has-copyright .footer-inner .site-navigation { + justify-content: center; +} +.site-footer.footer-stacked .footer-inner { + align-items: center; + flex-direction: column; + text-align: center; +} +.site-footer.footer-stacked .footer-inner .site-branding h4.site-title { + text-align: center; +} +.site-footer.footer-stacked .footer-inner .site-navigation .menu { + padding: 0; +} +.site-footer:not(.footer-stacked) .footer-inner .site-branding { + max-width: 20%; +} +.site-footer:not(.footer-stacked) .footer-inner .site-navigation { + max-width: 60%; +} +.site-footer:not(.footer-stacked) .footer-inner .copyright { + max-width: 20%; +} + +@media (max-width: 576px) { + .site-footer:not(.footer-stacked) .footer-inner .site-branding, + .site-footer:not(.footer-stacked) .footer-inner .site-navigation, + .site-footer:not(.footer-stacked) .footer-inner .copyright { + display: block; + text-align: center; + width: 100%; + max-width: none; + } + .site-footer .footer-inner .site-navigation ul.menu { + justify-content: center; + } + .site-footer .footer-inner .site-navigation ul.menu li { + display: inline-block; + } +} +/** + * Navigation Menus + */ +.site-header.header-inverted .site-navigation-toggle-holder { + justify-content: flex-start; +} +.site-header.header-stacked .site-navigation-toggle-holder { + justify-content: center; + max-width: 100%; +} +.site-header.menu-layout-dropdown .site-navigation { + display: none; +} + +.site-navigation-toggle-holder { + display: flex; + align-items: center; + justify-content: flex-end; + flex-grow: 1; + max-width: 20%; + padding: 8px 15px; +} +.site-navigation-toggle-holder .site-navigation-toggle { + display: flex; + align-items: center; + justify-content: center; + font-size: 22px; + padding: 0.25em; + cursor: pointer; + border: 0 solid; + border-radius: 3px; + background-color: rgba(0, 0, 0, 0.05); + color: #494c4f; +} +.site-navigation-toggle-holder.elementor-active .site-navigation-toggle i:before { + content: "\e87f"; +} + +.site-navigation { + grid-area: nav-menu; + display: flex; + align-items: center; + flex-grow: 1; +} +.site-navigation ul.menu, .site-navigation ul.menu ul { + list-style-type: none; + padding: 0; +} +.site-navigation ul.menu { + display: flex; + flex-wrap: wrap; +} +.site-navigation ul.menu li { + position: relative; + display: flex; +} +.site-navigation ul.menu li a { + display: block; + padding: 8px 15px; +} +.site-navigation ul.menu li.menu-item-has-children { + padding-inline-end: 15px; +} +.site-navigation ul.menu li.menu-item-has-children:after { + display: block; + content: "▾"; + font-size: 1.5em; + align-items: center; + color: #666666; + position: absolute; + right: 0; + top: 50%; + transform: translateY(-50%); + text-decoration: none; +} +.site-navigation ul.menu li.menu-item-has-children:focus-within > ul { + display: block; +} +.site-navigation ul.menu li ul { + background: #fff; + display: none; + min-width: 150px; + position: absolute; + z-index: 2; + left: 0; + top: 100%; +} +.site-navigation ul.menu li ul li { + border-block-end: #eeeeee 1px solid; +} +.site-navigation ul.menu li ul li:last-child { + border-block-end: none; +} +.site-navigation ul.menu li ul li.menu-item-has-children a { + flex-grow: 1; +} +.site-navigation ul.menu li ul li.menu-item-has-children:after { + transform: translateY(-50%) rotate(-90deg); +} +.site-navigation ul.menu li ul ul { + left: 100%; + top: 0; +} +.site-navigation ul.menu li:hover > ul { + display: block; +} + +footer .site-navigation ul.menu li ul { + top: auto; + bottom: 100%; +} +footer .site-navigation ul.menu li ul ul { + bottom: 0; +} +footer .site-navigation ul.menu a { + padding: 5px 15px; +} + +.site-navigation-dropdown { + margin-block-start: 10px; + transition: max-height 0.3s, transform 0.3s; + transform-origin: top; + position: absolute; + bottom: 0; + left: 0; + z-index: 10000; + width: 100%; +} +.site-navigation-toggle-holder:not(.elementor-active) + .site-navigation-dropdown { + transform: scaleY(0); + max-height: 0; +} +.site-navigation-toggle-holder.elementor-active + .site-navigation-dropdown { + transform: scaleY(1); + max-height: 100vh; +} +.site-navigation-dropdown ul { + padding: 0; +} +.site-navigation-dropdown ul.menu { + position: absolute; + width: 100%; + padding: 0; + margin: 0; + background: white; +} +.site-navigation-dropdown ul.menu li { + display: block; + width: 100%; + position: relative; +} +.site-navigation-dropdown ul.menu li a { + display: block; + padding: 20px; + background: #ffffff; + color: #55595c; + box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1019607843); +} +.site-navigation-dropdown ul.menu li.current-menu-item a { + color: white; + background: #55595c; +} +.site-navigation-dropdown ul.menu > li li { + transition: max-height 0.3s, transform 0.3s; + transform-origin: top; + transform: scaleY(0); + max-height: 0; +} +.site-navigation-dropdown ul.menu li.elementor-active > ul > li { + transform: scaleY(1); + max-height: 100vh; +} + +@media (max-width: 576px) { + .site-header.menu-dropdown-mobile:not(.menu-layout-dropdown) .site-navigation { + display: none !important; + } +} +@media (min-width: 768px) { + .site-header.menu-dropdown-mobile:not(.menu-layout-dropdown) .site-navigation-toggle-holder { + display: none !important; + } +} +@media (min-width: 576px) and (max-width: 767px) { + .site-header.menu-dropdown-mobile:not(.menu-layout-dropdown) .site-navigation { + display: none !important; + } +} +@media (min-width: 992px) { + .site-header.menu-dropdown-tablet:not(.menu-layout-dropdown) .site-navigation-toggle-holder { + display: none !important; + } +} +@media (max-width: 992px) { + .site-header.menu-dropdown-tablet:not(.menu-layout-dropdown) .site-navigation { + display: none !important; + } +} +.site-header.menu-dropdown-none:not(.menu-layout-dropdown) .site-navigation-toggle-holder { + display: none !important; +} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/header-footer.min.css b/wp-content/themes/hello-elementor/header-footer.min.css new file mode 100644 index 0000000..2be0e3a --- /dev/null +++ b/wp-content/themes/hello-elementor/header-footer.min.css @@ -0,0 +1 @@ +@charset "UTF-8";.site-header{display:flex;flex-wrap:wrap;justify-content:space-between;padding-block-start:1rem;padding-block-end:1rem;position:relative}.site-header .site-navigation{justify-content:flex-end}.site-header .site-branding{display:flex;flex-direction:column;justify-content:center}.site-header .header-inner{display:flex;flex-wrap:wrap;justify-content:space-between}.site-header .header-inner .custom-logo-link{display:block}.site-header .header-inner .site-branding .site-description,.site-header .header-inner .site-branding .site-title{margin:0}.site-header .header-inner .site-branding.show-logo .site-title,.site-header .header-inner .site-branding.show-title .site-logo{display:none!important}.site-header:not(.header-stacked) .header-inner .site-branding{max-width:30%}.site-header:not(.header-stacked) .header-inner .site-navigation{max-width:70%}.site-header.header-inverted .header-inner{flex-direction:row-reverse}.site-header.header-inverted .header-inner .site-branding{text-align:right}.site-header.header-inverted .header-inner .site-navigation{justify-content:start}.site-header.header-stacked .header-inner{align-items:center;flex-direction:column;text-align:center}@media (max-width:576px){.site-header .header-inner:not(.header-stacked) .site-branding{max-width:80%}}.site-footer{padding-block-start:1rem;padding-block-end:1rem;position:relative}.site-footer .footer-inner{display:flex;flex-wrap:wrap;justify-content:space-between}.site-footer .footer-inner .custom-logo-link{display:block}.site-footer .footer-inner .site-navigation{justify-content:flex-end}.site-footer .footer-inner .site-branding{display:flex;flex-direction:column;justify-content:center}.site-footer .footer-inner .site-branding .site-description,.site-footer .footer-inner .site-branding .site-title{margin:0}.site-footer .footer-inner .site-branding.show-logo .site-title,.site-footer .footer-inner .site-branding.show-title .site-logo{display:none!important}.site-footer .footer-inner .copyright{align-items:center;display:flex;justify-content:flex-end}.site-footer .footer-inner .copyright p{margin:0}.site-footer.footer-inverted .footer-inner{flex-direction:row-reverse}.site-footer.footer-inverted .footer-inner .site-branding{text-align:right}.site-footer.footer-inverted .footer-inner .site-navigation{justify-content:flex-start}.site-footer.footer-has-copyright .footer-inner .site-navigation{justify-content:center}.site-footer.footer-stacked .footer-inner{align-items:center;flex-direction:column;text-align:center}.site-footer.footer-stacked .footer-inner .site-branding h4.site-title{text-align:center}.site-footer.footer-stacked .footer-inner .site-navigation .menu{padding:0}.site-footer:not(.footer-stacked) .footer-inner .site-branding{max-width:20%}.site-footer:not(.footer-stacked) .footer-inner .site-navigation{max-width:60%}.site-footer:not(.footer-stacked) .footer-inner .copyright{max-width:20%}@media (max-width:576px){.site-footer:not(.footer-stacked) .footer-inner .copyright,.site-footer:not(.footer-stacked) .footer-inner .site-branding,.site-footer:not(.footer-stacked) .footer-inner .site-navigation{display:block;text-align:center;width:100%;max-width:none}.site-footer .footer-inner .site-navigation ul.menu{justify-content:center}.site-footer .footer-inner .site-navigation ul.menu li{display:inline-block}}.site-header.header-inverted .site-navigation-toggle-holder{justify-content:flex-start}.site-header.header-stacked .site-navigation-toggle-holder{justify-content:center;max-width:100%}.site-header.menu-layout-dropdown .site-navigation{display:none}.site-navigation-toggle-holder{display:flex;align-items:center;justify-content:flex-end;flex-grow:1;max-width:20%;padding:8px 15px}.site-navigation-toggle-holder .site-navigation-toggle{display:flex;align-items:center;justify-content:center;font-size:22px;padding:.25em;cursor:pointer;border:0 solid;border-radius:3px;background-color:rgba(0,0,0,.05);color:#494c4f}.site-navigation-toggle-holder.elementor-active .site-navigation-toggle i:before{content:"\e87f"}.site-navigation{grid-area:nav-menu;display:flex;align-items:center;flex-grow:1}.site-navigation ul.menu,.site-navigation ul.menu ul{list-style-type:none;padding:0}.site-navigation ul.menu{display:flex;flex-wrap:wrap}.site-navigation ul.menu li{position:relative;display:flex}.site-navigation ul.menu li a{display:block;padding:8px 15px}.site-navigation ul.menu li.menu-item-has-children{padding-inline-end:15px}.site-navigation ul.menu li.menu-item-has-children:after{display:block;content:"▾";font-size:1.5em;align-items:center;color:#666;position:absolute;right:0;top:50%;transform:translateY(-50%);text-decoration:none}.site-navigation ul.menu li.menu-item-has-children:focus-within>ul{display:block}.site-navigation ul.menu li ul{background:#fff;display:none;min-width:150px;position:absolute;z-index:2;left:0;top:100%}.site-navigation ul.menu li ul li{border-block-end:#eee 1px solid}.site-navigation ul.menu li ul li:last-child{border-block-end:none}.site-navigation ul.menu li ul li.menu-item-has-children a{flex-grow:1}.site-navigation ul.menu li ul li.menu-item-has-children:after{transform:translateY(-50%) rotate(-90deg)}.site-navigation ul.menu li ul ul{left:100%;top:0}.site-navigation ul.menu li:hover>ul{display:block}footer .site-navigation ul.menu li ul{top:auto;bottom:100%}footer .site-navigation ul.menu li ul ul{bottom:0}footer .site-navigation ul.menu a{padding:5px 15px}.site-navigation-dropdown{margin-block-start:10px;transition:max-height .3s,transform .3s;transform-origin:top;position:absolute;bottom:0;left:0;z-index:10000;width:100%}.site-navigation-toggle-holder:not(.elementor-active)+.site-navigation-dropdown{transform:scaleY(0);max-height:0}.site-navigation-toggle-holder.elementor-active+.site-navigation-dropdown{transform:scaleY(1);max-height:100vh}.site-navigation-dropdown ul{padding:0}.site-navigation-dropdown ul.menu{position:absolute;width:100%;padding:0;margin:0;background:#fff}.site-navigation-dropdown ul.menu li{display:block;width:100%;position:relative}.site-navigation-dropdown ul.menu li a{display:block;padding:20px;background:#fff;color:#55595c;box-shadow:inset 0 -1px 0 rgba(0,0,0,.1019607843)}.site-navigation-dropdown ul.menu li.current-menu-item a{color:#fff;background:#55595c}.site-navigation-dropdown ul.menu>li li{transition:max-height .3s,transform .3s;transform-origin:top;transform:scaleY(0);max-height:0}.site-navigation-dropdown ul.menu li.elementor-active>ul>li{transform:scaleY(1);max-height:100vh}@media (max-width:576px){.site-header.menu-dropdown-mobile:not(.menu-layout-dropdown) .site-navigation{display:none!important}}@media (min-width:768px){.site-header.menu-dropdown-mobile:not(.menu-layout-dropdown) .site-navigation-toggle-holder{display:none!important}}@media (min-width:576px) and (max-width:767px){.site-header.menu-dropdown-mobile:not(.menu-layout-dropdown) .site-navigation{display:none!important}}@media (min-width:992px){.site-header.menu-dropdown-tablet:not(.menu-layout-dropdown) .site-navigation-toggle-holder{display:none!important}}@media (max-width:992px){.site-header.menu-dropdown-tablet:not(.menu-layout-dropdown) .site-navigation{display:none!important}}.site-header.menu-dropdown-none:not(.menu-layout-dropdown) .site-navigation-toggle-holder{display:none!important} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/header.php b/wp-content/themes/hello-elementor/header.php new file mode 100644 index 0000000..52e737e --- /dev/null +++ b/wp-content/themes/hello-elementor/header.php @@ -0,0 +1,43 @@ + section, opens the tag and adds the site's header. + * + * @package HelloElementor + */ + +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly. +} + +$viewport_content = apply_filters( 'hello_elementor_viewport_content', 'width=device-width, initial-scale=1' ); +$enable_skip_link = apply_filters( 'hello_elementor_enable_skip_link', true ); +$skip_link_url = apply_filters( 'hello_elementor_skip_link_url', '#content' ); +?> + +> + + + + + + +> + + + + + + + +parent_file ) && 'plugins.php' === $screen->parent_file && 'update' === $screen->id ) { + return; + } + + if ( 'true' === get_user_meta( get_current_user_id(), '_hello_elementor_install_notice', true ) ) { + return; + } + + $plugin = 'elementor/elementor.php'; + + $installed_plugins = get_plugins(); + + $is_elementor_installed = isset( $installed_plugins[ $plugin ] ); + + $message = esc_html__( 'The Hello Theme is a lightweight starter theme that works perfectly with the Elementor award-winning site builder plugin.', 'hello-elementor' ); + + if ( $is_elementor_installed ) { + if ( ! current_user_can( 'activate_plugins' ) ) { + return; + } + + $message .= ' ' . esc_html__( 'Once you activate the plugin, you are only one click away from building an amazing website.', 'hello-elementor' ); + + $button_text = esc_html__( 'Activate Elementor', 'hello-elementor' ); + $button_link = wp_nonce_url( 'plugins.php?action=activate&plugin=' . $plugin . '&plugin_status=all&paged=1&s', 'activate-plugin_' . $plugin ); + } else { + if ( ! current_user_can( 'install_plugins' ) ) { + return; + } + + $message .= ' ' . esc_html__( 'Once you download and activate the plugin, you are only one click away from building an amazing website.', 'hello-elementor' ); + + $button_text = esc_html__( 'Install Elementor', 'hello-elementor' ); + $button_link = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=elementor' ), 'install-plugin_elementor' ); + } + + ?> + + +
    +
    + <?php echo esc_attr__( 'Get Elementor', 'hello-elementor' ); ?> +
    +
    +

    +

    + + +
    +
    + add_section( + 'hello-options', + [ + 'title' => esc_html__( 'Header & Footer', 'hello-elementor' ), + 'capability' => 'edit_theme_options', + ] + ); + + $wp_customize->add_setting( + 'hello-header-footer', + [ + 'sanitize_callback' => false, + 'transport' => 'refresh', + ] + ); + + $wp_customize->add_control( + new HelloElementor\Includes\Customizer\Hello_Customizer_Action_Links( + $wp_customize, + 'hello-header-footer', + [ + 'section' => 'hello-options', + 'priority' => 20, + ] + ) + ); +} +add_action( 'customize_register', 'hello_customizer_register' ); + +/** + * Enqueue Customizer CSS. + * + * @return void + */ +function hello_customizer_styles() { + + $min_suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; + + wp_enqueue_style( + 'hello-elementor-customizer', + get_template_directory_uri() . '/customizer' . $min_suffix . '.css', + [], + HELLO_ELEMENTOR_VERSION + ); +} +add_action( 'admin_enqueue_scripts', 'hello_customizer_styles' ); diff --git a/wp-content/themes/hello-elementor/includes/customizer/customizer-action-links.php b/wp-content/themes/hello-elementor/includes/customizer/customizer-action-links.php new file mode 100644 index 0000000..a9f55d1 --- /dev/null +++ b/wp-content/themes/hello-elementor/includes/customizer/customizer-action-links.php @@ -0,0 +1,145 @@ +print_customizer_action_links(); + + if ( isset( $this->description ) ) { + echo '' . wp_kses_post( $this->description ) . ''; + } + } + + /** + * Print customizer action links. + * + * @return void + */ + private function print_customizer_action_links() { + if ( ! function_exists( 'get_plugins' ) ) { + require_once ABSPATH . 'wp-admin/includes/plugin.php'; + } + + $action_link_data = []; + $action_link_type = ''; + $installed_plugins = get_plugins(); + + if ( ! isset( $installed_plugins['elementor/elementor.php'] ) ) { + $action_link_type = 'install-elementor'; + } elseif ( ! defined( 'ELEMENTOR_VERSION' ) ) { + $action_link_type = 'activate-elementor'; + } elseif ( ! hello_header_footer_experiment_active() ) { + $action_link_type = 'activate-header-footer-experiment'; + } else { + $action_link_type = 'style-header-footer'; + } + + switch ( $action_link_type ) { + case 'install-elementor': + $action_link_data = [ + 'image' => get_template_directory_uri() . '/assets/images/elementor.svg', + 'alt' => esc_attr__( 'Elementor', 'hello-elementor' ), + 'title' => esc_html__( 'Install Elementor', 'hello-elementor' ), + 'message' => esc_html__( 'Create cross-site header & footer using Elementor.', 'hello-elementor' ), + 'button' => esc_html__( 'Install Elementor', 'hello-elementor' ), + 'link' => wp_nonce_url( + add_query_arg( + [ + 'action' => 'install-plugin', + 'plugin' => 'elementor', + ], + admin_url( 'update.php' ) + ), + 'install-plugin_elementor' + ), + ]; + break; + case 'activate-elementor': + $action_link_data = [ + 'image' => get_template_directory_uri() . '/assets/images/elementor.svg', + 'alt' => esc_attr__( 'Elementor', 'hello-elementor' ), + 'title' => esc_html__( 'Activate Elementor', 'hello-elementor' ), + 'message' => esc_html__( 'Create cross-site header & footer using Elementor.', 'hello-elementor' ), + 'button' => esc_html__( 'Activate Elementor', 'hello-elementor' ), + 'link' => wp_nonce_url( 'plugins.php?action=activate&plugin=elementor/elementor.php', 'activate-plugin_elementor/elementor.php' ), + ]; + break; + case 'activate-header-footer-experiment': + $action_link_data = [ + 'image' => get_template_directory_uri() . '/assets/images/elementor.svg', + 'alt' => esc_attr__( 'Elementor', 'hello-elementor' ), + 'title' => esc_html__( 'Style using Elementor', 'hello-elementor' ), + 'message' => esc_html__( 'Design your cross-site header & footer from Elementor’s "Site Settings" panel.', 'hello-elementor' ), + 'button' => esc_html__( 'Activate header & footer experiment', 'hello-elementor' ), + 'link' => wp_nonce_url( 'admin.php?page=elementor#tab-experiments' ), + ]; + break; + case 'style-header-footer': + $action_link_data = [ + 'image' => get_template_directory_uri() . '/assets/images/elementor.svg', + 'alt' => esc_attr__( 'Elementor', 'hello-elementor' ), + 'title' => esc_html__( 'Style cross-site header & footer', 'hello-elementor' ), + 'message' => esc_html__( 'Customize your cross-site header & footer from Elementor’s "Site Settings" panel.', 'hello-elementor' ), + 'button' => esc_html__( 'Start Designing', 'hello-elementor' ), + 'link' => wp_nonce_url( 'post.php?post=' . get_option( 'elementor_active_kit' ) . '&action=elementor' ), + ]; + break; + } + + $customizer_content = $this->get_customizer_action_links_html( $action_link_data ); + + echo wp_kses_post( $customizer_content ); + } + + /** + * Get the customizer action links HTML. + * + * @param array $data + * + * @return string + */ + private function get_customizer_action_links_html( $data ) { + if ( + empty( $data ) + || ! isset( $data['image'] ) + || ! isset( $data['alt'] ) + || ! isset( $data['title'] ) + || ! isset( $data['message'] ) + || ! isset( $data['link'] ) + || ! isset( $data['button'] ) + ) { + return; + } + + return sprintf( + '
    + %2$s +

    %3$s

    +

    %4$s

    + %6$s +
    ', + $data['image'], + $data['alt'], + $data['title'], + $data['message'], + $data['link'], + $data['button'], + ); + } +} diff --git a/wp-content/themes/hello-elementor/includes/elementor-functions.php b/wp-content/themes/hello-elementor/includes/elementor-functions.php new file mode 100644 index 0000000..a72c1ad --- /dev/null +++ b/wp-content/themes/hello-elementor/includes/elementor-functions.php @@ -0,0 +1,248 @@ +register_tab( 'hello-settings-header', HelloElementor\Includes\Settings\Settings_Header::class ); + $kit->register_tab( 'hello-settings-footer', HelloElementor\Includes\Settings\Settings_Footer::class ); + }, 1, 40 ); +} + +/** + * Helper function to return a setting. + * + * Saves 2 lines to get kit, then get setting. Also caches the kit and setting. + * + * @param string $setting_id + * @return string|array same as the Elementor internal function does. + */ +function hello_elementor_get_setting( $setting_id ) { + global $hello_elementor_settings; + + $return = ''; + + if ( ! isset( $hello_elementor_settings['kit_settings'] ) ) { + $kit = \Elementor\Plugin::$instance->kits_manager->get_active_kit(); + $hello_elementor_settings['kit_settings'] = $kit->get_settings(); + } + + if ( isset( $hello_elementor_settings['kit_settings'][ $setting_id ] ) ) { + $return = $hello_elementor_settings['kit_settings'][ $setting_id ]; + } + + return apply_filters( 'hello_elementor_' . $setting_id, $return ); +} + +/** + * Helper function to show/hide elements + * + * This works with switches, if the setting ID that has been passed is toggled on, we'll return show, otherwise we'll return hide + * + * @param string $setting_id + * @return string|array same as the Elementor internal function does. + */ +function hello_show_or_hide( $setting_id ) { + return ( 'yes' === hello_elementor_get_setting( $setting_id ) ? 'show' : 'hide' ); +} + +/** + * Helper function to translate the header layout setting into a class name. + * + * @return string + */ +function hello_get_header_layout_class() { + $layout_classes = []; + + $header_layout = hello_elementor_get_setting( 'hello_header_layout' ); + if ( 'inverted' === $header_layout ) { + $layout_classes[] = 'header-inverted'; + } elseif ( 'stacked' === $header_layout ) { + $layout_classes[] = 'header-stacked'; + } + + $header_width = hello_elementor_get_setting( 'hello_header_width' ); + if ( 'full-width' === $header_width ) { + $layout_classes[] = 'header-full-width'; + } + + $header_menu_dropdown = hello_elementor_get_setting( 'hello_header_menu_dropdown' ); + if ( 'tablet' === $header_menu_dropdown ) { + $layout_classes[] = 'menu-dropdown-tablet'; + } elseif ( 'mobile' === $header_menu_dropdown ) { + $layout_classes[] = 'menu-dropdown-mobile'; + } elseif ( 'none' === $header_menu_dropdown ) { + $layout_classes[] = 'menu-dropdown-none'; + } + + $hello_header_menu_layout = hello_elementor_get_setting( 'hello_header_menu_layout' ); + if ( 'dropdown' === $hello_header_menu_layout ) { + $layout_classes[] = 'menu-layout-dropdown'; + } + + return implode( ' ', $layout_classes ); +} + +/** + * Helper function to translate the footer layout setting into a class name. + * + * @return string + */ +function hello_get_footer_layout_class() { + $footer_layout = hello_elementor_get_setting( 'hello_footer_layout' ); + + $layout_classes = []; + + if ( 'inverted' === $footer_layout ) { + $layout_classes[] = 'footer-inverted'; + } elseif ( 'stacked' === $footer_layout ) { + $layout_classes[] = 'footer-stacked'; + } + + $footer_width = hello_elementor_get_setting( 'hello_footer_width' ); + + if ( 'full-width' === $footer_width ) { + $layout_classes[] = 'footer-full-width'; + } + + if ( hello_elementor_get_setting( 'hello_footer_copyright_display' ) && '' !== hello_elementor_get_setting( 'hello_footer_copyright_text' ) ) { + $layout_classes[] = 'footer-has-copyright'; + } + + return implode( ' ', $layout_classes ); +} + +add_action( 'elementor/editor/after_enqueue_scripts', function() { + if ( ! hello_header_footer_experiment_active() ) { + return; + } + + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; + + wp_enqueue_script( + 'hello-theme-editor', + get_template_directory_uri() . '/assets/js/hello-editor' . $suffix . '.js', + [ 'jquery', 'elementor-editor' ], + HELLO_ELEMENTOR_VERSION, + true + ); + + wp_enqueue_style( + 'hello-editor', + get_template_directory_uri() . '/editor' . $suffix . '.css', + [], + HELLO_ELEMENTOR_VERSION + ); +} ); + +add_action( 'wp_enqueue_scripts', function() { + if ( ! hello_elementor_display_header_footer() ) { + return; + } + + if ( ! hello_header_footer_experiment_active() ) { + return; + } + + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; + + wp_enqueue_script( + 'hello-theme-frontend', + get_template_directory_uri() . '/assets/js/hello-frontend' . $suffix . '.js', + [], + HELLO_ELEMENTOR_VERSION, + true + ); + + \Elementor\Plugin::$instance->kits_manager->frontend_before_enqueue_styles(); +} ); + + +/** + * Helper function to decide whether to output the header template. + * + * @return bool + */ +function hello_get_header_display() { + $is_editor = isset( $_GET['elementor-preview'] ); + + return ( + $is_editor + || hello_elementor_get_setting( 'hello_header_logo_display' ) + || hello_elementor_get_setting( 'hello_header_tagline_display' ) + || hello_elementor_get_setting( 'hello_header_menu_display' ) + ); +} + +/** + * Helper function to decide whether to output the footer template. + * + * @return bool + */ +function hello_get_footer_display() { + $is_editor = isset( $_GET['elementor-preview'] ); + + return ( + $is_editor + || hello_elementor_get_setting( 'hello_footer_logo_display' ) + || hello_elementor_get_setting( 'hello_footer_tagline_display' ) + || hello_elementor_get_setting( 'hello_footer_menu_display' ) + || hello_elementor_get_setting( 'hello_footer_copyright_display' ) + ); +} + +/** + * Add Hello Elementor theme Header & Footer to Experiments. + */ +add_action( 'elementor/experiments/default-features-registered', function( \Elementor\Core\Experiments\Manager $experiments_manager ) { + $experiments_manager->add_feature( [ + 'name' => 'hello-theme-header-footer', + 'title' => esc_html__( 'Hello Theme Header & Footer', 'hello-elementor' ), + 'description' => sprintf( + '%1$s %3$s', + esc_html__( 'Customize and style the builtin Hello Theme’s cross-site header & footer from the Elementor "Site Settings" panel.', 'hello-elementor' ), + 'https://go.elementor.com/wp-dash-header-footer', + esc_html__( 'Learn More', 'hello-elementor' ) + ), + 'release_status' => $experiments_manager::RELEASE_STATUS_STABLE, + 'new_site' => [ + 'minimum_installation_version' => '3.3.0', + 'default_active' => $experiments_manager::STATE_ACTIVE, + ], + ] ); +} ); + +/** + * Helper function to check if Header & Footer Experiment is Active/Inactive + */ +function hello_header_footer_experiment_active() { + // If Elementor is not active, return false + if ( ! did_action( 'elementor/loaded' ) ) { + return false; + } + // Backwards compat. + if ( ! method_exists( \Elementor\Plugin::$instance->experiments, 'is_feature_active' ) ) { + return false; + } + + return (bool) ( \Elementor\Plugin::$instance->experiments->is_feature_active( 'hello-theme-header-footer' ) ); +} diff --git a/wp-content/themes/hello-elementor/includes/settings-functions.php b/wp-content/themes/hello-elementor/includes/settings-functions.php new file mode 100644 index 0000000..208d477 --- /dev/null +++ b/wp-content/themes/hello-elementor/includes/settings-functions.php @@ -0,0 +1,190 @@ + 'install-plugin', + 'plugin' => 'elementor', + ], + admin_url( 'update.php' ) + ), + 'install-plugin_elementor' + ); + } elseif ( ! defined( 'ELEMENTOR_VERSION' ) ) { + $action_link_type = 'activate-elementor'; + $action_link_url = wp_nonce_url( 'plugins.php?action=activate&plugin=elementor/elementor.php', 'activate-plugin_elementor/elementor.php' ); + } elseif ( hello_header_footer_experiment_active() && ! hello_header_footer_experiment_active() ) { + $action_link_type = 'activate-header-footer-experiment'; + $action_link_url = wp_nonce_url( 'admin.php?page=elementor#tab-experiments' ); + } elseif ( hello_header_footer_experiment_active() ) { + $action_link_type = 'style-header-footer'; + $action_link_url = wp_nonce_url( 'post.php?post=' . get_option( 'elementor_active_kit' ) . '&action=elementor' ); + } else { + $action_link_type = ''; + $action_link_url = ''; + } + + wp_localize_script( + $handle, + 'helloAdminData', + [ + 'actionLinkType' => $action_link_type, + 'actionLinkURL' => $action_link_url, + 'templateDirectoryURI' => get_template_directory_uri(), + ] + ); +} + +/** + * Render settings page wrapper element. + */ +function hello_elementor_settings_page_render() { + ?> +
    + '_description_meta_tag', + 'SKIP_LINK' => '_skip_link', + 'HEADER_FOOTER' => '_header_footer', + 'PAGE_TITLE' => '_page_title', + 'HELLO_STYLE' => '_hello_style', + 'HELLO_THEME' => '_hello_theme', + ]; + + hello_elementor_register_settings( $settings_group, $settings ); + hello_elementor_render_tweaks( $settings_group, $settings ); +} + +/** + * Register theme settings. + */ +function hello_elementor_register_settings( $settings_group, $settings ) { + + foreach ( $settings as $setting_key => $setting_value ) { + register_setting( + $settings_group, + $settings_group . $setting_value, + [ + 'default' => '', + 'show_in_rest' => true, + 'type' => 'string', + ] + ); + } + +} + +/** + * Run a tweek only if the user requested it. + */ +function hello_elementor_do_tweak( $setting, $tweak_callback ) { + + $option = get_option( $setting ); + if ( isset( $option ) && ( 'true' === $option ) && is_callable( $tweak_callback ) ) { + $tweak_callback(); + } + +} + +/** + * Render theme tweaks. + */ +function hello_elementor_render_tweaks( $settings_group, $settings ) { + + hello_elementor_do_tweak( $settings_group . $settings['DESCRIPTION_META_TAG'], function() { + remove_action( 'wp_head', 'hello_elementor_add_description_meta_tag' ); + } ); + + hello_elementor_do_tweak( $settings_group . $settings['SKIP_LINK'], function() { + add_filter( 'hello_elementor_enable_skip_link', '__return_false' ); + } ); + + hello_elementor_do_tweak( $settings_group . $settings['HEADER_FOOTER'], function() { + add_filter( 'hello_elementor_header_footer', '__return_false' ); + } ); + + hello_elementor_do_tweak( $settings_group . $settings['PAGE_TITLE'], function() { + add_filter( 'hello_elementor_page_title', '__return_false' ); + } ); + + hello_elementor_do_tweak( $settings_group . $settings['HELLO_STYLE'], function() { + add_filter( 'hello_elementor_enqueue_style', '__return_false' ); + } ); + + hello_elementor_do_tweak( $settings_group . $settings['HELLO_THEME'], function() { + add_filter( 'hello_elementor_enqueue_theme_style', '__return_false' ); + } ); + +} diff --git a/wp-content/themes/hello-elementor/includes/settings/settings-footer.php b/wp-content/themes/hello-elementor/includes/settings/settings-footer.php new file mode 100644 index 0000000..25d8543 --- /dev/null +++ b/wp-content/themes/hello-elementor/includes/settings/settings-footer.php @@ -0,0 +1,532 @@ +start_controls_section( + 'hello_footer_section', + [ + 'tab' => 'hello-settings-footer', + 'label' => esc_html__( 'Footer', 'hello-elementor' ), + ] + ); + + $this->add_control( + 'hello_footer_logo_display', + [ + 'type' => Controls_Manager::SWITCHER, + 'label' => esc_html__( 'Site Logo', 'hello-elementor' ), + 'default' => 'yes', + 'label_on' => esc_html__( 'Show', 'hello-elementor' ), + 'label_off' => esc_html__( 'Hide', 'hello-elementor' ), + 'selector' => '.site-footer .site-branding', + ] + ); + + $this->add_control( + 'hello_footer_tagline_display', + [ + 'type' => Controls_Manager::SWITCHER, + 'label' => esc_html__( 'Tagline', 'hello-elementor' ), + 'default' => 'yes', + 'label_on' => esc_html__( 'Show', 'hello-elementor' ), + 'label_off' => esc_html__( 'Hide', 'hello-elementor' ), + 'selector' => '.site-footer .site-description', + ] + ); + + $this->add_control( + 'hello_footer_menu_display', + [ + 'type' => Controls_Manager::SWITCHER, + 'label' => esc_html__( 'Menu', 'hello-elementor' ), + 'default' => 'yes', + 'label_on' => esc_html__( 'Show', 'hello-elementor' ), + 'label_off' => esc_html__( 'Hide', 'hello-elementor' ), + 'selector' => '.site-footer .site-navigation', + ] + ); + + $this->add_control( + 'hello_footer_copyright_display', + [ + 'type' => Controls_Manager::SWITCHER, + 'label' => esc_html__( 'Copyright', 'hello-elementor' ), + 'default' => 'yes', + 'label_on' => esc_html__( 'Show', 'hello-elementor' ), + 'label_off' => esc_html__( 'Hide', 'hello-elementor' ), + 'selector' => '.site-footer .copyright', + ] + ); + + $this->add_control( + 'hello_footer_disable_note', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => sprintf( + /* translators: %s: Link that opens the theme settings page. */ + __( 'Note: Hiding all the elements, only hides them visually. To disable them completely go to Theme Settings .', 'hello-elementor' ), + admin_url( 'themes.php?page=hello-theme-settings' ) + ), + 'content_classes' => 'elementor-panel-alert elementor-panel-alert-warning', + 'condition' => [ + 'hello_footer_logo_display' => '', + 'hello_footer_tagline_display' => '', + 'hello_footer_menu_display' => '', + 'hello_footer_copyright_display' => '', + ], + ] + ); + + $this->add_control( + 'hello_footer_layout', + [ + 'type' => Controls_Manager::SELECT, + 'label' => esc_html__( 'Layout', 'hello-elementor' ), + 'options' => [ + 'default' => esc_html__( 'Default', 'hello-elementor' ), + 'inverted' => esc_html__( 'Inverted', 'hello-elementor' ), + 'stacked' => esc_html__( 'Centered', 'hello-elementor' ), + ], + 'selector' => '.site-footer', + 'default' => 'default', + 'separator' => 'before', + ] + ); + + $this->add_control( + 'hello_footer_width', + [ + 'type' => Controls_Manager::SELECT, + 'label' => esc_html__( 'Width', 'hello-elementor' ), + 'options' => [ + 'boxed' => esc_html__( 'Boxed', 'hello-elementor' ), + 'full-width' => esc_html__( 'Full Width', 'hello-elementor' ), + ], + 'selector' => '.site-footer', + 'default' => 'boxed', + ] + ); + + $this->add_responsive_control( + 'hello_footer_custom_width', + [ + 'type' => Controls_Manager::SLIDER, + 'label' => esc_html__( 'Content Width', 'hello-elementor' ), + 'size_units' => [ '%', 'px', 'em', 'rem', 'vw', 'custom' ], + 'range' => [ + 'px' => [ + 'max' => 2000, + ], + 'em' => [ + 'max' => 100, + ], + 'rem' => [ + 'max' => 100, + ], + ], + 'condition' => [ + 'hello_footer_width' => 'boxed', + ], + 'selectors' => [ + '.site-footer .footer-inner' => 'width: {{SIZE}}{{UNIT}}; max-width: 100%;', + ], + ] + ); + + $this->add_responsive_control( + 'hello_footer_gap', + [ + 'type' => Controls_Manager::SLIDER, + 'label' => esc_html__( 'Gap', 'hello-elementor' ), + 'size_units' => [ '%', 'px', 'em ', 'rem', 'vw', 'custom' ], + 'range' => [ + 'px' => [ + 'max' => 100, + ], + 'em' => [ + 'max' => 5, + ], + 'rem' => [ + 'max' => 5, + ], + ], + 'selectors' => [ + '.site-footer' => 'padding-inline-end: {{SIZE}}{{UNIT}}; padding-inline-start: {{SIZE}}{{UNIT}}', + ], + 'condition' => [ + 'hello_footer_layout!' => 'stacked', + ], + ] + ); + + $this->add_group_control( + Group_Control_Background::get_type(), + [ + 'name' => 'hello_footer_background', + 'label' => esc_html__( 'Background', 'hello-elementor' ), + 'types' => [ 'classic', 'gradient' ], + 'selector' => '.site-footer', + ] + ); + + $this->end_controls_section(); + + $this->start_controls_section( + 'hello_footer_logo_section', + [ + 'tab' => 'hello-settings-footer', + 'label' => esc_html__( 'Site Logo', 'hello-elementor' ), + 'condition' => [ + 'hello_footer_logo_display!' => '', + ], + ] + ); + + $this->add_control( + 'hello_footer_logo_type', + [ + 'label' => esc_html__( 'Type', 'hello-elementor' ), + 'type' => Controls_Manager::SELECT, + 'default' => 'logo', + 'options' => [ + 'logo' => esc_html__( 'Logo', 'hello-elementor' ), + 'title' => esc_html__( 'Title', 'hello-elementor' ), + ], + 'frontend_available' => true, + ] + ); + + $this->add_responsive_control( + 'hello_footer_logo_width', + [ + 'type' => Controls_Manager::SLIDER, + 'label' => esc_html__( 'Logo Width', 'hello-elementor' ), + 'description' => sprintf( + /* translators: %s: Link that opens Elementor's "Site Identity" panel. */ + __( 'Go to Site Identity to manage your site\'s logo', 'hello-elementor' ), + "javascript:\$e.route('panel/global/settings-site-identity')" + ), + 'size_units' => [ '%', 'px', 'em', 'rem', 'vw', 'custom' ], + 'range' => [ + 'px' => [ + 'max' => 1000, + ], + 'em' => [ + 'max' => 100, + ], + 'rem' => [ + 'max' => 100, + ], + ], + 'condition' => [ + 'hello_footer_logo_display' => 'yes', + 'hello_footer_logo_type' => 'logo', + ], + 'selectors' => [ + '.site-footer .site-branding .site-logo img' => 'width: {{SIZE}}{{UNIT}}; max-width: {{SIZE}}{{UNIT}}', + ], + ] + ); + + $this->add_control( + 'hello_footer_title_color', + [ + 'label' => esc_html__( 'Text Color', 'hello-elementor' ), + 'type' => Controls_Manager::COLOR, + 'condition' => [ + 'hello_footer_logo_display' => 'yes', + 'hello_footer_logo_type' => 'title', + ], + 'selectors' => [ + '.site-footer h4.site-title a' => 'color: {{VALUE}};', + ], + ] + ); + + $this->add_group_control( + Group_Control_Typography::get_type(), + [ + 'name' => 'hello_footer_title_typography', + 'label' => esc_html__( 'Typography', 'hello-elementor' ), + 'condition' => [ + 'hello_footer_logo_display' => 'yes', + 'hello_footer_logo_type' => 'title', + ], + 'selector' => '.site-footer h4.site-title', + + ] + ); + + $this->add_control( + 'hello_footer_title_link', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => sprintf( + /* translators: %s: Link that opens Elementor's "Site Identity" panel. */ + __( 'Go to Site Identity to manage your site\'s title', 'hello-elementor' ), + "javascript:\$e.route('panel/global/settings-site-identity')" + ), + 'content_classes' => 'elementor-control-field-description', + 'condition' => [ + 'hello_footer_logo_display' => 'yes', + 'hello_footer_logo_type' => 'title', + ], + ] + ); + + $this->end_controls_section(); + + $this->start_controls_section( + 'hello_footer_tagline', + [ + 'tab' => 'hello-settings-footer', + 'label' => esc_html__( 'Tagline', 'hello-elementor' ), + 'condition' => [ + 'hello_footer_tagline_display' => 'yes', + ], + ] + ); + + $this->add_control( + 'hello_footer_tagline_color', + [ + 'label' => esc_html__( 'Text Color', 'hello-elementor' ), + 'type' => Controls_Manager::COLOR, + 'condition' => [ + 'hello_footer_tagline_display' => 'yes', + ], + 'selectors' => [ + '.site-footer .site-description' => 'color: {{VALUE}};', + ], + ] + ); + + $this->add_group_control( + Group_Control_Typography::get_type(), + [ + 'name' => 'hello_footer_tagline_typography', + 'label' => esc_html__( 'Typography', 'hello-elementor' ), + 'condition' => [ + 'hello_footer_tagline_display' => 'yes', + ], + 'selector' => '.site-footer .site-description', + ] + ); + + $this->add_control( + 'hello_footer_tagline_link', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => sprintf( + /* translators: %s: Link that opens Elementor's "Site Identity" panel. */ + __( 'Go to Site Identity to manage your site\'s tagline', 'hello-elementor' ), + "javascript:\$e.route('panel/global/settings-site-identity')" + ), + 'content_classes' => 'elementor-control-field-description', + ] + ); + + $this->end_controls_section(); + + $this->start_controls_section( + 'hello_footer_menu_tab', + [ + 'tab' => 'hello-settings-footer', + 'label' => esc_html__( 'Menu', 'hello-elementor' ), + 'condition' => [ + 'hello_footer_menu_display' => 'yes', + ], + ] + ); + + $available_menus = wp_get_nav_menus(); + + $menus = [ '0' => esc_html__( '— Select a Menu —', 'hello-elementor' ) ]; + foreach ( $available_menus as $available_menu ) { + $menus[ $available_menu->term_id ] = $available_menu->name; + } + + if ( 1 === count( $menus ) ) { + $this->add_control( + 'hello_footer_menu_notice', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => '' . esc_html__( 'There are no menus in your site.', 'hello-elementor' ) . '
    ' . sprintf( __( 'Go to Menus screen to create one.', 'hello-elementor' ), admin_url( 'nav-menus.php?action=edit&menu=0' ) ), + 'separator' => 'after', + 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info', + ] + ); + } else { + $this->add_control( + 'hello_footer_menu', + [ + 'label' => esc_html__( 'Menu', 'hello-elementor' ), + 'type' => Controls_Manager::SELECT, + 'options' => $menus, + 'default' => array_keys( $menus )[0], + 'description' => sprintf( __( 'Go to the Menus screen to manage your menus.', 'hello-elementor' ), admin_url( 'nav-menus.php' ) ), + ] + ); + + $this->add_control( + 'hello_footer_menu_warning', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => esc_html__( 'Changes will be reflected in the preview only after the page reloads.', 'hello-elementor' ), + 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info', + ] + ); + + $this->add_control( + 'hello_footer_menu_color', + [ + 'label' => esc_html__( 'Color', 'hello-elementor' ), + 'type' => Controls_Manager::COLOR, + 'selectors' => [ + 'footer .footer-inner .site-navigation a' => 'color: {{VALUE}};', + ], + ] + ); + + $this->add_group_control( + Group_Control_Typography::get_type(), + [ + 'name' => 'hello_footer_menu_typography', + 'label' => esc_html__( 'Typography', 'hello-elementor' ), + 'selector' => 'footer .footer-inner .site-navigation a', + ] + ); + } + + $this->end_controls_section(); + + $this->start_controls_section( + 'hello_footer_copyright_section', + [ + 'tab' => 'hello-settings-footer', + 'label' => esc_html__( 'Copyright', 'hello-elementor' ), + 'conditions' => [ + 'relation' => 'and', + 'terms' => [ + [ + 'name' => 'hello_footer_copyright_display', + 'operator' => '=', + 'value' => 'yes', + ], + ], + ], + ] + ); + + $this->add_control( + 'hello_footer_copyright_text', + [ + 'type' => Controls_Manager::TEXTAREA, + 'default' => esc_html__( 'All rights reserved', 'hello-elementor' ), + ] + ); + + $this->add_control( + 'hello_footer_copyright_color', + [ + 'label' => esc_html__( 'Text Color', 'hello-elementor' ), + 'type' => Controls_Manager::COLOR, + 'condition' => [ + 'hello_footer_copyright_display' => 'yes', + ], + 'selectors' => [ + '.site-footer .copyright p' => 'color: {{VALUE}};', + ], + ] + ); + + $this->add_group_control( + Group_Control_Typography::get_type(), + [ + 'name' => 'hello_footer_copyright_typography', + 'label' => esc_html__( 'Typography', 'hello-elementor' ), + 'condition' => [ + 'hello_footer_copyright_display' => 'yes', + ], + 'selector' => '.site-footer .copyright p', + ] + ); + + $this->end_controls_section(); + } + + public function on_save( $data ) { + // Save chosen footer menu to the WP settings. + if ( isset( $data['settings']['hello_footer_menu'] ) ) { + $menu_id = $data['settings']['hello_footer_menu']; + $locations = get_theme_mod( 'nav_menu_locations' ); + $locations['menu-2'] = (int) $menu_id; + set_theme_mod( 'nav_menu_locations', $locations ); + } + } + + public function get_additional_tab_content() { + $content_template = ' +
    + %2$s +

    %3$s

    +

    %4$s

    + %6$s +
    '; + + if ( ! defined( 'ELEMENTOR_PRO_VERSION' ) ) { + return sprintf( + $content_template, + get_template_directory_uri() . '/assets/images/go-pro.svg', + esc_attr__( 'Get Elementor Pro', 'hello-elementor' ), + esc_html__( 'Create a custom footer with multiple options', 'hello-elementor' ), + esc_html__( 'Upgrade to Elementor Pro and enjoy free design and many more features', 'hello-elementor' ), + 'https://go.elementor.com/hello-theme-footer/', + esc_html__( 'Upgrade', 'hello-elementor' ) + ); + } else { + return sprintf( + $content_template, + get_template_directory_uri() . '/assets/images/go-pro.svg', + esc_attr__( 'Elementor Pro', 'hello-elementor' ), + esc_html__( 'Create a custom footer with the Theme Builder', 'hello-elementor' ), + esc_html__( 'With the Theme Builder you can jump directly into each part of your site', 'hello-elementor' ), + get_admin_url( null, 'admin.php?page=elementor-app#/site-editor/templates/footer' ), + esc_html__( 'Create Footer', 'hello-elementor' ) + ); + } + } +} diff --git a/wp-content/themes/hello-elementor/includes/settings/settings-header.php b/wp-content/themes/hello-elementor/includes/settings/settings-header.php new file mode 100644 index 0000000..767b718 --- /dev/null +++ b/wp-content/themes/hello-elementor/includes/settings/settings-header.php @@ -0,0 +1,554 @@ +start_controls_section( + 'hello_header_section', + [ + 'tab' => 'hello-settings-header', + 'label' => esc_html__( 'Header', 'hello-elementor' ), + ] + ); + + $this->add_control( + 'hello_header_logo_display', + [ + 'type' => Controls_Manager::SWITCHER, + 'label' => esc_html__( 'Site Logo', 'hello-elementor' ), + 'default' => 'yes', + 'label_on' => esc_html__( 'Show', 'hello-elementor' ), + 'label_off' => esc_html__( 'Hide', 'hello-elementor' ), + ] + ); + + $this->add_control( + 'hello_header_tagline_display', + [ + 'type' => Controls_Manager::SWITCHER, + 'label' => esc_html__( 'Tagline', 'hello-elementor' ), + 'default' => 'yes', + 'label_on' => esc_html__( 'Show', 'hello-elementor' ), + 'label_off' => esc_html__( 'Hide', 'hello-elementor' ), + ] + ); + + $this->add_control( + 'hello_header_menu_display', + [ + 'type' => Controls_Manager::SWITCHER, + 'label' => esc_html__( 'Menu', 'hello-elementor' ), + 'default' => 'yes', + 'label_on' => esc_html__( 'Show', 'hello-elementor' ), + 'label_off' => esc_html__( 'Hide', 'hello-elementor' ), + ] + ); + + $this->add_control( + 'hello_header_disable_note', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => sprintf( + /* translators: %s: Link that opens the theme settings page. */ + __( 'Note: Hiding all the elements, only hides them visually. To disable them completely go to Theme Settings .', 'hello-elementor' ), + admin_url( 'themes.php?page=hello-theme-settings' ) + ), + 'content_classes' => 'elementor-panel-alert elementor-panel-alert-warning', + 'condition' => [ + 'hello_header_logo_display' => '', + 'hello_header_tagline_display' => '', + 'hello_header_menu_display' => '', + ], + ] + ); + + $this->add_control( + 'hello_header_layout', + [ + 'type' => Controls_Manager::SELECT, + 'label' => esc_html__( 'Layout', 'hello-elementor' ), + 'options' => [ + 'default' => esc_html__( 'Default', 'hello-elementor' ), + 'inverted' => esc_html__( 'Inverted', 'hello-elementor' ), + 'stacked' => esc_html__( 'Centered', 'hello-elementor' ), + ], + 'selector' => '.site-header', + 'default' => 'default', + 'separator' => 'before', + ] + ); + + $this->add_control( + 'hello_header_width', + [ + 'type' => Controls_Manager::SELECT, + 'label' => esc_html__( 'Width', 'hello-elementor' ), + 'options' => [ + 'boxed' => esc_html__( 'Boxed', 'hello-elementor' ), + 'full-width' => esc_html__( 'Full Width', 'hello-elementor' ), + ], + 'selector' => '.site-header', + 'default' => 'boxed', + ] + ); + + $this->add_responsive_control( + 'hello_header_custom_width', + [ + 'type' => Controls_Manager::SLIDER, + 'label' => esc_html__( 'Content Width', 'hello-elementor' ), + 'size_units' => [ '%', 'px', 'em', 'rem', 'vw', 'custom' ], + 'range' => [ + 'px' => [ + 'max' => 2000, + ], + 'em' => [ + 'max' => 100, + ], + 'rem' => [ + 'max' => 100, + ], + ], + 'condition' => [ + 'hello_header_width' => 'boxed', + ], + 'selectors' => [ + '.site-header .header-inner' => 'width: {{SIZE}}{{UNIT}}; max-width: 100%;', + ], + ] + ); + + $this->add_responsive_control( + 'hello_header_gap', + [ + 'type' => Controls_Manager::SLIDER, + 'label' => esc_html__( 'Gap', 'hello-elementor' ), + 'size_units' => [ '%', 'px', 'em ', 'rem', 'vw', 'custom' ], + 'default' => [ + 'size' => '0', + ], + 'range' => [ + 'px' => [ + 'max' => 100, + ], + 'em' => [ + 'max' => 5, + ], + 'rem' => [ + 'max' => 5, + ], + ], + 'selectors' => [ + '.site-header' => 'padding-inline-end: {{SIZE}}{{UNIT}}; padding-inline-start: {{SIZE}}{{UNIT}}', + ], + 'conditions' => [ + 'relation' => 'and', + 'terms' => [ + [ + 'name' => 'hello_header_layout', + 'operator' => '!=', + 'value' => 'stacked', + ], + ], + ], + ] + ); + + $this->add_group_control( + Group_Control_Background::get_type(), + [ + 'name' => 'hello_header_background', + 'label' => esc_html__( 'Background', 'hello-elementor' ), + 'types' => [ 'classic', 'gradient' ], + 'selector' => '.site-header', + ] + ); + + $this->end_controls_section(); + + $this->start_controls_section( + 'hello_header_logo_section', + [ + 'tab' => 'hello-settings-header', + 'label' => esc_html__( 'Site Logo', 'hello-elementor' ), + 'conditions' => [ + 'relation' => 'and', + 'terms' => [ + [ + 'name' => 'hello_header_logo_display', + 'operator' => '=', + 'value' => 'yes', + ], + ], + ], + ] + ); + + $this->add_control( + 'hello_header_logo_type', + [ + 'label' => esc_html__( 'Type', 'hello-elementor' ), + 'type' => Controls_Manager::SELECT, + 'default' => ( has_custom_logo() ? 'logo' : 'title' ), + 'options' => [ + 'logo' => esc_html__( 'Logo', 'hello-elementor' ), + 'title' => esc_html__( 'Title', 'hello-elementor' ), + ], + 'frontend_available' => true, + ] + ); + + $this->add_responsive_control( + 'hello_header_logo_width', + [ + 'type' => Controls_Manager::SLIDER, + 'label' => esc_html__( 'Logo Width', 'hello-elementor' ), + 'description' => sprintf( + /* translators: %s: Link that opens Elementor's "Site Identity" panel. */ + __( 'Go to Site Identity to manage your site\'s logo', 'hello-elementor' ), + "javascript:\$e.route('panel/global/settings-site-identity')" + ), + 'size_units' => [ '%', 'px', 'em', 'rem', 'vw', 'custom' ], + 'range' => [ + 'px' => [ + 'max' => 1000, + ], + 'em' => [ + 'max' => 100, + ], + 'rem' => [ + 'max' => 100, + ], + ], + 'condition' => [ + 'hello_header_logo_display' => 'yes', + 'hello_header_logo_type' => 'logo', + ], + 'selectors' => [ + '.site-header .site-branding .site-logo img' => 'width: {{SIZE}}{{UNIT}}; max-width: {{SIZE}}{{UNIT}}', + ], + ] + ); + + $this->add_control( + 'hello_header_title_color', + [ + 'label' => esc_html__( 'Text Color', 'hello-elementor' ), + 'type' => Controls_Manager::COLOR, + 'condition' => [ + 'hello_header_logo_display' => 'yes', + 'hello_header_logo_type' => 'title', + ], + 'selectors' => [ + '.site-header h1.site-title a' => 'color: {{VALUE}};', + ], + ] + ); + + $this->add_group_control( + Group_Control_Typography::get_type(), + [ + 'name' => 'hello_header_title_typography', + 'label' => esc_html__( 'Typography', 'hello-elementor' ), + 'description' => sprintf( + /* translators: %s: Link that opens Elementor's "Site Identity" panel. */ + __( 'Go to Site Identity to manage your site\'s title', 'hello-elementor' ), + "javascript:\$e.route('panel/global/settings-site-identity')" + ), + 'condition' => [ + 'hello_header_logo_display' => 'yes', + 'hello_header_logo_type' => 'title', + ], + 'selector' => '.site-header h1.site-title', + ] + ); + + $this->add_control( + 'hello_header_title_link', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => sprintf( + /* translators: %s: Link that opens Elementor's "Site Identity" panel. */ + __( 'Go to Site Identity to manage your site\'s title', 'hello-elementor' ), + "javascript:\$e.route('panel/global/settings-site-identity')" + ), + 'content_classes' => 'elementor-control-field-description', + 'condition' => [ + 'hello_header_logo_display' => 'yes', + 'hello_header_logo_type' => 'title', + ], + ] + ); + + $this->end_controls_section(); + + $this->start_controls_section( + 'hello_header_tagline', + [ + 'tab' => 'hello-settings-header', + 'label' => esc_html__( 'Tagline', 'hello-elementor' ), + 'conditions' => [ + 'relation' => 'and', + 'terms' => [ + [ + 'name' => 'hello_header_tagline_display', + 'operator' => '=', + 'value' => 'yes', + ], + ], + ], + ] + ); + + $this->add_control( + 'hello_header_tagline_color', + [ + 'label' => esc_html__( 'Text Color', 'hello-elementor' ), + 'type' => Controls_Manager::COLOR, + 'condition' => [ + 'hello_header_tagline_display' => 'yes', + ], + 'selectors' => [ + '.site-header .site-description' => 'color: {{VALUE}};', + ], + ] + ); + + $this->add_group_control( + Group_Control_Typography::get_type(), + [ + 'name' => 'hello_header_tagline_typography', + 'label' => esc_html__( 'Typography', 'hello-elementor' ), + 'condition' => [ + 'hello_header_tagline_display' => 'yes', + ], + 'selector' => '.site-header .site-description', + ] + ); + + $this->add_control( + 'hello_header_tagline_link', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => sprintf( + /* translators: %s: Link that opens Elementor's "Site Identity" panel. */ + __( 'Go to Site Identity to manage your site\'s tagline', 'hello-elementor' ), + "javascript:\$e.route('panel/global/settings-site-identity')" + ), + 'content_classes' => 'elementor-control-field-description', + ] + ); + + $this->end_controls_section(); + + $this->start_controls_section( + 'hello_header_menu_tab', + [ + 'tab' => 'hello-settings-header', + 'label' => esc_html__( 'Menu', 'hello-elementor' ), + 'conditions' => [ + 'relation' => 'and', + 'terms' => [ + [ + 'name' => 'hello_header_menu_display', + 'operator' => '=', + 'value' => 'yes', + ], + ], + ], + ] + ); + + $available_menus = wp_get_nav_menus(); + + $menus = [ '0' => esc_html__( '— Select a Menu —', 'hello-elementor' ) ]; + foreach ( $available_menus as $available_menu ) { + $menus[ $available_menu->term_id ] = $available_menu->name; + } + + if ( 1 === count( $menus ) ) { + $this->add_control( + 'hello_header_menu_notice', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => '' . esc_html__( 'There are no menus in your site.', 'hello-elementor' ) . '
    ' . sprintf( __( 'Go to Menus screen to create one.', 'hello-elementor' ), admin_url( 'nav-menus.php?action=edit&menu=0' ) ), + 'separator' => 'after', + 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info', + ] + ); + } else { + $this->add_control( + 'hello_header_menu', + [ + 'label' => esc_html__( 'Menu', 'hello-elementor' ), + 'type' => Controls_Manager::SELECT, + 'options' => $menus, + 'default' => array_keys( $menus )[0], + 'description' => sprintf( __( 'Go to the Menus screen to manage your menus.', 'hello-elementor' ), admin_url( 'nav-menus.php' ) ), + ] + ); + + $this->add_control( + 'hello_header_menu_warning', + [ + 'type' => Controls_Manager::RAW_HTML, + 'raw' => esc_html__( 'Changes will be reflected in the preview only after the page reloads.', 'hello-elementor' ), + 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info', + ] + ); + + $this->add_control( + 'hello_header_menu_layout', + [ + 'label' => esc_html__( 'Menu Layout', 'hello-elementor' ), + 'type' => Controls_Manager::SELECT, + 'default' => 'horizontal', + 'options' => [ + 'horizontal' => esc_html__( 'Horizontal', 'hello-elementor' ), + 'dropdown' => esc_html__( 'Dropdown', 'hello-elementor' ), + ], + 'frontend_available' => true, + ] + ); + + $breakpoints = Responsive::get_breakpoints(); + + $this->add_control( + 'hello_header_menu_dropdown', + [ + 'label' => esc_html__( 'Breakpoint', 'hello-elementor' ), + 'type' => Controls_Manager::SELECT, + 'default' => 'tablet', + 'options' => [ + /* translators: %d: Breakpoint number. */ + 'mobile' => sprintf( esc_html__( 'Mobile (< %dpx)', 'hello-elementor' ), $breakpoints['md'] ), + /* translators: %d: Breakpoint number. */ + 'tablet' => sprintf( esc_html__( 'Tablet (< %dpx)', 'hello-elementor' ), $breakpoints['lg'] ), + 'none' => esc_html__( 'None', 'hello-elementor' ), + ], + 'selector' => '.site-header', + 'condition' => [ + 'hello_header_menu_layout!' => 'dropdown', + ], + ] + ); + + $this->add_control( + 'hello_header_menu_color', + [ + 'label' => esc_html__( 'Color', 'hello-elementor' ), + 'type' => Controls_Manager::COLOR, + 'condition' => [ + 'hello_header_menu_display' => 'yes', + ], + 'selectors' => [ + '.site-header .site-navigation ul.menu li a' => 'color: {{VALUE}};', + ], + ] + ); + + $this->add_control( + 'hello_header_menu_toggle_color', + [ + 'label' => esc_html__( 'Toggle Color', 'hello-elementor' ), + 'type' => Controls_Manager::COLOR, + 'condition' => [ + 'hello_header_menu_display' => 'yes', + ], + 'selectors' => [ + '.site-header .site-navigation-toggle i' => 'color: {{VALUE}};', + ], + ] + ); + + $this->add_group_control( + Group_Control_Typography::get_type(), + [ + 'name' => 'hello_header_menu_typography', + 'label' => esc_html__( 'Typography', 'hello-elementor' ), + 'condition' => [ + 'hello_header_menu_display' => 'yes', + ], + 'selector' => '.site-header .site-navigation .menu li', + ] + ); + } + + $this->end_controls_section(); + } + + public function on_save( $data ) { + // Save chosen header menu to the WP settings. + if ( isset( $data['settings']['hello_header_menu'] ) ) { + $menu_id = $data['settings']['hello_header_menu']; + $locations = get_theme_mod( 'nav_menu_locations' ); + $locations['menu-1'] = (int) $menu_id; + set_theme_mod( 'nav_menu_locations', $locations ); + } + } + + public function get_additional_tab_content() { + $content_template = ' +
    + %2$s +

    %3$s

    +

    %4$s

    + %6$s +
    '; + + if ( ! defined( 'ELEMENTOR_PRO_VERSION' ) ) { + return sprintf( + $content_template, + get_template_directory_uri() . '/assets/images/go-pro.svg', + esc_attr__( 'Get Elementor Pro', 'hello-elementor' ), + esc_html__( 'Create a custom header with multiple options', 'hello-elementor' ), + esc_html__( 'Upgrade to Elementor Pro and enjoy free design and many more features', 'hello-elementor' ), + 'https://go.elementor.com/hello-theme-header/', + esc_html__( 'Upgrade', 'hello-elementor' ) + ); + } else { + return sprintf( + $content_template, + get_template_directory_uri() . '/assets/images/go-pro.svg', + esc_attr__( 'Elementor Pro', 'hello-elementor' ), + esc_html__( 'Create a custom header with the Theme Builder', 'hello-elementor' ), + esc_html__( 'With the Theme Builder you can jump directly into each part of your site', 'hello-elementor' ), + get_admin_url( null, 'admin.php?page=elementor-app#/site-editor/templates/header' ), + esc_html__( 'Create Header', 'hello-elementor' ) + ); + } + } +} diff --git a/wp-content/themes/hello-elementor/index.php b/wp-content/themes/hello-elementor/index.php new file mode 100644 index 0000000..98eebc4 --- /dev/null +++ b/wp-content/themes/hello-elementor/index.php @@ -0,0 +1,37 @@ + tr:nth-child(odd) > td, +table tbody > tr:nth-child(odd) > th { + background-color: rgba(128, 128, 128, 0.0705882353); +} +table tbody tr:hover > td, +table tbody tr:hover > th { + background-color: rgba(128, 128, 128, 0.1019607843); +} +table tbody + tbody { + border-block-start: 2px solid rgba(128, 128, 128, 0.5019607843); +} +@media (max-width: 767px) { + table table { + font-size: 0.8em; + } + table table th, + table table td { + padding: 7px; + line-height: 1.3; + } + table table th { + font-weight: 400; + } +} + +/** + * List styling + */ +dl, +dt, +dd, +ol, +ul, +li { + margin-block-start: 0; + margin-block-end: 0; + border: 0; + outline: 0; + font-size: 100%; + vertical-align: baseline; + background: transparent; +} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/style.min.css b/wp-content/themes/hello-elementor/style.min.css new file mode 100644 index 0000000..50bb7a5 --- /dev/null +++ b/wp-content/themes/hello-elementor/style.min.css @@ -0,0 +1 @@ +html{line-height:1.15;-webkit-text-size-adjust:100%}*,:after,:before{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:1rem;font-weight:400;line-height:1.5;color:#333;background-color:#fff;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6{margin-block-start:.5rem;margin-block-end:1rem;font-family:inherit;font-weight:500;line-height:1.2;color:inherit}h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.75rem}h4{font-size:1.5rem}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-block-start:0;margin-block-end:.9rem}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em;white-space:pre-wrap}a{background-color:transparent;text-decoration:none;color:#c36}a:active,a:hover{color:#336}a:not([href]):not([tabindex]),a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}abbr[title]{border-block-end:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;height:auto;max-width:100%}details{display:block}summary{display:list-item}figcaption{font-size:16px;color:#333;line-height:1.4;font-style:italic;font-weight:400}[hidden],template{display:none}@media print{*,:after,:before{background:transparent!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre{white-space:pre-wrap!important}blockquote,pre{-moz-column-break-inside:avoid;break-inside:avoid;border:1px solid #ccc}thead{display:table-header-group}img,tr{-moz-column-break-inside:avoid;break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{-moz-column-break-after:avoid;break-after:avoid}}label{display:inline-block;line-height:1;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:1rem;line-height:1.5;margin:0}input[type=date],input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{width:100%;border:1px solid #666;border-radius:3px;padding:.5rem 1rem;transition:all .3s}input[type=date]:focus,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{border-color:#333}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{width:auto;-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}[type=button],[type=submit],button{display:inline-block;font-weight:400;color:#c36;text-align:center;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:transparent;border:1px solid #c36;padding:.5rem 1rem;font-size:1rem;border-radius:3px;transition:all .3s}[type=button]:focus,[type=submit]:focus,button:focus{outline:5px auto -webkit-focus-ring-color}[type=button]:focus,[type=button]:hover,[type=submit]:focus,[type=submit]:hover,button:focus,button:hover{color:#fff;background-color:#c36;text-decoration:none}[type=button]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}select{display:block}table{background-color:transparent;width:100%;margin-block-end:15px;font-size:.9em;border-spacing:0;border-collapse:collapse}table td,table th{padding:15px;line-height:1.5;vertical-align:top;border:1px solid hsla(0,0%,50.2%,.5019607843)}table th{font-weight:700}table tfoot th,table thead th{font-size:1em}table caption+thead tr:first-child td,table caption+thead tr:first-child th,table colgroup+thead tr:first-child td,table colgroup+thead tr:first-child th,table thead:first-child tr:first-child td,table thead:first-child tr:first-child th{border-block-start:1px solid hsla(0,0%,50.2%,.5019607843)}table tbody>tr:nth-child(odd)>td,table tbody>tr:nth-child(odd)>th{background-color:hsla(0,0%,50.2%,.0705882353)}table tbody tr:hover>td,table tbody tr:hover>th{background-color:hsla(0,0%,50.2%,.1019607843)}table tbody+tbody{border-block-start:2px solid hsla(0,0%,50.2%,.5019607843)}@media (max-width:767px){table table{font-size:.8em}table table td,table table th{padding:7px;line-height:1.3}table table th{font-weight:400}}dd,dl,dt,li,ol,ul{margin-block-start:0;margin-block-end:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent} \ No newline at end of file diff --git a/wp-content/themes/hello-elementor/template-parts/404.php b/wp-content/themes/hello-elementor/template-parts/404.php new file mode 100644 index 0000000..ccd2a4b --- /dev/null +++ b/wp-content/themes/hello-elementor/template-parts/404.php @@ -0,0 +1,24 @@ + +
    + + +
    +

    +
    + + +
    +

    +
    + +
    diff --git a/wp-content/themes/hello-elementor/template-parts/archive.php b/wp-content/themes/hello-elementor/template-parts/archive.php new file mode 100644 index 0000000..c54f0b7 --- /dev/null +++ b/wp-content/themes/hello-elementor/template-parts/archive.php @@ -0,0 +1,55 @@ + +
    + + +
    + ', '' ); + the_archive_description( '

    ', '

    ' ); + ?> +
    + + +
    + +
    + %s', 'entry-title', esc_url( $post_link ), wp_kses_post( get_the_title() ) ); + if ( has_post_thumbnail() ) { + printf( '%s', esc_url( $post_link ), get_the_post_thumbnail( $post, 'large' ) ); + } + the_excerpt(); + ?> +
    + +
    + + + + max_num_pages > 1 ) : + ?> +
    + +
    ←' ) ); ?>
    + +
    →' ) ); ?>
    +
    + + +
    diff --git a/wp-content/themes/hello-elementor/template-parts/dynamic-footer.php b/wp-content/themes/hello-elementor/template-parts/dynamic-footer.php new file mode 100644 index 0000000..9e83c1f --- /dev/null +++ b/wp-content/themes/hello-elementor/template-parts/dynamic-footer.php @@ -0,0 +1,61 @@ + 'menu-2', + 'fallback_cb' => false, + 'echo' => false, +] ); +?> +
    +
    +
    + +
    + +
    + +

    + + + +

    + +

    + +

    + +
    + + +
    + +
    + + + +
    +

    +
    + +
    +
    diff --git a/wp-content/themes/hello-elementor/template-parts/dynamic-header.php b/wp-content/themes/hello-elementor/template-parts/dynamic-header.php new file mode 100644 index 0000000..44ab655 --- /dev/null +++ b/wp-content/themes/hello-elementor/template-parts/dynamic-header.php @@ -0,0 +1,70 @@ + 'menu-1', + 'fallback_cb' => false, + 'echo' => false, +] ); +?> +
    +
    +
    + +
    + +
    + +

    + + + +

    + +

    + +

    + +
    + + +
    + +
    +
    +
    + + +
    +
    +
    + +
    + +
    +
    diff --git a/wp-content/themes/hello-elementor/template-parts/footer.php b/wp-content/themes/hello-elementor/template-parts/footer.php new file mode 100644 index 0000000..19a7762 --- /dev/null +++ b/wp-content/themes/hello-elementor/template-parts/footer.php @@ -0,0 +1,27 @@ + 'menu-2', + 'fallback_cb' => false, + 'echo' => false, +] ); +?> +
    + +
    + +
    + +
    diff --git a/wp-content/themes/hello-elementor/template-parts/header.php b/wp-content/themes/hello-elementor/template-parts/header.php new file mode 100644 index 0000000..cf536b0 --- /dev/null +++ b/wp-content/themes/hello-elementor/template-parts/header.php @@ -0,0 +1,51 @@ + 'menu-1', + 'fallback_cb' => false, + 'echo' => false, +] ); +?> + +
    + +
    + +

    + + + +

    +

    + +

    + +
    + + +
    + +
    + +
    diff --git a/wp-content/themes/hello-elementor/template-parts/search.php b/wp-content/themes/hello-elementor/template-parts/search.php new file mode 100644 index 0000000..577e92e --- /dev/null +++ b/wp-content/themes/hello-elementor/template-parts/search.php @@ -0,0 +1,61 @@ + +
    + + +
    +

    + + +

    +
    + + +
    + + +
    + %s', 'entry-title', esc_url( $post_link ), wp_kses_post( get_the_title() ) ); + if ( has_post_thumbnail() ) { + printf( '%s', esc_url( $post_link ), get_the_post_thumbnail( $post, 'large' ) ); + } + the_excerpt(); + ?> +
    + + +

    + +
    + + + + max_num_pages > 1 ) : + ?> +
    + +
    ←' ) ); ?>
    + +
    →' ) ); ?>
    +
    + + +
    diff --git a/wp-content/themes/hello-elementor/template-parts/single.php b/wp-content/themes/hello-elementor/template-parts/single.php new file mode 100644 index 0000000..437102c --- /dev/null +++ b/wp-content/themes/hello-elementor/template-parts/single.php @@ -0,0 +1,37 @@ + + +
    > + + +
    + ', '' ); ?> +
    + + +
    + +
    + ' . esc_html__( 'Tagged ', 'hello-elementor' ), null, '' ); ?> +
    + +
    + + + +
    + + .wp-block-button__link:not(.has-text-color, .has-background):hover { + background-color: var(--wp--preset--color--contrast-2, var(--wp--preset--color--contrast, transparent)); + color: var(--wp--preset--color--base); + border-color: var(--wp--preset--color--contrast-2, var(--wp--preset--color--contrast, currentColor)); +} diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/cardo/LICENSE.txt b/wp-content/themes/twentytwentyfour/assets/fonts/cardo/LICENSE.txt new file mode 100644 index 0000000..ed707cd --- /dev/null +++ b/wp-content/themes/twentytwentyfour/assets/fonts/cardo/LICENSE.txt @@ -0,0 +1,93 @@ +Copyright (c) 2002-2011, David J. Perry (hospes02@scholarsfonts.net) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_italic_400.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_italic_400.woff2 new file mode 100644 index 0000000..46905a8 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_italic_400.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_normal_400.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_normal_400.woff2 new file mode 100644 index 0000000..536d7a5 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_normal_400.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_normal_700.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_normal_700.woff2 new file mode 100644 index 0000000..2d280ef Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/cardo/cardo_normal_700.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/instrument-sans/InstrumentSans-Italic-VariableFont_wdth,wght.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/instrument-sans/InstrumentSans-Italic-VariableFont_wdth,wght.woff2 new file mode 100644 index 0000000..f5f2861 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/instrument-sans/InstrumentSans-Italic-VariableFont_wdth,wght.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/instrument-sans/InstrumentSans-VariableFont_wdth,wght.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/instrument-sans/InstrumentSans-VariableFont_wdth,wght.woff2 new file mode 100644 index 0000000..02203d6 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/instrument-sans/InstrumentSans-VariableFont_wdth,wght.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/instrument-sans/OFL.txt b/wp-content/themes/twentytwentyfour/assets/fonts/instrument-sans/OFL.txt new file mode 100644 index 0000000..56e04aa --- /dev/null +++ b/wp-content/themes/twentytwentyfour/assets/fonts/instrument-sans/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2022 The Instrument Sans Project Authors (https://github.com/Instrument/instrument-sans) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2 new file mode 100644 index 0000000..350bbbc Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/inter/LICENSE.txt b/wp-content/themes/twentytwentyfour/assets/fonts/inter/LICENSE.txt new file mode 100644 index 0000000..b525cbf --- /dev/null +++ b/wp-content/themes/twentytwentyfour/assets/fonts/inter/LICENSE.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/jost/Jost-Italic-VariableFont_wght.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/jost/Jost-Italic-VariableFont_wght.woff2 new file mode 100644 index 0000000..184c920 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/jost/Jost-Italic-VariableFont_wght.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/jost/Jost-VariableFont_wght.woff2 b/wp-content/themes/twentytwentyfour/assets/fonts/jost/Jost-VariableFont_wght.woff2 new file mode 100644 index 0000000..eedcc3f Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/fonts/jost/Jost-VariableFont_wght.woff2 differ diff --git a/wp-content/themes/twentytwentyfour/assets/fonts/jost/OFL.txt b/wp-content/themes/twentytwentyfour/assets/fonts/jost/OFL.txt new file mode 100644 index 0000000..85b6b99 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/assets/fonts/jost/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Jost Project Authors (https://github.com/indestructible-type) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentyfour/assets/images/abstract-geometric-art.webp b/wp-content/themes/twentytwentyfour/assets/images/abstract-geometric-art.webp new file mode 100644 index 0000000..4b7fd1a Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/abstract-geometric-art.webp differ diff --git a/wp-content/themes/twentytwentyfour/assets/images/angular-roof.webp b/wp-content/themes/twentytwentyfour/assets/images/angular-roof.webp new file mode 100644 index 0000000..c9b8d7a Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/angular-roof.webp differ diff --git a/wp-content/themes/twentytwentyfour/assets/images/art-gallery.webp b/wp-content/themes/twentytwentyfour/assets/images/art-gallery.webp new file mode 100644 index 0000000..34b458b Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/art-gallery.webp differ diff --git a/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp b/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp new file mode 100644 index 0000000..936ecf1 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/building-exterior.webp differ diff --git a/wp-content/themes/twentytwentyfour/assets/images/green-staircase.webp b/wp-content/themes/twentytwentyfour/assets/images/green-staircase.webp new file mode 100644 index 0000000..1da8272 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/green-staircase.webp differ diff --git a/wp-content/themes/twentytwentyfour/assets/images/hotel-facade.webp b/wp-content/themes/twentytwentyfour/assets/images/hotel-facade.webp new file mode 100644 index 0000000..a076a58 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/hotel-facade.webp differ diff --git a/wp-content/themes/twentytwentyfour/assets/images/icon-message.webp b/wp-content/themes/twentytwentyfour/assets/images/icon-message.webp new file mode 100644 index 0000000..f6e5e24 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/icon-message.webp differ diff --git a/wp-content/themes/twentytwentyfour/assets/images/museum.webp b/wp-content/themes/twentytwentyfour/assets/images/museum.webp new file mode 100644 index 0000000..df42352 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/museum.webp differ diff --git a/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp b/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp new file mode 100644 index 0000000..285e37c Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/tourist-and-building.webp differ diff --git a/wp-content/themes/twentytwentyfour/assets/images/windows.webp b/wp-content/themes/twentytwentyfour/assets/images/windows.webp new file mode 100644 index 0000000..39a4e41 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/assets/images/windows.webp differ diff --git a/wp-content/themes/twentytwentyfour/functions.php b/wp-content/themes/twentytwentyfour/functions.php new file mode 100644 index 0000000..8536cb8 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/functions.php @@ -0,0 +1,206 @@ + 'arrow-icon-details', + 'label' => __( 'Arrow icon', 'twentytwentyfour' ), + /* + * Styles for the custom Arrow icon style of the Details block + */ + 'inline_style' => ' + .is-style-arrow-icon-details { + padding-top: var(--wp--preset--spacing--10); + padding-bottom: var(--wp--preset--spacing--10); + } + + .is-style-arrow-icon-details summary { + list-style-type: "\2193\00a0\00a0\00a0"; + } + + .is-style-arrow-icon-details[open]>summary { + list-style-type: "\2192\00a0\00a0\00a0"; + }', + ) + ); + register_block_style( + 'core/post-terms', + array( + 'name' => 'pill', + 'label' => __( 'Pill', 'twentytwentyfour' ), + /* + * Styles variation for post terms + * https://github.com/WordPress/gutenberg/issues/24956 + */ + 'inline_style' => ' + .is-style-pill a, + .is-style-pill span:not([class], [data-rich-text-placeholder]) { + display: inline-block; + background-color: var(--wp--preset--color--base-2); + padding: 0.375rem 0.875rem; + border-radius: var(--wp--preset--spacing--20); + } + + .is-style-pill a:hover { + background-color: var(--wp--preset--color--contrast-3); + }', + ) + ); + register_block_style( + 'core/list', + array( + 'name' => 'checkmark-list', + 'label' => __( 'Checkmark', 'twentytwentyfour' ), + /* + * Styles for the custom checkmark list block style + * https://github.com/WordPress/gutenberg/issues/51480 + */ + 'inline_style' => ' + ul.is-style-checkmark-list { + list-style-type: "\2713"; + } + + ul.is-style-checkmark-list li { + padding-inline-start: 1ch; + }', + ) + ); + register_block_style( + 'core/navigation-link', + array( + 'name' => 'arrow-link', + 'label' => __( 'With arrow', 'twentytwentyfour' ), + /* + * Styles for the custom arrow nav link block style + */ + 'inline_style' => ' + .is-style-arrow-link .wp-block-navigation-item__label:after { + content: "\2197"; + padding-inline-start: 0.25rem; + vertical-align: middle; + text-decoration: none; + display: inline-block; + }', + ) + ); + register_block_style( + 'core/heading', + array( + 'name' => 'asterisk', + 'label' => __( 'With asterisk', 'twentytwentyfour' ), + 'inline_style' => " + .is-style-asterisk:before { + content: ''; + width: 1.5rem; + height: 3rem; + background: var(--wp--preset--color--contrast-2, currentColor); + clip-path: path('M11.93.684v8.039l5.633-5.633 1.216 1.23-5.66 5.66h8.04v1.737H13.2l5.701 5.701-1.23 1.23-5.742-5.742V21h-1.737v-8.094l-5.77 5.77-1.23-1.217 5.743-5.742H.842V9.98h8.162l-5.701-5.7 1.23-1.231 5.66 5.66V.684h1.737Z'); + display: block; + } + + /* Hide the asterisk if the heading has no content, to avoid using empty headings to display the asterisk only, which is an A11Y issue */ + .is-style-asterisk:empty:before { + content: none; + } + + .is-style-asterisk:-moz-only-whitespace:before { + content: none; + } + + .is-style-asterisk.has-text-align-center:before { + margin: 0 auto; + } + + .is-style-asterisk.has-text-align-right:before { + margin-left: auto; + } + + .rtl .is-style-asterisk.has-text-align-left:before { + margin-right: auto; + }", + ) + ); + } +endif; + +add_action( 'init', 'twentytwentyfour_block_styles' ); + +/** + * Enqueue block stylesheets. + */ + +if ( ! function_exists( 'twentytwentyfour_block_stylesheets' ) ) : + /** + * Enqueue custom block stylesheets + * + * @since Twenty Twenty-Four 1.0 + * @return void + */ + function twentytwentyfour_block_stylesheets() { + /** + * The wp_enqueue_block_style() function allows us to enqueue a stylesheet + * for a specific block. These will only get loaded when the block is rendered + * (both in the editor and on the front end), improving performance + * and reducing the amount of data requested by visitors. + * + * See https://make.wordpress.org/core/2021/12/15/using-multiple-stylesheets-per-block/ for more info. + */ + wp_enqueue_block_style( + 'core/button', + array( + 'handle' => 'twentytwentyfour-button-style-outline', + 'src' => get_parent_theme_file_uri( 'assets/css/button-outline.css' ), + 'ver' => wp_get_theme( get_template() )->get( 'Version' ), + 'path' => get_parent_theme_file_path( 'assets/css/button-outline.css' ), + ) + ); + } +endif; + +add_action( 'init', 'twentytwentyfour_block_stylesheets' ); + +/** + * Register pattern categories. + */ + +if ( ! function_exists( 'twentytwentyfour_pattern_categories' ) ) : + /** + * Register pattern categories + * + * @since Twenty Twenty-Four 1.0 + * @return void + */ + function twentytwentyfour_pattern_categories() { + + register_block_pattern_category( + 'twentytwentyfour_page', + array( + 'label' => _x( 'Pages', 'Block pattern category', 'twentytwentyfour' ), + 'description' => __( 'A collection of full page layouts.', 'twentytwentyfour' ), + ) + ); + } +endif; + +add_action( 'init', 'twentytwentyfour_pattern_categories' ); diff --git a/wp-content/themes/twentytwentyfour/parts/footer.html b/wp-content/themes/twentytwentyfour/parts/footer.html new file mode 100644 index 0000000..c21388e --- /dev/null +++ b/wp-content/themes/twentytwentyfour/parts/footer.html @@ -0,0 +1 @@ + diff --git a/wp-content/themes/twentytwentyfour/parts/header.html b/wp-content/themes/twentytwentyfour/parts/header.html new file mode 100644 index 0000000..2fa483b --- /dev/null +++ b/wp-content/themes/twentytwentyfour/parts/header.html @@ -0,0 +1,26 @@ + +
    + +
    + +
    + + + +
    + +
    + +
    + + + +
    + +
    + +
    + +
    + \ No newline at end of file diff --git a/wp-content/themes/twentytwentyfour/parts/post-meta.html b/wp-content/themes/twentytwentyfour/parts/post-meta.html new file mode 100644 index 0000000..e11eda3 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/parts/post-meta.html @@ -0,0 +1 @@ + diff --git a/wp-content/themes/twentytwentyfour/parts/sidebar.html b/wp-content/themes/twentytwentyfour/parts/sidebar.html new file mode 100644 index 0000000..93c36b9 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/parts/sidebar.html @@ -0,0 +1 @@ + diff --git a/wp-content/themes/twentytwentyfour/patterns/banner-hero.php b/wp-content/themes/twentytwentyfour/patterns/banner-hero.php new file mode 100644 index 0000000..4587ac8 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/banner-hero.php @@ -0,0 +1,55 @@ + + + +
    + + +
    + + +

    + + + +
    + + + +

    + + + +
    + + + +
    + +
    + +
    + +
    + +
    + + + +
    +
    + + + +
    + <?php esc_attr_e( 'Building exterior in Toronto, Canada', 'twentytwentyfour' ); ?> +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/banner-project-description.php b/wp-content/themes/twentytwentyfour/patterns/banner-project-description.php new file mode 100644 index 0000000..31a44fc --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/banner-project-description.php @@ -0,0 +1,44 @@ + + +
    + +
    + +
    + +

    + +
    + + + +
    + + +

    + + +
    + +
    + + + +
    +
    + + + +
    + <?php esc_attr_e( 'Hyatt Regency San Francisco, San Francisco, United States', 'twentytwentyfour' ); ?> +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-content-image-on-right.php b/wp-content/themes/twentytwentyfour/patterns/cta-content-image-on-right.php new file mode 100644 index 0000000..f46ecbc --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/cta-content-image-on-right.php @@ -0,0 +1,66 @@ + + + +
    + +
    + +
    + +

    + + + +
      + +
    • + + + +
    • + + + +
    • + +
    + + + +
    + +
    + +
    + + + +
    + +
    + +
    + +
    + + + +
    + +
    + <?php esc_attr_e( 'White abstract geometric artwork from Dresden, Germany', 'twentytwentyfour' ); ?> +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-pricing.php b/wp-content/themes/twentytwentyfour/patterns/cta-pricing.php new file mode 100644 index 0000000..45f85f5 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/cta-pricing.php @@ -0,0 +1,214 @@ + + + +
    + +
    + +
    + +

    + + + +

    + +
    + + + +
    + + + +
    + +
    + +

    + +

    + + + +
    + + + +
    +
    + + + +
    + +

    Études Articles per month.', 'Feature for pricing level', 'twentytwentyfour' ) ); ?>

    + + + +
    + + + +

    + +

    + + + +
    + + + +

    + Études app for iOS and Android.', 'Feature for pricing level', 'twentytwentyfour' ) ); ?> +

    + +
    + + + +
    +
    + + + +
    + +
    + +
    + +
    + +
    + + + +
    + +

    + +

    + + + +
    + + + +
    +
    + + + +
    + +

    Études Articles per month.', 'Feature for pricing level', 'twentytwentyfour' ) ); ?>

    + + + +
    + + + +

    + + + +
    + + + +

    Études app for iOS and Android.', 'Feature for pricing level', 'twentytwentyfour' ) ); ?>

    + +
    + + + +
    +
    + + + +
    + +
    + +
    + +
    + +
    + + + +
    + +

    + +

    + + + +
    + + + +
    +
    + + + +
    + +

    Études Articles.', 'Feature for pricing level', 'twentytwentyfour' ) ); ?>

    + + + +
    + + + +

    + + + +
    + + + +

    Études app for iOS and Android', 'Feature for pricing level', 'twentytwentyfour' ) ); ?>

    + +
    + + + +
    +
    + + + +
    + +
    + +
    + +
    + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-rsvp.php b/wp-content/themes/twentytwentyfour/patterns/cta-rsvp.php new file mode 100644 index 0000000..9981065 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/cta-rsvp.php @@ -0,0 +1,57 @@ + + + +
    + +
    + +
    + +
    + + +

    + + + +
    + +

    + + + +
    + +
    + +
    + +
    + +
    + +
    + +
    + + + +
    + +
    + <?php esc_attr_e( 'A ramp along a curved wall in the Kiasma Museu, Helsinki, Finland', 'twentytwentyfour' ); ?> +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-services-image-left.php b/wp-content/themes/twentytwentyfour/patterns/cta-services-image-left.php new file mode 100644 index 0000000..87f3c9f --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/cta-services-image-left.php @@ -0,0 +1,48 @@ + + + +
    + +
    + +
    + +
    + <?php esc_attr_e( 'White abstract geometric artwork from Dresden, Germany', 'twentytwentyfour' ); ?> +
    + +
    + + + +
    + +

    + + + +

    + + + +
    + +
    + +
    + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php b/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php new file mode 100644 index 0000000..b65eac5 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/cta-subscribe-centered.php @@ -0,0 +1,42 @@ + + + +
    + +
    + +
    + + + +

    + + + +

    + + + +
    + +
    + +
    + +
    + + + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/footer-centered-logo-nav.php b/wp-content/themes/twentytwentyfour/patterns/footer-centered-logo-nav.php new file mode 100644 index 0000000..4370eac --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/footer-centered-logo-nav.php @@ -0,0 +1,31 @@ + + + +
    + + + + + + +

    + WordPress'; + echo sprintf( + /* Translators: Designed with WordPress */ + esc_html__( 'Designed with %1$s', 'twentytwentyfour' ), + $wordpress_link + ); + ?> +

    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/footer-colophon-3-col.php b/wp-content/themes/twentytwentyfour/patterns/footer-colophon-3-col.php new file mode 100644 index 0000000..cfb15db --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/footer-colophon-3-col.php @@ -0,0 +1,105 @@ + + + +
    + +
    + +
    + +
    + + + +
    + + + +
    + +
    + +

    + +
    + + +
    + +
    + +

    + + +

    + +
    + +
    + + +
    + +
    + +
    + +
    + +

    + + +

    /

    + +
    + +
    + +
    + +
    + +
    + + + +
    + + + +
    + +
    + +

    + + +
    + + +

    + WordPress'; + echo sprintf( + /* Translators: Designed with WordPress */ + esc_html__( 'Designed with %1$s', 'twentytwentyfour' ), + $wordpress_link + ); + ?> +

    + +
    + + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/footer.php b/wp-content/themes/twentytwentyfour/patterns/footer.php new file mode 100644 index 0000000..85f310d --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/footer.php @@ -0,0 +1,128 @@ + + + +
    + +
    + +
    + +
    + + + + + +
    + +
    + + + +
    +
    + + + +
    + +
    + +
    + +

    + + + +
    + + + + + + + + + +
    + +
    + + + + +
    + +

    + + + +
    + + + + + + + + + +
    + +
    + + + +
    + +

    + + + +
    + + + + + + + + + +
    + +
    + +
    + +
    + +
    + + + +
    + +

    + WordPress'; + echo sprintf( + /* Translators: Designed with WordPress */ + esc_html__( 'Designed with %1$s', 'twentytwentyfour' ), + $wordpress_link + ); + ?> +

    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-full-screen-image.php b/wp-content/themes/twentytwentyfour/patterns/gallery-full-screen-image.php new file mode 100644 index 0000000..ee26fca --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/gallery-full-screen-image.php @@ -0,0 +1,21 @@ + + + +
    + + +
    +
    +
    + +
    + +
    +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-2-col.php b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-2-col.php new file mode 100644 index 0000000..67ea044 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-2-col.php @@ -0,0 +1,58 @@ + + +
    + +
    + +
    + +
    + +
    + + + +
    + + + +
    + +
    + +
    + + + +
    + +
    + + + +
    +
    + + + +
    + + + +
    +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-3-col.php b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-3-col.php new file mode 100644 index 0000000..3280317 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-3-col.php @@ -0,0 +1,110 @@ + + +
    + +
    + +
    + +
    + +
    + + + +
    + + + +
    + +
    + + + +
    + + + +
    + +
    + +
    + + + +
    + +
    + + + +
    + +
    + + + +
    + + + +
    + +
    + + + +
    + + + +
    + +
    + +
    + + + +
    + +
    + +
    + + + +
    + + + +
    + +
    + + + +
    + + + +
    + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-4-col.php b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-4-col.php new file mode 100644 index 0000000..8c89db8 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/gallery-offset-images-grid-4-col.php @@ -0,0 +1,149 @@ + + + +
    + +
    + +
    + +
    + +
    + + + +
    + + + +
    + +
    + + + +
    +
    + + + +
    + +
    + +
    + + + +
    + +
    + + + +
    + +
    + + + +
    + + + +
    + +
    + + + +
    + + + +
    + +
    + +
    + + + +
    + +
    + +
    + + + +
    +
    + + + +
    + +
    + + + +
    +
    + + + +
    + +
    + +
    + + + +
    + +
    + + + +
    + +
    + + + +
    + + + +
    + +
    + + + +
    +
    + + + +
    + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/gallery-project-layout.php b/wp-content/themes/twentytwentyfour/patterns/gallery-project-layout.php new file mode 100644 index 0000000..27d6f74 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/gallery-project-layout.php @@ -0,0 +1,65 @@ + + + +
    + +
    + +
    + +
    + +
    + <?php esc_attr_e( 'An empty staircase under an angular roof in Darling Harbour, Sydney, Australia', 'twentytwentyfour' ); ?> +
    + + + +

    + +
    + +
    + + + +
    + +
    + +

    + + + +
    +
    + + + +
    + +

    + + + +
    + <?php esc_attr_e( 'Art Gallery of Ontario, Toronto, Canada', 'twentytwentyfour' ); ?> +
    + +
    + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/hidden-404.php b/wp-content/themes/twentytwentyfour/patterns/hidden-404.php new file mode 100644 index 0000000..d033a13 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/hidden-404.php @@ -0,0 +1,15 @@ + + + +

    + + +

    + + diff --git a/wp-content/themes/twentytwentyfour/patterns/hidden-comments.php b/wp-content/themes/twentytwentyfour/patterns/hidden-comments.php new file mode 100644 index 0000000..bd10668 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/hidden-comments.php @@ -0,0 +1,47 @@ + + + +
    + +

    + + + + +
    + +
    + + +
    + + +
    + +
    + + + +
    + + +
    + +
    + + + + + + + + + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/hidden-no-results.php b/wp-content/themes/twentytwentyfour/patterns/hidden-no-results.php new file mode 100644 index 0000000..00bbf97 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/hidden-no-results.php @@ -0,0 +1,10 @@ + + +

    + diff --git a/wp-content/themes/twentytwentyfour/patterns/hidden-portfolio-hero.php b/wp-content/themes/twentytwentyfour/patterns/hidden-portfolio-hero.php new file mode 100644 index 0000000..1af3e7d --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/hidden-portfolio-hero.php @@ -0,0 +1,19 @@ + + + +
    + + + +
    + +

    Leia Acosta, a passionate photographer who finds inspiration in capturing the fleeting beauty of life.', 'twentytwentyfour' ) ); ?>

    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/hidden-post-meta.php b/wp-content/themes/twentytwentyfour/patterns/hidden-post-meta.php new file mode 100644 index 0000000..add4a1c --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/hidden-post-meta.php @@ -0,0 +1,30 @@ + + + +
    + +
    + + + +

    —

    + + + +

    + + + + + + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/hidden-post-navigation.php b/wp-content/themes/twentytwentyfour/patterns/hidden-post-navigation.php new file mode 100644 index 0000000..be2dcb2 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/hidden-post-navigation.php @@ -0,0 +1,14 @@ + + + +
    + + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/hidden-search.php b/wp-content/themes/twentytwentyfour/patterns/hidden-search.php new file mode 100644 index 0000000..e4aaa64 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/hidden-search.php @@ -0,0 +1,9 @@ + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/hidden-sidebar.php b/wp-content/themes/twentytwentyfour/patterns/hidden-sidebar.php new file mode 100644 index 0000000..abcb01b --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/hidden-sidebar.php @@ -0,0 +1,84 @@ + + +
    + +
    + + + +
    + +

    + + + +
    + +
    + + + +
    + + + +
    + +

    + + + +
    + + + +
    + + + +
    + +
    + +

    + + + +

    + +
    + + + + + + +
    + + + +
    + + + +
    + +

    + + + +
    + + + +
    +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/page-about-business.php b/wp-content/themes/twentytwentyfour/patterns/page-about-business.php new file mode 100644 index 0000000..ad62698 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/page-about-business.php @@ -0,0 +1,19 @@ + + + + + + + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php b/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php new file mode 100644 index 0000000..5cef5d4 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/page-home-blogging.php @@ -0,0 +1,83 @@ + + + + + +
    + +
    + +
    +
    + + + +
    + +
    + + +
    + + + + + + +
    + + + + + +
    +
    + + + + + + + + + + + + + + +
    + +
    + + + +
    +
    + + + +
    + +
    + + + +
    +
    + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/page-home-business.php b/wp-content/themes/twentytwentyfour/patterns/page-home-business.php new file mode 100644 index 0000000..415c42f --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/page-home-business.php @@ -0,0 +1,18 @@ + + + + + + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio-gallery.php b/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio-gallery.php new file mode 100644 index 0000000..a9ce9d7 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio-gallery.php @@ -0,0 +1,14 @@ + + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio.php b/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio.php new file mode 100644 index 0000000..40d4fa1 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/page-home-portfolio.php @@ -0,0 +1,14 @@ + + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/page-newsletter-landing.php b/wp-content/themes/twentytwentyfour/patterns/page-newsletter-landing.php new file mode 100644 index 0000000..5ee552e --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/page-newsletter-landing.php @@ -0,0 +1,47 @@ + + + +
    + +
    + +
    + +
    + + + +
    + + + +

    + + + +
    + + + +
    + +
    + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/page-portfolio-overview.php b/wp-content/themes/twentytwentyfour/patterns/page-portfolio-overview.php new file mode 100644 index 0000000..b0bf21b --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/page-portfolio-overview.php @@ -0,0 +1,17 @@ + + + + + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/page-rsvp-landing.php b/wp-content/themes/twentytwentyfour/patterns/page-rsvp-landing.php new file mode 100644 index 0000000..8b3ba83 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/page-rsvp-landing.php @@ -0,0 +1,56 @@ + + + +
    + +
    + +
    + +
    + +

    + + +
    + +

    + + +
    + +
    + +
    + +
    + +
    + +
    + +
    + + +
    + +
    + <?php esc_attr_e( 'Green staircase at Western University, London, Canada', 'twentytwentyfour' ); ?> +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-1-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-1-col.php new file mode 100644 index 0000000..051ed14 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/posts-1-col.php @@ -0,0 +1,43 @@ + + + +
    + + + + + +
    + + + +
    + + + + +
    +
    + +
    + + + +
    + + + + + + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-3-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-3-col.php new file mode 100644 index 0000000..62a48c4 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/posts-3-col.php @@ -0,0 +1,52 @@ + + + +
    + + + + + +
    + + + + + + +
    + + + + + + + +
    +
    + +
    + + + + + +
    + + + + + + + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-grid-2-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-grid-2-col.php new file mode 100644 index 0000000..dd2881d --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/posts-grid-2-col.php @@ -0,0 +1,80 @@ + + + +
    + +

    + + + +
    +
    + + + +
    + +
    + +
    + + + + +
    +
    + + + +
    + + + + + + +
    + + +
    + +
    + + + +
    + +
    + + + + +
    +
    + + + +
    + + + + + +
    + + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-images-only-3-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-images-only-3-col.php new file mode 100644 index 0000000..48bf4d0 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/posts-images-only-3-col.php @@ -0,0 +1,35 @@ + + + +
    + + + + + +
    + + + + + + +
    + + + + + + + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-images-only-offset-4-col.php b/wp-content/themes/twentytwentyfour/patterns/posts-images-only-offset-4-col.php new file mode 100644 index 0000000..808754b --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/posts-images-only-offset-4-col.php @@ -0,0 +1,83 @@ + + + +
    + +
    + +
    + +
    + + + +
    + +
    + + + +
    + +
    +
    + + + +
    + + + +
    + + + +
    +
    + +
    + + + +
    + +
    + + + +
    + +
    + + + +
    + +
    +
    + + + +
    + + + +
    + + + +
    +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/posts-list.php b/wp-content/themes/twentytwentyfour/patterns/posts-list.php new file mode 100644 index 0000000..5db93af --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/posts-list.php @@ -0,0 +1,62 @@ + + + +
    + +

    + + + +
    + +
    + + +
    + + + +
    + +
    + +
    + + + +
    + +
    + +
    + + + + +
    + + + + + + + + + + + + + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/team-4-col.php b/wp-content/themes/twentytwentyfour/patterns/team-4-col.php new file mode 100644 index 0000000..78211d2 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/team-4-col.php @@ -0,0 +1,129 @@ + + + +
    + +
    + +

    + + + +

    + +
    + + + +
    +
    + + + +
    + +
    + +
    + +
    + + + +
    + +

    + +

    + + + +

    + +
    + +
    + + + +
    + +
    + +
    + + + +
    + +

    + +

    + + + +

    + +
    + +
    + + + +
    + +
    + +
    + + + +
    + +

    + +

    + + + +

    + +
    + +
    + + + +
    + +
    + +
    + + + +
    + +

    + +

    + + + +

    + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-archive-blogging.php b/wp-content/themes/twentytwentyfour/patterns/template-archive-blogging.php new file mode 100644 index 0000000..6d193a4 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-archive-blogging.php @@ -0,0 +1,21 @@ + + + + + +
    + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-archive-portfolio.php b/wp-content/themes/twentytwentyfour/patterns/template-archive-portfolio.php new file mode 100644 index 0000000..aa347ad --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-archive-portfolio.php @@ -0,0 +1,23 @@ + + + + + +
    + + + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-home-blogging.php b/wp-content/themes/twentytwentyfour/patterns/template-home-blogging.php new file mode 100644 index 0000000..4a96d74 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-home-blogging.php @@ -0,0 +1,21 @@ + + + + + +
    + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-home-business.php b/wp-content/themes/twentytwentyfour/patterns/template-home-business.php new file mode 100644 index 0000000..e84a5ac --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-home-business.php @@ -0,0 +1,19 @@ + + + + + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php b/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php new file mode 100644 index 0000000..4fc4f07 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-home-portfolio.php @@ -0,0 +1,22 @@ + + + + + +
    + + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-index-blogging.php b/wp-content/themes/twentytwentyfour/patterns/template-index-blogging.php new file mode 100644 index 0000000..b810186 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-index-blogging.php @@ -0,0 +1,23 @@ + + + + + +
    + +

    + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-index-portfolio.php b/wp-content/themes/twentytwentyfour/patterns/template-index-portfolio.php new file mode 100644 index 0000000..7b78323 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-index-portfolio.php @@ -0,0 +1,24 @@ + + + + + +
    + +

    + + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-search-blogging.php b/wp-content/themes/twentytwentyfour/patterns/template-search-blogging.php new file mode 100644 index 0000000..ec9a29b --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-search-blogging.php @@ -0,0 +1,26 @@ + + + + + +
    + +
    + + +
    + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-search-portfolio.php b/wp-content/themes/twentytwentyfour/patterns/template-search-portfolio.php new file mode 100644 index 0000000..1c60eb1 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-search-portfolio.php @@ -0,0 +1,27 @@ + + + + + +
    + + + +
    + +
    + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/template-single-portfolio.php b/wp-content/themes/twentytwentyfour/patterns/template-single-portfolio.php new file mode 100644 index 0000000..ba54d58 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/template-single-portfolio.php @@ -0,0 +1,36 @@ + + + + + +
    + +
    +
    + + + + + +
    + +
    + + + +
    +
    + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/patterns/testimonial-centered.php b/wp-content/themes/twentytwentyfour/patterns/testimonial-centered.php new file mode 100644 index 0000000..8e63924 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/testimonial-centered.php @@ -0,0 +1,46 @@ + + + +
    + +
    + +

    + +

    + + + +
    + + + +
    + +
    + +
    + + + +

    + + + +

    + +
    + + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/text-alternating-images.php b/wp-content/themes/twentytwentyfour/patterns/text-alternating-images.php new file mode 100644 index 0000000..12a0772 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/text-alternating-images.php @@ -0,0 +1,115 @@ + + + +
    + +
    + +
    + + +

    + + + +

    + +
    + + + +
    + + + +
    + +
    + +

    + + + +
      + + +
    • + + + +
    • + + + +
    • + + +
    + +
    + + + +
    + +
    + <?php esc_attr_e( 'Tourist taking photo of a building', 'twentytwentyfour' ); ?> +
    + +
    + +
    + + + +
    + + + +
    + +
    + +
    + <?php esc_attr_e( 'Windows of a building in Nuremberg, Germany', 'twentytwentyfour' ); ?> +
    + +
    + + + +
    + +

    + + + +
      + +
    • + + + +
    • + + + +
    • + +
    + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/text-centered-statement-small.php b/wp-content/themes/twentytwentyfour/patterns/text-centered-statement-small.php new file mode 100644 index 0000000..c24a51a --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/text-centered-statement-small.php @@ -0,0 +1,30 @@ + + + +
    + + +

    + + ' . esc_html__( 'Money Studies', 'twentytwentyfour' ) . ''; + echo sprintf( + /* Translators: About text placeholder */ + esc_html__( 'I write about finance, management and economy, my book “%1$s” is out now.', 'twentytwentyfour' ), + $about_link + ); + ?> + +

    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/text-centered-statement.php b/wp-content/themes/twentytwentyfour/patterns/text-centered-statement.php new file mode 100644 index 0000000..ce7751e --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/text-centered-statement.php @@ -0,0 +1,29 @@ + + + +
    + +
    + +
    + + + +

    Études is not confined to the past—we are passionate about the cutting edge designs shaping our world today.', 'twentytwentyfour' ) ); ?>

    + + + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/text-faq.php b/wp-content/themes/twentytwentyfour/patterns/text-faq.php new file mode 100644 index 0000000..8bf0428 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/text-faq.php @@ -0,0 +1,65 @@ + + + +
    + +

    + + + +
    + +
    + + + +
    + + +

    + +
    + + + +
    + + +

    + +
    + + + +
    + + +

    + +
    + + + +
    + + +

    + +
    + + + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/text-feature-grid-3-col.php b/wp-content/themes/twentytwentyfour/patterns/text-feature-grid-3-col.php new file mode 100644 index 0000000..f03eaf3 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/text-feature-grid-3-col.php @@ -0,0 +1,118 @@ + + + +
    + +
    + +

    + + + +
    + + + +

    + +
    + + + +
    +
    + + + +
    + +
    + +

    + + + +

    + +
    + + + +
    + +

    + + + +

    + +
    + + + +
    + +

    + + + +

    + +
    + +
    + + + +
    +
    + + + +
    + +
    + +

    + + + +

    + +
    + + + +
    + +

    + + + +

    + +
    + + + +
    + +

    + + + +

    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/text-project-details.php b/wp-content/themes/twentytwentyfour/patterns/text-project-details.php new file mode 100644 index 0000000..b75f869 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/text-project-details.php @@ -0,0 +1,53 @@ + + + +
    + +
    + +
    + +

    + +
    + + + +
    + + +

    + + + +
    + +
    + +

    + +
    + + + +
    + +

    + +
    + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/patterns/text-title-left-image-right.php b/wp-content/themes/twentytwentyfour/patterns/text-title-left-image-right.php new file mode 100644 index 0000000..f4c48f7 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/patterns/text-title-left-image-right.php @@ -0,0 +1,58 @@ + + + +
    + +
    + +
    + +
    + + +

    + + + +
    + + +

    + + + +
    + +
    + +
    + +
    + +
    + +
    + +
    + + + +
    + +
    + <?php esc_attr_e( 'A ramp along a curved wall in the Kiasma Museu, Helsinki, Finland', 'twentytwentyfour' ); ?> +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentyfour/readme.txt b/wp-content/themes/twentytwentyfour/readme.txt new file mode 100644 index 0000000..50c9ff5 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/readme.txt @@ -0,0 +1,81 @@ +=== Twenty Twenty-Four === +Contributors: wordpressdotorg +Requires at least: 6.4 +Tested up to: 6.5 +Requires PHP: 7.0 +Stable tag: 1.1 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html + +== Description == + +Twenty Twenty-Four is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Twenty Twenty-Four comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4. + +== Changelog == + += 1.1 = +* Released: April 2, 2024 + +https://wordpress.org/documentation/article/twenty-twenty-four-changelog/#Version_1.1 + += 1.0 = +* Released: November 7, 2023 + +https://wordpress.org/documentation/article/twenty-twenty-four-changelog/#Version_1.0 + +== Copyright == + +Twenty Twenty-Four WordPress Theme, (C) 2023 WordPress.org +Twenty Twenty-Four is distributed under the terms of the GNU GPL. + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + + +This theme bundles the following third-party resources: + +=== Fonts === + +Cardo Font +Copyright (c) 2002-2011, David J. Perry (hospes02@scholarsfonts.net) +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: http://scholarsfonts.net + +Instrument Sans Font +Copyright 2022 The Instrument Sans Project Authors. +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/Instrument/instrument-sans + +Inter Font +Copyright 2020 The Inter Project Authors. +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/rsms/inter + +Jost Font +Copyright 2020 The Jost Project Authors. +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/indestructible-type/Jost + +=== Images === + +License: CC0 https://creativecommons.org/publicdomain/zero/1.0/ + +museum.webp - https://www.rawpixel.com/image/3297419/free-photo-image-interior-hallway-architecture +tourist-and-building.webp - https://www.rawpixel.com/image/5928004/photo-image-public-domain-hand-person +building-exterior.webp - https://www.rawpixel.com/image/430335/free-photo-image-architecture-building-roof +windows.webp - https://www.rawpixel.com/image/3286615/free-photo-image-texture-architecture-building +abstract-geometric-art.webp - https://www.rawpixel.com/image/3283970/free-photo-image-pattern-artwork-abstract +angular-roof.webp - https://www.rawpixel.com/image/3289063/free-photo-image-architectural-detail-architecture +art-gallery.webp - https://www.rawpixel.com/image/3286187/free-photo-image-person-stairs-architecture +green-staircase.webp - https://www.rawpixel.com/image/430558/free-photo-image-abstract-architecture-art-public-domain +hotel-facade.webp - https://www.rawpixel.com/image/3286725/free-photo-image-black-and-white-background-photos + +License: UNICODE LICENSE V3 https://www.unicode.org/license.txt +icon-message.webp diff --git a/wp-content/themes/twentytwentyfour/screenshot.png b/wp-content/themes/twentytwentyfour/screenshot.png new file mode 100644 index 0000000..74fa4c7 Binary files /dev/null and b/wp-content/themes/twentytwentyfour/screenshot.png differ diff --git a/wp-content/themes/twentytwentyfour/style.css b/wp-content/themes/twentytwentyfour/style.css new file mode 100644 index 0000000..75c9804 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/style.css @@ -0,0 +1,15 @@ +/* +Theme Name: Twenty Twenty-Four +Theme URI: https://wordpress.org/themes/twentytwentyfour/ +Author: the WordPress team +Author URI: https://wordpress.org +Description: Twenty Twenty-Four is designed to be flexible, versatile and applicable to any website. Its collection of templates and patterns tailor to different needs, such as presenting a business, blogging and writing or showcasing work. A multitude of possibilities open up with just a few adjustments to color and typography. Twenty Twenty-Four comes with style variations and full page designs to help speed up the site building process, is fully compatible with the site editor, and takes advantage of new design tools introduced in WordPress 6.4. +Requires at least: 6.4 +Tested up to: 6.5 +Requires PHP: 7.0 +Version: 1.1 +License: GNU General Public License v2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html +Text Domain: twentytwentyfour +Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news +*/ diff --git a/wp-content/themes/twentytwentyfour/styles/ember.json b/wp-content/themes/twentytwentyfour/styles/ember.json new file mode 100644 index 0000000..f4e612c --- /dev/null +++ b/wp-content/themes/twentytwentyfour/styles/ember.json @@ -0,0 +1,249 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Ember", + "settings": { + "color": { + "duotone": [ + { + "colors": [ + "#D73301", + "#F9F8F5" + ], + "slug": "duotone-2", + "name": "Orange and white" + } + ], + "gradients": [ + { + "slug": "gradient-1", + "gradient": "linear-gradient(to bottom, #f6decd 0%, #dbab88 100%)", + "name": "Vertical linen to beige" + }, + { + "slug": "gradient-2", + "gradient": "linear-gradient(to bottom, #A4A4A4 0%, #dbab88 100%)", + "name": "Vertical taupe to beige" + }, + { + "slug": "gradient-3", + "gradient": "linear-gradient(to bottom, #353535 0%, #dbab88 100%)", + "name": "Vertical sable to beige" + }, + { + "slug": "gradient-4", + "gradient": "linear-gradient(to bottom, #111111 0%, #dbab88 100%)", + "name": "Vertical ebony to beige" + }, + { + "slug": "gradient-5", + "gradient": "linear-gradient(to bottom, #353535 0%, #A4A4A4 100%)", + "name": "Vertical sable to beige" + }, + { + "slug": "gradient-6", + "gradient": "linear-gradient(to bottom, #111111 0%, #353535 100%)", + "name": "Vertical ebony to sable" + }, + { + "slug": "gradient-7", + "gradient": "linear-gradient(to bottom, #dbab88 50%, #f6decd 50%)", + "name": "Vertical hard beige to linen" + }, + { + "slug": "gradient-8", + "gradient": "linear-gradient(to bottom, #A4A4A4 50%, #dbab88 50%)", + "name": "Vertical hard taupe to beige" + }, + { + "slug": "gradient-9", + "gradient": "linear-gradient(to bottom, #353535 50%, #dbab88 50%)", + "name": "Vertical hard sable to beige" + }, + { + "slug": "gradient-10", + "gradient": "linear-gradient(to bottom, #111111 50%, #dbab88 50%)", + "name": "Vertical hard ebony to beige" + }, + { + "slug": "gradient-11", + "gradient": "linear-gradient(to bottom, #353535 50%, #A4A4A4 50%)", + "name": "Vertical hard sable to taupe" + }, + { + "slug": "gradient-12", + "gradient": "linear-gradient(to bottom, #111111 50%, #353535 50%)", + "name": "Vertical hard ebony to sable" + } + ], + "palette": [ + { + "color": "#F9F8F5", + "name": "Base", + "slug": "base" + }, + { + "color": "#D73301", + "name": "Contrast / 2", + "slug": "contrast-2" + }, + { + "color": "#000", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#f6decd", + "name": "Base / Two", + "slug": "base-2" + } + ] + }, + "typography": { + "fontFamilies": [ + { + "fontFace": [ + { + "fontFamily": "Instrument Sans", + "fontStyle": "normal", + "fontWeight": "400 700", + "src": [ + "file:./assets/fonts/instrument-sans/InstrumentSans-VariableFont_wdth,wght.woff2" + ] + }, + { + "fontFamily": "Instrument Sans", + "fontStyle": "italic", + "fontWeight": "400 700", + "src": [ + "file:./assets/fonts/instrument-sans/InstrumentSans-Italic-VariableFont_wdth,wght.woff2" + ] + } + ], + "fontFamily": "\"Instrument Sans\", sans-serif", + "name": "Instrument Sans", + "slug": "body" + }, + { + "fontFace": [ + { + "fontFamily": "Jost", + "fontStyle": "normal", + "fontWeight": "100 900", + "src": ["file:./assets/fonts/jost/Jost-VariableFont_wght.woff2"] + }, + { + "fontFamily": "Jost", + "fontStyle": "italic", + "fontWeight": "100 900", + "src": [ + "file:./assets/fonts/jost/Jost-Italic-VariableFont_wght.woff2" + ] + } + ], + "fontFamily": "\"Jost\", sans-serif", + "name": "Jost", + "slug": "heading" + }, + { + "fontFamily": "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", + "name": "System Sans-serif", + "slug": "system-sans-serif" + }, + { + "fontFamily": "Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol", + "name": "System Serif", + "slug": "system-serif" + } + ] + } + }, + "styles": { + "blocks": { + "core/button": { + "variations": { + "outline": { + "spacing": { + "padding": { + "bottom": "calc(0.9rem - 2px)", + "left": "calc(2rem - 2px)", + "right": "calc(2rem - 2px)", + "top": "calc(0.9rem - 2px)" + } + }, + "border": { + "width": "2px" + } + } + } + }, + "core/image": { + "filter": { + "duotone": "var(--wp--preset--duotone--duotone-2)" + } + }, + "core/pullquote": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)", + "fontStyle": "normal", + "fontWeight": "normal", + "lineHeight": "1.2" + } + }, + "core/quote": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontSize": "var(--wp--preset--font-size--large)", + "fontStyle": "normal" + }, + "variations": { + "plain": { + "typography": { + "fontStyle": "normal", + "fontWeight": "400" + } + } + } + }, + "core/site-title": { + "typography": { + "fontWeight": "400" + } + }, + "core/navigation": { + "typography": { + "fontWeight": "400" + } + } + }, + "elements": { + "button": { + "border": { + "radius": "100px" + }, + "color": { + "background": "var(--wp--preset--color--contrast-2)", + "text": "var(--wp--preset--color--base)" + }, + "spacing": { + "padding": { + "bottom": "0.9rem", + "left": "2rem", + "right": "2rem", + "top": "0.9rem" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontSize": "var(--wp--preset--font-size--small)", + "fontStyle": "normal" + }, + ":hover": { + "color": { + "background": "var(--wp--preset--color--contrast)" + } + } + } + } + } +} diff --git a/wp-content/themes/twentytwentyfour/styles/fossil.json b/wp-content/themes/twentytwentyfour/styles/fossil.json new file mode 100644 index 0000000..44e24fc --- /dev/null +++ b/wp-content/themes/twentytwentyfour/styles/fossil.json @@ -0,0 +1,279 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Fossil", + "settings": { + "color": { + "gradients": [ + { + "slug": "gradient-1", + "gradient": "linear-gradient(to bottom, #E1DFDB 0%, #D6D2CE 100%)", + "name": "Vertical linen to beige" + }, + { + "slug": "gradient-2", + "gradient": "linear-gradient(to bottom, #958D86 0%, #D6D2CE 100%)", + "name": "Vertical taupe to beige" + }, + { + "slug": "gradient-3", + "gradient": "linear-gradient(to bottom, #65574E 0%, #D6D2CE 100%)", + "name": "Vertical sable to beige" + }, + { + "slug": "gradient-4", + "gradient": "linear-gradient(to bottom, #1A1514 0%, #D6D2CE 100%)", + "name": "Vertical ebony to beige" + }, + { + "slug": "gradient-5", + "gradient": "linear-gradient(to bottom, #65574E 0%, #958D86 100%)", + "name": "Vertical sable to beige" + }, + { + "slug": "gradient-6", + "gradient": "linear-gradient(to bottom, #1A1514 0%, #65574E 100%)", + "name": "Vertical ebony to sable" + }, + { + "slug": "gradient-7", + "gradient": "linear-gradient(to bottom, #D6D2CE 50%, #E1DFDB 50%)", + "name": "Vertical hard beige to linen" + }, + { + "slug": "gradient-8", + "gradient": "linear-gradient(to bottom, #958D86 50%, #D6D2CE 50%)", + "name": "Vertical hard taupe to beige" + }, + { + "slug": "gradient-9", + "gradient": "linear-gradient(to bottom, #65574E 50%, #D6D2CE 50%)", + "name": "Vertical hard sable to beige" + }, + { + "slug": "gradient-10", + "gradient": "linear-gradient(to bottom, #1A1514 50%, #D6D2CE 50%)", + "name": "Vertical hard ebony to beige" + }, + { + "slug": "gradient-11", + "gradient": "linear-gradient(to bottom, #65574E 50%, #958D86 50%)", + "name": "Vertical hard sable to taupe" + }, + { + "slug": "gradient-12", + "gradient": "linear-gradient(to bottom, #1A1514 50%, #65574E 50%)", + "name": "Vertical hard ebony to sable" + } + ], + "palette": [ + { + "color": "#D6D2CE", + "name": "Base", + "slug": "base" + }, + { + "color": "#E1DFDB", + "name": "Base / Two", + "slug": "base-2" + }, + { + "color": "#1A1514", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#65574E", + "name": "Contrast / Two", + "slug": "contrast-2" + }, + { + "color": "#958D86", + "name": "Contrast / Three", + "slug": "contrast-3" + } + ] + }, + "typography": { + "fontFamilies": [ + { + "fontFace": [ + { + "fontFamily": "Inter", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "300 900", + "src": [ + "file:./assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2" + ] + } + ], + "fontFamily": "\"Inter\", sans-serif", + "name": "Inter", + "slug": "heading" + }, + { + "fontFace": [ + { + "fontFamily": "Cardo", + "fontStyle": "normal", + "fontWeight": "400", + "src": ["file:./assets/fonts/cardo/cardo_normal_400.woff2"] + }, + { + "fontFamily": "Cardo", + "fontStyle": "italic", + "fontWeight": "400", + "src": ["file:./assets/fonts/cardo/cardo_italic_400.woff2"] + }, + { + "fontFamily": "Cardo", + "fontStyle": "normal", + "fontWeight": "700", + "src": ["file:./assets/fonts/cardo/cardo_normal_700.woff2"] + } + ], + "fontFamily": "Cardo", + "name": "Cardo", + "slug": "body" + }, + { + "fontFamily": "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", + "name": "System Sans-serif", + "slug": "system-sans-serif" + }, + { + "fontFamily": "Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol", + "name": "System Serif", + "slug": "system-serif" + } + ], + "fontSizes": [ + { + "fluid": false, + "name": "Small", + "size": "1rem", + "slug": "small" + }, + { + "fluid": false, + "name": "Medium", + "size": "1.2rem", + "slug": "medium" + }, + { + "fluid": { + "min": "1.5rem", + "max": "2rem" + }, + "name": "Large", + "size": "2rem", + "slug": "large" + }, + { + "fluid": { + "min": "2rem", + "max": "2.65rem" + }, + "name": "Extra Large", + "size": "2.65rem", + "slug": "x-large" + }, + { + "fluid": { + "min": "2.65rem", + "max": "3.5rem" + }, + "name": "Extra Extra Large", + "size": "3.5rem", + "slug": "xx-large" + } + ] + } + }, + "styles": { + "blocks": { + "core/button": { + "variations": { + "outline": { + "spacing": { + "padding": { + "bottom": "calc(0.9rem - 2px)", + "left": "calc(2rem - 2px)", + "right": "calc(2rem - 2px)", + "top": "calc(0.9rem - 2px)" + } + }, + "border": { + "width": "2px" + } + } + } + }, + "core/pullquote": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)", + "fontStyle": "normal", + "fontWeight": "normal", + "lineHeight": "1.2" + } + }, + "core/quote": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontSize": "var(--wp--preset--font-size--large)", + "fontStyle": "normal" + }, + "variations": { + "plain": { + "typography": { + "fontStyle": "normal", + "fontWeight": "400" + } + } + } + }, + "core/site-title": { + "typography": { + "fontWeight": "400" + } + } + }, + "elements": { + "button": { + "border": { + "radius": "100px", + "color": "var(--wp--preset--color--contrast-2)" + }, + "color": { + "background": "var(--wp--preset--color--contrast-2)", + "text": "var(--wp--preset--color--white)" + }, + "spacing": { + "padding": { + "bottom": "0.9rem", + "left": "2rem", + "right": "2rem", + "top": "0.9rem" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontSize": "var(--wp--preset--font-size--small)", + "fontStyle": "normal" + }, + ":hover": { + "color": { + "background": "var(--wp--preset--color--contrast)" + } + } + }, + "heading": { + "typography": { + "fontWeight": "normal", + "letterSpacing": "0" + } + } + } + } +} diff --git a/wp-content/themes/twentytwentyfour/styles/ice.json b/wp-content/themes/twentytwentyfour/styles/ice.json new file mode 100644 index 0000000..e7896bc --- /dev/null +++ b/wp-content/themes/twentytwentyfour/styles/ice.json @@ -0,0 +1,280 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Ice", + "settings": { + "color": { + "gradients": [ + { + "slug": "gradient-1", + "gradient": "linear-gradient(to bottom, #cbd9e1 0%, #EBEBEF 100%)", + "name": "Vertical azure to ice" + }, + { + "slug": "gradient-2", + "gradient": "linear-gradient(to bottom, #466577 0%, #EBEBEF 100%)", + "name": "Vertical slate to ice" + }, + { + "slug": "gradient-3", + "gradient": "linear-gradient(to bottom, #37505d 0%, #EBEBEF 100%)", + "name": "Vertical ocean to ice" + }, + { + "slug": "gradient-4", + "gradient": "linear-gradient(to bottom, #1C2930 0%, #EBEBEF 100%)", + "name": "Vertical ink to ice" + }, + { + "slug": "gradient-5", + "gradient": "linear-gradient(to bottom, #37505d 0%, #466577 100%)", + "name": "Vertical ocean to slate" + }, + { + "slug": "gradient-6", + "gradient": "linear-gradient(to bottom, #1C2930 0%, #37505d 100%)", + "name": "Vertical ink to ocean" + }, + { + "slug": "gradient-7", + "gradient": "linear-gradient(to bottom, #EBEBEF 50%, #cbd9e1 50%)", + "name": "Vertical hard ice to azure" + }, + { + "slug": "gradient-8", + "gradient": "linear-gradient(to bottom, #466577 50%, #EBEBEF 50%)", + "name": "Vertical hard slate to ice" + }, + { + "slug": "gradient-9", + "gradient": "linear-gradient(to bottom, #37505d 50%, #EBEBEF 50%)", + "name": "Vertical hard ocean to ice" + }, + { + "slug": "gradient-10", + "gradient": "linear-gradient(to bottom, #1C2930 50%, #EBEBEF 50%)", + "name": "Vertical hard ink to ice" + }, + { + "slug": "gradient-11", + "gradient": "linear-gradient(to bottom, #37505d 50%, #466577 50%)", + "name": "Vertical hard ocean to slate" + }, + { + "slug": "gradient-12", + "gradient": "linear-gradient(to bottom, #1C2930 50%, #37505d 50%)", + "name": "Vertical hard ink to ocean" + } + ], + "palette": [ + { + "color": "#EBEBEF", + "name": "Base", + "slug": "base" + }, + { + "color": "#DCE0E6", + "name": "Base / Two", + "slug": "base-2" + }, + { + "color": "#1C2930", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#37505d", + "name": "Contrast / Two", + "slug": "contrast-2" + }, + { + "color": "#96A5B2", + "name": "Contrast / Three", + "slug": "contrast-3" + } + ] + }, + "typography": { + "fontFamilies": [ + { + "fontFace": [ + { + "fontFamily": "Inter", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "300 900", + "src": [ + "file:./assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2" + ] + } + ], + "fontFamily": "\"Inter\", sans-serif", + "name": "Inter", + "slug": "heading" + }, + { + "fontFace": [ + { + "fontFamily": "Jost", + "fontStyle": "normal", + "fontWeight": "100 900", + "src": ["file:./assets/fonts/jost/Jost-VariableFont_wght.woff2"] + }, + { + "fontFamily": "Jost", + "fontStyle": "italic", + "fontWeight": "100 900", + "src": [ + "file:./assets/fonts/jost/Jost-Italic-VariableFont_wght.woff2" + ] + } + ], + "fontFamily": "\"Jost\", sans-serif", + "name": "Jost", + "slug": "body" + }, + { + "fontFamily": "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", + "name": "System Sans-serif", + "slug": "system-sans-serif" + }, + { + "fontFamily": "Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol", + "name": "System Serif", + "slug": "system-serif" + } + ], + "fontSizes": [ + { + "fluid": false, + "name": "Small", + "size": "1rem", + "slug": "small" + }, + { + "fluid": false, + "name": "Medium", + "size": "1.2rem", + "slug": "medium" + }, + { + "fluid": { + "min": "1.5rem", + "max": "2rem" + }, + "name": "Large", + "size": "2rem", + "slug": "large" + }, + { + "fluid": { + "min": "2rem", + "max": "2.65rem" + }, + "name": "Extra Large", + "size": "2.65rem", + "slug": "x-large" + }, + { + "fluid": { + "min": "2.65rem", + "max": "3.5rem" + }, + "name": "Extra Extra Large", + "size": "3.5rem", + "slug": "xx-large" + } + ] + } + }, + "styles": { + "blocks": { + "core/button": { + "variations": { + "outline": { + "spacing": { + "padding": { + "bottom": "calc(1rem - 1px)", + "left": "calc(2.2rem - 1px)", + "right": "calc(2.2rem - 1px)", + "top": "calc(1rem - 1px)" + } + }, + "border": { + "width": "1px" + } + } + } + }, + "core/pullquote": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)", + "fontStyle": "normal", + "fontWeight": "normal", + "lineHeight": "1.2" + } + }, + "core/quote": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontSize": "var(--wp--preset--font-size--large)", + "fontStyle": "normal" + }, + "variations": { + "plain": { + "typography": { + "fontStyle": "normal", + "fontWeight": "400" + } + } + } + }, + "core/site-title": { + "typography": { + "fontWeight": "400" + } + } + }, + "elements": { + "button": { + "border": { + "radius": "4px", + "color": "var(--wp--preset--color--contrast-2)" + }, + "color": { + "background": "var(--wp--preset--color--contrast-2)", + "text": "var(--wp--preset--color--white)" + }, + "spacing": { + "padding": { + "bottom": "1rem", + "left": "2.2rem", + "right": "2.2rem", + "top": "1rem" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontSize": "0.75rem", + "fontStyle": "normal", + "textTransform": "uppercase", + "letterSpacing": "0.1rem" + }, + ":hover": { + "color": { + "background": "var(--wp--preset--color--contrast)" + }, + "border": { + "color": "var(--wp--preset--color--contrast)" + } + } + }, + "heading": { + "typography": { + "fontWeight": "normal", + "letterSpacing": "0" + } + } + } + } +} diff --git a/wp-content/themes/twentytwentyfour/styles/maelstrom.json b/wp-content/themes/twentytwentyfour/styles/maelstrom.json new file mode 100644 index 0000000..1f99cf5 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/styles/maelstrom.json @@ -0,0 +1,205 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Maelstrom", + "settings": { + "color": { + "palette": [ + { + "color": "#38629F", + "name": "Base", + "slug": "base" + }, + { + "color": "#244E8A", + "name": "Base / Two", + "slug": "base-2" + }, + { + "color": "#FFFFFFA1", + "name": "Contrast / 2", + "slug": "contrast-2" + }, + { + "color": "#FFFFFF", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#D5E0F0", + "name": "Contrast / 3", + "slug": "contrast-3" + } + ] + }, + "typography": { + "fontFamilies": [ + { + "fontFace": [ + { + "fontFamily": "Cardo", + "fontStyle": "normal", + "fontWeight": "400", + "src": ["file:./assets/fonts/cardo/cardo_normal_400.woff2"] + }, + { + "fontFamily": "Cardo", + "fontStyle": "italic", + "fontWeight": "400", + "src": ["file:./assets/fonts/cardo/cardo_italic_400.woff2"] + }, + { + "fontFamily": "Cardo", + "fontStyle": "normal", + "fontWeight": "700", + "src": ["file:./assets/fonts/cardo/cardo_normal_700.woff2"] + } + ], + "fontFamily": "Cardo", + "name": "Cardo", + "slug": "body" + }, + { + "fontFace": [ + { + "fontFamily": "Jost", + "fontStyle": "normal", + "fontWeight": "100 900", + "src": ["file:./assets/fonts/jost/Jost-VariableFont_wght.woff2"] + }, + { + "fontFamily": "Jost", + "fontStyle": "italic", + "fontWeight": "100 900", + "src": [ + "file:./assets/fonts/jost/Jost-Italic-VariableFont_wght.woff2" + ] + } + ], + "fontFamily": "\"Jost\", sans-serif", + "name": "Jost", + "slug": "heading" + }, + { + "fontFamily": "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", + "name": "System Sans-serif", + "slug": "system-sans-serif" + }, + { + "fontFamily": "Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol", + "name": "System Serif", + "slug": "system-serif" + } + ], + "fontSizes": [ + { + "fluid": false, + "name": "Small", + "size": "1rem", + "slug": "small" + }, + { + "fluid": false, + "name": "Medium", + "size": "1.2rem", + "slug": "medium" + }, + { + "fluid": { + "min": "1.5rem", + "max": "2rem" + }, + "name": "Large", + "size": "2rem", + "slug": "large" + }, + { + "fluid": { + "min": "2rem", + "max": "2.65rem" + }, + "name": "Extra Large", + "size": "2.65rem", + "slug": "x-large" + }, + { + "fluid": { + "min": "2.65rem", + "max": "3.5rem" + }, + "name": "Extra Extra Large", + "size": "3.5rem", + "slug": "xx-large" + } + ] + } + }, + "styles": { + "blocks": { + "core/button": { + "variations": { + "outline": { + "spacing": { + "padding": { + "bottom": "calc(0.8rem - 2px)", + "left": "calc(1.6rem - 2px)", + "right": "calc(1.6rem - 2px)", + "top": "calc(0.8rem - 2px)" + } + }, + "border": { + "width": "2px" + } + } + } + }, + "core/site-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontWeight": "normal" + } + }, + "core/navigation": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontWeight": "normal" + } + } + }, + "elements": { + "button": { + "border": { + "radius": "6px" + }, + "color": { + "background": "var(--wp--preset--color--contrast)", + "text": "var(--wp--preset--color--base-2)" + }, + "spacing": { + "padding": { + "bottom": "0.98rem", + "left": "1.6rem", + "right": "1.6rem", + "top": "0.8rem" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontSize": "var(--wp--preset--font-size--small)", + "fontStyle": "normal" + }, + ":hover": { + "color": { + "background": "var(--wp--preset--color--contrast)" + } + } + }, + "heading": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "letterSpacing": "0" + } + } + } + } +} diff --git a/wp-content/themes/twentytwentyfour/styles/mint.json b/wp-content/themes/twentytwentyfour/styles/mint.json new file mode 100644 index 0000000..9d306e5 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/styles/mint.json @@ -0,0 +1,169 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Mint", + "settings": { + "color": { + "palette": [ + { + "color": "#e4efeb", + "name": "Base", + "slug": "base" + }, + { + "color": "#f1fefb", + "name": "Base / Two", + "slug": "base-2" + }, + { + "color": "#000000", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#353535", + "name": "Contrast / Two", + "slug": "contrast-2" + }, + { + "color": "#A4A4A4", + "name": "Contrast / Three", + "slug": "contrast-3" + } + ] + }, + "typography": { + "fluid": true, + "fontFamilies": [ + { + "fontFace": [ + { + "fontFamily": "Instrument Sans", + "fontStyle": "normal", + "fontWeight": "400 700", + "src": [ + "file:./assets/fonts/instrument-sans/InstrumentSans-VariableFont_wdth,wght.woff2" + ] + }, + { + "fontFamily": "Instrument Sans", + "fontStyle": "italic", + "fontWeight": "400 700", + "src": [ + "file:./assets/fonts/instrument-sans/InstrumentSans-Italic-VariableFont_wdth,wght.woff2" + ] + } + ], + "fontFamily": "\"Instrument Sans\", sans-serif", + "name": "Instrument Sans", + "slug": "heading" + }, + { + "fontFace": [ + { + "fontFamily": "Jost", + "fontStyle": "normal", + "fontWeight": "100 900", + "src": ["file:./assets/fonts/jost/Jost-VariableFont_wght.woff2"] + }, + { + "fontFamily": "Jost", + "fontStyle": "italic", + "fontWeight": "100 900", + "src": [ + "file:./assets/fonts/jost/Jost-Italic-VariableFont_wght.woff2" + ] + } + ], + "fontFamily": "\"Jost\", sans-serif", + "name": "Jost", + "slug": "body" + }, + { + "fontFamily": "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", + "name": "System Sans-serif", + "slug": "system-sans-serif" + }, + { + "fontFamily": "Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol", + "name": "System Serif", + "slug": "system-serif" + } + ] + } + }, + "styles": { + "blocks": { + "core/navigation": { + "typography": { + "fontStyle": "normal", + "fontWeight": "400" + } + }, + "core/pullquote": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)", + "fontSize": "var(--wp--preset--font-size--x-large)", + "fontStyle": "normal", + "fontWeight": "600", + "lineHeight": "1.3" + } + }, + "core/quote": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)", + "fontSize": "var(--wp--preset--font-size--large)", + "fontStyle": "normal", + "fontWeight": "400" + } + }, + "core/site-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)" + } + } + }, + "elements": { + "caption": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)" + } + }, + "h1": { + "typography": { + "fontSize": "var(--wp--preset--font-size--x-large)" + } + }, + "h2": { + "typography": { + "fontSize": "2.1rem" + } + }, + "h3": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + } + }, + "h4": { + "typography": { + "fontSize": "1.6rem" + } + }, + "h5": { + "typography": { + "fontSize": "1.4rem" + } + }, + "heading": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontStyle": "normal", + "fontWeight": "600" + } + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)" + } + } +} diff --git a/wp-content/themes/twentytwentyfour/styles/onyx.json b/wp-content/themes/twentytwentyfour/styles/onyx.json new file mode 100644 index 0000000..41afbd8 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/styles/onyx.json @@ -0,0 +1,165 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Onyx", + "settings": { + "color": { + "duotone": [ + { + "colors": [ + "#272727", + "#f9f9f9" + ], + "slug": "duotone-1", + "name": "Dark gray and white" + }, + { + "colors": [ + "#272727", + "#5F584F" + ], + "slug": "duotone-2", + "name": "Dark gray and walnut" + }, + { + "colors": [ + "#272727", + "#973C20" + ], + "slug": "duotone-3", + "name": "Dark gray and cinnamon" + }, + { + "colors": [ + "#272727", + "#4D5B48" + ], + "slug": "duotone-4", + "name": "Dark gray and olive" + }, + { + "colors": [ + "#272727", + "#4F5959" + ], + "slug": "duotone-5", + "name": "Dark gray and steel" + } + ], + "gradients": [ + { + "slug": "gradient-1", + "gradient": "linear-gradient(to bottom, #5F584F 0%, #272727 100%)", + "name": "Vertical soft driftwood to dark gray" + }, + { + "slug": "gradient-2", + "gradient": "linear-gradient(to bottom, #6D533C 0%, #272727 100%)", + "name": "Vertical soft walnut to dark gray" + }, + { + "slug": "gradient-3", + "gradient": "linear-gradient(to bottom, #973C20 0%, #272727 100%)", + "name": "Vertical soft cinnamon to dark gray" + }, + { + "slug": "gradient-4", + "gradient": "linear-gradient(to bottom, #4D5B48 0%, #272727 100%)", + "name": "Vertical soft olive to dark gray" + }, + { + "slug": "gradient-5", + "gradient": "linear-gradient(to bottom, #4F5959 0%, #272727 100%)", + "name": "Vertical soft steel to dark gray" + }, + { + "slug": "gradient-6", + "gradient": "linear-gradient(to bottom, #909090 0%, #272727 100%)", + "name": "Vertical soft pewter to dark gray" + }, + { + "slug": "gradient-7", + "gradient": "linear-gradient(to bottom, #5F584F 50%, #272727 50%)", + "name": "Vertical hard beige to dark gray" + }, + { + "slug": "gradient-8", + "gradient": "linear-gradient(to bottom, #6D533C 50%, #272727 50%)", + "name": "Vertical hard walnut to dark gray" + }, + { + "slug": "gradient-9", + "gradient": "linear-gradient(to bottom, #973C20 50%, #272727 50%)", + "name": "Vertical hard cinnamon to dark gray" + }, + { + "slug": "gradient-10", + "gradient": "linear-gradient(to bottom, #4D5B48 50%, #272727 50%)", + "name": "Vertical hard olive to dark gray" + }, + { + "slug": "gradient-11", + "gradient": "linear-gradient(to bottom, #4F5959 50%, #272727 50%)", + "name": "Vertical hard steel to dark gray" + }, + { + "slug": "gradient-12", + "gradient": "linear-gradient(to bottom, #A4A4A4 50%, #272727 50%)", + "name": "Vertical hard pewter to dark gray" + } + ], + "palette": [ + { + "color": "#272727", + "name": "Base", + "slug": "base" + }, + { + "color": "#303030", + "name": "Base / Two", + "slug": "base-2" + }, + { + "color": "#f9f9f9", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#B7B7B7", + "name": "Contrast / Two", + "slug": "contrast-2" + }, + { + "color": "#909090", + "name": "Contrast / Three", + "slug": "contrast-3" + }, + { + "color": "#5F584F", + "name": "Accent", + "slug": "accent" + }, + { + "color": "#6D533C", + "name": "Accent / Two", + "slug": "accent-2" + }, + { + "color": "#973C20", + "name": "Accent / Three", + "slug": "accent-3" + }, + { + "color": "#4D5B48", + "name": "Accent / Four", + "slug": "accent-4" + }, + { + "color": "#4F5959", + "name": "Accent / Five", + "slug": "accent-5" + } + ] + } + } +} diff --git a/wp-content/themes/twentytwentyfour/styles/rust.json b/wp-content/themes/twentytwentyfour/styles/rust.json new file mode 100644 index 0000000..e3410b6 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/styles/rust.json @@ -0,0 +1,145 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Rust", + "settings": { + "color": { + "duotone": [ + { + "colors": [ + "#A62B0C", + "#F3F0E7" + ], + "slug": "duotone-1", + "name": "Dark rust to beige" + } + ], + "gradients": [ + { + "slug": "gradient-1", + "gradient": "linear-gradient(to bottom, #A62A0C42 0%, #F3F0E7 100%)", + "name": "Vertical transparent rust to beige" + }, + { + "slug": "gradient-7", + "gradient": "linear-gradient(to bottom, #A62A0C42 50%, #F3F0E7 50%)", + "name": "Vertical hard transparent rust to beige" + }, + { + "slug": "gradient-2", + "gradient": "linear-gradient(to bottom, #A62B0C 0%, #F3F0E7 100%)", + "name": "Vertical rust to beige" + }, + { + "slug": "gradient-8", + "gradient": "linear-gradient(to bottom, #A62B0C 50%, #F3F0E7 50%)", + "name": "Vertical hard rust to beige" + } + ], + "palette": [ + { + "color": "#F3F0E7", + "name": "Base", + "slug": "base" + }, + { + "color": "#ECEADF", + "name": "Base / 2", + "slug": "base-2" + }, + { + "color": "#A62B0C", + "name": "Contrast", + "slug": "contrast" + } + ] + } + }, + "styles": { + "blocks": { + "core/calendar": { + "css": ".wp-block-calendar table:where(:not(.has-text-color)) th{background-color:var(--wp--preset--color--contrast);color:var(--wp--preset--color--base);border-color:var(--wp--preset--color--contrast)} & table:where(:not(.has-text-color)) td{border-color:var(--wp--preset--color--contrast)}" + }, + "core/comment-date": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + }, + "core/comment-edit-link": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + }, + "core/comment-reply-link": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + }, + "core/post-date": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + }, + "core/post-terms": { + "css":"& .wp-block-post-terms__prefix{color: var(--wp--preset--color--contrast);}" + }, + "core/quote": { + "color": { + "background": "var(--wp--preset--color--base)" + } + }, + "core/site-tagline": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + }, + "elements": { + "button": { + ":focus": { + "color": { + "background": "var(--wp--preset--color--contrast)" + }, + "border": { + "color": "var(--wp--preset--color--contrast)" + } + }, + ":hover": { + "color": { + "background": "var(--wp--preset--color--contrast)" + }, + "border": { + "color": "var(--wp--preset--color--contrast)" + } + } + }, + "caption": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + } +} diff --git a/wp-content/themes/twentytwentyfour/templates/404.html b/wp-content/themes/twentytwentyfour/templates/404.html new file mode 100644 index 0000000..37abd55 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/404.html @@ -0,0 +1,9 @@ + + + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/templates/archive.html b/wp-content/themes/twentytwentyfour/templates/archive.html new file mode 100644 index 0000000..e430722 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/archive.html @@ -0,0 +1,13 @@ + + + +
    + + + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/templates/home.html b/wp-content/themes/twentytwentyfour/templates/home.html new file mode 100644 index 0000000..7c364b8 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/home.html @@ -0,0 +1 @@ + diff --git a/wp-content/themes/twentytwentyfour/templates/index.html b/wp-content/themes/twentytwentyfour/templates/index.html new file mode 100644 index 0000000..fd93725 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/index.html @@ -0,0 +1,12 @@ + + + +
    + +

    Posts

    + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/templates/page-no-title.html b/wp-content/themes/twentytwentyfour/templates/page-no-title.html new file mode 100644 index 0000000..f221eaf --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/page-no-title.html @@ -0,0 +1,9 @@ + + + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/templates/page-wide.html b/wp-content/themes/twentytwentyfour/templates/page-wide.html new file mode 100644 index 0000000..21478ea --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/page-wide.html @@ -0,0 +1,33 @@ + + + +
    + +
    + +
    + + + +
    + +
    + +
    + +
    + + + +
    + +
    + +
    + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/templates/page-with-sidebar.html b/wp-content/themes/twentytwentyfour/templates/page-with-sidebar.html new file mode 100644 index 0000000..f57b2ba --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/page-with-sidebar.html @@ -0,0 +1,54 @@ + + + +
    + + +
    + +
    +
    + + + +
    + +
    + + + +
    +
    + + + + + +
    + +
    + + + +
    +
    + + + +
    + +
    + + + +
    +
    + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/templates/page.html b/wp-content/themes/twentytwentyfour/templates/page.html new file mode 100644 index 0000000..0486031 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/page.html @@ -0,0 +1,26 @@ + + + +
    + +
    + +
    + + + + + +
    + + + +
    + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/templates/search.html b/wp-content/themes/twentytwentyfour/templates/search.html new file mode 100644 index 0000000..c4d2f90 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/search.html @@ -0,0 +1,17 @@ + + + +
    + + + +
    + +
    + + + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/templates/single-with-sidebar.html b/wp-content/themes/twentytwentyfour/templates/single-with-sidebar.html new file mode 100644 index 0000000..990a3a8 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/single-with-sidebar.html @@ -0,0 +1,61 @@ + + + +
    + +
    + +
    + +
    + + + + + + + +
    + + +
    + + + +
    + + + +
    + + + +
    + +
    + + + + + +
    + + + + +
    + +
    + + + +
    + +
    + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/templates/single.html b/wp-content/themes/twentytwentyfour/templates/single.html new file mode 100644 index 0000000..e263370 --- /dev/null +++ b/wp-content/themes/twentytwentyfour/templates/single.html @@ -0,0 +1,49 @@ + + + +
    + +
    + + + +
    + + + +
    + +
    + + + + + +
    + + + +
    + +
    +
    + + + +
    + + + + + + +
    + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentyfour/theme.json b/wp-content/themes/twentytwentyfour/theme.json new file mode 100644 index 0000000..fe6bd3b --- /dev/null +++ b/wp-content/themes/twentytwentyfour/theme.json @@ -0,0 +1,956 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "patterns": [ + "three-columns-of-services", + "clients-section" + ], + "settings": { + "appearanceTools": true, + "color": { + "defaultDuotone": false, + "defaultPalette": false, + "defaultGradients": false, + "duotone": [ + { + "colors": ["#111111", "#ffffff"], + "slug": "duotone-1", + "name": "Black and white" + }, + { + "colors": ["#111111", "#C2A990"], + "slug": "duotone-2", + "name": "Black and sandstone" + }, + { + "colors": ["#111111", "#D8613C"], + "slug": "duotone-3", + "name": "Black and rust" + }, + { + "colors": ["#111111", "#B1C5A4"], + "slug": "duotone-4", + "name": "Black and sage" + }, + { + "colors": ["#111111", "#B5BDBC"], + "slug": "duotone-5", + "name": "Black and pastel blue" + } + ], + "gradients": [ + { + "slug": "gradient-1", + "gradient": "linear-gradient(to bottom, #cfcabe 0%, #F9F9F9 100%)", + "name": "Vertical soft beige to white" + }, + { + "slug": "gradient-2", + "gradient": "linear-gradient(to bottom, #C2A990 0%, #F9F9F9 100%)", + "name": "Vertical soft sandstone to white" + }, + { + "slug": "gradient-3", + "gradient": "linear-gradient(to bottom, #D8613C 0%, #F9F9F9 100%)", + "name": "Vertical soft rust to white" + }, + { + "slug": "gradient-4", + "gradient": "linear-gradient(to bottom, #B1C5A4 0%, #F9F9F9 100%)", + "name": "Vertical soft sage to white" + }, + { + "slug": "gradient-5", + "gradient": "linear-gradient(to bottom, #B5BDBC 0%, #F9F9F9 100%)", + "name": "Vertical soft mint to white" + }, + { + "slug": "gradient-6", + "gradient": "linear-gradient(to bottom, #A4A4A4 0%, #F9F9F9 100%)", + "name": "Vertical soft pewter to white" + }, + { + "slug": "gradient-7", + "gradient": "linear-gradient(to bottom, #cfcabe 50%, #F9F9F9 50%)", + "name": "Vertical hard beige to white" + }, + { + "slug": "gradient-8", + "gradient": "linear-gradient(to bottom, #C2A990 50%, #F9F9F9 50%)", + "name": "Vertical hard sandstone to white" + }, + { + "slug": "gradient-9", + "gradient": "linear-gradient(to bottom, #D8613C 50%, #F9F9F9 50%)", + "name": "Vertical hard rust to white" + }, + { + "slug": "gradient-10", + "gradient": "linear-gradient(to bottom, #B1C5A4 50%, #F9F9F9 50%)", + "name": "Vertical hard sage to white" + }, + { + "slug": "gradient-11", + "gradient": "linear-gradient(to bottom, #B5BDBC 50%, #F9F9F9 50%)", + "name": "Vertical hard mint to white" + }, + { + "slug": "gradient-12", + "gradient": "linear-gradient(to bottom, #A4A4A4 50%, #F9F9F9 50%)", + "name": "Vertical hard pewter to white" + } + ], + "palette": [ + { + "color": "#f9f9f9", + "name": "Base", + "slug": "base" + }, + { + "color": "#ffffff", + "name": "Base / Two", + "slug": "base-2" + }, + { + "color": "#111111", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#636363", + "name": "Contrast / Two", + "slug": "contrast-2" + }, + { + "color": "#A4A4A4", + "name": "Contrast / Three", + "slug": "contrast-3" + }, + { + "color": "#cfcabe", + "name": "Accent", + "slug": "accent" + }, + { + "color": "#c2a990", + "name": "Accent / Two", + "slug": "accent-2" + }, + { + "color": "#d8613c", + "name": "Accent / Three", + "slug": "accent-3" + }, + { + "color": "#b1c5a4", + "name": "Accent / Four", + "slug": "accent-4" + }, + { + "color": "#b5bdbc", + "name": "Accent / Five", + "slug": "accent-5" + } + ] + }, + "layout": { + "contentSize": "620px", + "wideSize": "1280px" + }, + "spacing": { + "spacingScale": { + "steps": 0 + }, + "spacingSizes": [ + { + "name": "1", + "size": "1rem", + "slug": "10" + }, + { + "name": "2", + "size": "min(1.5rem, 2vw)", + "slug": "20" + }, + { + "name": "3", + "size": "min(2.5rem, 3vw)", + "slug": "30" + }, + { + "name": "4", + "size": "min(4rem, 5vw)", + "slug": "40" + }, + { + "name": "5", + "size": "min(6.5rem, 8vw)", + "slug": "50" + }, + { + "name": "6", + "size": "min(10.5rem, 13vw)", + "slug": "60" + } + ], + "units": ["%", "px", "em", "rem", "vh", "vw"] + }, + "typography": { + "fluid": true, + "fontFamilies": [ + { + "fontFace": [ + { + "fontFamily": "Inter", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "300 900", + "src": [ + "file:./assets/fonts/inter/Inter-VariableFont_slnt,wght.woff2" + ] + } + ], + "fontFamily": "\"Inter\", sans-serif", + "name": "Inter", + "slug": "body" + }, + { + "fontFace": [ + { + "fontFamily": "Cardo", + "fontStyle": "normal", + "fontWeight": "400", + "src": ["file:./assets/fonts/cardo/cardo_normal_400.woff2"] + }, + { + "fontFamily": "Cardo", + "fontStyle": "italic", + "fontWeight": "400", + "src": ["file:./assets/fonts/cardo/cardo_italic_400.woff2"] + }, + { + "fontFamily": "Cardo", + "fontStyle": "normal", + "fontWeight": "700", + "src": ["file:./assets/fonts/cardo/cardo_normal_700.woff2"] + } + ], + "fontFamily": "Cardo", + "name": "Cardo", + "slug": "heading" + }, + { + "fontFamily": "-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif", + "name": "System Sans-serif", + "slug": "system-sans-serif" + }, + { + "fontFamily": "Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol", + "name": "System Serif", + "slug": "system-serif" + } + ], + "fontSizes": [ + { + "fluid": false, + "name": "Small", + "size": "0.9rem", + "slug": "small" + }, + { + "fluid": false, + "name": "Medium", + "size": "1.05rem", + "slug": "medium" + }, + { + "fluid": { + "min": "1.39rem", + "max": "1.85rem" + }, + "name": "Large", + "size": "1.85rem", + "slug": "large" + }, + { + "fluid": { + "min": "1.85rem", + "max": "2.5rem" + }, + "name": "Extra Large", + "size": "2.5rem", + "slug": "x-large" + }, + { + "fluid": { + "min": "2.5rem", + "max": "3.27rem" + }, + "name": "Extra Extra Large", + "size": "3.27rem", + "slug": "xx-large" + } + ], + "writingMode": true + }, + "useRootPaddingAwareAlignments": true + }, + "styles": { + "blocks": { + "core/avatar": { + "border": { + "radius": "90px" + } + }, + "core/button": { + "variations": { + "outline": { + "spacing": { + "padding": { + "bottom": "calc(0.6rem - 1px)", + "left": "calc(1rem - 1px)", + "right": "calc(1rem - 1px)", + "top": "calc(0.6rem - 1px)" + } + }, + "border": { + "width": "1px" + } + } + } + }, + "core/buttons": { + "spacing": { + "blockGap": "0.7rem" + } + }, + "core/calendar": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "css": ".wp-block-calendar table:where(:not(.has-text-color)) th{background-color:var(--wp--preset--color--contrast-2);color:var(--wp--preset--color--base);border-color:var(--wp--preset--color--contrast-2)} & table:where(:not(.has-text-color)) td{border-color:var(--wp--preset--color--contrast-2)}" + }, + "core/categories": { + "spacing": { + "padding": { + "left": "0px", + "right": "0px" + } + }, + "css": "& {list-style-type:none;} & li{margin-bottom: 0.5rem;}" + }, + "core/code": { + "border": { + "color": "var(--wp--preset--color--contrast)", + "radius": "var(--wp--preset--spacing--20)" + }, + "color": { + "background": "var(--wp--preset--color--base-2)", + "text": "var(--wp--preset--color--contrast-2)" + }, + "spacing": { + "padding": { + "bottom": "calc(var(--wp--preset--spacing--30) + 0.75rem)", + "left": "calc(var(--wp--preset--spacing--30) + 0.75rem)", + "right": "calc(var(--wp--preset--spacing--30) + 0.75rem)", + "top": "calc(var(--wp--preset--spacing--30) + 0.75rem)" + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "fontStyle": "normal", + "fontWeight": "400", + "lineHeight": "1.6" + } + }, + "core/comment-author-name": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "typography": { + "textDecoration": "none" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontStyle": "normal", + "fontWeight": "600" + } + }, + "core/comment-content": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + }, + "spacing": { + "margin": { + "top": "var(--wp--preset--spacing--20)", + "bottom": "var(--wp--preset--spacing--20)" + } + } + }, + "core/comment-date": { + "color": { + "text": "var(--wp--preset--color--contrast-2)" + }, + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast-2)" + }, + "typography": { + "textDecoration": "none" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + }, + "spacing": { + "margin": { + "top": "0px", + "bottom": "0px" + } + } + }, + "core/comment-edit-link": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast-2)" + }, + "typography": { + "textDecoration": "none" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comment-reply-link": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast-2)" + }, + "typography": { + "textDecoration": "none" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-comments-form": { + "css": "& textarea, input{border-radius:.33rem}" + }, + "core/comments-pagination": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comments-pagination-next": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comments-pagination-numbers": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comments-pagination-previous": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/footnotes": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/gallery": { + "spacing": { + "margin": { + "bottom": "var(--wp--preset--spacing--50)" + } + } + }, + "core/image": { + "variations": { + "rounded": { + "border": { + "radius": "var(--wp--preset--spacing--20)" + } + } + } + }, + "core/list": { + "spacing": { + "padding": { + "left": "var(--wp--preset--spacing--10)" + } + } + }, + "core/loginout": { + "css": "& input{border-radius:.33rem;padding:calc(0.667em + 2px);border:1px solid #949494;}" + }, + "core/navigation": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontWeight": "500" + } + }, + "core/post-author": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-author-name": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-date": { + "color": { + "text": "var(--wp--preset--color--contrast-2)" + }, + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + "color": { + "text": "var(--wp--preset--color--contrast-2)" + }, + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-excerpt": { + "typography": { + "lineHeight": "1.6" + } + }, + "core/post-featured-image": { + "border": { + "radius": "var(--wp--preset--spacing--20)" + } + }, + "core/post-terms": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + }, + "css":"& .wp-block-post-terms__prefix{color: var(--wp--preset--color--contrast-2);}" + }, + "core/post-title": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + "typography": { + "textDecoration": "none" + } + } + } + }, + "core/pullquote": { + "border": { + "radius": "var(--wp--preset--spacing--20)" + }, + "elements": { + "cite": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)", + "fontSize": "var(--wp--preset--font-size--medium)", + "fontStyle": "normal" + } + } + }, + "spacing": { + "padding": { + "bottom": "var(--wp--preset--spacing--40)", + "top": "var(--wp--preset--spacing--40)" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontSize": "var(--wp--preset--font-size--x-large)", + "fontStyle": "italic", + "fontWeight": "400", + "letterSpacing": "0em", + "lineHeight": "1.5" + } + }, + "core/query-title": { + "css": "& span {font-style: italic;}" + }, + "core/query-no-results": { + "spacing": { + "padding": { + "top": "var(--wp--preset--spacing--30)" + } + } + }, + "core/quote": { + "border": { + "radius": "var(--wp--preset--spacing--20)" + }, + "color": { + "background": "var(--wp--preset--color--base-2)" + }, + "css": "& :where(p) {margin-block-start:0;margin-block-end:calc(var(--wp--preset--spacing--10) + 0.5rem);} & :where(:last-child) {margin-block-end:0;} &.has-text-align-right.is-style-plain, .rtl .is-style-plain.wp-block-quote:not(.has-text-align-center):not(.has-text-align-left){border-width: 0 2px 0 0;padding-left:calc(var(--wp--preset--spacing--20) + 0.5rem);padding-right:calc(var(--wp--preset--spacing--20) + 0.5rem);} &.has-text-align-left.is-style-plain, body:not(.rtl) .is-style-plain.wp-block-quote:not(.has-text-align-center):not(.has-text-align-right){border-width: 0 0 0 2px;padding-left:calc(var(--wp--preset--spacing--20) + 0.5rem);padding-right:calc(var(--wp--preset--spacing--20) + 0.5rem)}", + "elements": { + "cite": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)", + "fontSize": "var(--wp--preset--font-size--small)", + "fontStyle": "normal" + } + } + }, + "spacing": { + "padding": { + "bottom": "calc(var(--wp--preset--spacing--30) + 0.75rem)", + "left": "calc(var(--wp--preset--spacing--30) + 0.75rem)", + "right": "calc(var(--wp--preset--spacing--30) + 0.75rem)", + "top": "calc(var(--wp--preset--spacing--30) + 0.75rem)" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontSize": "var(--wp--preset--font-size--large)", + "fontStyle": "italic", + "lineHeight": "1.3" + }, + "variations": { + "plain": { + "border": { + "color": "var(--wp--preset--color--contrast)", + "radius": "0", + "style": "solid", + "width": "0" + }, + "color": { + "background": "transparent" + }, + "spacing": { + "padding": { + "bottom": "var(--wp--preset--spacing--20)", + "left": "var(--wp--preset--spacing--20)", + "right": "var(--wp--preset--spacing--20)", + "top": "var(--wp--preset--spacing--20)" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)", + "fontStyle": "normal", + "fontSize": "var(--wp--preset--font-size--medium)", + "lineHeight": "1.5" + } + } + } + }, + "core/search": { + "css": "& .wp-block-search__input{border-radius:.33rem}", + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + }, + "elements": { + "button": { + "border": { + "radius": { "ref": "styles.elements.button.border.radius" } + } + } + } + }, + "core/separator": { + "border": { + "color": "currentColor", + "style": "solid", + "width": "0 0 1px 0" + }, + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "css": " &:not(.is-style-wide):not(.is-style-dots):not(.alignwide):not(.alignfull){width: var(--wp--preset--spacing--60)}" + }, + "core/site-tagline": { + "color": { + "text": "var(--wp--preset--color--contrast-2)" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/site-title": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)", + "fontSize": "1.2rem", + "fontStyle": "normal", + "fontWeight": "600" + } + } + }, + "color": { + "background": "var(--wp--preset--color--base)", + "text": "var(--wp--preset--color--contrast)" + }, + "elements": { + "button": { + ":active": { + "color": { + "background": "var(--wp--preset--color--contrast)", + "text": "var(--wp--preset--color--base)" + } + }, + ":focus": { + "color": { + "background": "var(--wp--preset--color--contrast-2)", + "text": "var(--wp--preset--color--base)" + }, + "outline": { + "color": "var(--wp--preset--color--contrast)", + "offset": "2px" + }, + "border": { + "color": "var(--wp--preset--color--contrast-2)" + } + }, + ":hover": { + "color": { + "background": "var(--wp--preset--color--contrast-2)", + "text": "var(--wp--preset--color--base)" + }, + "border": { + "color": "var(--wp--preset--color--contrast-2)" + } + }, + "border": { + "radius": ".33rem", + "color": "var(--wp--preset--color--contrast)" + }, + "color": { + "background": "var(--wp--preset--color--contrast)", + "text": "var(--wp--preset--color--base)" + }, + "spacing": { + "padding": { + "bottom": "0.6rem", + "left": "1rem", + "right": "1rem", + "top": "0.6rem" + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontStyle": "normal", + "fontWeight": "500" + } + }, + "caption": { + "color": { + "text": "var(--wp--preset--color--contrast-2)" + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)", + "fontSize": "0.8rem" + } + }, + "h1": { + "typography": { + "fontSize": "var(--wp--preset--font-size--xx-large)", + "lineHeight": "1.15" + } + }, + "h2": { + "typography": { + "fontSize": "var(--wp--preset--font-size--x-large)" + } + }, + "h3": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + } + }, + "h4": { + "typography": { + "fontSize": "clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.767), 1.5rem)" + } + }, + "h5": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)" + } + }, + "h6": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "heading": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--heading)", + "fontWeight": "400", + "lineHeight": "1.2" + } + }, + "link": { + ":hover": { + "typography": { + "textDecoration": "none" + } + }, + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + }, + "spacing": { + "blockGap": "1.2rem", + "padding": { + "left": "var(--wp--preset--spacing--50)", + "right": "var(--wp--preset--spacing--50)" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--body)", + "fontSize": "var(--wp--preset--font-size--medium)", + "fontStyle": "normal", + "fontWeight": "400", + "lineHeight": "1.55" + }, + "css": ":where(.wp-site-blocks *:focus){outline-width:2px;outline-style:solid}" + }, + "templateParts": [ + { + "area": "header", + "name": "header", + "title": "Header" + }, + { + "area": "footer", + "name": "footer", + "title": "Footer" + }, + { + "area": "uncategorized", + "name": "sidebar", + "title": "Sidebar" + }, + { + "area": "uncategorized", + "name": "post-meta", + "title": "Post Meta" + } + ], + "customTemplates": [ + { + "name": "page-no-title", + "postTypes": ["page"], + "title": "Page No Title" + }, + { + "name": "page-with-sidebar", + "postTypes": ["page"], + "title": "Page with Sidebar" + }, + { + "name": "page-wide", + "postTypes": ["page"], + "title": "Page with Wide Image" + }, + { + "name": "single-with-sidebar", + "postTypes": ["post"], + "title": "Single with Sidebar" + } + ] +} diff --git a/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Bold-Italic.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Bold-Italic.woff2 new file mode 100644 index 0000000..262239c Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Bold-Italic.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Bold.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Bold.woff2 new file mode 100644 index 0000000..2787a75 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Bold.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Regular-Italic.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Regular-Italic.woff2 new file mode 100644 index 0000000..6220e15 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Regular-Italic.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Regular.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Regular.woff2 new file mode 100644 index 0000000..9e5a00f Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/DMSans-Regular.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/LICENSE.txt b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/LICENSE.txt new file mode 100644 index 0000000..02d522f --- /dev/null +++ b/wp-content/themes/twentytwentythree/assets/fonts/dm-sans/LICENSE.txt @@ -0,0 +1,94 @@ +Copyright 2014-2017 Indian Type Foundry (info@indiantypefoundry.com). Copyright 2019 Google LLC. +Copyright 2014-2018 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. Copyright 2019 Google LLC. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Bold.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Bold.woff2 new file mode 100644 index 0000000..6124ae1 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Bold.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Italic.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Italic.woff2 new file mode 100644 index 0000000..21d9681 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Italic.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Light.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Light.woff2 new file mode 100644 index 0000000..b714a13 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Light.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2 new file mode 100644 index 0000000..64ad179 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/OFL.txt b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/OFL.txt new file mode 100644 index 0000000..245d5f4 --- /dev/null +++ b/wp-content/themes/twentytwentythree/assets/fonts/ibm-plex-mono/OFL.txt @@ -0,0 +1,93 @@ +Copyright © 2017 IBM Corp. with Reserved Font Name "Plex" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentythree/assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf b/wp-content/themes/twentytwentythree/assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf new file mode 100644 index 0000000..ec3164e Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/inter/LICENSE.txt b/wp-content/themes/twentytwentythree/assets/fonts/inter/LICENSE.txt new file mode 100644 index 0000000..b525cbf --- /dev/null +++ b/wp-content/themes/twentytwentythree/assets/fonts/inter/LICENSE.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/LICENSE.md b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/LICENSE.md new file mode 100644 index 0000000..7cd3e74 --- /dev/null +++ b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/LICENSE.md @@ -0,0 +1,93 @@ +Copyright 2014 - 2021 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, + in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, + redistributed and/or sold with any software, provided that each copy + contains the above copyright notice and this license. These can be + included either as stand-alone text files, human-readable headers or + in the appropriate machine-readable metadata fields within text or + binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font + Name(s) unless explicit written permission is granted by the corresponding + Copyright Holder. This restriction only applies to the primary font name as + presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font + Software shall not be used to promote, endorse or advertise any + Modified Version, except to acknowledge the contribution(s) of the + Copyright Holder(s) and the Author(s) or with their explicit written + permission. + +5) The Font Software, modified or unmodified, in part or in whole, + must be distributed entirely under this license, and must not be + distributed under any other license. The requirement for fonts to + remain under this license does not apply to any document created + using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.otf.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.otf.woff2 new file mode 100644 index 0000000..2387849 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.otf.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2 new file mode 100644 index 0000000..4cbd4c3 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.otf.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.otf.woff2 new file mode 100644 index 0000000..28701e6 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.otf.woff2 differ diff --git a/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2 b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2 new file mode 100644 index 0000000..3b74d30 Binary files /dev/null and b/wp-content/themes/twentytwentythree/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2 differ diff --git a/wp-content/themes/twentytwentythree/parts/comments.html b/wp-content/themes/twentytwentythree/parts/comments.html new file mode 100644 index 0000000..a5bc7d8 --- /dev/null +++ b/wp-content/themes/twentytwentythree/parts/comments.html @@ -0,0 +1 @@ + diff --git a/wp-content/themes/twentytwentythree/parts/footer.html b/wp-content/themes/twentytwentythree/parts/footer.html new file mode 100644 index 0000000..256c8db --- /dev/null +++ b/wp-content/themes/twentytwentythree/parts/footer.html @@ -0,0 +1 @@ + diff --git a/wp-content/themes/twentytwentythree/parts/header.html b/wp-content/themes/twentytwentythree/parts/header.html new file mode 100644 index 0000000..8e4f17b --- /dev/null +++ b/wp-content/themes/twentytwentythree/parts/header.html @@ -0,0 +1,10 @@ + +
    + +
    + + +
    + +
    + diff --git a/wp-content/themes/twentytwentythree/parts/post-meta.html b/wp-content/themes/twentytwentythree/parts/post-meta.html new file mode 100644 index 0000000..de968be --- /dev/null +++ b/wp-content/themes/twentytwentythree/parts/post-meta.html @@ -0,0 +1 @@ + diff --git a/wp-content/themes/twentytwentythree/patterns/call-to-action.php b/wp-content/themes/twentytwentythree/patterns/call-to-action.php new file mode 100644 index 0000000..119677d --- /dev/null +++ b/wp-content/themes/twentytwentythree/patterns/call-to-action.php @@ -0,0 +1,41 @@ + + +
    + +
    + +

    +

    + + + +
    + +
    + + + +
    + +
    + +
    + + + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentythree/patterns/footer-default.php b/wp-content/themes/twentytwentythree/patterns/footer-default.php new file mode 100644 index 0000000..d197bf5 --- /dev/null +++ b/wp-content/themes/twentytwentythree/patterns/footer-default.php @@ -0,0 +1,28 @@ + + +
    + +
    + + +

    + WordPress' + ) + ?> +

    + +
    + +
    + diff --git a/wp-content/themes/twentytwentythree/patterns/hidden-404.php b/wp-content/themes/twentytwentythree/patterns/hidden-404.php new file mode 100644 index 0000000..ae7dbb1 --- /dev/null +++ b/wp-content/themes/twentytwentythree/patterns/hidden-404.php @@ -0,0 +1,28 @@ + + +
    + + + +

    + + + +
    + +

    + + + +
    + + + +
    + diff --git a/wp-content/themes/twentytwentythree/patterns/hidden-comments.php b/wp-content/themes/twentytwentythree/patterns/hidden-comments.php new file mode 100644 index 0000000..84d4a78 --- /dev/null +++ b/wp-content/themes/twentytwentythree/patterns/hidden-comments.php @@ -0,0 +1,57 @@ + + +
    + +
    + +

    + + + + + + +
    + +
    + +
    + + + +
    + + + +
    + + +
    + + + + + +
    + +
    + + + + + + + + + + +
    + +
    + diff --git a/wp-content/themes/twentytwentythree/patterns/hidden-no-results.php b/wp-content/themes/twentytwentythree/patterns/hidden-no-results.php new file mode 100644 index 0000000..d3f7ae0 --- /dev/null +++ b/wp-content/themes/twentytwentythree/patterns/hidden-no-results.php @@ -0,0 +1,14 @@ + + +

    + +

    + + + diff --git a/wp-content/themes/twentytwentythree/patterns/post-meta.php b/wp-content/themes/twentytwentythree/patterns/post-meta.php new file mode 100644 index 0000000..b704064 --- /dev/null +++ b/wp-content/themes/twentytwentythree/patterns/post-meta.php @@ -0,0 +1,76 @@ + + +
    + + + +
    + +
    + + + +
    + +
    + +
    + +

    + +

    + + + + + +

    + +

    + + + +
    + + + +
    + +

    + +

    + + + +
    + +
    + + + +
    + +
    + +

    + +

    + + + +
    + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentythree/readme.txt b/wp-content/themes/twentytwentythree/readme.txt new file mode 100644 index 0000000..c845ea5 --- /dev/null +++ b/wp-content/themes/twentytwentythree/readme.txt @@ -0,0 +1,81 @@ +=== Twenty Twenty-Three === +Contributors: wordpressdotorg +Requires at least: 6.1 +Tested up to: 6.5 +Requires PHP: 5.6 +Stable tag: 1.4 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html + +== Description == + +Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. + +Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself. + +== Changelog == + += 1.4 = +* Released: April 2, 2024 + +https://wordpress.org/documentation/article/twenty-twenty-three-changelog/#Version_1.4 + += 1.3 = +* Released: November 7, 2023 + +https://wordpress.org/documentation/article/twenty-twenty-three-changelog/#Version_1.3 + += 1.2 = +* Released: August 8, 2023 + +https://wordpress.org/documentation/article/twenty-twenty-three-changelog/#Version_1.2 + += 1.1 = +* Released: March 28, 2023 + +https://wordpress.org/documentation/article/twenty-twenty-three-changelog/#Version_1.1 + += 1.0 = +* Released: November 1, 2022 + +https://wordpress.org/documentation/article/twenty-twenty-three-changelog/#Version_1.0 + +== Copyright == + +Twenty Twenty-Three WordPress Theme, (C) 2022-2024 WordPress.org +Twenty Twenty-Three is distributed under the terms of the GNU GPL. + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + + +This theme bundles the following third-party resources: + +DM Sans Font +Copyright 2014-2017 Indian Type Foundry (info@indiantypefoundry.com) +Copyright 2019 Google LLC +Copyright 2014-2018 Adobe (http://www.adobe.com/) +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/googlefonts/dm-fonts + +IBM Plex Font +Copyright 2017 IBM Corp. +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/IBM/plex + +Inter Font +Copyright (c) 2016-2020 The Inter Project Authors. +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/rsms/inter + +Source Serif Font +Copyright 2014-2021 Adobe (http://www.adobe.com/) +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/adobe-fonts/source-serif diff --git a/wp-content/themes/twentytwentythree/screenshot.png b/wp-content/themes/twentytwentythree/screenshot.png new file mode 100644 index 0000000..dee93e4 Binary files /dev/null and b/wp-content/themes/twentytwentythree/screenshot.png differ diff --git a/wp-content/themes/twentytwentythree/style.css b/wp-content/themes/twentytwentythree/style.css new file mode 100644 index 0000000..273c757 --- /dev/null +++ b/wp-content/themes/twentytwentythree/style.css @@ -0,0 +1,15 @@ +/* +Theme Name: Twenty Twenty-Three +Theme URI: https://wordpress.org/themes/twentytwentythree +Author: the WordPress team +Author URI: https://wordpress.org +Description: Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself. +Requires at least: 6.1 +Tested up to: 6.5 +Requires PHP: 5.6 +Version: 1.4 +License: GNU General Public License v2 or later +License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html +Text Domain: twentytwentythree +Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news +*/ diff --git a/wp-content/themes/twentytwentythree/styles/aubergine.json b/wp-content/themes/twentytwentythree/styles/aubergine.json new file mode 100644 index 0000000..235b04b --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/aubergine.json @@ -0,0 +1,292 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Aubergine", + "settings": { + "color": { + "gradients": [ + { + "gradient": "linear-gradient(180deg, var(--wp--preset--color--secondary) 0%,var(--wp--preset--color--base) 100%)", + "name": "Secondary to Base", + "slug": "secondary-base" + }, + { + "gradient": "linear-gradient(180deg, var(--wp--preset--color--base) 0 min(24rem, 10%), var(--wp--preset--color--secondary) 0% 30%, var(--wp--preset--color--base) 100%)", + "name": "Base to Secondary to Base", + "slug": "base-secondary-base" + }, + { + "gradient": "linear-gradient(90deg, var(--wp--preset--color--tertiary) 5.74%, var(--wp--preset--color--primary) 100%)", + "name": "Tertiary to Primary", + "slug": "tertiary-primary" + }, + { + "gradient": "linear-gradient(90deg, var(--wp--preset--color--primary) 5.74%, var(--wp--preset--color--tertiary) 100%)", + "name": "Primary to Tertiary", + "slug": "primary-tertiary" + } + ], + "palette": [ + { + "color": "#1B1031", + "name": "Base", + "slug": "base" + }, + { + "color": "#FFFFFF", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#FF746D", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#551C5E", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#FB326B", + "name": "Tertiary", + "slug": "tertiary" + } + ] + }, + "typography": { + "fontSizes": [ + { + "fluid": { + "min": "0.875rem", + "max": "1rem" + }, + "size": "1rem", + "slug": "small" + }, + { + "fluid": { + "min": "1rem", + "max": "1.125rem" + }, + "size": "1.125rem", + "slug": "medium" + }, + { + "size": "1.75rem", + "slug": "large", + "fluid": false + }, + { + "size": "3.25rem", + "slug": "x-large", + "fluid": false + }, + { + "size": "10rem", + "slug": "xx-large", + "fluid": { + "min": "10rem", + "max": "16.3rem" + } + } + ] + } + }, + "styles": { + "blocks": { + "core/comment-reply-link": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--primary)" + }, + "typography": { + "fontStyle": "italic" + } + } + } + }, + "core/group": { + "border": { + "color": "var(--wp--preset--color--primary)" + } + }, + "core/navigation": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)" + } + }, + "core/post-author": { + "color": { + "text": "var(--wp--preset--color--primary)" + }, + "typography": { + "fontStyle": "italic" + } + }, + "core/post-content": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + }, + "core/post-date": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "typography": { + "letterSpacing": "0.09rem", + "textTransform": "uppercase" + } + } + } + }, + "core/post-terms": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--primary)" + }, + "typography": { + "fontStyle": "italic" + } + } + } + }, + "core/post-title": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + }, + "typography": { + "fontSize": "clamp(2.625rem, calc(2.625rem + ((1vw - 0.48rem) * 8.4135)), 3.25rem)" + } + }, + "core/query": { + "elements": { + "h3": { + "color": { + "text": "var(--wp--preset--color--primary)" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--large)", + "fontWeight": "700" + } + }, + "link": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + }, + "core/separator": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "core/site-title": { + "border": { + "color": "var(--wp--preset--color--primary)", + "style": "solid", + "width": "0 0 2px 0" + }, + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + ":focus": { + "color": { + "text": "var(--wp--preset--color--primary)" + }, + "typography": { + "textDecoration": "none" + } + }, + ":hover": { + "color": { + "text": "var(--wp--preset--color--primary)" + }, + "typography": { + "textDecoration": "none" + } + } + } + }, + "typography": { + "letterSpacing": "0.09rem", + "textTransform": "uppercase" + } + } + }, + "color": { + "gradient": "var(--wp--preset--gradient--base-secondary-base) no-repeat" + }, + "elements": { + "button": { + "border": { + "radius": "99999px" + }, + "color": { + "gradient": "var(--wp--preset--gradient--tertiary-primary)", + "text": "var(--wp--preset--color--base)" + }, + ":hover": { + "color": { + "background": "var(--wp--preset--color--primary)", + "gradient": "none", + "text": "var(--wp--preset--color--secondary)" + } + }, + ":focus": { + "color": { + "background": "var(--wp--preset--color--primary)", + "gradient": "none", + "text": "var(--wp--preset--color--secondary)" + } + }, + ":active": { + "color": { + "background": "var(--wp--preset--color--primary)", + "gradient": "none", + "text": "var(--wp--preset--color--secondary)" + } + }, + ":visited": { + "color": { + "text": "var(--wp--preset--color--base)" + } + } + }, + "heading": { + "typography": { + "letterSpacing": "-0.019rem" + } + }, + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)" + } + } +} diff --git a/wp-content/themes/twentytwentythree/styles/block-out.json b/wp-content/themes/twentytwentythree/styles/block-out.json new file mode 100644 index 0000000..4b09b8e --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/block-out.json @@ -0,0 +1,245 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Block out", + "settings": { + "color": { + "duotone": [ + { + "colors": [ + "#E2161D", + "#FF9C9C" + ], + "slug": "default-filter", + "name": "Default filter" + } + ], + "palette": [ + { + "color": "#ff5252", + "name": "Base", + "slug": "base" + }, + { + "color": "#252525", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#ffffff", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#ff2d34", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#ff7e7e", + "name": "Tertiary", + "slug": "tertiary" + } + ] + }, + "layout": { + "contentSize": "800px" + }, + "typography": { + "fontSizes": [ + { + "fluid": { + "max": "1rem", + "min": "0.875rem" + }, + "size": "1rem", + "slug": "small" + }, + { + "fluid": { + "max": "1.125rem", + "min": "1rem" + }, + "size": "1.125rem", + "slug": "medium" + }, + { + "fluid": false, + "size": "1.75rem", + "slug": "large" + }, + { + "fluid": false, + "size": "2.25rem", + "slug": "x-large" + }, + { + "fluid": { + "max": "7rem", + "min": "4.3rem" + }, + "size": "7rem", + "slug": "xx-large" + } + ] + } + }, + "styles": { + "blocks": { + "core/avatar": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/image": { + "border": { + "radius": "8px" + }, + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/navigation": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + } + }, + "core/post-content": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + }, + "h1": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + }, + "core/post-featured-image": { + "border": { + "radius": "8px" + }, + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/post-title": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + }, + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "core/quote": { + "border": { + "width": "1px" + } + }, + "core/search": { + "border": { + "radius": "8px" + } + }, + "core/site-logo": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/site-title": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + }, + "spacing": { + "padding": { + "bottom": "var(--wp--preset--spacing--30)", + "top": "var(--wp--preset--spacing--30)" + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--xx-large)", + "lineHeight": "1.1", + "textTransform": "lowercase" + } + }, + "core/query": { + "elements": { + "h2": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + } + } + } + } + }, + "elements": { + "button": { + "border": { + "radius": "8px" + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)", + "fontStyle": "italic", + "fontWeight": "400" + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + }, + "h1": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "h6": { + "typography": { + "fontWeight": "400" + } + }, + "heading": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)", + "fontStyle": "italic" + } + }, + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)", + "fontStyle": "italic", + "fontWeight": "400" + } + } + }, + "spacing": { + "padding": { + "bottom": "0px", + "top": "0px" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)" + } + } +} diff --git a/wp-content/themes/twentytwentythree/styles/canary.json b/wp-content/themes/twentytwentythree/styles/canary.json new file mode 100644 index 0000000..f8d8f80 --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/canary.json @@ -0,0 +1,251 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Canary", + "settings": { + "color": { + "duotone": [ + { + "colors": [ + "#000000", + "#ffffff" + ], + "slug": "default-filter", + "name": "Default filter" + } + ], + "palette": [ + { + "color": "#fdff85", + "name": "Base", + "slug": "base" + }, + { + "color": "#000000", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#000000", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#353535", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#ffffff", + "name": "Tertiary", + "slug": "tertiary" + } + ] + }, + "layout": { + "wideSize": "650px" + }, + "typography": { + "fontSizes": [ + { + "size": "0.75rem", + "slug": "small" + }, + { + "size": "1.125rem", + "slug": "medium" + }, + { + "size": "1.75rem", + "slug": "large" + }, + { + "size": "2.25rem", + "slug": "x-large" + }, + { + "size": "10rem", + "slug": "xx-large" + } + ] + } + }, + "styles": { + "blocks": { + "core/comments": { + "elements": { + "link": { + "typography": { + "textDecoration": "underline" + }, + ":hover": { + "typography": { + "textDecoration": "none" + } + } + } + } + }, + "core/comment-reply-link": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comments-title":{ + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/image": { + "border": { + "radius": "100px 0 0 0" + }, + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/navigation": { + "typography": { + "textTransform": "lowercase" + } + }, + "core/post-content": { + "elements": { + "link": { + "typography": { + "textDecoration": "underline" + }, + ":hover": { + "typography": { + "textDecoration": "none" + } + } + } + } + }, + "core/post-excerpt": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-featured-image": { + "border": { + "radius": "100px 0 0 0" + }, + "spacing": { + "margin": { + "bottom": "0px", + "left": "0px", + "right": "0px", + "top": "0px" + }, + "padding": { + "bottom": "0px", + "left": "0px", + "right": "0px", + "top": "0px" + } + } + }, + "core/post-title": { + "typography": { + "fontWeight": "700" + } + }, + "core/separator": { + "border": { + "width": "2px" + } + }, + "core/site-title": { + "typography": { + "fontWeight": "700", + "textTransform": "lowercase", + "fontSize": "var(--wp--preset--font-size--small)" + } + } + }, + "elements": { + "button": { + ":hover": { + "color": { + "background": "var(--wp--preset--color--base)", + "text": "var(--wp--preset--color--contrast)" + }, + "border": { + "color": "var(--wp--preset--color--contrast)", + "style": "solid", + "width": "2px" + } + }, + ":focus": { + "color": { + "background": "var(--wp--preset--color--base)", + "text": "var(--wp--preset--color--contrast)" + }, + "border": { + "color": "var(--wp--preset--color--contrast)", + "style": "solid", + "width": "2px" + } + }, + ":visited": { + "color": { + "text": "var(--wp--preset--color--base)" + } + }, + "border": { + "radius": "5px", + "color": "var(--wp--preset--color--contrast)", + "style": "solid", + "width": "2px" + }, + "color": { + "text": "var(--wp--preset--color--base)" + }, + "spacing": { + "padding": { + "bottom": "0.667em", + "left": "1.333em", + "right": "1.333em", + "top": "0.667em" + } + } + }, + "h1": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "h2": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "h3": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "h4": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "heading": { + "typography": { + "fontWeight": "700" + } + }, + "link": { + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)", + "fontSize": "var(--wp--preset--font-size--small)" + } + } +} diff --git a/wp-content/themes/twentytwentythree/styles/electric.json b/wp-content/themes/twentytwentythree/styles/electric.json new file mode 100644 index 0000000..077ca09 --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/electric.json @@ -0,0 +1,100 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Electric", + "settings": { + "color": { + "palette": [ + { + "color": "#f3f3f1", + "name": "Base", + "slug": "base" + }, + { + "color": "#2500ff", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#f3f3f1", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#2500ff", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#f6f6f6", + "name": "Tertiary", + "slug": "tertiary" + } + ] + } + }, + "styles": { + "elements": { + "button": { + "border": { + "style": "solid", + "width": "2px", + "color": "var(--wp--preset--color--contrast)" + }, + "color": { + "background": "var(--wp--preset--color--contrast)", + "text": "var(--wp--preset--color--base)" + }, + "spacing": { + "padding": { + "top": ".667em", + "right": "1.333em", + "bottom": ".667em", + "left": "1.333em" + } + }, + ":active": { + "typography": { + "textDecoration": "underline dotted" + } + }, + ":focus": { + "typography": { + "textDecoration": "underline dotted" + } + }, + ":hover": { + "border": { + "color": "var(--wp--preset--color--contrast)", + "style": "solid", + "width": "2px" + }, + "color": { + "background": "var(--wp--preset--color--base)", + "text": "var(--wp--preset--color--contrast)" + } + }, + ":visited": { + "color": { + "text": "var(--wp--preset--color--base)" + } + } + }, + "link": { + ":focus": { + "typography": { + "textDecoration": "underline dotted" + } + }, + ":active": { + "typography": { + "textDecoration": "underline dotted" + } + } + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)" + } + } +} diff --git a/wp-content/themes/twentytwentythree/styles/grapes.json b/wp-content/themes/twentytwentythree/styles/grapes.json new file mode 100644 index 0000000..cf0c4b4 --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/grapes.json @@ -0,0 +1,97 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Grapes", + "settings": { + "color": { + "palette": [ + { + "color": "#E1E1C7", + "name": "Base", + "slug": "base" + }, + { + "color": "#000000", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#214F31", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#000000", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#F0EBD2", + "name": "Tertiary", + "slug": "tertiary" + } + ] + } + }, + "styles": { + "blocks": { + "core/post-comments": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline dashed" + } + } + } + } + }, + "core/post-date": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontStyle": "italic" + } + }, + "core/post-terms": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontStyle": "italic" + } + }, + "core/site-title": { + "typography": { + "textTransform": "lowercase" + } + } + }, + "elements": { + "button": { + "border": { + "radius": "9999px" + }, + "color": { + "background": "var(--wp--preset--color--primary)", + "text": "var(--wp--preset--color--base)" + }, + ":visited": { + "color": { + "text": "var(--wp--preset--color--base)" + } + } + }, + "heading": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontWeight": "600" + } + }, + "link": { + ":hover": { + "typography": { + "textDecoration": "underline dashed" + } + } + } + } + } +} diff --git a/wp-content/themes/twentytwentythree/styles/marigold.json b/wp-content/themes/twentytwentythree/styles/marigold.json new file mode 100644 index 0000000..4ad7ef4 --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/marigold.json @@ -0,0 +1,311 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Marigold", + "settings": { + "color": { + "palette": [ + { + "color": "#F6F2EC", + "name": "Base", + "slug": "base" + }, + { + "color": "#21251F", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#5B4460", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#FCC263", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#E7A1A9", + "name": "Tertiary", + "slug": "tertiary" + } + ] + }, + "layout": { + "wideSize": "1200px" + }, + "spacing": { + "spacingSizes": [ + { + "size": "clamp(0.625rem, 0.434rem + 0.61vw, 0.938rem)", + "name": "1", + "slug": "30" + }, + { + "size": "clamp(1.25rem, 0.869rem + 1.22vw, 1.875rem)", + "name": "2", + "slug": "40" + }, + { + "size": "clamp(1.875rem, 1.303rem + 1.83vw, 2.813rem)", + "name": "3", + "slug": "50" + }, + { + "size": "clamp(2.5rem, 1.738rem + 2.44vw, 3.75rem)", + "name": "4", + "slug": "60" + }, + { + "size": "clamp(2.813rem, 1.098rem + 5.49vw, 5.625rem)", + "name": "5", + "slug": "70" + }, + { + "size": "clamp(3.75rem, 1.463rem + 7.32vw, 7.5rem)", + "name": "6", + "slug": "80" + } + ] + }, + "typography": { + "fontSizes": [ + { + "size": "clamp(0.875rem, 0.799rem + 0.24vw, 1rem)", + "name": "Tiny", + "slug": "tiny" + }, + { + "size": "clamp(1rem, 0.924rem + 0.24vw, 1.125rem)", + "slug": "small" + }, + { + "size": "clamp(1.125rem, 1.049rem + 0.24vw, 1.25rem)", + "name": "Normal", + "slug": "normal" + }, + { + "size": "clamp(1.25rem, 1.021rem + 0.73vw, 1.625rem)", + "slug": "medium" + }, + { + "size": "clamp(1.375rem, 1.07rem + 0.98vw, 1.875rem)", + "slug": "large" + }, + { + "size": "clamp(1.75rem, 1.369rem + 1.22vw, 2.375rem)", + "slug": "x-large" + }, + { + "size": "clamp(2.125rem, 1.706rem + 1.34vw, 2.813rem)", + "slug": "xx-large" + }, + { + "size": "clamp(2.5rem, 1.966rem + 1.71vw, 3.375rem)", + "name": "Huge", + "slug": "huge" + }, + { + "size": "clamp(3.375rem, 2.384rem + 3.17vw, 5rem)", + "name": "Gigantic", + "slug": "gigantic" + } + ] + } + }, + "styles": { + "blocks": { + "core/comment-author-name": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + } + }, + "core/query": { + "spacing": { + "padding": { + "left": "0", + "right": "0" + } + } + }, + "core/post-content": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + }, + "core/post-excerpt": { + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)" + } + }, + "core/post-title": { + "elements": { + "link": { + "typography": { + "textDecoration": "none" + }, + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + }, + "spacing": { + "margin": { + "bottom": "var(--wp--preset--spacing--50)", + "top": "var(--wp--preset--spacing--50)" + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--large)", + "fontWeight": "600" + } + }, + "core/pullquote": { + "border": { + "width": "1px 0" + } + }, + "core/query-pagination": { + "elements": { + "link": { + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontWeight": "400" + } + }, + "core/quote": { + "elements": { + "cite": { + "typography": { + "fontSize": "1.25rem" + } + } + }, + "typography": { + "fontSize": "1.625rem", + "lineHeight": "1.5" + } + }, + "core/site-title": { + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)", + "textTransform": "lowercase" + } + } + }, + "elements": { + "h1": { + "typography": { + "fontSize": "var(--wp--preset--font-size--huge)", + "lineHeight": "1.1" + } + }, + "h2": { + "typography": { + "fontSize": "var(--wp--preset--font-size--xx-large)", + "lineHeight": "1.2" + } + }, + "h3": { + "typography": { + "fontSize": "var(--wp--preset--font-size--x-large)", + "lineHeight": "1.2" + } + }, + "h4": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)", + "fontWeight": "600" + } + }, + "h5": { + "typography": { + "fontStyle": "normal", + "fontWeight": "600", + "textTransform": "none" + } + }, + "h6": { + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)", + "fontStyle": "normal", + "fontWeight": "600" + } + }, + "heading": { + "typography": { + "fontStyle": "italic" + } + }, + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + ":hover": { + "typography": { + "textDecoration": "none" + } + } + }, + "button": { + "border": { + "radius": "50px" + }, + "color": { + "background": "var(--wp--preset--color--secondary)" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--normal)" + }, + ":hover": { + "color": { + "background": "var(--wp--preset--color--tertiary)", + "text": "var(--wp--preset--color--contrast)" + } + }, + ":focus": { + "color": { + "background": "var(--wp--preset--color--primary)" + } + }, + ":active": { + "color": { + "background": "var(--wp--preset--color--primary)" + } + } + } + }, + "spacing": { + "blockGap": "2.5rem", + "padding": { + "bottom": "var(--wp--preset--spacing--50)", + "left": "var(--wp--preset--spacing--40)", + "right": "var(--wp--preset--spacing--40)", + "top": "var(--wp--preset--spacing--50)" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontSize": "var(--wp--preset--font-size--normal)", + "lineHeight": "1.5" + } + } +} diff --git a/wp-content/themes/twentytwentythree/styles/pilgrimage.json b/wp-content/themes/twentytwentythree/styles/pilgrimage.json new file mode 100644 index 0000000..be16add --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/pilgrimage.json @@ -0,0 +1,323 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Pilgrimage", + "settings": { + "color": { + "duotone": [ + { + "colors": [ + "#222828", + "#9EF9FD" + ], + "slug": "default-filter", + "name": "Default filter" + } + ], + "gradients": [ + { + "gradient": "linear-gradient(180deg, var(--wp--preset--color--primary) 0%,var(--wp--preset--color--secondary) 100%)", + "name": "Primary to Secondary", + "slug": "primary-secondary" + }, + { + "gradient": "linear-gradient(180deg, var(--wp--preset--color--secondary) 0%,var(--wp--preset--color--primary) 100%)", + "name": "Secondary to Primary", + "slug": "secondary-primary" + }, + { + "gradient": "linear-gradient(180deg, var(--wp--preset--color--primary) 0%,var(--wp--preset--color--tertiary) 100%)", + "name": "Tertiary to Secondary", + "slug": "tertiary-secondary" + }, + { + "gradient": "linear-gradient(180deg, var(--wp--preset--color--tertiary) 0%,var(--wp--preset--color--primary) 100%)", + "name": "Tertiary to Primary", + "slug": "tertiary-primary" + }, + { + "gradient": "linear-gradient(180deg, var(--wp--preset--color--base) 0%,var(--wp--preset--color--primary) 350%)", + "name": "Base to Primary", + "slug": "base-primary" + }, + { + "gradient": "radial-gradient(circle at 5px 5px,#0c0d0d70 2px,#ffffff00 0px,#ffffff00 0px) 0 0 / 8px 8px, linear-gradient(180deg, var(--wp--preset--color--base) 0%,#000000 200%)", + "name": "Dots", + "slug": "dots" + } + ], + "palette": [ + { + "color": "#222828", + "name": "Base", + "slug": "base" + }, + { + "color": "#ffffff", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#53ED85", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#9EF9FD", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#D8E202", + "name": "Tertiary", + "slug": "tertiary" + } + ] + } + }, + "styles": { + "blocks": { + "core/comment-author-name": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--tertiary)" + } + } + } + } + }, + "core/comment-date": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--tertiary)" + }, + "typography": { + "textDecoration": "underline" + } + } + } + } + }, + "core/comment-edit-link": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--tertiary)" + } + } + } + } + }, + "core/comments-pagination": { + "elements": { + "link": { + "typography": { + "textDecoration": "underline" + } + } + } + }, + "core/image": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/navigation": { + "elements": { + "link": { + ":active": { + "typography": { + "textDecoration": "underline dashed" + } + }, + "color": { + "text": "var(--wp--preset--color--primary)" + }, + "typography": { + "textDecoration": "underline" + } + } + } + }, + "core/paragraph": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "elements": { + "link": { + ":hover": { + "color": { + "text": "var(--wp--preset--color--tertiary)" + } + } + } + } + }, + "core/post-content": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + }, + "core/post-date": { + "elements": { + "link": { + "typography": { + "textDecoration": "none", + "fontStyle": "italic" + } + } + } + }, + "core/post-featured-image": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/post-title": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--tertiary)" + }, + "typography": { + "textDecoration": "underline" + } + }, + "typography": { + "textDecoration": "underline" + } + } + } + }, + "core/query-pagination": { + "elements": { + "link": { + "typography": { + "textDecoration": "underline" + } + } + } + }, + "core/separator": { + "color": { + "text": "var(--wp--preset--color--secondary)" + } + }, + "core/site-title": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + }, + "typography": { + "fontStyle": "italic", + "fontWeight": "700" + } + } + }, + "color": { + "gradient": "var(--wp--preset--gradient--dots)" + }, + "elements": { + "button": { + ":active": { + "color": { + "background": "var(--wp--preset--color--secondary)", + "gradient": "none" + } + }, + ":focus": { + "color": { + "gradient": "var(--wp--preset--gradient--secondary-primary)" + } + }, + ":hover": { + "color": { + "gradient": "var(--wp--preset--gradient--secondary-primary)" + } + }, + ":visited": { + "color": { + "text": "var(--wp--preset--color--base)" + } + }, + "border": { + "radius": "5px" + }, + "color": { + "gradient": "var(--wp--preset--gradient--primary-secondary)", + "text": "var(--wp--preset--color--base)" + } + }, + "h1": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + }, + "h2": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + }, + "h3": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "h4": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "h5": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "h6": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "heading": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "link": { + "color": { + "text": "var(--wp--preset--color--primary)" + }, + ":hover": { + "color": { + "text":"var(--wp--preset--color--tertiary)" + } + }, + ":focus": { + "color": { + "text":"var(--wp--preset--color--tertiary)" + } + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--tertiary)" + } + } + } + } + } +} diff --git a/wp-content/themes/twentytwentythree/styles/pitch.json b/wp-content/themes/twentytwentythree/styles/pitch.json new file mode 100644 index 0000000..583e28e --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/pitch.json @@ -0,0 +1,242 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Pitch", + "settings": { + "color": { + "palette": [ + { + "color": "#202124", + "name": "Base", + "slug": "base" + }, + { + "color": "#e8eaed", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#e3cbc0", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#876C3A", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#303134", + "name": "Tertiary", + "slug": "tertiary" + } + ] + }, + "layout": { + "contentSize": "min(640px, 90vw)", + "wideSize": "90vw" + }, + "spacing": { + "spacingScale": { + "steps": 7 + }, + "spacingSizes": [ + { + "size": "calc(8px + 1.5625vw)", + "slug": "20", + "name": "1" + }, + { + "size": "calc(12px + 1.5625vw)", + "slug": "30", + "name": "2" + }, + { + "size": "calc(16px + 1.5625vw)", + "slug": "40", + "name": "3" + }, + { + "size": "calc(20px + 1.5625vw)", + "slug": "50", + "name": "4" + }, + { + "size": "calc(24px + 1.5625vw)", + "slug": "60", + "name": "5" + }, + { + "size": "calc(28px + 1.5625vw)", + "slug": "70", + "name": "6" + }, + { + "size": "calc(32px + 1.5625vw)", + "slug": "80", + "name": "7" + } + ] + }, + "typography": { + "fontSizes": [ + { + "size": "0.85rem", + "fluid": { + "min": "0.85rem", + "max": "1rem" + }, + "slug": "small", + "name": "small" + }, + { + "size": "1.1rem", + "fluid": { + "min": "1.1rem", + "max": "1.4rem" + }, + "slug": "medium", + "name": "Medium" + }, + { + "size": "1.999rem", + "fluid": { + "min": "1.999rem", + "max": "2.827rem" + }, + "slug": "large", + "name": "Large" + }, + { + "size": "2.827rem", + "fluid": { + "min": "2.827rem", + "max": "3.998rem" + }, + "slug": "x-large", + "name": "Extra Large" + }, + { + "size": "3.2rem", + "fluid": { + "min": "3.2rem", + "max": "5.2rem" + }, + "slug": "xx-large", + "name": "2X Large" + } + ] + } + }, + "styles": { + "blocks": { + "core/separator": { + "border": { + "color":"var(--wp--preset--color--tertiary)", + "width": "2px" + } + }, + "core/site-title": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "fontStyle": "normal", + "fontWeight": "600" + } + } + }, + "elements": { + "button": { + "border": { + "radius": "0", + "style": "solid", + "width": "2px", + "color": "var(--wp--preset--color--primary)" + }, + "color": { + "background": "var(--wp--preset--color--primary)", + "text": "var(--wp--preset--color--base)" + }, + "spacing": { + "padding": { + "top": "min(1.125rem, 3vw) !important", + "right": "min(2.125rem, 5vw) !important", + "bottom": "min(1.125rem, 3vw) !important", + "left": "min(2.125rem, 5vw) !important" + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontWeight": "600", + "textTransform": "uppercase", + "letterSpacing": "0.01em" + }, + ":hover": { + "border": { + "color": "var(--wp--preset--color--contrast)" + }, + "color": { + "background": "var(--wp--preset--color--contrast)", + "text": "var(--wp--preset--color--tertiary)" + } + }, + ":focus": { + "border": { + "color": "var(--wp--preset--color--contrast)" + }, + "color": { + "background": "var(--wp--preset--color--contrast)", + "text": "var(--wp--preset--color--tertiary)" + } + }, + ":active": { + "border": { + "color": "var(--wp--preset--color--contrast)" + }, + "color": { + "background": "var(--wp--preset--color--contrast)", + "text": "var(--wp--preset--color--tertiary)" + } + }, + ":visited": { + "color": { + "text": "var(--wp--preset--color--base)" + } + } + }, + "h1": { + "typography": { + "fontSize": "var(--wp--preset--font-size--xx-large)", + "lineHeight": "1.1" + } + }, + "h2": { + "typography": { + "fontSize": "var(--wp--preset--font-size--x-large)", + "lineHeight": "1.1" + } + }, + "h3": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + } + }, + "heading": { + "typography": { + "fontWeight": "500" + } + } + }, + "spacing": { + "blockGap": "var(--wp--preset--spacing--40)", + "padding": { + "right": "var(--wp--preset--spacing--70)", + "left": "var(--wp--preset--spacing--70)" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)", + "fontSize": "var(--wp--preset--font-size--medium)", + "lineHeight": "1.7" + } + } +} diff --git a/wp-content/themes/twentytwentythree/styles/sherbet.json b/wp-content/themes/twentytwentythree/styles/sherbet.json new file mode 100644 index 0000000..d6e2039 --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/sherbet.json @@ -0,0 +1,243 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Sherbet", + "settings": { + "color": { + "duotone": [ + { + "colors": [ + "#FF99FF", + "#FFFF99", + "#99FFFF" + ], + "name": "Default filter", + "slug": "default-filter" + } + ], + "gradients": [ + { + "gradient": "linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 50%, var(--wp--preset--color--tertiary) 100%)", + "name": "Primary to Secondary to Tertiary", + "slug": "primary-secondary-tertiary" + }, + { + "gradient": "linear-gradient(135deg, var(--wp--preset--color--primary) 0%, var(--wp--preset--color--secondary) 50%, var(--wp--preset--color--tertiary) 100%) fixed", + "name": "Primary to Secondary to Tertiary Fixed", + "slug": "primary-secondary-tertiary-fixed" + }, + { + "gradient": "linear-gradient(135deg, var(--wp--preset--color--tertiary) 0%, var(--wp--preset--color--secondary) 50%, var(--wp--preset--color--primary) 100%) fixed", + "name": "Tertiary to Secondary to Primary Fixed", + "slug": "tertiary-secondary-primary-fixed" + } + ], + "palette": [ + { + "color": "#FFFFFF", + "name": "Base", + "slug": "base" + }, + { + "color": "#000000", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#FFCCFF", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#FFFFCC", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#CCFFFF", + "name": "Tertiary", + "slug": "tertiary" + } + ] + }, + "typography": { + "fontSizes": [ + { + "fluid": false, + "size": "0.75rem", + "slug": "x-small" + }, + { + "fluid": { + "min": "0.875rem", + "max": "1rem" + }, + "size": "1rem", + "slug": "small" + }, + { + "fluid": { + "min": "1rem", + "max": "1.125rem" + }, + "size": "1.125rem", + "slug": "medium" + }, + { + "fluid": { + "min": "1.5rem", + "max": "1.75rem" + }, + "size": "1.75rem", + "slug": "large" + }, + { + "fluid": { + "min": "2rem", + "max": "2.25rem" + }, + "size": "2.25rem", + "slug": "x-large" + }, + { + "fluid": { + "min": "2.5rem", + "max": "2.75rem" + }, + "size": "2.75rem", + "slug": "xx-large" + } + ] + } + }, + "styles": { + "blocks": { + "core/comments": { + "elements": { + "link": { + ":active": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + } + }, + "core/comment-author-name": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "textTransform": "initial" + } + }, + "core/comment-content": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "textTransform": "initial" + } + }, + "core/navigation": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontWeight": "500", + "textTransform": "uppercase" + } + }, + "core/post-content": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + } + } + }, + "core/post-date": { + "typography": { + "textTransform": "uppercase" + } + }, + "core/post-featured-image": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + }, + "border": { + "color": "var(--wp--preset--color--tertiary)", + "style": "solid" + } + }, + "core/post-title": { + "typography": { + "fontWeight": "500", + "textTransform": "uppercase" + } + }, + "core/site-title": { + "typography": { + "fontWeight": "500" + } + }, + "core/template-part": { + "typography": { + "fontSize": "var(--wp--preset--font-size--x-small)", + "fontWeight": "400", + "textTransform": "uppercase" + } + } + }, + "color": { + "gradient": "var(--wp--preset--gradient--primary-secondary-tertiary)" + }, + "elements": { + "button": { + "border": { + "color": "var(--wp--preset--color--contrast)", + "radius": "99999px", + "style": "solid", + "width": "2px" + }, + "color": { + "background": "var(--wp--preset--color--base)", + "gradient": "var(--wp--preset--gradient--primary-secondary-tertiary-fixed)", + "text": "var(--wp--preset--color--contrast)" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--x-small)", + "fontWeight": "400", + "textTransform": "uppercase" + }, + ":hover": { + "color": { + "gradient": "var(--wp--preset--gradient--tertiary-secondary-primary-fixed)", + "text": "var(--wp--preset--color--contrast)" + } + }, + ":focus": { + "color": { + "background": "var(--wp--preset--color--contrast)", + "gradient": "none" + } + }, + ":active": { + "color": { + "background": "var(--wp--preset--color--contrast)", + "gradient": "none" + } + } + }, + "heading": { + "typography": { + "fontWeight": "500" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontFamily": "var(--wp--preset--font-family--inter)" + } + } +} diff --git a/wp-content/themes/twentytwentythree/styles/whisper.json b/wp-content/themes/twentytwentythree/styles/whisper.json new file mode 100644 index 0000000..3fd195e --- /dev/null +++ b/wp-content/themes/twentytwentythree/styles/whisper.json @@ -0,0 +1,550 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "title": "Whisper", + "settings": { + "color": { + "palette": [ + { + "color": "#E5E7F2", + "name": "Base", + "slug": "base" + }, + { + "color": "#47484B", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#B50B3E", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#0B0033", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#F9F9FB", + "name": "Tertiary", + "slug": "tertiary" + } + ] + }, + "layout": { + "contentSize": "710px", + "wideSize": "1200px" + }, + "typography": { + "fontSizes": [ + { + "fluid": { + "min": "0.875rem", + "max": "1rem" + }, + "size": "1rem", + "slug": "small" + }, + { + "fluid": { + "min": "1rem", + "max": "1.187rem" + }, + "size": "1.187rem", + "slug": "medium" + }, + { + "fluid": { + "min": "1.187rem", + "max": "1.3125rem" + }, + "size": "1.3125rem", + "slug": "large" + }, + { + "fluid": { + "min": "1.562rem", + "max": "2rem" + }, + "size": "2rem", + "slug": "x-large" + }, + { + "fluid": { + "min": "3.5rem", + "max": "5.7rem" + }, + "size": "5.7rem", + "slug": "xx-large" + } + ] + } + }, + "styles": { + "blocks": { + "core/navigation": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + "elements": { + "link": { + "border": { + "bottom": { + "color": "transparent", + "style": "solid", + "width": "0.2ch" + } + }, + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + ":hover": { + "border": { + "color": "var(--wp--preset--color--primary)" + }, + "color": { + "background": "transparent", + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "textDecoration": "none" + } + }, + ":focus": { + "typography": { + "textDecoration": "none" + } + }, + ":active": { + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + } + }, + "core/navigation-submenu": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + "core/post-content": { + "elements": { + "link": { + ":hover": { + "border": { + "color": "var(--wp--preset--color--contrast)" + }, + "color": { + "background": "var(--wp--preset--color--tertiary)" + }, + "typography": { + "textDecoration": "none" + } + } + } + } + }, + "core/post-date": { + "elements": { + "link": { + ":hover": { + "border": { + "color": "var(--wp--preset--color--contrast)" + }, + "color": { + "background": "var(--wp--preset--color--tertiary)" + }, + "typography": { + "textDecoration": "none" + } + } + } + } + }, + "core/post-title": { + "elements": { + "link": { + "border": { + "width": "0 !important" + }, + ":hover": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + ":focus": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + } + } + }, + "core/pullquote": { + "border": { + "color": "var(--wp--preset--color--contrast)", + "style": "double", + "width": "6px" + }, + "color": { + "text": "var(--wp--preset--color--secondary)" + } + }, + "core/quote": { + "border": { + "color": "var(--wp--preset--color--contrast)", + "style": "double", + "width": "0 0 0 6px" + }, + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "spacing": { + "margin": { + "left": "var(--wp--preset--spacing--30)" + }, + "padding": { + "left": "var(--wp--preset--spacing--30)" + } + } + }, + "core/query-pagination": { + "elements": { + "link": { + ":hover": { + "border": { + "color": "var(--wp--preset--color--contrast)" + }, + "color": { + "background": "var(--wp--preset--color--tertiary)" + }, + "typography": { + "textDecoration": "none" + } + }, + ":active": { + "border": { + "color": "var(--wp--preset--color--base)", + "width": "0 0 2px 0" + } + } + } + } + }, + "core/separator": { + "border": { + "color": "var(--wp--preset--color--contrast)", + "style": "double", + "width": "6px 0 0 0" + } + }, + "core/site-title": { + "elements": { + "link": { + "border": { + "color": "transparent" + }, + "color": { + "text": "var(--wp--preset--color--primary)" + }, + ":hover": { + "border": { + "color": "var(--wp--preset--color--primary)" + }, + "color": { + "background": "transparent" + }, + "typography": { + "textDecoration": "none" + } + }, + ":focus": { + "typography": { + "textDecoration": "none" + } + }, + ":active": { + "border": { + "color": "var(--wp--preset--color--primary)" + }, + "color": { + "background": "transparent" + }, + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)", + "fontSize": "var(--wp--preset--font-size--large)", + "fontWeight": "700", + "letterSpacing": "-0.01em", + "lineHeight": "1.4", + "textTransform": "capitalize" + } + }, + "core/comment-author-name":{ + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "none" + } + }, + ":focus": { + "typography": { + "textDecoration": "none" + } + } + } + } + }, + "core/comment-date": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "none" + } + }, + ":focus": { + "typography": { + "textDecoration": "none" + } + } + } + } + }, + "core/comment-edit-link": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "none" + } + }, + ":focus": { + "typography": { + "textDecoration": "none" + } + } + } + } + } + }, + "elements": { + "button": { + "border": { + "color": "var(--wp--preset--color--primary)", + "radius": "10px", + "style": "solid", + "width": "2px 2px 6px 2px !important" + }, + "color": { + "background": "transparent", + "text": "var(--wp--preset--color--primary)" + }, + "spacing": { + "padding": { + "top": "min(1rem, 3vw) !important", + "right": "min(2.75rem, 6vw) !important", + "bottom": "min(1rem, 3vw) !important", + "left": "min(2.75rem, 6vw) !important" + } + }, + "typography": { + "fontWeight": "700", + "letterSpacing": "1px", + "textTransform": "uppercase" + }, + ":hover": { + "border": { + "color": "var(--wp--preset--color--secondary)", + "width": "2px 2px 4px 2px !important" + }, + "color": { + "background": "var(--wp--preset--color--tertiary)", + "text": "var(--wp--preset--color--secondary)" + }, + "spacing": { + "padding": { + "bottom": "min(calc(1rem + 2px), 3vw) !important" + } + } + }, + ":focus": { + "border": { + "color": "var(--wp--preset--color--secondary)", + "style": "dashed dashed double", + "width": "2px 2px 4px 2px !important" + }, + "color": { + "background": "var(--wp--preset--color--tertiary)", + "text": "var(--wp--preset--color--secondary)" + }, + "spacing": { + "padding": { + "bottom": "min(calc(1rem + 2px), 3vw) !important" + } + } + }, + ":active": { + "border": { + "color": "var(--wp--preset--color--secondary)", + "width": "2px 2px 4px 2px !important" + }, + "color": { + "background": "var(--wp--preset--color--tertiary)", + "text": "var(--wp--preset--color--secondary)" + }, + "spacing": { + "padding": { + "bottom": "min(calc(1rem + 2px), 3vw) !important" + } + } + }, + ":visited": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + }, + "cite": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)" + } + }, + "h1": { + "typography": { + "fontSize": "clamp(4.21rem, 1.43vw + 3.85rem, 5rem)", + "fontWeight": "300", + "letterSpacing": "-0.01em" + } + }, + "h2": { + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "fontSize": "clamp(3.16rem, 1.08vw + 2.89rem, 3.75rem)", + "fontWeight": "400", + "letterSpacing": "-0.01em" + } + }, + "h3": { + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "fontSize": "clamp(2.37rem, 0.81vw + 2.17rem, 2.81rem)", + "fontWeight": "500" + } + }, + "h4": { + "typography": { + "fontSize": "clamp(1.78rem, 0.61vw + 1.63rem, 2.11rem)", + "fontWeight": "600" + } + }, + "h5": { + "typography": { + "fontSize": "clamp(1.33rem, 0.45vw + 1.22rem, 1.58rem)", + "fontWeight": "700", + "letterSpacing": "1px" + } + }, + "h6": { + "typography": { + "fontSize": "clamp(1rem, 0.34vw + 0.91rem, 1.19rem)", + "fontWeight": "900", + "letterSpacing": "2px" + } + }, + "heading": { + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)" + } + }, + "link": { + "border": { + "color": "var(--wp--preset--color--primary)", + "style": "solid", + "width": "0 0 2px 0" + }, + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + ":hover": { + "border": { + "color": "var(--wp--preset--color--contrast)" + }, + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "textDecoration": "none" + } + }, + ":focus": { + "border": { + "style": "dashed" + }, + "typography": { + "textDecoration": "none" + } + }, + ":active": { + "border": { + "width": "0" + }, + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "none" + } + } + }, + "border": { + "color": "var(--wp--preset--color--tertiary)", + "style": "solid", + "width": "max(1vw, 0.5rem)" + }, + "spacing": { + "padding": { + "top": "var(--wp--preset--spacing--40)", + "right": "var(--wp--preset--spacing--30)", + "bottom": "var(--wp--preset--spacing--40)", + "left": "var(--wp--preset--spacing--30)" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)" + } + } +} diff --git a/wp-content/themes/twentytwentythree/templates/404.html b/wp-content/themes/twentytwentythree/templates/404.html new file mode 100644 index 0000000..404842c --- /dev/null +++ b/wp-content/themes/twentytwentythree/templates/404.html @@ -0,0 +1,9 @@ + + + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentythree/templates/archive.html b/wp-content/themes/twentytwentythree/templates/archive.html new file mode 100644 index 0000000..74a8a5c --- /dev/null +++ b/wp-content/themes/twentytwentythree/templates/archive.html @@ -0,0 +1,29 @@ + + + +
    + + + +
    + + + + + + + +
    + + + + + + + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentythree/templates/blank.html b/wp-content/themes/twentytwentythree/templates/blank.html new file mode 100644 index 0000000..3d3bd7c --- /dev/null +++ b/wp-content/themes/twentytwentythree/templates/blank.html @@ -0,0 +1 @@ + diff --git a/wp-content/themes/twentytwentythree/templates/blog-alternative.html b/wp-content/themes/twentytwentythree/templates/blog-alternative.html new file mode 100644 index 0000000..cd6c89b --- /dev/null +++ b/wp-content/themes/twentytwentythree/templates/blog-alternative.html @@ -0,0 +1,29 @@ + + + +
    + +
    + + +
    + +
    + +
    + + + +
    + +
    + +
    + + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentythree/templates/home.html b/wp-content/themes/twentytwentythree/templates/home.html new file mode 100644 index 0000000..9b84d2b --- /dev/null +++ b/wp-content/themes/twentytwentythree/templates/home.html @@ -0,0 +1,37 @@ + + + +
    + +

    Mindblown: a blog about philosophy.

    + + + +
    + + + + + + + +
    + + + + + + + +
    + + + +
    + + + +
    + + + diff --git a/wp-content/themes/twentytwentythree/templates/index.html b/wp-content/themes/twentytwentythree/templates/index.html new file mode 100644 index 0000000..bed3d1e --- /dev/null +++ b/wp-content/themes/twentytwentythree/templates/index.html @@ -0,0 +1,27 @@ + + + +
    + +
    + + + + + + + +
    + + + + + + + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentythree/templates/page.html b/wp-content/themes/twentytwentythree/templates/page.html new file mode 100644 index 0000000..c9408fc --- /dev/null +++ b/wp-content/themes/twentytwentythree/templates/page.html @@ -0,0 +1,17 @@ + + + +
    + +
    + + +
    + + + + +
    + + + diff --git a/wp-content/themes/twentytwentythree/templates/search.html b/wp-content/themes/twentytwentythree/templates/search.html new file mode 100644 index 0000000..c80325d --- /dev/null +++ b/wp-content/themes/twentytwentythree/templates/search.html @@ -0,0 +1,33 @@ + + + +
    + + + +
    + + + + + + + +
    + + + + + + + + + + + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentythree/templates/single.html b/wp-content/themes/twentytwentythree/templates/single.html new file mode 100644 index 0000000..33d4dd4 --- /dev/null +++ b/wp-content/themes/twentytwentythree/templates/single.html @@ -0,0 +1,18 @@ + + + +
    + +
    + + +
    + + + + + +
    + + + diff --git a/wp-content/themes/twentytwentythree/theme.json b/wp-content/themes/twentytwentythree/theme.json new file mode 100644 index 0000000..32eb7ed --- /dev/null +++ b/wp-content/themes/twentytwentythree/theme.json @@ -0,0 +1,741 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "customTemplates": [ + { + "name": "blank", + "postTypes": [ + "page", + "post" + ], + "title": "Blank" + }, + { + "name": "blog-alternative", + "postTypes": [ + "page" + ], + "title": "Blog (Alternative)" + }, + { + "name": "404", + "postTypes": [ + "page" + ], + "title": "404" + } + ], + "settings": { + "appearanceTools": true, + "color": { + "palette": [ + { + "color": "#ffffff", + "name": "Base", + "slug": "base" + }, + { + "color": "#000000", + "name": "Contrast", + "slug": "contrast" + }, + { + "color": "#9DFF20", + "name": "Primary", + "slug": "primary" + }, + { + "color": "#345C00", + "name": "Secondary", + "slug": "secondary" + }, + { + "color": "#F6F6F6", + "name": "Tertiary", + "slug": "tertiary" + } + ] + }, + "layout": { + "contentSize": "650px", + "wideSize": "1200px" + }, + "spacing": { + "spacingScale": { + "steps": 0 + }, + "spacingSizes": [ + { + "size": "clamp(1.5rem, 5vw, 2rem)", + "slug": "30", + "name": "1" + }, + { + "size": "clamp(1.8rem, 1.8rem + ((1vw - 0.48rem) * 2.885), 3rem)", + "slug": "40", + "name": "2" + }, + { + "size": "clamp(2.5rem, 8vw, 4.5rem)", + "slug": "50", + "name": "3" + }, + { + "size": "clamp(3.75rem, 10vw, 7rem)", + "slug": "60", + "name": "4" + }, + { + "size": "clamp(5rem, 5.25rem + ((1vw - 0.48rem) * 9.096), 8rem)", + "slug": "70", + "name": "5" + }, + { + "size": "clamp(7rem, 14vw, 11rem)", + "slug": "80", + "name": "6" + } + ], + "units": [ + "%", + "px", + "em", + "rem", + "vh", + "vw" + ] + }, + "typography": { + "dropCap": false, + "fluid": true, + "fontFamilies": [ + { + "fontFace": [ + { + "fontFamily": "DM Sans", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "400", + "src": [ + "file:./assets/fonts/dm-sans/DMSans-Regular.woff2" + ] + }, + { + "fontFamily": "DM Sans", + "fontStretch": "normal", + "fontStyle": "italic", + "fontWeight": "400", + "src": [ + "file:./assets/fonts/dm-sans/DMSans-Regular-Italic.woff2" + ] + }, + { + "fontFamily": "DM Sans", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "700", + "src": [ + "file:./assets/fonts/dm-sans/DMSans-Bold.woff2" + ] + }, + { + "fontFamily": "DM Sans", + "fontStretch": "normal", + "fontStyle": "italic", + "fontWeight": "700", + "src": [ + "file:./assets/fonts/dm-sans/DMSans-Bold-Italic.woff2" + ] + } + ], + "fontFamily": "\"DM Sans\", sans-serif", + "name": "DM Sans", + "slug": "dm-sans" + }, + { + "fontFace": [ + { + "fontDisplay": "block", + "fontFamily": "IBM Plex Mono", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "300", + "src": [ + "file:./assets/fonts/ibm-plex-mono/IBMPlexMono-Light.woff2" + ] + }, + { + "fontDisplay": "block", + "fontFamily": "IBM Plex Mono", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "400", + "src": [ + "file:./assets/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2" + ] + }, + { + "fontDisplay": "block", + "fontFamily": "IBM Plex Mono", + "fontStretch": "normal", + "fontStyle": "italic", + "fontWeight": "400", + "src": [ + "file:./assets/fonts/ibm-plex-mono/IBMPlexMono-Italic.woff2" + ] + }, + { + "fontDisplay": "block", + "fontFamily": "IBM Plex Mono", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "700", + "src": [ + "file:./assets/fonts/ibm-plex-mono/IBMPlexMono-Bold.woff2" + ] + } + ], + "fontFamily": "'IBM Plex Mono', monospace", + "name": "IBM Plex Mono", + "slug": "ibm-plex-mono" + }, + { + "fontFace": [ + { + "fontFamily": "Inter", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "200 900", + "src": [ + "file:./assets/fonts/inter/Inter-VariableFont_slnt,wght.ttf" + ] + } + ], + "fontFamily": "\"Inter\", sans-serif", + "name": "Inter", + "slug": "inter" + }, + { + "fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif", + "name": "System Font", + "slug": "system-font" + }, + { + "fontFace": [ + { + "fontFamily": "Source Serif Pro", + "fontStretch": "normal", + "fontStyle": "normal", + "fontWeight": "200 900", + "src": [ + "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2" + ] + }, + { + "fontFamily": "Source Serif Pro", + "fontStretch": "normal", + "fontStyle": "italic", + "fontWeight": "200 900", + "src": [ + "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2" + ] + } + ], + "fontFamily": "\"Source Serif Pro\", serif", + "name": "Source Serif Pro", + "slug": "source-serif-pro" + } + ], + "fontSizes": [ + { + "fluid": { + "min": "0.875rem", + "max": "1rem" + }, + "size": "1rem", + "slug": "small" + }, + { + "fluid": { + "min": "1rem", + "max": "1.125rem" + }, + "size": "1.125rem", + "slug": "medium" + }, + { + "fluid": { + "min": "1.75rem", + "max": "1.875rem" + }, + "size": "1.75rem", + "slug": "large" + }, + { + "fluid": false, + "size": "2.25rem", + "slug": "x-large" + }, + { + "fluid": { + "min": "6.1rem", + "max": "10rem" + }, + "size": "10rem", + "slug": "xx-large" + } + ] + }, + "useRootPaddingAwareAlignments": true + }, + "styles": { + "blocks": { + "core/navigation": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + ":focus": { + "typography": { + "textDecoration": "underline dashed" + } + }, + ":active": { + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-author": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-content": { + "elements": { + "link": { + "color": { + "text": "var(--wp--preset--color--secondary)" + } + } + } + }, + "core/post-excerpt": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)" + } + }, + "core/post-date": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontWeight": "400" + }, + "elements": { + "link": { + "typography": { + "textDecoration": "none" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + } + } + } + }, + "core/post-terms": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/post-title": { + "spacing": { + "margin": { + "bottom": "1.25rem", + "top": "1.25rem" + } + }, + "typography": { + "fontWeight": "400" + }, + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + ":focus": { + "typography": { + "textDecoration": "underline dashed" + } + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "none" + } + } + } + }, + "core/comments-title":{ + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + }, + "spacing": { + "margin": { + "bottom": "var(--wp--preset--spacing--40)" + } + } + }, + "core/comment-author-name": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + ":focus": { + "typography": { + "textDecoration": "underline dashed" + } + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "none" + } + } + } + }, + "core/comment-date": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + }, + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + ":focus": { + "typography": { + "textDecoration": "underline dashed" + } + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "none" + } + } + } + }, + "core/comment-edit-link": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comment-reply-link": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)" + } + }, + "core/comments-pagination": { + "spacing": { + "margin": { + "top": "var(--wp--preset--spacing--40)" + } + }, + "elements": { + "link": { + "typography": { + "textDecoration": "none" + } + } + } + }, + "core/pullquote": { + "border": { + "style": "solid", + "width": "1px 0" + }, + "elements": { + "cite": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontStyle": "normal", + "textTransform": "none" + } + } + }, + "typography": { + "lineHeight": "1.3" + }, + "spacing": { + "margin": { + "bottom": "var(--wp--preset--spacing--40) !important", + "top": "var(--wp--preset--spacing--40) !important" + } + } + }, + "core/query": { + "elements": { + "h2": { + "typography": { + "fontSize": "var(--wp--preset--font-size--x-large)" + } + } + } + }, + "core/query-pagination": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontWeight": "400" + }, + "elements": { + "link": { + "typography": { + "textDecoration": "none" + }, + ":hover": { + "typography": { + "textDecoration": "underline" + } + } + } + } + }, + "core/quote": { + "border": { + "left": { + "color": "inherit", + "style": "solid", + "width": "1px" + } + }, + "elements": { + "cite": { + "typography": { + "fontSize": "var(--wp--preset--font-size--small)", + "fontStyle": "normal" + } + } + }, + "spacing": { + "padding": { + "left": "var(--wp--preset--spacing--30)", + "right": "var(--wp--preset--spacing--30)" + } + } + }, + "core/site-title": { + "elements": { + "link": { + ":hover": { + "typography": { + "textDecoration": "underline" + } + }, + ":focus": { + "typography": { + "textDecoration": "underline dashed" + } + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "none" + } + } + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "fontWeight": "normal", + "lineHeight": "1.4" + } + }, + "core/separator": { + "css": " &:not(.is-style-wide):not(.is-style-dots):not(.alignwide):not(.alignfull){width: 100px}" + } + }, + "color": { + "background": "var(--wp--preset--color--base)", + "text": "var(--wp--preset--color--contrast)" + }, + "elements": { + "button": { + "border": { + "radius": "0" + }, + "color": { + "background": "var(--wp--preset--color--primary)", + "text": "var(--wp--preset--color--contrast)" + }, + ":hover": { + "color": { + "background": "var(--wp--preset--color--contrast)", + "text": "var(--wp--preset--color--base)" + } + }, + ":focus": { + "color": { + "background": "var(--wp--preset--color--contrast)", + "text": "var(--wp--preset--color--base)" + } + }, + ":active": { + "color": { + "background": "var(--wp--preset--color--secondary)", + "text": "var(--wp--preset--color--base)" + } + }, + ":visited": { + "color": { + "text": "var(--wp--preset--color--contrast)" + } + } + }, + "h1": { + "typography": { + "fontSize": "3.625rem", + "lineHeight": "1.2" + } + }, + "h2": { + "typography": { + "fontSize": "clamp(2.625rem, calc(2.625rem + ((1vw - 0.48rem) * 8.4135)), 3.25rem)", + "lineHeight": "1.2" + } + }, + "h3": { + "typography": { + "fontSize": "var(--wp--preset--font-size--x-large)" + } + }, + "h4": { + "typography": { + "fontSize": "var(--wp--preset--font-size--large)" + } + }, + "h5": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "fontWeight": "700", + "textTransform": "uppercase" + } + }, + "h6": { + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)", + "textTransform": "uppercase" + } + }, + "heading": { + "typography": { + "fontWeight": "400", + "lineHeight": "1.4" + } + }, + "link": { + "color": { + "text": "var(--wp--preset--color--contrast)" + }, + ":hover": { + "typography": { + "textDecoration": "none" + } + }, + ":focus": { + "typography": { + "textDecoration": "underline dashed" + } + }, + ":active": { + "color": { + "text": "var(--wp--preset--color--secondary)" + }, + "typography": { + "textDecoration": "none" + } + }, + "typography": { + "textDecoration": "underline" + } + } + }, + "spacing": { + "blockGap": "1.5rem", + "padding": { + "top": "var(--wp--preset--spacing--40)", + "right": "var(--wp--preset--spacing--30)", + "bottom": "var(--wp--preset--spacing--40)", + "left": "var(--wp--preset--spacing--30)" + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--system-font)", + "fontSize": "var(--wp--preset--font-size--medium)", + "lineHeight": "1.6" + } + }, + "templateParts": [ + { + "area": "header", + "name": "header", + "title": "Header" + }, + { + "area": "footer", + "name": "footer", + "title": "Footer" + }, + { + "area": "uncategorized", + "name": "comments", + "title": "Comments Template Part" + }, + { + "area": "uncategorized", + "name": "post-meta", + "title": "Post Meta" + } + ] +} diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.otf.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.otf.woff2 new file mode 100644 index 0000000..2387849 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.otf.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.ttf.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.ttf.woff2 new file mode 100644 index 0000000..4cbd4c3 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Italic.ttf.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.otf.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.otf.woff2 new file mode 100644 index 0000000..28701e6 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.otf.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.ttf.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.ttf.woff2 new file mode 100644 index 0000000..3b74d30 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/SourceSerif4Variable-Roman.ttf.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-Bold.ttf b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-Bold.ttf new file mode 100644 index 0000000..32bc5df Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-Bold.ttf differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-BoldItalic.ttf b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-BoldItalic.ttf new file mode 100644 index 0000000..8c458fb Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-BoldItalic.ttf differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-Italic.ttf b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-Italic.ttf new file mode 100644 index 0000000..d6655b8 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-Italic.ttf differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-Regular.ttf b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-Regular.ttf new file mode 100644 index 0000000..40c9bfd Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/DMSans-Regular.ttf differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/LICENSE.txt b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/LICENSE.txt new file mode 100644 index 0000000..02d522f --- /dev/null +++ b/wp-content/themes/twentytwentytwo/assets/fonts/dm-sans/LICENSE.txt @@ -0,0 +1,94 @@ +Copyright 2014-2017 Indian Type Foundry (info@indiantypefoundry.com). Copyright 2019 Google LLC. +Copyright 2014-2018 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. Copyright 2019 Google LLC. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-Bold.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-Bold.woff2 new file mode 100644 index 0000000..9821ed3 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-Bold.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-BoldItalic.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-BoldItalic.woff2 new file mode 100644 index 0000000..d033d12 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-BoldItalic.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-Text.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-Text.woff2 new file mode 100644 index 0000000..810a4f6 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-Text.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-TextItalic.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-TextItalic.woff2 new file mode 100644 index 0000000..c531b56 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexMono-TextItalic.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-ExtraLight.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-ExtraLight.woff2 new file mode 100644 index 0000000..68969ae Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-ExtraLight.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-ExtraLightItalic.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-ExtraLightItalic.woff2 new file mode 100644 index 0000000..8dc0570 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-ExtraLightItalic.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-Light.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-Light.woff2 new file mode 100644 index 0000000..b83ec18 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-Light.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-LightItalic.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-LightItalic.woff2 new file mode 100644 index 0000000..8953e46 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/IBMPlexSans-LightItalic.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/LICENSE.txt b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/LICENSE.txt new file mode 100644 index 0000000..01497cc --- /dev/null +++ b/wp-content/themes/twentytwentytwo/assets/fonts/ibm-plex/LICENSE.txt @@ -0,0 +1,93 @@ +Copyright © 2017 IBM Corp. with Reserved Font Name "Plex" + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/inter/Inter.ttf b/wp-content/themes/twentytwentytwo/assets/fonts/inter/Inter.ttf new file mode 100644 index 0000000..1cb674b Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/inter/Inter.ttf differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/inter/LICENSE.txt b/wp-content/themes/twentytwentytwo/assets/fonts/inter/LICENSE.txt new file mode 100644 index 0000000..ff80f8c --- /dev/null +++ b/wp-content/themes/twentytwentytwo/assets/fonts/inter/LICENSE.txt @@ -0,0 +1,94 @@ +Copyright (c) 2016-2020 The Inter Project Authors. +"Inter" is trademark of Rasmus Andersson. +https://github.com/rsms/inter + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/LICENSE.md b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/LICENSE.md new file mode 100644 index 0000000..7cd3e74 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/LICENSE.md @@ -0,0 +1,93 @@ +Copyright 2014 - 2021 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, + in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, + redistributed and/or sold with any software, provided that each copy + contains the above copyright notice and this license. These can be + included either as stand-alone text files, human-readable headers or + in the appropriate machine-readable metadata fields within text or + binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font + Name(s) unless explicit written permission is granted by the corresponding + Copyright Holder. This restriction only applies to the primary font name as + presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font + Software shall not be used to promote, endorse or advertise any + Modified Version, except to acknowledge the contribution(s) of the + Copyright Holder(s) and the Author(s) or with their explicit written + permission. + +5) The Font Software, modified or unmodified, in part or in whole, + must be distributed entirely under this license, and must not be + distributed under any other license. The requirement for fonts to + remain under this license does not apply to any document created + using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.otf.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.otf.woff2 new file mode 100644 index 0000000..2387849 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.otf.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2 new file mode 100644 index 0000000..4cbd4c3 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.otf.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.otf.woff2 new file mode 100644 index 0000000..28701e6 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.otf.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2 b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2 new file mode 100644 index 0000000..3b74d30 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2 differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/bird-on-black.jpg b/wp-content/themes/twentytwentytwo/assets/images/bird-on-black.jpg new file mode 100644 index 0000000..15194fe Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/bird-on-black.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/bird-on-gray.jpg b/wp-content/themes/twentytwentytwo/assets/images/bird-on-gray.jpg new file mode 100644 index 0000000..7f90926 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/bird-on-gray.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/bird-on-green.jpg b/wp-content/themes/twentytwentytwo/assets/images/bird-on-green.jpg new file mode 100644 index 0000000..86f6265 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/bird-on-green.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/bird-on-salmon.jpg b/wp-content/themes/twentytwentytwo/assets/images/bird-on-salmon.jpg new file mode 100644 index 0000000..d854f6d Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/bird-on-salmon.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/divider-black.png b/wp-content/themes/twentytwentytwo/assets/images/divider-black.png new file mode 100644 index 0000000..bfaafd7 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/divider-black.png differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/divider-white.png b/wp-content/themes/twentytwentytwo/assets/images/divider-white.png new file mode 100644 index 0000000..0c045e5 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/divider-white.png differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/ducks.jpg b/wp-content/themes/twentytwentytwo/assets/images/ducks.jpg new file mode 100644 index 0000000..ff8c3a2 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/ducks.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-gray-a.jpg b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-gray-a.jpg new file mode 100644 index 0000000..f2b0c1d Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-gray-a.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-gray-b.jpg b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-gray-b.jpg new file mode 100644 index 0000000..78df7e7 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-gray-b.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-gray-c.jpg b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-gray-c.jpg new file mode 100644 index 0000000..ffca803 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-gray-c.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-salmon.jpg b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-salmon.jpg new file mode 100644 index 0000000..2811480 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-salmon.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-a.png b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-a.png new file mode 100644 index 0000000..e89c086 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-a.png differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-b.png b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-b.png new file mode 100644 index 0000000..417fed1 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-b.png differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-c.png b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-c.png new file mode 100644 index 0000000..4f6c2e3 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-c.png differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-d.png b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-d.png new file mode 100644 index 0000000..88892ea Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/flight-path-on-transparent-d.png differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/icon-binoculars.png b/wp-content/themes/twentytwentytwo/assets/images/icon-binoculars.png new file mode 100644 index 0000000..283c38c Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/icon-binoculars.png differ diff --git a/wp-content/themes/twentytwentytwo/assets/images/icon-bird.jpg b/wp-content/themes/twentytwentytwo/assets/images/icon-bird.jpg new file mode 100644 index 0000000..308cadc Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/images/icon-bird.jpg differ diff --git a/wp-content/themes/twentytwentytwo/assets/videos/birds.mp4 b/wp-content/themes/twentytwentytwo/assets/videos/birds.mp4 new file mode 100644 index 0000000..2872b52 Binary files /dev/null and b/wp-content/themes/twentytwentytwo/assets/videos/birds.mp4 differ diff --git a/wp-content/themes/twentytwentytwo/functions.php b/wp-content/themes/twentytwentytwo/functions.php new file mode 100644 index 0000000..cd994be --- /dev/null +++ b/wp-content/themes/twentytwentytwo/functions.php @@ -0,0 +1,65 @@ +get( 'Version' ); + + $version_string = is_string( $theme_version ) ? $theme_version : false; + wp_register_style( + 'twentytwentytwo-style', + get_template_directory_uri() . '/style.css', + array(), + $version_string + ); + + // Enqueue theme stylesheet. + wp_enqueue_style( 'twentytwentytwo-style' ); + } + +endif; + +add_action( 'wp_enqueue_scripts', 'twentytwentytwo_styles' ); + +// Add block patterns +require get_template_directory() . '/inc/block-patterns.php'; diff --git a/wp-content/themes/twentytwentytwo/inc/block-patterns.php b/wp-content/themes/twentytwentytwo/inc/block-patterns.php new file mode 100644 index 0000000..f47e26e --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/block-patterns.php @@ -0,0 +1,135 @@ + array( 'label' => __( 'Featured', 'twentytwentytwo' ) ), + 'footer' => array( 'label' => __( 'Footers', 'twentytwentytwo' ) ), + 'header' => array( 'label' => __( 'Headers', 'twentytwentytwo' ) ), + 'query' => array( 'label' => __( 'Query', 'twentytwentytwo' ) ), + 'twentytwentytwo_pages' => array( 'label' => __( 'Pages', 'twentytwentytwo' ) ), + ); + + /** + * Filters the theme block pattern categories. + * + * @since Twenty Twenty-Two 1.0 + * + * @param array[] $block_pattern_categories { + * An associative array of block pattern categories, keyed by category name. + * + * @type array[] $properties { + * An array of block category properties. + * + * @type string $label A human-readable label for the pattern category. + * } + * } + */ + $block_pattern_categories = apply_filters( 'twentytwentytwo_block_pattern_categories', $block_pattern_categories ); + + foreach ( $block_pattern_categories as $name => $properties ) { + if ( ! WP_Block_Pattern_Categories_Registry::get_instance()->is_registered( $name ) ) { + register_block_pattern_category( $name, $properties ); + } + } + + $block_patterns = array( + 'footer-default', + 'footer-dark', + 'footer-logo', + 'footer-navigation', + 'footer-title-tagline-social', + 'footer-social-copyright', + 'footer-navigation-copyright', + 'footer-about-title-logo', + 'footer-query-title-citation', + 'footer-query-images-title-citation', + 'footer-blog', + 'general-subscribe', + 'general-featured-posts', + 'general-layered-images-with-duotone', + 'general-wide-image-intro-buttons', + 'general-large-list-names', + 'general-video-header-details', + 'general-list-events', + 'general-two-images-text', + 'general-image-with-caption', + 'general-video-trailer', + 'general-pricing-table', + 'general-divider-light', + 'general-divider-dark', + 'header-default', + 'header-large-dark', + 'header-small-dark', + 'header-image-background', + 'header-image-background-overlay', + 'header-with-tagline', + 'header-text-only-green-background', + 'header-text-only-salmon-background', + 'header-title-and-button', + 'header-text-only-with-tagline-black-background', + 'header-logo-navigation-gray-background', + 'header-logo-navigation-social-black-background', + 'header-title-navigation-social', + 'header-logo-navigation-offset-tagline', + 'header-stacked', + 'header-centered-logo', + 'header-centered-logo-black-background', + 'header-centered-title-navigation-social', + 'header-title-and-button', + 'hidden-404', + 'hidden-bird', + 'hidden-heading-and-bird', + 'page-about-media-left', + 'page-about-simple-dark', + 'page-about-media-right', + 'page-about-solid-color', + 'page-about-links', + 'page-about-links-dark', + 'page-about-large-image-and-buttons', + 'page-layout-image-and-text', + 'page-layout-image-text-and-video', + 'page-layout-two-columns', + 'page-sidebar-poster', + 'page-sidebar-grid-posts', + 'page-sidebar-blog-posts', + 'page-sidebar-blog-posts-right', + 'query-default', + 'query-simple-blog', + 'query-grid', + 'query-text-grid', + 'query-image-grid', + 'query-large-titles', + 'query-irregular-grid', + ); + + /** + * Filters the theme block patterns. + * + * @since Twenty Twenty-Two 1.0 + * + * @param array $block_patterns List of block patterns by name. + */ + $block_patterns = apply_filters( 'twentytwentytwo_block_patterns', $block_patterns ); + + foreach ( $block_patterns as $block_pattern ) { + $pattern_file = get_theme_file_path( '/inc/patterns/' . $block_pattern . '.php' ); + + register_block_pattern( + 'twentytwentytwo/' . $block_pattern, + require $pattern_file + ); + } +} +add_action( 'init', 'twentytwentytwo_register_block_patterns', 9 ); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-about-title-logo.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-about-title-logo.php new file mode 100644 index 0000000..dab9b04 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-about-title-logo.php @@ -0,0 +1,32 @@ + __( 'Footer with text, title, and logo', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    +
    +

    ' . esc_html__( 'About us', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'We are a rogue collective of bird watchers. We’ve been known to sneak through fences, climb perimeter walls, and generally trespass in order to observe the rarest of birds.', 'twentytwentytwo' ) . '

    + + + +
    + + +
    + + + +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-blog.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-blog.php new file mode 100644 index 0000000..c1306cb --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-blog.php @@ -0,0 +1,55 @@ + __( 'Blog footer', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    +
    +

    ' . esc_html__( 'About us', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'We are a rogue collective of bird watchers. We’ve been known to sneak through fences, climb perimeter walls, and generally trespass in order to observe the rarest of birds.', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . esc_html__( 'Latest posts', 'twentytwentytwo' ) . '

    + + +
    + + + +
    +

    ' . esc_html__( 'Categories', 'twentytwentytwo' ) . '

    + + +
    +
    + + + +
    + + + +
    + + +

    ' . + sprintf( + /* Translators: WordPress link. */ + esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), + 'WordPress' + ) . '

    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-dark.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-dark.php new file mode 100644 index 0000000..b2ec362 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-dark.php @@ -0,0 +1,23 @@ + __( 'Dark footer with title and citation', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    + + +

    ' . + sprintf( + /* Translators: WordPress link. */ + esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), + 'WordPress' + ) . '

    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-default.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-default.php new file mode 100644 index 0000000..3682643 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-default.php @@ -0,0 +1,23 @@ + __( 'Default footer', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    + + +

    ' . + sprintf( + /* Translators: WordPress link. */ + esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), + 'WordPress' + ) . '

    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-logo.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-logo.php new file mode 100644 index 0000000..caa44e8 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-logo.php @@ -0,0 +1,23 @@ + __( 'Footer with logo and citation', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    + + +

    ' . + sprintf( + /* Translators: WordPress link. */ + esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), + 'WordPress' + ) . '

    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-navigation-copyright.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-navigation-copyright.php new file mode 100644 index 0000000..d0b5542 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-navigation-copyright.php @@ -0,0 +1,24 @@ + __( 'Footer with navigation and copyright', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    + + + + +
    + + + +

    ' . esc_html__( '© Site Title', 'twentytwentytwo' ) . '

    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-navigation.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-navigation.php new file mode 100644 index 0000000..79792c7 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-navigation.php @@ -0,0 +1,25 @@ + __( 'Footer with navigation and citation', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    + + + + +

    ' . + sprintf( + /* Translators: WordPress link. */ + esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), + 'WordPress' + ) . '

    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-images-title-citation.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-images-title-citation.php new file mode 100644 index 0000000..a79c1d4 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-images-title-citation.php @@ -0,0 +1,41 @@ + __( 'Footer with query, featured images, title, and citation', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    + + + + + + + +
    + + + +
    + + + +
    + +
    + +

    ' . + sprintf( + /* Translators: WordPress link. */ + esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), + 'WordPress' + ) . '

    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php new file mode 100644 index 0000000..13bb43d --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-query-title-citation.php @@ -0,0 +1,39 @@ + __( 'Footer with query, title, and citation', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    + + + + + +
    + + + +
    + + + +
    + +
    + +

    ' . + sprintf( + /* Translators: WordPress link. */ + esc_html__( 'Proudly powered by %s', 'twentytwentytwo' ), + 'WordPress' + ) . '

    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-social-copyright.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-social-copyright.php new file mode 100644 index 0000000..0c7e4ae --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-social-copyright.php @@ -0,0 +1,28 @@ + __( 'Footer with social links and copyright', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    +
      + + + +
    + + + +
    + + + +

    ' . esc_html__( '© Site Title', 'twentytwentytwo' ) . '

    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/footer-title-tagline-social.php b/wp-content/themes/twentytwentytwo/inc/patterns/footer-title-tagline-social.php new file mode 100644 index 0000000..84d888b --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/footer-title-tagline-social.php @@ -0,0 +1,26 @@ + __( 'Footer with title, tagline, and social links on a dark background', 'twentytwentytwo' ), + 'categories' => array( 'footer' ), + 'blockTypes' => array( 'core/template-part/footer' ), + 'content' => ' +
    +
    +
    + +
    + + + +
      + + + +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-dark.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-dark.php new file mode 100644 index 0000000..3255e9d --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-dark.php @@ -0,0 +1,13 @@ + __( 'Divider with image and color (dark)', 'twentytwentytwo' ), + 'categories' => array( 'featured' ), + 'content' => ' +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-light.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-light.php new file mode 100644 index 0000000..a29b825 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-divider-light.php @@ -0,0 +1,13 @@ + __( 'Divider with image and color (light)', 'twentytwentytwo' ), + 'categories' => array( 'featured' ), + 'content' => ' +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-featured-posts.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-featured-posts.php new file mode 100644 index 0000000..55cbdfd --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-featured-posts.php @@ -0,0 +1,25 @@ + __( 'Featured posts', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'query' ), + 'content' => ' +
    +

    ' . esc_html__( 'Latest posts', 'twentytwentytwo' ) . '

    + + + +
    + + + + + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-image-with-caption.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-image-with-caption.php new file mode 100644 index 0000000..0870da3 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-image-with-caption.php @@ -0,0 +1,19 @@ + __( 'Image with caption', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'columns', 'gallery' ), + 'content' => ' +
    +
    ' . esc_attr__( 'Hummingbird illustration', 'twentytwentytwo' ) . '
    +

    ' . esc_html__( 'Hummingbird', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'A beautiful bird featuring a surprising set of color feathers.', 'twentytwentytwo' ) . '

    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-large-list-names.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-large-list-names.php new file mode 100644 index 0000000..d7bd816 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-large-list-names.php @@ -0,0 +1,35 @@ + __( 'Large list of names', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'text' ), + 'content' => ' +
    +
    +
    ' . esc_attr__( 'An icon representing binoculars.', 'twentytwentytwo' ) . '
    +
    + + + +
    +
    + + + +

    ' . esc_html__( 'Jesús Rodriguez, Doug Stilton, Emery Driscoll, Megan Perry, Rowan Price, Angelo Tso, Edward Stilton, Amy Jensen, Boston Bell, Shay Ford, Lee Cunningham, Evelynn Ray, Landen Reese, Ewan Hart, Jenna Chan, Phoenix Murray, Mel Saunders, Aldo Davidson, Zain Hall.', 'twentytwentytwo' ) . '

    + + + +
    + + + +
    +
    ' . esc_html__( 'Read more', 'twentytwentytwo' ) . '
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-layered-images-with-duotone.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-layered-images-with-duotone.php new file mode 100644 index 0000000..629a0a2 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-layered-images-with-duotone.php @@ -0,0 +1,13 @@ + __( 'Layered images with duotone', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'gallery' ), + 'content' => ' +
    ' . esc_attr__( 'Painting of ducks in the water.', 'twentytwentytwo' ) . '
    +
    ' . esc_attr__( 'Illustration of a flying bird.', 'twentytwentytwo' ) . '
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-list-events.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-list-events.php new file mode 100644 index 0000000..af680dc --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-list-events.php @@ -0,0 +1,133 @@ + __( 'List of events', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'text' ), + 'content' => ' +
    +
    +

    ' . esc_html__( 'Speaker Series', 'twentytwentytwo' ) . '

    + + + +
    + + + +
    + + + +
    +
    +

    ' . esc_html__( 'May 14th, 2022, 6 PM', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . esc_html__( 'Jesús Rodriguez', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . wp_kses_post( __( 'The Vintagé Theater
    245 Arden Rd.
    Gardenville, NH', 'twentytwentytwo' ) ) . '

    +
    +
    + + + +
    + + + +
    +
    +

    ' . esc_html__( 'May 16th, 2022, 6 PM', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . esc_html__( 'Doug Stilton', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . wp_kses_post( __( 'The Swell Theater
    120 River Rd.
    Rainfall, NH', 'twentytwentytwo' ) ) . '

    +
    +
    + + + +
    + + + +
    +
    +

    ' . esc_html__( 'May 18th, 2022, 7 PM', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . esc_html__( 'Amy Jensen', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . wp_kses_post( __( 'The Vintagé Theater
    245 Arden Rd.
    Gardenville, NH', 'twentytwentytwo' ) ) . '

    +
    +
    + + + +
    + + + +
    +
    +

    ' . esc_html__( 'May 20th, 2022, 6 PM', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . esc_html__( 'Emery Driscoll', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . wp_kses_post( __( 'The Swell Theater
    120 River Rd.
    Rainfall, NH', 'twentytwentytwo' ) ) . '

    +
    +
    + + + +
    + + + +
    + + + +
    +
      + + + +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-pricing-table.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-pricing-table.php new file mode 100644 index 0000000..b385edd --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-pricing-table.php @@ -0,0 +1,93 @@ + __( 'Pricing table', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'columns', 'buttons' ), + 'content' => ' +
    +
    +
    + + + +

    ' . esc_html( _x( '1', 'First item in a numbered list.', 'twentytwentytwo' ) ) . '

    + + + +

    ' . esc_html__( 'Pigeon', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'Help support our growing community by joining at the Pigeon level. Your support will help pay our writers, and you’ll get access to our exclusive newsletter.', 'twentytwentytwo' ) . '

    + + + +
    +
    ' . esc_html__( '$25', 'twentytwentytwo' ) . '
    +
    + + + +
    +
    + + + +
    +
    + + + +

    ' . esc_html( _x( '2', 'Second item in a numbered list.', 'twentytwentytwo' ) ) . '

    + + + +

    ' . esc_html__( 'Sparrow', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'Join at the Sparrow level and become a member of our flock! You’ll receive our newsletter, plus a bird pin that you can wear with pride when you’re out in nature.', 'twentytwentytwo' ) . '

    + + + +
    +
    ' . esc_html__( '$75', 'twentytwentytwo' ) . '
    +
    + + + +
    +
    + + + +
    +
    + + + +

    ' . esc_html( _x( '3', 'Third item in a numbered list.', 'twentytwentytwo' ) ) . '

    + + + +

    ' . esc_html__( 'Falcon', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'Play a leading role for our community by joining at the Falcon level. This level earns you a seat on our board, where you can help plan future birdwatching expeditions.', 'twentytwentytwo' ) . '

    + + + +
    +
    ' . esc_html__( '$150', 'twentytwentytwo' ) . '
    +
    + + + +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-subscribe.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-subscribe.php new file mode 100644 index 0000000..34137cd --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-subscribe.php @@ -0,0 +1,27 @@ + __( 'Subscribe callout', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'buttons' ), + 'content' => ' +
    +
    +

    ' . wp_kses_post( __( 'Watch birds
    from your inbox', 'twentytwentytwo' ) ) . '

    + + + +
    +
    ' . esc_html__( 'Join our mailing list', 'twentytwentytwo' ) . '
    +
    +
    + + + +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-two-images-text.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-two-images-text.php new file mode 100644 index 0000000..5534b6f --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-two-images-text.php @@ -0,0 +1,47 @@ + __( 'Two images with text', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'columns', 'gallery' ), + 'content' => ' +
    +
    +
    ' . esc_attr__( 'Illustration of a bird sitting on a branch.', 'twentytwentytwo' ) . '
    +
    + + + +
    +
    ' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '
    + + + +
    + + + +

    ' . esc_html__( 'SCREENING', 'twentytwentytwo' ) . '

    + + + +

    ' . wp_kses_post( __( 'May 14th, 2022 @ 7:00PM
    The Vintagé Theater,
    245 Arden Rd.
    Gardenville, NH', 'twentytwentytwo' ) ) . '

    + + + +
    + + + +
    + + + +
    +
    ' . esc_html__( 'Buy Tickets', 'twentytwentytwo' ) . '
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-video-header-details.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-video-header-details.php new file mode 100644 index 0000000..3b15a52 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-video-header-details.php @@ -0,0 +1,47 @@ + __( 'Video with header and details', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'columns' ), + 'content' => ' +
    +
    +

    ' . wp_kses_post( __( 'Warble, a film about
    hobbyist bird watchers.', 'twentytwentytwo' ) ) . '

    + + + +
    + + + +
    + + + +
    + + + +
    +
    +

    ' . esc_html__( 'Featuring', 'twentytwentytwo' ) . '

    +
    + + + +
    +

    ' . wp_kses_post( __( 'Jesús Rodriguez
    Doug Stilton
    Emery Driscoll
    Megan Perry
    Rowan Price', 'twentytwentytwo' ) ) . '

    +
    + + + +
    +

    ' . wp_kses_post( __( 'Angelo Tso
    Edward Stilton
    Amy Jensen
    Boston Bell
    Shay Ford', 'twentytwentytwo' ) ) . '

    +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-video-trailer.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-video-trailer.php new file mode 100644 index 0000000..22ed248 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-video-trailer.php @@ -0,0 +1,27 @@ + __( 'Video trailer', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'columns' ), + 'content' => ' +
    +
    +
    +

    ' . esc_html__( 'Extended Trailer', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'A film about hobbyist bird watchers, a catalog of different birds, paired with the noises they make. Each bird is listed by their scientific name so things seem more official.', 'twentytwentytwo' ) . '

    +
    + + + +
    +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/general-wide-image-intro-buttons.php b/wp-content/themes/twentytwentytwo/inc/patterns/general-wide-image-intro-buttons.php new file mode 100644 index 0000000..373b0f4 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/general-wide-image-intro-buttons.php @@ -0,0 +1,41 @@ + __( 'Wide image with introduction and buttons', 'twentytwentytwo' ), + 'categories' => array( 'featured', 'columns' ), + 'content' => ' +
    +
    ' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '
    + + + +
    +
    +

    ' . wp_kses_post( __( 'Welcome to
    the Aviary', 'twentytwentytwo' ) ) . '

    +
    + + + +
    +

    ' . esc_html__( 'A film about hobbyist bird watchers, a catalog of different birds, paired with the noises they make. Each bird is listed by their scientific name so things seem more official.', 'twentytwentytwo' ) . '

    + + + +
    + + + +
    +
    ' . esc_html__( 'Learn More', 'twentytwentytwo' ) . '
    + + + +
    ' . esc_html__( 'Buy Tickets', 'twentytwentytwo' ) . '
    +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo-black-background.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo-black-background.php new file mode 100644 index 0000000..b10ed5b --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo-black-background.php @@ -0,0 +1,22 @@ + __( 'Header with centered logo and background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    + + + + + + + + + +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo.php new file mode 100644 index 0000000..a116c39 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-logo.php @@ -0,0 +1,26 @@ + __( 'Header with centered logo', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    +
    + + + +
    + + + +
    + +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-title-navigation-social.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-title-navigation-social.php new file mode 100644 index 0000000..cb1b310 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-centered-title-navigation-social.php @@ -0,0 +1,30 @@ + __( 'Centered header with navigation, social links, and background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    +
    + +
    + + + +
    + + + +
    +
      + +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-default.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-default.php new file mode 100644 index 0000000..ff25793 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-default.php @@ -0,0 +1,23 @@ + __( 'Default header', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    +
    + + +
    + + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-image-background-overlay.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-image-background-overlay.php new file mode 100644 index 0000000..55422aa --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-image-background-overlay.php @@ -0,0 +1,20 @@ + __( 'Header with image background and overlay', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    ' . esc_attr__( 'Painting of ducks in the water.', 'twentytwentytwo' ) . '
    +
    + + + +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-image-background.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-image-background.php new file mode 100644 index 0000000..4afd36c --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-image-background.php @@ -0,0 +1,24 @@ + __( 'Header with image background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    ' . esc_attr__( 'Illustration of a flying bird', 'twentytwentytwo' ) . '
    +
    + + + +
    + + + +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-large-dark.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-large-dark.php new file mode 100644 index 0000000..5e4fea6 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-large-dark.php @@ -0,0 +1,34 @@ + __( 'Large header with dark background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    +
    +
    + +
    + + + + +
    + + + +

    ' . wp_kses_post( __( 'The Hatchery: a blog about my adventures in bird watching', 'twentytwentytwo' ) ) . '

    +
    + + + +
    ' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '
    +
    + +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-gray-background.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-gray-background.php new file mode 100644 index 0000000..3ddea75 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-gray-background.php @@ -0,0 +1,18 @@ + __( 'Logo and navigation header with background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-offset-tagline.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-offset-tagline.php new file mode 100644 index 0000000..299586f --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-offset-tagline.php @@ -0,0 +1,30 @@ + __( 'Logo, navigation, and offset tagline Header', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    +
    + + + +
    + + + +
    +
    + + + +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-social-black-background.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-social-black-background.php new file mode 100644 index 0000000..c9b0f88 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-logo-navigation-social-black-background.php @@ -0,0 +1,24 @@ + __( 'Logo, navigation, and social links header with background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    + + + + + +
      + +
    + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-small-dark.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-small-dark.php new file mode 100644 index 0000000..832f414 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-small-dark.php @@ -0,0 +1,31 @@ + __( 'Small header with dark background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    +
    +
    + +
    + + + + +
    +
    + + + +
    ' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '
    +
    + + +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-stacked.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-stacked.php new file mode 100644 index 0000000..bd36bbf --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-stacked.php @@ -0,0 +1,28 @@ + __( 'Logo and navigation header', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    + + +
    + + + + + +
    + + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-green-background.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-green-background.php new file mode 100644 index 0000000..468a696 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-green-background.php @@ -0,0 +1,22 @@ + __( 'Text-only header with background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    +
    + +
    + + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-salmon-background.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-salmon-background.php new file mode 100644 index 0000000..4a4913e --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-salmon-background.php @@ -0,0 +1,18 @@ + __( 'Text-only header with background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-with-tagline-black-background.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-with-tagline-black-background.php new file mode 100644 index 0000000..d529fe8 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-text-only-with-tagline-black-background.php @@ -0,0 +1,22 @@ + __( 'Text-only header with tagline and background', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    +
    + +
    + + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-title-and-button.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-title-and-button.php new file mode 100644 index 0000000..5c78069 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-title-and-button.php @@ -0,0 +1,18 @@ + __( 'Title and button header', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-title-navigation-social.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-title-navigation-social.php new file mode 100644 index 0000000..384cda5 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-title-navigation-social.php @@ -0,0 +1,24 @@ + __( 'Title, navigation, and social links header', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    + + + + + +
      + +
    + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/header-with-tagline.php b/wp-content/themes/twentytwentytwo/inc/patterns/header-with-tagline.php new file mode 100644 index 0000000..40e633a --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/header-with-tagline.php @@ -0,0 +1,26 @@ + __( 'Header with tagline', 'twentytwentytwo' ), + 'categories' => array( 'header' ), + 'blockTypes' => array( 'core/template-part/header' ), + 'content' => ' +
    +
    +
    + + +
    + +
    +
    + + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php b/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php new file mode 100644 index 0000000..9cfd50d --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/hidden-404.php @@ -0,0 +1,15 @@ + __( '404 content', 'twentytwentytwo' ), + 'inserter' => false, + 'content' => ' +

    ' . esc_html( _x( '404', 'Error code for a webpage that is not found.', 'twentytwentytwo' ) ) . '

    + + +

    ' . esc_html__( 'This page could not be found. Maybe try a search?', 'twentytwentytwo' ) . '

    + + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/hidden-bird.php b/wp-content/themes/twentytwentytwo/inc/patterns/hidden-bird.php new file mode 100644 index 0000000..cfc9db5 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/hidden-bird.php @@ -0,0 +1,14 @@ + __( 'Heading and bird image', 'twentytwentytwo' ), + 'inserter' => false, + 'content' => ' +
    ' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/hidden-heading-and-bird.php b/wp-content/themes/twentytwentytwo/inc/patterns/hidden-heading-and-bird.php new file mode 100644 index 0000000..d3f1788 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/hidden-heading-and-bird.php @@ -0,0 +1,21 @@ + __( 'Heading and bird image', 'twentytwentytwo' ), + 'inserter' => false, + 'content' => ' +
    +

    ' . wp_kses_post( __( 'The Hatchery: a blog about my adventures in bird watching', 'twentytwentytwo' ) ) . '

    +
    + + + +
    ' . esc_attr__( 'Illustration of a bird flying.', 'twentytwentytwo' ) . '
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-about-large-image-and-buttons.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-large-image-and-buttons.php new file mode 100644 index 0000000..52dbd0e --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-large-image-and-buttons.php @@ -0,0 +1,79 @@ + __( 'About page with large image and buttons', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages', 'buttons' ), + 'content' => ' +
    +
    + + + +
    +
    +
    +
    ' . esc_html__( 'Purchase my work', 'twentytwentytwo' ) . '
    +
    +
    + + + +
    +
    +
    ' . esc_html__( 'Support my studio', 'twentytwentytwo' ) . '
    +
    +
    + + + +
    +
    +
    ' . esc_html__( 'Take a class', 'twentytwentytwo' ) . '
    +
    +
    +
    + + + +
    +
    +
    +
    ' . esc_html__( 'Read about me', 'twentytwentytwo' ) . '
    +
    +
    + + + +
    +
    +
    ' . esc_html__( 'Learn about my process', 'twentytwentytwo' ) . '
    +
    +
    + + + +
    +
    +
    ' . esc_html__( 'Join my mailing list', 'twentytwentytwo' ) . '
    +
    +
    +
    + + + +
    + + + +
      + + + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-about-links-dark.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-links-dark.php new file mode 100644 index 0000000..943524f --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-links-dark.php @@ -0,0 +1,47 @@ + __( 'About page links (dark)', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages', 'buttons' ), + 'content' => ' +
    +
    + + +
    ' . esc_attr__( 'Logo featuring a flying bird', 'twentytwentytwo' ) . '
    + + + +

    ' . esc_html__( 'A trouble of hummingbirds', 'twentytwentytwo' ) . '

    + + + +
    + + + +
    +
    ' . esc_html__( 'Watch our videos', 'twentytwentytwo' ) . '
    + + + +
    ' . esc_html__( 'Listen on iTunes Podcasts', 'twentytwentytwo' ) . '
    + + + +
    ' . esc_html__( 'Listen on Spotify', 'twentytwentytwo' ) . '
    + + + +
    ' . esc_html__( 'Support the show', 'twentytwentytwo' ) . '
    + + + +
    ' . esc_html__( 'About the hosts', 'twentytwentytwo' ) . '
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-about-links.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-links.php new file mode 100644 index 0000000..3cf2717 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-links.php @@ -0,0 +1,65 @@ + __( 'About page links', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages', 'buttons' ), + 'content' => ' +
    +
    ' . esc_attr__( 'Logo featuring a flying bird', 'twentytwentytwo' ) . '
    + + + +
    + + +

    ' . esc_html__( 'Swoop', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'A podcast about birds', 'twentytwentytwo' ) . '

    + + + +
    + + + +
    +
    ' . esc_html__( 'Watch our videos', 'twentytwentytwo' ) . '
    + + + +
    ' . esc_html__( 'Listen on iTunes Podcasts', 'twentytwentytwo' ) . '
    + + + +
    ' . esc_html__( 'Listen on Spotify', 'twentytwentytwo' ) . '
    + + + +
    ' . esc_html__( 'Support the show', 'twentytwentytwo' ) . '
    + + + +
    ' . esc_html__( 'About the hosts', 'twentytwentytwo' ) . '
    +
    +
    + + + +
    + + + +
      + + + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-about-media-left.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-media-left.php new file mode 100644 index 0000000..f5c769a --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-media-left.php @@ -0,0 +1,41 @@ + __( 'About page with media on the left', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    ' . esc_attr__( 'Image of a bird on a branch', 'twentytwentytwo' ) . '
    +
    + + + + + +
    +

    ' . esc_html__( 'Doug', 'twentytwentytwo' ) . '
    ' . esc_html__( 'Stilton', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'Oh hello. My name’s Doug, and you’ve found your way to my website. I’m an avid bird watcher, and I also broadcast my own radio show on Tuesday evenings at 11PM EDT.', 'twentytwentytwo' ) . '

    + + + +
    + + + +
      + + + +
    +
    + + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-about-media-right.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-media-right.php new file mode 100644 index 0000000..8f29115 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-media-right.php @@ -0,0 +1,40 @@ + __( 'About page with media on the right', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    ' . esc_attr__( 'An image of a bird flying', 'twentytwentytwo' ) . '
    +
    + + + + +
    +

    ' . wp_kses_post( __( 'Emery
    Driscoll', 'twentytwentytwo' ) ) . '

    + + + +

    ' . esc_html__( 'Oh hello. My name’s Emery, and you’ve found your way to my website. I’m an avid bird watcher, and I also broadcast my own radio show on Tuesday evenings at 11PM EDT.', 'twentytwentytwo' ) . '

    + + + +
    + + + +
      + + + +
    +
    +
    + + +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-about-simple-dark.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-simple-dark.php new file mode 100644 index 0000000..fe07159 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-simple-dark.php @@ -0,0 +1,45 @@ + __( 'Simple dark about page', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    + + + + +
    +
    + + +

    ' . wp_kses_post( __( 'Jesús
    Rodriguez', 'twentytwentytwo' ) ) . '

    + + + +

    ' . esc_html__( 'Oh hello. My name’s Jesús, and you’ve found your way to my website. I’m an avid bird watcher, and I also broadcast my own radio show on Tuesday evenings at 11PM EDT.', 'twentytwentytwo' ) . '

    + + + +
    + + + +
      + + + +
    +
    + + + +
    +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-about-solid-color.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-solid-color.php new file mode 100644 index 0000000..6c07725 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-about-solid-color.php @@ -0,0 +1,41 @@ + __( 'About page on solid color background', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    +
    +
    +
    + +

    ' . wp_kses_post( __( 'Edvard
    Smith', 'twentytwentytwo' ) ) . '

    + + + +
    + + + +

    ' . esc_html__( 'Oh hello. My name’s Edvard, and you’ve found your way to my website. I’m an avid bird watcher, and I also broadcast my own radio show every Tuesday evening at 11PM EDT. Listen in sometime!', 'twentytwentytwo' ) . '

    + + + +
    + + + +
      + + + +
    + +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-image-and-text.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-image-and-text.php new file mode 100644 index 0000000..20e08e0 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-image-and-text.php @@ -0,0 +1,32 @@ + __( 'Page layout with image and text', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    +

    ' . wp_kses_post( __( 'Watching Birds
    in the Garden', 'twentytwentytwo' ) ) . '

    +
    + + + +
    ' . esc_attr_x( 'TBD', 'Short for to be determined', 'twentytwentytwo' ) . '
    + + + +
    + +
    +
    + + + +
    +

    ' . wp_kses_post( __( 'Oh hello. My name’s Angelo, and I operate this blog. I was born in Portland, but I currently live in upstate New York. You may recognize me from publications with names like Eagle Beagle and Mourning Dive. I write for a living.

    I usually use this blog to catalog extensive lists of birds and other things that I find interesting. If you find an error with one of my lists, please keep it to yourself.

    If that’s not your cup of tea, I definitely recommend this tea. It’s my favorite.', 'twentytwentytwo' ) ) . '

    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-image-text-and-video.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-image-text-and-video.php new file mode 100644 index 0000000..0ee87f1 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-image-text-and-video.php @@ -0,0 +1,65 @@ + __( 'Page layout with image, text and video', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    +
    +

    ' . wp_kses_post( __( 'Warble, a film about
    hobbyist bird watchers.', 'twentytwentytwo' ) ) . '

    + + + +
    + + + +
    +
    +

    ' . esc_html__( 'Screening', 'twentytwentytwo' ) . '

    + + + +

    ' . wp_kses_post( __( 'May 14th, 2022 @ 7:00PM
    The Vintagé Theater,
    245 Arden Rd.
    Gardenville, NH', 'twentytwentytwo' ) ) . '

    + + + +
    +
    ' . esc_html__( 'Buy Tickets', 'twentytwentytwo' ) . '
    +
    +
    + + + +
    +
    +
    + + + +
    ' . esc_attr__( 'An illustration of a bird in flight', 'twentytwentytwo' ) . '
    + + + +
    +
    +
    +

    ' . esc_html__( 'Extended Trailer', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'Oh hello. My name’s Angelo, and you’ve found your way to my blog. I write about a range of topics, but lately I’ve been sharing my hopes for next year.', 'twentytwentytwo' ) . '

    +
    + + + +
    +
    +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-two-columns.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-two-columns.php new file mode 100644 index 0000000..b24c9c5 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-layout-two-columns.php @@ -0,0 +1,73 @@ + __( 'Page layout with two columns', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    +

    ' . wp_kses_post( __( 'Goldfinch
    & Sparrow', 'twentytwentytwo' ) ) . '

    + + + +
    + + + +
    +
    +
    +

    ' . esc_html__( 'WELCOME', 'twentytwentytwo' ) . '

    +
    + + + +
    +
    +
    +
    +
    + + + +
    +
    +

    ' . wp_kses_post( __( 'Oh hello. My name’s Angelo, and I operate this blog. I was born in Portland, but I currently live in upstate New York. You may recognize me from publications with names like Eagle Beagle and Mourning Dive. I write for a living.

    I usually use this blog to catalog extensive lists of birds and other things that I find interesting. If you find an error with one of my lists, please keep it to yourself.

    If that’s not your cup of tea, I definitely recommend this tea. It’s my favorite.', 'twentytwentytwo' ) ) . '

    +
    + + + +
    +
    + + + +
    + + + +
    +
    +
    +
    + + + +
    +

    ' . esc_html__( 'POSTS', 'twentytwentytwo' ) . '

    +
    +
    + + + +
    +
    + + + +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-blog-posts-right.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-blog-posts-right.php new file mode 100644 index 0000000..070aef0 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-blog-posts-right.php @@ -0,0 +1,87 @@ + __( 'Blog posts with right sidebar', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    +
    +
    + + + + +
    + + + +
    + + + +
    +
    +
    + + + + + + + +
    + + + +
    + + + +
    + + + + + + + + + +
    +
    + + + +
    +
    ' . esc_attr__( 'Illustration of a flying bird.', 'twentytwentytwo' ) . '
    + + + +
    + + + + + + + +
    + + + +

    ' . esc_html__( 'Categories', 'twentytwentytwo' ) . '

    + + + + + +

    ' . esc_html__( 'Tags', 'twentytwentytwo' ) . '

    + + +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-blog-posts.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-blog-posts.php new file mode 100644 index 0000000..e535a81 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-blog-posts.php @@ -0,0 +1,79 @@ + __( 'Blog posts with left sidebar', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    +
    +
    +
    + + + +
    + + + + + +
    + + + +
    + + + +
    + + + + + + + +
    + + + +
    +
    + + + +
    +
    + + + + + + + +
    + + + +
    + + + +
    + + + + + + + + + +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-grid-posts.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-grid-posts.php new file mode 100644 index 0000000..b4aa6a5 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-grid-posts.php @@ -0,0 +1,77 @@ + __( 'Grid of posts with left sidebar', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    +
    +
    + + + + +
    + + + +
    + + + +
    + + + + + + + +
    + + + +
    + + + +
    + + + +
    + + +
    + + + +
    +
    + + + +
    + +
    + + + + +
    + + + + + + + + +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-poster.php b/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-poster.php new file mode 100644 index 0000000..9cbcef2 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/page-sidebar-poster.php @@ -0,0 +1,65 @@ + __( 'Poster with right sidebar', 'twentytwentytwo' ), + 'categories' => array( 'twentytwentytwo_pages' ), + 'content' => ' +
    +
    +
    + + +

    ' . wp_kses_post( __( 'Flutter, a collection of bird-related ephemera', 'twentytwentytwo' ) ) . '

    +
    + + + +
    +
    + + + +
    +
    +
    ' . esc_attr__( 'Image of a bird on a branch', 'twentytwentytwo' ) . '
    +
    + + + +
    +
    ' . esc_attr__( 'An icon representing binoculars.', 'twentytwentytwo' ) . '
    + + + +
    + + + +

    ' . esc_html__( 'Date', 'twentytwentytwo' ) . '

    + + + +

    ' . esc_html__( 'February, 12 2021', 'twentytwentytwo' ) . '

    + + + +
    + + + +

    ' . esc_html__( 'Location', 'twentytwentytwo' ) . '

    + + + +

    ' . wp_kses_post( __( 'The Grand Theater
    154 Eastern Avenue
    Maryland NY, 12345', 'twentytwentytwo' ) ) . '

    + + + +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/query-default.php b/wp-content/themes/twentytwentytwo/inc/patterns/query-default.php new file mode 100644 index 0000000..7cebacc --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/query-default.php @@ -0,0 +1,50 @@ + __( 'Default posts', 'twentytwentytwo' ), + 'categories' => array( 'query' ), + 'blockTypes' => array( 'core/query' ), + 'content' => ' +
    + +
    + + + + +
    +
    + +
    + + + +
    +
    + + + +
    + + + +
    + + + +
    +
    + + + + + + + + + +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/query-grid.php b/wp-content/themes/twentytwentytwo/inc/patterns/query-grid.php new file mode 100644 index 0000000..f695eba --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/query-grid.php @@ -0,0 +1,32 @@ + __( 'Grid of posts', 'twentytwentytwo' ), + 'categories' => array( 'query' ), + 'blockTypes' => array( 'core/query' ), + 'content' => ' +
    + + + + + + + + + + +
    + + + + + + + + +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/query-image-grid.php b/wp-content/themes/twentytwentytwo/inc/patterns/query-image-grid.php new file mode 100644 index 0000000..e5672e3 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/query-image-grid.php @@ -0,0 +1,36 @@ + __( 'Grid of image posts', 'twentytwentytwo' ), + 'categories' => array( 'query' ), + 'blockTypes' => array( 'core/query' ), + 'content' => ' +
    + + + +
    +
    + + + +
    +
    + + + + +
    + + + + + + + + +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/query-irregular-grid.php b/wp-content/themes/twentytwentytwo/inc/patterns/query-irregular-grid.php new file mode 100644 index 0000000..c5da08a --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/query-irregular-grid.php @@ -0,0 +1,170 @@ + __( 'Irregular grid of posts', 'twentytwentytwo' ), + 'categories' => array( 'query' ), + 'blockTypes' => array( 'core/query' ), + 'content' => ' +
    +
    +
    +
    + + + + + + + +
    +
    + + + +
    +
    + +
    + + + + + + + + + +
    +
    + + + +
    +
    + +
    + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    + + + + + + + +
    +
    + + + +
    +
    + +
    + + + + + + + + + +
    +
    + + + +
    +
    + +
    + + + + + + + + + +
    +
    +
    + + + +
    +
    +
    + +
    + + + + + + + + + +
    +
    + + + +
    +
    + +
    + + + + + + + + + +
    +
    + + + +
    +
    + +
    + + + + + + + + + +
    +
    +
    +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/query-large-titles.php b/wp-content/themes/twentytwentytwo/inc/patterns/query-large-titles.php new file mode 100644 index 0000000..6ff8afa --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/query-large-titles.php @@ -0,0 +1,26 @@ + __( 'Large post titles', 'twentytwentytwo' ), + 'categories' => array( 'query' ), + 'blockTypes' => array( 'core/query' ), + 'content' => ' +
    + +
    +
    + + + +
    +
    + + + +
    + +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/query-simple-blog.php b/wp-content/themes/twentytwentytwo/inc/patterns/query-simple-blog.php new file mode 100644 index 0000000..4b08984 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/query-simple-blog.php @@ -0,0 +1,38 @@ + __( 'Simple blog posts', 'twentytwentytwo' ), + 'categories' => array( 'query' ), + 'blockTypes' => array( 'core/query' ), + 'content' => ' +
    + + + + + + + +
    + + + +
    + + + +
    + + + + + + + + + +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php b/wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php new file mode 100644 index 0000000..a8f84d3 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/inc/patterns/query-text-grid.php @@ -0,0 +1,31 @@ + __( 'Text-based grid of posts', 'twentytwentytwo' ), + 'categories' => array( 'query' ), + 'blockTypes' => array( 'core/query' ), + 'content' => ' +
    + + + + + + + + + +
    + + + + + + + + +
    + ', +); diff --git a/wp-content/themes/twentytwentytwo/index.php b/wp-content/themes/twentytwentytwo/index.php new file mode 100644 index 0000000..877d8c3 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/index.php @@ -0,0 +1,4 @@ + +
    + +
    + diff --git a/wp-content/themes/twentytwentytwo/parts/header-large-dark.html b/wp-content/themes/twentytwentytwo/parts/header-large-dark.html new file mode 100644 index 0000000..a63b2d6 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/parts/header-large-dark.html @@ -0,0 +1,7 @@ + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentytwo/parts/header-small-dark.html b/wp-content/themes/twentytwentytwo/parts/header-small-dark.html new file mode 100644 index 0000000..5870857 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/parts/header-small-dark.html @@ -0,0 +1,7 @@ + +
    + +
    + +
    + diff --git a/wp-content/themes/twentytwentytwo/parts/header.html b/wp-content/themes/twentytwentytwo/parts/header.html new file mode 100644 index 0000000..27568c1 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/parts/header.html @@ -0,0 +1,13 @@ + +
    +
    +
    + +
    + + + + +
    +
    + \ No newline at end of file diff --git a/wp-content/themes/twentytwentytwo/readme.txt b/wp-content/themes/twentytwentytwo/readme.txt new file mode 100644 index 0000000..61bbb8f --- /dev/null +++ b/wp-content/themes/twentytwentytwo/readme.txt @@ -0,0 +1,121 @@ +=== Twenty Twenty-Two === +Contributors: wordpressdotorg +Requires at least: 5.9 +Tested up to: 6.5 +Requires PHP: 5.6 +Stable tag: 1.7 +License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html + +== Description == + +Built on a solidly designed foundation, Twenty Twenty-Two embraces the idea that everyone deserves a truly unique website. The theme’s subtle styles are inspired by the diversity and versatility of birds: its typography is lightweight yet strong, its color palette is drawn from nature, and its layout elements sit gently on the page. + +The true richness of Twenty Twenty-Two lies in its opportunity for customization. The theme is built to take advantage of the Site Editor features introduced in WordPress 5.9, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. It also includes dozens of block patterns, opening the door to a wide range of professionally designed layouts in just a few clicks. + +Whether you’re building a single-page website, a blog, a business website, or a portfolio, Twenty Twenty-Two will help you create a site that is uniquely yours. + +== Changelog == + += 1.7 = +* Released: April 2, 2024 + +https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.7 + += 1.6 = +* Released: November 7, 2023 + +https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.6 + += 1.5 = +* Released: August 8, 2023 + +https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.5 + += 1.4 = +* Released: March 28, 2023 + +https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.4 + += 1.3 = +* Released: November 1, 2022 + +https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.3 + += 1.2 = +* Released: May 24, 2022 + +https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.2 + += 1.1 = +* Released: February 22, 2022 + +https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.1 + += 1.0 = +* Released: January 25, 2022 + +https://wordpress.org/documentation/article/twenty-twenty-two-changelog/#Version_1.0 + +== Copyright == + +Twenty Twenty-Two WordPress Theme, 2021-2024 WordPress.org +Twenty Twenty-Two is distributed under the terms of the GNU GPL. + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +This theme bundles the following third-party resources: + +DM Sans Font +Copyright 2014-2017 Indian Type Foundry (info@indiantypefoundry.com) +Copyright 2019 Google LLC +Copyright 2014-2018 Adobe (http://www.adobe.com/) +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/googlefonts/dm-fonts + +IBM Plex Font +Copyright 2017 IBM Corp. +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/IBM/plex + +Inter Font +Copyright (c) 2016-2020 The Inter Project Authors. +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/rsms/inter + +Source Serif Font +Copyright 2014-2021 Adobe (http://www.adobe.com/) +License: SIL Open Font License, 1.1, https://opensource.org/licenses/OFL-1.1 +Source: https://github.com/adobe-fonts/source-serif + +Block Pattern Images: + +"White Bellied Flycatcher" illustrated by Elizabeth Gould. Public Domain. +https://www.rawpixel.com/image/321474/free-illustration-image-bird-vintage-birds +Includes modified versions created specifically for Twenty Twenty-Two. + +Colorful vintage hummingbird illustrations. CC0. +https://www.rawpixel.com/image/2281674/free-illustration-image-bird-hummingbird-flying +https://www.rawpixel.com/image/2281671/free-illustration-image-bird-hummingbird-flying +https://www.rawpixel.com/image/2281679/free-illustration-image-bird-hummingbird-animals +https://www.rawpixel.com/image/2281665/free-illustration-image-hummingbird-ernst-haeckel-birds + +"Green-tailed Jacamar" by Jacques Barraband. CC0. +https://www.rawpixel.com/image/328508/free-illustration-image-jacques-barraband-paradise + +"Ducks" by Goyō Hashiguchi. CC0 +https://www.rawpixel.com/image/3813787/illustration-image-flower-art-floral + +"Colombes et lis, étoffe imprimée" illustrated by Maurice Pillard Verneuil. +https://www.rawpixel.com/image/2053817/illustration-from-lanimal-dans-decoration +Included as a short video clip. + +Modified versions of the above images, as well as additional "flight path" illustrations were created specifically for Twenty Twenty-Two. CC0. diff --git a/wp-content/themes/twentytwentytwo/screenshot.png b/wp-content/themes/twentytwentytwo/screenshot.png new file mode 100644 index 0000000..0bba95b Binary files /dev/null and b/wp-content/themes/twentytwentytwo/screenshot.png differ diff --git a/wp-content/themes/twentytwentytwo/style.css b/wp-content/themes/twentytwentytwo/style.css new file mode 100644 index 0000000..e1e26e9 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/style.css @@ -0,0 +1,161 @@ +/* +Theme Name: Twenty Twenty-Two +Theme URI: https://wordpress.org/themes/twentytwentytwo/ +Author: the WordPress team +Author URI: https://wordpress.org/ +Description: Built on a solidly designed foundation, Twenty Twenty-Two embraces the idea that everyone deserves a truly unique website. The theme’s subtle styles are inspired by the diversity and versatility of birds: its typography is lightweight yet strong, its color palette is drawn from nature, and its layout elements sit gently on the page. The true richness of Twenty Twenty-Two lies in its opportunity for customization. The theme is built to take advantage of the Site Editor features introduced in WordPress 5.9, which means that colors, typography, and the layout of every single page on your site can be customized to suit your vision. It also includes dozens of block patterns, opening the door to a wide range of professionally designed layouts in just a few clicks. Whether you’re building a single-page website, a blog, a business website, or a portfolio, Twenty Twenty-Two will help you create a site that is uniquely yours. +Requires at least: 5.9 +Tested up to: 6.5 +Requires PHP: 5.6 +Version: 1.7 +License: GNU General Public License v2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html +Text Domain: twentytwentytwo +Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, style-variations, wide-blocks, block-styles, accessibility-ready, blog, portfolio, news + +Twenty Twenty-Two WordPress Theme, (C) 2021 WordPress.org +Twenty Twenty-Two is distributed under the terms of the GNU GPL. +*/ + +/* + * Font smoothing. + * This is a niche setting that will not be available via Global Styles. + * https://github.com/WordPress/gutenberg/issues/35934 + */ + +body { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; +} + +/* + * Text and navigation link styles. + * Necessary until the following issue is resolved in Gutenberg: + * https://github.com/WordPress/gutenberg/issues/27075 + */ + +a { + text-decoration-thickness: 1px; + text-underline-offset: 0.25ch; +} + +a:hover, +a:focus { + text-decoration-style: dashed; +} + +a:active { + text-decoration: none; +} + +.wp-block-navigation .wp-block-navigation-item a:hover, +.wp-block-navigation .wp-block-navigation-item a:focus { + text-decoration: underline; + text-decoration-style: solid; +} + +/* + * Search and File Block button styles. + * Necessary until the following issues are resolved in Gutenberg: + * https://github.com/WordPress/gutenberg/issues/36444 + * https://github.com/WordPress/gutenberg/issues/27760 + */ + +.wp-block-search__button, +.wp-block-file .wp-block-file__button { + background-color: var(--wp--preset--color--primary); + border-radius: 0; + border: none; + color: var(--wp--preset--color--background); + font-size: var(--wp--preset--font-size--medium); + padding: calc(.667em + 2px) calc(1.333em + 2px); +} + +/* + * Button hover styles. + * Necessary until the following issue is resolved in Gutenberg: + * https://github.com/WordPress/gutenberg/issues/27075 + */ + +.wp-block-search__button:hover, +.wp-block-file .wp-block-file__button:hover, +.wp-block-button__link:hover { + opacity: 0.90; +} + +/* + * Alignment styles. + * These rules are temporary, and should not be relied on or + * modified too heavily by themes or plugins that build on + * Twenty Twenty-Two. These are meant to be a precursor to + * a global solution provided by the Block Editor. + * + * Relevant issues: + * https://github.com/WordPress/gutenberg/issues/35607 + * https://github.com/WordPress/gutenberg/issues/35884 + */ + +.wp-site-blocks, +body > .is-root-container, +.edit-post-visual-editor__post-title-wrapper, +.wp-block-group.alignfull, +.wp-block-group.has-background, +.wp-block-cover.alignfull, +.is-root-container .wp-block[data-align="full"] > .wp-block-group, +.is-root-container .wp-block[data-align="full"] > .wp-block-cover { + padding-left: var(--wp--custom--spacing--outer); + padding-right: var(--wp--custom--spacing--outer); +} + +.wp-site-blocks .alignfull, +.wp-site-blocks > .wp-block-group.has-background, +.wp-site-blocks > .wp-block-cover, +.wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background, +.wp-site-blocks > .wp-block-template-part > .wp-block-cover, +body > .is-root-container > .wp-block-cover, +body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background, +body > .is-root-container > .wp-block-template-part > .wp-block-cover, +.is-root-container .wp-block[data-align="full"] { + margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important; + margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important; + width: unset; +} + +/* Blocks inside columns don't have negative margins. */ +.wp-site-blocks .wp-block-columns .wp-block-column .alignfull, +.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"], +/* We also want to avoid stacking negative margins. */ +.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull, +.is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] { + margin-left: auto !important; + margin-right: auto !important; + width: inherit; +} + +/* + * Responsive menu container padding. + * This ensures the responsive container inherits the same + * spacing defined above. This behavior may be built into + * the Block Editor in the future. + */ + +.wp-block-navigation__responsive-container.is-menu-open { + padding-top: var(--wp--custom--spacing--outer); + padding-bottom: var(--wp--custom--spacing--large); + padding-right: var(--wp--custom--spacing--outer); + padding-left: var(--wp--custom--spacing--outer); +} + +/* + * Improves spacing for the legacy Post Comments block. + * https://core.trac.wordpress.org/ticket/57560 + */ + +.wp-block-post-comments ol.commentlist ul.children { + margin-top: 1rem; + margin-bottom: 1rem; +} + +.wp-block-post-comments ol.commentlist li.comment:not(:last-child) { + margin-bottom: 1rem; +} diff --git a/wp-content/themes/twentytwentytwo/styles/blue.json b/wp-content/themes/twentytwentytwo/styles/blue.json new file mode 100644 index 0000000..8ebedef --- /dev/null +++ b/wp-content/themes/twentytwentytwo/styles/blue.json @@ -0,0 +1,146 @@ +{ + "version": 2, + "title": "Blue", + "settings": { + "color": { + "palette": [ + { + "slug": "foreground", + "color": "#FCF5ED", + "name": "Foreground" + }, + { + "slug": "background", + "color": "#3F67C6", + "name": "Background" + }, + { + "slug": "primary", + "color": "#FFFFFF", + "name": "Primary" + }, + { + "slug": "secondary", + "color": "#3556A5", + "name": "Secondary" + }, + { + "slug": "tertiary", + "color": "#374C80", + "name": "Tertiary" + } + ] + }, + "custom": { + "spacing": { + "small": "max(1rem, 4vw)", + "medium": "clamp(1rem, 8vw, calc(2 * var(--wp--style--block-gap)))", + "large": "clamp(2rem, 10vw, 6rem)", + "outer": "var(--wp--custom--spacing--small, 1rem)" + }, + "typography": { + "font-size": { + "huge": "clamp(2rem, 4vw, 2.25rem)", + "gigantic": "clamp(2.25rem, 6vw, 2.75rem)", + "colossal": "clamp(2.75rem, 10vw, 5rem)" + } + } + }, + "layout": { + "contentSize": "660px", + "wideSize": "1220px" + }, + "typography": { + "fontFamilies": [ + { + "fontFamily": "\"DM Sans\", sans-serif", + "name": "DM Sans", + "slug": "dm-sans", + "fontFace": [ + { + "fontFamily": "DM Sans", + "fontWeight": "400", + "fontStyle": "normal", + "src": [ "file:./assets/fonts/dm-sans/DMSans-Regular.ttf" ] + }, + { + "fontFamily": "DM Sans", + "fontWeight": "400", + "fontStyle": "italic", + "src": [ "file:./assets/fonts/dm-sans/DMSans-Italic.ttf" ] + }, + { + "fontFamily": "DM Sans", + "fontWeight": "700", + "fontStyle": "normal", + "src": [ "file:./assets/fonts/dm-sans/DMSans-Bold.ttf" ] + }, + { + "fontFamily": "DM Sans", + "fontWeight": "700", + "fontStyle": "italic", + "src": [ "file:./assets/fonts/dm-sans/DMSans-BoldItalic.ttf" ] + } + ] + } + ] + } + }, + "styles": { + "blocks": { + "core/post-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)", + "fontSize": "var(--wp--custom--typography--font-size--colossal)", + "fontWeight": "700" + } + }, + "core/site-title": { + "typography": { + "fontStyle":"normal" + } + } + }, + "elements": { + "h1": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)", + "fontWeight": "700" + } + }, + "h2": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)", + "fontWeight": "700" + } + }, + "h3": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)", + "fontWeight": "700" + } + }, + "h4": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)", + "fontWeight": "700" + } + }, + "h5": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)", + "fontWeight": "700" + } + }, + "h6": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)", + "fontWeight": "700" + } + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--dm-sans)" + } + } +} diff --git a/wp-content/themes/twentytwentytwo/styles/pink.json b/wp-content/themes/twentytwentytwo/styles/pink.json new file mode 100644 index 0000000..5c9be91 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/styles/pink.json @@ -0,0 +1,215 @@ +{ + "version": 2, + "title": "Pink", + "settings": { + "color": { + "palette": [ + { + "slug": "foreground", + "color": "#CA2315", + "name": "Foreground" + }, + { + "slug": "background", + "color": "#FFF6F6", + "name": "Background" + }, + { + "slug": "primary", + "color": "#000000", + "name": "Primary" + }, + { + "slug": "secondary", + "color": "#FFFFFF", + "name": "Secondary" + }, + { + "slug": "tertiary", + "color": "#F5F5F5", + "name": "Tertiary" + } + ] + }, + "custom": { + "spacing": { + "small": "max(0.75rem, 4vw)", + "medium": "clamp(1.75rem, 6vw, calc(1.5 * var(--wp--style--block-gap)))", + "large": "clamp(3rem, 8vw, 5rem)", + "outer": "var(--wp--custom--spacing--small, 0.75rem)" + }, + "typography": { + "font-size": { + "huge": "clamp(2rem, 4vw, 2.25rem)", + "gigantic": "clamp(2.25rem, 6vw, 2.75rem)", + "colossal": "clamp(2.75rem, 8vw, 3.25rem)" + } + }, + "line-height": { + "normal": 1.7 + } + }, + "typography": { + "fontFamilies": [ + { + "fontFamily": "\"IBM Plex Sans\", sans-serif", + "name": "IBM Plex Sans", + "slug": "ibm-plex-sans", + "fontFace": [ + { + "fontFamily": "IBM Plex Sans", + "fontWeight": "400", + "fontStyle": "normal", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-Light.woff2" ] + }, + { + "fontFamily": "IBM Plex Sans", + "fontWeight": "400", + "fontStyle": "italic", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-LightItalic.woff2" ] + }, + { + "fontFamily": "IBM Plex Sans", + "fontWeight": "200", + "fontStyle": "normal", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-ExtraLight.woff2" ] + }, + { + "fontFamily": "IBM Plex Sans", + "fontWeight": "200", + "fontStyle": "italic", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-ExtraLightItalic.woff2" ] + } + ] + }, + { + "fontFamily": "\"IBM Plex Mono\", monospace", + "name": "IBM Plex Mono", + "slug": "ibm-plex-mono", + "fontFace": [ + { + "fontFamily": "IBM Plex Mono", + "fontWeight": "400", + "fontStyle": "normal", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/ibm-plex/IBMPlexMono-Text.woff2" ] + }, + { + "fontFamily": "IBM Plex Mono", + "fontWeight": "400", + "fontStyle": "italic", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/ibm-plex/IBMPlexMono-TextItalic.woff2" ] + }, + { + "fontFamily": "IBM Plex Mono", + "fontWeight": "700", + "fontStyle": "normal", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/ibm-plex/IBMPlexMono-Bold.woff2" ] + }, + { + "fontFamily": "IBM Plex Mono", + "fontWeight": "700", + "fontStyle": "italic", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/ibm-plex/IBMPlexSans-BoldItalic.woff2" ] + } + ] + } + ], + "fontSizes": [ + { + "size": "0.875rem", + "slug": "small" + }, + { + "size": "1rem", + "slug": "medium" + }, + { + "size": "1.25rem", + "slug": "large" + }, + { + "size": "clamp(1.5rem, 3vw, 2rem)", + "slug": "x-large" + } + ] + }, + "layout": { + "contentSize": "600px", + "wideSize": "780px" + } + }, + "styles": { + "blocks": { + "core/post-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)", + "fontWeight": "400" + } + }, + "core/site-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)", + "fontStyle": "normal", + "textTransform": "uppercase" + } + }, + "core/query-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)" + } + } + }, + "elements": { + "h1": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)", + "fontWeight": "200" + } + }, + "h2": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)", + "fontWeight": "400" + } + }, + "h3": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)", + "fontWeight": "400" + } + }, + "h4": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)", + "fontWeight": "400" + } + }, + "h5": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)", + "fontWeight": "400" + } + }, + "h6": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-sans)", + "fontWeight": "400" + } + } + }, + "spacing": { + "blockGap": "2rem" + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--ibm-plex-mono)" + } + } +} diff --git a/wp-content/themes/twentytwentytwo/styles/swiss.json b/wp-content/themes/twentytwentytwo/styles/swiss.json new file mode 100644 index 0000000..483467c --- /dev/null +++ b/wp-content/themes/twentytwentytwo/styles/swiss.json @@ -0,0 +1,167 @@ +{ + "version": 2, + "title": "Swiss", + "settings": { + "color": { + "duotone": [ + { + "colors": [ + "#000000", + "#FFFFFF" + ], + "slug": "default-filter", + "name": "Default filter" + } + ], + "palette": [ + { + "slug": "foreground", + "color": "#FFFFFF", + "name": "Foreground" + }, + { + "slug": "background", + "color": "#1A1A1A", + "name": "Background" + }, + { + "slug": "primary", + "color": "#FF7179", + "name": "Primary" + }, + { + "slug": "secondary", + "color": "#F4F4F2", + "name": "Secondary" + }, + { + "slug": "tertiary", + "color": "#0000000", + "name": "Tertiary" + } + ] + }, + "custom": { + "spacing": { + "small": "max(1.25rem, 5vw)", + "medium": "clamp(1.75rem, 6vw, calc(3 * var(--wp--style--block-gap)))", + "large": "clamp(3.5rem, 8vw, 6rem)", + "outer": "var(--wp--custom--spacing--small, 1.25rem)" + }, + "typography": { + "font-size": { + "colossal": "clamp(3.5rem, 8vw, 5rem)" + } + } + }, + "typography": { + "fontFamilies": [ + { + "fontFamily": "\"Inter\", sans-serif", + "name": "Inter", + "slug": "inter", + "fontFace": [ + { + "fontFamily": "Inter", + "fontWeight": "200 900", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/inter/Inter.ttf" ] + } + ] + } + ] + } + }, + "styles": { + "blocks": { + "core/cover": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/image": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/post-author": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/post-featured-image": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/post-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)", + "fontWeight": "700" + } + }, + "core/query-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)" + } + }, + "core/site-logo": { + "filter": { + "duotone": "var(--wp--preset--duotone--default-filter)" + } + }, + "core/site-title": { + "typography": { + "fontWeight": "700", + "fontStyle":"normal" + } + } + }, + "elements": { + "h1": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)", + "fontWeight": "700" + } + }, + "h2": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)", + "fontWeight": "700" + } + }, + "h3": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)", + "fontWeight": "700" + } + }, + "h4": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)", + "fontWeight": "700" + } + }, + "h5": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)", + "fontWeight": "700" + } + }, + "h6": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)", + "fontWeight": "700" + } + }, + "link": { + "color": { + "text": "var(--wp--preset--color--primary)" + } + } + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--inter)" + } + } +} diff --git a/wp-content/themes/twentytwentytwo/templates/404.html b/wp-content/themes/twentytwentytwo/templates/404.html new file mode 100644 index 0000000..5789a3d --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/404.html @@ -0,0 +1,11 @@ + + + +
    +
    + +
    +
    + + + diff --git a/wp-content/themes/twentytwentytwo/templates/archive.html b/wp-content/themes/twentytwentytwo/templates/archive.html new file mode 100644 index 0000000..abc0218 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/archive.html @@ -0,0 +1,39 @@ + + + +
    + + +
    + + + + + +
    +
    + +
    + + + +
    +
    + + + +
    + + + + + + + + + +
    +
    + + + diff --git a/wp-content/themes/twentytwentytwo/templates/blank.html b/wp-content/themes/twentytwentytwo/templates/blank.html new file mode 100644 index 0000000..3fed9dc --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/blank.html @@ -0,0 +1 @@ + diff --git a/wp-content/themes/twentytwentytwo/templates/home.html b/wp-content/themes/twentytwentytwo/templates/home.html new file mode 100644 index 0000000..fea167e --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/home.html @@ -0,0 +1,37 @@ + + + +
    + +
    + + + + +
    +
    + +
    + + + +
    +
    + + + +
    +
    + + + + + + + + + +
    + + + diff --git a/wp-content/themes/twentytwentytwo/templates/index.html b/wp-content/themes/twentytwentytwo/templates/index.html new file mode 100644 index 0000000..d1d53f3 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/index.html @@ -0,0 +1,37 @@ + + + +
    + +
    + + + + +
    +
    + +
    + + + +
    +
    + + + +
    +
    + + + + + + + + + +
    + + + diff --git a/wp-content/themes/twentytwentytwo/templates/page-large-header.html b/wp-content/themes/twentytwentytwo/templates/page-large-header.html new file mode 100644 index 0000000..c5218f8 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/page-large-header.html @@ -0,0 +1,9 @@ + + + +
    + +
    + + + diff --git a/wp-content/themes/twentytwentytwo/templates/page-no-separators.html b/wp-content/themes/twentytwentytwo/templates/page-no-separators.html new file mode 100644 index 0000000..ef1b65e --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/page-no-separators.html @@ -0,0 +1,18 @@ + + + +
    +
    + +
    + + + + + +
    +
    +
    + + + diff --git a/wp-content/themes/twentytwentytwo/templates/page.html b/wp-content/themes/twentytwentytwo/templates/page.html new file mode 100644 index 0000000..faf34e6 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/page.html @@ -0,0 +1,26 @@ + + + +
    +
    + + + + +
    +
    + + + +
    + + + + + +
    +
    +
    + + + diff --git a/wp-content/themes/twentytwentytwo/templates/search.html b/wp-content/themes/twentytwentytwo/templates/search.html new file mode 100644 index 0000000..12a5c29 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/search.html @@ -0,0 +1,41 @@ + + + +
    + + + +
    + +
    + + + + +
    +
    + +
    + + + +
    +
    + + + +
    +
    + + + + + + + + + +
    + + + diff --git a/wp-content/themes/twentytwentytwo/templates/single-no-separators.html b/wp-content/themes/twentytwentytwo/templates/single-no-separators.html new file mode 100644 index 0000000..221fc1f --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/single-no-separators.html @@ -0,0 +1,35 @@ + + + +
    +
    + +
    + + + + + +
    + + + +
    +
    + + + + + +
    + + + +
    + + +
    +
    + + + diff --git a/wp-content/themes/twentytwentytwo/templates/single.html b/wp-content/themes/twentytwentytwo/templates/single.html new file mode 100644 index 0000000..3b102d2 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/templates/single.html @@ -0,0 +1,47 @@ + + + +
    +
    + + + + +
    +
    + + + +
    + + + + + +
    + + + +
    +
    + + + + + +
    + + + +
    + + + +
    + + +
    +
    + + + diff --git a/wp-content/themes/twentytwentytwo/theme.json b/wp-content/themes/twentytwentytwo/theme.json new file mode 100644 index 0000000..ec9ff86 --- /dev/null +++ b/wp-content/themes/twentytwentytwo/theme.json @@ -0,0 +1,374 @@ +{ + "$schema": "https://schemas.wp.org/trunk/theme.json", + "version": 2, + "customTemplates": [ + { + "name": "blank", + "title": "Blank", + "postTypes": [ + "page", + "post" + ] + }, + { + "name": "page-large-header", + "title": "Page (Large Header)", + "postTypes": [ + "page" + ] + }, + { + "name": "single-no-separators", + "title": "Single Post (No Separators)", + "postTypes": [ + "post" + ] + }, + { + "name": "page-no-separators", + "title": "Page (No Separators)", + "postTypes": [ + "page" + ] + } + ], + "settings": { + "appearanceTools": true, + "color": { + "duotone": [ + { + "colors": [ "#000000", "#ffffff" ], + "slug": "foreground-and-background", + "name": "Foreground and background" + }, + { + "colors": [ "#000000", "#ffe2c7" ], + "slug": "foreground-and-secondary", + "name": "Foreground and secondary" + }, + { + "colors": [ "#000000", "#f6f6f6" ], + "slug": "foreground-and-tertiary", + "name": "Foreground and tertiary" + }, + { + "colors": [ "#1a4548", "#ffffff" ], + "slug": "primary-and-background", + "name": "Primary and background" + }, + { + "colors": [ "#1a4548", "#ffe2c7" ], + "slug": "primary-and-secondary", + "name": "Primary and secondary" + }, + { + "colors": [ "#1a4548", "#f6f6f6" ], + "slug": "primary-and-tertiary", + "name": "Primary and tertiary" + } + ], + "gradients": [ + { + "slug": "vertical-secondary-to-tertiary", + "gradient": "linear-gradient(to bottom,var(--wp--preset--color--secondary) 0%,var(--wp--preset--color--tertiary) 100%)", + "name": "Vertical secondary to tertiary" + }, + { + "slug": "vertical-secondary-to-background", + "gradient": "linear-gradient(to bottom,var(--wp--preset--color--secondary) 0%,var(--wp--preset--color--background) 100%)", + "name": "Vertical secondary to background" + }, + { + "slug": "vertical-tertiary-to-background", + "gradient": "linear-gradient(to bottom,var(--wp--preset--color--tertiary) 0%,var(--wp--preset--color--background) 100%)", + "name": "Vertical tertiary to background" + }, + { + "slug": "diagonal-primary-to-foreground", + "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--primary) 0%,var(--wp--preset--color--foreground) 100%)", + "name": "Diagonal primary to foreground" + }, + { + "slug": "diagonal-secondary-to-background", + "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--secondary) 50%,var(--wp--preset--color--background) 50%)", + "name": "Diagonal secondary to background" + }, + { + "slug": "diagonal-background-to-secondary", + "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--background) 50%,var(--wp--preset--color--secondary) 50%)", + "name": "Diagonal background to secondary" + }, + { + "slug": "diagonal-tertiary-to-background", + "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--tertiary) 50%,var(--wp--preset--color--background) 50%)", + "name": "Diagonal tertiary to background" + }, + { + "slug": "diagonal-background-to-tertiary", + "gradient": "linear-gradient(to bottom right,var(--wp--preset--color--background) 50%,var(--wp--preset--color--tertiary) 50%)", + "name": "Diagonal background to tertiary" + } + ], + "palette": [ + { + "slug": "foreground", + "color": "#000000", + "name": "Foreground" + }, + { + "slug": "background", + "color": "#ffffff", + "name": "Background" + }, + { + "slug": "primary", + "color": "#1a4548", + "name": "Primary" + }, + { + "slug": "secondary", + "color": "#ffe2c7", + "name": "Secondary" + }, + { + "slug": "tertiary", + "color": "#F6F6F6", + "name": "Tertiary" + } + ] + }, + "custom": { + "spacing": { + "small": "max(1.25rem, 5vw)", + "medium": "clamp(2rem, 8vw, calc(4 * var(--wp--style--block-gap)))", + "large": "clamp(4rem, 10vw, 8rem)", + "outer": "var(--wp--custom--spacing--small, 1.25rem)" + }, + "typography": { + "font-size": { + "huge": "clamp(2.25rem, 4vw, 2.75rem)", + "gigantic": "clamp(2.75rem, 6vw, 3.25rem)", + "colossal": "clamp(3.25rem, 8vw, 6.25rem)" + }, + "line-height": { + "tiny": 1.15, + "small": 1.2, + "medium": 1.4, + "normal": 1.6 + } + } + }, + "spacing": { + "units": [ + "%", + "px", + "em", + "rem", + "vh", + "vw" + ] + }, + "typography": { + "dropCap": false, + "fontFamilies": [ + { + "fontFamily": "-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif", + "name": "System Font", + "slug": "system-font" + }, + { + "fontFamily": "\"Source Serif Pro\", serif", + "name": "Source Serif Pro", + "slug": "source-serif-pro", + "fontFace": [ + { + "fontFamily": "Source Serif Pro", + "fontWeight": "200 900", + "fontStyle": "normal", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2" ] + }, + { + "fontFamily": "Source Serif Pro", + "fontWeight": "200 900", + "fontStyle": "italic", + "fontStretch": "normal", + "src": [ "file:./assets/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2" ] + } + ] + } + ], + "fontSizes": [ + { + "size": "1rem", + "slug": "small" + }, + { + "size": "1.125rem", + "slug": "medium" + }, + { + "size": "1.75rem", + "slug": "large" + }, + { + "size": "clamp(1.75rem, 3vw, 2.25rem)", + "slug": "x-large" + } + ] + }, + "layout": { + "contentSize": "650px", + "wideSize": "1000px" + } + }, + "styles": { + "blocks": { + "core/button": { + "border": { + "radius": "0" + }, + "color": { + "background": "var(--wp--preset--color--primary)", + "text": "var(--wp--preset--color--background)" + }, + "typography": { + "fontSize": "var(--wp--preset--font-size--medium)" + } + }, + "core/post-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontWeight": "300", + "lineHeight": "var(--wp--custom--typography--line-height--tiny)", + "fontSize": "var(--wp--custom--typography--font-size--gigantic)" + } + }, + "core/post-comments": { + "spacing": { + "padding": { + "top": "var(--wp--custom--spacing--small)" + } + } + }, + "core/pullquote": { + "border": { + "width": "1px 0" + } + }, + "core/query-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontWeight": "300", + "lineHeight": "var(--wp--custom--typography--line-height--small)", + "fontSize": "var(--wp--custom--typography--font-size--gigantic)" + } + }, + "core/quote": { + "border": { + "width": "1px" + } + }, + "core/site-title": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--system-font)", + "lineHeight": "var(--wp--custom--typography--line-height--normal)", + "fontSize": "var(--wp--preset--font-size--medium)", + "fontStyle": "italic", + "fontWeight": "normal" + } + } + }, + "color": { + "background": "var(--wp--preset--color--background)", + "text": "var(--wp--preset--color--foreground)" + }, + "elements": { + "h1": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontWeight": "300", + "lineHeight": "var(--wp--custom--typography--line-height--tiny)", + "fontSize": "var(--wp--custom--typography--font-size--colossal)" + } + }, + "h2": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontWeight": "300", + "lineHeight": "var(--wp--custom--typography--line-height--small)", + "fontSize": "var(--wp--custom--typography--font-size--gigantic)" + } + }, + "h3": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontWeight": "300", + "lineHeight": "var(--wp--custom--typography--line-height--tiny)", + "fontSize": "var(--wp--custom--typography--font-size--huge)" + } + }, + "h4": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--source-serif-pro)", + "fontWeight": "300", + "lineHeight": "var(--wp--custom--typography--line-height--tiny)", + "fontSize": "var(--wp--preset--font-size--x-large)" + } + }, + "h5": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--system-font)", + "fontWeight": "700", + "textTransform": "uppercase", + "lineHeight": "var(--wp--custom--typography--line-height--normal)", + "fontSize": "var(--wp--preset--font-size--medium)" + } + }, + "h6": { + "typography": { + "fontFamily": "var(--wp--preset--font-family--system-font)", + "fontWeight": "400", + "textTransform": "uppercase", + "lineHeight": "var(--wp--custom--typography--line-height--normal)", + "fontSize": "var(--wp--preset--font-size--medium)" + } + }, + "link": { + "color": { + "text": "var(--wp--preset--color--foreground)" + } + } + }, + "spacing": { + "blockGap": "1.5rem" + }, + "typography": { + "fontFamily": "var(--wp--preset--font-family--system-font)", + "lineHeight": "var(--wp--custom--typography--line-height--normal)", + "fontSize": "var(--wp--preset--font-size--medium)" + } + }, + "templateParts": [ + { + "name": "header", + "title": "Header", + "area": "header" + }, + { + "name": "header-large-dark", + "title": "Header (Dark, large)", + "area": "header" + }, + { + "name": "header-small-dark", + "title": "Header (Dark, small)", + "area": "header" + }, + { + "name": "footer", + "title": "Footer", + "area": "footer" + } + ] +} diff --git a/wp-cron.php b/wp-cron.php new file mode 100644 index 0000000..161478a --- /dev/null +++ b/wp-cron.php @@ -0,0 +1,205 @@ += 70016 && function_exists( 'fastcgi_finish_request' ) ) { + fastcgi_finish_request(); +} elseif ( function_exists( 'litespeed_finish_request' ) ) { + litespeed_finish_request(); +} + +if ( ! empty( $_POST ) || defined( 'DOING_AJAX' ) || defined( 'DOING_CRON' ) ) { + die(); +} + +/** + * Tell WordPress the cron task is running. + * + * @var bool + */ +define( 'DOING_CRON', true ); + +if ( ! defined( 'ABSPATH' ) ) { + /** Set up WordPress environment */ + require_once __DIR__ . '/wp-load.php'; +} + +// Attempt to raise the PHP memory limit for cron event processing. +wp_raise_memory_limit( 'cron' ); + +/** + * Retrieves the cron lock. + * + * Returns the uncached `doing_cron` transient. + * + * @ignore + * @since 3.3.0 + * + * @global wpdb $wpdb WordPress database abstraction object. + * + * @return string|int|false Value of the `doing_cron` transient, 0|false otherwise. + */ +function _get_cron_lock() { + global $wpdb; + + $value = 0; + if ( wp_using_ext_object_cache() ) { + /* + * Skip local cache and force re-fetch of doing_cron transient + * in case another process updated the cache. + */ + $value = wp_cache_get( 'doing_cron', 'transient', true ); + } else { + $row = $wpdb->get_row( $wpdb->prepare( "SELECT option_value FROM $wpdb->options WHERE option_name = %s LIMIT 1", '_transient_doing_cron' ) ); + if ( is_object( $row ) ) { + $value = $row->option_value; + } + } + + return $value; +} + +$crons = wp_get_ready_cron_jobs(); +if ( empty( $crons ) ) { + die(); +} + +$gmt_time = microtime( true ); + +// The cron lock: a unix timestamp from when the cron was spawned. +$doing_cron_transient = get_transient( 'doing_cron' ); + +// Use global $doing_wp_cron lock, otherwise use the GET lock. If no lock, try to grab a new lock. +if ( empty( $doing_wp_cron ) ) { + if ( empty( $_GET['doing_wp_cron'] ) ) { + // Called from external script/job. Try setting a lock. + if ( $doing_cron_transient && ( $doing_cron_transient + WP_CRON_LOCK_TIMEOUT > $gmt_time ) ) { + return; + } + $doing_wp_cron = sprintf( '%.22F', microtime( true ) ); + $doing_cron_transient = $doing_wp_cron; + set_transient( 'doing_cron', $doing_wp_cron ); + } else { + $doing_wp_cron = $_GET['doing_wp_cron']; + } +} + +/* + * The cron lock (a unix timestamp set when the cron was spawned), + * must match $doing_wp_cron (the "key"). + */ +if ( $doing_cron_transient !== $doing_wp_cron ) { + return; +} + +foreach ( $crons as $timestamp => $cronhooks ) { + if ( $timestamp > $gmt_time ) { + break; + } + + foreach ( $cronhooks as $hook => $keys ) { + + foreach ( $keys as $k => $v ) { + + $schedule = $v['schedule']; + + if ( $schedule ) { + $result = wp_reschedule_event( $timestamp, $schedule, $hook, $v['args'], true ); + + if ( is_wp_error( $result ) ) { + error_log( + sprintf( + /* translators: 1: Hook name, 2: Error code, 3: Error message, 4: Event data. */ + __( 'Cron reschedule event error for hook: %1$s, Error code: %2$s, Error message: %3$s, Data: %4$s' ), + $hook, + $result->get_error_code(), + $result->get_error_message(), + wp_json_encode( $v ) + ) + ); + + /** + * Fires when an error happens rescheduling a cron event. + * + * @since 6.1.0 + * + * @param WP_Error $result The WP_Error object. + * @param string $hook Action hook to execute when the event is run. + * @param array $v Event data. + */ + do_action( 'cron_reschedule_event_error', $result, $hook, $v ); + } + } + + $result = wp_unschedule_event( $timestamp, $hook, $v['args'], true ); + + if ( is_wp_error( $result ) ) { + error_log( + sprintf( + /* translators: 1: Hook name, 2: Error code, 3: Error message, 4: Event data. */ + __( 'Cron unschedule event error for hook: %1$s, Error code: %2$s, Error message: %3$s, Data: %4$s' ), + $hook, + $result->get_error_code(), + $result->get_error_message(), + wp_json_encode( $v ) + ) + ); + + /** + * Fires when an error happens unscheduling a cron event. + * + * @since 6.1.0 + * + * @param WP_Error $result The WP_Error object. + * @param string $hook Action hook to execute when the event is run. + * @param array $v Event data. + */ + do_action( 'cron_unschedule_event_error', $result, $hook, $v ); + } + + /** + * Fires scheduled events. + * + * @ignore + * @since 2.1.0 + * + * @param string $hook Name of the hook that was scheduled to be fired. + * @param array $args The arguments to be passed to the hook. + */ + do_action_ref_array( $hook, $v['args'] ); + + // If the hook ran too long and another cron process stole the lock, quit. + if ( _get_cron_lock() !== $doing_wp_cron ) { + return; + } + } + } +} + +if ( _get_cron_lock() === $doing_wp_cron ) { + delete_transient( 'doing_cron' ); +} + +die(); diff --git a/wp-links-opml.php b/wp-links-opml.php new file mode 100644 index 0000000..746c287 --- /dev/null +++ b/wp-links-opml.php @@ -0,0 +1,98 @@ +\n"; +?> + + + + <?php + /* translators: %s: Site title. */ + printf( __( 'Links for %s' ), esc_attr( get_bloginfo( 'name', 'display' ) ) ); + ?> + + GMT + + + + 'link_category', + 'hierarchical' => 0, + ) + ); +} else { + $cats = get_categories( + array( + 'taxonomy' => 'link_category', + 'hierarchical' => 0, + 'include' => $link_cat, + ) + ); +} + +foreach ( (array) $cats as $cat ) : + /** This filter is documented in wp-includes/bookmark-template.php */ + $catname = apply_filters( 'link_category', $cat->name ); + + ?> + + $cat->term_id ) ); + foreach ( (array) $bookmarks as $bookmark ) : + /** + * Filters the OPML outline link title text. + * + * @since 2.2.0 + * + * @param string $title The OPML outline title text. + */ + $title = apply_filters( 'link_title', $bookmark->link_name ); + ?> + + + + + + diff --git a/wp-load.php b/wp-load.php new file mode 100644 index 0000000..d3787d1 --- /dev/null +++ b/wp-load.php @@ -0,0 +1,105 @@ +' . sprintf( + /* translators: %s: wp-config.php */ + __( "There doesn't seem to be a %s file. It is needed before the installation can continue." ), + 'wp-config.php' + ) . '

    '; + $die .= '

    ' . sprintf( + /* translators: 1: Documentation URL, 2: wp-config.php */ + __( 'Need more help? Read the support article on %2$s.' ), + __( 'https://wordpress.org/documentation/article/editing-wp-config-php/' ), + 'wp-config.php' + ) . '

    '; + $die .= '

    ' . sprintf( + /* translators: %s: wp-config.php */ + __( "You can create a %s file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ), + 'wp-config.php' + ) . '

    '; + $die .= '

    ' . __( 'Create a Configuration File' ) . '

    '; + + wp_die( $die, __( 'WordPress › Error' ) ); +} diff --git a/wp-login.php b/wp-login.php new file mode 100644 index 0000000..9eeac4a --- /dev/null +++ b/wp-login.php @@ -0,0 +1,1637 @@ +` element. + * Default 'Log In'. + * @param string $message Optional. Message to display in header. Default empty. + * @param WP_Error $wp_error Optional. The error to pass. Default is a WP_Error instance. + */ +function login_header( $title = 'Log In', $message = '', $wp_error = null ) { + global $error, $interim_login, $action; + + // Don't index any of these forms. + add_filter( 'wp_robots', 'wp_robots_sensitive_page' ); + add_action( 'login_head', 'wp_strict_cross_origin_referrer' ); + + add_action( 'login_head', 'wp_login_viewport_meta' ); + + if ( ! is_wp_error( $wp_error ) ) { + $wp_error = new WP_Error(); + } + + // Shake it! + $shake_error_codes = array( 'empty_password', 'empty_email', 'invalid_email', 'invalidcombo', 'empty_username', 'invalid_username', 'incorrect_password', 'retrieve_password_email_failure' ); + /** + * Filters the error codes array for shaking the login form. + * + * @since 3.0.0 + * + * @param string[] $shake_error_codes Error codes that shake the login form. + */ + $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes ); + + if ( $shake_error_codes && $wp_error->has_errors() && in_array( $wp_error->get_error_code(), $shake_error_codes, true ) ) { + add_action( 'login_footer', 'wp_shake_js', 12 ); + } + + $login_title = get_bloginfo( 'name', 'display' ); + + /* translators: Login screen title. 1: Login screen name, 2: Network or site name. */ + $login_title = sprintf( __( '%1$s ‹ %2$s — WordPress' ), $title, $login_title ); + + if ( wp_is_recovery_mode() ) { + /* translators: %s: Login screen title. */ + $login_title = sprintf( __( 'Recovery Mode — %s' ), $login_title ); + } + + /** + * Filters the title tag content for login page. + * + * @since 4.9.0 + * + * @param string $login_title The page title, with extra context added. + * @param string $title The original page title. + */ + $login_title = apply_filters( 'login_title', $login_title, $title ); + + ?> + > + + + <?php echo $login_title; ?> + get_error_code() ) { + ob_start(); + ?> + + + + + + + + + +
    +

    + add( 'error', $error ); + unset( $error ); + } + + if ( $wp_error->has_errors() ) { + $error_list = array(); + $messages = ''; + + foreach ( $wp_error->get_error_codes() as $code ) { + $severity = $wp_error->get_error_data( $code ); + foreach ( $wp_error->get_error_messages( $code ) as $error_message ) { + if ( 'message' === $severity ) { + $messages .= '

    ' . $error_message . '

    '; + } else { + $error_list[] = $error_message; + } + } + } + + if ( ! empty( $error_list ) ) { + $errors = ''; + + if ( count( $error_list ) > 1 ) { + $errors .= '
      '; + + foreach ( $error_list as $item ) { + $errors .= '
    • ' . $item . '
    • '; + } + + $errors .= '
    '; + } else { + $errors .= '

    ' . $error_list[0] . '

    '; + } + + /** + * Filters the error messages displayed above the login form. + * + * @since 2.1.0 + * + * @param string $errors Login error messages. + */ + $errors = apply_filters( 'login_errors', $errors ); + + wp_admin_notice( + $errors, + array( + 'type' => 'error', + 'id' => 'login_error', + 'paragraph_wrap' => false, + ) + ); + } + + if ( ! empty( $messages ) ) { + /** + * Filters instructional messages displayed above the login form. + * + * @since 2.5.0 + * + * @param string $messages Login messages. + */ + $messages = apply_filters( 'login_messages', $messages ); + + wp_admin_notice( + $messages, + array( + 'type' => 'info', + 'id' => 'login-message', + 'additional_classes' => array( 'message' ), + 'paragraph_wrap' => false, + ) + ); + } + } +} // End of login_header(). + +/** + * Outputs the footer for the login page. + * + * @since 3.1.0 + * + * @global bool|string $interim_login Whether interim login modal is being displayed. String 'success' + * upon successful login. + * + * @param string $input_id Which input to auto-focus. + */ +function login_footer( $input_id = '' ) { + global $interim_login; + + // Don't allow interim logins to navigate away from the page. + if ( ! $interim_login ) { + ?> +

    + %s', + esc_url( home_url( '/' ) ), + sprintf( + /* translators: %s: Site title. */ + _x( '← Go to %s', 'site' ), + get_bloginfo( 'title', 'display' ) + ) + ); + /** + * Filters the "Go to site" link displayed in the login page footer. + * + * @since 5.7.0 + * + * @param string $link HTML link to the home URL of the current site. + */ + echo apply_filters( 'login_site_html_link', $html_link ); + ?> +

    + ', '
    ' ); + } + + ?> + . ?> + + +
    +
    + + + + 'language-switcher-locales', + 'name' => 'wp_lang', + 'selected' => determine_locale(), + 'show_available_translations' => false, + 'explicit_option_en_us' => true, + 'languages' => $languages, + ); + + /** + * Filters default arguments for the Languages select input on the login screen. + * + * The arguments get passed to the wp_dropdown_languages() function. + * + * @since 5.9.0 + * + * @param array $args Arguments for the Languages select input on the login screen. + */ + wp_dropdown_languages( apply_filters( 'login_language_dropdown_args', $args ) ); + ?> + + + + + + + + + + + + + + + +
    +
    + + + + + + + + + + 0 ) { + update_option( 'admin_email_lifespan', time() + $remind_interval ); + } + + $redirect_to = add_query_arg( 'admin_email_remind_later', 1, $redirect_to ); + wp_safe_redirect( $redirect_to ); + exit; + } + + if ( ! empty( $_POST['correct-admin-email'] ) ) { + if ( ! check_admin_referer( 'confirm_admin_email', 'confirm_admin_email_nonce' ) ) { + wp_safe_redirect( wp_login_url() ); + exit; + } + + /** + * Filters the interval for redirecting the user to the admin email confirmation screen. + * + * If `0` (zero) is returned, the user will not be redirected. + * + * @since 5.3.0 + * + * @param int $interval Interval time (in seconds). Default is 6 months. + */ + $admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS ); + + if ( $admin_email_check_interval > 0 ) { + update_option( 'admin_email_lifespan', time() + $admin_email_check_interval ); + } + + wp_safe_redirect( $redirect_to ); + exit; + } + + login_header( __( 'Confirm your administration email' ), '', $errors ); + + /** + * Fires before the admin email confirm form. + * + * @since 5.3.0 + * + * @param WP_Error $errors A `WP_Error` object containing any errors generated by using invalid + * credentials. Note that the error object may not contain any errors. + */ + do_action( 'admin_email_confirm', $errors ); + + ?> + +
    + + + +

    + +

    +

    + administration email for this website is still correct.' ); ?> + %s', + /* translators: Hidden accessibility text. */ + __( '(opens in a new tab)' ) + ); + + printf( + '%s%s', + esc_url( $admin_email_help_url ), + __( 'Why is this important?' ), + $accessibility_text + ); + + ?> +

    +

    + ' . esc_html( $admin_email ) . '' + ); + + ?> +

    +

    + +

    + +
    +
    + + + +
    + 0 ) : ?> +
    + 'confirm_admin_email', + 'remind_me_later' => wp_create_nonce( 'remind_me_later_nonce' ), + ), + $remind_me_link + ); + + ?> + +
    + +
    +
    + + HashPassword( wp_unslash( $_POST['post_password'] ) ), $expire, COOKIEPATH, COOKIE_DOMAIN, $secure ); + + wp_safe_redirect( wp_get_referer() ); + exit; + + case 'logout': + check_admin_referer( 'log-out' ); + + $user = wp_get_current_user(); + + wp_logout(); + + if ( ! empty( $_REQUEST['redirect_to'] ) ) { + $redirect_to = $_REQUEST['redirect_to']; + $requested_redirect_to = $redirect_to; + } else { + $redirect_to = add_query_arg( + array( + 'loggedout' => 'true', + 'wp_lang' => get_user_locale( $user ), + ), + wp_login_url() + ); + + $requested_redirect_to = ''; + } + + /** + * Filters the log out redirect URL. + * + * @since 4.2.0 + * + * @param string $redirect_to The redirect destination URL. + * @param string $requested_redirect_to The requested redirect destination URL passed as a parameter. + * @param WP_User $user The WP_User object for the user that's logging out. + */ + $redirect_to = apply_filters( 'logout_redirect', $redirect_to, $requested_redirect_to, $user ); + + wp_safe_redirect( $redirect_to ); + exit; + + case 'lostpassword': + case 'retrievepassword': + if ( $http_post ) { + $errors = retrieve_password(); + + if ( ! is_wp_error( $errors ) ) { + $redirect_to = ! empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?checkemail=confirm'; + wp_safe_redirect( $redirect_to ); + exit; + } + } + + if ( isset( $_GET['error'] ) ) { + if ( 'invalidkey' === $_GET['error'] ) { + $errors->add( 'invalidkey', __( 'Error: Your password reset link appears to be invalid. Please request a new link below.' ) ); + } elseif ( 'expiredkey' === $_GET['error'] ) { + $errors->add( 'expiredkey', __( 'Error: Your password reset link has expired. Please request a new link below.' ) ); + } + } + + $lostpassword_redirect = ! empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; + /** + * Filters the URL redirected to after submitting the lostpassword/retrievepassword form. + * + * @since 3.0.0 + * + * @param string $lostpassword_redirect The redirect destination URL. + */ + $redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect ); + + /** + * Fires before the lost password form. + * + * @since 1.5.1 + * @since 5.1.0 Added the `$errors` parameter. + * + * @param WP_Error $errors A `WP_Error` object containing any errors generated by using invalid + * credentials. Note that the error object may not contain any errors. + */ + do_action( 'lost_password', $errors ); + + login_header( + __( 'Lost Password' ), + wp_get_admin_notice( + __( 'Please enter your username or email address. You will receive an email message with instructions on how to reset your password.' ), + array( + 'type' => 'info', + 'additional_classes' => array( 'message' ), + ) + ), + $errors + ); + + $user_login = ''; + + if ( isset( $_POST['user_login'] ) && is_string( $_POST['user_login'] ) ) { + $user_login = wp_unslash( $_POST['user_login'] ); + } + + ?> + +
    +

    + + +

    + + +

    + +

    +
    + +

    + + %s', esc_url( wp_registration_url() ), __( 'Register' ) ); + + echo esc_html( $login_link_separator ); + + /** This filter is documented in wp-includes/general-template.php */ + echo apply_filters( 'register', $registration_url ); + } + + ?> +

    + get_error_code() === 'expired_key' ) { + wp_redirect( site_url( 'wp-login.php?action=lostpassword&error=expiredkey' ) ); + } else { + wp_redirect( site_url( 'wp-login.php?action=lostpassword&error=invalidkey' ) ); + } + + exit; + } + + $errors = new WP_Error(); + + // Check if password is one or all empty spaces. + if ( ! empty( $_POST['pass1'] ) ) { + $_POST['pass1'] = trim( $_POST['pass1'] ); + + if ( empty( $_POST['pass1'] ) ) { + $errors->add( 'password_reset_empty_space', __( 'The password cannot be a space or all spaces.' ) ); + } + } + + // Check if password fields do not match. + if ( ! empty( $_POST['pass1'] ) && trim( $_POST['pass2'] ) !== $_POST['pass1'] ) { + $errors->add( 'password_reset_mismatch', __( 'Error: The passwords do not match.' ) ); + } + + /** + * Fires before the password reset procedure is validated. + * + * @since 3.5.0 + * + * @param WP_Error $errors WP Error object. + * @param WP_User|WP_Error $user WP_User object if the login and reset key match. WP_Error object otherwise. + */ + do_action( 'validate_password_reset', $errors, $user ); + + if ( ( ! $errors->has_errors() ) && isset( $_POST['pass1'] ) && ! empty( $_POST['pass1'] ) ) { + reset_password( $user, $_POST['pass1'] ); + setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true ); + login_header( + __( 'Password Reset' ), + wp_get_admin_notice( + __( 'Your password has been reset.' ) . ' ' . __( 'Log in' ) . '', + array( + 'type' => 'info', + 'additional_classes' => array( 'message', 'reset-pass' ), + ) + ) + ); + login_footer(); + exit; + } + + wp_enqueue_script( 'utils' ); + wp_enqueue_script( 'user-profile' ); + + login_header( + __( 'Reset Password' ), + wp_get_admin_notice( + __( 'Enter your new password below or generate one.' ), + array( + 'type' => 'info', + 'additional_classes' => array( 'message', 'reset-pass' ), + ) + ), + $errors + ); + + ?> +
    + + +
    +

    + +

    + +
    + + + +
    +
    +
    + + +
    +
    + +

    + + +

    + +

    + + + +

    + + +

    +
    + +

    + + %s', esc_url( wp_registration_url() ), __( 'Register' ) ); + + echo esc_html( $login_link_separator ); + + /** This filter is documented in wp-includes/general-template.php */ + echo apply_filters( 'register', $registration_url ); + } + + ?> +

    + 'info', + 'additional_classes' => array( 'message', 'register' ), + ) + ), + $errors + ); + + ?> +
    +

    + + +

    +

    + + +

    + +

    + +

    + +

    + +

    +
    + +

    + + %s', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); + + /** This filter is documented in wp-login.php */ + echo apply_filters( 'lost_password_html_link', $html_link ); + + ?> +

    + add( + 'confirm', + sprintf( + /* translators: %s: Link to the login page. */ + __( 'Check your email for the confirmation link, then visit the login page.' ), + wp_login_url() + ), + 'message' + ); + } elseif ( 'registered' === $_GET['checkemail'] ) { + $errors->add( + 'registered', + sprintf( + /* translators: %s: Link to the login page. */ + __( 'Registration complete. Please check your email, then visit the login page.' ), + wp_login_url() + ), + 'message' + ); + } + + /** This action is documented in wp-login.php */ + $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to ); + + login_header( __( 'Check your email' ), '', $errors ); + login_footer(); + break; + + case 'confirmaction': + if ( ! isset( $_GET['request_id'] ) ) { + wp_die( __( 'Missing request ID.' ) ); + } + + if ( ! isset( $_GET['confirm_key'] ) ) { + wp_die( __( 'Missing confirm key.' ) ); + } + + $request_id = (int) $_GET['request_id']; + $key = sanitize_text_field( wp_unslash( $_GET['confirm_key'] ) ); + $result = wp_validate_user_request_key( $request_id, $key ); + + if ( is_wp_error( $result ) ) { + wp_die( $result ); + } + + /** + * Fires an action hook when the account action has been confirmed by the user. + * + * Using this you can assume the user has agreed to perform the action by + * clicking on the link in the confirmation email. + * + * After firing this action hook the page will redirect to wp-login a callback + * redirects or exits first. + * + * @since 4.9.6 + * + * @param int $request_id Request ID. + */ + do_action( 'user_request_action_confirmed', $request_id ); + + $message = _wp_privacy_account_request_confirmed_message( $request_id ); + + login_header( __( 'User action confirmed.' ), $message ); + login_footer(); + exit; + + case 'login': + default: + $secure_cookie = ''; + $customize_login = isset( $_REQUEST['customize-login'] ); + + if ( $customize_login ) { + wp_enqueue_script( 'customize-base' ); + } + + // If the user wants SSL but the session is not SSL, force a secure cookie. + if ( ! empty( $_POST['log'] ) && ! force_ssl_admin() ) { + $user_name = sanitize_user( wp_unslash( $_POST['log'] ) ); + $user = get_user_by( 'login', $user_name ); + + if ( ! $user && strpos( $user_name, '@' ) ) { + $user = get_user_by( 'email', $user_name ); + } + + if ( $user ) { + if ( get_user_option( 'use_ssl', $user->ID ) ) { + $secure_cookie = true; + force_ssl_admin( true ); + } + } + } + + if ( isset( $_REQUEST['redirect_to'] ) ) { + $redirect_to = $_REQUEST['redirect_to']; + // Redirect to HTTPS if user wants SSL. + if ( $secure_cookie && str_contains( $redirect_to, 'wp-admin' ) ) { + $redirect_to = preg_replace( '|^http://|', 'https://', $redirect_to ); + } + } else { + $redirect_to = admin_url(); + } + + $reauth = empty( $_REQUEST['reauth'] ) ? false : true; + + $user = wp_signon( array(), $secure_cookie ); + + if ( empty( $_COOKIE[ LOGGED_IN_COOKIE ] ) ) { + if ( headers_sent() ) { + $user = new WP_Error( + 'test_cookie', + sprintf( + /* translators: 1: Browser cookie documentation URL, 2: Support forums URL. */ + __( 'Error: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.' ), + __( 'https://wordpress.org/documentation/article/cookies/' ), + __( 'https://wordpress.org/support/forums/' ) + ) + ); + } elseif ( isset( $_POST['testcookie'] ) && empty( $_COOKIE[ TEST_COOKIE ] ) ) { + // If cookies are disabled, the user can't log in even with a valid username and password. + $user = new WP_Error( + 'test_cookie', + sprintf( + /* translators: %s: Browser cookie documentation URL. */ + __( 'Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.' ), + __( 'https://wordpress.org/documentation/article/cookies/#enable-cookies-in-your-browser' ) + ) + ); + } + } + + $requested_redirect_to = isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; + /** + * Filters the login redirect URL. + * + * @since 3.0.0 + * + * @param string $redirect_to The redirect destination URL. + * @param string $requested_redirect_to The requested redirect destination URL passed as a parameter. + * @param WP_User|WP_Error $user WP_User object if login was successful, WP_Error object otherwise. + */ + $redirect_to = apply_filters( 'login_redirect', $redirect_to, $requested_redirect_to, $user ); + + if ( ! is_wp_error( $user ) && ! $reauth ) { + if ( $interim_login ) { + $message = '

    ' . __( 'You have logged in successfully.' ) . '

    '; + $interim_login = 'success'; + login_header( '', $message ); + + ?> + + + + + + exists() && $user->has_cap( 'manage_options' ) ) { + $admin_email_lifespan = (int) get_option( 'admin_email_lifespan' ); + + /* + * If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected + * to the admin email confirmation screen. + */ + /** This filter is documented in wp-login.php */ + $admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS ); + + if ( $admin_email_check_interval > 0 && time() > $admin_email_lifespan ) { + $redirect_to = add_query_arg( + array( + 'action' => 'confirm_admin_email', + 'wp_lang' => get_user_locale( $user ), + ), + wp_login_url( $redirect_to ) + ); + } + } + + if ( ( empty( $redirect_to ) || 'wp-admin/' === $redirect_to || admin_url() === $redirect_to ) ) { + // If the user doesn't belong to a blog, send them to user admin. If the user can't edit posts, send them to their profile. + if ( is_multisite() && ! get_active_blog_for_user( $user->ID ) && ! is_super_admin( $user->ID ) ) { + $redirect_to = user_admin_url(); + } elseif ( is_multisite() && ! $user->has_cap( 'read' ) ) { + $redirect_to = get_dashboard_url( $user->ID ); + } elseif ( ! $user->has_cap( 'edit_posts' ) ) { + $redirect_to = $user->has_cap( 'read' ) ? admin_url( 'profile.php' ) : home_url(); + } + + wp_redirect( $redirect_to ); + exit; + } + + wp_safe_redirect( $redirect_to ); + exit; + } + + $errors = $user; + // Clear errors if loggedout is set. + if ( ! empty( $_GET['loggedout'] ) || $reauth ) { + $errors = new WP_Error(); + } + + if ( empty( $_POST ) && $errors->get_error_codes() === array( 'empty_username', 'empty_password' ) ) { + $errors = new WP_Error( '', '' ); + } + + if ( $interim_login ) { + if ( ! $errors->has_errors() ) { + $errors->add( 'expired', __( 'Your session has expired. Please log in to continue where you left off.' ), 'message' ); + } + } else { + // Some parts of this script use the main login form to display a message. + if ( isset( $_GET['loggedout'] ) && $_GET['loggedout'] ) { + $errors->add( 'loggedout', __( 'You are now logged out.' ), 'message' ); + } elseif ( isset( $_GET['registration'] ) && 'disabled' === $_GET['registration'] ) { + $errors->add( 'registerdisabled', __( 'Error: User registration is currently not allowed.' ) ); + } elseif ( str_contains( $redirect_to, 'about.php?updated' ) ) { + $errors->add( 'updated', __( 'You have successfully updated WordPress! Please log back in to see what’s new.' ), 'message' ); + } elseif ( WP_Recovery_Mode_Link_Service::LOGIN_ACTION_ENTERED === $action ) { + $errors->add( 'enter_recovery_mode', __( 'Recovery Mode Initialized. Please log in to continue.' ), 'message' ); + } elseif ( isset( $_GET['redirect_to'] ) && str_contains( $_GET['redirect_to'], 'wp-admin/authorize-application.php' ) ) { + $query_component = wp_parse_url( $_GET['redirect_to'], PHP_URL_QUERY ); + $query = array(); + if ( $query_component ) { + parse_str( $query_component, $query ); + } + + if ( ! empty( $query['app_name'] ) ) { + /* translators: 1: Website name, 2: Application name. */ + $message = sprintf( 'Please log in to %1$s to authorize %2$s to connect to your account.', get_bloginfo( 'name', 'display' ), '' . esc_html( $query['app_name'] ) . '' ); + } else { + /* translators: %s: Website name. */ + $message = sprintf( 'Please log in to %s to proceed with authorization.', get_bloginfo( 'name', 'display' ) ); + } + + $errors->add( 'authorize_application', $message, 'message' ); + } + } + + /** + * Filters the login page errors. + * + * @since 3.6.0 + * + * @param WP_Error $errors WP Error object. + * @param string $redirect_to Redirect destination URL. + */ + $errors = apply_filters( 'wp_login_errors', $errors, $redirect_to ); + + // Clear any stale cookies. + if ( $reauth ) { + wp_clear_auth_cookie(); + } + + login_header( __( 'Log In' ), '', $errors ); + + if ( isset( $_POST['log'] ) ) { + $user_login = ( 'incorrect_password' === $errors->get_error_code() || 'empty_password' === $errors->get_error_code() ) ? esc_attr( wp_unslash( $_POST['log'] ) ) : ''; + } + + $rememberme = ! empty( $_POST['rememberme'] ); + + $aria_describedby = ''; + $has_errors = $errors->has_errors(); + + if ( $has_errors ) { + $aria_describedby = ' aria-describedby="login_error"'; + } + + if ( $has_errors && 'message' === $errors->get_error_data() ) { + $aria_describedby = ' aria-describedby="login-message"'; + } + + wp_enqueue_script( 'user-profile' ); + ?> + +
    +

    + + class="input" value="" size="20" autocapitalize="off" autocomplete="username" required="required" /> +

    + +
    + +
    + class="input password-input" value="" size="20" autocomplete="current-password" spellcheck="false" required="required" /> + +
    +
    + +

    />

    +

    + + + + + + + + + +

    +
    + + +

    + %s', esc_url( wp_registration_url() ), __( 'Register' ) ); + + /** This filter is documented in wp-includes/general-template.php */ + echo apply_filters( 'register', $registration_url ); + + echo esc_html( $login_link_separator ); + } + + $html_link = sprintf( '%s', esc_url( wp_lostpassword_url() ), __( 'Lost your password?' ) ); + + /** + * Filters the link that allows the user to reset the lost password. + * + * @since 6.1.0 + * + * @param string $html_link HTML link to the lost password form. + */ + echo apply_filters( 'lost_password_html_link', $html_link ); + + ?> +

    + get_error_code() === 'invalid_username' ) { + $login_script .= 'd.value = "";'; + } + } + + $login_script .= 'd.focus(); d.select();'; + $login_script .= '} catch( er ) {}'; + $login_script .= '}, 200);'; + $login_script .= "}\n"; // End of wp_attempt_focus(). + + /** + * Filters whether to print the call to `wp_attempt_focus()` on the login screen. + * + * @since 4.8.0 + * + * @param bool $print Whether to print the function call. Default true. + */ + if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { + $login_script .= "wp_attempt_focus();\n"; + } + + // Run `wpOnload()` if defined. + $login_script .= "if ( typeof wpOnload === 'function' ) { wpOnload() }"; + + wp_print_inline_script_tag( $login_script ); + + if ( $interim_login ) { + ob_start(); + ?> + + Writing + * + * @package WordPress + */ + +/** Make sure that the WordPress bootstrap has run before continuing. */ +require __DIR__ . '/wp-load.php'; + +/** This filter is documented in wp-admin/options.php */ +if ( ! apply_filters( 'enable_post_by_email_configuration', true ) ) { + wp_die( __( 'This action has been disabled by the administrator.' ), 403 ); +} + +$mailserver_url = get_option( 'mailserver_url' ); + +if ( 'mail.example.com' === $mailserver_url || empty( $mailserver_url ) ) { + wp_die( __( 'This action has been disabled by the administrator.' ), 403 ); +} + +/** + * Fires to allow a plugin to do a complete takeover of Post by Email. + * + * @since 2.9.0 + */ +do_action( 'wp-mail.php' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores + +/** Get the POP3 class with which to access the mailbox. */ +require_once ABSPATH . WPINC . '/class-pop3.php'; + +/** Only check at this interval for new messages. */ +if ( ! defined( 'WP_MAIL_INTERVAL' ) ) { + define( 'WP_MAIL_INTERVAL', 5 * MINUTE_IN_SECONDS ); +} + +$last_checked = get_transient( 'mailserver_last_checked' ); + +if ( $last_checked ) { + wp_die( __( 'Slow down cowboy, no need to check for new mails so often!' ) ); +} + +set_transient( 'mailserver_last_checked', true, WP_MAIL_INTERVAL ); + +$time_difference = get_option( 'gmt_offset' ) * HOUR_IN_SECONDS; + +$phone_delim = '::'; + +$pop3 = new POP3(); + +if ( ! $pop3->connect( get_option( 'mailserver_url' ), get_option( 'mailserver_port' ) ) || ! $pop3->user( get_option( 'mailserver_login' ) ) ) { + wp_die( esc_html( $pop3->ERROR ) ); +} + +$count = $pop3->pass( get_option( 'mailserver_pass' ) ); + +if ( false === $count ) { + wp_die( esc_html( $pop3->ERROR ) ); +} + +if ( 0 === $count ) { + $pop3->quit(); + wp_die( __( 'There does not seem to be any new mail.' ) ); +} + +// Always run as an unauthenticated user. +wp_set_current_user( 0 ); + +for ( $i = 1; $i <= $count; $i++ ) { + + $message = $pop3->get( $i ); + + $bodysignal = false; + $boundary = ''; + $charset = ''; + $content = ''; + $content_type = ''; + $content_transfer_encoding = ''; + $post_author = 1; + $author_found = false; + $post_date = null; + $post_date_gmt = null; + + foreach ( $message as $line ) { + // Body signal. + if ( strlen( $line ) < 3 ) { + $bodysignal = true; + } + if ( $bodysignal ) { + $content .= $line; + } else { + if ( preg_match( '/Content-Type: /i', $line ) ) { + $content_type = trim( $line ); + $content_type = substr( $content_type, 14, strlen( $content_type ) - 14 ); + $content_type = explode( ';', $content_type ); + if ( ! empty( $content_type[1] ) ) { + $charset = explode( '=', $content_type[1] ); + $charset = ( ! empty( $charset[1] ) ) ? trim( $charset[1] ) : ''; + } + $content_type = $content_type[0]; + } + if ( preg_match( '/Content-Transfer-Encoding: /i', $line ) ) { + $content_transfer_encoding = trim( $line ); + $content_transfer_encoding = substr( $content_transfer_encoding, 27, strlen( $content_transfer_encoding ) - 27 ); + $content_transfer_encoding = explode( ';', $content_transfer_encoding ); + $content_transfer_encoding = $content_transfer_encoding[0]; + } + if ( 'multipart/alternative' === $content_type && str_contains( $line, 'boundary="' ) && '' === $boundary ) { + $boundary = trim( $line ); + $boundary = explode( '"', $boundary ); + $boundary = $boundary[1]; + } + if ( preg_match( '/Subject: /i', $line ) ) { + $subject = trim( $line ); + $subject = substr( $subject, 9, strlen( $subject ) - 9 ); + // Captures any text in the subject before $phone_delim as the subject. + if ( function_exists( 'iconv_mime_decode' ) ) { + $subject = iconv_mime_decode( $subject, 2, get_option( 'blog_charset' ) ); + } else { + $subject = wp_iso_descrambler( $subject ); + } + $subject = explode( $phone_delim, $subject ); + $subject = $subject[0]; + } + + /* + * Set the author using the email address (From or Reply-To, the last used) + * otherwise use the site admin. + */ + if ( ! $author_found && preg_match( '/^(From|Reply-To): /', $line ) ) { + if ( preg_match( '|[a-z0-9_.-]+@[a-z0-9_.-]+(?!.*<)|i', $line, $matches ) ) { + $author = $matches[0]; + } else { + $author = trim( $line ); + } + $author = sanitize_email( $author ); + if ( is_email( $author ) ) { + $userdata = get_user_by( 'email', $author ); + if ( ! empty( $userdata ) ) { + $post_author = $userdata->ID; + $author_found = true; + } + } + } + + if ( preg_match( '/Date: /i', $line ) ) { // Of the form '20 Mar 2002 20:32:37 +0100'. + $ddate = str_replace( 'Date: ', '', trim( $line ) ); + // Remove parenthesized timezone string if it exists, as this confuses strtotime(). + $ddate = preg_replace( '!\s*\(.+\)\s*$!', '', $ddate ); + $ddate_timestamp = strtotime( $ddate ); + $post_date = gmdate( 'Y-m-d H:i:s', $ddate_timestamp + $time_difference ); + $post_date_gmt = gmdate( 'Y-m-d H:i:s', $ddate_timestamp ); + } + } + } + + // Set $post_status based on $author_found and on author's publish_posts capability. + if ( $author_found ) { + $user = new WP_User( $post_author ); + $post_status = ( $user->has_cap( 'publish_posts' ) ) ? 'publish' : 'pending'; + } else { + // Author not found in DB, set status to pending. Author already set to admin. + $post_status = 'pending'; + } + + $subject = trim( $subject ); + + if ( 'multipart/alternative' === $content_type ) { + $content = explode( '--' . $boundary, $content ); + $content = $content[2]; + + // Match case-insensitive Content-Transfer-Encoding. + if ( preg_match( '/Content-Transfer-Encoding: quoted-printable/i', $content, $delim ) ) { + $content = explode( $delim[0], $content ); + $content = $content[1]; + } + $content = strip_tags( $content, '


    ' ); + } + $content = trim( $content ); + + /** + * Filters the original content of the email. + * + * Give Post-By-Email extending plugins full access to the content, either + * the raw content, or the content of the last quoted-printable section. + * + * @since 2.8.0 + * + * @param string $content The original email content. + */ + $content = apply_filters( 'wp_mail_original_content', $content ); + + if ( false !== stripos( $content_transfer_encoding, 'quoted-printable' ) ) { + $content = quoted_printable_decode( $content ); + } + + if ( function_exists( 'iconv' ) && ! empty( $charset ) ) { + $content = iconv( $charset, get_option( 'blog_charset' ), $content ); + } + + // Captures any text in the body after $phone_delim as the body. + $content = explode( $phone_delim, $content ); + $content = empty( $content[1] ) ? $content[0] : $content[1]; + + $content = trim( $content ); + + /** + * Filters the content of the post submitted by email before saving. + * + * @since 1.2.0 + * + * @param string $content The email content. + */ + $post_content = apply_filters( 'phone_content', $content ); + + $post_title = xmlrpc_getposttitle( $content ); + + if ( '' === trim( $post_title ) ) { + $post_title = $subject; + } + + $post_category = array( get_option( 'default_email_category' ) ); + + $post_data = compact( 'post_content', 'post_title', 'post_date', 'post_date_gmt', 'post_author', 'post_category', 'post_status' ); + $post_data = wp_slash( $post_data ); + + $post_ID = wp_insert_post( $post_data ); + if ( is_wp_error( $post_ID ) ) { + echo "\n" . $post_ID->get_error_message(); + } + + // The post wasn't inserted or updated, for whatever reason. Better move forward to the next email. + if ( empty( $post_ID ) ) { + continue; + } + + /** + * Fires after a post submitted by email is published. + * + * @since 1.2.0 + * + * @param int $post_ID The post ID. + */ + do_action( 'publish_phone', $post_ID ); + + echo "\n

    " . __( 'Author:' ) . ' ' . esc_html( $post_author ) . '

    '; + echo "\n

    " . __( 'Posted title:' ) . ' ' . esc_html( $post_title ) . '

    '; + + if ( ! $pop3->delete( $i ) ) { + echo '

    ' . sprintf( + /* translators: %s: POP3 error. */ + __( 'Oops: %s' ), + esc_html( $pop3->ERROR ) + ) . '

    '; + $pop3->reset(); + exit; + } else { + echo '

    ' . sprintf( + /* translators: %s: The message ID. */ + __( 'Mission complete. Message %s deleted.' ), + '' . $i . '' + ) . '

    '; + } +} + +$pop3->quit(); diff --git a/wp-settings.php b/wp-settings.php new file mode 100644 index 0000000..9673479 --- /dev/null +++ b/wp-settings.php @@ -0,0 +1,717 @@ +init(); + +// Load multisite-specific files. +if ( is_multisite() ) { + require ABSPATH . WPINC . '/ms-functions.php'; + require ABSPATH . WPINC . '/ms-default-filters.php'; + require ABSPATH . WPINC . '/ms-deprecated.php'; +} + +// Define constants that rely on the API to obtain the default value. +// Define must-use plugin directory constants, which may be overridden in the sunrise.php drop-in. +wp_plugin_directory_constants(); + +/** + * @since 3.9.0 + * + * @global array $wp_plugin_paths + */ +$GLOBALS['wp_plugin_paths'] = array(); + +// Load must-use plugins. +foreach ( wp_get_mu_plugins() as $mu_plugin ) { + $_wp_plugin_file = $mu_plugin; + include_once $mu_plugin; + $mu_plugin = $_wp_plugin_file; // Avoid stomping of the $mu_plugin variable in a plugin. + + /** + * Fires once a single must-use plugin has loaded. + * + * @since 5.1.0 + * + * @param string $mu_plugin Full path to the plugin's main file. + */ + do_action( 'mu_plugin_loaded', $mu_plugin ); +} +unset( $mu_plugin, $_wp_plugin_file ); + +// Load network activated plugins. +if ( is_multisite() ) { + foreach ( wp_get_active_network_plugins() as $network_plugin ) { + wp_register_plugin_realpath( $network_plugin ); + + $_wp_plugin_file = $network_plugin; + include_once $network_plugin; + $network_plugin = $_wp_plugin_file; // Avoid stomping of the $network_plugin variable in a plugin. + + /** + * Fires once a single network-activated plugin has loaded. + * + * @since 5.1.0 + * + * @param string $network_plugin Full path to the plugin's main file. + */ + do_action( 'network_plugin_loaded', $network_plugin ); + } + unset( $network_plugin, $_wp_plugin_file ); +} + +/** + * Fires once all must-use and network-activated plugins have loaded. + * + * @since 2.8.0 + */ +do_action( 'muplugins_loaded' ); + +if ( is_multisite() ) { + ms_cookie_constants(); +} + +// Define constants after multisite is loaded. +wp_cookie_constants(); + +// Define and enforce our SSL constants. +wp_ssl_constants(); + +// Create common globals. +require ABSPATH . WPINC . '/vars.php'; + +// Make taxonomies and posts available to plugins and themes. +// @plugin authors: warning: these get registered again on the init hook. +create_initial_taxonomies(); +create_initial_post_types(); + +wp_start_scraping_edited_file_errors(); + +// Register the default theme directory root. +register_theme_directory( get_theme_root() ); + +if ( ! is_multisite() && wp_is_fatal_error_handler_enabled() ) { + // Handle users requesting a recovery mode link and initiating recovery mode. + wp_recovery_mode()->initialize(); +} + +// Load active plugins. +foreach ( wp_get_active_and_valid_plugins() as $plugin ) { + wp_register_plugin_realpath( $plugin ); + + $_wp_plugin_file = $plugin; + include_once $plugin; + $plugin = $_wp_plugin_file; // Avoid stomping of the $plugin variable in a plugin. + + /** + * Fires once a single activated plugin has loaded. + * + * @since 5.1.0 + * + * @param string $plugin Full path to the plugin's main file. + */ + do_action( 'plugin_loaded', $plugin ); +} +unset( $plugin, $_wp_plugin_file ); + +// Load pluggable functions. +require ABSPATH . WPINC . '/pluggable.php'; +require ABSPATH . WPINC . '/pluggable-deprecated.php'; + +// Set internal encoding. +wp_set_internal_encoding(); + +// Run wp_cache_postload() if object cache is enabled and the function exists. +if ( WP_CACHE && function_exists( 'wp_cache_postload' ) ) { + wp_cache_postload(); +} + +/** + * Fires once activated plugins have loaded. + * + * Pluggable functions are also available at this point in the loading order. + * + * @since 1.5.0 + */ +do_action( 'plugins_loaded' ); + +// Define constants which affect functionality if not already defined. +wp_functionality_constants(); + +// Add magic quotes and set up $_REQUEST ( $_GET + $_POST ). +wp_magic_quotes(); + +/** + * Fires when comment cookies are sanitized. + * + * @since 2.0.11 + */ +do_action( 'sanitize_comment_cookies' ); + +/** + * WordPress Query object + * + * @since 2.0.0 + * + * @global WP_Query $wp_the_query WordPress Query object. + */ +$GLOBALS['wp_the_query'] = new WP_Query(); + +/** + * Holds the reference to {@see $wp_the_query}. + * Use this global for WordPress queries + * + * @since 1.5.0 + * + * @global WP_Query $wp_query WordPress Query object. + */ +$GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; + +/** + * Holds the WordPress Rewrite object for creating pretty URLs + * + * @since 1.5.0 + * + * @global WP_Rewrite $wp_rewrite WordPress rewrite component. + */ +$GLOBALS['wp_rewrite'] = new WP_Rewrite(); + +/** + * WordPress Object + * + * @since 2.0.0 + * + * @global WP $wp Current WordPress environment instance. + */ +$GLOBALS['wp'] = new WP(); + +/** + * WordPress Widget Factory Object + * + * @since 2.8.0 + * + * @global WP_Widget_Factory $wp_widget_factory + */ +$GLOBALS['wp_widget_factory'] = new WP_Widget_Factory(); + +/** + * WordPress User Roles + * + * @since 2.0.0 + * + * @global WP_Roles $wp_roles WordPress role management object. + */ +$GLOBALS['wp_roles'] = new WP_Roles(); + +/** + * Fires before the theme is loaded. + * + * @since 2.6.0 + */ +do_action( 'setup_theme' ); + +// Define the template related constants and globals. +wp_templating_constants(); +wp_set_template_globals(); + +// Load the default text localization domain. +load_default_textdomain(); + +$locale = get_locale(); +$locale_file = WP_LANG_DIR . "/$locale.php"; +if ( ( 0 === validate_file( $locale ) ) && is_readable( $locale_file ) ) { + require $locale_file; +} +unset( $locale_file ); + +/** + * WordPress Locale object for loading locale domain date and various strings. + * + * @since 2.1.0 + * + * @global WP_Locale $wp_locale WordPress date and time locale object. + */ +$GLOBALS['wp_locale'] = new WP_Locale(); + +/** + * WordPress Locale Switcher object for switching locales. + * + * @since 4.7.0 + * + * @global WP_Locale_Switcher $wp_locale_switcher WordPress locale switcher object. + */ +$GLOBALS['wp_locale_switcher'] = new WP_Locale_Switcher(); +$GLOBALS['wp_locale_switcher']->init(); + +// Load the functions for the active theme, for both parent and child theme if applicable. +foreach ( wp_get_active_and_valid_themes() as $theme ) { + if ( file_exists( $theme . '/functions.php' ) ) { + include $theme . '/functions.php'; + } +} +unset( $theme ); + +/** + * Fires after the theme is loaded. + * + * @since 3.0.0 + */ +do_action( 'after_setup_theme' ); + +// Create an instance of WP_Site_Health so that Cron events may fire. +if ( ! class_exists( 'WP_Site_Health' ) ) { + require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php'; +} +WP_Site_Health::get_instance(); + +// Set up current user. +$GLOBALS['wp']->init(); + +/** + * Fires after WordPress has finished loading but before any headers are sent. + * + * Most of WP is loaded at this stage, and the user is authenticated. WP continues + * to load on the {@see 'init'} hook that follows (e.g. widgets), and many plugins instantiate + * themselves on it for all sorts of reasons (e.g. they need a user, a taxonomy, etc.). + * + * If you wish to plug an action once WP is loaded, use the {@see 'wp_loaded'} hook below. + * + * @since 1.5.0 + */ +do_action( 'init' ); + +// Check site status. +if ( is_multisite() ) { + $file = ms_site_check(); + if ( true !== $file ) { + require $file; + die(); + } + unset( $file ); +} + +/** + * This hook is fired once WP, all plugins, and the theme are fully loaded and instantiated. + * + * Ajax requests should use wp-admin/admin-ajax.php. admin-ajax.php can handle requests for + * users not logged in. + * + * @link https://codex.wordpress.org/AJAX_in_Plugins + * + * @since 3.0.0 + */ +do_action( 'wp_loaded' ); diff --git a/wp-signup.php b/wp-signup.php new file mode 100644 index 0000000..d11f166 --- /dev/null +++ b/wp-signup.php @@ -0,0 +1,1046 @@ +is_404 = false; + +/** + * Fires before the Site Sign-up page is loaded. + * + * @since 4.4.0 + */ +do_action( 'before_signup_header' ); + +/** + * Prints styles for front-end Multisite Sign-up pages. + * + * @since MU (3.0.0) + */ +function wpmu_signup_stylesheet() { + ?> + + +
    +
    +' . __( 'Site Name (subdirectory only):' ) . ''; + } else { + echo ''; + } + + $errmsg_blogname = $errors->get_error_message( 'blogname' ); + $errmsg_blogname_aria = ''; + if ( $errmsg_blogname ) { + $errmsg_blogname_aria = 'wp-signup-blogname-error '; + echo '

    ' . $errmsg_blogname . '

    '; + } + + if ( ! is_subdomain_install() ) { + echo '
    ' . $current_network->domain . $current_network->path . '
    '; + } else { + $site_domain = preg_replace( '|^www\.|', '', $current_network->domain ); + echo '
    .' . esc_html( $site_domain ) . '
    '; + } + + if ( ! is_user_logged_in() ) { + if ( ! is_subdomain_install() ) { + $site = $current_network->domain . $current_network->path . __( 'sitename' ); + } else { + $site = __( 'domain' ) . '.' . $site_domain . $current_network->path; + } + + printf( + '

    (%s) %s

    ', + /* translators: %s: Site address. */ + sprintf( __( 'Your address will be %s.' ), $site ), + __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed, so choose carefully!' ) + ); + } + + // Site Title. + ?> + + get_error_message( 'blog_title' ); + $errmsg_blog_title_aria = ''; + if ( $errmsg_blog_title ) { + $errmsg_blog_title_aria = ' aria-describedby="wp-signup-blog-title-error"'; + echo '

    ' . $errmsg_blog_title . '

    '; + } + echo ''; + ?> + + +

    + + 'WPLANG', + 'id' => 'site-language', + 'selected' => $lang, + 'languages' => $languages, + 'show_available_translations' => false, + ) + ); + ?> +

    + + +
    +
    + + + + +

    + + /> + + + + /> + + +

    +
    +
    + + ' . __( 'Username:' ) . ''; + $errmsg_username = $errors->get_error_message( 'user_name' ); + $errmsg_username_aria = ''; + if ( $errmsg_username ) { + $errmsg_username_aria = 'wp-signup-username-error '; + echo '

    ' . $errmsg_username . '

    '; + } + ?> + +

    + + ' . __( 'Email Address:' ) . ''; + $errmsg_email = $errors->get_error_message( 'user_email' ); + $errmsg_email_aria = ''; + if ( $errmsg_email ) { + $errmsg_email_aria = 'wp-signup-email-error '; + echo '

    ' . $errmsg_email . '

    '; + } + ?> + +

    + + get_error_message( 'generic' ); + if ( $errmsg_generic ) { + echo '

    ' . $errmsg_generic . '

    '; + } + /** + * Fires at the end of the new user account registration form. + * + * @since 3.0.0 + * + * @param WP_Error $errors A WP_Error object containing 'user_name' or 'user_email' errors. + */ + do_action( 'signup_extra_fields', $errors ); +} + +/** + * Validates user sign-up name and email. + * + * @since MU (3.0.0) + * + * @return array Contains username, email, and error messages. + * See wpmu_validate_user_signup() for details. + */ +function validate_user_form() { + return wpmu_validate_user_signup( $_POST['user_name'], $_POST['user_email'] ); +} + +/** + * Shows a form for returning users to sign up for another site. + * + * @since MU (3.0.0) + * + * @param string $blogname The new site name + * @param string $blog_title The new site title. + * @param WP_Error|string $errors A WP_Error object containing existing errors. Defaults to empty string. + */ +function signup_another_blog( $blogname = '', $blog_title = '', $errors = '' ) { + $current_user = wp_get_current_user(); + + if ( ! is_wp_error( $errors ) ) { + $errors = new WP_Error(); + } + + $signup_defaults = array( + 'blogname' => $blogname, + 'blog_title' => $blog_title, + 'errors' => $errors, + ); + + /** + * Filters the default site sign-up variables. + * + * @since 3.0.0 + * + * @param array $signup_defaults { + * An array of default site sign-up variables. + * + * @type string $blogname The site blogname. + * @type string $blog_title The site title. + * @type WP_Error $errors A WP_Error object possibly containing 'blogname' or 'blog_title' errors. + * } + */ + $filtered_results = apply_filters( 'signup_another_blog_init', $signup_defaults ); + + $blogname = $filtered_results['blogname']; + $blog_title = $filtered_results['blog_title']; + $errors = $filtered_results['errors']; + + /* translators: %s: Network title. */ + echo '

    ' . sprintf( __( 'Get another %s site in seconds' ), get_network()->site_name ) . '

    '; + + if ( $errors->has_errors() ) { + echo '

    ' . __( 'There was a problem, please correct the form below and try again.' ) . '

    '; + } + ?> +

    + add another site to your account. There is no limit to the number of sites you can have, so create to your heart’s content, but write responsibly!' ), + $current_user->display_name + ); + ?> +

    + + ID ); + if ( ! empty( $blogs ) ) { + ?> + +

    +
      + userblog_id ); + echo '
    • ' . $home_url . '
    • '; + } + ?> +
    + + +

    +
    + + + +

    +
    + has_errors() ) { + signup_another_blog( $blogname, $blog_title, $errors ); + return false; + } + + $public = (int) $_POST['blog_public']; + + $blog_meta_defaults = array( + 'lang_id' => 1, + 'public' => $public, + ); + + // Handle the language setting for the new site. + if ( ! empty( $_POST['WPLANG'] ) ) { + + $languages = signup_get_available_languages(); + + if ( in_array( $_POST['WPLANG'], $languages, true ) ) { + $language = wp_unslash( sanitize_text_field( $_POST['WPLANG'] ) ); + + if ( $language ) { + $blog_meta_defaults['WPLANG'] = $language; + } + } + } + + /** + * Filters the new site meta variables. + * + * Use the {@see 'add_signup_meta'} filter instead. + * + * @since MU (3.0.0) + * @deprecated 3.0.0 Use the {@see 'add_signup_meta'} filter instead. + * + * @param array $blog_meta_defaults An array of default blog meta variables. + */ + $meta_defaults = apply_filters_deprecated( 'signup_create_blog_meta', array( $blog_meta_defaults ), '3.0.0', 'add_signup_meta' ); + + /** + * Filters the new default site meta variables. + * + * @since 3.0.0 + * + * @param array $meta { + * An array of default site meta variables. + * + * @type int $lang_id The language ID. + * @type int $blog_public Whether search engines should be discouraged from indexing the site. 1 for true, 0 for false. + * } + */ + $meta = apply_filters( 'add_signup_meta', $meta_defaults ); + + $blog_id = wpmu_create_blog( $domain, $path, $blog_title, $current_user->ID, $meta, get_current_network_id() ); + + if ( is_wp_error( $blog_id ) ) { + return false; + } + + confirm_another_blog_signup( $domain, $path, $blog_title, $current_user->user_login, $current_user->user_email, $meta, $blog_id ); + return true; +} + +/** + * Shows a message confirming that the new site has been created. + * + * @since MU (3.0.0) + * @since 4.4.0 Added the `$blog_id` parameter. + * + * @param string $domain The domain URL. + * @param string $path The site root path. + * @param string $blog_title The site title. + * @param string $user_name The username. + * @param string $user_email The user's email address. + * @param array $meta Any additional meta from the {@see 'add_signup_meta'} filter in validate_blog_signup(). + * @param int $blog_id The site ID. + */ +function confirm_another_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = array(), $blog_id = 0 ) { + + if ( $blog_id ) { + switch_to_blog( $blog_id ); + $home_url = home_url( '/' ); + $login_url = wp_login_url(); + restore_current_blog(); + } else { + $home_url = 'http://' . $domain . $path; + $login_url = 'http://' . $domain . $path . 'wp-login.php'; + } + + $site = sprintf( + '%2$s', + esc_url( $home_url ), + $blog_title + ); + + ?> +

    + +

    +

    + Log in as “%3$s” using your existing password.' ), + sprintf( + '%s', + esc_url( $home_url ), + untrailingslashit( $domain . $path ) + ), + esc_url( $login_url ), + $user_name + ); + ?> +

    + $user_name, + 'user_email' => $user_email, + 'errors' => $errors, + ); + + /** + * Filters the default user variables used on the user sign-up form. + * + * @since 3.0.0 + * + * @param array $signup_user_defaults { + * An array of default user variables. + * + * @type string $user_name The user username. + * @type string $user_email The user email address. + * @type WP_Error $errors A WP_Error object with possible errors relevant to the sign-up user. + * } + */ + $filtered_results = apply_filters( 'signup_user_init', $signup_user_defaults ); + $user_name = $filtered_results['user_name']; + $user_email = $filtered_results['user_email']; + $errors = $filtered_results['errors']; + + ?> + +

    + site_name ); + ?> +

    +
    + + + + + + + + + +
    + +

    + + /> + + + + /> + + +

    +
    + + +

    +
    + has_errors() ) { + signup_user( $user_name, $user_email, $errors ); + return false; + } + + if ( 'blog' === $_POST['signup_for'] ) { + signup_blog( $user_name, $user_email ); + return false; + } + + /** This filter is documented in wp-signup.php */ + wpmu_signup_user( $user_name, $user_email, apply_filters( 'add_signup_meta', array() ) ); + + confirm_user_signup( $user_name, $user_email ); + return true; +} + +/** + * Shows a message confirming that the new user has been registered and is awaiting activation. + * + * @since MU (3.0.0) + * + * @param string $user_name The username. + * @param string $user_email The user's email address. + */ +function confirm_user_signup( $user_name, $user_email ) { + ?> +

    + +

    +

    you must activate it.' ); ?>

    +

    + ' . $user_email . '' ); + ?> +

    +

    + $user_name, + 'user_email' => $user_email, + 'blogname' => $blogname, + 'blog_title' => $blog_title, + 'errors' => $errors, + ); + + /** + * Filters the default site creation variables for the site sign-up form. + * + * @since 3.0.0 + * + * @param array $signup_blog_defaults { + * An array of default site creation variables. + * + * @type string $user_name The user username. + * @type string $user_email The user email address. + * @type string $blogname The blogname. + * @type string $blog_title The title of the site. + * @type WP_Error $errors A WP_Error object with possible errors relevant to new site creation variables. + * } + */ + $filtered_results = apply_filters( 'signup_blog_init', $signup_blog_defaults ); + + $user_name = $filtered_results['user_name']; + $user_email = $filtered_results['user_email']; + $blogname = $filtered_results['blogname']; + $blog_title = $filtered_results['blog_title']; + $errors = $filtered_results['errors']; + + if ( empty( $blogname ) ) { + $blogname = $user_name; + } + ?> +
    + + + + + +

    +
    + has_errors() ) { + signup_user( $user_name, $user_email, $user_errors ); + return false; + } + + $result = wpmu_validate_blog_signup( $_POST['blogname'], $_POST['blog_title'] ); + $domain = $result['domain']; + $path = $result['path']; + $blogname = $result['blogname']; + $blog_title = $result['blog_title']; + $errors = $result['errors']; + + if ( $errors->has_errors() ) { + signup_blog( $user_name, $user_email, $blogname, $blog_title, $errors ); + return false; + } + + $public = (int) $_POST['blog_public']; + $signup_meta = array( + 'lang_id' => 1, + 'public' => $public, + ); + + // Handle the language setting for the new site. + if ( ! empty( $_POST['WPLANG'] ) ) { + + $languages = signup_get_available_languages(); + + if ( in_array( $_POST['WPLANG'], $languages, true ) ) { + $language = wp_unslash( sanitize_text_field( $_POST['WPLANG'] ) ); + + if ( $language ) { + $signup_meta['WPLANG'] = $language; + } + } + } + + /** This filter is documented in wp-signup.php */ + $meta = apply_filters( 'add_signup_meta', $signup_meta ); + + wpmu_signup_blog( $domain, $path, $blog_title, $user_name, $user_email, $meta ); + confirm_blog_signup( $domain, $path, $blog_title, $user_name, $user_email, $meta ); + return true; +} + +/** + * Shows a message confirming that the new site has been registered and is awaiting activation. + * + * @since MU (3.0.0) + * + * @param string $domain The domain or subdomain of the site. + * @param string $path The path of the site. + * @param string $blog_title The title of the new site. + * @param string $user_name The user's username. + * @param string $user_email The user's email address. + * @param array $meta Any additional meta from the {@see 'add_signup_meta'} filter in validate_blog_signup(). + */ +function confirm_blog_signup( $domain, $path, $blog_title, $user_name = '', $user_email = '', $meta = array() ) { + ?> +

    + {$blog_title}" ) + ?> +

    + +

    you must activate it.' ); ?>

    +

    + ' . $user_email . '' ); + ?> +

    +

    +

    +

    +
      +
    • +
    • +
    • + +
    • +
    + '; + _e( 'Greetings Network Administrator!' ); + echo ' '; + + switch ( $active_signup ) { + case 'none': + _e( 'The network currently disallows registrations.' ); + break; + case 'blog': + _e( 'The network currently allows site registrations.' ); + break; + case 'user': + _e( 'The network currently allows user registrations.' ); + break; + default: + _e( 'The network currently allows both site and user registrations.' ); + break; + } + + echo ' '; + + /* translators: %s: URL to Network Settings screen. */ + printf( __( 'To change or disable registration go to your Options page.' ), esc_url( network_admin_url( 'settings.php' ) ) ); + echo '
    '; +} + +$newblogname = isset( $_GET['new'] ) ? strtolower( preg_replace( '/^-|-$|[^-a-zA-Z0-9]/', '', $_GET['new'] ) ) : null; + +$current_user = wp_get_current_user(); +if ( 'none' === $active_signup ) { + _e( 'Registration has been disabled.' ); +} elseif ( 'blog' === $active_signup && ! is_user_logged_in() ) { + $login_url = wp_login_url( network_site_url( 'wp-signup.php' ) ); + /* translators: %s: Login URL. */ + printf( __( 'You must first log in, and then you can create a new site.' ), $login_url ); +} else { + $stage = isset( $_POST['stage'] ) ? $_POST['stage'] : 'default'; + switch ( $stage ) { + case 'validate-user-signup': + if ( 'all' === $active_signup + || ( 'blog' === $_POST['signup_for'] && 'blog' === $active_signup ) + || ( 'user' === $_POST['signup_for'] && 'user' === $active_signup ) + ) { + validate_user_signup(); + } else { + _e( 'User registration has been disabled.' ); + } + break; + case 'validate-blog-signup': + if ( 'all' === $active_signup || 'blog' === $active_signup ) { + validate_blog_signup(); + } else { + _e( 'Site registration has been disabled.' ); + } + break; + case 'gimmeanotherblog': + validate_another_blog_signup(); + break; + case 'default': + default: + $user_email = isset( $_POST['user_email'] ) ? $_POST['user_email'] : ''; + /** + * Fires when the site sign-up form is sent. + * + * @since 3.0.0 + */ + do_action( 'preprocess_signup_form' ); + if ( is_user_logged_in() && ( 'all' === $active_signup || 'blog' === $active_signup ) ) { + signup_another_blog( $newblogname ); + } elseif ( ! is_user_logged_in() && ( 'all' === $active_signup || 'user' === $active_signup ) ) { + signup_user( $newblogname, $user_email ); + } elseif ( ! is_user_logged_in() && ( 'blog' === $active_signup ) ) { + _e( 'Sorry, new registrations are not allowed at this time.' ); + } else { + _e( 'You are logged in already. No need to register again!' ); + } + + if ( $newblogname ) { + $newblog = get_blogaddress_by_name( $newblogname ); + + if ( 'blog' === $active_signup || 'all' === $active_signup ) { + printf( + /* translators: %s: Site address. */ + '

    ' . __( 'The site you were looking for, %s, does not exist, but you can create it now!' ) . '

    ', + '' . $newblog . '' + ); + } else { + printf( + /* translators: %s: Site address. */ + '

    ' . __( 'The site you were looking for, %s, does not exist.' ) . '

    ', + '' . $newblog . '' + ); + } + } + break; + } +} +?> +
    +
    + + + '1' ) ); +} + +// Always run as an unauthenticated user. +wp_set_current_user( 0 ); + +/** + * Response to a trackback. + * + * Responds with an error or success XML message. + * + * @since 0.71 + * + * @param int|bool $error Whether there was an error. + * Default '0'. Accepts '0' or '1', true or false. + * @param string $error_message Error message if an error occurred. Default empty string. + */ +function trackback_response( $error = 0, $error_message = '' ) { + header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) ); + + if ( $error ) { + echo '\n"; + echo "\n"; + echo "1\n"; + echo "$error_message\n"; + echo ''; + die(); + } else { + echo '\n"; + echo "\n"; + echo "0\n"; + echo ''; + } +} + +if ( ! isset( $_GET['tb_id'] ) || ! $_GET['tb_id'] ) { + $post_id = explode( '/', $_SERVER['REQUEST_URI'] ); + $post_id = (int) $post_id[ count( $post_id ) - 1 ]; +} + +$trackback_url = isset( $_POST['url'] ) ? $_POST['url'] : ''; +$charset = isset( $_POST['charset'] ) ? $_POST['charset'] : ''; + +// These three are stripslashed here so they can be properly escaped after mb_convert_encoding(). +$title = isset( $_POST['title'] ) ? wp_unslash( $_POST['title'] ) : ''; +$excerpt = isset( $_POST['excerpt'] ) ? wp_unslash( $_POST['excerpt'] ) : ''; +$blog_name = isset( $_POST['blog_name'] ) ? wp_unslash( $_POST['blog_name'] ) : ''; + +if ( $charset ) { + $charset = str_replace( array( ',', ' ' ), '', strtoupper( trim( $charset ) ) ); +} else { + $charset = 'ASCII, UTF-8, ISO-8859-1, JIS, EUC-JP, SJIS'; +} + +// No valid uses for UTF-7. +if ( str_contains( $charset, 'UTF-7' ) ) { + die; +} + +// For international trackbacks. +if ( function_exists( 'mb_convert_encoding' ) ) { + $title = mb_convert_encoding( $title, get_option( 'blog_charset' ), $charset ); + $excerpt = mb_convert_encoding( $excerpt, get_option( 'blog_charset' ), $charset ); + $blog_name = mb_convert_encoding( $blog_name, get_option( 'blog_charset' ), $charset ); +} + +// Escape values to use in the trackback. +$title = wp_slash( $title ); +$excerpt = wp_slash( $excerpt ); +$blog_name = wp_slash( $blog_name ); + +if ( is_single() || is_page() ) { + $post_id = $posts[0]->ID; +} + +if ( ! isset( $post_id ) || ! (int) $post_id ) { + trackback_response( 1, __( 'I really need an ID for this to work.' ) ); +} + +if ( empty( $title ) && empty( $trackback_url ) && empty( $blog_name ) ) { + // If it doesn't look like a trackback at all. + wp_redirect( get_permalink( $post_id ) ); + exit; +} + +if ( ! empty( $trackback_url ) && ! empty( $title ) ) { + /** + * Fires before the trackback is added to a post. + * + * @since 4.7.0 + * + * @param int $post_id Post ID related to the trackback. + * @param string $trackback_url Trackback URL. + * @param string $charset Character set. + * @param string $title Trackback title. + * @param string $excerpt Trackback excerpt. + * @param string $blog_name Site name. + */ + do_action( 'pre_trackback_post', $post_id, $trackback_url, $charset, $title, $excerpt, $blog_name ); + + header( 'Content-Type: text/xml; charset=' . get_option( 'blog_charset' ) ); + + if ( ! pings_open( $post_id ) ) { + trackback_response( 1, __( 'Sorry, trackbacks are closed for this item.' ) ); + } + + $title = wp_html_excerpt( $title, 250, '…' ); + $excerpt = wp_html_excerpt( $excerpt, 252, '…' ); + + $comment_post_id = (int) $post_id; + $comment_author = $blog_name; + $comment_author_email = ''; + $comment_author_url = $trackback_url; + $comment_content = "$title\n\n$excerpt"; + $comment_type = 'trackback'; + + $dupe = $wpdb->get_results( + $wpdb->prepare( + "SELECT * FROM $wpdb->comments WHERE comment_post_ID = %d AND comment_author_url = %s", + $comment_post_id, + $comment_author_url + ) + ); + + if ( $dupe ) { + trackback_response( 1, __( 'There is already a ping from that URL for this post.' ) ); + } + + $commentdata = array( + 'comment_post_ID' => $comment_post_id, + ); + + $commentdata += compact( + 'comment_author', + 'comment_author_email', + 'comment_author_url', + 'comment_content', + 'comment_type' + ); + + $result = wp_new_comment( $commentdata ); + + if ( is_wp_error( $result ) ) { + trackback_response( 1, $result->get_error_message() ); + } + + $trackback_id = $wpdb->insert_id; + + /** + * Fires after a trackback is added to a post. + * + * @since 1.2.0 + * + * @param int $trackback_id Trackback ID. + */ + do_action( 'trackback_post', $trackback_id ); + + trackback_response( 0 ); +} diff --git a/xmlrpc.php b/xmlrpc.php new file mode 100644 index 0000000..5929020 --- /dev/null +++ b/xmlrpc.php @@ -0,0 +1,108 @@ +'; + ?> + + + WordPress + https://wordpress.org/ + + + + + + + + + + + serve_request(); + +exit; + +/** + * logIO() - Writes logging info to a file. + * + * @since 1.2.0 + * @deprecated 3.4.0 Use error_log() + * @see error_log() + * + * @global int|bool $xmlrpc_logging Whether to enable XML-RPC logging. + * + * @param string $io Whether input or output. + * @param string $msg Information describing logging reason. + */ +function logIO( $io, $msg ) { + _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); + if ( ! empty( $GLOBALS['xmlrpc_logging'] ) ) { + error_log( $io . ' - ' . $msg ); + } +}