windhamdavid 5 months ago
parent
commit
72c4335806
5 changed files with 23 additions and 21 deletions
  1. 1 1
      functions.php
  2. 5 5
      parts/header.html
  3. 12 4
      patterns/footer.php
  4. 5 1
      style.css
  5. 0 10
      theme.json

+ 1 - 1
functions.php

@@ -78,7 +78,7 @@ add_action( 'admin_menu', 'lnr24_remove_admin_pages', 99 );
 function lnr24_remove_admin_pages() {
   global $current_user;
   $user_id = get_current_user_id();
-  if($user_id != '0') {
+  if($user_id != '1') {
   	remove_menu_page('plugins.php');
     remove_menu_page('tools.php');
     remove_menu_page('options-general.php');

+ 5 - 5
parts/header.html

@@ -1,5 +1,5 @@
-<!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","bottom":"20px"}}},"className":"has-contrast-light-color has-secondary-dark-background-color has-background","layout":{"type":"constrained"}} -->
-<div class="wp-block-group has-contrast-light-color has-secondary-dark-background-color has-background" style="padding-top:30px;padding-bottom:20px">
+<!-- wp:group {"style":{"spacing":{"padding":{"top":"30px","bottom":"20px"}}},"className":"has-contrast-light-color has-primary-background-color has-background","layout":{"type":"constrained"}} -->
+<div class="wp-block-group has-contrast-light-color has-primary-background-color has-background" style="padding-top:30px;padding-bottom:20px">
 	<!-- wp:group {"align":"wide","layout":{"type":"flex","flexWrap":"wrap","justifyContent":"space-between"}} -->
 	<div class="wp-block-group alignwide">
 		<!-- wp:group {"style":{"spacing":{"blockGap":"var:preset|spacing|50"},"layout":{"selfStretch":"fit","flexSize":null}},"layout":{"type":"flex"}} -->
@@ -7,10 +7,10 @@
 			<!-- wp:site-logo {"width":400} /-->
 		</div>
 		<!-- /wp:group -->
-		<!-- wp:group {"layout":{"type":"flex","orientation":"vertical"}} -->
+		<!-- wp:group {"style":{"spacing":{"blockGap":"0"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"right"}} -->
 			<div class="wp-block-group">
-				<!-- wp:paragraph {"fontSize":"small"} -->
-				<p class="has-small-font-size">83 Thomson Circle Abbeville, SC 29620</p>
+				<!-- wp:paragraph {"fontSize":"medium"} -->
+				<p class="has-medium-font-size">83 Thomson Circle Abbeville, SC 29620</p>
 				<!-- /wp:paragraph -->
 				<!-- wp:paragraph {"style":{"typography":{"fontSize":"1.5rem"}}} -->
 				<p style="font-size:1.5rem">(864) 366-5122</p>

+ 12 - 4
patterns/footer.php

@@ -8,8 +8,8 @@
  */
 ?>
 
-<!-- wp:group {"align":"full","textColor":"base","backgroundColor":"secondary-dark","layout":{"type":"constrained"}} -->
-<div class="wp-block-group alignfull has-text-color-base has-contrast-light-color has-secondary-dark-background-color has-text-color has-background">
+<!-- wp:group {"align":"full","textColor":"base","backgroundColor":"primary","layout":{"type":"constrained"}} -->
+<div class="wp-block-group alignfull has-text-color-base has-contrast-light-color has-primary-background-color has-text-color has-background">
 
 	<!-- wp:group {"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|70","bottom":"var:preset|spacing|50"}}}} -->
 	<div class="wp-block-group alignwide container" style="padding-top:var(--wp--preset--spacing--70);padding-bottom:var(--wp--preset--spacing--50)">
@@ -63,8 +63,16 @@
 
 			<!-- wp:column {"width":"33%"} -->
 			<div class="wp-block-column" style="flex-basis:33%">
-
-
+				<!-- wp:image {"sizeSlug":"full","linkDestination":"none"} -->
+				<figure class="wp-block-image"><img src="<?php echo get_template_directory_uri(); ?>/img/SRH_Logo.png" alt="" class="wp-image"/></figure>
+				<!-- /wp:image -->
+				<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
+				<div class="wp-block-buttons">
+				<!-- wp:button {"backgroundColor":"contrast","textColor":"base","style":{"elements":{"link":{"color":{"text":"var:preset|color|base"}}}}} -->
+				<div class="wp-block-button"><a class="wp-block-button__link wp-element-button has-base-color has-contrast-background-color has-text-color has-background has-link-color" href="https://selfregional.org">www.selfregional.org</a></div>
+				<!-- /wp:button -->
+				</div>
+				<!-- /wp:buttons -->
 			</div>
 			<!-- /wp:column -->
 

+ 5 - 1
style.css

@@ -14,4 +14,8 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Thanks:
 2024 * GNU GPL v2 or later - https://github.com/WordPress/twentytwentyfour
 2025 * GNU GPL v2 or later - https://github.com/WordPress/twentytwentyfive
-*/
+*/
+
+.no-padding {
+  margin-block-start: 0;
+}

+ 0 - 10
theme.json

@@ -40,21 +40,11 @@
 					"color": "#19458c",
 					"name": "Primary"
 				},
-				{
-					"slug": "primary-light",
-					"color": "#e5f6f7",
-					"name": "Primary Light"
-				},
 				{
 					"slug": "secondary",
 					"color": "#19458c",
 					"name": "Secondary"
 				},
-				{
-					"slug": "secondary-dark",
-					"color": "#19458c",
-					"name": "Secondary Dark"
-				},
 				{
 					"slug": "highlight",
 					"color": "#faa819",