Skip to content

Commit

Permalink
Merge pull request #4264 from Codeinwp/fix/starter-site/404-pages
Browse files Browse the repository at this point in the history
Revert starter site menu items
  • Loading branch information
vytisbulkevicius authored Jul 4, 2024
2 parents 5b999e1 + f97ec79 commit 0ac99f1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 39 deletions.
15 changes: 0 additions & 15 deletions inc/compatibility/starter-content/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,6 @@
<!-- /wp:social-links --></div>
<!-- /wp:column -->
<!-- wp:column {"verticalAlignment":"center","width":"50%","style":{"spacing":{"padding":{"right":"var:preset|spacing|30","left":"var:preset|spacing|30"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-right:var(--wp--preset--spacing--30);padding-left:var(--wp--preset--spacing--30);flex-basis:50%;"><!-- wp:themeisle-blocks/form {"id":"wp-block-themeisle-blocks-form-b0061c8f","optionName":"8e3c28cc41eef4a60477f9c4566338072ba8621f_b0061c8f","submitLabel":"Send Message","inputBorderRadius":{"top":"3px","left":"3px","right":"3px","bottom":"3px"},"submitBackgroundColor":"var(\u002d\u002dnv-primary-accent)","submitBackgroundColorHover":"var(\u002d\u002dnv-secondary-accent)"} -->
<div id="wp-block-themeisle-blocks-form-b0061c8f" class="wp-block-themeisle-blocks-form" data-option-name="8e3c28cc41eef4a60477f9c4566338072ba8621f_b0061c8f"><form class="otter-form__container"><!-- wp:themeisle-blocks/form-input {"id":"wp-block-themeisle-blocks-form-input-334449d1","type":"email","label":"Email","isRequired":true} -->
<div id="wp-block-themeisle-blocks-form-input-334449d1" class="wp-block-themeisle-blocks-form-input"><label for="wp-block-themeisle-blocks-form-input-334449d1-input" class="otter-form-input-label"><span class="otter-form-input-label__label">Email</span><span class="required">*</span></label><input type="email" id="wp-block-themeisle-blocks-form-input-334449d1-input" required class="otter-form-input"/></div>
<!-- /wp:themeisle-blocks/form-input -->
<!-- wp:themeisle-blocks/form-nonce {"formId":"wp-block-themeisle-blocks-form-b0061c8f"} /-->
<!-- wp:themeisle-blocks/form-textarea {"id":"wp-block-themeisle-blocks-form-textarea-3a8375eb","label":"Message"} -->
<div id="wp-block-themeisle-blocks-form-textarea-3a8375eb" class="wp-block-themeisle-blocks-form-textarea"><label for="wp-block-themeisle-blocks-form-textarea-3a8375eb-input" class="otter-form-textarea-label"><span class="otter-form-textarea-label__label">Message</span></label><textarea id="wp-block-themeisle-blocks-form-textarea-3a8375eb-input" rows="10" class="otter-form-textarea-input"></textarea></div>
<!-- /wp:themeisle-blocks/form-textarea --><div class="wp-block-button"><button class="wp-block-button__link" type="submit">Send Message</button></div></form></div>
<!-- /wp:themeisle-blocks/form --></div>
<!-- /wp:column --></div>
<!-- /wp:columns -->
<!-- wp:spacer {"height":"40px"} -->
<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer --></div>
Expand Down
48 changes: 24 additions & 24 deletions inc/compatibility/starter_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ public function get() {
'object' => 'page',
'object_id' => '{{' . self::HOME_SLUG . '}}',
],
'link_about' => [
'type' => 'custom',
'title' => 'About Us',
'url' => home_url( self::ABOUT_SLUG ),
'page_about' => [
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{' . self::ABOUT_SLUG . '}}',
],
'page_portofolio' => [
'type' => 'post_type',
Expand All @@ -129,15 +129,15 @@ public function get() {
'object' => 'page',
'object_id' => '{{' . self::PROJECT_DETAILS . '}}',
],
'link_blog' => [
'type' => 'custom',
'title' => 'News',
'url' => home_url( self::BLOG_SLUG ),
'page_blog' => [
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{' . self::BLOG_SLUG . '}}',
],
'link_contact' => [
'type' => 'custom',
'title' => 'Contact Us',
'url' => home_url( self::CONTACT ),
'page_contact' => [
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{' . self::CONTACT . '}}',
],
];

Expand All @@ -147,20 +147,20 @@ public function get() {
'object' => 'page',
'object_id' => '{{' . self::HOME_SLUG . '}}',
],
'link_blog' => [
'type' => 'custom',
'title' => 'Blog',
'url' => home_url( self::HOME_SLUG ),
'page_blog' => [
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{' . self::BLOG_SLUG . '}}',
],
'link_about' => [
'type' => 'custom',
'title' => 'About',
'url' => home_url( self::ABOUT_SLUG ),
'page_about' => [
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{' . self::ABOUT_SLUG . '}}',
],
'link_contact' => [
'type' => 'custom',
'title' => 'Contact',
'url' => home_url( self::CONTACT ),
'page_contact' => [
'type' => 'post_type',
'object' => 'page',
'object_id' => '{{' . self::CONTACT . '}}',
],
];

Expand Down

0 comments on commit 0ac99f1

Please sign in to comment.